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
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
772 valgrind_path_defines
846 program_transform_name
857 ac_subst_files
='option_includes
860 enable_option_checking
865 enable_generated_files_in_srcdir
875 enable_gather_detailed_mem_stats
885 with_upc_pts_vaddr_order
887 with_upc_pts_packed_bits
888 enable_upc_link_script
891 with_native_system_header_dir
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
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars
='build_alias
947 # Initialize some variables set by options.
949 ac_init_version
=false
950 ac_unrecognized_opts
=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name
=s
,x
,x
,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir
='${exec_prefix}/bin'
976 sbindir
='${exec_prefix}/sbin'
977 libexecdir
='${exec_prefix}/libexec'
978 datarootdir
='${prefix}/share'
979 datadir
='${datarootdir}'
980 sysconfdir
='${prefix}/etc'
981 sharedstatedir
='${prefix}/com'
982 localstatedir
='${prefix}/var'
983 includedir
='${prefix}/include'
984 oldincludedir
='/usr/include'
985 docdir
='${datarootdir}/doc/${PACKAGE}'
986 infodir
='${datarootdir}/info'
991 libdir
='${exec_prefix}/lib'
992 localedir
='${datarootdir}/locale'
993 mandir
='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\
$ac_option
1007 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1017 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1019 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1020 bindir
=$ac_optarg ;;
1022 -build |
--build |
--buil |
--bui |
--bu)
1023 ac_prev
=build_alias
;;
1024 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1025 build_alias
=$ac_optarg ;;
1027 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1028 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1029 ac_prev
=cache_file
;;
1030 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1031 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1032 cache_file
=$ac_optarg ;;
1034 --config-cache |
-C)
1035 cache_file
=config.cache
;;
1037 -datadir |
--datadir |
--datadi |
--datad)
1039 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1040 datadir
=$ac_optarg ;;
1042 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1043 |
--dataroo |
--dataro |
--datar)
1044 ac_prev
=datarootdir
;;
1045 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1046 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1047 datarootdir
=$ac_optarg ;;
1049 -disable-* |
--disable-*)
1050 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1053 as_fn_error
"invalid feature name: $ac_useropt"
1054 ac_useropt_orig
=$ac_useropt
1055 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_
$ac_useropt"
1060 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep
=', ';;
1063 eval enable_
$ac_useropt=no
;;
1065 -docdir |
--docdir |
--docdi |
--doc |
--do)
1067 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1068 docdir
=$ac_optarg ;;
1070 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1072 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1073 dvidir
=$ac_optarg ;;
1075 -enable-* |
--enable-*)
1076 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error
"invalid feature name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_
$ac_useropt"
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval enable_
$ac_useropt=\
$ac_optarg ;;
1091 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1092 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1093 |
--exec |
--exe |
--ex)
1094 ac_prev
=exec_prefix
;;
1095 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1096 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1097 |
--exec=* |
--exe=* |
--ex=*)
1098 exec_prefix
=$ac_optarg ;;
1100 -gas |
--gas |
--ga |
--g)
1101 # Obsolete; use --with-gas.
1104 -help |
--help |
--hel |
--he |
-h)
1105 ac_init_help
=long
;;
1106 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1107 ac_init_help
=recursive
;;
1108 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1109 ac_init_help
=short
;;
1111 -host |
--host |
--hos |
--ho)
1112 ac_prev
=host_alias
;;
1113 -host=* |
--host=* |
--hos=* |
--ho=*)
1114 host_alias
=$ac_optarg ;;
1116 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1118 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1120 htmldir
=$ac_optarg ;;
1122 -includedir |
--includedir |
--includedi |
--included |
--include \
1123 |
--includ |
--inclu |
--incl |
--inc)
1124 ac_prev
=includedir
;;
1125 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1126 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1127 includedir
=$ac_optarg ;;
1129 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1131 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1132 infodir
=$ac_optarg ;;
1134 -libdir |
--libdir |
--libdi |
--libd)
1136 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1137 libdir
=$ac_optarg ;;
1139 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1140 |
--libexe |
--libex |
--libe)
1141 ac_prev
=libexecdir
;;
1142 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1143 |
--libexe=* |
--libex=* |
--libe=*)
1144 libexecdir
=$ac_optarg ;;
1146 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1147 ac_prev
=localedir
;;
1148 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1149 localedir
=$ac_optarg ;;
1151 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1152 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1153 ac_prev
=localstatedir
;;
1154 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1155 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1156 localstatedir
=$ac_optarg ;;
1158 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1160 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1161 mandir
=$ac_optarg ;;
1163 -nfp |
--nfp |
--nf)
1164 # Obsolete; use --without-fp.
1167 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1168 |
--no-cr |
--no-c |
-n)
1171 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1172 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1175 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1176 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1177 |
--oldin |
--oldi |
--old |
--ol |
--o)
1178 ac_prev
=oldincludedir
;;
1179 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1180 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1181 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1182 oldincludedir
=$ac_optarg ;;
1184 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1186 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1187 prefix
=$ac_optarg ;;
1189 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1190 |
--program-pre |
--program-pr |
--program-p)
1191 ac_prev
=program_prefix
;;
1192 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1193 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1194 program_prefix
=$ac_optarg ;;
1196 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1197 |
--program-suf |
--program-su |
--program-s)
1198 ac_prev
=program_suffix
;;
1199 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1200 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1201 program_suffix
=$ac_optarg ;;
1203 -program-transform-name |
--program-transform-name \
1204 |
--program-transform-nam |
--program-transform-na \
1205 |
--program-transform-n |
--program-transform- \
1206 |
--program-transform |
--program-transfor \
1207 |
--program-transfo |
--program-transf \
1208 |
--program-trans |
--program-tran \
1209 |
--progr-tra |
--program-tr |
--program-t)
1210 ac_prev
=program_transform_name
;;
1211 -program-transform-name=* |
--program-transform-name=* \
1212 |
--program-transform-nam=* |
--program-transform-na=* \
1213 |
--program-transform-n=* |
--program-transform-=* \
1214 |
--program-transform=* |
--program-transfor=* \
1215 |
--program-transfo=* |
--program-transf=* \
1216 |
--program-trans=* |
--program-tran=* \
1217 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1218 program_transform_name
=$ac_optarg ;;
1220 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1222 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1223 pdfdir
=$ac_optarg ;;
1225 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1227 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1230 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1231 |
-silent |
--silent |
--silen |
--sile |
--sil)
1234 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1236 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1238 sbindir
=$ac_optarg ;;
1240 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1241 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1242 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1244 ac_prev
=sharedstatedir
;;
1245 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1246 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1247 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1249 sharedstatedir
=$ac_optarg ;;
1251 -site |
--site |
--sit)
1253 -site=* |
--site=* |
--sit=*)
1256 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1258 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1259 srcdir
=$ac_optarg ;;
1261 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1262 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1263 ac_prev
=sysconfdir
;;
1264 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1265 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1266 sysconfdir
=$ac_optarg ;;
1268 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1269 ac_prev
=target_alias
;;
1270 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1271 target_alias
=$ac_optarg ;;
1273 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1276 -version |
--version |
--versio |
--versi |
--vers |
-V)
1277 ac_init_version
=: ;;
1280 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1283 as_fn_error
"invalid package name: $ac_useropt"
1284 ac_useropt_orig
=$ac_useropt
1285 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep
=', ';;
1293 eval with_
$ac_useropt=\
$ac_optarg ;;
1295 -without-* |
--without-*)
1296 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1299 as_fn_error
"invalid package name: $ac_useropt"
1300 ac_useropt_orig
=$ac_useropt
1301 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep
=', ';;
1309 eval with_
$ac_useropt=no
;;
1312 # Obsolete; use --with-x.
1315 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1316 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1317 ac_prev
=x_includes
;;
1318 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1319 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1320 x_includes
=$ac_optarg ;;
1322 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1323 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1324 ac_prev
=x_libraries
;;
1325 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1326 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1327 x_libraries
=$ac_optarg ;;
1329 -*) as_fn_error
"unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1334 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1338 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1340 eval $ac_envvar=\
$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error
"missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1362 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 # Check all directory arguments for consistency.
1368 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val
=\$
$ac_var
1374 # Remove trailing slashes.
1377 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\
$ac_val;;
1380 # Be sure to have absolute directory names.
1382 [\\/$
]* | ?
:[\\/]* ) continue;;
1383 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1385 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1393 target
=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x
; then
1397 if test "x$build_alias" = x
; then
1398 cross_compiling
=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1409 test "$silent" = yes && exec 6>/dev
/null
1412 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di
=`ls -di .` &&
1414 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error
"working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error
"pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted
=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir
=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted
=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1456 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var
in $ac_precious_vars; do
1473 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1475 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1549 --build=BUILD configure
for building on BUILD
[guessed
]
1550 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1551 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1555 if test -n "$ac_init_help"; then
1560 --disable-option-checking ignore unrecognized
--enable/--with options
1561 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1562 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files
in source dir intended
1565 for creating
source tarballs
for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support
for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST
]
1570 enable expensive run-time checks. With LIST
, enable
1571 only specific categories of checks. Categories are
:
1572 yes,no
,all
,none
,release. Flags are
:
1573 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1574 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1575 --enable-coverage[=LEVEL
]
1576 enable compiler
's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-multilib enable library support for multiple ABIs
1583 --enable-__cxa_atexit enable __cxa_atexit for C++
1584 --enable-decimal-float={no,yes,bid,dpd}
1585 enable decimal float extension to C. Selecting 'bid
'
1586 or 'dpd
' choses which decimal floating point format
1588 --enable-fixed-point enable fixed-point arithmetic extension to C
1589 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1591 --enable-tls enable or disable generation of tls code overriding
1592 the assembler check for tls support
1593 --enable-objc-gc enable the use of Boehm's garbage collector with the
1594 GNU Objective-C runtime
1595 --enable-upc-link-script
1596 enable UPC
's use of a custom linker script; this
1597 will define the UPC shared section as a no load
1598 section on targets where this feature is supported
1600 --disable-shared don't provide a shared libgcc
1601 --enable-languages=LIST specify
which front-ends to build
1602 --disable-rpath do not hardcode runtime library paths
1603 --enable-sjlj-exceptions
1604 arrange to use setjmp
/longjmp exception handling
1605 --enable-secureplt enable -msecure-plt by default
for PowerPC
1606 --enable-leading-mingw64-underscores
1607 enable leading underscores on
64 bit mingw targets
1608 --enable-cld enable -mcld by default
for 32bit x86
1609 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1611 --disable-win32-registry
1612 disable lookup of installation paths
in the Registry
1614 --enable-win32-registry enable registry lookup
(default
)
1615 --enable-win32-registry=KEY
1616 use KEY instead of GCC version as the last portion
1618 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1619 --enable-static[=PKGS
] build static libraries
[default
=yes]
1620 --enable-fast-install[=PKGS
]
1621 optimize
for fast installation
[default
=yes]
1622 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1623 --enable-gnu-indirect-function
1624 enable the use of the @gnu_indirect_function to
1626 --enable-initfini-array use .init_array
/.fini_array sections
1627 --enable-comdat enable COMDAT group support
1628 --enable-gnu-unique-object
1629 enable the use of the @gnu_unique_object ELF
1630 extension on glibc systems
1631 --enable-linker-build-id
1632 compiler will always pass
--build-id to linker
1633 --enable-maintainer-mode
1634 enable make rules and dependencies not useful
(and
1635 sometimes confusing
) to the casual installer
1636 --enable-version-specific-runtime-libs
1637 specify that runtime libraries should be installed
1638 in a compiler-specific directory
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-upc-pts={struct
,packed
}
1660 choose the representation of a UPC pointer-to-shared
1661 --with-upc-pts-vaddr-order={last
,first
}
1662 choose position of the address field
in UPC
1663 pointer-to-shared representation
1665 --with-upc-pts-packed-bits=phase
,thread
,vaddr
1666 choose bit distribution
in packed UPC
1667 pointer-to-shared representation
1668 --with-dwarf2 force the default debug format to be DWARF
2
1669 --with-native-system-header-dir=dir
1670 use dir as the directory to
look for standard
1671 system header files
in. Defaults to
/usr
/include.
1672 --with-build-sysroot=sysroot
1673 use sysroot as the system root during the build
1674 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1675 --with-specs=SPECS add SPECS to driver command-line processing
1676 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1677 --with-bugurl=URL Direct users to URL to report a bug
1678 --with-multilib-list select multilibs
(SH and x86-64 only
)
1679 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1680 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1681 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1682 --with-pic try to use only PIC/non-PIC objects [default=use
1684 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1685 --with-plugin-ld=[ARG] specify the plugin linker
1686 --with-long-double-128 use 128-bit long double by default
1687 --with-gc={page,zone} choose the garbage collection mechanism to use with
1689 --with-system-zlib use installed libz
1690 --with-linker-hash-style={sysv,gnu,both}
1691 specify the linker hash style
1693 Some influential environment variables:
1694 CC C compiler command
1695 CFLAGS C compiler flags
1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1697 nonstandard directory <lib dir>
1698 LIBS libraries to pass to the linker, e.g. -l<library>
1699 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1700 you have headers in a nonstandard directory <include dir>
1701 CXX C++ compiler command
1702 CXXFLAGS C++ compiler flags
1704 CXXCPP C++ preprocessor
1705 GMPLIBS How to link GMP
1706 GMPINC How to find GMP include files
1707 ISLLIBS How to link ISL
1708 ISLINC How to find ISL include files
1709 CLOOGLIBS How to link CLOOG
1710 CLOOGINC How to find CLOOG include files
1712 Use these variables to override the choices made by `configure' or to
help
1713 it to
find libraries and programs with nonstandard names
/locations.
1715 Report bugs to the package provider.
1720 if test "$ac_init_help" = "recursive"; then
1721 # If there are subdirs, report their specific --help.
1722 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1723 test -d "$ac_dir" ||
1724 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1729 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1731 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1732 # A ".." for each directory in $ac_dir_suffix.
1733 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1734 case $ac_top_builddir_sub in
1735 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1736 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1739 ac_abs_top_builddir
=$ac_pwd
1740 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1741 # for backward compatibility:
1742 ac_top_builddir
=$ac_top_build_prefix
1745 .
) # We are building in place.
1747 ac_top_srcdir
=$ac_top_builddir_sub
1748 ac_abs_top_srcdir
=$ac_pwd ;;
1749 [\\/]* | ?
:[\\/]* ) # Absolute name.
1750 ac_srcdir
=$srcdir$ac_dir_suffix;
1751 ac_top_srcdir
=$srcdir
1752 ac_abs_top_srcdir
=$srcdir ;;
1754 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1755 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1756 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1758 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1760 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1761 # Check for guested configure.
1762 if test -f "$ac_srcdir/configure.gnu"; then
1764 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1765 elif test -f "$ac_srcdir/configure"; then
1767 $SHELL "$ac_srcdir/configure" --help=recursive
1769 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1775 test -n "$ac_init_help" && exit $ac_status
1776 if $ac_init_version; then
1779 generated by GNU Autoconf
2.64
1781 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1782 This configure
script is free software
; the Free Software Foundation
1783 gives unlimited permission to copy
, distribute and modify it.
1788 ## ------------------------ ##
1789 ## Autoconf initialization. ##
1790 ## ------------------------ ##
1792 # ac_fn_c_try_compile LINENO
1793 # --------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_compile
()
1797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1798 rm -f conftest.
$ac_objext
1799 if { { ac_try
="$ac_compile"
1801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_compile") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest.$ac_objext; then :
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_try_compile
1830 # ac_fn_cxx_try_compile LINENO
1831 # ----------------------------
1832 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_cxx_try_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext
1837 if { { ac_try="$ac_compile"
1839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1840 *) ac_try_echo
=$ac_try;;
1842 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_compile") 2>conftest.err
1846 if test -s conftest.err
; then
1847 grep -v '^ *+' conftest.err
>conftest.er1
1848 cat conftest.er1
>&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_cxx_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest.
$ac_objext; then :
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.
$ac_ext >&5
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1866 } # ac_fn_cxx_try_compile
1868 # ac_fn_c_try_cpp LINENO
1869 # ----------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1873 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1874 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } >/dev/null && {
1890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1910 ac_fn_c_check_header_mongrel ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1934 ac_header_compiler=no
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1950 ac_header_preproc=no
1952 rm -f conftest.err conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1980 $as_echo_n "(cached) " >&6
1982 eval "$3=\$ac_header_compiler"
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 } # ac_fn_c_check_header_mongrel
1992 # ac_fn_c_try_run LINENO
1993 # ----------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1995 # that executables *can* be run.
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if { { ac_try="$ac_link"
2001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2002 *) ac_try_echo
=$ac_try;;
2004 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>&5
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2010 { { case "(($ac_try" in
2011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_try") 2>&5
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; }; }; then :
2022 $as_echo "$as_me: program exited with status $ac_status" >&5
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2026 ac_retval=$ac_status
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists and can be compiled using the include files in
2037 # INCLUDES, setting the cache variable VAR accordingly.
2038 ac_fn_c_check_header_compile ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2051 if ac_fn_c_try_compile "$LINENO"; then :
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063 } # ac_fn_c_check_header_compile
2065 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2066 # --------------------------------------------
2067 # Tries to find the compile-time value of EXPR in a program that includes
2068 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2070 ac_fn_c_compute_int ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if test "$cross_compiling" = yes; then
2074 # Depending upon the size, compute the lo and hi bounds.
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 static int test_array [1 - 2 * !(($2) >= 0)];
2088 if ac_fn_c_try_compile "$LINENO"; then :
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid; break
2107 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2108 if test $ac_lo -le $ac_mid; then
2112 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) < 0)];
2130 if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_lo=$ac_mid; break
2149 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2150 if test $ac_mid -le $ac_hi; then
2154 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 # Binary search between lo and hi bounds.
2165 while test "x$ac_lo" != "x$ac_hi"; do
2166 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180 if ac_fn_c_try_compile "$LINENO"; then :
2183 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2195 static long int longval () { return $2; }
2196 static unsigned long int ulongval () { return $2; }
2203 FILE *f = fopen ("conftest.val", "w");
2208 long int i = longval ();
2211 fprintf (f, "%ld", i);
2215 unsigned long int i = ulongval ();
2218 fprintf (f, "%lu", i);
2220 /* Do not output a trailing newline, as this causes \r\n confusion
2221 on some platforms. */
2222 return ferror (f) || fclose (f) != 0;
2228 if ac_fn_c_try_run "$LINENO"; then :
2229 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2234 conftest.$ac_objext conftest.beam conftest.$ac_ext
2238 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241 } # ac_fn_c_compute_int
2243 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2244 # -------------------------------------------
2245 # Tests whether TYPE exists after having included INCLUDES, setting cache
2246 # variable VAR accordingly.
2247 ac_fn_c_check_type ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2253 $as_echo_n "(cached) " >&6
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2281 if ac_fn_c_try_compile "$LINENO"; then :
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295 } # ac_fn_c_check_type
2297 # ac_fn_c_find_intX_t LINENO BITS VAR
2298 # -----------------------------------
2299 # Finds a signed integer type with width BITS, setting cache variable VAR
2301 ac_fn_c_find_intX_t ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2305 $as_echo_n "checking for int$2_t... " >&6; }
2306 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2307 $as_echo_n "(cached) " >&6
2310 for ac_type in int$2_t 'int' 'long int' \
2311 'long long int' 'short int' 'signed char'; do
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $ac_includes_default
2318 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $ac_includes_default
2332 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2333 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2340 if ac_fn_c_try_compile "$LINENO"; then :
2347 eval "$3=\$ac_type" ;;
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 if test "x$as_val" = x""no; then :
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366 } # ac_fn_c_find_intX_t
2368 # ac_fn_c_try_link LINENO
2369 # -----------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded.
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext conftest$ac_exeext
2375 if { { ac_try="$ac_link"
2377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2378 *) ac_try_echo
=$ac_try;;
2380 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_link") 2>conftest.err
2384 if test -s conftest.err
; then
2385 grep -v '^ *+' conftest.err
>conftest.er1
2386 cat conftest.er1
>&5
2387 mv -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest
$ac_exeext && {
2394 test "$cross_compiling" = yes ||
2395 $as_test_x conftest
$ac_exeext
2399 $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.
$ac_ext >&5
2404 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406 # interfere with the next link command; also delete a directory that is
2407 # left behind by Apple's compiler. We do this before executing the actions.
2408 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2412 } # ac_fn_c_try_link
2414 # ac_fn_c_find_uintX_t LINENO BITS VAR
2415 # ------------------------------------
2416 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2418 ac_fn_c_find_uintX_t
()
2420 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2422 $as_echo_n "checking for uint$2_t... " >&6; }
2423 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424 $as_echo_n "(cached) " >&6
2427 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2428 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 $ac_includes_default
2435 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2442 if ac_fn_c_try_compile
"$LINENO"; then :
2447 eval "$3=\$ac_type" ;;
2450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2452 if test "x$as_val" = x
""no
; then :
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461 $as_echo "$ac_res" >&6; }
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2464 } # ac_fn_c_find_uintX_t
2466 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2467 # ----------------------------------------------
2468 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2469 ac_fn_c_check_header_preproc
()
2471 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2475 $as_echo_n "(cached) " >&6
2477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2481 if ac_fn_c_try_cpp
"$LINENO"; then :
2486 rm -f conftest.err conftest.
$ac_ext
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2493 } # ac_fn_c_check_header_preproc
2495 # ac_fn_cxx_try_cpp LINENO
2496 # ------------------------
2497 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2498 ac_fn_cxx_try_cpp
()
2500 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2501 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 $as_echo "$ac_try_echo"; } >&5
2508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2510 if test -s conftest.err; then
2511 grep -v '^ *+' conftest.err >conftest.er1
2512 cat conftest.er1 >&5
2513 mv -f conftest.er1 conftest.err
2515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2516 test $ac_status = 0; } >/dev/null && {
2517 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2518 test ! -s conftest.err
2522 $as_echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530 } # ac_fn_cxx_try_cpp
2532 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2533 # ------------------------------------------------
2534 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2535 ac_fn_cxx_check_header_preproc ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2541 $as_echo_n "(cached) " >&6
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2547 if ac_fn_cxx_try_cpp "$LINENO"; then :
2552 rm -f conftest.err conftest.$ac_ext
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559 } # ac_fn_cxx_check_header_preproc
2561 # ac_fn_c_check_func LINENO FUNC VAR
2562 # ----------------------------------
2563 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2564 ac_fn_c_check_func ()
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2568 $as_echo_n "checking for $2... " >&6; }
2569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2570 $as_echo_n "(cached) " >&6
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2574 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2576 #define $2 innocuous_$2
2578 /* System header to define __stub macros and hopefully few prototypes,
2579 which can conflict with char $2 (); below.
2580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2581 <limits.h> exists even on freestanding compilers. */
2584 # include <limits.h>
2586 # include <assert.h>
2591 /* Override any GCC internal prototype to avoid an error.
2592 Use char because int might match the return type of a GCC
2593 builtin and then its argument prototype would still apply. */
2598 /* The GNU C library defines this for functions which it implements
2599 to always fail with ENOSYS. Some functions are actually named
2600 something starting with __ and the normal name is an alias. */
2601 #if defined __stub_$2 || defined __stub___$2
2613 if ac_fn_c_try_link "$LINENO"; then :
2618 rm -f core conftest.err conftest.$ac_objext \
2619 conftest$ac_exeext conftest.$ac_ext
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623 $as_echo "$ac_res" >&6; }
2624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2626 } # ac_fn_c_check_func
2628 # ac_fn_cxx_try_link LINENO
2629 # -------------------------
2630 # Try to link conftest.$ac_ext, and return whether this succeeded.
2631 ac_fn_cxx_try_link ()
2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { { ac_try="$ac_link"
2637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2638 *) ac_try_echo
=$ac_try;;
2640 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642 (eval "$ac_link") 2>conftest.err
2644 if test -s conftest.err
; then
2645 grep -v '^ *+' conftest.err
>conftest.er1
2646 cat conftest.er1
>&5
2647 mv -f conftest.er1 conftest.err
2649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2650 test $ac_status = 0; } && {
2651 test -z "$ac_cxx_werror_flag" ||
2652 test ! -s conftest.err
2653 } && test -s conftest
$ac_exeext && {
2654 test "$cross_compiling" = yes ||
2655 $as_test_x conftest
$ac_exeext
2659 $as_echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.
$ac_ext >&5
2664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2666 # interfere with the next link command; also delete a directory that is
2667 # left behind by Apple's compiler. We do this before executing the actions.
2668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2669 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2672 } # ac_fn_cxx_try_link
2673 cat >config.log
<<_ACEOF
2674 This file contains any messages produced by compilers while
2675 running configure, to aid debugging if configure makes a mistake.
2677 It was created by $as_me, which was
2678 generated by GNU Autoconf 2.64. Invocation command line was
2690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2697 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2699 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2700 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2702 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 $as_echo "PATH: $as_dir"
2730 # Keep a trace of the command line.
2731 # Strip out --no-create and --no-recursion so they do not pile up.
2732 # Strip out --silent because we don't want to record it for future runs.
2733 # Also quote any args containing shell meta-characters.
2734 # Make two passes to allow for proper duplicate-argument suppression.
2738 ac_must_keep_next
=false
2744 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2745 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2746 |
-silent |
--silent |
--silen |
--sile |
--sil)
2749 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2752 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2754 as_fn_append ac_configure_args1
" '$ac_arg'"
2755 if test $ac_must_keep_next = true
; then
2756 ac_must_keep_next
=false
# Got value, back to normal.
2759 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2760 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2761 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2762 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2763 case "$ac_configure_args0 " in
2764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2767 -* ) ac_must_keep_next
=true
;;
2770 as_fn_append ac_configure_args
" '$ac_arg'"
2775 { ac_configure_args0
=; unset ac_configure_args0
;}
2776 { ac_configure_args1
=; unset ac_configure_args1
;}
2778 # When interrupted or exit'd, cleanup temporary files, and complete
2779 # config.log. We remove comments because anyway the quotes in there
2780 # would cause problems or look ugly.
2781 # WARNING: Use '\'' to represent an apostrophe within the trap.
2782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2783 trap 'exit_status=$?
2784 # Save into config.log some information that might help in debugging.
2789 ## ---------------- ##
2790 ## Cache variables. ##
2791 ## ---------------- ##
2794 # The following way of writing the cache mishandles newlines in values,
2796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2797 eval ac_val=\$$ac_var
2801 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2805 _ | IFS | as_nl) ;; #(
2806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2807 *) { eval $ac_var=; unset $ac_var;} ;;
2812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2813 *${as_nl}ac_space=\ *)
2815 "s/'\''/'\''\\\\'\'''\''/g;
2816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2827 ## ----------------- ##
2828 ## Output variables. ##
2829 ## ----------------- ##
2832 for ac_var in $ac_subst_vars
2834 eval ac_val=\$$ac_var
2836 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 $as_echo "$ac_var='\''$ac_val'\''"
2842 if test -n "$ac_subst_files"; then
2844 ## ------------------- ##
2845 ## File substitutions. ##
2846 ## ------------------- ##
2849 for ac_var
in $ac_subst_files
2851 eval ac_val
=\$
$ac_var
2853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2855 $as_echo "$ac_var='\''$ac_val'\''"
2860 if test -s confdefs.h; then
2870 test "$ac_signal" != 0 &&
2871 $as_echo "$as_me: caught signal $ac_signal"
2872 $as_echo "$as_me: exit $exit_status"
2874 rm -f core *.core core.conftest.* &&
2875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2878 for ac_signal
in 1 2 13 15; do
2879 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2884 rm -f -r conftest
* confdefs.h
2886 $as_echo "/* confdefs.h */" > confdefs.h
2888 # Predefined preprocessor variables.
2890 cat >>confdefs.h
<<_ACEOF
2891 #define PACKAGE_NAME "$PACKAGE_NAME"
2894 cat >>confdefs.h
<<_ACEOF
2895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2898 cat >>confdefs.h
<<_ACEOF
2899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2902 cat >>confdefs.h
<<_ACEOF
2903 #define PACKAGE_STRING "$PACKAGE_STRING"
2906 cat >>confdefs.h
<<_ACEOF
2907 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2910 cat >>confdefs.h
<<_ACEOF
2911 #define PACKAGE_URL "$PACKAGE_URL"
2915 # Let the site file select an alternate cache file if it wants to.
2916 # Prefer an explicitly selected file to automatically selected ones.
2919 if test -n "$CONFIG_SITE"; then
2920 ac_site_file1
=$CONFIG_SITE
2921 elif test "x$prefix" != xNONE
; then
2922 ac_site_file1
=$prefix/share
/config.site
2923 ac_site_file2
=$prefix/etc
/config.site
2925 ac_site_file1
=$ac_default_prefix/share
/config.site
2926 ac_site_file2
=$ac_default_prefix/etc
/config.site
2928 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2930 test "x$ac_site_file" = xNONE
&& continue
2931 if test -r "$ac_site_file"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2933 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2934 sed 's/^/| /' "$ac_site_file" >&5
2939 if test -r "$cache_file"; then
2940 # Some versions of bash will fail to source /dev/null (special
2941 # files actually), so we avoid doing that.
2942 if test -f "$cache_file"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2944 $as_echo "$as_me: loading cache $cache_file" >&6;}
2946 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2947 *) .
"./$cache_file";;
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2952 $as_echo "$as_me: creating cache $cache_file" >&6;}
2956 # Check that the precious variables saved in the cache have kept the same
2958 ac_cache_corrupted
=false
2959 for ac_var
in $ac_precious_vars; do
2960 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2961 eval ac_new_set
=\
$ac_env_${ac_var}_set
2962 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2963 eval ac_new_val
=\
$ac_env_${ac_var}_value
2964 case $ac_old_set,$ac_new_set in
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2967 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2968 ac_cache_corrupted
=: ;;
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2971 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2972 ac_cache_corrupted
=: ;;
2975 if test "x$ac_old_val" != "x$ac_new_val"; then
2976 # differences in whitespace do not lead to failure.
2977 ac_old_val_w
=`echo x $ac_old_val`
2978 ac_new_val_w
=`echo x $ac_new_val`
2979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2981 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2982 ac_cache_corrupted
=:
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2985 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2986 eval $ac_var=\
$ac_old_val
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2989 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2991 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2994 # Pass precious variables to config.status.
2995 if test "$ac_new_set" = set; then
2997 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2998 *) ac_arg
=$ac_var=$ac_new_val ;;
3000 case " $ac_configure_args " in
3001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3002 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3006 if $ac_cache_corrupted; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3011 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3013 ## -------------------- ##
3014 ## Main body of script. ##
3015 ## -------------------- ##
3018 ac_cpp
='$CPP $CPPFLAGS'
3019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3028 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3031 gcc_version
=`cat $srcdir/BASE-VER`
3033 # Determine the host, build, and target systems
3035 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3036 for ac_t
in install-sh
install.sh shtool
; do
3037 if test -f "$ac_dir/$ac_t"; then
3039 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3044 if test -z "$ac_aux_dir"; then
3045 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3048 # These three variables are undocumented and unsupported,
3049 # and are intended to be withdrawn in a future Autoconf release.
3050 # They can cause serious problems if a builder's source tree is in a directory
3051 # whose full name contains unusual characters.
3052 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3053 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3054 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3057 # Make sure we can run config.sub.
3058 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3059 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3062 $as_echo_n "checking build system type... " >&6; }
3063 if test "${ac_cv_build+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3066 ac_build_alias
=$build_alias
3067 test "x$ac_build_alias" = x
&&
3068 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3069 test "x$ac_build_alias" = x
&&
3070 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3071 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3072 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3076 $as_echo "$ac_cv_build" >&6; }
3077 case $ac_cv_build in
3079 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3082 ac_save_IFS
=$IFS; IFS
='-'
3088 # Remember, the first character of IFS is used to create $*,
3089 # except with old shells:
3092 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3096 $as_echo_n "checking host system type... " >&6; }
3097 if test "${ac_cv_host+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3100 if test "x$host_alias" = x
; then
3101 ac_cv_host
=$ac_cv_build
3103 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3104 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3109 $as_echo "$ac_cv_host" >&6; }
3112 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3115 ac_save_IFS
=$IFS; IFS
='-'
3121 # Remember, the first character of IFS is used to create $*,
3122 # except with old shells:
3125 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3129 $as_echo_n "checking target system type... " >&6; }
3130 if test "${ac_cv_target+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3133 if test "x$target_alias" = x
; then
3134 ac_cv_target
=$ac_cv_host
3136 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3137 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3142 $as_echo "$ac_cv_target" >&6; }
3143 case $ac_cv_target in
3145 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3147 target
=$ac_cv_target
3148 ac_save_IFS
=$IFS; IFS
='-'
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3158 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3161 # The aliases save the names the user supplied, while $host etc.
3162 # will get canonicalized.
3163 test -n "$target_alias" &&
3164 test "$program_prefix$program_suffix$program_transform_name" = \
3166 program_prefix
=${target_alias}-
3168 # Determine the noncanonical target name, for directory use.
3169 case ${build_alias} in
3170 "") build_noncanonical
=${build} ;;
3171 *) build_noncanonical
=${build_alias} ;;
3174 case ${host_alias} in
3175 "") host_noncanonical
=${build_noncanonical} ;;
3176 *) host_noncanonical
=${host_alias} ;;
3179 case ${target_alias} in
3180 "") target_noncanonical
=${host_noncanonical} ;;
3181 *) target_noncanonical
=${target_alias} ;;
3187 # Determine the target- and build-specific subdirectories
3189 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3190 # have matching libraries, they should use host libraries: Makefile.tpl
3191 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3192 # However, they still use the build modules, because the corresponding
3193 # host modules (e.g. bison) are only built for the host when bootstrap
3195 # - build_subdir is where we find build modules, and never changes.
3196 # - build_libsubdir is where we find build libraries, and can be overridden.
3198 # Prefix 'build-' so this never conflicts with target_subdir.
3199 build_subdir
="build-${build_noncanonical}"
3201 # Check whether --with-build-libsubdir was given.
3202 if test "${with_build_libsubdir+set}" = set; then :
3203 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3205 build_libsubdir
="$build_subdir"
3208 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3209 if ( test $srcdir = .
&& test -d gcc
) \
3210 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3211 host_subdir
="host-${host_noncanonical}"
3216 target_subdir
=${target_noncanonical}
3219 # Set program_transform_name
3220 test "$program_prefix" != NONE
&&
3221 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3222 # Use a double $ so make ignores it.
3223 test "$program_suffix" != NONE
&&
3224 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3225 # Double any \ or $.
3226 # By default was `s,x,x', remove it if useless.
3227 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3228 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3231 # Check for bogus environment variables.
3232 # Test if LIBRARY_PATH contains the notation for the current directory
3233 # since this would lead to problems installing/building glibc.
3234 # LIBRARY_PATH contains the current directory if one of the following
3236 # - one of the terminals (":" and ";") is the first or last sign
3237 # - two terminals occur directly after each other
3238 # - the path contains an element with a dot in it
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3240 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3241 case ${LIBRARY_PATH} in
3242 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3243 library_path_setting
="contains current directory"
3246 library_path_setting
="ok"
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3250 $as_echo "$library_path_setting" >&6; }
3251 if test "$library_path_setting" != "ok"; then
3253 *** LIBRARY_PATH shouldn't contain the current directory when
3254 *** building gcc. Please change the environment variable
3255 *** and run configure again." "$LINENO" 5
3258 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3259 # since this would lead to problems installing/building glibc.
3260 # GCC_EXEC_PREFIX contains the current directory if one of the following
3262 # - one of the terminals (":" and ";") is the first or last sign
3263 # - two terminals occur directly after each other
3264 # - the path contains an element with a dot in it
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3266 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3267 case ${GCC_EXEC_PREFIX} in
3268 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3269 gcc_exec_prefix_setting
="contains current directory"
3272 gcc_exec_prefix_setting
="ok"
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3276 $as_echo "$gcc_exec_prefix_setting" >&6; }
3277 if test "$gcc_exec_prefix_setting" != "ok"; then
3279 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3280 *** building gcc. Please change the environment variable
3281 *** and run configure again." "$LINENO" 5
3288 # Specify the local prefix
3291 # Check whether --with-local-prefix was given.
3292 if test "${with_local_prefix+set}" = set; then :
3293 withval
=$with_local_prefix; case "${withval}" in
3294 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3296 *) local_prefix
=$with_local_prefix ;;
3301 # Default local prefix if it is empty
3302 if test x
$local_prefix = x
; then
3303 local_prefix
=/usr
/local
3306 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3307 # passed in by the toplevel make and thus we'd get different behavior
3308 # depending on where we built the sources.
3309 gcc_gxx_include_dir
=
3310 # Specify the g++ header file directory
3312 # Check whether --with-gxx-include-dir was given.
3313 if test "${with_gxx_include_dir+set}" = set; then :
3314 withval
=$with_gxx_include_dir; case "${withval}" in
3315 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3317 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3322 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3323 if test x
${gcc_gxx_include_dir} = x
; then
3324 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3325 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3327 libstdcxx_incdir
='include/c++/$(version)'
3328 if test x
$host != x
$target; then
3329 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3331 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3335 gcc_gxx_include_dir_add_sysroot
=0
3336 if test "${with_sysroot+set}" = set; then
3337 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3338 if test "${gcc_gxx_without_sysroot}"; then
3339 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3340 gcc_gxx_include_dir_add_sysroot
=1
3345 # Check whether --with-cpp_install_dir was given.
3346 if test "${with_cpp_install_dir+set}" = set; then :
3347 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3348 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3349 elif test x
$withval != xno
; then
3350 cpp_install_dir
=$withval
3355 # We would like to our source tree to be readonly. However when releases or
3356 # pre-releases are generated, the flex/bison generated files as well as the
3357 # various formats of manuals need to be included along with the rest of the
3358 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3362 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3363 # Check whether --enable-generated-files-in-srcdir was given.
3364 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3365 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3367 generated_files_in_srcdir
=no
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3372 $as_echo "$generated_files_in_srcdir" >&6; }
3374 if test "$generated_files_in_srcdir" = "yes"; then
3381 # -------------------
3382 # Find default linker
3383 # -------------------
3387 # Check whether --with-gnu-ld was given.
3388 if test "${with_gnu_ld+set}" = set; then :
3389 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3395 # With pre-defined ld
3397 # Check whether --with-ld was given.
3398 if test "${with_ld+set}" = set; then :
3399 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3402 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3403 if test ! -x "$DEFAULT_LINKER"; then
3404 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3405 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3409 cat >>confdefs.h
<<_ACEOF
3410 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3416 $as_echo_n "checking whether a default linker was specified... " >&6; }
3417 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3418 if test x
"$gnu_ld_flag" = x
"no"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3420 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3423 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3430 # With demangler in GNU ld
3432 # Check whether --with-demangler-in-ld was given.
3433 if test "${with_demangler_in_ld+set}" = set; then :
3434 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3440 # ----------------------
3441 # Find default assembler
3442 # ----------------------
3446 # Check whether --with-gnu-as was given.
3447 if test "${with_gnu_as+set}" = set; then :
3448 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3455 # Check whether --with-as was given.
3456 if test "${with_as+set}" = set; then :
3457 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3460 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3461 if test ! -x "$DEFAULT_ASSEMBLER"; then
3462 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3463 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3467 cat >>confdefs.h
<<_ACEOF
3468 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3474 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3475 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3476 if test x
"$gas_flag" = x
"no"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3478 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3481 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3492 # If a non-executable a.out is present (e.g. created by GNU as above even if
3493 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3494 # file, even when creating an executable, so an execution test fails.
3495 # Remove possible default executable files to avoid this.
3497 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3498 # Autoconf includes it.
3499 rm -f a.out a.exe b.out
3501 # Find the native compiler
3503 ac_cpp
='$CPP $CPPFLAGS'
3504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC
="$CC" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_exec_ext
in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$ac_cv_prog_CC"; then
3548 # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc
; ac_word
=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$ac_ct_CC"; then
3556 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_CC
="gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3576 if test -n "$ac_ct_CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578 $as_echo "$ac_ct_CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3584 if test "x$ac_ct_CC" = x
; then
3587 case $cross_compiling:$ac_tool_warned in
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned
=yes ;;
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_CC+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC
="$CC" # Let the user override the test.
3611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir
=.
3616 for ac_exec_ext
in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 # Extract the first word of "cc", so it can be a program name with args.
3642 set dummy cc
; ac_word
=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_CC+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC
="$CC" # Let the user override the test.
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660 ac_prog_rejected
=yes
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 if test $ac_prog_rejected = yes; then
3672 # We found a bogon in the path, so make sure we never use it.
3673 set dummy
$ac_cv_prog_CC
3675 if test $# != 0; then
3676 # We chose a different compiler from the bogus one.
3677 # However, it has the same basename, so the bogon will be chosen
3678 # first if we set CC to just the basename; use the full file name.
3680 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 for ac_prog
in cl.exe
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC
="$CC" # Let the user override the test.
3710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir
=.
3715 for ac_exec_ext
in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3737 test -n "$CC" && break
3740 if test -z "$CC"; then
3742 for ac_prog
in cl.exe
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy
$ac_prog; ac_word
=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir
=.
3759 for ac_exec_ext
in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_ac_ct_CC
="$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774 $as_echo "$ac_ct_CC" >&6; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3781 test -n "$ac_ct_CC" && break
3784 if test "x$ac_ct_CC" = x
; then
3787 case $cross_compiling:$ac_tool_warned in
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned
=yes ;;
3800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error
"no acceptable C compiler found in \$PATH
3803 See \`config.log' for more details." "$LINENO" 5; }
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3809 for ac_option
in --version -v -V -qversion; do
3810 { { ac_try
="$ac_compiler $ac_option >&5"
3812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 if test -s conftest.err; then
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3824 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 ac_clean_files_save=$ac_clean_files
3842 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3843 # Try to create an executable without -o first, disregard a.out.
3844 # It will help us diagnose broken compilers, and finding out an intuition
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3847 $as_echo_n "checking for C compiler default output file name... " >&6; }
3848 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3850 # The possible output files:
3851 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3854 for ac_file in $ac_files
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3863 if { { ac_try="$ac_link_default"
3865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3866 *) ac_try_echo
=$ac_try;;
3868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_link_default") 2>&5
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; then :
3874 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3876 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3877 # so that the user can short-circuit this test for compilers unknown to
3879 for ac_file
in $ac_files ''
3881 test -f "$ac_file" ||
continue
3883 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3886 # We found the default executable, but exeext='' is most
3890 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3892 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 # We set ac_cv_exeext here because the later test for it is not
3895 # safe: cross compilers may not add the suffix if given an `-o'
3896 # argument, so we may need to know it at that point already.
3897 # Even if this section looks crufty: it has the advantage of
3904 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3910 $as_echo "$ac_file" >&6; }
3911 if test -z "$ac_file"; then :
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.
$ac_ext >&5
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 { as_fn_set_status
77
3918 as_fn_error
"C compiler cannot create executables
3919 See \`config.log' for more details." "$LINENO" 5; }; }
3921 ac_exeext
=$ac_cv_exeext
3923 # Check that the compiler produces executables we can run. If not, either
3924 # the compiler is broken, or we cross compile.
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3926 $as_echo_n "checking whether the C compiler works... " >&6; }
3927 # If not cross compiling, check that we can run a simple program.
3928 if test "$cross_compiling" != yes; then
3929 if { ac_try
='./$ac_file'
3930 { { case "(($ac_try" in
3931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_try") 2>&5
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; }; then
3942 if test "$cross_compiling" = maybe; then
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error "cannot run C compiled programs.
3948 If you meant to cross compile
, use \
`--host'.
3949 See \`config.log
' for more details." "$LINENO" 5; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3956 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3957 ac_clean_files=$ac_clean_files_save
3958 # Check that the compiler produces executables we can run. If not, either
3959 # the compiler is broken, or we cross compile.
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3961 $as_echo_n "checking whether we are cross compiling... " >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3963 $as_echo "$cross_compiling" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3966 $as_echo_n "checking for suffix of executables... " >&6; }
3967 if { { ac_try="$ac_link"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_link") 2>&5
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3979 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3980 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3982 for ac_file
in conftest.exe conftest conftest.
*; do
3983 test -f "$ac_file" ||
continue
3985 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3986 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3995 See \`config.log' for more details." "$LINENO" 5; }
3997 rm -f conftest
$ac_cv_exeext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3999 $as_echo "$ac_cv_exeext" >&6; }
4001 rm -f conftest.
$ac_ext
4002 EXEEXT
=$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4005 $as_echo_n "checking for suffix of object files... " >&6; }
4006 if test "${ac_cv_objext+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4020 rm -f conftest.o conftest.obj
4021 if { { ac_try
="$ac_compile"
4023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_compile") 2>&5
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }; then :
4032 for ac_file in conftest.o conftest.obj conftest.*; do
4033 test -f "$ac_file" || continue;
4035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error "cannot compute suffix of object files
: cannot compile
4047 See \
`config.log' for more details." "$LINENO" 5; }
4049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4052 $as_echo "$ac_cv_objext" >&6; }
4053 OBJEXT=$ac_cv_objext
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4056 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4057 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4074 if ac_fn_c_try_compile "$LINENO"; then :
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4084 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4085 if test $ac_compiler_gnu = yes; then
4090 ac_test_CFLAGS=${CFLAGS+set}
4091 ac_save_CFLAGS=$CFLAGS
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4093 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4094 if test "${ac_cv_prog_cc_g+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4097 ac_save_c_werror_flag=$ac_c_werror_flag
4098 ac_c_werror_flag=yes
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile "$LINENO"; then :
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4127 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_c_werror_flag=$ac_save_c_werror_flag
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4143 if ac_fn_c_try_compile "$LINENO"; then :
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ac_c_werror_flag=$ac_save_c_werror_flag
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4154 $as_echo "$ac_cv_prog_cc_g" >&6; }
4155 if test "$ac_test_CFLAGS" = set; then
4156 CFLAGS=$ac_save_CFLAGS
4157 elif test $ac_cv_prog_cc_g = yes; then
4158 if test "$GCC" = yes; then
4164 if test "$GCC" = yes; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4171 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4172 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4175 ac_cv_prog_cc_c89=no
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4181 #include <sys/types.h>
4182 #include <sys/stat.h>
4183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4184 struct buf { int x; };
4185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4186 static char *e (p, i)
4192 static char *f (char * (*g) (char **, int), char **p, ...)
4197 s = g (p, va_arg (v,int));
4202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4203 function prototypes and stuff, but not '\xHH' hex character constants.
4204 These don't provoke an error unfortunately, instead are silently treated
4205 as 'x'. The following induces an error, until -std is added to get
4206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4207 array size at least. It's necessary to write '\x00'==0 to get something
4208 that's true only with -std. */
4209 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4212 inside strings and character constants. */
4214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4216 int test (int i, double x);
4217 struct s1 {int (*f) (int a);};
4218 struct s2 {int (*f) (double a);};
4219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4233 CC="$ac_save_CC $ac_arg"
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_cv_prog_cc_c89=$ac_arg
4237 rm -f core conftest.err conftest.$ac_objext
4238 test "x$ac_cv_prog_cc_c89" != "xno" && break
4240 rm -f conftest.$ac_ext
4245 case "x$ac_cv_prog_cc_c89" in
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4248 $as_echo "none needed" >&6; } ;;
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4251 $as_echo "unsupported" >&6; } ;;
4253 CC="$CC $ac_cv_prog_cc_c89"
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4257 if test "x$ac_cv_prog_cc_c89" != xno; then :
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267 if test "x$CC" != xcc; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4269 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4272 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4274 set dummy $CC; ac_cc=`$as_echo "$2" |
4275 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4276 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4277 $as_echo_n "(cached) " >&6
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4290 # Make sure it works both with $CC and with simple cc.
4291 # We do the test twice because some compilers refuse to overwrite an
4292 # existing .o file with -o, though they will create one.
4293 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4295 if { { case "(($ac_try" in
4296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4297 *) ac_try_echo
=$ac_try;;
4299 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; } &&
4305 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; };
4316 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4317 if test "x$CC" != xcc; then
4318 # Test first that cc exists at all.
4319 if { ac_try='cc -c conftest.$ac_ext >&5'
4320 { { case "(($ac_try" in
4321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4322 *) ac_try_echo
=$ac_try;;
4324 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_try") 2>&5
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }; }; then
4330 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4332 if { { case "(($ac_try" in
4333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_try") 2>&5
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; } &&
4342 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4344 *) ac_try_echo
=$ac_try;;
4346 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 $as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_try") 2>&5
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; };
4356 # cc exists but doesn't like -o.
4357 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4362 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4364 rm -f core conftest
*
4367 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4374 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4378 # expand $ac_aux_dir to an absolute path
4379 am_aux_dir
=`cd $ac_aux_dir && pwd`
4381 # FIXME: we rely on the cache variable name because
4382 # there is no other way.
4384 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4385 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4386 if test "$am_t" != yes; then
4387 # Losing compiler, so override with the script.
4388 # FIXME: It is wrong to rewrite CC.
4389 # But if we don't then we get into trouble of one sort or another.
4390 # A longer-term fix would be to have automake use am__CC in this case,
4391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4392 CC
="$am_aux_dir/compile $CC"
4397 ac_cpp
='$CXXCPP $CPPFLAGS'
4398 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4401 if test -z "$CXX"; then
4402 if test -n "$CCC"; then
4405 if test -n "$ac_tool_prefix"; then
4406 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if test "${ac_cv_prog_CXX+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4415 if test -n "$CXX"; then
4416 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir
=.
4423 for ac_exec_ext
in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 if test -n "$CXX"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4438 $as_echo "$CXX" >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4445 test -n "$CXX" && break
4448 if test -z "$CXX"; then
4450 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4452 # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy
$ac_prog; ac_word
=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -n "$ac_ct_CXX"; then
4460 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir
=.
4467 for ac_exec_ext
in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4480 if test -n "$ac_ct_CXX"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4482 $as_echo "$ac_ct_CXX" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4489 test -n "$ac_ct_CXX" && break
4492 if test "x$ac_ct_CXX" = x
; then
4495 case $cross_compiling:$ac_tool_warned in
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned
=yes ;;
4507 # Provide some information about the compiler.
4508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4511 for ac_option
in --version -v -V -qversion; do
4512 { { ac_try
="$ac_compiler $ac_option >&5"
4514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4521 if test -s conftest.err; then
4523 ... rest of stderr output deleted ...
4524 10q' conftest.err >conftest.er1
4525 cat conftest.er1 >&5
4526 rm -f conftest.er1 conftest.err
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4533 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4534 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4551 if ac_fn_cxx_try_compile "$LINENO"; then :
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4561 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4562 if test $ac_compiler_gnu = yes; then
4567 ac_test_CXXFLAGS=${CXXFLAGS+set}
4568 ac_save_CXXFLAGS=$CXXFLAGS
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4570 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4571 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4574 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4575 ac_cxx_werror_flag=yes
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4590 ac_cv_prog_cxx_g=yes
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4604 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4620 if ac_fn_cxx_try_compile "$LINENO"; then :
4621 ac_cv_prog_cxx_g=yes
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4631 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4632 if test "$ac_test_CXXFLAGS" = set; then
4633 CXXFLAGS=$ac_save_CXXFLAGS
4634 elif test $ac_cv_prog_cxx_g = yes; then
4635 if test "$GXX" = yes; then
4641 if test "$GXX" = yes; then
4648 ac_cpp='$CPP $CPPFLAGS'
4649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4664 if test -n "$GNATBIND"; then
4665 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 GNATBIND=$ac_cv_prog_GNATBIND
4685 if test -n "$GNATBIND"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4687 $as_echo "$GNATBIND" >&6; }
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4695 if test -z "$ac_cv_prog_GNATBIND"; then
4696 ac_ct_GNATBIND=$GNATBIND
4697 # Extract the first word of "gnatbind", so it can be a program name with args.
4698 set dummy gnatbind; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 if test -n "$ac_ct_GNATBIND"; then
4705 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4725 if test -n "$ac_ct_GNATBIND"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4727 $as_echo "$ac_ct_GNATBIND" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4733 if test "x$ac_ct_GNATBIND" = x; then
4736 case $cross_compiling:$ac_tool_warned in
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4742 GNATBIND=$ac_ct_GNATBIND
4745 GNATBIND="$ac_cv_prog_GNATBIND"
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4750 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4756 if test -n "$GNATMAKE"; then
4757 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 GNATMAKE=$ac_cv_prog_GNATMAKE
4777 if test -n "$GNATMAKE"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4779 $as_echo "$GNATMAKE" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4787 if test -z "$ac_cv_prog_GNATMAKE"; then
4788 ac_ct_GNATMAKE=$GNATMAKE
4789 # Extract the first word of "gnatmake", so it can be a program name with args.
4790 set dummy gnatmake; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4796 if test -n "$ac_ct_GNATMAKE"; then
4797 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4817 if test -n "$ac_ct_GNATMAKE"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4819 $as_echo "$ac_ct_GNATMAKE" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4825 if test "x$ac_ct_GNATMAKE" = x; then
4828 case $cross_compiling:$ac_tool_warned in
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4832 ac_tool_warned=yes ;;
4834 GNATMAKE=$ac_ct_GNATMAKE
4837 GNATMAKE="$ac_cv_prog_GNATMAKE"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4841 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4842 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4845 cat >conftest.adb <<EOF
4846 procedure conftest is begin null; end conftest;
4848 acx_cv_cc_gcc_supports_ada=no
4849 # There is a bug in old released versions of GCC which causes the
4850 # driver to exit successfully when the appropriate language module
4851 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4852 # Therefore we must check for the error message as well as an
4853 # unsuccessful exit.
4854 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4855 # given a .adb file, but produce no object file. So we must check
4856 # if an object file was really produced to guard against this.
4857 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4858 if test x"$errors" = x && test -f conftest.$ac_objext; then
4859 acx_cv_cc_gcc_supports_ada=yes
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4864 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4866 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4873 # autoconf is lame and doesn't give us any substitution variable for this.
4874 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4875 NO_MINUS_C_MINUS_O=yes
4877 OUTPUT_OPTION='-o $@'
4882 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4883 # optimizations to be activated explicitly by the toplevel.
4885 */prev-gcc/xgcc*) ;;
4886 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-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; 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
6803 if test x
$ac_types_checking != x
; then
6805 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6809 if test x
$ac_rtl_checking != x
; then
6811 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6814 if test x
$ac_rtlflag_checking != x
; then
6816 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6819 if test x
$ac_gc_checking != x
; then
6821 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6824 if test x
$ac_gc_always_collect != x
; then
6826 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6829 if test x
$ac_fold_checking != x
; then
6831 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6834 valgrind_path_defines
=
6837 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6838 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6846 if test x
$ac_valgrind_checking != x
; then
6847 # It is certainly possible that there's valgrind but no valgrind.h.
6848 # GCC relies on making annotations so we must have both.
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6850 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <valgrind/memcheck.h>
6854 #ifndef VALGRIND_DISCARD
6855 #error VALGRIND_DISCARD not defined
6858 if ac_fn_c_try_cpp
"$LINENO"; then :
6859 gcc_cv_header_valgrind_memcheck_h
=yes
6861 gcc_cv_header_valgrind_memcheck_h
=no
6863 rm -f conftest.err conftest.
$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6865 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6867 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 #include <memcheck.h>
6871 #ifndef VALGRIND_DISCARD
6872 #error VALGRIND_DISCARD not defined
6875 if ac_fn_c_try_cpp
"$LINENO"; then :
6876 gcc_cv_header_memcheck_h
=yes
6878 gcc_cv_header_memcheck_h
=no
6880 rm -f conftest.err conftest.
$ac_ext
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6882 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6884 # Prepare PATH_SEPARATOR.
6885 # The user is always right.
6886 if test "${PATH_SEPARATOR+set}" != set; then
6887 echo "#! /bin/sh" >conf$$.sh
6888 echo "exit 0" >>conf$$.sh
6890 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6898 # Find out how to test for executable files. Don't use a zero-byte file,
6899 # as systems may use methods other than mode bits to determine executability.
6900 cat >conf$$.
file <<_ASEOF
6904 chmod +x conf$$.
file
6905 if test -x conf$$.
file >/dev
/null
2>&1; then
6906 ac_executable_p
="test -x"
6908 ac_executable_p
="test -f"
6912 # Extract the first word of "valgrind", so it can be a program name with args.
6913 set dummy valgrind
; ac_word
=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6919 case "$valgrind_path" in
6921 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6924 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6925 for ac_dir
in $PATH; do
6927 test -z "$ac_dir" && ac_dir
=.
6928 for ac_exec_ext
in '' $ac_executable_extensions; do
6929 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6930 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6931 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6941 valgrind_path
="$ac_cv_path_valgrind_path"
6942 if test -n "$valgrind_path"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6944 $as_echo "$valgrind_path" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6950 if test "x$valgrind_path" = "x" \
6951 ||
(test $have_valgrind_h = no \
6952 && test $gcc_cv_header_memcheck_h = no \
6953 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6954 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6956 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6957 valgrind_command
="$valgrind_path -q"
6959 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6961 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6963 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6966 if test $gcc_cv_header_memcheck_h = yes; then
6968 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6975 # Enable code coverage collection
6976 # Check whether --enable-coverage was given.
6977 if test "${enable_coverage+set}" = set; then :
6978 enableval
=$enable_coverage; case "${enableval}" in
6980 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6983 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6986 # a.k.a. --disable-coverage
6990 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6999 # Check whether --enable-gather-detailed-mem-stats was given.
7000 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7001 enableval
=$enable_gather_detailed_mem_stats;
7003 enable_gather_detailed_mem_stats
=no
7006 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7008 cat >>confdefs.h
<<_ACEOF
7009 #define GATHER_STATISTICS $gather_stats
7013 # -------------------------------
7014 # Miscenalleous configure options
7015 # -------------------------------
7019 # Check whether --with-stabs was given.
7020 if test "${with_stabs+set}" = set; then :
7021 withval
=$with_stabs; stabs
="$with_stabs"
7027 # Determine whether or not multilibs are enabled.
7028 # Check whether --enable-multilib was given.
7029 if test "${enable_multilib+set}" = set; then :
7030 enableval
=$enable_multilib;
7037 # Enable __cxa_atexit for C++.
7038 # Check whether --enable-__cxa_atexit was given.
7039 if test "${enable___cxa_atexit+set}" = set; then :
7040 enableval
=$enable___cxa_atexit;
7044 # Enable C extension for decimal float if target supports it.
7046 # Check whether --enable-decimal-float was given.
7047 if test "${enable_decimal_float+set}" = set; then :
7048 enableval
=$enable_decimal_float;
7049 case $enable_decimal_float in
7050 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7051 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7052 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7058 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7059 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7061 enable_decimal_float
=yes
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7065 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7066 enable_decimal_float
=no
7073 # x86's use BID format instead of DPD
7074 case x
$enable_decimal_float in
7077 i?
86*-*-* | x86_64
*-*-*)
7078 enable_decimal_float
=bid
7081 enable_decimal_float
=dpd
7084 default_decimal_float
=$enable_decimal_float
7087 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7088 # dependency on libdecnumber.
7089 default_decimal_float
=dpd
7096 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7098 cat >>confdefs.h
<<_ACEOF
7099 #define ENABLE_DECIMAL_FLOAT $dfp
7103 # Use default_decimal_float for dependency.
7104 enable_decimal_float
=$default_decimal_float
7106 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7108 cat >>confdefs.h
<<_ACEOF
7109 #define ENABLE_DECIMAL_BID_FORMAT $bid
7113 # Enable C extension for fixed-point arithmetic.
7114 # Check whether --enable-fixed-point was given.
7115 if test "${enable_fixed_point+set}" = set; then :
7116 enableval
=$enable_fixed_point;
7121 enable_fixed_point
=yes
7125 enable_fixed_point
=yes
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7129 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7130 enable_fixed_point
=no
7138 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h
<<_ACEOF
7141 #define ENABLE_FIXED_POINT $fixedpoint
7146 # Pass with no value to take the default
7147 # Pass with a value to specify a thread package
7148 # Check whether --enable-threads was given.
7149 if test "${enable_threads+set}" = set; then :
7150 enableval
=$enable_threads;
7156 # Check whether --enable-tls was given.
7157 if test "${enable_tls+set}" = set; then :
7158 enableval
=$enable_tls;
7161 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7162 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7170 # Check whether --enable-objc-gc was given.
7171 if test "${enable_objc_gc+set}" = set; then :
7172 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7182 case ,${enable_languages}, in
7183 *,upc
,) lang_upc_enabled
="yes" ;;
7188 # Check whether --with-upc-pts was given.
7189 if test "${with_upc_pts+set}" = set; then :
7190 withval
=$with_upc_pts;
7191 if test x
"$lang_upc_enabled" = x
"yes" ; then
7193 packed|struct
) upc_pts_rep
="$withval" ;;
7194 *) as_fn_error
"$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7199 support has been enabled" >&5
7200 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7201 support has been enabled" >&2;}
7206 if test x
"$lang_upc_enabled" = x
"yes" ; then
7207 upc_pts_rep
="packed"
7214 # Perl is required for checking pts representation
7215 # Extract the first word of "perl", so it can be a program name with args.
7216 set dummy perl
; ac_word
=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if test "${ac_cv_prog_PERL+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -n "$PERL"; then
7223 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir
=.
7230 for ac_exec_ext
in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_PERL
="perl"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 PERL
=$ac_cv_prog_PERL
7243 if test -n "$PERL"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7245 $as_echo "$PERL" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7254 # Check whether --with-upc-pts-vaddr-order was given.
7255 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7256 withval
=$with_upc_pts_vaddr_order;
7257 if test x
"$lang_upc_enabled" = x
"yes" ; then
7258 upc_vaddr_order
="$withval"
7259 case "$upc_vaddr_order" in
7261 *) as_fn_error
"$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7265 support has been enabled" >&5
7266 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7267 support has been enabled" >&2;}
7272 if test x
"$lang_upc_enabled" = x
"yes" ; then
7273 # Default UPC PTS vaddr order to "first"
7274 upc_vaddr_order
="first"
7281 # Check whether --with-upc-packed-bits was given.
7282 if test "${with_upc_packed_bits+set}" = set; then :
7283 withval
=$with_upc_packed_bits;
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7285 Use --with-upc-pts-packed-bits instead." >&5
7286 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7287 Use --with-upc-pts-packed-bits instead." >&2;}
7288 with_upc_pts_packed_bits
="$withval";
7294 # Check whether --with-upc-pts-packed-bits was given.
7295 if test "${with_upc_pts_packed_bits+set}" = set; then :
7296 withval
=$with_upc_pts_packed_bits;
7297 if test x
"$lang_upc_enabled" = x
"yes" ; then
7298 if test x
"$upc_pts_rep" = x
"packed"; then
7299 UPC_PTS_PHASE_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7300 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7301 UPC_PTS_THREAD_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7302 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7303 UPC_PTS_VADDR_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7304 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7305 if test -z "$UPC_PTS_PHASE_SIZE" \
7306 ||
test -z "$UPC_PTS_THREAD_SIZE" \
7307 ||
test -z "$UPC_PTS_VADDR_SIZE" ; then
7308 as_fn_error
"--with-upc-pts-packed-bits=phase,thread,vaddr requires
7309 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7312 as_fn_error
"--with-upc-pts-packed-bits is only supported for
7313 the packed UPC pointer-to-shared representation" "$LINENO" 5
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7317 support has been enabled" >&5
7318 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7319 support has been enabled" >&2;}
7324 if test x
"$lang_upc_enabled" = x
"yes" ; then
7325 # GNU UPC packed pointer representation defaults.
7328 UPC_PTS_PHASE_SIZE
=20
7329 UPC_PTS_THREAD_SIZE
=12
7330 UPC_PTS_VADDR_SIZE
=32
7333 UPC_PTS_PHASE_SIZE
=20
7334 UPC_PTS_THREAD_SIZE
=10
7335 UPC_PTS_VADDR_SIZE
=34
7342 # Check whether --enable-upc-link-script was given.
7343 if test "${enable_upc_link_script+set}" = set; then :
7344 enableval
=$enable_upc_link_script;
7345 if test x
"$lang_upc_enabled" = x
"yes" ; then
7349 as_fn_error
"--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7353 support has been enabled" >&5
7354 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7355 support has been enabled" >&2;}
7360 if test x
"$lang_upc_enabled" = x
"yes" ; then
7361 enable_upc_link_script
=no
7367 if test x
"$lang_upc_enabled" = x
"yes" ; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7369 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7371 $as_echo "$upc_pts_rep" >&6; }
7372 case "$upc_pts_rep" in
7375 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7380 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7385 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7387 $as_echo "$upc_vaddr_order" >&6; }
7388 if test x
"$upc_vaddr_order" = x
"first"; then
7390 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7393 if test x
"$upc_pts_rep" = x
"packed"; then
7395 cat >>confdefs.h
<<_ACEOF
7396 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7400 cat >>confdefs.h
<<_ACEOF
7401 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7405 cat >>confdefs.h
<<_ACEOF
7406 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7410 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7412 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7413 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7414 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7417 $as_echo_n "checking for UPC link script support... " >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7419 $as_echo "$enable_upc_link_script" >&6; }
7420 if test "$enable_upc_link_script" = yes; then
7422 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7428 # Check whether --with-dwarf2 was given.
7429 if test "${with_dwarf2+set}" = set; then :
7430 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7436 # Check whether --enable-shared was given.
7437 if test "${enable_shared+set}" = set; then :
7438 enableval
=$enable_shared;
7439 case $enable_shared in
7443 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7444 for pkg
in $enableval; do
7445 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7460 # Check whether --with-native-system-header-dir was given.
7461 if test "${with_native_system_header_dir+set}" = set; then :
7462 withval
=$with_native_system_header_dir;
7463 case ${with_native_system_header_dir} in
7464 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7465 /* |
[A-Za-z
]:[\\/]*) ;;
7466 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7468 configured_native_system_header_dir
="${withval}"
7471 configured_native_system_header_dir
=
7476 # Check whether --with-build-sysroot was given.
7477 if test "${with_build_sysroot+set}" = set; then :
7478 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7479 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7482 SYSROOT_CFLAGS_FOR_TARGET
=
7487 if test "x$prefix" = xNONE
; then
7488 test_prefix
=/usr
/local
7492 if test "x$exec_prefix" = xNONE
; then
7493 test_exec_prefix
=$test_prefix
7495 test_exec_prefix
=$exec_prefix
7499 # Check whether --with-sysroot was given.
7500 if test "${with_sysroot+set}" = set; then :
7501 withval
=$with_sysroot;
7502 case ${with_sysroot} in
7503 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7504 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7507 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7508 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7510 case ${TARGET_SYSTEM_ROOT} in
7511 "${test_prefix}"|
"${test_prefix}/"*|\
7512 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7513 '${prefix}'|
'${prefix}/'*|\
7514 '${exec_prefix}'|
'${exec_prefix}/'*)
7515 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7516 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7523 TARGET_SYSTEM_ROOT_DEFINE
=
7524 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7533 # Check whether --with-specs was given.
7534 if test "${with_specs+set}" = set; then :
7535 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7545 # Check whether --with-pkgversion was given.
7546 if test "${with_pkgversion+set}" = set; then :
7547 withval
=$with_pkgversion; case "$withval" in
7548 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7550 *) PKGVERSION
="($withval) " ;;
7561 # Check whether --with-bugurl was given.
7562 if test "${with_bugurl+set}" = set; then :
7563 withval
=$with_bugurl; case "$withval" in
7564 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7567 *) BUGURL
="$withval"
7571 BUGURL
="http://gccupc.org/bugs"
7581 REPORT_BUGS_TO
="<$BUGURL>"
7582 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7589 # Sanity check enable_languages in case someone does not run the toplevel
7590 # configure # script.
7591 # Check whether --enable-languages was given.
7592 if test "${enable_languages+set}" = set; then :
7593 enableval
=$enable_languages; case ,${enable_languages}, in
7595 # go safe -- we cannot be much sure without the toplevel
7597 # analysis of which target libs are present and usable
7601 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7606 enable_languages
=c
,${enable_languages}
7615 # Check whether --with-multilib-list was given.
7616 if test "${with_multilib_list+set}" = set; then :
7617 withval
=$with_multilib_list; :
7619 with_multilib_list
=default
7623 # -------------------------
7624 # Checks for other programs
7625 # -------------------------
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7628 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7630 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7631 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7632 $as_echo_n "(cached) " >&6
7634 cat >conftest.
make <<\_ACEOF
7637 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7639 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7640 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7642 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7644 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7648 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7650 $as_echo "yes" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 SET_MAKE
="MAKE=${MAKE-make}"
7659 # Find some useful tools
7660 for ac_prog
in gawk mawk nawk
awk
7662 # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy
$ac_prog; ac_word
=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_AWK+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7669 if test -n "$AWK"; then
7670 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir
=.
7677 for ac_exec_ext
in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_AWK
="$ac_prog"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 if test -n "$AWK"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7692 $as_echo "$AWK" >&6; }
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7699 test -n "$AWK" && break
7702 # We need awk to create options.c and options.h.
7703 # Bail out if it's missing.
7705 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7709 $as_echo_n "checking whether ln -s works... " >&6; }
7710 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7713 rm -f conftestdata_t
7714 echo >conftestdata_f
7715 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7717 gcc_cv_prog_LN_S
="ln -s"
7719 if ln conftestdata_f conftestdata_t
2>/dev
/null
7723 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7725 gcc_cv_prog_LN_S
="cp -p"
7731 rm -f conftestdata_f conftestdata_t
7734 LN_S
="$gcc_cv_prog_LN_S"
7735 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7737 $as_echo "yes" >&6; }
7739 if test "$gcc_cv_prog_LN_S" = "ln"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7741 $as_echo "no, using ln" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7744 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7749 $as_echo_n "checking whether ln works... " >&6; }
7750 if test "${acx_cv_prog_LN+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7753 rm -f conftestdata_t
7754 echo >conftestdata_f
7755 if ln conftestdata_f conftestdata_t
2>/dev
/null
7761 rm -f conftestdata_f conftestdata_t
7764 if test $acx_cv_prog_LN = no
; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7767 $as_echo "no, using $LN" >&6; }
7769 LN
="$acx_cv_prog_LN"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7771 $as_echo "yes" >&6; }
7774 if test -n "$ac_tool_prefix"; then
7775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7776 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7782 if test -n "$RANLIB"; then
7783 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir
=.
7790 for ac_exec_ext
in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 RANLIB
=$ac_cv_prog_RANLIB
7803 if test -n "$RANLIB"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7805 $as_echo "$RANLIB" >&6; }
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7813 if test -z "$ac_cv_prog_RANLIB"; then
7814 ac_ct_RANLIB
=$RANLIB
7815 # Extract the first word of "ranlib", so it can be a program name with args.
7816 set dummy ranlib
; ac_word
=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7822 if test -n "$ac_ct_RANLIB"; then
7823 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7829 test -z "$as_dir" && as_dir
=.
7830 for ac_exec_ext
in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7832 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7843 if test -n "$ac_ct_RANLIB"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7845 $as_echo "$ac_ct_RANLIB" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7851 if test "x$ac_ct_RANLIB" = x
; then
7854 case $cross_compiling:$ac_tool_warned in
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7858 ac_tool_warned
=yes ;;
7860 RANLIB
=$ac_ct_RANLIB
7863 RANLIB
="$ac_cv_prog_RANLIB"
7869 # Find a good install program. We prefer a C program (faster),
7870 # so one script is as good as another. But avoid the broken or
7871 # incompatible versions:
7872 # SysV /etc/install, /usr/sbin/install
7873 # SunOS /usr/etc/install
7874 # IRIX /sbin/install
7876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7878 # ./install, which can be erroneously created by make from ./install.sh.
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7880 $as_echo_n "checking for a BSD compatible install... " >&6; }
7881 if test -z "$INSTALL"; then
7882 if test "${ac_cv_path_install+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7885 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7886 for ac_dir
in $PATH; do
7887 # Account for people who put trailing slashes in PATH elements.
7889 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7891 # OSF1 and SCO ODT 3.0 have their own names for install.
7892 for ac_prog
in ginstall scoinst
install; do
7893 if test -f $ac_dir/$ac_prog; then
7894 if test $ac_prog = install &&
7895 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7896 # AIX install. It has an incompatible calling convention.
7897 # OSF/1 installbsd also uses dspmsg, but is usable.
7900 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7911 if test "${ac_cv_path_install+set}" = set; then
7912 INSTALL
="$ac_cv_path_install"
7914 # As a last resort, use the slow shell script. We don't cache a
7915 # path for INSTALL within a source directory, because that will
7916 # break other packages using the cache if that directory is
7917 # removed, or if the path is relative.
7918 INSTALL
="$ac_install_sh"
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7922 $as_echo "$INSTALL" >&6; }
7924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7925 # It thinks the first close brace ends the variable substitution.
7926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7928 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7931 # See if cmp has --ignore-initial.
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7933 $as_echo_n "checking for cmp's capabilities... " >&6; }
7934 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7939 gcc_cv_prog_cmp_skip
=slowcompare
7940 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7941 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7944 gcc_cv_prog_cmp_skip
=gnucompare
7947 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7948 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7949 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7952 gcc_cv_prog_cmp_skip
=fastcompare
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7960 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7961 make_compare_target
=$gcc_cv_prog_cmp_skip
7965 # See if we have the mktemp command.
7966 # Extract the first word of "mktemp", so it can be a program name with args.
7967 set dummy mktemp
; ac_word
=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7973 if test -n "$have_mktemp_command"; then
7974 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir
=.
7981 for ac_exec_ext
in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_prog_have_mktemp_command
="yes"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7994 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7995 if test -n "$have_mktemp_command"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7997 $as_echo "$have_mktemp_command" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8005 # See if makeinfo has been installed and is modern enough
8006 # that we can use it.
8008 # Extract the first word of "makeinfo", so it can be a program name with args.
8009 set dummy makeinfo
; ac_word
=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8015 if test -n "$MAKEINFO"; then
8016 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir
=.
8023 for ac_exec_ext
in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_MAKEINFO
="makeinfo"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 MAKEINFO
=$ac_cv_prog_MAKEINFO
8036 if test -n "$MAKEINFO"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8038 $as_echo "$MAKEINFO" >&6; }
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8045 if test -n "$MAKEINFO"; then
8046 # Found it, now check the version.
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8048 $as_echo_n "checking for modern makeinfo... " >&6; }
8049 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8052 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8053 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8055 case $ac_prog_version in
8056 '') gcc_cv_prog_makeinfo_modern
=no
;;
8057 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8058 *) gcc_cv_prog_makeinfo_modern
=no
;;
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8063 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8065 gcc_cv_prog_makeinfo_modern
=no
8067 if test $gcc_cv_prog_makeinfo_modern = no
; then
8068 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8071 if test $gcc_cv_prog_makeinfo_modern = no
; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8073 *** Makeinfo is missing or too old.
8074 *** Info documentation will not be built." >&5
8075 $as_echo "$as_me: WARNING:
8076 *** Makeinfo is missing or too old.
8077 *** Info documentation will not be built." >&2;}
8084 # Is pod2man recent enough to regenerate manpages?
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8086 $as_echo_n "checking for recent Pod::Man... " >&6; }
8087 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8089 $as_echo "yes" >&6; }
8090 GENERATED_MANPAGES
=generated-manpages
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8098 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8103 # Extract the first word of "$ac_prog", so it can be a program name with args.
8104 set dummy
$ac_prog; ac_word
=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if test "${ac_cv_prog_FLEX+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8110 if test -n "$FLEX"; then
8111 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir
=.
8118 for ac_exec_ext
in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_prog_FLEX
="$ac_prog"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 FLEX
=$ac_cv_prog_FLEX
8131 if test -n "$FLEX"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8133 $as_echo "$FLEX" >&6; }
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8140 test -n "$FLEX" && break
8142 test -n "$FLEX" || FLEX
="$MISSING flex"
8146 for ac_prog
in bison
8148 # Extract the first word of "$ac_prog", so it can be a program name with args.
8149 set dummy
$ac_prog; ac_word
=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if test "${ac_cv_prog_BISON+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8155 if test -n "$BISON"; then
8156 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8162 test -z "$as_dir" && as_dir
=.
8163 for ac_exec_ext
in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_prog_BISON
="$ac_prog"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 BISON
=$ac_cv_prog_BISON
8176 if test -n "$BISON"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8178 $as_echo "$BISON" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8185 test -n "$BISON" && break
8187 test -n "$BISON" || BISON
="$MISSING bison"
8190 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8191 # check for build == host before using them.
8194 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8195 && test -d ..
/binutils
; then
8196 NM
='${objdir}/../binutils/nm-new'
8198 # Extract the first word of "nm", so it can be a program name with args.
8199 set dummy nm
; ac_word
=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_prog_NM+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8205 if test -n "$NM"; then
8206 ac_cv_prog_NM
="$NM" # Let the user override the test.
8208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8212 test -z "$as_dir" && as_dir
=.
8213 for ac_exec_ext
in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8227 if test -n "$NM"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8229 $as_echo "$NM" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8239 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8240 && test -d ..
/binutils
; then
8241 AR
='${objdir}/../binutils/ar'
8243 # Extract the first word of "ar", so it can be a program name with args.
8244 set dummy
ar; ac_word
=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if test "${ac_cv_prog_AR+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8250 if test -n "$AR"; then
8251 ac_cv_prog_AR
="$AR" # Let the user override the test.
8253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir
=.
8258 for ac_exec_ext
in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8272 if test -n "$AR"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8274 $as_echo "$AR" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8284 # --------------------
8285 # Checks for C headers
8286 # --------------------
8288 # Need to reject headers which give warnings, so that the -Werror bootstrap
8289 # works later. *sigh* This needs to come before all header checks.
8291 ac_c_preproc_warn_flag
=yes
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8294 $as_echo_n "checking for ANSI C header files... " >&6; }
8295 if test "${ac_cv_header_stdc+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8313 if ac_fn_c_try_compile
"$LINENO"; then :
8314 ac_cv_header_stdc
=yes
8316 ac_cv_header_stdc
=no
8318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8320 if test $ac_cv_header_stdc = yes; then
8321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8328 $EGREP "memchr" >/dev
/null
2>&1; then :
8331 ac_cv_header_stdc
=no
8337 if test $ac_cv_header_stdc = yes; then
8338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8345 $EGREP "free" >/dev
/null
2>&1; then :
8348 ac_cv_header_stdc
=no
8354 if test $ac_cv_header_stdc = yes; then
8355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8356 if test "$cross_compiling" = yes; then :
8359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8363 #if ((' ' & 0x0FF) == 0x020)
8364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8367 # define ISLOWER(c) \
8368 (('a' <= (c) && (c) <= 'i') \
8369 || ('j' <= (c) && (c) <= 'r') \
8370 || ('s' <= (c) && (c) <= 'z'))
8371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8379 for (i = 0; i < 256; i++)
8380 if (XOR (islower (i), ISLOWER (i))
8381 || toupper (i) != TOUPPER (i))
8386 if ac_fn_c_try_run
"$LINENO"; then :
8389 ac_cv_header_stdc
=no
8391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8398 $as_echo "$ac_cv_header_stdc" >&6; }
8399 if test $ac_cv_header_stdc = yes; then
8401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8406 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8407 if test "${ac_cv_header_time+set}" = set; then :
8408 $as_echo_n "(cached) " >&6
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include <sys/types.h>
8413 #include <sys/time.h>
8419 if ((struct tm *) 0)
8425 if ac_fn_c_try_compile
"$LINENO"; then :
8426 ac_cv_header_time
=yes
8428 ac_cv_header_time
=no
8430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8433 $as_echo "$ac_cv_header_time" >&6; }
8434 if test $ac_cv_header_time = yes; then
8436 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8441 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8442 if test "${gcc_cv_header_string+set}" = set; then :
8443 $as_echo_n "(cached) " >&6
8445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8448 #include <strings.h>
8457 if ac_fn_c_try_compile
"$LINENO"; then :
8458 gcc_cv_header_string
=yes
8460 gcc_cv_header_string
=no
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8465 $as_echo "$gcc_cv_header_string" >&6; }
8466 if test $gcc_cv_header_string = yes; then
8468 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8473 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8474 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8475 $as_echo_n "(cached) " >&6
8477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #include <sys/types.h>
8480 #include <sys/wait.h>
8482 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8485 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8493 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8498 if ac_fn_c_try_compile
"$LINENO"; then :
8499 ac_cv_header_sys_wait_h
=yes
8501 ac_cv_header_sys_wait_h
=no
8503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8506 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8507 if test $ac_cv_header_sys_wait_h = yes; then
8509 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8513 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8514 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8515 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8516 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8518 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8519 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8520 eval as_val
=\$
$as_ac_Header
8521 if test "x$as_val" = x
""yes; then :
8522 cat >>confdefs.h
<<_ACEOF
8523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8530 # Check for thread headers.
8531 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8532 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8538 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8539 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8546 # These tests can't be done till we know if we have limits.h.
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8548 $as_echo_n "checking for CHAR_BIT... " >&6; }
8549 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 #ifdef HAVE_LIMITS_H
8561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8562 $EGREP "found" >/dev
/null
2>&1; then :
8563 gcc_cv_decl_char_bit
=yes
8565 gcc_cv_decl_char_bit
=no
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8572 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8573 if test $gcc_cv_decl_char_bit = no
; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8575 $as_echo_n "checking number of bits in a byte... " >&6; }
8576 if test "${gcc_cv_c_nbby+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
8581 while test $i -lt 65; do
8582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8589 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8590 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8596 if ac_fn_c_try_compile
"$LINENO"; then :
8597 gcc_cv_c_nbby
=$i; break
8599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8606 $as_echo "$gcc_cv_c_nbby" >&6; }
8607 if test $gcc_cv_c_nbby = failed
; then
8608 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8611 cat >>confdefs.h
<<_ACEOF
8612 #define CHAR_BIT $gcc_cv_c_nbby
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8618 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8619 if test "${ac_cv_c_bigendian+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8622 ac_cv_c_bigendian
=unknown
8623 # See if we're dealing with a universal compiler.
8624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #ifndef __APPLE_CC__
8627 not a universal capable compiler
8632 if ac_fn_c_try_compile
"$LINENO"; then :
8634 # Check for potential -arch flags. It is not universal unless
8635 # there are at least two -arch flags with different values.
8638 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8639 if test -n "$ac_prev"; then
8641 i?
86 | x86_64 | ppc | ppc64
)
8642 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8645 ac_cv_c_bigendian
=universal
8651 elif test "x$ac_word" = "x-arch"; then
8656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8657 if test $ac_cv_c_bigendian = unknown
; then
8658 # See if sys/param.h defines the BYTE_ORDER macro.
8659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #include <sys/types.h>
8662 #include <sys/param.h>
8667 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8668 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8677 if ac_fn_c_try_compile
"$LINENO"; then :
8678 # It does; now see whether it defined to BIG_ENDIAN or not.
8679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <sys/types.h>
8682 #include <sys/param.h>
8687 #if BYTE_ORDER != BIG_ENDIAN
8695 if ac_fn_c_try_compile
"$LINENO"; then :
8696 ac_cv_c_bigendian
=yes
8698 ac_cv_c_bigendian
=no
8700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8704 if test $ac_cv_c_bigendian = unknown
; then
8705 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8713 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8721 if ac_fn_c_try_compile
"$LINENO"; then :
8722 # It does; now see whether it defined to _BIG_ENDIAN or not.
8723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8738 if ac_fn_c_try_compile
"$LINENO"; then :
8739 ac_cv_c_bigendian
=yes
8741 ac_cv_c_bigendian
=no
8743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8747 if test $ac_cv_c_bigendian = unknown
; then
8748 # Compile a test program.
8749 if test "$cross_compiling" = yes; then :
8750 # Try to guess by grepping values from an object file.
8751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8753 short int ascii_mm[] =
8754 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8755 short int ascii_ii[] =
8756 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8757 int use_ascii (int i) {
8758 return ascii_mm[i] + ascii_ii[i];
8760 short int ebcdic_ii[] =
8761 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8762 short int ebcdic_mm[] =
8763 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8764 int use_ebcdic (int i) {
8765 return ebcdic_mm[i] + ebcdic_ii[i];
8772 return use_ascii (foo) == use_ebcdic (foo);
8777 if ac_fn_c_try_compile
"$LINENO"; then :
8778 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8779 ac_cv_c_bigendian
=yes
8781 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8782 if test "$ac_cv_c_bigendian" = unknown
; then
8783 ac_cv_c_bigendian
=no
8785 # finding both strings is unlikely to happen, but who knows?
8786 ac_cv_c_bigendian
=unknown
8790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 $ac_includes_default
8799 /* Are we little or big endian? From Harbison&Steele. */
8803 char c[sizeof (long int)];
8806 return u.c[sizeof (long int) - 1] == 1;
8812 if ac_fn_c_try_run
"$LINENO"; then :
8813 ac_cv_c_bigendian
=no
8815 ac_cv_c_bigendian
=yes
8817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8824 $as_echo "$ac_cv_c_bigendian" >&6; }
8825 case $ac_cv_c_bigendian in #(
8827 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8833 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8837 as_fn_error
"unknown endianness
8838 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8842 # ----------------------
8843 # Checks for C++ headers
8844 # ----------------------
8847 ac_cpp
='$CXXCPP $CPPFLAGS'
8848 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8849 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8850 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8852 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8853 if test -z "$CXXCPP"; then
8854 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8857 # Double quotes because CXXCPP needs to be expanded
8858 for CXXCPP
in "$CXX -E" "/lib/cpp"
8861 for ac_cxx_preproc_warn_flag
in '' yes
8863 # Use a header file that comes with gcc, so configuring glibc
8864 # with a fresh cross-compiler works.
8865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8866 # <limits.h> exists even on freestanding compilers.
8867 # On the NeXT, cc -E runs the code through the compiler's parser,
8868 # not just through cpp. "Syntax error" is here to catch this case.
8869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 # include <limits.h>
8874 # include <assert.h>
8878 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8881 # Broken: fails on valid input.
8884 rm -f conftest.err conftest.
$ac_ext
8886 # OK, works on sane cases. Now check whether nonexistent headers
8887 # can be detected and how.
8888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 #include <ac_nonexistent.h>
8892 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8893 # Broken: success on invalid input.
8896 # Passes both tests.
8900 rm -f conftest.err conftest.
$ac_ext
8903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8904 rm -f conftest.err conftest.
$ac_ext
8905 if $ac_preproc_ok; then :
8910 ac_cv_prog_CXXCPP
=$CXXCPP
8913 CXXCPP
=$ac_cv_prog_CXXCPP
8915 ac_cv_prog_CXXCPP
=$CXXCPP
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8918 $as_echo "$CXXCPP" >&6; }
8920 for ac_cxx_preproc_warn_flag
in '' yes
8922 # Use a header file that comes with gcc, so configuring glibc
8923 # with a fresh cross-compiler works.
8924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8925 # <limits.h> exists even on freestanding compilers.
8926 # On the NeXT, cc -E runs the code through the compiler's parser,
8927 # not just through cpp. "Syntax error" is here to catch this case.
8928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8931 # include <limits.h>
8933 # include <assert.h>
8937 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8940 # Broken: fails on valid input.
8943 rm -f conftest.err conftest.
$ac_ext
8945 # OK, works on sane cases. Now check whether nonexistent headers
8946 # can be detected and how.
8947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <ac_nonexistent.h>
8951 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8952 # Broken: success on invalid input.
8955 # Passes both tests.
8959 rm -f conftest.err conftest.
$ac_ext
8962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8963 rm -f conftest.err conftest.
$ac_ext
8964 if $ac_preproc_ok; then :
8967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8970 See \`config.log' for more details." >&5
8971 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8972 See \`config.log' for more details." >&2;}; }
8976 ac_cpp
='$CPP $CPPFLAGS'
8977 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8978 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8979 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8983 ac_cpp
='$CXXCPP $CPPFLAGS'
8984 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8985 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8986 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8991 for ac_header
in unordered_map
8993 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8994 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8995 cat >>confdefs.h
<<_ACEOF
8996 #define HAVE_UNORDERED_MAP 1
9002 for ac_header
in tr1/unordered_map
9004 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9005 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9006 cat >>confdefs.h
<<_ACEOF
9007 #define HAVE_TR1_UNORDERED_MAP 1
9013 for ac_header
in ext
/hash_map
9015 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9016 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9017 cat >>confdefs.h
<<_ACEOF
9018 #define HAVE_EXT_HASH_MAP 1
9026 ac_cpp
='$CPP $CPPFLAGS'
9027 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9037 # These libraries may be used by collect2.
9038 # We may need a special search path to get them linked.
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9040 $as_echo_n "checking for collect2 libraries... " >&6; }
9041 if test "${gcc_cv_collect2_libs+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
9045 for libs
in '' -lld -lmld \
9046 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9047 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9053 /* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
9068 if ac_fn_c_try_link
"$LINENO"; then :
9069 gcc_cv_collect2_libs
="$libs"; break
9071 rm -f core conftest.err conftest.
$ac_objext \
9072 conftest
$ac_exeext conftest.
$ac_ext
9075 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9078 $as_echo "$gcc_cv_collect2_libs" >&6; }
9079 case $gcc_cv_collect2_libs in
9081 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9085 # When building Ada code on Alpha, we need exc_resume which is usually in
9086 # -lexc. So test for it.
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9090 $as_echo_n "checking for library containing exc_resume... " >&6; }
9091 if test "${ac_cv_search_exc_resume+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9094 ac_func_search_save_LIBS
=$LIBS
9095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9098 /* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
9100 builtin and then its argument prototype would still apply. */
9108 return exc_resume ();
9113 for ac_lib
in '' exc
; do
9114 if test -z "$ac_lib"; then
9115 ac_res
="none required"
9118 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9120 if ac_fn_c_try_link
"$LINENO"; then :
9121 ac_cv_search_exc_resume
=$ac_res
9123 rm -f core conftest.err conftest.
$ac_objext \
9125 if test "${ac_cv_search_exc_resume+set}" = set; then :
9129 if test "${ac_cv_search_exc_resume+set}" = set; then :
9132 ac_cv_search_exc_resume
=no
9135 LIBS
=$ac_func_search_save_LIBS
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9138 $as_echo "$ac_cv_search_exc_resume" >&6; }
9139 ac_res
=$ac_cv_search_exc_resume
9140 if test "$ac_res" != no
; then :
9141 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9149 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9153 $as_echo_n "checking for library containing kstat_open... " >&6; }
9154 if test "${ac_cv_search_kstat_open+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9157 ac_func_search_save_LIBS
=$LIBS
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9171 return kstat_open ();
9176 for ac_lib
in '' kstat
; do
9177 if test -z "$ac_lib"; then
9178 ac_res
="none required"
9181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9183 if ac_fn_c_try_link
"$LINENO"; then :
9184 ac_cv_search_kstat_open
=$ac_res
9186 rm -f core conftest.err conftest.
$ac_objext \
9188 if test "${ac_cv_search_kstat_open+set}" = set; then :
9192 if test "${ac_cv_search_kstat_open+set}" = set; then :
9195 ac_cv_search_kstat_open
=no
9198 LIBS
=$ac_func_search_save_LIBS
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9201 $as_echo "$ac_cv_search_kstat_open" >&6; }
9202 ac_res
=$ac_cv_search_kstat_open
9203 if test "$ac_res" != no
; then :
9204 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9208 EXTRA_GCC_LIBS
="$LIBS"
9212 # Some systems put ldexp and frexp in libm instead of libc; assume
9213 # they're both in the same place. jcf-dump needs them.
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9217 $as_echo_n "checking for library containing ldexp... " >&6; }
9218 if test "${ac_cv_search_ldexp+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9221 ac_func_search_save_LIBS
=$LIBS
9222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9225 /* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
9240 for ac_lib
in '' m
; do
9241 if test -z "$ac_lib"; then
9242 ac_res
="none required"
9245 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9247 if ac_fn_c_try_link
"$LINENO"; then :
9248 ac_cv_search_ldexp
=$ac_res
9250 rm -f core conftest.err conftest.
$ac_objext \
9252 if test "${ac_cv_search_ldexp+set}" = set; then :
9256 if test "${ac_cv_search_ldexp+set}" = set; then :
9259 ac_cv_search_ldexp
=no
9262 LIBS
=$ac_func_search_save_LIBS
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9265 $as_echo "$ac_cv_search_ldexp" >&6; }
9266 ac_res
=$ac_cv_search_ldexp
9267 if test "$ac_res" != no
; then :
9268 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9276 # Use <inttypes.h> only if it exists,
9277 # doesn't clash with <sys/types.h>, and declares intmax_t.
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9279 $as_echo_n "checking for inttypes.h... " >&6; }
9280 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9285 #include <sys/types.h>
9286 #include <inttypes.h>
9295 if ac_fn_c_try_compile
"$LINENO"; then :
9296 gcc_cv_header_inttypes_h
=yes
9298 gcc_cv_header_inttypes_h
=no
9300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9304 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9305 if test $gcc_cv_header_inttypes_h = yes; then
9307 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9313 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9314 sysconf strsignal getrusage nl_langinfo \
9315 gettimeofday mbstowcs wcswidth mmap setlocale \
9316 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
9318 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9319 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9320 eval as_val
=\$
$as_ac_var
9321 if test "x$as_val" = x
""yes; then :
9322 cat >>confdefs.h
<<_ACEOF
9323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9330 if test x
$ac_cv_func_mbstowcs = xyes
; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9332 $as_echo_n "checking whether mbstowcs works... " >&6; }
9333 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9336 if test "$cross_compiling" = yes; then :
9337 gcc_cv_func_mbstowcs_works
=yes
9339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9348 if ac_fn_c_try_run
"$LINENO"; then :
9349 gcc_cv_func_mbstowcs_works
=yes
9351 gcc_cv_func_mbstowcs_works
=no
9353 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9354 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9359 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9360 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9362 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9367 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9368 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9372 cat >>confdefs.h
<<_ACEOF
9378 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9379 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9383 cat >>confdefs.h
<<_ACEOF
9384 #define caddr_t char *
9391 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9392 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9393 gcc_header_sys_mman_h
=yes
9395 gcc_header_sys_mman_h
=no
9398 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9399 if test "x$ac_cv_func_mmap" = x
""yes; then :
9405 if test "$gcc_header_sys_mman_h" != yes \
9406 ||
test "$gcc_func_mmap" != yes; then
9407 gcc_cv_func_mmap_file
=no
9408 gcc_cv_func_mmap_dev_zero
=no
9409 gcc_cv_func_mmap_anon
=no
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9412 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9413 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9416 # Add a system to this blacklist if
9417 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9418 # memory area containing the same data that you'd get if you applied
9419 # read() to the same fd. The only system known to have a problem here
9420 # is VMS, where text files have record structure.
9423 gcc_cv_func_mmap_file
=no
;;
9425 gcc_cv_func_mmap_file
=yes;;
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9429 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9431 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9432 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9435 # Add a system to this blacklist if it has mmap() but /dev/zero
9436 # does not exist, or if mmapping /dev/zero does not give anonymous
9437 # zeroed pages with both the following properties:
9438 # 1. If you map N consecutive pages in with one call, and then
9439 # unmap any subset of those pages, the pages that were not
9440 # explicitly unmapped remain accessible.
9441 # 2. If you map two adjacent blocks of memory and then unmap them
9442 # both at once, they must both go away.
9443 # Systems known to be in this category are Windows (all variants),
9446 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9447 gcc_cv_func_mmap_dev_zero
=no
;;
9449 gcc_cv_func_mmap_dev_zero
=yes;;
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9453 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9455 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9457 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9458 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 #include <sys/types.h>
9464 #include <sys/mman.h>
9467 #ifndef MAP_ANONYMOUS
9468 #define MAP_ANONYMOUS MAP_ANON
9474 int n = MAP_ANONYMOUS;
9479 if ac_fn_c_try_compile
"$LINENO"; then :
9480 gcc_cv_decl_map_anon
=yes
9482 gcc_cv_decl_map_anon
=no
9484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9487 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9489 if test $gcc_cv_decl_map_anon = no
; then
9490 gcc_cv_func_mmap_anon
=no
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9493 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9494 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9497 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9498 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9499 # doesn't give anonymous zeroed pages with the same properties listed
9500 # above for use of /dev/zero.
9501 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9503 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9504 gcc_cv_func_mmap_anon
=no
;;
9506 gcc_cv_func_mmap_anon
=yes;;
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9510 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9514 if test $gcc_cv_func_mmap_file = yes; then
9516 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9519 if test $gcc_cv_func_mmap_dev_zero = yes; then
9521 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9524 if test $gcc_cv_func_mmap_anon = yes; then
9526 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9533 # Under VMS, vfork works very differently than on Unix. The standard test
9534 # won't work, and it isn't easily adaptable. It makes more sense to
9536 ac_cv_func_vfork_works
=yes
9539 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9540 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9544 cat >>confdefs.h
<<_ACEOF
9550 for ac_header
in vfork.h
9552 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9553 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9554 cat >>confdefs.h
<<_ACEOF
9555 #define HAVE_VFORK_H 1
9561 for ac_func
in fork vfork
9563 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9564 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9565 eval as_val
=\$
$as_ac_var
9566 if test "x$as_val" = x
""yes; then :
9567 cat >>confdefs.h
<<_ACEOF
9568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574 if test "x$ac_cv_func_fork" = xyes
; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9576 $as_echo_n "checking for working fork... " >&6; }
9577 if test "${ac_cv_func_fork_works+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9580 if test "$cross_compiling" = yes; then :
9581 ac_cv_func_fork_works
=cross
9583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 $ac_includes_default
9590 /* By Ruediger Kuhlmann. */
9597 if ac_fn_c_try_run
"$LINENO"; then :
9598 ac_cv_func_fork_works
=yes
9600 ac_cv_func_fork_works
=no
9602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9603 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9608 $as_echo "$ac_cv_func_fork_works" >&6; }
9611 ac_cv_func_fork_works
=$ac_cv_func_fork
9613 if test "x$ac_cv_func_fork_works" = xcross
; then
9615 *-*-amigaos* |
*-*-msdosdjgpp*)
9616 # Override, as these systems have only a dummy fork() stub
9617 ac_cv_func_fork_works
=no
9620 ac_cv_func_fork_works
=yes
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9624 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9626 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9627 if test "x$ac_cv_func_vfork" = xyes
; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9629 $as_echo_n "checking for working vfork... " >&6; }
9630 if test "${ac_cv_func_vfork_works+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9633 if test "$cross_compiling" = yes; then :
9634 ac_cv_func_vfork_works
=cross
9636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 /* Thanks to Paul Eggert for this test. */
9639 $ac_includes_default
9640 #include <sys/wait.h>
9644 /* On some sparc systems, changes by the child to local and incoming
9645 argument registers are propagated back to the parent. The compiler
9646 is told about this with #include <vfork.h>, but some compilers
9647 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9648 static variable whose address is put into a register that is
9649 clobbered by the vfork. */
9652 sparc_address_test (int arg)
9654 sparc_address_test (arg) int arg;
9675 pid_t parent = getpid ();
9678 sparc_address_test (0);
9683 /* Here is another test for sparc vfork register problems. This
9684 test uses lots of local variables, at least as many local
9685 variables as main has allocated so far including compiler
9686 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9687 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9688 reuse the register of parent for one of the local variables,
9689 since it will think that parent can't possibly be used any more
9690 in this routine. Assigning to the local variable will thus
9691 munge parent in the parent process. */
9693 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9694 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9695 /* Convince the compiler that p..p7 are live; otherwise, it might
9696 use the same hardware register for all 8 local variables. */
9697 if (p != p1 || p != p2 || p != p3 || p != p4
9698 || p != p5 || p != p6 || p != p7)
9701 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9702 from child file descriptors. If the child closes a descriptor
9703 before it execs or exits, this munges the parent's descriptor
9704 as well. Test for this by closing stdout in the child. */
9705 _exit(close(fileno(stdout)) != 0);
9710 while (wait(&status) != child)
9713 /* Was there some problem with vforking? */
9716 /* Did the child fail? (This shouldn't happen.) */
9719 /* Did the vfork/compiler bug occur? */
9720 || parent != getpid()
9722 /* Did the file descriptor bug occur? */
9723 || fstat(fileno(stdout), &st) != 0
9728 if ac_fn_c_try_run
"$LINENO"; then :
9729 ac_cv_func_vfork_works
=yes
9731 ac_cv_func_vfork_works
=no
9733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9739 $as_echo "$ac_cv_func_vfork_works" >&6; }
9742 if test "x$ac_cv_func_fork_works" = xcross
; then
9743 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9745 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9748 if test "x$ac_cv_func_vfork_works" = xyes
; then
9750 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9754 $as_echo "#define vfork fork" >>confdefs.h
9757 if test "x$ac_cv_func_fork_works" = xyes
; then
9759 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9764 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9765 # iconv() prototype.
9767 ac_cpp
='$CXXCPP $CPPFLAGS'
9768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9773 if test "X$prefix" = "XNONE"; then
9774 acl_final_prefix
="$ac_default_prefix"
9776 acl_final_prefix
="$prefix"
9778 if test "X$exec_prefix" = "XNONE"; then
9779 acl_final_exec_prefix
='${prefix}'
9781 acl_final_exec_prefix
="$exec_prefix"
9783 acl_save_prefix
="$prefix"
9784 prefix
="$acl_final_prefix"
9785 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9786 prefix
="$acl_save_prefix"
9789 # Check whether --with-gnu-ld was given.
9790 if test "${with_gnu_ld+set}" = set; then :
9791 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9796 # Prepare PATH_SEPARATOR.
9797 # The user is always right.
9798 if test "${PATH_SEPARATOR+set}" != set; then
9799 echo "#! /bin/sh" >conf$$.sh
9800 echo "exit 0" >>conf$$.sh
9802 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9810 if test "$GCC" = yes; then
9811 # Check if gcc -print-prog-name=ld gives a path.
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9813 $as_echo_n "checking for ld used by GCC... " >&6; }
9816 # gcc leaves a trailing carriage return which upsets mingw
9817 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9819 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9822 # Accept absolute paths.
9823 [\\/]* |
[A-Za-z
]:[\\/]*)
9824 re_direlt
='/[^/][^/]*/\.\./'
9825 # Canonicalize the path of ld
9826 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9827 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9828 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9830 test -z "$LD" && LD
="$ac_prog"
9833 # If it fails, then pretend we aren't using GCC.
9837 # If it is relative, then search for the first ld in PATH.
9841 elif test "$with_gnu_ld" = yes; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9843 $as_echo_n "checking for GNU ld... " >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9846 $as_echo_n "checking for non-GNU ld... " >&6; }
9848 if test "${acl_cv_path_LD+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9851 if test -z "$LD"; then
9852 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9853 for ac_dir
in $PATH; do
9854 test -z "$ac_dir" && ac_dir
=.
9855 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9856 acl_cv_path_LD
="$ac_dir/$ac_prog"
9857 # Check to see if the program is GNU ld. I'd rather use --version,
9858 # but apparently some GNU ld's only accept -v.
9859 # Break only if it was the GNU/non-GNU ld that we prefer.
9860 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9861 test "$with_gnu_ld" != no
&& break
9863 test "$with_gnu_ld" != yes && break
9869 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9873 LD
="$acl_cv_path_LD"
9874 if test -n "$LD"; then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9876 $as_echo "$LD" >&6; }
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; }
9881 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9883 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9884 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9887 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9888 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9889 acl_cv_prog_gnu_ld
=yes
9891 acl_cv_prog_gnu_ld
=no
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9895 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9896 with_gnu_ld
=$acl_cv_prog_gnu_ld
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9901 $as_echo_n "checking for shared library run path origin... " >&6; }
9902 if test "${acl_cv_rpath+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9906 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9907 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9914 $as_echo "$acl_cv_rpath" >&6; }
9916 libext
="$acl_cv_libext"
9917 shlibext
="$acl_cv_shlibext"
9918 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9919 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9920 hardcode_direct
="$acl_cv_hardcode_direct"
9921 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9922 # Check whether --enable-rpath was given.
9923 if test "${enable_rpath+set}" = set; then :
9924 enableval
=$enable_rpath; :
9938 acl_save_prefix
="$prefix"
9939 prefix
="$acl_final_prefix"
9940 acl_save_exec_prefix
="$exec_prefix"
9941 exec_prefix
="$acl_final_exec_prefix"
9943 eval additional_includedir
=\"$includedir\"
9944 eval additional_libdir
=\"$libdir\"
9946 exec_prefix
="$acl_save_exec_prefix"
9947 prefix
="$acl_save_prefix"
9950 # Check whether --with-libiconv-prefix was given.
9951 if test "${with_libiconv_prefix+set}" = set; then :
9952 withval
=$with_libiconv_prefix;
9953 if test "X$withval" = "Xno"; then
9956 if test "X$withval" = "X"; then
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 eval additional_includedir
=\"$includedir\"
9964 eval additional_libdir
=\"$libdir\"
9966 exec_prefix
="$acl_save_exec_prefix"
9967 prefix
="$acl_save_prefix"
9970 additional_includedir
="$withval/include"
9971 additional_libdir
="$withval/lib"
9982 names_already_handled
=
9983 names_next_round
='iconv '
9984 while test -n "$names_next_round"; do
9985 names_this_round
="$names_next_round"
9987 for name
in $names_this_round; do
9989 for n
in $names_already_handled; do
9990 if test "$n" = "$name"; then
9995 if test -z "$already_handled"; then
9996 names_already_handled
="$names_already_handled $name"
9997 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9998 eval value
=\"\
$HAVE_LIB$uppername\"
9999 if test -n "$value"; then
10000 if test "$value" = yes; then
10001 eval value
=\"\
$LIB$uppername\"
10002 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10003 eval value
=\"\
$LTLIB$uppername\"
10004 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10013 if test $use_additional = yes; then
10014 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10015 found_dir
="$additional_libdir"
10016 found_so
="$additional_libdir/lib$name.$shlibext"
10017 if test -f "$additional_libdir/lib$name.la"; then
10018 found_la
="$additional_libdir/lib$name.la"
10021 if test -f "$additional_libdir/lib$name.$libext"; then
10022 found_dir
="$additional_libdir"
10023 found_a
="$additional_libdir/lib$name.$libext"
10024 if test -f "$additional_libdir/lib$name.la"; then
10025 found_la
="$additional_libdir/lib$name.la"
10030 if test "X$found_dir" = "X"; then
10031 for x
in $LDFLAGS $LTLIBICONV; do
10033 acl_save_prefix
="$prefix"
10034 prefix
="$acl_final_prefix"
10035 acl_save_exec_prefix
="$exec_prefix"
10036 exec_prefix
="$acl_final_exec_prefix"
10038 exec_prefix
="$acl_save_exec_prefix"
10039 prefix
="$acl_save_prefix"
10043 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10044 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10046 found_so
="$dir/lib$name.$shlibext"
10047 if test -f "$dir/lib$name.la"; then
10048 found_la
="$dir/lib$name.la"
10051 if test -f "$dir/lib$name.$libext"; then
10053 found_a
="$dir/lib$name.$libext"
10054 if test -f "$dir/lib$name.la"; then
10055 found_la
="$dir/lib$name.la"
10061 if test "X$found_dir" != "X"; then
10066 if test "X$found_dir" != "X"; then
10067 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10068 if test "X$found_so" != "X"; then
10069 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10070 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10073 for x
in $ltrpathdirs; do
10074 if test "X$x" = "X$found_dir"; then
10079 if test -z "$haveit"; then
10080 ltrpathdirs
="$ltrpathdirs $found_dir"
10082 if test "$hardcode_direct" = yes; then
10083 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10085 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10086 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10088 for x
in $rpathdirs; do
10089 if test "X$x" = "X$found_dir"; then
10094 if test -z "$haveit"; then
10095 rpathdirs
="$rpathdirs $found_dir"
10099 for x
in $LDFLAGS $LIBICONV; do
10101 acl_save_prefix
="$prefix"
10102 prefix
="$acl_final_prefix"
10103 acl_save_exec_prefix
="$exec_prefix"
10104 exec_prefix
="$acl_final_exec_prefix"
10106 exec_prefix
="$acl_save_exec_prefix"
10107 prefix
="$acl_save_prefix"
10109 if test "X$x" = "X-L$found_dir"; then
10114 if test -z "$haveit"; then
10115 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10117 if test "$hardcode_minus_L" != no
; then
10118 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10120 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10126 if test "X$found_a" != "X"; then
10127 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10129 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10132 additional_includedir
=
10133 case "$found_dir" in
10135 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10136 additional_includedir
="$basedir/include"
10139 if test "X$additional_includedir" != "X"; then
10140 if test "X$additional_includedir" != "X/usr/include"; then
10142 if test "X$additional_includedir" = "X/usr/local/include"; then
10143 if test -n "$GCC"; then
10145 linux
*) haveit
=yes;;
10149 if test -z "$haveit"; then
10150 for x
in $CPPFLAGS $INCICONV; do
10152 acl_save_prefix
="$prefix"
10153 prefix
="$acl_final_prefix"
10154 acl_save_exec_prefix
="$exec_prefix"
10155 exec_prefix
="$acl_final_exec_prefix"
10157 exec_prefix
="$acl_save_exec_prefix"
10158 prefix
="$acl_save_prefix"
10160 if test "X$x" = "X-I$additional_includedir"; then
10165 if test -z "$haveit"; then
10166 if test -d "$additional_includedir"; then
10167 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10173 if test -n "$found_la"; then
10174 save_libdir
="$libdir"
10175 case "$found_la" in
10176 */* |
*\\*) .
"$found_la" ;;
10177 *) .
"./$found_la" ;;
10179 libdir
="$save_libdir"
10180 for dep
in $dependency_libs; do
10183 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10184 if test "X$additional_libdir" != "X/usr/lib"; then
10186 if test "X$additional_libdir" = "X/usr/local/lib"; then
10187 if test -n "$GCC"; then
10189 linux
*) haveit
=yes;;
10193 if test -z "$haveit"; then
10195 for x
in $LDFLAGS $LIBICONV; do
10197 acl_save_prefix
="$prefix"
10198 prefix
="$acl_final_prefix"
10199 acl_save_exec_prefix
="$exec_prefix"
10200 exec_prefix
="$acl_final_exec_prefix"
10202 exec_prefix
="$acl_save_exec_prefix"
10203 prefix
="$acl_save_prefix"
10205 if test "X$x" = "X-L$additional_libdir"; then
10210 if test -z "$haveit"; then
10211 if test -d "$additional_libdir"; then
10212 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10216 for x
in $LDFLAGS $LTLIBICONV; do
10218 acl_save_prefix
="$prefix"
10219 prefix
="$acl_final_prefix"
10220 acl_save_exec_prefix
="$exec_prefix"
10221 exec_prefix
="$acl_final_exec_prefix"
10223 exec_prefix
="$acl_save_exec_prefix"
10224 prefix
="$acl_save_prefix"
10226 if test "X$x" = "X-L$additional_libdir"; then
10231 if test -z "$haveit"; then
10232 if test -d "$additional_libdir"; then
10233 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10240 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10241 if test "$enable_rpath" != no
; then
10243 for x
in $rpathdirs; do
10244 if test "X$x" = "X$dir"; then
10249 if test -z "$haveit"; then
10250 rpathdirs
="$rpathdirs $dir"
10253 for x
in $ltrpathdirs; do
10254 if test "X$x" = "X$dir"; then
10259 if test -z "$haveit"; then
10260 ltrpathdirs
="$ltrpathdirs $dir"
10265 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10268 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10271 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10272 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10278 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10279 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10285 if test "X$rpathdirs" != "X"; then
10286 if test -n "$hardcode_libdir_separator"; then
10288 for found_dir
in $rpathdirs; do
10289 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10291 acl_save_libdir
="$libdir"
10293 eval flag
=\"$hardcode_libdir_flag_spec\"
10294 libdir
="$acl_save_libdir"
10295 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10297 for found_dir
in $rpathdirs; do
10298 acl_save_libdir
="$libdir"
10299 libdir
="$found_dir"
10300 eval flag
=\"$hardcode_libdir_flag_spec\"
10301 libdir
="$acl_save_libdir"
10302 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10306 if test "X$ltrpathdirs" != "X"; then
10307 for found_dir
in $ltrpathdirs; do
10308 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10318 am_save_CPPFLAGS
="$CPPFLAGS"
10320 for element
in $INCICONV; do
10322 for x
in $CPPFLAGS; do
10324 acl_save_prefix
="$prefix"
10325 prefix
="$acl_final_prefix"
10326 acl_save_exec_prefix
="$exec_prefix"
10327 exec_prefix
="$acl_final_exec_prefix"
10329 exec_prefix
="$acl_save_exec_prefix"
10330 prefix
="$acl_save_prefix"
10332 if test "X$x" = "X$element"; then
10337 if test -z "$haveit"; then
10338 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10344 $as_echo_n "checking for iconv... " >&6; }
10345 if test "${am_cv_func_iconv+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10349 am_cv_func_iconv
="no, consider installing GNU libiconv"
10351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 #include <stdlib.h>
10358 iconv_t cd = iconv_open("","");
10359 iconv(cd,NULL,NULL,NULL,NULL);
10365 if ac_fn_cxx_try_link
"$LINENO"; then :
10366 am_cv_func_iconv
=yes
10368 rm -f core conftest.err conftest.
$ac_objext \
10369 conftest
$ac_exeext conftest.
$ac_ext
10370 if test "$am_cv_func_iconv" != yes; then
10371 am_save_LIBS
="$LIBS"
10372 LIBS
="$LIBS $LIBICONV"
10373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #include <stdlib.h>
10380 iconv_t cd = iconv_open("","");
10381 iconv(cd,NULL,NULL,NULL,NULL);
10387 if ac_fn_cxx_try_link
"$LINENO"; then :
10388 am_cv_lib_iconv
=yes
10389 am_cv_func_iconv
=yes
10391 rm -f core conftest.err conftest.
$ac_objext \
10392 conftest
$ac_exeext conftest.
$ac_ext
10393 LIBS
="$am_save_LIBS"
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10398 $as_echo "$am_cv_func_iconv" >&6; }
10399 if test "$am_cv_func_iconv" = yes; then
10401 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10404 if test "$am_cv_lib_iconv" = yes; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10406 $as_echo_n "checking how to link with libiconv... " >&6; }
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10408 $as_echo "$LIBICONV" >&6; }
10410 CPPFLAGS
="$am_save_CPPFLAGS"
10417 if test "$am_cv_func_iconv" = yes; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10419 $as_echo_n "checking for iconv declaration... " >&6; }
10420 if test "${am_cv_proto_iconv+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10427 #include <stdlib.h>
10433 #if defined(__STDC__) || defined(__cplusplus)
10434 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10447 if ac_fn_cxx_try_compile
"$LINENO"; then :
10448 am_cv_proto_iconv_arg1
=""
10450 am_cv_proto_iconv_arg1
="const"
10452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10453 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);"
10456 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10458 }$am_cv_proto_iconv" >&5
10460 }$am_cv_proto_iconv" >&6; }
10462 cat >>confdefs.h
<<_ACEOF
10463 #define ICONV_CONST $am_cv_proto_iconv_arg1
10469 ac_cpp
='$CPP $CPPFLAGS'
10470 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10471 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10472 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10475 # Until we have in-tree GNU iconv:
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10481 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10482 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 #include <locale.h>
10496 if ac_fn_c_try_link
"$LINENO"; then :
10497 am_cv_val_LC_MESSAGES
=yes
10499 am_cv_val_LC_MESSAGES
=no
10501 rm -f core conftest.err conftest.
$ac_objext \
10502 conftest
$ac_exeext conftest.
$ac_ext
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10505 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10506 if test $am_cv_val_LC_MESSAGES = yes; then
10508 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10515 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10516 if test "${am_cv_langinfo_codeset+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <langinfo.h>
10525 char* cs = nl_langinfo(CODESET);
10530 if ac_fn_c_try_link
"$LINENO"; then :
10531 am_cv_langinfo_codeset
=yes
10533 am_cv_langinfo_codeset
=no
10535 rm -f core conftest.err conftest.
$ac_objext \
10536 conftest
$ac_exeext conftest.
$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10540 $as_echo "$am_cv_langinfo_codeset" >&6; }
10541 if test $am_cv_langinfo_codeset = yes; then
10543 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10548 # We will need to find libiberty.h and ansidecl.h
10549 saved_CFLAGS
="$CFLAGS"
10550 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10551 saved_CXXFLAGS
="$CXXFLAGS"
10552 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10553 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10554 strsignal strstr stpcpy strverscmp \
10555 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10556 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10558 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10560 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10561 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10562 $as_echo_n "(cached) " >&6
10564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10567 #define $ac_tr_decl 1
10569 #include "ansidecl.h"
10570 #include "system.h"
10576 char *(*pfn) = (char *(*)) $ac_func ;
10582 if ac_fn_c_try_compile
"$LINENO"; then :
10583 eval "gcc_cv_have_decl_$ac_func=yes"
10585 eval "gcc_cv_have_decl_$ac_func=no"
10587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10592 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10593 #define $ac_tr_decl 1
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10599 #define $ac_tr_decl 0
10607 for ac_func
in getrlimit setrlimit getrusage
10609 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10611 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10612 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10613 $as_echo_n "(cached) " >&6
10615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10618 #define $ac_tr_decl 1
10620 #include "ansidecl.h"
10621 #include "system.h"
10622 #ifdef HAVE_SYS_RESOURCE_H
10623 #include <sys/resource.h>
10631 char *(*pfn) = (char *(*)) $ac_func ;
10637 if ac_fn_c_try_compile
"$LINENO"; then :
10638 eval "gcc_cv_have_decl_$ac_func=yes"
10640 eval "gcc_cv_have_decl_$ac_func=no"
10642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10645 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10647 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10648 #define $ac_tr_decl 1
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10654 #define $ac_tr_decl 0
10662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10665 #include "ansidecl.h"
10666 #include "system.h"
10667 #ifdef HAVE_SYS_RESOURCE_H
10668 #include <sys/resource.h>
10679 if ac_fn_c_try_compile
"$LINENO"; then :
10683 $as_echo "#define rlim_t long" >>confdefs.h
10686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10688 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10689 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10690 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10691 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10692 for ac_func
in ldgetname
10694 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10696 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10697 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10698 $as_echo_n "(cached) " >&6
10700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10703 #define $ac_tr_decl 1
10705 #include "ansidecl.h"
10706 #include "system.h"
10707 #ifdef HAVE_LDFCN_H
10718 char *(*pfn) = (char *(*)) $ac_func ;
10724 if ac_fn_c_try_compile
"$LINENO"; then :
10725 eval "gcc_cv_have_decl_$ac_func=yes"
10727 eval "gcc_cv_have_decl_$ac_func=no"
10729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10735 #define $ac_tr_decl 1
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10741 #define $ac_tr_decl 0
10749 for ac_func
in times
10751 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10753 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10754 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10755 $as_echo_n "(cached) " >&6
10757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10760 #define $ac_tr_decl 1
10762 #include "ansidecl.h"
10763 #include "system.h"
10764 #ifdef HAVE_SYS_TIMES_H
10765 #include <sys/times.h>
10773 char *(*pfn) = (char *(*)) $ac_func ;
10779 if ac_fn_c_try_compile
"$LINENO"; then :
10780 eval "gcc_cv_have_decl_$ac_func=yes"
10782 eval "gcc_cv_have_decl_$ac_func=no"
10784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10787 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10790 #define $ac_tr_decl 1
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10796 #define $ac_tr_decl 0
10804 for ac_func
in sigaltstack
10806 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10808 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10809 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10810 $as_echo_n "(cached) " >&6
10812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10815 #define $ac_tr_decl 1
10817 #include "ansidecl.h"
10818 #include "system.h"
10819 #include <signal.h>
10826 char *(*pfn) = (char *(*)) $ac_func ;
10832 if ac_fn_c_try_compile
"$LINENO"; then :
10833 eval "gcc_cv_have_decl_$ac_func=yes"
10835 eval "gcc_cv_have_decl_$ac_func=no"
10837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10840 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10843 #define $ac_tr_decl 1
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10849 #define $ac_tr_decl 0
10857 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10860 ac_cpp
='$CXXCPP $CPPFLAGS'
10861 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10862 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10863 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10865 for ac_func
in madvise
10867 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10869 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10870 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10871 $as_echo_n "(cached) " >&6
10873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10876 #define $ac_tr_decl 1
10878 #include "ansidecl.h"
10879 #include "system.h"
10886 char *(*pfn) = (char *(*)) $ac_func ;
10892 if ac_fn_cxx_try_compile
"$LINENO"; then :
10893 eval "gcc_cv_have_decl_$ac_func=yes"
10895 eval "gcc_cv_have_decl_$ac_func=no"
10897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10900 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10902 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10903 #define $ac_tr_decl 1
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10909 #define $ac_tr_decl 0
10917 ac_cpp
='$CPP $CPPFLAGS'
10918 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10923 # More time-related stuff.
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10925 $as_echo_n "checking for struct tms... " >&6; }
10926 if test "${ac_cv_struct_tms+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10933 #include "ansidecl.h"
10934 #include "system.h"
10935 #ifdef HAVE_SYS_TIMES_H
10936 #include <sys/times.h>
10947 if ac_fn_c_try_compile
"$LINENO"; then :
10948 ac_cv_struct_tms
=yes
10950 ac_cv_struct_tms
=no
10952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10955 $as_echo "$ac_cv_struct_tms" >&6; }
10956 if test $ac_cv_struct_tms = yes; then
10958 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10962 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10963 # revisit after autoconf 2.50.
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10965 $as_echo_n "checking for clock_t... " >&6; }
10966 if test "${gcc_cv_type_clock_t+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10973 #include "ansidecl.h"
10974 #include "system.h"
10984 if ac_fn_c_try_compile
"$LINENO"; then :
10985 gcc_cv_type_clock_t
=yes
10987 gcc_cv_type_clock_t
=no
10989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10992 $as_echo "$gcc_cv_type_clock_t" >&6; }
10993 if test $gcc_cv_type_clock_t = yes; then
10995 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10999 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11000 CFLAGS
="$saved_CFLAGS"
11001 CXXFLAGS
="$saved_CXXFLAGS"
11003 # mkdir takes a single argument on some systems.
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11005 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11006 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11012 #include <sys/types.h>
11013 #ifdef HAVE_SYS_STAT_H
11014 # include <sys/stat.h>
11016 #ifdef HAVE_UNISTD_H
11017 # include <unistd.h>
11019 #ifdef HAVE_DIRECT_H
11020 # include <direct.h>
11030 if ac_fn_c_try_compile
"$LINENO"; then :
11031 gcc_cv_mkdir_takes_one_arg
=no
11033 gcc_cv_mkdir_takes_one_arg
=yes
11035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11038 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11039 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11041 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11052 # With Setjmp/Longjmp based exception handling.
11053 # Check whether --enable-sjlj-exceptions was given.
11054 if test "${enable_sjlj_exceptions+set}" = set; then :
11055 enableval
=$enable_sjlj_exceptions; case $target in
11057 if test $enableval != yes; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11059 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11064 force_sjlj_exceptions
=yes
11068 force_sjlj_exceptions
=yes
11072 force_sjlj_exceptions
=no
11077 if test $force_sjlj_exceptions = yes; then
11078 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11080 cat >>confdefs.h
<<_ACEOF
11081 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11086 # --------------------------------------------------------
11087 # Build, host, and target specific configuration fragments
11088 # --------------------------------------------------------
11090 # Collect build-machine-specific information.
11091 .
${srcdir}/config.build
11093 # Collect host-machine-specific information.
11094 .
${srcdir}/config.
host
11098 # Collect target-machine-specific information.
11099 .
${srcdir}/config.gcc
11101 extra_objs
="${host_extra_objs} ${extra_objs}"
11102 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11104 # Default the target-machine variables that were not explicitly set.
11105 if test x
"$tm_file" = x
11106 then tm_file
=$cpu_type/$cpu_type.h
; fi
11108 if test x
"$extra_headers" = x
11109 then extra_headers
=; fi
11111 if test x
$md_file = x
11112 then md_file
=$cpu_type/$cpu_type.md
; fi
11114 if test x
$out_file = x
11115 then out_file
=$cpu_type/$cpu_type.c
; fi
11117 if test x
"$tmake_file" = x
11118 then tmake_file
=$cpu_type/t-
$cpu_type
11121 # Support --enable-initfini-array.
11122 if test x
$enable_initfini_array != xno
; then
11123 tm_file
="${tm_file} initfini-array.h"
11126 if test x
"$dwarf2" = xyes
11127 then tm_file
="$tm_file tm-dwarf2.h"
11130 # Say what files are being used for the output code and MD file.
11131 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11132 echo "Using \`$srcdir/config/$md_file' as machine description file."
11134 # If any of the xm_file variables contain nonexistent files, warn
11135 # about them and drop them.
11138 for x
in $build_xm_file; do
11139 if test -f $srcdir/config
/$x
11141 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11142 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11145 build_xm_file
="$bx"
11148 for x
in $host_xm_file; do
11149 if test -f $srcdir/config
/$x
11151 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11152 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11158 for x
in $xm_file; do
11159 if test -f $srcdir/config
/$x
11161 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11162 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11168 for f
in $tm_file; do
11171 if test $count = ax
; then
11172 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11174 echo "Using the following target machine macro files:"
11175 for f
in $tm_file; do
11176 echo " $srcdir/config/$f"
11180 if test x
$need_64bit_hwint = xyes
; then
11182 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11186 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11188 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11192 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11194 cat >>confdefs.h
<<_ACEOF
11195 #define HAVE_GNU_LD $gnu_ld_bool
11199 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11201 cat >>confdefs.h
<<_ACEOF
11202 #define HAVE_GNU_AS $gnu_as_bool
11207 for f
in $host_xm_file; do
11210 if test $count = a
; then
11212 elif test $count = ax
; then
11213 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11215 echo "Using the following host machine macro files:"
11216 for f
in $host_xm_file; do
11217 echo " $srcdir/config/$f"
11220 echo "Using ${out_host_hook_obj} for host machine hooks."
11222 if test "$host_xm_file" != "$build_xm_file"; then
11224 for f
in $build_xm_file; do
11227 if test $count = a
; then
11229 elif test $count = ax
; then
11230 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11232 echo "Using the following build machine macro files:"
11233 for f
in $build_xm_file; do
11234 echo " $srcdir/config/$f"
11239 if test -n "$configured_native_system_header_dir"; then
11240 native_system_header_dir
=$configured_native_system_header_dir
11242 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11246 powerpc
*-*-darwin*)
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11248 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11249 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11250 $as_echo_n "(cached) " >&6
11252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11255 #include <sys/cdefs.h>
11256 #include <sys/signal.h>
11257 #include <ucontext.h>
11258 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11261 if ac_fn_c_try_compile
"$LINENO"; then :
11262 gcc_cv_mcontext_underscores
=no
11264 gcc_cv_mcontext_underscores
=yes
11266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11269 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11270 if test $gcc_cv_mcontext_underscores = yes; then
11272 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11282 # Check if a valid thread package
11283 case ${enable_threads} in
11286 target_thread_file
='single'
11290 target_thread_file
='single'
11292 aix | dce | lynx | mipssde | posix | rtems | \
11293 single | tpf | vxworks | win32
)
11294 target_thread_file
=${enable_threads}
11297 echo "${enable_threads} is an unknown thread package" 1>&2
11302 if test x
${thread_file} = x
; then
11303 # No thread file set by target-specific clauses in config.gcc,
11304 # so use file chosen by default logic above
11305 thread_file
=${target_thread_file}
11313 if test x
$enable___cxa_atexit = xyes || \
11314 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11315 if test x
$host = x
$target; then
11317 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11318 # keyed to flag_use_cxa_atexit
11323 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11324 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11327 echo "__cxa_atexit can't be enabled on this target"
11333 # We can't check for __cxa_atexit when building a cross, so assume
11337 if test x
$use_cxa_atexit = xyes
; then
11339 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11344 # Look for a file containing extra machine modes.
11345 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11346 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11349 cat >>confdefs.h
<<_ACEOF
11350 #define EXTRA_MODES_FILE "config/$extra_modes"
11355 # Convert extra_options into a form suitable for Makefile use.
11358 for f
in $extra_options; do
11359 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11360 all_opt_files
="$all_opt_files $srcdir/config/$f"
11364 # auto-host.h is the file containing items generated by autoconf and is
11365 # the first file included by config.h.
11366 # If host=build, it is correct to have bconfig include auto-host.h
11367 # as well. If host!=build, we are in error and need to do more
11368 # work to find out the build config parameters.
11369 if test x
$host = x
$build
11371 build_auto
=auto-host.h
11373 # We create a subdir, then run autoconf in the subdir.
11374 # To prevent recursion we set host and build for the new
11375 # invocation of configure to the build for this invocation
11382 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11383 *) realsrcdir
=..
/${srcdir};;
11385 saved_CFLAGS
="${CFLAGS}"
11386 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11387 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11388 ${realsrcdir}/configure \
11389 --enable-languages=${enable_languages-all} \
11390 --target=$target_alias --host=$build_alias --build=$build_alias
11391 CFLAGS
="${saved_CFLAGS}"
11393 # We just finished tests for the build machine, so rename
11394 # the file auto-build.h in the gcc directory.
11395 mv auto-host.h ..
/auto-build.h
11398 build_auto
=auto-build.h
11402 tm_file
="${tm_file} defaults.h"
11403 tm_p_file
="${tm_p_file} tm-preds.h"
11404 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11405 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11406 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11407 # put this back in temporarily.
11408 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11414 # Compile in configure arguments.
11415 if test -f configargs.h
; then
11416 # Being re-configured.
11417 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11418 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11420 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11423 # Double all backslashes and backslash all quotes to turn
11424 # gcc_config_arguments into a C string.
11425 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11426 $gcc_config_arguments
11428 gcc_config_arguments_str
=`cat conftest.out`
11431 cat > configargs.h
<<EOF
11432 /* Generated automatically. */
11433 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11434 static const char thread_model[] = "$thread_file";
11436 static const struct {
11437 const char *name, *value;
11438 } configure_default_options[] = $configure_default_options;
11441 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11442 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11443 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11444 if test -f $srcdir/REVISION
; then
11445 gcc_REVISION
=`cat $srcdir/REVISION`
11449 cat > plugin-version.h
<<EOF
11450 #include "configargs.h"
11452 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11453 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11454 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11455 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11457 static char basever[] = "$gcc_BASEVER";
11458 static char datestamp[] = "$gcc_DATESTAMP";
11459 static char devphase[] = "$gcc_DEVPHASE";
11460 static char revision[] = "$gcc_REVISION";
11462 /* FIXME plugins: We should make the version information more precise.
11463 One way to do is to add a checksum. */
11465 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11466 devphase, revision,
11467 configuration_arguments};
11470 # Internationalization
11471 # If we haven't got the data from the intl directory,
11472 # assume NLS is disabled.
11481 if test -f ..
/intl
/config.intl
; then
11482 . ..
/intl
/config.intl
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11485 $as_echo_n "checking whether NLS is requested... " >&6; }
11486 if test x
"$USE_NLS" != xyes
; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11491 $as_echo "yes" >&6; }
11493 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11497 $as_echo_n "checking for catalogs to be installed... " >&6; }
11498 # Look for .po and .gmo files in the source directory.
11501 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11502 # If there aren't any .gmo files the shell will give us the
11503 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11505 case "$cat" in *\
**)
11508 # The quadruple backslash is collapsed to a double backslash
11509 # by the backticks, then collapsed again by the double quotes,
11510 # leaving us with one backslash in the sed expression (right
11511 # before the dot that mustn't act as a wildcard).
11512 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11513 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11514 # The user is allowed to set LINGUAS to a list of languages to
11515 # install catalogs for. If it's empty that means "all of them."
11516 if test "x$LINGUAS" = x
; then
11517 CATALOGS
="$CATALOGS $cat"
11518 XLINGUAS
="$XLINGUAS $lang"
11520 case "$LINGUAS" in *$lang*)
11521 CATALOGS
="$CATALOGS $cat"
11522 XLINGUAS
="$XLINGUAS $lang"
11527 LINGUAS
="$XLINGUAS"
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11529 $as_echo "$LINGUAS" >&6; }
11542 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11543 # -liconv on the link line twice.
11544 case "$LIBINTL" in *$LIBICONV*)
11548 # Check whether --enable-secureplt was given.
11549 if test "${enable_secureplt+set}" = set; then :
11550 enableval
=$enable_secureplt;
11554 # Check whether --enable-leading-mingw64-underscores was given.
11555 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11556 enableval
=$enable_leading_mingw64_underscores;
11559 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11561 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11565 # Check whether --enable-cld was given.
11566 if test "${enable_cld+set}" = set; then :
11567 enableval
=$enable_cld;
11573 # Check whether --enable-frame-pointer was given.
11574 if test "${enable_frame_pointer+set}" = set; then :
11575 enableval
=$enable_frame_pointer;
11579 linux
* | darwin
[8912]*)
11580 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11582 enable_frame_pointer
=no
11585 enable_frame_pointer
=yes
11592 # Windows32 Registry support for specifying GCC installation paths.
11593 # Check whether --enable-win32-registry was given.
11594 if test "${enable_win32_registry+set}" = set; then :
11595 enableval
=$enable_win32_registry;
11600 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11601 if test "x$enable_win32_registry" != xno
; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11603 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11604 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11607 ac_func_search_save_LIBS
=$LIBS
11608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11617 char RegOpenKeyExA ();
11621 return RegOpenKeyExA ();
11626 for ac_lib
in '' advapi32
; do
11627 if test -z "$ac_lib"; then
11628 ac_res
="none required"
11631 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11633 if ac_fn_c_try_link
"$LINENO"; then :
11634 ac_cv_search_RegOpenKeyExA
=$ac_res
11636 rm -f core conftest.err conftest.
$ac_objext \
11638 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11642 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11645 ac_cv_search_RegOpenKeyExA
=no
11647 rm conftest.
$ac_ext
11648 LIBS
=$ac_func_search_save_LIBS
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11651 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11652 ac_res
=$ac_cv_search_RegOpenKeyExA
11653 if test "$ac_res" != no
; then :
11654 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11657 enable_win32_registry
=no
11662 if test "x$enable_win32_registry" != xno
; then
11664 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11667 if test "x$enable_win32_registry" != xyes \
11668 && test "x$enable_win32_registry" != x
; then
11670 cat >>confdefs.h
<<_ACEOF
11671 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11679 # Get an absolute path to the GCC top-level source directory
11680 holddir
=`${PWDCMD-pwd}`
11682 topdir
=`${PWDCMD-pwd}`
11685 # Conditionalize the makefile for this host machine.
11687 for f
in ${host_xmake_file}
11689 if test -f ${srcdir}/config
/$f
11691 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11695 # Conditionalize the makefile for this target machine.
11697 for f
in ${tmake_file}
11699 if test -f ${srcdir}/config
/$f
11701 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11704 tmake_file
="${tmake_file_}"
11706 out_object_file
=`basename $out_file .c`.o
11707 common_out_object_file
=`basename $common_out_file .c`.o
11709 tm_file_list
="options.h"
11710 tm_include_list
="options.h insn-constants.h"
11711 for f
in $tm_file; do
11714 f
=`echo $f | sed 's/^..//'`
11715 tm_file_list
="${tm_file_list} $f"
11716 tm_include_list
="${tm_include_list} $f"
11719 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11720 tm_include_list
="${tm_include_list} $f"
11723 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11724 tm_include_list
="${tm_include_list} config/$f"
11731 for f
in $tm_p_file; do
11734 tm_p_file_list
="${tm_p_file_list} $f"
11735 tm_p_include_list
="${tm_p_include_list} $f"
11738 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11739 tm_p_include_list
="${tm_p_include_list} config/$f"
11745 for f
in $xm_file; do
11748 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11749 xm_include_list
="${xm_include_list} $f"
11752 xm_file_list
="${xm_file_list} $f"
11753 xm_include_list
="${xm_include_list} $f"
11756 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11757 xm_include_list
="${xm_include_list} config/$f"
11763 host_xm_include_list
=
11764 for f
in $host_xm_file; do
11767 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11768 host_xm_include_list
="${host_xm_include_list} $f"
11771 host_xm_file_list
="${host_xm_file_list} $f"
11772 host_xm_include_list
="${host_xm_include_list} $f"
11775 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11776 host_xm_include_list
="${host_xm_include_list} config/$f"
11781 build_xm_file_list
=
11782 for f
in $build_xm_file; do
11785 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11786 build_xm_include_list
="${build_xm_include_list} $f"
11788 auto-build.h | auto-host.h
)
11789 build_xm_file_list
="${build_xm_file_list} $f"
11790 build_xm_include_list
="${build_xm_include_list} $f"
11793 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11794 build_xm_include_list
="${build_xm_include_list} config/$f"
11799 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11800 # cross-compiler which does not use the native headers and libraries.
11801 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11804 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11806 if test "x$with_build_sysroot" != x
; then
11807 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11809 # This value is used, even on a native system, because
11810 # CROSS_SYSTEM_HEADER_DIR is just
11811 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11812 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11815 if test x
$host != x
$target
11817 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11819 SYSTEM_HEADER_DIR
=$build_system_header_dir
11820 case "$host","$target" in
11821 # Darwin crosses can use the host system's libraries and headers,
11822 # because of the fat library support. Of course, it must be the
11823 # same version of Darwin on both sides. Allow the user to
11824 # just say --target=foo-darwin without a version number to mean
11825 # "the version on this system".
11826 *-*-darwin*,*-*-darwin*)
11827 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11828 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11829 if test $hostos = $targetos -o $targetos = darwin
; then
11831 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11836 i?
86-*-*,x86_64-
*-* \
11837 | powerpc
*-*-*,powerpc64
*-*-*)
11838 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11843 if test "x$with_headers" = x
; then
11850 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11851 SYSTEM_HEADER_DIR
=$build_system_header_dir
11854 # If this is a cross-compiler that does not
11855 # have its own set of headers then define
11858 # If this is using newlib, without having the headers available now,
11859 # then define inhibit_libc in LIBGCC2_CFLAGS.
11860 # This prevents libgcc2 from containing any code which requires libc
11862 : ${inhibit_libc=false}
11863 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11864 test x
$with_newlib = xyes
; } &&
11865 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11870 # When building gcc with a cross-compiler, we need to adjust things so
11871 # that the generator programs are still built with the native compiler.
11872 # Also, we cannot run fixincludes.
11874 # These are the normal (build=host) settings:
11875 CC_FOR_BUILD
='$(CC)'
11876 CXX_FOR_BUILD
='$(CXX)'
11877 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11878 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11879 BUILD_LDFLAGS
='$(LDFLAGS)'
11880 STMP_FIXINC
=stmp-fixinc
11882 # And these apply if build != host, or we are generating coverage data
11883 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11885 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11886 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11889 # Expand extra_headers to include complete path.
11890 # This substitutes for lots of t-* files.
11891 extra_headers_list
=
11892 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11893 for file in ${extra_headers} ; do
11894 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11897 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11898 if test x
"$use_gcc_tgmath" = xyes
11899 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11902 # Define collect2 in Makefile.
11903 case $host_can_use_collect2 in
11905 *) collect2
='collect2$(exeext)' ;;
11909 # Add a definition of USE_COLLECT2 if system wants one.
11910 case $use_collect2 in
11911 no
) use_collect2
= ;;
11914 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11915 xm_defines
="${xm_defines} USE_COLLECT2"
11916 case $host_can_use_collect2 in
11918 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11925 cat >>confdefs.h
<<_ACEOF
11926 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11930 # ---------------------------
11931 # Assembler & linker features
11932 # ---------------------------
11934 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11935 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11936 # However when ld-new is first executed from the build tree, libtool will
11937 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11938 # to the build tree. While doing this we need to use the previous-stage
11939 # linker, or we have an infinite loop. The presence of a shell script as
11940 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11941 # the gcc/collect-ld script. So we need to know how libtool works, or
11942 # exec-tool will fail.
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11948 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11953 macro_version
='2.2.7a'
11954 macro_revision
='1.3134'
11968 ltmain
="$ac_aux_dir/ltmain.sh"
11970 # Backslashify metacharacters that are still active within
11971 # double-quoted strings.
11972 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11974 # Same as above, but do not quote variable references.
11975 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11977 # Sed substitution to delay expansion of an escaped shell variable in a
11978 # double_quote_subst'ed string.
11979 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11981 # Sed substitution to delay expansion of an escaped single quote.
11982 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11984 # Sed substitution to avoid accidental globbing in evaled expressions
11985 no_glob_subst
='s/\*/\\\*/g'
11987 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11988 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11989 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11992 $as_echo_n "checking how to print strings... " >&6; }
11993 # Test print first, because it will be a builtin if present.
11994 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11995 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11997 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12000 # Use this function as a fallback that always works.
12001 func_fallback_echo ()
12003 eval 'cat <<_LTECHO_EOF
12007 ECHO='func_fallback_echo
'
12010 # func_echo_all arg...
12011 # Invoke $ECHO with all args, space-separated.
12018 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12019 $as_echo "printf" >&6; } ;;
12020 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12021 $as_echo "print -r" >&6; } ;;
12022 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12023 $as_echo "cat" >&6; } ;;
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12040 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12041 if test "${ac_cv_path_SED+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12044 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12045 for ac_i in 1 2 3 4 5 6 7; do
12046 ac_script="$ac_script$as_nl$ac_script"
12048 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12049 { ac_script=; unset ac_script;}
12050 if test -z "$SED"; then
12051 ac_path_SED_found=false
12052 # Loop through the user's path and
test for each of PROGNAME-LIST
12053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12054 for as_dir
in $PATH
12057 test -z "$as_dir" && as_dir
=.
12058 for ac_prog
in sed gsed
; do
12059 for ac_exec_ext
in '' $ac_executable_extensions; do
12060 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12061 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12062 # Check for GNU ac_path_SED and select it if it is found.
12063 # Check for GNU $ac_path_SED
12064 case `"$ac_path_SED" --version 2>&1` in
12066 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12069 $as_echo_n 0123456789 >"conftest.in"
12072 cat "conftest.in" "conftest.in" >"conftest.tmp"
12073 mv "conftest.tmp" "conftest.in"
12074 cp "conftest.in" "conftest.nl"
12075 $as_echo '' >> "conftest.nl"
12076 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12078 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12079 if test $ac_count -gt ${ac_path_SED_max-0}; then
12080 # Best one so far, save it but keep looking for a better one
12081 ac_cv_path_SED
="$ac_path_SED"
12082 ac_path_SED_max
=$ac_count
12084 # 10*(2^10) chars as input seems more than enough
12085 test $ac_count -gt 10 && break
12087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12090 $ac_path_SED_found && break 3
12095 if test -z "$ac_cv_path_SED"; then
12096 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12099 ac_cv_path_SED
=$SED
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12104 $as_echo "$ac_cv_path_SED" >&6; }
12105 SED
="$ac_cv_path_SED"
12108 test -z "$SED" && SED
=sed
12109 Xsed
="$SED -e 1s/^X//"
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12122 $as_echo_n "checking for fgrep... " >&6; }
12123 if test "${ac_cv_path_FGREP+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12126 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12127 then ac_cv_path_FGREP
="$GREP -F"
12129 if test -z "$FGREP"; then
12130 ac_path_FGREP_found
=false
12131 # Loop through the user's path and test for each of PROGNAME-LIST
12132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12133 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12136 test -z "$as_dir" && as_dir
=.
12137 for ac_prog
in fgrep
; do
12138 for ac_exec_ext
in '' $ac_executable_extensions; do
12139 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12140 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12141 # Check for GNU ac_path_FGREP and select it if it is found.
12142 # Check for GNU $ac_path_FGREP
12143 case `"$ac_path_FGREP" --version 2>&1` in
12145 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12148 $as_echo_n 0123456789 >"conftest.in"
12151 cat "conftest.in" "conftest.in" >"conftest.tmp"
12152 mv "conftest.tmp" "conftest.in"
12153 cp "conftest.in" "conftest.nl"
12154 $as_echo 'FGREP' >> "conftest.nl"
12155 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12156 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12157 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12158 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12159 # Best one so far, save it but keep looking for a better one
12160 ac_cv_path_FGREP
="$ac_path_FGREP"
12161 ac_path_FGREP_max
=$ac_count
12163 # 10*(2^10) chars as input seems more than enough
12164 test $ac_count -gt 10 && break
12166 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12169 $ac_path_FGREP_found && break 3
12174 if test -z "$ac_cv_path_FGREP"; then
12175 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12178 ac_cv_path_FGREP
=$FGREP
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12184 $as_echo "$ac_cv_path_FGREP" >&6; }
12185 FGREP
="$ac_cv_path_FGREP"
12188 test -z "$GREP" && GREP
=grep
12208 # Check whether --with-gnu-ld was given.
12209 if test "${with_gnu_ld+set}" = set; then :
12210 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12216 if test "$GCC" = yes; then
12217 # Check if gcc -print-prog-name=ld gives a path.
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12219 $as_echo_n "checking for ld used by $CC... " >&6; }
12222 # gcc leaves a trailing carriage return which upsets mingw
12223 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12225 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12228 # Accept absolute paths.
12230 re_direlt
='/[^/][^/]*/\.\./'
12231 # Canonicalize the pathname of ld
12232 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12233 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12234 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12236 test -z "$LD" && LD
="$ac_prog"
12239 # If it fails, then pretend we aren't using GCC.
12243 # If it is relative, then search for the first ld in PATH.
12244 with_gnu_ld
=unknown
12247 elif test "$with_gnu_ld" = yes; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12249 $as_echo_n "checking for GNU ld... " >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12252 $as_echo_n "checking for non-GNU ld... " >&6; }
12254 if test "${lt_cv_path_LD+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12257 if test -z "$LD"; then
12258 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12259 for ac_dir
in $PATH; do
12261 test -z "$ac_dir" && ac_dir
=.
12262 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12263 lt_cv_path_LD
="$ac_dir/$ac_prog"
12264 # Check to see if the program is GNU ld. I'd rather use --version,
12265 # but apparently some variants of GNU ld only accept -v.
12266 # Break only if it was the GNU/non-GNU ld that we prefer.
12267 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12268 *GNU
* |
*'with BFD'*)
12269 test "$with_gnu_ld" != no
&& break
12272 test "$with_gnu_ld" != yes && break
12279 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12283 LD
="$lt_cv_path_LD"
12284 if test -n "$LD"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12286 $as_echo "$LD" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12291 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12293 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12294 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
12297 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12298 case `$LD -v 2>&1 </dev/null` in
12299 *GNU
* |
*'with BFD'*)
12300 lt_cv_prog_gnu_ld
=yes
12303 lt_cv_prog_gnu_ld
=no
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12308 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12309 with_gnu_ld
=$lt_cv_prog_gnu_ld
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12320 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12321 if test "${lt_cv_path_NM+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
12324 if test -n "$NM"; then
12325 # Let the user override the test.
12326 lt_cv_path_NM
="$NM"
12328 lt_nm_to_check
="${ac_tool_prefix}nm"
12329 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12330 lt_nm_to_check
="$lt_nm_to_check nm"
12332 for lt_tmp_nm
in $lt_nm_to_check; do
12333 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12334 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12336 test -z "$ac_dir" && ac_dir
=.
12337 tmp_nm
="$ac_dir/$lt_tmp_nm"
12338 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12339 # Check to see if the nm accepts a BSD-compat flag.
12340 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12341 # nm: unknown option "B" ignored
12342 # Tru64's nm complains that /dev/null is an invalid object file
12343 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12344 */dev
/null
* |
*'Invalid file or object type'*)
12345 lt_cv_path_NM
="$tmp_nm -B"
12349 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12351 lt_cv_path_NM
="$tmp_nm -p"
12355 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12356 continue # so that we can try to find one that supports BSD flags
12365 : ${lt_cv_path_NM=no}
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12369 $as_echo "$lt_cv_path_NM" >&6; }
12370 if test "$lt_cv_path_NM" != "no"; then
12371 NM
="$lt_cv_path_NM"
12373 # Didn't find any BSD compatible name lister, look for dumpbin.
12374 if test -n "$DUMPBIN"; then :
12375 # Let the user override the test.
12377 if test -n "$ac_tool_prefix"; then
12378 for ac_prog
in dumpbin
"link -dump"
12380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12381 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
12387 if test -n "$DUMPBIN"; then
12388 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12391 for as_dir
in $PATH
12394 test -z "$as_dir" && as_dir
=.
12395 for ac_exec_ext
in '' $ac_executable_extensions; do
12396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12397 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 DUMPBIN
=$ac_cv_prog_DUMPBIN
12408 if test -n "$DUMPBIN"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12410 $as_echo "$DUMPBIN" >&6; }
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12417 test -n "$DUMPBIN" && break
12420 if test -z "$DUMPBIN"; then
12421 ac_ct_DUMPBIN
=$DUMPBIN
12422 for ac_prog
in dumpbin
"link -dump"
12424 # Extract the first word of "$ac_prog", so it can be a program name with args.
12425 set dummy
$ac_prog; ac_word
=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 if test -n "$ac_ct_DUMPBIN"; then
12432 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12435 for as_dir
in $PATH
12438 test -z "$as_dir" && as_dir
=.
12439 for ac_exec_ext
in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12452 if test -n "$ac_ct_DUMPBIN"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12454 $as_echo "$ac_ct_DUMPBIN" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12461 test -n "$ac_ct_DUMPBIN" && break
12464 if test "x$ac_ct_DUMPBIN" = x
; then
12467 case $cross_compiling:$ac_tool_warned in
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12471 ac_tool_warned
=yes ;;
12473 DUMPBIN
=$ac_ct_DUMPBIN
12477 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12479 DUMPBIN
="$DUMPBIN -symbols"
12487 if test "$DUMPBIN" != ":"; then
12491 test -z "$NM" && NM
=nm
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12499 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12500 if test "${lt_cv_nm_interface+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12503 lt_cv_nm_interface
="BSD nm"
12504 echo "int some_variable = 0;" > conftest.
$ac_ext
12505 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12506 (eval "$ac_compile" 2>conftest.err
)
12507 cat conftest.err
>&5
12508 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12509 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12510 cat conftest.err
>&5
12511 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12512 cat conftest.out
>&5
12513 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12514 lt_cv_nm_interface
="MS dumpbin"
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12519 $as_echo "$lt_cv_nm_interface" >&6; }
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12522 $as_echo_n "checking whether ln -s works... " >&6; }
12524 if test "$LN_S" = "ln -s"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12526 $as_echo "yes" >&6; }
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12529 $as_echo "no, using $LN_S" >&6; }
12532 # find the maximum length of command line arguments
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12534 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12535 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12543 # On DJGPP, this test can blow up pretty badly due to problems in libc
12544 # (any single argument exceeding 2000 bytes causes a buffer overrun
12545 # during glob expansion). Even if it were fixed, the result of this
12546 # check would be larger than it should be.
12547 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12551 # Under GNU Hurd, this test is not required because there is
12552 # no limit to the length of command line arguments.
12553 # Libtool will interpret -1 as no limit whatsoever
12554 lt_cv_sys_max_cmd_len
=-1;
12557 cygwin
* | mingw
* | cegcc
*)
12558 # On Win9x/ME, this test blows up -- it succeeds, but takes
12559 # about 5 minutes as the teststring grows exponentially.
12560 # Worse, since 9x/ME are not pre-emptively multitasking,
12561 # you end up with a "frozen" computer, even though with patience
12562 # the test eventually succeeds (with a max line length of 256k).
12563 # Instead, let's just punt: use the minimum linelength reported by
12564 # all of the supported platforms: 8192 (on NT/2K/XP).
12565 lt_cv_sys_max_cmd_len
=8192;
12569 # On MiNT this can take a long time and run out of memory.
12570 lt_cv_sys_max_cmd_len
=8192;
12574 # On AmigaOS with pdksh, this test takes hours, literally.
12575 # So we just punt and use a minimum line length of 8192.
12576 lt_cv_sys_max_cmd_len
=8192;
12579 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12580 # This has been around since 386BSD, at least. Likely further.
12581 if test -x /sbin
/sysctl
; then
12582 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12583 elif test -x /usr
/sbin
/sysctl
; then
12584 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12586 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12588 # And add a safety zone
12589 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12590 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12594 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12595 lt_cv_sys_max_cmd_len
=196608
12599 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12600 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12601 # nice to cause kernel panics so lets avoid the loop below.
12602 # First set a reasonable default.
12603 lt_cv_sys_max_cmd_len
=16384
12605 if test -x /sbin
/sysconfig
; then
12606 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12607 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12612 lt_cv_sys_max_cmd_len
=102400
12614 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12615 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12616 if test -n "$kargmax"; then
12617 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12619 lt_cv_sys_max_cmd_len
=32768
12623 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12624 if test -n "$lt_cv_sys_max_cmd_len"; then
12625 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12626 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12628 # Make teststring a little bigger before we do anything with it.
12629 # a 1K string should be a reasonable start.
12630 for i
in 1 2 3 4 5 6 7 8 ; do
12631 teststring
=$teststring$teststring
12633 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12634 # If test is not a shell built-in, we'll probably end up computing a
12635 # maximum length that is only half of the actual maximum length, but
12637 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12638 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12639 test $i != 17 # 1/2 MB should be enough
12642 teststring
=$teststring$teststring
12644 # Only check the string length outside the loop.
12645 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12647 # Add a significant safety factor because C++ compilers can tack on
12648 # massive amounts of additional arguments before passing them to the
12649 # linker. It appears as though 1/2 is a usable value.
12650 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12657 if test -n $lt_cv_sys_max_cmd_len ; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12659 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12662 $as_echo "none" >&6; }
12664 max_cmd_len
=$lt_cv_sys_max_cmd_len
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12676 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12677 # Try some XSI features
12679 ( _lt_dummy
="a/b/c"
12680 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12682 && eval 'test $(( 1 + 1 )) -eq 2 \
12683 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12686 $as_echo "$xsi_shell" >&6; }
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12690 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12692 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12694 && lt_shell_append=yes
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12696 $as_echo "$lt_shell_append" >&6; }
12699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12709 # test EBCDIC or ASCII
12710 case `echo X|tr X '\101'` in
12711 A) # ASCII based system
12712 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12713 lt_SP2NL='tr \040 \012'
12714 lt_NL2SP='tr \015\012 \040\040'
12716 *) # EBCDIC based system
12717 lt_SP2NL='tr \100 \n'
12718 lt_NL2SP='tr \r\n \100\100'
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12731 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12732 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12733 $as_echo_n "(cached
) " >&6
12735 lt_cv_ld_reload_flag='-r'
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12738 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12739 reload_flag=$lt_cv_ld_reload_flag
12740 case $reload_flag in
12742 *) reload_flag=" $reload_flag" ;;
12744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12747 if test "$GCC" = yes; then
12748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12763 if test -n "$ac_tool_prefix"; then
12764 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12765 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12767 $as_echo_n "checking
for $ac_word...
" >&6; }
12768 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12769 $as_echo_n "(cached
) " >&6
12771 if test -n "$OBJDUMP"; then
12772 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12791 OBJDUMP=$ac_cv_prog_OBJDUMP
12792 if test -n "$OBJDUMP"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12794 $as_echo "$OBJDUMP" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12797 $as_echo "no
" >&6; }
12802 if test -z "$ac_cv_prog_OBJDUMP"; then
12803 ac_ct_OBJDUMP=$OBJDUMP
12804 # Extract the first word of "objdump
", so it can be a program name with args.
12805 set dummy objdump; ac_word=$2
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12807 $as_echo_n "checking
for $ac_word...
" >&6; }
12808 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12809 $as_echo_n "(cached
) " >&6
12811 if test -n "$ac_ct_OBJDUMP"; then
12812 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815 for as_dir in $PATH
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12821 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12831 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12832 if test -n "$ac_ct_OBJDUMP"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12834 $as_echo "$ac_ct_OBJDUMP" >&6; }
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12837 $as_echo "no
" >&6; }
12840 if test "x
$ac_ct_OBJDUMP" = x; then
12843 case $cross_compiling:$ac_tool_warned in
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12846 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12847 ac_tool_warned=yes ;;
12849 OBJDUMP=$ac_ct_OBJDUMP
12852 OBJDUMP="$ac_cv_prog_OBJDUMP"
12855 test -z "$OBJDUMP" && OBJDUMP=objdump
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12866 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12867 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12868 $as_echo_n "(cached
) " >&6
12870 lt_cv_file_magic_cmd='$MAGIC_CMD'
12871 lt_cv_file_magic_test_file=
12872 lt_cv_deplibs_check_method='unknown'
12873 # Need to set the preceding variable on all platforms that support
12874 # interlibrary dependencies.
12875 # 'none' -- dependencies not supported.
12876 # `unknown' -- same as none, but documents that we really don't know.
12877 # 'pass_all' -- all dependencies passed with no checks.
12878 # 'test_compile' -- check by making test program.
12879 # 'file_magic [[regex]]' -- check by looking for files in library path
12880 # which responds to the $file_magic_cmd with a given extended regex.
12881 # If you have `file' or equivalent on your system and you're not sure
12882 # whether `pass_all' will *always* work, you probably want this one.
12886 lt_cv_deplibs_check_method=pass_all
12890 lt_cv_deplibs_check_method=pass_all
12894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12895 lt_cv_file_magic_cmd='/usr/bin/file -L'
12896 lt_cv_file_magic_test_file=/shlib/libc.so
12900 # func_win32_libid is a shell function defined in ltmain.sh
12901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12902 lt_cv_file_magic_cmd='func_win32_libid'
12906 # Base MSYS/MinGW do not provide the 'file' command needed by
12907 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12908 # unless we find 'file', for example because we are cross-compiling.
12909 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12910 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12912 lt_cv_file_magic_cmd='func_win32_libid'
12914 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12915 lt_cv_file_magic_cmd='$OBJDUMP -f'
12920 # use the weaker test based on 'objdump'. See mingw*.
12921 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12922 lt_cv_file_magic_cmd='$OBJDUMP -f'
12925 darwin* | rhapsody*)
12926 lt_cv_deplibs_check_method=pass_all
12929 freebsd* | dragonfly*)
12930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12933 # Not sure whether the presence of OpenBSD here was a mistake.
12934 # Let's accept both of them until this is cleared up.
12935 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12936 lt_cv_file_magic_cmd=/usr/bin/file
12937 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12941 lt_cv_deplibs_check_method=pass_all
12946 lt_cv_deplibs_check_method=pass_all
12950 lt_cv_deplibs_check_method=pass_all
12953 hpux10.20* | hpux11*)
12954 lt_cv_file_magic_cmd=/usr/bin/file
12957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12958 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12961 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]'
12962 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12966 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12972 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12976 irix5* | irix6* | nonstopux*)
12978 *-32|*"-32 ") libmagic=32-bit;;
12979 *-n32|*"-n32 ") libmagic=N32;;
12980 *-64|*"-64 ") libmagic=64-bit;;
12981 *) libmagic=never-match;;
12983 lt_cv_deplibs_check_method=pass_all
12986 # This must be Linux ELF.
12987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12988 lt_cv_deplibs_check_method=pass_all
12992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13001 lt_cv_file_magic_cmd=/usr/bin/file
13002 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13006 lt_cv_deplibs_check_method=pass_all
13010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13017 osf3* | osf4* | osf5*)
13018 lt_cv_deplibs_check_method=pass_all
13022 lt_cv_deplibs_check_method=pass_all
13026 lt_cv_deplibs_check_method=pass_all
13029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13030 lt_cv_deplibs_check_method=pass_all
13034 case $host_vendor in
13036 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]'
13037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13040 lt_cv_deplibs_check_method=pass_all
13043 lt_cv_file_magic_cmd='/bin/file'
13044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13047 lt_cv_file_magic_cmd='/bin/file'
13048 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13049 lt_cv_file_magic_test_file=/lib/libc.so
13052 lt_cv_deplibs_check_method=pass_all
13055 lt_cv_deplibs_check_method=pass_all
13061 lt_cv_deplibs_check_method=pass_all
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13067 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13068 file_magic_cmd=$lt_cv_file_magic_cmd
13069 deplibs_check_method=$lt_cv_deplibs_check_method
13070 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13083 if test -n "$ac_tool_prefix"; then
13084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13085 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then :
13089 $as_echo_n "(cached
) " >&6
13091 if test -n "$AR"; then
13092 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13112 if test -n "$AR"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13114 $as_echo "$AR" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13117 $as_echo "no
" >&6; }
13122 if test -z "$ac_cv_prog_AR"; then
13124 # Extract the first word of "ar", so it can be a program name with args.
13125 set dummy ar; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13127 $as_echo_n "checking
for $ac_word...
" >&6; }
13128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13129 $as_echo_n "(cached
) " >&6
13131 if test -n "$ac_ct_AR"; then
13132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13141 ac_cv_prog_ac_ct_AR="ar"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13152 if test -n "$ac_ct_AR"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13154 $as_echo "$ac_ct_AR" >&6; }
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13157 $as_echo "no
" >&6; }
13160 if test "x
$ac_ct_AR" = x; then
13163 case $cross_compiling:$ac_tool_warned in
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13166 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13167 ac_tool_warned=yes ;;
13172 AR="$ac_cv_prog_AR"
13175 test -z "$AR" && AR=ar
13176 test -z "$AR_FLAGS" && AR_FLAGS=cru
13188 if test -n "$ac_tool_prefix"; then
13189 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13190 set dummy ${ac_tool_prefix}strip; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13192 $as_echo_n "checking
for $ac_word...
" >&6; }
13193 if test "${ac_cv_prog_STRIP+set}" = set; then :
13194 $as_echo_n "(cached
) " >&6
13196 if test -n "$STRIP"; then
13197 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13216 STRIP=$ac_cv_prog_STRIP
13217 if test -n "$STRIP"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13219 $as_echo "$STRIP" >&6; }
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13222 $as_echo "no
" >&6; }
13227 if test -z "$ac_cv_prog_STRIP"; then
13229 # Extract the first word of "strip
", so it can be a program name with args.
13230 set dummy strip; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13232 $as_echo_n "checking
for $ac_word...
" >&6; }
13233 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13234 $as_echo_n "(cached
) " >&6
13236 if test -n "$ac_ct_STRIP"; then
13237 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246 ac_cv_prog_ac_ct_STRIP="strip
"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13257 if test -n "$ac_ct_STRIP"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13259 $as_echo "$ac_ct_STRIP" >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13262 $as_echo "no
" >&6; }
13265 if test "x
$ac_ct_STRIP" = x; then
13268 case $cross_compiling:$ac_tool_warned in
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13271 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13272 ac_tool_warned=yes ;;
13277 STRIP="$ac_cv_prog_STRIP"
13280 test -z "$STRIP" && STRIP=:
13287 if test -n "$ac_tool_prefix"; then
13288 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13291 $as_echo_n "checking
for $ac_word...
" >&6; }
13292 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13293 $as_echo_n "(cached
) " >&6
13295 if test -n "$RANLIB"; then
13296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13315 RANLIB=$ac_cv_prog_RANLIB
13316 if test -n "$RANLIB"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13318 $as_echo "$RANLIB" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13321 $as_echo "no
" >&6; }
13326 if test -z "$ac_cv_prog_RANLIB"; then
13327 ac_ct_RANLIB=$RANLIB
13328 # Extract the first word of "ranlib
", so it can be a program name with args.
13329 set dummy ranlib; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13331 $as_echo_n "checking
for $ac_word...
" >&6; }
13332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13333 $as_echo_n "(cached
) " >&6
13335 if test -n "$ac_ct_RANLIB"; then
13336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13345 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13356 if test -n "$ac_ct_RANLIB"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13358 $as_echo "$ac_ct_RANLIB" >&6; }
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13361 $as_echo "no
" >&6; }
13364 if test "x
$ac_ct_RANLIB" = x; then
13367 case $cross_compiling:$ac_tool_warned in
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13370 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13371 ac_tool_warned=yes ;;
13373 RANLIB=$ac_ct_RANLIB
13376 RANLIB="$ac_cv_prog_RANLIB"
13379 test -z "$RANLIB" && RANLIB=:
13386 # Determine commands to create old-style static archives.
13387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13388 old_postinstall_cmds='chmod 644 $oldlib'
13389 old_postuninstall_cmds=
13391 if test -n "$RANLIB"; then
13394 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13397 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13400 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13405 lock_old_archive_extraction=yes ;;
13407 lock_old_archive_extraction=no ;;
13448 # If no C compiler was specified, use CC.
13451 # If no C compiler flags were specified, use CFLAGS.
13452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13454 # Allow CC to be a program name with arguments.
13458 # Check for command to grab the raw symbol name followed by C symbol from nm.
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13460 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13461 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13462 $as_echo_n "(cached
) " >&6
13465 # These are sane defaults that work on at least a few old systems.
13466 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13468 # Character class describing NM global symbol codes.
13469 symcode='[BCDEGRST]'
13471 # Regexp to match symbols that can be accessed directly from C.
13472 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13474 # Define system-specific variables.
13479 cygwin* | mingw* | pw32* | cegcc*)
13480 symcode='[ABCDGISTW]'
13483 if test "$host_cpu" = ia64; then
13484 symcode='[ABCDEGRST]'
13487 irix* | nonstopux*)
13488 symcode='[BCDEGRST]'
13491 symcode='[BCDEGQRST]'
13502 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13510 # If we're using GNU nm, then use its standard symbol codes.
13511 case `$NM -V 2>&1` in
13512 *GNU* | *'with BFD'*)
13513 symcode='[ABCDGIRSTW]' ;;
13516 # Transform an extracted symbol line into a proper C declaration.
13517 # Some systems (esp. on ia64) link data and code symbols differently,
13518 # so use this general approach.
13519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13521 # Transform an extracted symbol line into symbol name and symbol address
13522 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13523 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'"
13525 # Handle CRLF in mingw tool chain
13529 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13533 # Try without a prefix underscore, then with it.
13534 for ac_symprfx in "" "_
"; do
13536 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13537 symxfrm="\\1 $ac_symprfx\\2 \\2"
13539 # Write the raw and C identifiers.
13540 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13541 # Fake it for dumpbin and say T for any non-static function
13542 # and D for any global variable.
13543 # Also find C++ and __fastcall symbols from MSVC++,
13544 # which start with @ or ?.
13545 lt_cv_sys_global_symbol_pipe="$AWK '"\
13546 " {last_section=section; section=\$ 3};"\
13547 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13548 " \$ 0!~/External *\|/{next};"\
13549 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13550 " {if(hide[section]) next};"\
13551 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13552 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13553 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13554 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13555 " ' prfx
=^
$ac_symprfx"
13557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13560 # Check to see that the pipe works correctly.
13564 cat > conftest.$ac_ext <<_LT_EOF
13569 void nm_test_func(void);
13570 void nm_test_func(void){}
13574 int main(){nm_test_var='a';nm_test_func();return(0);}
13577 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13578 (eval $ac_compile) 2>&5
13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13581 test $ac_status = 0; }; then
13582 # Now try to grab the symbols.
13584 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13585 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13587 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13588 test $ac_status = 0; } && test -s "$nlist"; then
13589 # Try sorting and uniquifying the output.
13590 if sort "$nlist" | uniq > "$nlist"T; then
13591 mv -f "$nlist"T "$nlist"
13596 # Make sure that we snagged all the symbols we need.
13597 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13598 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13599 cat <<_LT_EOF > conftest.$ac_ext
13605 # Now generate the symbol file.
13606 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13608 cat <<_LT_EOF >> conftest.$ac_ext
13610 /* The mapping between symbol names and symbols. */
13615 lt__PROGRAM__LTX_preloaded_symbols[] =
13617 { "@PROGRAM@
", (void *) 0 },
13619 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13620 cat <<\_LT_EOF >> conftest.$ac_ext
13624 /* This works around a problem in FreeBSD linker */
13625 #ifdef FREEBSD_WORKAROUND
13626 static const void *lt_preloaded_setup() {
13627 return lt__PROGRAM__LTX_preloaded_symbols;
13635 # Now try linking the two files.
13636 mv conftest.$ac_objext conftstm.$ac_objext
13637 lt_save_LIBS="$LIBS"
13638 lt_save_CFLAGS="$CFLAGS"
13639 LIBS="conftstm.
$ac_objext"
13640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13641 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13642 (eval $ac_link) 2>&5
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13645 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13648 LIBS="$lt_save_LIBS"
13649 CFLAGS="$lt_save_CFLAGS"
13651 echo "cannot
find nm_test_func
in $nlist" >&5
13654 echo "cannot
find nm_test_var
in $nlist" >&5
13657 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13660 echo "$progname: failed program was
:" >&5
13661 cat conftest.$ac_ext >&5
13663 rm -rf conftest* conftst*
13665 # Do not use the global_symbol_pipe unless it works.
13666 if test "$pipe_works" = yes; then
13669 lt_cv_sys_global_symbol_pipe=
13675 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13676 lt_cv_sys_global_symbol_to_cdecl=
13678 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13680 $as_echo "failed
" >&6; }
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13683 $as_echo "ok
" >&6; }
13707 # Check whether --enable-libtool-lock was given.
13708 if test "${enable_libtool_lock+set}" = set; then :
13709 enableval=$enable_libtool_lock;
13712 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13714 # Some flags need to be propagated to the compiler or linker for good
13718 # Find out which ABI we are using.
13719 echo 'int i;' > conftest.$ac_ext
13720 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13721 (eval $ac_compile) 2>&5
13723 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13724 test $ac_status = 0; }; then
13725 case `/usr/bin/file conftest.$ac_objext` in
13727 HPUX_IA64_MODE="32"
13730 HPUX_IA64_MODE="64"
13737 # Find out which ABI we are using.
13738 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13739 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13740 (eval $ac_compile) 2>&5
13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13743 test $ac_status = 0; }; then
13744 if test "$lt_cv_prog_gnu_ld" = yes; then
13745 case `/usr/bin/file conftest.$ac_objext` in
13747 LD="${LD-ld} -melf32bsmip"
13750 LD="${LD-ld} -melf32bmipn32"
13753 LD="${LD-ld} -melf64bmip"
13757 case `/usr/bin/file conftest.$ac_objext` in
13773 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13774 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13775 # Find out which ABI we are using.
13776 echo 'int i;' > conftest.$ac_ext
13777 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13778 (eval $ac_compile) 2>&5
13780 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13781 test $ac_status = 0; }; then
13782 case `/usr/bin/file conftest.o` in
13785 x86_64-*kfreebsd*-gnu)
13786 LD="${LD-ld} -m elf_i386_fbsd
"
13789 case `/usr/bin/file conftest.o` in
13791 LD="${LD-ld} -m elf32_x86_64
"
13794 LD="${LD-ld} -m elf_i386
"
13798 ppc64-*linux*|powerpc64-*linux*)
13799 LD="${LD-ld} -m elf32ppclinux
"
13802 LD="${LD-ld} -m elf_s390
"
13805 LD="${LD-ld} -m elf32_sparc
"
13811 x86_64-*kfreebsd*-gnu)
13812 LD="${LD-ld} -m elf_x86_64_fbsd
"
13815 LD="${LD-ld} -m elf_x86_64
"
13817 ppc*-*linux*|powerpc*-*linux*)
13818 LD="${LD-ld} -m elf64ppc
"
13820 s390*-*linux*|s390*-*tpf*)
13821 LD="${LD-ld} -m elf64_s390
"
13824 LD="${LD-ld} -m elf64_sparc
"
13834 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13835 SAVE_CFLAGS="$CFLAGS"
13836 CFLAGS="$CFLAGS -belf"
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13838 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13839 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13840 $as_echo_n "(cached
) " >&6
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13859 if ac_fn_c_try_link "$LINENO"; then :
13860 lt_cv_cc_needs_belf=yes
13862 lt_cv_cc_needs_belf=no
13864 rm -f core conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13867 ac_cpp='$CPP $CPPFLAGS'
13868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13874 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13875 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13876 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13877 CFLAGS="$SAVE_CFLAGS"
13881 # Find out which ABI we are using.
13882 echo 'int i;' > conftest.$ac_ext
13883 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13884 (eval $ac_compile) 2>&5
13886 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13887 test $ac_status = 0; }; then
13888 case `/usr/bin/file conftest.o` in
13890 case $lt_cv_prog_gnu_ld in
13891 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13893 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13905 need_locks="$enable_libtool_lock"
13909 rhapsody* | darwin*)
13910 if test -n "$ac_tool_prefix"; then
13911 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13912 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13914 $as_echo_n "checking
for $ac_word...
" >&6; }
13915 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13916 $as_echo_n "(cached
) " >&6
13918 if test -n "$DSYMUTIL"; then
13919 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13938 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13939 if test -n "$DSYMUTIL"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13941 $as_echo "$DSYMUTIL" >&6; }
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13944 $as_echo "no
" >&6; }
13949 if test -z "$ac_cv_prog_DSYMUTIL"; then
13950 ac_ct_DSYMUTIL=$DSYMUTIL
13951 # Extract the first word of "dsymutil
", so it can be a program name with args.
13952 set dummy dsymutil; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13954 $as_echo_n "checking
for $ac_word...
" >&6; }
13955 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13956 $as_echo_n "(cached
) " >&6
13958 if test -n "$ac_ct_DSYMUTIL"; then
13959 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13968 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13978 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13979 if test -n "$ac_ct_DSYMUTIL"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13981 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13984 $as_echo "no
" >&6; }
13987 if test "x
$ac_ct_DSYMUTIL" = x; then
13990 case $cross_compiling:$ac_tool_warned in
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13993 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13994 ac_tool_warned=yes ;;
13996 DSYMUTIL=$ac_ct_DSYMUTIL
13999 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14002 if test -n "$ac_tool_prefix"; then
14003 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14006 $as_echo_n "checking
for $ac_word...
" >&6; }
14007 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14008 $as_echo_n "(cached
) " >&6
14010 if test -n "$NMEDIT"; then
14011 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14030 NMEDIT=$ac_cv_prog_NMEDIT
14031 if test -n "$NMEDIT"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14033 $as_echo "$NMEDIT" >&6; }
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14036 $as_echo "no
" >&6; }
14041 if test -z "$ac_cv_prog_NMEDIT"; then
14042 ac_ct_NMEDIT=$NMEDIT
14043 # Extract the first word of "nmedit
", so it can be a program name with args.
14044 set dummy nmedit; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14046 $as_echo_n "checking
for $ac_word...
" >&6; }
14047 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14048 $as_echo_n "(cached
) " >&6
14050 if test -n "$ac_ct_NMEDIT"; then
14051 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14070 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14071 if test -n "$ac_ct_NMEDIT"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14073 $as_echo "$ac_ct_NMEDIT" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14076 $as_echo "no
" >&6; }
14079 if test "x
$ac_ct_NMEDIT" = x; then
14082 case $cross_compiling:$ac_tool_warned in
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14086 ac_tool_warned=yes ;;
14088 NMEDIT=$ac_ct_NMEDIT
14091 NMEDIT="$ac_cv_prog_NMEDIT"
14094 if test -n "$ac_tool_prefix"; then
14095 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14096 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14098 $as_echo_n "checking
for $ac_word...
" >&6; }
14099 if test "${ac_cv_prog_LIPO+set}" = set; then :
14100 $as_echo_n "(cached
) " >&6
14102 if test -n "$LIPO"; then
14103 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14122 LIPO=$ac_cv_prog_LIPO
14123 if test -n "$LIPO"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14125 $as_echo "$LIPO" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14128 $as_echo "no
" >&6; }
14133 if test -z "$ac_cv_prog_LIPO"; then
14135 # Extract the first word of "lipo
", so it can be a program name with args.
14136 set dummy lipo; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14138 $as_echo_n "checking
for $ac_word...
" >&6; }
14139 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14140 $as_echo_n "(cached
) " >&6
14142 if test -n "$ac_ct_LIPO"; then
14143 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14152 ac_cv_prog_ac_ct_LIPO="lipo
"
14153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14162 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14163 if test -n "$ac_ct_LIPO"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14165 $as_echo "$ac_ct_LIPO" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14168 $as_echo "no
" >&6; }
14171 if test "x
$ac_ct_LIPO" = x; then
14174 case $cross_compiling:$ac_tool_warned in
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14177 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14178 ac_tool_warned=yes ;;
14183 LIPO="$ac_cv_prog_LIPO"
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}otool; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14190 $as_echo_n "checking
for $ac_word...
" >&6; }
14191 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14192 $as_echo_n "(cached
) " >&6
14194 if test -n "$OTOOL"; then
14195 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14214 OTOOL=$ac_cv_prog_OTOOL
14215 if test -n "$OTOOL"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14217 $as_echo "$OTOOL" >&6; }
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14220 $as_echo "no
" >&6; }
14225 if test -z "$ac_cv_prog_OTOOL"; then
14227 # Extract the first word of "otool
", so it can be a program name with args.
14228 set dummy otool; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14230 $as_echo_n "checking
for $ac_word...
" >&6; }
14231 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14232 $as_echo_n "(cached
) " >&6
14234 if test -n "$ac_ct_OTOOL"; then
14235 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14244 ac_cv_prog_ac_ct_OTOOL="otool
"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14254 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14255 if test -n "$ac_ct_OTOOL"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14257 $as_echo "$ac_ct_OTOOL" >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14260 $as_echo "no
" >&6; }
14263 if test "x
$ac_ct_OTOOL" = x; then
14266 case $cross_compiling:$ac_tool_warned in
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14270 ac_tool_warned=yes ;;
14275 OTOOL="$ac_cv_prog_OTOOL"
14278 if test -n "$ac_tool_prefix"; then
14279 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14280 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14282 $as_echo_n "checking
for $ac_word...
" >&6; }
14283 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14284 $as_echo_n "(cached
) " >&6
14286 if test -n "$OTOOL64"; then
14287 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14306 OTOOL64=$ac_cv_prog_OTOOL64
14307 if test -n "$OTOOL64"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14309 $as_echo "$OTOOL64" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14317 if test -z "$ac_cv_prog_OTOOL64"; then
14318 ac_ct_OTOOL64=$OTOOL64
14319 # Extract the first word of "otool64
", so it can be a program name with args.
14320 set dummy otool64; ac_word=$2
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14322 $as_echo_n "checking
for $ac_word...
" >&6; }
14323 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14324 $as_echo_n "(cached
) " >&6
14326 if test -n "$ac_ct_OTOOL64"; then
14327 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14336 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14337 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14346 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14347 if test -n "$ac_ct_OTOOL64"; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14349 $as_echo "$ac_ct_OTOOL64" >&6; }
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14352 $as_echo "no
" >&6; }
14355 if test "x
$ac_ct_OTOOL64" = x; then
14358 case $cross_compiling:$ac_tool_warned in
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14361 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14362 ac_tool_warned=yes ;;
14364 OTOOL64=$ac_ct_OTOOL64
14367 OTOOL64="$ac_cv_prog_OTOOL64"
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14397 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14398 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14399 $as_echo_n "(cached
) " >&6
14401 lt_cv_apple_cc_single_mod=no
14402 if test -z "${LT_MULTI_MODULE}"; then
14403 # By default we will add the -single_module flag. You can override
14404 # by either setting the environment variable LT_MULTI_MODULE
14405 # non-empty at configure time, or by adding -multi_module to the
14407 rm -rf libconftest.dylib*
14408 echo "int foo
(void
){return 1;}" > conftest.c
14409 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14410 -dynamiclib -Wl,-single_module conftest.c
" >&5
14411 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14412 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14414 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14415 lt_cv_apple_cc_single_mod=yes
14417 cat conftest.err >&5
14419 rm -rf libconftest.dylib*
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14424 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14426 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14427 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14428 $as_echo_n "(cached
) " >&6
14430 lt_cv_ld_exported_symbols_list=no
14431 save_LDFLAGS=$LDFLAGS
14432 echo "_main
" > conftest.sym
14433 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14445 if ac_fn_c_try_link "$LINENO"; then :
14446 lt_cv_ld_exported_symbols_list=yes
14448 lt_cv_ld_exported_symbols_list=no
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14452 LDFLAGS="$save_LDFLAGS"
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14456 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14458 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14459 if test "${lt_cv_ld_force_load+set}" = set; then :
14460 $as_echo_n "(cached
) " >&6
14462 lt_cv_ld_force_load=no
14463 cat > conftest.c << _LT_EOF
14464 int forced_loaded() { return 2;}
14466 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14467 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14468 echo "$AR cru libconftest.a conftest.o
" >&5
14469 $AR cru libconftest.a conftest.o 2>&5
14470 cat > conftest.c << _LT_EOF
14471 int main() { return 0;}
14473 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14474 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14476 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14477 lt_cv_ld_force_load=yes
14479 cat conftest.err >&5
14481 rm -f conftest.err libconftest.a conftest conftest.c
14482 rm -rf conftest.dSYM
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14486 $as_echo "$lt_cv_ld_force_load" >&6; }
14488 rhapsody* | darwin1.[012])
14489 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14491 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14492 darwin*) # darwin 5.x on
14493 # if running on 10.5 or later, the deployment target defaults
14494 # to the OS version, if on x86, and 10.4, the deployment
14495 # target defaults to 10.4. Don't you love it?
14496 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14497 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14498 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14500 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14502 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14506 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14507 _lt_dar_single_mod='$single_module'
14509 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14510 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14512 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14514 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14515 _lt_dsymutil='~$DSYMUTIL $lib || :'
14522 for ac_header in dlfcn.h
14524 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14525 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14526 cat >>confdefs.h <<_ACEOF
14527 #define HAVE_DLFCN_H 1
14544 enable_win32_dll=no
14547 # Check whether --enable-shared was given.
14548 if test "${enable_shared+set}" = set; then :
14549 enableval=$enable_shared; p=${PACKAGE-default}
14551 yes) enable_shared=yes ;;
14552 no) enable_shared=no ;;
14555 # Look at the argument we got. We use all the common list separators.
14556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14557 for pkg in $enableval; do
14559 if test "X
$pkg" = "X
$p"; then
14578 # Check whether --enable-static was given.
14579 if test "${enable_static+set}" = set; then :
14580 enableval=$enable_static; p=${PACKAGE-default}
14582 yes) enable_static=yes ;;
14583 no) enable_static=no ;;
14586 # Look at the argument we got. We use all the common list separators.
14587 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14588 for pkg in $enableval; do
14590 if test "X
$pkg" = "X
$p"; then
14610 # Check whether --with-pic was given.
14611 if test "${with_pic+set}" = set; then :
14612 withval=$with_pic; pic_mode="$withval"
14618 test -z "$pic_mode" && pic_mode=default
14626 # Check whether --enable-fast-install was given.
14627 if test "${enable_fast_install+set}" = set; then :
14628 enableval=$enable_fast_install; p=${PACKAGE-default}
14630 yes) enable_fast_install=yes ;;
14631 no) enable_fast_install=no ;;
14633 enable_fast_install=no
14634 # Look at the argument we got. We use all the common list separators.
14635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14636 for pkg in $enableval; do
14638 if test "X
$pkg" = "X
$p"; then
14639 enable_fast_install=yes
14646 enable_fast_install=yes
14659 # This can be used to rebuild libtool when needed
14660 LIBTOOL_DEPS="$ltmain"
14662 # Always use our own libtool.
14663 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14690 test -z "$LN_S" && LN_S="ln -s"
14705 if test -n "${ZSH_VERSION+set}" ; then
14706 setopt NO_GLOB_SUBST
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14710 $as_echo_n "checking
for objdir...
" >&6; }
14711 if test "${lt_cv_objdir+set}" = set; then :
14712 $as_echo_n "(cached
) " >&6
14714 rm -f .libs 2>/dev/null
14715 mkdir .libs 2>/dev/null
14716 if test -d .libs; then
14719 # MS-DOS does not allow filenames that begin with a dot.
14722 rmdir .libs 2>/dev/null
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14725 $as_echo "$lt_cv_objdir" >&6; }
14726 objdir=$lt_cv_objdir
14732 cat >>confdefs.h <<_ACEOF
14733 #define LT_OBJDIR "$lt_cv_objdir/"
14741 # AIX sometimes has problems with the GCC collect2 program. For some
14742 # reason, if we set the COLLECT_NAMES environment variable, the problems
14743 # vanish in a puff of smoke.
14744 if test "X
${COLLECT_NAMES+set}" != Xset; then
14746 export COLLECT_NAMES
14751 # Global variables:
14753 can_build_shared=yes
14755 # All known linkers require a `.a' archive for static linking (except MSVC,
14756 # which needs '.lib').
14759 with_gnu_ld="$lt_cv_prog_gnu_ld"
14762 old_CFLAGS="$CFLAGS"
14764 # Set sane defaults for various variables
14765 test -z "$CC" && CC=cc
14766 test -z "$LTCC" && LTCC=$CC
14767 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14768 test -z "$LD" && LD=ld
14769 test -z "$ac_objext" && ac_objext=o
14771 for cc_temp in $compiler""; do
14773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14779 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14782 # Only perform the check for file, if the check method requires it
14783 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14784 case $deplibs_check_method in
14786 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14788 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14789 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14790 $as_echo_n "(cached
) " >&6
14794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14797 lt_save_MAGIC_CMD="$MAGIC_CMD"
14798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14799 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14800 for ac_dir in $ac_dummy; do
14802 test -z "$ac_dir" && ac_dir=.
14803 if test -f $ac_dir/${ac_tool_prefix}file; then
14804 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14805 if test -n "$file_magic_test_file"; then
14806 case $deplibs_check_method in
14808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14811 $EGREP "$file_magic_regex" > /dev/null; then
14816 *** Warning: the command libtool uses to detect shared libraries,
14817 *** $file_magic_cmd, produces output that libtool cannot recognize.
14818 *** The result is that libtool may fail to recognize shared libraries
14819 *** as such. This will affect the creation of libtool libraries that
14820 *** depend on shared libraries, but programs linked with such libtool
14821 *** libraries will work regardless of this problem. Nevertheless, you
14822 *** may want to report the problem to your system manager and/or to
14823 *** bug-libtool@gnu.org
14833 MAGIC_CMD="$lt_save_MAGIC_CMD"
14838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14839 if test -n "$MAGIC_CMD"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14841 $as_echo "$MAGIC_CMD" >&6; }
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14844 $as_echo "no
" >&6; }
14851 if test -z "$lt_cv_path_MAGIC_CMD"; then
14852 if test -n "$ac_tool_prefix"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14854 $as_echo_n "checking
for file...
" >&6; }
14855 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14856 $as_echo_n "(cached
) " >&6
14860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14863 lt_save_MAGIC_CMD="$MAGIC_CMD"
14864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14865 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14866 for ac_dir in $ac_dummy; do
14868 test -z "$ac_dir" && ac_dir=.
14869 if test -f $ac_dir/file; then
14870 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14871 if test -n "$file_magic_test_file"; then
14872 case $deplibs_check_method in
14874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14877 $EGREP "$file_magic_regex" > /dev/null; then
14882 *** Warning: the command libtool uses to detect shared libraries,
14883 *** $file_magic_cmd, produces output that libtool cannot recognize.
14884 *** The result is that libtool may fail to recognize shared libraries
14885 *** as such. This will affect the creation of libtool libraries that
14886 *** depend on shared libraries, but programs linked with such libtool
14887 *** libraries will work regardless of this problem. Nevertheless, you
14888 *** may want to report the problem to your system manager and/or to
14889 *** bug-libtool@gnu.org
14899 MAGIC_CMD="$lt_save_MAGIC_CMD"
14904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14905 if test -n "$MAGIC_CMD"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14907 $as_echo "$MAGIC_CMD" >&6; }
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14910 $as_echo "no
" >&6; }
14923 # Use C for the default configuration in the libtool script
14927 ac_cpp='$CPP $CPPFLAGS'
14928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14933 # Source file extension for C test sources.
14936 # Object file extension for compiled C test sources.
14940 # Code to be used in simple compile tests
14941 lt_simple_compile_test_code="int some_variable
= 0;"
14943 # Code to be used in simple link tests
14944 lt_simple_link_test_code='int main(){return(0);}'
14952 # If no C compiler was specified, use CC.
14955 # If no C compiler flags were specified, use CFLAGS.
14956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14958 # Allow CC to be a program name with arguments.
14961 # Save the default compiler, since it gets overwritten when the other
14962 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14963 compiler_DEFAULT=$CC
14965 # save warnings/boilerplate of simple test code
14966 ac_outfile=conftest.$ac_objext
14967 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14968 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14969 _lt_compiler_boilerplate=`cat conftest.err`
14972 ac_outfile=conftest.$ac_objext
14973 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14974 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14975 _lt_linker_boilerplate=`cat conftest.err`
14980 ## There is no encapsulation within the following macros, do not change
14981 ## the running order or otherwise move them around unless you know exactly
14982 ## what you are doing...
14983 if test -n "$compiler"; then
14985 lt_prog_compiler_no_builtin_flag=
14987 if test "$GCC" = yes; then
14988 case $cc_basename in
14990 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14992 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14996 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14997 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14998 $as_echo_n "(cached
) " >&6
15000 lt_cv_prog_compiler_rtti_exceptions=no
15001 ac_outfile=conftest.$ac_objext
15002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15003 lt_compiler_flag="-fno-rtti -fno-exceptions"
15004 # Insert the option either (1) after the last *FLAGS variable, or
15005 # (2) before a word containing "conftest.
", or (3) at the end.
15006 # Note that $ac_compile itself does not contain backslashes and begins
15007 # with a dollar sign (not a hyphen), so the echo should work correctly.
15008 # The option is referenced via a variable to avoid confusing sed.
15009 lt_compile=`echo "$ac_compile" | $SED \
15010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15012 -e 's:$: $lt_compiler_flag:'`
15013 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15014 (eval "$lt_compile" 2>conftest.err)
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15018 if (exit $ac_status) && test -s "$ac_outfile"; then
15019 # The compiler can only warn and ignore the option if not recognized
15020 # So say no if there are warnings other than the usual output.
15021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15024 lt_cv_prog_compiler_rtti_exceptions=yes
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15031 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15033 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15034 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15046 lt_prog_compiler_wl=
15047 lt_prog_compiler_pic=
15048 lt_prog_compiler_static=
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15051 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15053 if test "$GCC" = yes; then
15054 lt_prog_compiler_wl='-Wl,'
15055 lt_prog_compiler_static='-static'
15059 # All AIX code is PIC.
15060 if test "$host_cpu" = ia64; then
15061 # AIX 5 now supports IA64 processor
15062 lt_prog_compiler_static='-Bstatic'
15069 # see comment about AmigaOS4 .so support
15070 lt_prog_compiler_pic='-fPIC'
15073 # FIXME: we need at least 68020 code to build shared libraries, but
15074 # adding the `-m68020' flag to GCC prevents building anything better,
15076 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15081 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15082 # PIC is the default for these OSes.
15085 mingw* | cygwin* | pw32* | os2* | cegcc*)
15086 # This hack is so that the source file can tell whether it is being
15087 # built for inclusion in a dll (and should export symbols for example).
15088 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15089 # (--disable-auto-import) libraries
15090 lt_prog_compiler_pic='-DDLL_EXPORT'
15093 darwin* | rhapsody*)
15094 # PIC is the default on this platform
15095 # Common symbols not allowed in MH_DYLIB files
15096 lt_prog_compiler_pic='-fno-common'
15100 # PIC is the default for Haiku.
15101 # The "-static" flag exists, but is broken.
15102 lt_prog_compiler_static=
15106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15108 # sets the default TLS model and affects inlining.
15114 lt_prog_compiler_pic='-fPIC'
15120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15121 # Instead, we relocate shared libraries at runtime.
15125 # Just because we use GCC doesn't mean we suddenly get shared libraries
15126 # on systems that don't support them.
15127 lt_prog_compiler_can_build_shared=no
15132 # QNX uses GNU C++, but need to define -shared option too, otherwise
15133 # it will coredump.
15134 lt_prog_compiler_pic='-fPIC -shared'
15138 if test -d /usr/nec; then
15139 lt_prog_compiler_pic=-Kconform_pic
15144 lt_prog_compiler_pic='-fPIC'
15148 case $cc_basename in
15149 nvcc*) # Cuda Compiler Driver 2.2
15150 lt_prog_compiler_wl='-Xlinker '
15151 lt_prog_compiler_pic='-Xcompiler -fPIC'
15155 # PORTME Check for flag to pass linker flags through the system compiler.
15158 lt_prog_compiler_wl='-Wl,'
15159 if test "$host_cpu" = ia64; then
15160 # AIX 5 now supports IA64 processor
15161 lt_prog_compiler_static='-Bstatic'
15163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15167 mingw* | cygwin* | pw32* | os2* | cegcc*)
15168 # This hack is so that the source file can tell whether it is being
15169 # built for inclusion in a dll (and should export symbols for example).
15170 lt_prog_compiler_pic='-DDLL_EXPORT'
15173 hpux9* | hpux10* | hpux11*)
15174 lt_prog_compiler_wl='-Wl,'
15175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15176 # not for PA HP-UX.
15182 lt_prog_compiler_pic='+Z'
15185 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15186 lt_prog_compiler_static='${wl}-a ${wl}archive'
15189 irix5* | irix6* | nonstopux*)
15190 lt_prog_compiler_wl='-Wl,'
15191 # PIC (with -KPIC) is the default.
15192 lt_prog_compiler_static='-non_shared'
15195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15196 case $cc_basename in
15197 # old Intel for x86_64 which still supported -KPIC.
15199 lt_prog_compiler_wl='-Wl,'
15200 lt_prog_compiler_pic='-KPIC'
15201 lt_prog_compiler_static='-static'
15203 # icc used to be incompatible with GCC.
15204 # ICC 10 doesn't accept -KPIC any more.
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-fPIC'
15208 lt_prog_compiler_static='-static'
15210 # Lahey Fortran 8.1.
15212 lt_prog_compiler_wl='-Wl,'
15213 lt_prog_compiler_pic='--shared'
15214 lt_prog_compiler_static='--static'
15216 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15217 # Portland Group compilers (*not* the Pentium gcc compiler,
15218 # which looks to be a dead project)
15219 lt_prog_compiler_wl='-Wl,'
15220 lt_prog_compiler_pic='-fpic'
15221 lt_prog_compiler_static='-Bstatic'
15224 lt_prog_compiler_wl='-Wl,'
15225 # All Alpha code is PIC.
15226 lt_prog_compiler_static='-non_shared'
15228 xl* | bgxl* | bgf* | mpixl*)
15229 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15230 lt_prog_compiler_wl='-Wl,'
15231 lt_prog_compiler_pic='-qpic'
15232 lt_prog_compiler_static='-qstaticlink'
15235 case `$CC -V 2>&1 | sed 5q` in
15236 *Sun\ F* | *Sun*Fortran*)
15237 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15238 lt_prog_compiler_pic='-KPIC'
15239 lt_prog_compiler_static='-Bstatic'
15240 lt_prog_compiler_wl=''
15244 lt_prog_compiler_pic='-KPIC'
15245 lt_prog_compiler_static='-Bstatic'
15246 lt_prog_compiler_wl='-Wl,'
15254 lt_prog_compiler_pic='-KPIC'
15255 lt_prog_compiler_static='-Bstatic'
15259 # QNX uses GNU C++, but need to define -shared option too, otherwise
15260 # it will coredump.
15261 lt_prog_compiler_pic='-fPIC -shared'
15264 osf3* | osf4* | osf5*)
15265 lt_prog_compiler_wl='-Wl,'
15266 # All OSF/1 code is PIC.
15267 lt_prog_compiler_static='-non_shared'
15271 lt_prog_compiler_static='-non_shared'
15275 lt_prog_compiler_pic='-KPIC'
15276 lt_prog_compiler_static='-Bstatic'
15277 case $cc_basename in
15278 f77* | f90* | f95*)
15279 lt_prog_compiler_wl='-Qoption ld ';;
15281 lt_prog_compiler_wl='-Wl,';;
15286 lt_prog_compiler_wl='-Qoption ld '
15287 lt_prog_compiler_pic='-PIC'
15288 lt_prog_compiler_static='-Bstatic'
15291 sysv4 | sysv4.2uw2* | sysv4.3*)
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='-KPIC'
15294 lt_prog_compiler_static='-Bstatic'
15298 if test -d /usr/nec ;then
15299 lt_prog_compiler_pic='-Kconform_pic'
15300 lt_prog_compiler_static='-Bstatic'
15304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15305 lt_prog_compiler_wl='-Wl,'
15306 lt_prog_compiler_pic='-KPIC'
15307 lt_prog_compiler_static='-Bstatic'
15311 lt_prog_compiler_wl='-Wl,'
15312 lt_prog_compiler_can_build_shared=no
15316 lt_prog_compiler_pic='-pic'
15317 lt_prog_compiler_static='-Bstatic'
15321 lt_prog_compiler_can_build_shared=no
15327 # For platforms which do not support PIC, -DPIC is meaningless:
15329 lt_prog_compiler_pic=
15332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15336 $as_echo "$lt_prog_compiler_pic" >&6; }
15344 # Check to make sure the PIC flag actually works.
15346 if test -n "$lt_prog_compiler_pic"; then
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15348 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15349 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15350 $as_echo_n "(cached
) " >&6
15352 lt_cv_prog_compiler_pic_works=no
15353 ac_outfile=conftest.$ac_objext
15354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15355 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15356 # Insert the option either (1) after the last *FLAGS variable, or
15357 # (2) before a word containing "conftest.
", or (3) at the end.
15358 # Note that $ac_compile itself does not contain backslashes and begins
15359 # with a dollar sign (not a hyphen), so the echo should work correctly.
15360 # The option is referenced via a variable to avoid confusing sed.
15361 lt_compile=`echo "$ac_compile" | $SED \
15362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15364 -e 's:$: $lt_compiler_flag:'`
15365 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15366 (eval "$lt_compile" 2>conftest.err)
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15370 if (exit $ac_status) && test -s "$ac_outfile"; then
15371 # The compiler can only warn and ignore the option if not recognized
15372 # So say no if there are warnings other than the usual output.
15373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15376 lt_cv_prog_compiler_pic_works=yes
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15383 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15385 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15386 case $lt_prog_compiler_pic in
15388 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15391 lt_prog_compiler_pic=
15392 lt_prog_compiler_can_build_shared=no
15403 # Check to make sure the static flag actually works.
15405 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15407 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15408 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15409 $as_echo_n "(cached
) " >&6
15411 lt_cv_prog_compiler_static_works=no
15412 save_LDFLAGS="$LDFLAGS"
15413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15416 # The linker can only warn and ignore the option if not recognized
15417 # So say no if there are warnings
15418 if test -s conftest.err; then
15419 # Append any errors to the config.log.
15420 cat conftest.err 1>&5
15421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15423 if diff conftest.exp conftest.er2 >/dev/null; then
15424 lt_cv_prog_compiler_static_works=yes
15427 lt_cv_prog_compiler_static_works=yes
15431 LDFLAGS="$save_LDFLAGS"
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15435 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15437 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15440 lt_prog_compiler_static=
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15450 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15451 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15452 $as_echo_n "(cached
) " >&6
15454 lt_cv_prog_compiler_c_o=no
15455 $RM -r conftest 2>/dev/null
15459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15461 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15462 # Insert the option either (1) after the last *FLAGS variable, or
15463 # (2) before a word containing "conftest.
", or (3) at the end.
15464 # Note that $ac_compile itself does not contain backslashes and begins
15465 # with a dollar sign (not a hyphen), so the echo should work correctly.
15466 lt_compile=`echo "$ac_compile" | $SED \
15467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15469 -e 's:$: $lt_compiler_flag:'`
15470 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15471 (eval "$lt_compile" 2>out/conftest.err)
15473 cat out/conftest.err >&5
15474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15477 # The compiler can only warn and ignore the option if not recognized
15478 # So say no if there are warnings
15479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15482 lt_cv_prog_compiler_c_o=yes
15487 # SGI C++ compiler will create directory out/ii_files/ for
15488 # template instantiation
15489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15490 $RM out/* && rmdir out
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15497 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15505 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15506 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15507 $as_echo_n "(cached
) " >&6
15509 lt_cv_prog_compiler_c_o=no
15510 $RM -r conftest 2>/dev/null
15514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15516 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15517 # Insert the option either (1) after the last *FLAGS variable, or
15518 # (2) before a word containing "conftest.
", or (3) at the end.
15519 # Note that $ac_compile itself does not contain backslashes and begins
15520 # with a dollar sign (not a hyphen), so the echo should work correctly.
15521 lt_compile=`echo "$ac_compile" | $SED \
15522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15524 -e 's:$: $lt_compiler_flag:'`
15525 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15526 (eval "$lt_compile" 2>out/conftest.err)
15528 cat out/conftest.err >&5
15529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15532 # The compiler can only warn and ignore the option if not recognized
15533 # So say no if there are warnings
15534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15537 lt_cv_prog_compiler_c_o=yes
15542 # SGI C++ compiler will create directory out/ii_files/ for
15543 # template instantiation
15544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15545 $RM out/* && rmdir out
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15552 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15557 hard_links="nottested
"
15558 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15559 # do not overwrite the value of need_locks provided by the user
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15561 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15566 ln conftest.a conftest.b 2>&5 || hard_links=no
15567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15569 $as_echo "$hard_links" >&6; }
15570 if test "$hard_links" = no; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15572 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15585 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15588 allow_undefined_flag=
15589 always_export_symbols=no
15591 archive_expsym_cmds=
15592 compiler_needs_object=no
15593 enable_shared_with_static_runtimes=no
15594 export_dynamic_flag_spec=
15595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15596 hardcode_automatic=no
15598 hardcode_direct_absolute=no
15599 hardcode_libdir_flag_spec=
15600 hardcode_libdir_flag_spec_ld=
15601 hardcode_libdir_separator=
15602 hardcode_minus_L=no
15603 hardcode_shlibpath_var=unsupported
15605 link_all_deplibs=unknown
15607 module_expsym_cmds=
15608 old_archive_from_new_cmds=
15609 old_archive_from_expsyms_cmds=
15610 thread_safe_flag_spec=
15611 whole_archive_flag_spec=
15612 # include_expsyms should be a list of space-separated symbols to be *always*
15613 # included in the symbol list
15615 # exclude_expsyms can be an extended regexp of symbols to exclude
15616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15618 # as well as any symbol that contains `d'.
15619 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15621 # platforms (ab)use it in PIC code, but their linkers get confused if
15622 # the symbol is explicitly referenced. Since portable code cannot
15623 # rely on this symbol name, it's probably fine to never include it in
15624 # preloaded symbol tables.
15625 # Exclude shared library initialization/finalization symbols.
15626 extract_expsyms_cmds=
15629 cygwin* | mingw* | pw32* | cegcc*)
15630 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15631 # When not using gcc, we currently assume that we are using
15632 # Microsoft Visual C++.
15633 if test "$GCC" != yes; then
15638 # we just hope/assume this is gcc and not c89 (= MSVC++)
15648 # On some targets, GNU ld is compatible enough with the native linker
15649 # that we're better off using the native interface for both.
15650 lt_use_gnu_ld_interface=no
15651 if test "$with_gnu_ld" = yes; then
15654 # The AIX port of GNU ld has always aspired to compatibility
15655 # with the native linker. However, as the warning in the GNU ld
15656 # block says, versions before 2.19.5* couldn't really create working
15657 # shared libraries, regardless of the interface used.
15658 case `$LD -v 2>&1` in
15659 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15660 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15661 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15663 lt_use_gnu_ld_interface=yes
15668 lt_use_gnu_ld_interface=yes
15673 if test "$lt_use_gnu_ld_interface" = yes; then
15674 # If archive_cmds runs LD, not CC, wlarc should be empty
15677 # Set some defaults for GNU ld with shared library support. These
15678 # are reset later if shared libraries are not supported. Putting them
15679 # here allows them to be overridden if necessary.
15680 runpath_var=LD_RUN_PATH
15681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15682 export_dynamic_flag_spec='${wl}--export-dynamic'
15683 # ancient GNU ld didn't support --whole-archive et. al.
15684 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15685 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15687 whole_archive_flag_spec=
15689 supports_anon_versioning=no
15690 case `$LD -v 2>&1` in
15691 *GNU\ gold*) supports_anon_versioning=yes ;;
15692 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15693 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15694 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15695 *\ 2.11.*) ;; # other 2.11 versions
15696 *) supports_anon_versioning=yes ;;
15699 # See if GNU ld supports shared libraries.
15702 # On AIX/PPC, the GNU linker is very broken
15703 if test "$host_cpu" != ia64; then
15707 *** Warning: the GNU linker, at least up to release 2.19, is reported
15708 *** to be unable to reliably create shared libraries on AIX.
15709 *** Therefore, libtool is disabling shared libraries support. If you
15710 *** really care for shared libraries, you may want to install binutils
15711 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15712 *** You will then need to restart the configuration process.
15721 # see comment about AmigaOS4 .so support
15722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15723 archive_expsym_cmds=''
15726 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)'
15727 hardcode_libdir_flag_spec
='-L$libdir'
15728 hardcode_minus_L
=yes
15734 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15735 allow_undefined_flag
=unsupported
15736 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15737 # support --undefined. This deserves some investigation. FIXME
15738 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15744 cygwin
* | mingw
* | pw32
* | cegcc
*)
15745 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15746 # as there is no search path for DLLs.
15747 hardcode_libdir_flag_spec
='-L$libdir'
15748 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15749 allow_undefined_flag
=unsupported
15750 always_export_symbols
=no
15751 enable_shared_with_static_runtimes
=yes
15752 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15754 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15755 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15756 # If the export-symbols file already is a .def file (1st line
15757 # is EXPORTS), use it as is; otherwise, prepend...
15758 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15759 cp $export_symbols $output_objdir/$soname.def;
15761 echo EXPORTS > $output_objdir/$soname.def;
15762 cat $export_symbols >> $output_objdir/$soname.def;
15764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15771 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 link_all_deplibs
=yes
15777 hardcode_shlibpath_var
=no
15778 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15779 export_dynamic_flag_spec
='${wl}-E'
15780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15781 # Instead, shared libraries are loaded at an image base (0x10000000 by
15782 # default) and relocated if they conflict, which is a slow very memory
15783 # consuming and fragmenting process. To avoid this, we pick a random,
15784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15785 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15786 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15787 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'
15790 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15792 if test "$host_os" = linux-dietlibc
; then
15793 case $cc_basename in
15794 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15797 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15798 && test "$tmp_diet" = no
15801 tmp_sharedflag
='-shared'
15802 case $cc_basename,$host_cpu in
15803 pgcc
*) # Portland Group C compiler
15804 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'
15805 tmp_addflag
=' $pic_flag'
15807 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15808 # Portland Group f77 and f90 compilers
15809 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'
15810 tmp_addflag
=' $pic_flag -Mnomain' ;;
15811 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15812 tmp_addflag
=' -i_dynamic' ;;
15813 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15814 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15815 ifc
* | ifort
*) # Intel Fortran compiler
15816 tmp_addflag
=' -nofor_main' ;;
15817 lf95
*) # Lahey Fortran 8.1
15818 whole_archive_flag_spec
=
15819 tmp_sharedflag
='--shared' ;;
15820 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15821 tmp_sharedflag
='-qmkshrobj'
15823 nvcc
*) # Cuda Compiler Driver 2.2
15824 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'
15825 compiler_needs_object
=yes
15828 case `$CC -V 2>&1 | sed 5q` in
15829 *Sun\ C
*) # Sun C 5.9
15830 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'
15831 compiler_needs_object
=yes
15832 tmp_sharedflag
='-G' ;;
15833 *Sun\ F
*) # Sun Fortran 8.3
15834 tmp_sharedflag
='-G' ;;
15836 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15838 if test "x$supports_anon_versioning" = xyes
; then
15839 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15841 echo "local: *; };" >> $output_objdir/$libname.ver~
15842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15845 case $cc_basename in
15846 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15847 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15848 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15849 hardcode_libdir_flag_spec
=
15850 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15851 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15852 if test "x$supports_anon_versioning" = xyes
; then
15853 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15855 echo "local: *; };" >> $output_objdir/$libname.ver~
15856 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15866 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15867 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15871 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15876 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15880 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15881 *** create shared libraries on Solaris systems. Therefore, libtool
15882 *** is disabling shared libraries support. We urge you to upgrade GNU
15883 *** binutils to release 2.9.1 or newer. Another option is to modify
15884 *** your PATH or compiler configuration so that the native linker is
15885 *** used, and then restart.
15888 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15889 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15890 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15896 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15897 case `$LD -v 2>&1` in
15898 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15902 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15903 *** reliably create shared libraries on SCO systems. Therefore, libtool
15904 *** is disabling shared libraries support. We urge you to upgrade GNU
15905 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15906 *** your PATH or compiler configuration so that the native linker is
15907 *** used, and then restart.
15912 # For security reasons, it is highly recommended that you always
15913 # use absolute paths for naming shared libraries, and exclude the
15914 # DT_RUNPATH tag from executables and libraries. But doing so
15915 # requires that you compile everything twice, which is a pain.
15916 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15917 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15918 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15919 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15928 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15930 hardcode_direct
=yes
15931 hardcode_shlibpath_var
=no
15935 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15936 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15937 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15944 if test "$ld_shlibs" = no
; then
15946 hardcode_libdir_flag_spec
=
15947 export_dynamic_flag_spec
=
15948 whole_archive_flag_spec
=
15951 # PORTME fill in a description of your system's linker (not GNU ld)
15954 allow_undefined_flag
=unsupported
15955 always_export_symbols
=yes
15956 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'
15957 # Note: this linker hardcodes the directories in LIBPATH if there
15958 # are no directories specified by -L.
15959 hardcode_minus_L
=yes
15960 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15961 # Neither direct hardcoding nor static linking is supported with a
15963 hardcode_direct
=unsupported
15968 if test "$host_cpu" = ia64
; then
15969 # On IA64, the linker does run time linking by default, so we don't
15970 # have to do anything special.
15971 aix_use_runtimelinking
=no
15972 exp_sym_flag
='-Bexport'
15975 # If we're using GNU nm, then we don't want the "-C" option.
15976 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15977 # Also, AIX nm treats weak defined symbols like other global
15978 # defined symbols, whereas GNU nm marks them as "W".
15979 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15980 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'
15982 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'
15984 aix_use_runtimelinking
=no
15986 # Test if we are trying to use run time linking or normal
15987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15988 # need to do runtime linking.
15989 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15990 for ld_flag
in $LDFLAGS; do
15991 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15992 aix_use_runtimelinking
=yes
15999 exp_sym_flag
='-bexport'
16000 no_entry_flag
='-bnoentry'
16003 # When large executables or shared objects are built, AIX ld can
16004 # have problems creating the table of contents. If linking a library
16005 # or program results in "error TOC overflow" add -mminimal-toc to
16006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16010 hardcode_direct
=yes
16011 hardcode_direct_absolute
=yes
16012 hardcode_libdir_separator
=':'
16013 link_all_deplibs
=yes
16014 file_list_spec
='${wl}-f,'
16016 if test "$GCC" = yes; then
16017 case $host_os in aix4.
[012]|aix4.
[012].
*)
16018 # We only want to do this on AIX 4.2 and lower, the check
16019 # below for broken collect2 doesn't work under 4.3+
16020 collect2name
=`${CC} -print-prog-name=collect2`
16021 if test -f "$collect2name" &&
16022 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16024 # We have reworked collect2
16027 # We have old collect2
16028 hardcode_direct
=unsupported
16029 # It fails to find uninstalled libraries when the uninstalled
16030 # path is not listed in the libpath. Setting hardcode_minus_L
16031 # to unsupported forces relinking
16032 hardcode_minus_L
=yes
16033 hardcode_libdir_flag_spec
='-L$libdir'
16034 hardcode_libdir_separator
=
16038 shared_flag
='-shared'
16039 if test "$aix_use_runtimelinking" = yes; then
16040 shared_flag
="$shared_flag "'${wl}-G'
16044 if test "$host_cpu" = ia64
; then
16045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16046 # chokes on -Wl,-G. The following line is correct:
16049 if test "$aix_use_runtimelinking" = yes; then
16050 shared_flag
='${wl}-G'
16052 shared_flag
='${wl}-bM:SRE'
16057 export_dynamic_flag_spec
='${wl}-bexpall'
16058 # It seems that -bexpall does not export symbols beginning with
16059 # underscore (_), so it is better to generate a list of symbols to export.
16060 always_export_symbols
=yes
16061 if test "$aix_use_runtimelinking" = yes; then
16062 # Warning - without using the other runtime loading flags (-brtl),
16063 # -berok will link without error, but may produce a broken library.
16064 allow_undefined_flag
='-berok'
16065 # Determine the default libpath from the value encoded in an
16066 # empty executable.
16067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16078 if ac_fn_c_try_link
"$LINENO"; then :
16080 lt_aix_libpath_sed
='
16081 /Import File Strings/,/^$/ {
16087 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16088 # Check for a 64-bit object if we didn't find anything.
16089 if test -z "$aix_libpath"; then
16090 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16093 rm -f core conftest.err conftest.
$ac_objext \
16094 conftest
$ac_exeext conftest.
$ac_ext
16095 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16097 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16098 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"
16100 if test "$host_cpu" = ia64
; then
16101 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16102 allow_undefined_flag
="-z nodefs"
16103 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"
16105 # Determine the default libpath from the value encoded in an
16106 # empty executable.
16107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16118 if ac_fn_c_try_link
"$LINENO"; then :
16120 lt_aix_libpath_sed
='
16121 /Import File Strings/,/^$/ {
16127 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16128 # Check for a 64-bit object if we didn't find anything.
16129 if test -z "$aix_libpath"; then
16130 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16133 rm -f core conftest.err conftest.
$ac_objext \
16134 conftest
$ac_exeext conftest.
$ac_ext
16135 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16137 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16138 # Warning - without using the other run time loading flags,
16139 # -berok will link without error, but may produce a broken library.
16140 no_undefined_flag
=' ${wl}-bernotok'
16141 allow_undefined_flag
=' ${wl}-berok'
16142 if test "$with_gnu_ld" = yes; then
16143 # We only use this code for GNU lds that support --whole-archive.
16144 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16146 # Exported symbols can be pulled into shared objects from archives
16147 whole_archive_flag_spec
='$convenience'
16149 archive_cmds_need_lc
=yes
16150 # This is similar to how AIX traditionally builds its shared libraries.
16151 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'
16159 # see comment about AmigaOS4 .so support
16160 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16161 archive_expsym_cmds
=''
16164 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)'
16165 hardcode_libdir_flag_spec
='-L$libdir'
16166 hardcode_minus_L
=yes
16172 export_dynamic_flag_spec
=-rdynamic
16175 cygwin
* | mingw
* | pw32
* | cegcc
*)
16176 # When not using gcc, we currently assume that we are using
16177 # Microsoft Visual C++.
16178 # hardcode_libdir_flag_spec is actually meaningless, as there is
16179 # no search path for DLLs.
16180 hardcode_libdir_flag_spec
=' '
16181 allow_undefined_flag
=unsupported
16182 # Tell ltmain to make .lib files, not .a files.
16184 # Tell ltmain to make .dll files, not .so files.
16186 # FIXME: Setting linknames here is a bad hack.
16187 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16188 # The linker will automatically build a .lib file if we build a DLL.
16189 old_archive_from_new_cmds
='true'
16190 # FIXME: Should let the user specify the lib program.
16191 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16192 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16193 enable_shared_with_static_runtimes
=yes
16196 darwin
* | rhapsody
*)
16199 archive_cmds_need_lc
=no
16201 hardcode_automatic
=yes
16202 hardcode_shlibpath_var
=unsupported
16203 if test "$lt_cv_ld_force_load" = "yes"; then
16204 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\"`'
16206 whole_archive_flag_spec
=''
16208 link_all_deplibs
=yes
16209 allow_undefined_flag
="$_lt_dar_allow_undefined"
16210 case $cc_basename in
16211 ifort
*) _lt_dar_can_shared
=yes ;;
16212 *) _lt_dar_can_shared
=$GCC ;;
16214 if test "$_lt_dar_can_shared" = "yes"; then
16215 output_verbose_link_cmd
=func_echo_all
16216 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16217 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16218 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}"
16219 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}"
16228 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229 hardcode_libdir_flag_spec
='-L$libdir'
16230 hardcode_shlibpath_var
=no
16233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16234 # support. Future versions do this automatically, but an explicit c++rt0.o
16235 # does not break anything, and helps significantly (at the cost of a little
16238 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16239 hardcode_libdir_flag_spec
='-R$libdir'
16240 hardcode_direct
=yes
16241 hardcode_shlibpath_var
=no
16244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16246 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16247 hardcode_direct
=yes
16248 hardcode_minus_L
=yes
16249 hardcode_shlibpath_var
=no
16252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16253 freebsd
* | dragonfly
*)
16254 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16255 hardcode_libdir_flag_spec
='-R$libdir'
16256 hardcode_direct
=yes
16257 hardcode_shlibpath_var
=no
16261 if test "$GCC" = yes; then
16262 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'
16264 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'
16266 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16267 hardcode_libdir_separator
=:
16268 hardcode_direct
=yes
16270 # hardcode_minus_L: Not really in the search PATH,
16271 # but as the default location of the library.
16272 hardcode_minus_L
=yes
16273 export_dynamic_flag_spec
='${wl}-E'
16277 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16278 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16280 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16282 if test "$with_gnu_ld" = no
; then
16283 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_flag_spec_ld
='+b $libdir'
16285 hardcode_libdir_separator
=:
16286 hardcode_direct
=yes
16287 hardcode_direct_absolute
=yes
16288 export_dynamic_flag_spec
='${wl}-E'
16289 # hardcode_minus_L: Not really in the search PATH,
16290 # but as the default location of the library.
16291 hardcode_minus_L
=yes
16296 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16299 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16302 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16305 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16311 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16318 # Older versions of the 11.00 compiler do not understand -b yet
16319 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16321 $as_echo_n "checking if $CC understands -b... " >&6; }
16322 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16323 $as_echo_n "(cached) " >&6
16325 lt_cv_prog_compiler__b
=no
16326 save_LDFLAGS
="$LDFLAGS"
16327 LDFLAGS
="$LDFLAGS -b"
16328 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16329 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16330 # The linker can only warn and ignore the option if not recognized
16331 # So say no if there are warnings
16332 if test -s conftest.err
; then
16333 # Append any errors to the config.log.
16334 cat conftest.err
1>&5
16335 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16336 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16337 if diff conftest.exp conftest.er2
>/dev
/null
; then
16338 lt_cv_prog_compiler__b
=yes
16341 lt_cv_prog_compiler__b
=yes
16345 LDFLAGS
="$save_LDFLAGS"
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16349 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16351 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16352 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16354 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16360 if test "$with_gnu_ld" = no
; then
16361 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16362 hardcode_libdir_separator
=:
16367 hardcode_shlibpath_var
=no
16370 hardcode_direct
=yes
16371 hardcode_direct_absolute
=yes
16372 export_dynamic_flag_spec
='${wl}-E'
16374 # hardcode_minus_L: Not really in the search PATH,
16375 # but as the default location of the library.
16376 hardcode_minus_L
=yes
16382 irix5
* | irix6
* | nonstopux
*)
16383 if test "$GCC" = yes; then
16384 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'
16385 # Try to use the -exported_symbol ld option, if it does not
16386 # work, assume that -exports_file does not work either and
16387 # implicitly export all symbols.
16388 save_LDFLAGS
="$LDFLAGS"
16389 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16394 if ac_fn_c_try_link
"$LINENO"; then :
16395 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'
16398 rm -f core conftest.err conftest.
$ac_objext \
16399 conftest
$ac_exeext conftest.
$ac_ext
16400 LDFLAGS
="$save_LDFLAGS"
16402 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'
16403 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'
16405 archive_cmds_need_lc
='no'
16406 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16407 hardcode_libdir_separator
=:
16409 link_all_deplibs
=yes
16413 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16414 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16416 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16418 hardcode_libdir_flag_spec
='-R$libdir'
16419 hardcode_direct
=yes
16420 hardcode_shlibpath_var
=no
16424 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16425 hardcode_direct
=yes
16426 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16427 hardcode_libdir_separator
=:
16428 hardcode_shlibpath_var
=no
16435 if test -f /usr
/libexec
/ld.so
; then
16436 hardcode_direct
=yes
16437 hardcode_shlibpath_var
=no
16438 hardcode_direct_absolute
=yes
16439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16440 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16441 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16442 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16443 export_dynamic_flag_spec
='${wl}-E'
16446 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16447 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16448 hardcode_libdir_flag_spec
='-R$libdir'
16451 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16452 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16462 hardcode_libdir_flag_spec
='-L$libdir'
16463 hardcode_minus_L
=yes
16464 allow_undefined_flag
=unsupported
16465 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'
16466 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16470 if test "$GCC" = yes; then
16471 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16472 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'
16474 allow_undefined_flag
=' -expect_unresolved \*'
16475 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'
16477 archive_cmds_need_lc
='no'
16478 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16479 hardcode_libdir_separator
=:
16482 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16483 if test "$GCC" = yes; then
16484 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16485 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'
16486 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16488 allow_undefined_flag
=' -expect_unresolved \*'
16489 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'
16490 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~
16491 $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'
16493 # Both c and cxx compiler support -rpath directly
16494 hardcode_libdir_flag_spec
='-rpath $libdir'
16496 archive_cmds_need_lc
='no'
16497 hardcode_libdir_separator
=:
16501 no_undefined_flag
=' -z defs'
16502 if test "$GCC" = yes; then
16504 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16505 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16506 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16508 case `$CC -V 2>&1` in
16511 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16513 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16517 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16519 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16523 hardcode_libdir_flag_spec
='-R$libdir'
16524 hardcode_shlibpath_var
=no
16526 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16528 # The compiler driver will combine and reorder linker options,
16529 # but understands `-z linker_flag'. GCC discards it without `$wl',
16530 # but is careful enough not to reorder.
16531 # Supported since Solaris 2.6 (maybe 2.5.1?)
16532 if test "$GCC" = yes; then
16533 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16535 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16539 link_all_deplibs
=yes
16543 if test "x$host_vendor" = xsequent
; then
16544 # Use $CC to link under sequent, because it throws in some extra .o
16545 # files that make .init and .fini sections work.
16546 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16548 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16550 hardcode_libdir_flag_spec
='-L$libdir'
16551 hardcode_direct
=yes
16552 hardcode_minus_L
=yes
16553 hardcode_shlibpath_var
=no
16557 case $host_vendor in
16559 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560 hardcode_direct
=yes # is this really true???
16563 ## LD is ld it makes a PLAMLIB
16564 ## CC just makes a GrossModule.
16565 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16566 reload_cmds
='$CC -r -o $output$reload_objs'
16570 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16574 runpath_var
='LD_RUN_PATH'
16575 hardcode_shlibpath_var
=no
16579 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580 hardcode_shlibpath_var
=no
16581 export_dynamic_flag_spec
='-Bexport'
16585 if test -d /usr
/nec
; then
16586 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_shlibpath_var
=no
16588 runpath_var
=LD_RUN_PATH
16589 hardcode_runpath_var
=yes
16594 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16595 no_undefined_flag
='${wl}-z,text'
16596 archive_cmds_need_lc
=no
16597 hardcode_shlibpath_var
=no
16598 runpath_var
='LD_RUN_PATH'
16600 if test "$GCC" = yes; then
16601 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16602 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16604 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16605 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 sysv5
* | sco3.2v5
* | sco5v6
*)
16610 # Note: We can NOT use -z defs as we might desire, because we do not
16611 # link with -lc, and that would cause any symbols used from libc to
16612 # always be unresolved, which means just about no library would
16613 # ever link correctly. If we're not using GNU ld we use -z text
16614 # though, which does catch some bad symbols but isn't as heavy-handed
16616 no_undefined_flag
='${wl}-z,text'
16617 allow_undefined_flag
='${wl}-z,nodefs'
16618 archive_cmds_need_lc
=no
16619 hardcode_shlibpath_var
=no
16620 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16621 hardcode_libdir_separator
=':'
16622 link_all_deplibs
=yes
16623 export_dynamic_flag_spec
='${wl}-Bexport'
16624 runpath_var
='LD_RUN_PATH'
16626 if test "$GCC" = yes; then
16627 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16628 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16630 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16637 hardcode_libdir_flag_spec
='-L$libdir'
16638 hardcode_shlibpath_var
=no
16646 if test x
$host_vendor = xsni
; then
16648 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16649 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16656 $as_echo "$ld_shlibs" >&6; }
16657 test "$ld_shlibs" = no
&& can_build_shared
=no
16659 with_gnu_ld
=$with_gnu_ld
16676 # Do we need to explicitly link libc?
16678 case "x$archive_cmds_need_lc" in
16680 # Assume -lc should be added
16681 archive_cmds_need_lc
=yes
16683 if test "$enable_shared" = yes && test "$GCC" = yes; then
16684 case $archive_cmds in
16686 # FIXME: we may have to deal with multi-command sequences.
16689 # Test whether the compiler implicitly links with -lc since on some
16690 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16691 # to ld, don't add -lc before -lgcc.
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16693 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16694 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16695 $as_echo_n "(cached) " >&6
16698 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16701 (eval $ac_compile) 2>&5
16703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16704 test $ac_status = 0; } 2>conftest.err
; then
16707 libobjs
=conftest.
$ac_objext
16709 wl
=$lt_prog_compiler_wl
16710 pic_flag
=$lt_prog_compiler_pic
16716 lt_save_allow_undefined_flag
=$allow_undefined_flag
16717 allow_undefined_flag
=
16718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16719 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16722 test $ac_status = 0; }
16724 lt_cv_archive_cmds_need_lc
=no
16726 lt_cv_archive_cmds_need_lc
=yes
16728 allow_undefined_flag
=$lt_save_allow_undefined_flag
16730 cat conftest.err
1>&5
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16736 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16737 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16901 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16903 if test "$GCC" = yes; then
16905 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16906 *) lt_awk_arg
="/^libraries:/" ;;
16909 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16910 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16912 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16913 case $lt_search_path_spec in
16915 # if the path contains ";" then we assume it to be the separator
16916 # otherwise default to the standard path separator (i.e. ":") - it is
16917 # assumed that no part of a normal pathname contains ";" but that should
16918 # okay in the real world where ";" in dirpaths is itself problematic.
16919 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16922 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16925 # Ok, now we have the path, separated by spaces, we can step through it
16926 # and add multilib dir if necessary.
16927 lt_tmp_lt_search_path_spec
=
16928 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16929 for lt_sys_path
in $lt_search_path_spec; do
16930 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16931 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16933 test -d "$lt_sys_path" && \
16934 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16937 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16938 BEGIN {RS=" "; FS="/|\n";} {
16941 for (lt_i = NF; lt_i > 0; lt_i--) {
16942 if ($lt_i != "" && $lt_i != ".") {
16943 if ($lt_i == "..") {
16946 if (lt_count == 0) {
16947 lt_foo="/" $lt_i lt_foo;
16954 if (lt_foo != "") { lt_freq[lt_foo]++; }
16955 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16957 # AWK program above erroneously prepends '/' to C:/dos/paths
16960 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16961 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16963 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16965 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16967 library_names_spec
=
16968 libname_spec
='lib$name'
16972 postuninstall_cmds
=
16976 shlibpath_overrides_runpath
=unknown
16978 dynamic_linker
="$host_os ld.so"
16979 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16980 need_lib_prefix
=unknown
16981 hardcode_into_libs
=no
16983 # when you set need_version to no, make sure it does not cause -set_version
16984 # flags to be left without arguments
16985 need_version
=unknown
16990 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16991 shlibpath_var
=LIBPATH
16993 # AIX 3 has no versioning support, so we append a major version to the name.
16994 soname_spec
='${libname}${release}${shared_ext}$major'
17001 hardcode_into_libs
=yes
17002 if test "$host_cpu" = ia64
; then
17003 # AIX 5 supports IA64
17004 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17005 shlibpath_var
=LD_LIBRARY_PATH
17007 # With GCC up to 2.95.x, collect2 would create an import file
17008 # for dependence libraries. The import file would start with
17009 # the line `#! .'. This would cause the generated library to
17010 # depend on `.', always an invalid library. This was fixed in
17011 # development snapshots of GCC prior to 3.0.
17013 aix4 | aix4.
[01] | aix4.
[01].
*)
17014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17016 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17019 can_build_shared
=no
17023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17024 # soname into executable. Probably we can add versioning support to
17025 # collect2, so additional links can be useful in future.
17026 if test "$aix_use_runtimelinking" = yes; then
17027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17028 # instead of lib<name>.a to let people know that these are not
17029 # typical AIX shared libraries.
17030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032 # We preserve .a as extension for shared libraries through AIX4.2
17033 # and later when we are not doing run time linking.
17034 library_names_spec
='${libname}${release}.a $libname.a'
17035 soname_spec
='${libname}${release}${shared_ext}$major'
17037 shlibpath_var
=LIBPATH
17044 # Since July 2007 AmigaOS4 officially supports .so libraries.
17045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049 library_names_spec
='$libname.ixlibrary $libname.a'
17050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17051 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'
17057 library_names_spec
='${libname}${shared_ext}'
17058 dynamic_linker
="$host_os ld.so"
17059 shlibpath_var
=LIBRARY_PATH
17065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066 soname_spec
='${libname}${release}${shared_ext}$major'
17067 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17068 shlibpath_var
=LD_LIBRARY_PATH
17069 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17070 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17071 # the default ld.so.conf also contains /usr/contrib/lib and
17072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17073 # libtool to hard-code these into programs
17076 cygwin
* | mingw
* | pw32
* | cegcc
*)
17077 version_type
=windows
17082 case $GCC,$host_os in
17083 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17084 library_names_spec
='$libname.dll.a'
17085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17086 postinstall_cmds
='base_file=`basename \${file}`~
17087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17088 dldir=$destdir/`dirname \$dlpath`~
17089 test -d \$dldir || mkdir -p \$dldir~
17090 $install_prog $dir/$dlname \$dldir/$dlname~
17091 chmod a+x \$dldir/$dlname~
17092 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17093 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17095 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17096 dlpath=$dir/\$dldll~
17098 shlibpath_overrides_runpath
=yes
17102 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17103 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17105 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17108 # MinGW DLLs use traditional 'lib' prefix
17109 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17112 # pw32 DLLs use 'pw' prefix rather than 'lib'
17113 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17119 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17122 dynamic_linker
='Win32 ld.exe'
17123 # FIXME: first we should search . and the directory the executable is in
17127 darwin
* | rhapsody
*)
17128 dynamic_linker
="$host_os dyld"
17129 version_type
=darwin
17132 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17133 soname_spec
='${libname}${release}${major}$shared_ext'
17134 shlibpath_overrides_runpath
=yes
17135 shlibpath_var
=DYLD_LIBRARY_PATH
17136 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17138 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17139 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17147 soname_spec
='${libname}${release}${shared_ext}$major'
17148 shlibpath_var
=LD_LIBRARY_PATH
17151 freebsd
* | dragonfly
*)
17152 # DragonFly does not have aout. When/if they implement a new
17153 # versioning mechanism, adjust this.
17154 if test -x /usr
/bin
/objformat
; then
17155 objformat
=`/usr/bin/objformat`
17158 freebsd
[23].
*) objformat
=aout
;;
17159 *) objformat
=elf
;;
17162 version_type
=freebsd-
$objformat
17163 case $version_type in
17165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17170 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17174 shlibpath_var
=LD_LIBRARY_PATH
17177 shlibpath_overrides_runpath
=yes
17179 freebsd3.
[01]* | freebsdelf3.
[01]*)
17180 shlibpath_overrides_runpath
=yes
17181 hardcode_into_libs
=yes
17183 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17184 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17185 shlibpath_overrides_runpath
=no
17186 hardcode_into_libs
=yes
17188 *) # from 4.6 on, and DragonFly
17189 shlibpath_overrides_runpath
=yes
17190 hardcode_into_libs
=yes
17199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17200 soname_spec
='${libname}${release}${shared_ext}$major'
17201 shlibpath_var
=LD_LIBRARY_PATH
17202 hardcode_into_libs
=yes
17209 dynamic_linker
="$host_os runtime_loader"
17210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17211 soname_spec
='${libname}${release}${shared_ext}$major'
17212 shlibpath_var
=LIBRARY_PATH
17213 shlibpath_overrides_runpath
=yes
17214 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17215 hardcode_into_libs
=yes
17218 hpux9
* | hpux10
* | hpux11
*)
17219 # Give a soname corresponding to the major version so that dld.sl refuses to
17220 # link against other versions.
17227 hardcode_into_libs
=yes
17228 dynamic_linker
="$host_os dld.so"
17229 shlibpath_var
=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec
='${libname}${release}${shared_ext}$major'
17233 if test "X$HPUX_IA64_MODE" = X32
; then
17234 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17236 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17238 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17242 hardcode_into_libs
=yes
17243 dynamic_linker
="$host_os dld.sl"
17244 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17245 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec
='${libname}${release}${shared_ext}$major'
17248 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17249 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17253 dynamic_linker
="$host_os dld.sl"
17254 shlibpath_var
=SHLIB_PATH
17255 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257 soname_spec
='${libname}${release}${shared_ext}$major'
17260 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17261 postinstall_cmds
='chmod 555 $lib'
17262 # or fails outright, so override atomically:
17263 install_override_mode
=555
17270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17271 soname_spec
='${libname}${release}${shared_ext}$major'
17272 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17273 shlibpath_var
=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath
=no
17275 hardcode_into_libs
=yes
17278 irix5
* | irix6
* | nonstopux
*)
17280 nonstopux
*) version_type
=nonstopux
;;
17282 if test "$lt_cv_prog_gnu_ld" = yes; then
17290 soname_spec
='${libname}${release}${shared_ext}$major'
17291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17293 irix5
* | nonstopux
*)
17294 libsuff
= shlibsuff
=
17297 case $LD in # libtool.m4 will add one of these switches to LD
17298 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17299 libsuff
= shlibsuff
= libmagic
=32-bit;;
17300 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17301 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17302 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17303 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17304 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17308 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17309 shlibpath_overrides_runpath
=no
17310 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17311 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17312 hardcode_into_libs
=yes
17315 # No shared lib support for Linux oldld, aout, or coff.
17316 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17320 # This must be Linux ELF.
17321 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326 soname_spec
='${libname}${release}${shared_ext}$major'
17327 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17328 shlibpath_var
=LD_LIBRARY_PATH
17329 shlibpath_overrides_runpath
=no
17331 # Some binutils ld are patched to set DT_RUNPATH
17332 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17333 $as_echo_n "(cached) " >&6
17335 lt_cv_shlibpath_overrides_runpath
=no
17336 save_LDFLAGS
=$LDFLAGS
17337 save_libdir
=$libdir
17338 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17339 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17351 if ac_fn_c_try_link
"$LINENO"; then :
17352 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17353 lt_cv_shlibpath_overrides_runpath
=yes
17356 rm -f core conftest.err conftest.
$ac_objext \
17357 conftest
$ac_exeext conftest.
$ac_ext
17358 LDFLAGS
=$save_LDFLAGS
17359 libdir
=$save_libdir
17363 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17365 # This implies no fast_install, which is unacceptable.
17366 # Some rework will be needed to allow for fast_install
17367 # before this can be enabled.
17368 hardcode_into_libs
=yes
17370 # Append ld.so.conf contents to the search path
17371 if test -f /etc
/ld.so.conf
; then
17372 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' ' '`
17373 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17376 # We used to test for /lib/ld.so.1 and disable shared libraries on
17377 # powerpc, because MkLinux only supported shared libraries with the
17378 # GNU dynamic linker. Since this was broken with cross compilers,
17379 # most powerpc-linux boxes support dynamic linking these days and
17380 # people can always --disable-shared, the test was removed, and we
17381 # assume the GNU/Linux dynamic linker is in use.
17382 dynamic_linker
='GNU/Linux ld.so'
17389 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17391 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17392 dynamic_linker
='NetBSD (a.out) ld.so'
17394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17395 soname_spec
='${libname}${release}${shared_ext}$major'
17396 dynamic_linker
='NetBSD ld.elf_so'
17398 shlibpath_var
=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath
=yes
17400 hardcode_into_libs
=yes
17405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 shlibpath_var
=LD_LIBRARY_PATH
17407 shlibpath_overrides_runpath
=yes
17414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 soname_spec
='${libname}${release}${shared_ext}$major'
17416 shlibpath_var
=LD_LIBRARY_PATH
17417 shlibpath_overrides_runpath
=no
17418 hardcode_into_libs
=yes
17419 dynamic_linker
='ldqnx.so'
17424 sys_lib_dlsearch_path_spec
="/usr/lib"
17426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17428 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17429 *) need_version
=no
;;
17431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17432 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17433 shlibpath_var
=LD_LIBRARY_PATH
17434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17436 openbsd2.
[89] | openbsd2.
[89].
*)
17437 shlibpath_overrides_runpath
=no
17440 shlibpath_overrides_runpath
=yes
17444 shlibpath_overrides_runpath
=yes
17449 libname_spec
='$name'
17452 library_names_spec
='$libname${shared_ext} $libname.a'
17453 dynamic_linker
='OS/2 ld.exe'
17454 shlibpath_var
=LIBPATH
17457 osf3
* | osf4
* | osf5
*)
17461 soname_spec
='${libname}${release}${shared_ext}$major'
17462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463 shlibpath_var
=LD_LIBRARY_PATH
17464 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17465 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17477 soname_spec
='${libname}${release}${shared_ext}$major'
17478 shlibpath_var
=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath
=yes
17480 hardcode_into_libs
=yes
17481 # ldd complains unless libraries are executable
17482 postinstall_cmds
='chmod +x $lib'
17487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17488 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17489 shlibpath_var
=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath
=yes
17491 if test "$with_gnu_ld" = yes; then
17499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 soname_spec
='${libname}${release}${shared_ext}$major'
17501 shlibpath_var
=LD_LIBRARY_PATH
17502 case $host_vendor in
17504 shlibpath_overrides_runpath
=no
17506 runpath_var
=LD_RUN_PATH
17514 shlibpath_overrides_runpath
=no
17515 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17521 if test -d /usr
/nec
;then
17523 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17524 soname_spec
='$libname${shared_ext}.$major'
17525 shlibpath_var
=LD_LIBRARY_PATH
17529 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17530 version_type
=freebsd-elf
17533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17534 soname_spec
='${libname}${release}${shared_ext}$major'
17535 shlibpath_var
=LD_LIBRARY_PATH
17536 shlibpath_overrides_runpath
=yes
17537 hardcode_into_libs
=yes
17538 if test "$with_gnu_ld" = yes; then
17539 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17541 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17544 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17548 sys_lib_dlsearch_path_spec
='/usr/lib'
17552 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557 shlibpath_var
=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath
=no
17559 hardcode_into_libs
=yes
17564 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec
='${libname}${release}${shared_ext}$major'
17566 shlibpath_var
=LD_LIBRARY_PATH
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17574 $as_echo "$dynamic_linker" >&6; }
17575 test "$dynamic_linker" = no
&& can_build_shared
=no
17577 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17578 if test "$GCC" = yes; then
17579 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17582 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17583 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17585 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17586 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17681 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17683 if test -n "$hardcode_libdir_flag_spec" ||
17684 test -n "$runpath_var" ||
17685 test "X$hardcode_automatic" = "Xyes" ; then
17687 # We can hardcode non-existent directories.
17688 if test "$hardcode_direct" != no
&&
17689 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17690 # have to relink, otherwise we might link with an installed library
17691 # when we should be linking with a yet-to-be-installed one
17692 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17693 test "$hardcode_minus_L" != no
; then
17694 # Linking always hardcodes the temporary library directory.
17695 hardcode_action
=relink
17697 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17698 hardcode_action
=immediate
17701 # We cannot hardcode anything, or else we can only hardcode existing
17703 hardcode_action
=unsupported
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17706 $as_echo "$hardcode_action" >&6; }
17708 if test "$hardcode_action" = relink ||
17709 test "$inherit_rpath" = yes; then
17710 # Fast installation is not supported
17711 enable_fast_install
=no
17712 elif test "$shlibpath_overrides_runpath" = yes ||
17713 test "$enable_shared" = no
; then
17714 # Fast installation is not necessary
17715 enable_fast_install
=needless
17723 if test "x$enable_dlopen" != xyes
; then
17724 enable_dlopen
=unknown
17725 enable_dlopen_self
=unknown
17726 enable_dlopen_self_static
=unknown
17733 lt_cv_dlopen
="load_add_on"
17735 lt_cv_dlopen_self
=yes
17738 mingw
* | pw32
* | cegcc
*)
17739 lt_cv_dlopen
="LoadLibrary"
17744 lt_cv_dlopen
="dlopen"
17749 # if libdl is installed we need to link against it
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17751 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17753 $as_echo_n "(cached) " >&6
17755 ac_check_lib_save_LIBS
=$LIBS
17757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17760 /* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17775 if ac_fn_c_try_link
"$LINENO"; then :
17776 ac_cv_lib_dl_dlopen
=yes
17778 ac_cv_lib_dl_dlopen
=no
17780 rm -f core conftest.err conftest.
$ac_objext \
17781 conftest
$ac_exeext conftest.
$ac_ext
17782 LIBS
=$ac_check_lib_save_LIBS
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17785 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17786 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17787 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17790 lt_cv_dlopen
="dyld"
17792 lt_cv_dlopen_self
=yes
17799 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17800 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17801 lt_cv_dlopen
="shl_load"
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17804 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17805 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17806 $as_echo_n "(cached) " >&6
17808 ac_check_lib_save_LIBS
=$LIBS
17810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h. */
17813 /* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
17823 return shl_load ();
17828 if ac_fn_c_try_link
"$LINENO"; then :
17829 ac_cv_lib_dld_shl_load
=yes
17831 ac_cv_lib_dld_shl_load
=no
17833 rm -f core conftest.err conftest.
$ac_objext \
17834 conftest
$ac_exeext conftest.
$ac_ext
17835 LIBS
=$ac_check_lib_save_LIBS
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17838 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17839 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17840 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17842 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17843 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17844 lt_cv_dlopen
="dlopen"
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17847 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17848 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17849 $as_echo_n "(cached) " >&6
17851 ac_check_lib_save_LIBS
=$LIBS
17853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17856 /* Override any GCC internal prototype to avoid an error.
17857 Use char because int might match the return type of a GCC
17858 builtin and then its argument prototype would still apply. */
17871 if ac_fn_c_try_link
"$LINENO"; then :
17872 ac_cv_lib_dl_dlopen
=yes
17874 ac_cv_lib_dl_dlopen
=no
17876 rm -f core conftest.err conftest.
$ac_objext \
17877 conftest
$ac_exeext conftest.
$ac_ext
17878 LIBS
=$ac_check_lib_save_LIBS
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17881 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17882 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17883 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17886 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17887 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17888 $as_echo_n "(cached) " >&6
17890 ac_check_lib_save_LIBS
=$LIBS
17891 LIBS
="-lsvld $LIBS"
17892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17895 /* Override any GCC internal prototype to avoid an error.
17896 Use char because int might match the return type of a GCC
17897 builtin and then its argument prototype would still apply. */
17910 if ac_fn_c_try_link
"$LINENO"; then :
17911 ac_cv_lib_svld_dlopen
=yes
17913 ac_cv_lib_svld_dlopen
=no
17915 rm -f core conftest.err conftest.
$ac_objext \
17916 conftest
$ac_exeext conftest.
$ac_ext
17917 LIBS
=$ac_check_lib_save_LIBS
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17920 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17921 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17922 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17925 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17926 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17927 $as_echo_n "(cached) " >&6
17929 ac_check_lib_save_LIBS
=$LIBS
17931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17934 /* Override any GCC internal prototype to avoid an error.
17935 Use char because int might match the return type of a GCC
17936 builtin and then its argument prototype would still apply. */
17944 return dld_link ();
17949 if ac_fn_c_try_link
"$LINENO"; then :
17950 ac_cv_lib_dld_dld_link
=yes
17952 ac_cv_lib_dld_dld_link
=no
17954 rm -f core conftest.err conftest.
$ac_objext \
17955 conftest
$ac_exeext conftest.
$ac_ext
17956 LIBS
=$ac_check_lib_save_LIBS
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17959 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17960 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17961 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17982 if test "x$lt_cv_dlopen" != xno
; then
17988 case $lt_cv_dlopen in
17990 save_CPPFLAGS
="$CPPFLAGS"
17991 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17993 save_LDFLAGS
="$LDFLAGS"
17994 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17997 LIBS
="$lt_cv_dlopen_libs $LIBS"
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18000 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18001 if test "${lt_cv_dlopen_self+set}" = set; then :
18002 $as_echo_n "(cached) " >&6
18004 if test "$cross_compiling" = yes; then :
18005 lt_cv_dlopen_self
=cross
18007 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18008 lt_status
=$lt_dlunknown
18009 cat > conftest.
$ac_ext <<_LT_EOF
18010 #line 18010 "configure"
18011 #include "confdefs.h"
18020 # define LT_DLGLOBAL RTLD_GLOBAL
18023 # define LT_DLGLOBAL DL_GLOBAL
18025 # define LT_DLGLOBAL 0
18029 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18030 find out it does not work in some platform. */
18031 #ifndef LT_DLLAZY_OR_NOW
18033 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18036 # define LT_DLLAZY_OR_NOW DL_LAZY
18039 # define LT_DLLAZY_OR_NOW RTLD_NOW
18042 # define LT_DLLAZY_OR_NOW DL_NOW
18044 # define LT_DLLAZY_OR_NOW 0
18051 /* When -fvisbility=hidden is used, assume the code has been annotated
18052 correspondingly for the symbols needed. */
18053 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18054 void fnord () __attribute__((visibility("default")));
18057 void fnord () { int i=42; }
18060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18061 int status = $lt_dlunknown;
18065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18068 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18069 else puts (dlerror ());
18071 /* dlclose (self); */
18079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18080 (eval $ac_link) 2>&5
18082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18083 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18084 (.
/conftest
; exit; ) >&5 2>/dev
/null
18086 case x
$lt_status in
18087 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18088 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18089 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18092 # compilation failed
18093 lt_cv_dlopen_self
=no
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18101 $as_echo "$lt_cv_dlopen_self" >&6; }
18103 if test "x$lt_cv_dlopen_self" = xyes
; then
18104 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18106 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18107 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18108 $as_echo_n "(cached) " >&6
18110 if test "$cross_compiling" = yes; then :
18111 lt_cv_dlopen_self_static
=cross
18113 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18114 lt_status
=$lt_dlunknown
18115 cat > conftest.
$ac_ext <<_LT_EOF
18116 #line 18116 "configure"
18117 #include "confdefs.h"
18126 # define LT_DLGLOBAL RTLD_GLOBAL
18129 # define LT_DLGLOBAL DL_GLOBAL
18131 # define LT_DLGLOBAL 0
18135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18136 find out it does not work in some platform. */
18137 #ifndef LT_DLLAZY_OR_NOW
18139 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18142 # define LT_DLLAZY_OR_NOW DL_LAZY
18145 # define LT_DLLAZY_OR_NOW RTLD_NOW
18148 # define LT_DLLAZY_OR_NOW DL_NOW
18150 # define LT_DLLAZY_OR_NOW 0
18157 /* When -fvisbility=hidden is used, assume the code has been annotated
18158 correspondingly for the symbols needed. */
18159 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18160 void fnord () __attribute__((visibility("default")));
18163 void fnord () { int i=42; }
18166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18167 int status = $lt_dlunknown;
18171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18174 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18175 else puts (dlerror ());
18177 /* dlclose (self); */
18185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18186 (eval $ac_link) 2>&5
18188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18189 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18190 (.
/conftest
; exit; ) >&5 2>/dev
/null
18192 case x
$lt_status in
18193 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18194 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18195 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18198 # compilation failed
18199 lt_cv_dlopen_self_static
=no
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18207 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18210 CPPFLAGS
="$save_CPPFLAGS"
18211 LDFLAGS
="$save_LDFLAGS"
18216 case $lt_cv_dlopen_self in
18217 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18218 *) enable_dlopen_self
=unknown
;;
18221 case $lt_cv_dlopen_self_static in
18222 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18223 *) enable_dlopen_self_static
=unknown
;;
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18246 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18247 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18248 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18249 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18251 $as_echo "yes" >&6; }
18253 # FIXME - insert some real tests, host_os isn't really good enough
18256 if test -n "$STRIP" ; then
18257 striplib
="$STRIP -x"
18258 old_striplib
="$STRIP -S"
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18260 $as_echo "yes" >&6; }
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263 $as_echo "no" >&6; }
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268 $as_echo "no" >&6; }
18284 # Report which library types will actually be built
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18286 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18288 $as_echo "$can_build_shared" >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18291 $as_echo_n "checking whether to build shared libraries... " >&6; }
18292 test "$can_build_shared" = "no" && enable_shared
=no
18294 # On AIX, shared libraries and static libraries use the same namespace, and
18295 # are all built from PIC.
18298 test "$enable_shared" = yes && enable_static
=no
18299 if test -n "$RANLIB"; then
18300 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18301 postinstall_cmds
='$RANLIB $lib'
18306 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18307 test "$enable_shared" = yes && enable_static
=no
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18312 $as_echo "$enable_shared" >&6; }
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18315 $as_echo_n "checking whether to build static libraries... " >&6; }
18316 # Make sure either enable_shared or enable_static is yes.
18317 test "$enable_shared" = yes || enable_static
=yes
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18319 $as_echo "$enable_static" >&6; }
18326 ac_cpp
='$CPP $CPPFLAGS'
18327 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18333 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18334 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18335 (test "X$CXX" != "Xg++"))) ; then
18337 ac_cpp
='$CXXCPP $CPPFLAGS'
18338 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18339 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18340 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18342 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18343 if test -z "$CXXCPP"; then
18344 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18345 $as_echo_n "(cached) " >&6
18347 # Double quotes because CXXCPP needs to be expanded
18348 for CXXCPP
in "$CXX -E" "/lib/cpp"
18350 ac_preproc_ok
=false
18351 for ac_cxx_preproc_warn_flag
in '' yes
18353 # Use a header file that comes with gcc, so configuring glibc
18354 # with a fresh cross-compiler works.
18355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18356 # <limits.h> exists even on freestanding compilers.
18357 # On the NeXT, cc -E runs the code through the compiler's parser,
18358 # not just through cpp. "Syntax error" is here to catch this case.
18359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18362 # include <limits.h>
18364 # include <assert.h>
18368 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18371 # Broken: fails on valid input.
18374 rm -f conftest.err conftest.
$ac_ext
18376 # OK, works on sane cases. Now check whether nonexistent headers
18377 # can be detected and how.
18378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380 #include <ac_nonexistent.h>
18382 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18383 # Broken: success on invalid input.
18386 # Passes both tests.
18390 rm -f conftest.err conftest.
$ac_ext
18393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18394 rm -f conftest.err conftest.
$ac_ext
18395 if $ac_preproc_ok; then :
18400 ac_cv_prog_CXXCPP
=$CXXCPP
18403 CXXCPP
=$ac_cv_prog_CXXCPP
18405 ac_cv_prog_CXXCPP
=$CXXCPP
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18408 $as_echo "$CXXCPP" >&6; }
18409 ac_preproc_ok
=false
18410 for ac_cxx_preproc_warn_flag
in '' yes
18412 # Use a header file that comes with gcc, so configuring glibc
18413 # with a fresh cross-compiler works.
18414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18415 # <limits.h> exists even on freestanding compilers.
18416 # On the NeXT, cc -E runs the code through the compiler's parser,
18417 # not just through cpp. "Syntax error" is here to catch this case.
18418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 # include <limits.h>
18423 # include <assert.h>
18427 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18430 # Broken: fails on valid input.
18433 rm -f conftest.err conftest.
$ac_ext
18435 # OK, works on sane cases. Now check whether nonexistent headers
18436 # can be detected and how.
18437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439 #include <ac_nonexistent.h>
18441 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18442 # Broken: success on invalid input.
18445 # Passes both tests.
18449 rm -f conftest.err conftest.
$ac_ext
18452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18453 rm -f conftest.err conftest.
$ac_ext
18454 if $ac_preproc_ok; then :
18457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18459 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18460 See \`config.log' for more details." "$LINENO" 5; }
18464 ac_cpp
='$CPP $CPPFLAGS'
18465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18470 _lt_caught_CXX_error
=yes
18474 ac_cpp
='$CXXCPP $CPPFLAGS'
18475 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18476 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18477 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18479 archive_cmds_need_lc_CXX
=no
18480 allow_undefined_flag_CXX
=
18481 always_export_symbols_CXX
=no
18482 archive_expsym_cmds_CXX
=
18483 compiler_needs_object_CXX
=no
18484 export_dynamic_flag_spec_CXX
=
18485 hardcode_direct_CXX
=no
18486 hardcode_direct_absolute_CXX
=no
18487 hardcode_libdir_flag_spec_CXX
=
18488 hardcode_libdir_flag_spec_ld_CXX
=
18489 hardcode_libdir_separator_CXX
=
18490 hardcode_minus_L_CXX
=no
18491 hardcode_shlibpath_var_CXX
=unsupported
18492 hardcode_automatic_CXX
=no
18493 inherit_rpath_CXX
=no
18495 module_expsym_cmds_CXX
=
18496 link_all_deplibs_CXX
=unknown
18497 old_archive_cmds_CXX
=$old_archive_cmds
18498 reload_flag_CXX
=$reload_flag
18499 reload_cmds_CXX
=$reload_cmds
18500 no_undefined_flag_CXX
=
18501 whole_archive_flag_spec_CXX
=
18502 enable_shared_with_static_runtimes_CXX
=no
18504 # Source file extension for C++ test sources.
18507 # Object file extension for compiled C++ test sources.
18511 # No sense in running all these tests if we already determined that
18512 # the CXX compiler isn't working. Some variables (like enable_shared)
18513 # are currently assumed to apply to all compilers on this platform,
18514 # and will be corrupted by setting them based on a non-working compiler.
18515 if test "$_lt_caught_CXX_error" != yes; then
18516 # Code to be used in simple compile tests
18517 lt_simple_compile_test_code
="int some_variable = 0;"
18519 # Code to be used in simple link tests
18520 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18522 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18529 # If no C compiler was specified, use CC.
18532 # If no C compiler flags were specified, use CFLAGS.
18533 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18535 # Allow CC to be a program name with arguments.
18539 # save warnings/boilerplate of simple test code
18540 ac_outfile
=conftest.
$ac_objext
18541 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18542 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18543 _lt_compiler_boilerplate
=`cat conftest.err`
18546 ac_outfile
=conftest.
$ac_objext
18547 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18548 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18549 _lt_linker_boilerplate
=`cat conftest.err`
18553 # Allow CC to be a program name with arguments.
18558 lt_save_with_gnu_ld
=$with_gnu_ld
18559 lt_save_path_LD
=$lt_cv_path_LD
18560 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18561 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18563 $as_unset lt_cv_prog_gnu_ld
18565 if test -n "${lt_cv_path_LDCXX+set}"; then
18566 lt_cv_path_LD
=$lt_cv_path_LDCXX
18568 $as_unset lt_cv_path_LD
18570 test -z "${LDCXX+set}" || LD
=$LDCXX
18574 for cc_temp
in $compiler""; do
18576 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18577 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18582 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18585 if test -n "$compiler"; then
18586 # We don't want -fno-exception when compiling C++ code, so set the
18587 # no_builtin_flag separately
18588 if test "$GXX" = yes; then
18589 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18591 lt_prog_compiler_no_builtin_flag_CXX
=
18594 if test "$GXX" = yes; then
18595 # Set up default GNU C++ configuration
18599 # Check whether --with-gnu-ld was given.
18600 if test "${with_gnu_ld+set}" = set; then :
18601 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18607 if test "$GCC" = yes; then
18608 # Check if gcc -print-prog-name=ld gives a path.
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18610 $as_echo_n "checking for ld used by $CC... " >&6; }
18613 # gcc leaves a trailing carriage return which upsets mingw
18614 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18616 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18619 # Accept absolute paths.
18621 re_direlt
='/[^/][^/]*/\.\./'
18622 # Canonicalize the pathname of ld
18623 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18624 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18625 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18627 test -z "$LD" && LD
="$ac_prog"
18630 # If it fails, then pretend we aren't using GCC.
18634 # If it is relative, then search for the first ld in PATH.
18635 with_gnu_ld
=unknown
18638 elif test "$with_gnu_ld" = yes; then
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18640 $as_echo_n "checking for GNU ld... " >&6; }
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18643 $as_echo_n "checking for non-GNU ld... " >&6; }
18645 if test "${lt_cv_path_LD+set}" = set; then :
18646 $as_echo_n "(cached) " >&6
18648 if test -z "$LD"; then
18649 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18650 for ac_dir
in $PATH; do
18652 test -z "$ac_dir" && ac_dir
=.
18653 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18654 lt_cv_path_LD
="$ac_dir/$ac_prog"
18655 # Check to see if the program is GNU ld. I'd rather use --version,
18656 # but apparently some variants of GNU ld only accept -v.
18657 # Break only if it was the GNU/non-GNU ld that we prefer.
18658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18659 *GNU
* |
*'with BFD'*)
18660 test "$with_gnu_ld" != no
&& break
18663 test "$with_gnu_ld" != yes && break
18670 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18674 LD
="$lt_cv_path_LD"
18675 if test -n "$LD"; then
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18677 $as_echo "$LD" >&6; }
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18680 $as_echo "no" >&6; }
18682 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18684 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18685 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18686 $as_echo_n "(cached) " >&6
18688 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18689 case `$LD -v 2>&1 </dev/null` in
18690 *GNU
* |
*'with BFD'*)
18691 lt_cv_prog_gnu_ld
=yes
18694 lt_cv_prog_gnu_ld
=no
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18699 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18700 with_gnu_ld
=$lt_cv_prog_gnu_ld
18708 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18709 # archiving commands below assume that GNU ld is being used.
18710 if test "$with_gnu_ld" = yes; then
18711 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18712 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'
18714 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18715 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18717 # If archive_cmds runs LD, not CC, wlarc should be empty
18718 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18719 # investigate it a little bit more. (MM)
18722 # ancient GNU ld didn't support --whole-archive et. al.
18723 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18724 $GREP 'no-whole-archive' > /dev
/null
; then
18725 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18727 whole_archive_flag_spec_CXX
=
18733 # A generic and very simple default shared library creation
18734 # command for GNU C++ for the case where it uses the native
18735 # linker, instead of GNU ld. If possible, this setting should
18736 # overridden to take advantage of the native linker features on
18737 # the platform it is being used on.
18738 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18741 # Commands to make compiler produce verbose output that lists
18742 # what "hidden" libraries, object files and flags are used when
18743 # linking a shared library.
18744 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18752 # PORTME: fill in a description of your system's C++ link characteristics
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18754 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18758 # FIXME: insert proper C++ library support
18762 if test "$host_cpu" = ia64
; then
18763 # On IA64, the linker does run time linking by default, so we don't
18764 # have to do anything special.
18765 aix_use_runtimelinking
=no
18766 exp_sym_flag
='-Bexport'
18769 aix_use_runtimelinking
=no
18771 # Test if we are trying to use run time linking or normal
18772 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18773 # need to do runtime linking.
18774 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18775 for ld_flag
in $LDFLAGS; do
18778 aix_use_runtimelinking
=yes
18786 exp_sym_flag
='-bexport'
18787 no_entry_flag
='-bnoentry'
18790 # When large executables or shared objects are built, AIX ld can
18791 # have problems creating the table of contents. If linking a library
18792 # or program results in "error TOC overflow" add -mminimal-toc to
18793 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18794 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18796 archive_cmds_CXX
=''
18797 hardcode_direct_CXX
=yes
18798 hardcode_direct_absolute_CXX
=yes
18799 hardcode_libdir_separator_CXX
=':'
18800 link_all_deplibs_CXX
=yes
18801 file_list_spec_CXX
='${wl}-f,'
18803 if test "$GXX" = yes; then
18804 case $host_os in aix4.
[012]|aix4.
[012].
*)
18805 # We only want to do this on AIX 4.2 and lower, the check
18806 # below for broken collect2 doesn't work under 4.3+
18807 collect2name
=`${CC} -print-prog-name=collect2`
18808 if test -f "$collect2name" &&
18809 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18811 # We have reworked collect2
18814 # We have old collect2
18815 hardcode_direct_CXX
=unsupported
18816 # It fails to find uninstalled libraries when the uninstalled
18817 # path is not listed in the libpath. Setting hardcode_minus_L
18818 # to unsupported forces relinking
18819 hardcode_minus_L_CXX
=yes
18820 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18821 hardcode_libdir_separator_CXX
=
18824 shared_flag
='-shared'
18825 if test "$aix_use_runtimelinking" = yes; then
18826 shared_flag
="$shared_flag "'${wl}-G'
18830 if test "$host_cpu" = ia64
; then
18831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18832 # chokes on -Wl,-G. The following line is correct:
18835 if test "$aix_use_runtimelinking" = yes; then
18836 shared_flag
='${wl}-G'
18838 shared_flag
='${wl}-bM:SRE'
18843 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18844 # It seems that -bexpall does not export symbols beginning with
18845 # underscore (_), so it is better to generate a list of symbols to
18847 always_export_symbols_CXX
=yes
18848 if test "$aix_use_runtimelinking" = yes; then
18849 # Warning - without using the other runtime loading flags (-brtl),
18850 # -berok will link without error, but may produce a broken library.
18851 allow_undefined_flag_CXX
='-berok'
18852 # Determine the default libpath from the value encoded in an empty
18854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18865 if ac_fn_cxx_try_link
"$LINENO"; then :
18867 lt_aix_libpath_sed
='
18868 /Import File Strings/,/^$/ {
18874 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18875 # Check for a 64-bit object if we didn't find anything.
18876 if test -z "$aix_libpath"; then
18877 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18880 rm -f core conftest.err conftest.
$ac_objext \
18881 conftest
$ac_exeext conftest.
$ac_ext
18882 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18884 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18886 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"
18888 if test "$host_cpu" = ia64
; then
18889 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18890 allow_undefined_flag_CXX
="-z nodefs"
18891 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"
18893 # Determine the default libpath from the value encoded in an
18894 # empty executable.
18895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18906 if ac_fn_cxx_try_link
"$LINENO"; then :
18908 lt_aix_libpath_sed
='
18909 /Import File Strings/,/^$/ {
18915 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18916 # Check for a 64-bit object if we didn't find anything.
18917 if test -z "$aix_libpath"; then
18918 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18921 rm -f core conftest.err conftest.
$ac_objext \
18922 conftest
$ac_exeext conftest.
$ac_ext
18923 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18925 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18926 # Warning - without using the other run time loading flags,
18927 # -berok will link without error, but may produce a broken library.
18928 no_undefined_flag_CXX
=' ${wl}-bernotok'
18929 allow_undefined_flag_CXX
=' ${wl}-berok'
18930 if test "$with_gnu_ld" = yes; then
18931 # We only use this code for GNU lds that support --whole-archive.
18932 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18934 # Exported symbols can be pulled into shared objects from archives
18935 whole_archive_flag_spec_CXX
='$convenience'
18937 archive_cmds_need_lc_CXX
=yes
18938 # This is similar to how AIX traditionally builds its shared
18940 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'
18946 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18947 allow_undefined_flag_CXX
=unsupported
18948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18949 # support --undefined. This deserves some investigation. FIXME
18950 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18957 case $cc_basename in
18959 # FIXME: insert proper C++ library support
18965 cygwin
* | mingw
* | pw32
* | cegcc
*)
18966 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18967 # as there is no search path for DLLs.
18968 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18969 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18970 allow_undefined_flag_CXX
=unsupported
18971 always_export_symbols_CXX
=no
18972 enable_shared_with_static_runtimes_CXX
=yes
18974 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18975 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'
18976 # If the export-symbols file already is a .def file (1st line
18977 # is EXPORTS), use it as is; otherwise, prepend...
18978 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18979 cp $export_symbols $output_objdir/$soname.def;
18981 echo EXPORTS > $output_objdir/$soname.def;
18982 cat $export_symbols >> $output_objdir/$soname.def;
18984 $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'
18989 darwin
* | rhapsody
*)
18992 archive_cmds_need_lc_CXX
=no
18993 hardcode_direct_CXX
=no
18994 hardcode_automatic_CXX
=yes
18995 hardcode_shlibpath_var_CXX
=unsupported
18996 if test "$lt_cv_ld_force_load" = "yes"; then
18997 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\"`'
18999 whole_archive_flag_spec_CXX
=''
19001 link_all_deplibs_CXX
=yes
19002 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19003 case $cc_basename in
19004 ifort
*) _lt_dar_can_shared
=yes ;;
19005 *) _lt_dar_can_shared
=$GCC ;;
19007 if test "$_lt_dar_can_shared" = "yes"; then
19008 output_verbose_link_cmd
=func_echo_all
19009 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}"
19010 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19011 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}"
19012 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}"
19013 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19014 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}"
19015 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}"
19025 case $cc_basename in
19027 # FIXME: insert proper C++ library support
19031 # Green Hills C++ Compiler
19032 # FIXME: insert proper C++ library support
19036 # FIXME: insert proper C++ library support
19043 # C++ shared libraries reported to be fairly broken before
19049 archive_cmds_need_lc_CXX
=no
19052 freebsd
* | dragonfly
*)
19053 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19062 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19063 link_all_deplibs_CXX
=yes
19067 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19068 hardcode_libdir_separator_CXX
=:
19069 export_dynamic_flag_spec_CXX
='${wl}-E'
19070 hardcode_direct_CXX
=yes
19071 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19072 # but as the default
19073 # location of the library.
19075 case $cc_basename in
19077 # FIXME: insert proper C++ library support
19081 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'
19082 # Commands to make compiler produce verbose output that lists
19083 # what "hidden" libraries, object files and flags are used when
19084 # linking a shared library.
19086 # There doesn't appear to be a way to prevent this compiler from
19087 # explicitly linking system object files so we need to strip them
19088 # from the output so that they don't get included in the library
19090 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"'
19093 if test "$GXX" = yes; then
19094 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'
19096 # FIXME: insert proper C++ library support
19104 if test $with_gnu_ld = no
; then
19105 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19106 hardcode_libdir_separator_CXX
=:
19112 export_dynamic_flag_spec_CXX
='${wl}-E'
19118 hardcode_direct_CXX
=no
19119 hardcode_shlibpath_var_CXX
=no
19122 hardcode_direct_CXX
=yes
19123 hardcode_direct_absolute_CXX
=yes
19124 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19125 # but as the default
19126 # location of the library.
19130 case $cc_basename in
19132 # FIXME: insert proper C++ library support
19138 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19141 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19147 # Commands to make compiler produce verbose output that lists
19148 # what "hidden" libraries, object files and flags are used when
19149 # linking a shared library.
19151 # There doesn't appear to be a way to prevent this compiler from
19152 # explicitly linking system object files so we need to strip them
19153 # from the output so that they don't get included in the library
19155 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"'
19158 if test "$GXX" = yes; then
19159 if test $with_gnu_ld = no
; then
19162 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19165 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19168 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'
19173 # FIXME: insert proper C++ library support
19181 hardcode_direct_CXX
=no
19182 hardcode_shlibpath_var_CXX
=no
19183 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19184 export_dynamic_flag_spec_CXX
='${wl}-E'
19185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19186 # Instead, shared libraries are loaded at an image base (0x10000000 by
19187 # default) and relocated if they conflict, which is a slow very memory
19188 # consuming and fragmenting process. To avoid this, we pick a random,
19189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19191 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'
19192 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'
19195 case $cc_basename in
19198 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'
19200 # Archives containing C++ object files must be created using
19201 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19202 # necessary to make sure instantiated templates are included
19204 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19207 if test "$GXX" = yes; then
19208 if test "$with_gnu_ld" = no
; then
19209 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'
19211 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'
19214 link_all_deplibs_CXX
=yes
19217 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19218 hardcode_libdir_separator_CXX
=:
19219 inherit_rpath_CXX
=yes
19222 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19223 case $cc_basename in
19225 # Kuck and Associates, Inc. (KAI) C++ Compiler
19227 # KCC will only create a shared library if the output file
19228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19229 # to its proper name (with version) after linking.
19230 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'
19231 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'
19232 # Commands to make compiler produce verbose output that lists
19233 # what "hidden" libraries, object files and flags are used when
19234 # linking a shared library.
19236 # There doesn't appear to be a way to prevent this compiler from
19237 # explicitly linking system object files so we need to strip them
19238 # from the output so that they don't get included in the library
19240 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"'
19242 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19243 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19245 # Archives containing C++ object files must be created using
19246 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19247 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19252 # version 8.0 and above of icpc choke on multiply defined symbols
19253 # if we add $predep_objects and $postdep_objects, however 7.1 and
19254 # earlier do not add the objects themselves.
19255 case `$CC -V 2>&1` in
19257 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19258 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'
19260 *) # Version 8.0 or newer
19263 ia64
*) tmp_idyn
=' -i_dynamic';;
19265 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19266 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'
19269 archive_cmds_need_lc_CXX
=no
19270 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19271 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19272 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19275 # Portland Group C++ compiler
19277 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19278 prelink_cmds_CXX
='tpldir=Template.dir~
19280 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19281 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19282 old_archive_cmds_CXX
='tpldir=Template.dir~
19284 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19285 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19287 archive_cmds_CXX
='tpldir=Template.dir~
19289 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19290 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19291 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19293 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19294 $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'
19296 *) # Version 6 and above use weak symbols
19297 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19298 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'
19302 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19303 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19304 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'
19308 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 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'
19311 runpath_var
=LD_RUN_PATH
19312 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19313 hardcode_libdir_separator_CXX
=:
19315 # Commands to make compiler produce verbose output that lists
19316 # what "hidden" libraries, object files and flags are used when
19317 # linking a shared library.
19319 # There doesn't appear to be a way to prevent this compiler from
19320 # explicitly linking system object files so we need to strip them
19321 # from the output so that they don't get included in the library
19323 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'
19325 xl
* | mpixl
* | bgxl
*)
19326 # IBM XL 8.0 on PPC, with GNU ld
19327 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19328 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19329 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19330 if test "x$supports_anon_versioning" = xyes
; then
19331 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19333 echo "local: *; };" >> $output_objdir/$libname.ver~
19334 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19338 case `$CC -V 2>&1 | sed 5q` in
19341 no_undefined_flag_CXX
=' -zdefs'
19342 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19343 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'
19344 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19345 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'
19346 compiler_needs_object_CXX
=yes
19348 # Not sure whether something based on
19349 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19351 output_verbose_link_cmd
='func_echo_all'
19353 # Archives containing C++ object files must be created using
19354 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19355 # necessary to make sure instantiated templates are included
19357 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19365 # FIXME: insert proper C++ library support
19370 # FIXME: insert proper C++ library support
19375 case $cc_basename in
19377 # FIXME: insert proper C++ library support
19381 # FIXME: insert proper C++ library support
19388 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19389 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19391 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19392 hardcode_direct_CXX
=yes
19393 hardcode_shlibpath_var_CXX
=no
19395 # Workaround some broken pre-1.5 toolchains
19396 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19404 # C++ shared libraries are fairly broken
19409 if test -f /usr
/libexec
/ld.so
; then
19410 hardcode_direct_CXX
=yes
19411 hardcode_shlibpath_var_CXX
=no
19412 hardcode_direct_absolute_CXX
=yes
19413 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19414 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19416 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19417 export_dynamic_flag_spec_CXX
='${wl}-E'
19418 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19420 output_verbose_link_cmd
=func_echo_all
19426 osf3
* | osf4
* | osf5
*)
19427 case $cc_basename in
19429 # Kuck and Associates, Inc. (KAI) C++ Compiler
19431 # KCC will only create a shared library if the output file
19432 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19433 # to its proper name (with version) after linking.
19434 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'
19436 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19437 hardcode_libdir_separator_CXX
=:
19439 # Archives containing C++ object files must be created using
19440 # the KAI C++ compiler.
19442 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19443 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19447 # Rational C++ 2.4.1
19448 # FIXME: insert proper C++ library support
19454 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19455 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'
19456 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19459 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19460 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'
19461 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19462 echo "-hidden">> $lib.exp~
19463 $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~
19465 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19469 hardcode_libdir_separator_CXX
=:
19471 # Commands to make compiler produce verbose output that lists
19472 # what "hidden" libraries, object files and flags are used when
19473 # linking a shared library.
19475 # There doesn't appear to be a way to prevent this compiler from
19476 # explicitly linking system object files so we need to strip them
19477 # from the output so that they don't get included in the library
19479 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"'
19482 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19483 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19486 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'
19489 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'
19493 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19494 hardcode_libdir_separator_CXX
=:
19496 # Commands to make compiler produce verbose output that lists
19497 # what "hidden" libraries, object files and flags are used when
19498 # linking a shared library.
19499 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19502 # FIXME: insert proper C++ library support
19510 # FIXME: insert proper C++ library support
19515 case $cc_basename in
19518 # FIXME: insert proper C++ library support
19523 # FIXME: insert proper C++ library support
19527 # FIXME: insert proper C++ library support
19534 case $cc_basename in
19536 # Sun C++ 4.2, 5.x and Centerline C++
19537 archive_cmds_need_lc_CXX
=yes
19538 no_undefined_flag_CXX
=' -zdefs'
19539 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19540 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19541 $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'
19543 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19544 hardcode_shlibpath_var_CXX
=no
19546 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19548 # The compiler driver will combine and reorder linker options,
19549 # but understands `-z linker_flag'.
19550 # Supported since Solaris 2.6 (maybe 2.5.1?)
19551 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19554 link_all_deplibs_CXX
=yes
19556 output_verbose_link_cmd
='func_echo_all'
19558 # Archives containing C++ object files must be created using
19559 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19560 # necessary to make sure instantiated templates are included
19562 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19565 # Green Hills C++ Compiler
19566 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19568 # The C++ compiler must be used to create the archive.
19569 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19572 # GNU C++ compiler with Solaris linker
19573 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19574 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19575 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19576 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19577 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19578 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19580 # Commands to make compiler produce verbose output that lists
19581 # what "hidden" libraries, object files and flags are used when
19582 # linking a shared library.
19583 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19585 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19587 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19588 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19589 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19591 # Commands to make compiler produce verbose output that lists
19592 # what "hidden" libraries, object files and flags are used when
19593 # linking a shared library.
19594 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19597 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19599 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19601 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19609 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19610 no_undefined_flag_CXX
='${wl}-z,text'
19611 archive_cmds_need_lc_CXX
=no
19612 hardcode_shlibpath_var_CXX
=no
19613 runpath_var
='LD_RUN_PATH'
19615 case $cc_basename in
19617 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19618 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19621 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19627 sysv5
* | sco3.2v5
* | sco5v6
*)
19628 # Note: We can NOT use -z defs as we might desire, because we do not
19629 # link with -lc, and that would cause any symbols used from libc to
19630 # always be unresolved, which means just about no library would
19631 # ever link correctly. If we're not using GNU ld we use -z text
19632 # though, which does catch some bad symbols but isn't as heavy-handed
19634 no_undefined_flag_CXX
='${wl}-z,text'
19635 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19636 archive_cmds_need_lc_CXX
=no
19637 hardcode_shlibpath_var_CXX
=no
19638 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19639 hardcode_libdir_separator_CXX
=':'
19640 link_all_deplibs_CXX
=yes
19641 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19642 runpath_var
='LD_RUN_PATH'
19644 case $cc_basename in
19646 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19647 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19649 '"$old_archive_cmds_CXX"
19650 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19651 '"$reload_cmds_CXX"
19654 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19655 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19661 case $cc_basename in
19663 # NonStop-UX NCC 3.20
19664 # FIXME: insert proper C++ library support
19668 # FIXME: insert proper C++ library support
19675 # FIXME: insert proper C++ library support
19680 # FIXME: insert proper C++ library support
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19686 $as_echo "$ld_shlibs_CXX" >&6; }
19687 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19693 ## There is no encapsulation within the following macros, do not change
19694 ## the running order or otherwise move them around unless you know exactly
19695 ## what you are doing...
19696 # Dependencies to place before and after the object being linked:
19697 predep_objects_CXX
=
19698 postdep_objects_CXX
=
19701 compiler_lib_search_path_CXX
=
19703 cat > conftest.
$ac_ext <<_LT_EOF
19707 Foo (void) { a = 0; }
19713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19714 (eval $ac_compile) 2>&5
19716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19717 test $ac_status = 0; }; then
19718 # Parse the compiler output and extract the necessary
19719 # objects, libraries and library flags.
19721 # Sentinel used to keep track of whether or not we are before
19722 # the conftest object file.
19723 pre_test_object_deps_done
=no
19725 for p
in `eval "$output_verbose_link_cmd"`; do
19729 # Some compilers place space between "-{L,R}" and the path.
19730 # Remove the space.
19731 if test $p = "-L" ||
19732 test $p = "-R"; then
19739 if test "$pre_test_object_deps_done" = no
; then
19742 # Internal compiler library paths should come after those
19743 # provided the user. The postdeps already come after the
19744 # user supplied libs so there is no need to process them.
19745 if test -z "$compiler_lib_search_path_CXX"; then
19746 compiler_lib_search_path_CXX
="${prev}${p}"
19748 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19751 # The "-l" case would never come before the object being
19752 # linked, so don't bother handling this case.
19755 if test -z "$postdeps_CXX"; then
19756 postdeps_CXX
="${prev}${p}"
19758 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19764 # This assumes that the test object file only shows up
19765 # once in the compiler output.
19766 if test "$p" = "conftest.$objext"; then
19767 pre_test_object_deps_done
=yes
19771 if test "$pre_test_object_deps_done" = no
; then
19772 if test -z "$predep_objects_CXX"; then
19773 predep_objects_CXX
="$p"
19775 predep_objects_CXX
="$predep_objects_CXX $p"
19778 if test -z "$postdep_objects_CXX"; then
19779 postdep_objects_CXX
="$p"
19781 postdep_objects_CXX
="$postdep_objects_CXX $p"
19786 *) ;; # Ignore the rest.
19794 echo "libtool.m4: error: problem compiling CXX test program"
19797 $RM -f confest.
$objext
19799 # PORTME: override above test on systems where it is broken
19802 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19803 # hack all around it, let's just trust "g++" to DTRT.
19804 predep_objects_CXX
=
19805 postdep_objects_CXX
=
19810 case `$CC -V 2>&1 | sed 5q` in
19814 # The more standards-conforming stlport4 library is
19815 # incompatible with the Cstd library. Avoid specifying
19816 # it if it's in CXXFLAGS. Ignore libCrun as
19817 # -library=stlport4 depends on it.
19818 case " $CXX $CXXFLAGS " in
19819 *" -library=stlport4 "*)
19820 solaris_use_stlport4
=yes
19824 if test "$solaris_use_stlport4" != yes; then
19825 postdeps_CXX
='-library=Cstd -library=Crun'
19832 case $cc_basename in
19834 # The more standards-conforming stlport4 library is
19835 # incompatible with the Cstd library. Avoid specifying
19836 # it if it's in CXXFLAGS. Ignore libCrun as
19837 # -library=stlport4 depends on it.
19838 case " $CXX $CXXFLAGS " in
19839 *" -library=stlport4 "*)
19840 solaris_use_stlport4
=yes
19844 # Adding this requires a known-good setup of shared libraries for
19845 # Sun compiler versions before 5.6, else PIC objects from an old
19846 # archive will be linked into the output, leading to subtle bugs.
19847 if test "$solaris_use_stlport4" != yes; then
19848 postdeps_CXX
='-library=Cstd -library=Crun'
19856 case " $postdeps_CXX " in
19857 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19859 compiler_lib_search_dirs_CXX
=
19860 if test -n "${compiler_lib_search_path_CXX}"; then
19861 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19894 lt_prog_compiler_wl_CXX
=
19895 lt_prog_compiler_pic_CXX
=
19896 lt_prog_compiler_static_CXX
=
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19899 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19901 # C++ specific cases for pic, static, wl, etc.
19902 if test "$GXX" = yes; then
19903 lt_prog_compiler_wl_CXX
='-Wl,'
19904 lt_prog_compiler_static_CXX
='-static'
19908 # All AIX code is PIC.
19909 if test "$host_cpu" = ia64
; then
19910 # AIX 5 now supports IA64 processor
19911 lt_prog_compiler_static_CXX
='-Bstatic'
19918 # see comment about AmigaOS4 .so support
19919 lt_prog_compiler_pic_CXX
='-fPIC'
19922 # FIXME: we need at least 68020 code to build shared libraries, but
19923 # adding the `-m68020' flag to GCC prevents building anything better,
19925 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19930 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19931 # PIC is the default for these OSes.
19933 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19934 # This hack is so that the source file can tell whether it is being
19935 # built for inclusion in a dll (and should export symbols for example).
19936 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19937 # (--disable-auto-import) libraries
19938 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19940 darwin
* | rhapsody
*)
19941 # PIC is the default on this platform
19942 # Common symbols not allowed in MH_DYLIB files
19943 lt_prog_compiler_pic_CXX
='-fno-common'
19946 # DJGPP does not support shared libraries at all
19947 lt_prog_compiler_pic_CXX
=
19950 # PIC is the default for Haiku.
19951 # The "-static" flag exists, but is broken.
19952 lt_prog_compiler_static_CXX
=
19955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19956 # Instead, we relocate shared libraries at runtime.
19959 if test -d /usr
/nec
; then
19960 lt_prog_compiler_pic_CXX
=-Kconform_pic
19964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19966 # sets the default TLS model and affects inlining.
19971 lt_prog_compiler_pic_CXX
='-fPIC'
19976 # QNX uses GNU C++, but need to define -shared option too, otherwise
19977 # it will coredump.
19978 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19981 lt_prog_compiler_pic_CXX
='-fPIC'
19987 # All AIX code is PIC.
19988 if test "$host_cpu" = ia64
; then
19989 # AIX 5 now supports IA64 processor
19990 lt_prog_compiler_static_CXX
='-Bstatic'
19992 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19996 case $cc_basename in
19998 # Green Hills C++ Compiler
19999 # _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"
20004 case $cc_basename in
20006 lt_prog_compiler_pic_CXX
='-KPIC'
20009 # Green Hills C++ Compiler
20010 lt_prog_compiler_pic_CXX
='-pic'
20016 freebsd
* | dragonfly
*)
20017 # FreeBSD uses GNU C++
20019 hpux9
* | hpux10
* | hpux11
*)
20020 case $cc_basename in
20022 lt_prog_compiler_wl_CXX
='-Wl,'
20023 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20024 if test "$host_cpu" != ia64
; then
20025 lt_prog_compiler_pic_CXX
='+Z'
20029 lt_prog_compiler_wl_CXX
='-Wl,'
20030 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20036 lt_prog_compiler_pic_CXX
='+Z'
20045 # This is c89, which is MS Visual C++ (no shared libs)
20046 # Anyone wants to do a port?
20048 irix5
* | irix6
* | nonstopux
*)
20049 case $cc_basename in
20051 lt_prog_compiler_wl_CXX
='-Wl,'
20052 lt_prog_compiler_static_CXX
='-non_shared'
20053 # CC pic flag -KPIC is the default.
20059 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20060 case $cc_basename in
20063 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20064 lt_prog_compiler_pic_CXX
='-fPIC'
20067 # old Intel C++ for x86_64 which still supported -KPIC.
20068 lt_prog_compiler_wl_CXX
='-Wl,'
20069 lt_prog_compiler_pic_CXX
='-KPIC'
20070 lt_prog_compiler_static_CXX
='-static'
20073 # Intel C++, used to be incompatible with GCC.
20074 # ICC 10 doesn't accept -KPIC any more.
20075 lt_prog_compiler_wl_CXX
='-Wl,'
20076 lt_prog_compiler_pic_CXX
='-fPIC'
20077 lt_prog_compiler_static_CXX
='-static'
20080 # Portland Group C++ compiler
20081 lt_prog_compiler_wl_CXX
='-Wl,'
20082 lt_prog_compiler_pic_CXX
='-fpic'
20083 lt_prog_compiler_static_CXX
='-Bstatic'
20087 # Make sure the PIC flag is empty. It appears that all Alpha
20088 # Linux and Compaq Tru64 Unix objects are PIC.
20089 lt_prog_compiler_pic_CXX
=
20090 lt_prog_compiler_static_CXX
='-non_shared'
20092 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20093 # IBM XL 8.0, 9.0 on PPC and BlueGene
20094 lt_prog_compiler_wl_CXX
='-Wl,'
20095 lt_prog_compiler_pic_CXX
='-qpic'
20096 lt_prog_compiler_static_CXX
='-qstaticlink'
20099 case `$CC -V 2>&1 | sed 5q` in
20102 lt_prog_compiler_pic_CXX
='-KPIC'
20103 lt_prog_compiler_static_CXX
='-Bstatic'
20104 lt_prog_compiler_wl_CXX
='-Qoption ld '
20115 case $cc_basename in
20117 lt_prog_compiler_pic_CXX
='-W c,exportall'
20126 # QNX uses GNU C++, but need to define -shared option too, otherwise
20127 # it will coredump.
20128 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20130 osf3
* | osf4
* | osf5
*)
20131 case $cc_basename in
20133 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20136 # Rational C++ 2.4.1
20137 lt_prog_compiler_pic_CXX
='-pic'
20140 # Digital/Compaq C++
20141 lt_prog_compiler_wl_CXX
='-Wl,'
20142 # Make sure the PIC flag is empty. It appears that all Alpha
20143 # Linux and Compaq Tru64 Unix objects are PIC.
20144 lt_prog_compiler_pic_CXX
=
20145 lt_prog_compiler_static_CXX
='-non_shared'
20154 case $cc_basename in
20156 # Sun C++ 4.2, 5.x and Centerline C++
20157 lt_prog_compiler_pic_CXX
='-KPIC'
20158 lt_prog_compiler_static_CXX
='-Bstatic'
20159 lt_prog_compiler_wl_CXX
='-Qoption ld '
20162 # Green Hills C++ Compiler
20163 lt_prog_compiler_pic_CXX
='-PIC'
20170 case $cc_basename in
20173 lt_prog_compiler_pic_CXX
='-pic'
20174 lt_prog_compiler_static_CXX
='-Bstatic'
20178 lt_prog_compiler_pic_CXX
='-pic'
20184 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20185 case $cc_basename in
20187 lt_prog_compiler_wl_CXX
='-Wl,'
20188 lt_prog_compiler_pic_CXX
='-KPIC'
20189 lt_prog_compiler_static_CXX
='-Bstatic'
20194 case $cc_basename in
20196 # NonStop-UX NCC 3.20
20197 lt_prog_compiler_pic_CXX
='-KPIC'
20206 lt_prog_compiler_can_build_shared_CXX
=no
20212 # For platforms which do not support PIC, -DPIC is meaningless:
20214 lt_prog_compiler_pic_CXX
=
20217 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20221 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20226 # Check to make sure the PIC flag actually works.
20228 if test -n "$lt_prog_compiler_pic_CXX"; then
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20230 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20231 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20232 $as_echo_n "(cached) " >&6
20234 lt_cv_prog_compiler_pic_works_CXX
=no
20235 ac_outfile
=conftest.
$ac_objext
20236 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20237 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20238 # Insert the option either (1) after the last *FLAGS variable, or
20239 # (2) before a word containing "conftest.", or (3) at the end.
20240 # Note that $ac_compile itself does not contain backslashes and begins
20241 # with a dollar sign (not a hyphen), so the echo should work correctly.
20242 # The option is referenced via a variable to avoid confusing sed.
20243 lt_compile
=`echo "$ac_compile" | $SED \
20244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20246 -e 's:$: $lt_compiler_flag:'`
20247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20248 (eval "$lt_compile" 2>conftest.err
)
20250 cat conftest.err
>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 if (exit $ac_status) && test -s "$ac_outfile"; then
20253 # The compiler can only warn and ignore the option if not recognized
20254 # So say no if there are warnings other than the usual output.
20255 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20256 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20257 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20258 lt_cv_prog_compiler_pic_works_CXX
=yes
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20265 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20267 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20268 case $lt_prog_compiler_pic_CXX in
20270 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20273 lt_prog_compiler_pic_CXX
=
20274 lt_prog_compiler_can_build_shared_CXX
=no
20282 # Check to make sure the static flag actually works.
20284 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20286 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20287 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20290 lt_cv_prog_compiler_static_works_CXX
=no
20291 save_LDFLAGS
="$LDFLAGS"
20292 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20293 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20294 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20295 # The linker can only warn and ignore the option if not recognized
20296 # So say no if there are warnings
20297 if test -s conftest.err
; then
20298 # Append any errors to the config.log.
20299 cat conftest.err
1>&5
20300 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20301 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20302 if diff conftest.exp conftest.er2
>/dev
/null
; then
20303 lt_cv_prog_compiler_static_works_CXX
=yes
20306 lt_cv_prog_compiler_static_works_CXX
=yes
20310 LDFLAGS
="$save_LDFLAGS"
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20314 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20316 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20319 lt_prog_compiler_static_CXX
=
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20326 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20327 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20328 $as_echo_n "(cached) " >&6
20330 lt_cv_prog_compiler_c_o_CXX
=no
20331 $RM -r conftest
2>/dev
/null
20335 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20337 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20338 # Insert the option either (1) after the last *FLAGS variable, or
20339 # (2) before a word containing "conftest.", or (3) at the end.
20340 # Note that $ac_compile itself does not contain backslashes and begins
20341 # with a dollar sign (not a hyphen), so the echo should work correctly.
20342 lt_compile
=`echo "$ac_compile" | $SED \
20343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20345 -e 's:$: $lt_compiler_flag:'`
20346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20347 (eval "$lt_compile" 2>out
/conftest.err
)
20349 cat out
/conftest.err
>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20353 # The compiler can only warn and ignore the option if not recognized
20354 # So say no if there are warnings
20355 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20356 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20357 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20358 lt_cv_prog_compiler_c_o_CXX
=yes
20363 # SGI C++ compiler will create directory out/ii_files/ for
20364 # template instantiation
20365 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20366 $RM out
/* && rmdir out
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20373 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20380 $as_echo_n "(cached) " >&6
20382 lt_cv_prog_compiler_c_o_CXX
=no
20383 $RM -r conftest
2>/dev
/null
20387 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20389 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20390 # Insert the option either (1) after the last *FLAGS variable, or
20391 # (2) before a word containing "conftest.", or (3) at the end.
20392 # Note that $ac_compile itself does not contain backslashes and begins
20393 # with a dollar sign (not a hyphen), so the echo should work correctly.
20394 lt_compile
=`echo "$ac_compile" | $SED \
20395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20397 -e 's:$: $lt_compiler_flag:'`
20398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20399 (eval "$lt_compile" 2>out
/conftest.err
)
20401 cat out
/conftest.err
>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20405 # The compiler can only warn and ignore the option if not recognized
20406 # So say no if there are warnings
20407 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20408 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20409 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20410 lt_cv_prog_compiler_c_o_CXX
=yes
20415 # SGI C++ compiler will create directory out/ii_files/ for
20416 # template instantiation
20417 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20418 $RM out
/* && rmdir out
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20430 hard_links
="nottested"
20431 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20432 # do not overwrite the value of need_locks provided by the user
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20434 $as_echo_n "checking if we can lock with hard links... " >&6; }
20437 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20439 ln conftest.a conftest.b
2>&5 || hard_links
=no
20440 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20442 $as_echo "$hard_links" >&6; }
20443 if test "$hard_links" = no
; then
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20445 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20455 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20457 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20460 # If we're using GNU nm, then we don't want the "-C" option.
20461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20462 # Also, AIX nm treats weak defined symbols like other global defined
20463 # symbols, whereas GNU nm marks them as "W".
20464 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20465 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'
20467 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'
20471 export_symbols_cmds_CXX
="$ltdll_cmds"
20473 cygwin
* | mingw
* | cegcc
*)
20474 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'
20477 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20480 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20483 $as_echo "$ld_shlibs_CXX" >&6; }
20484 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20486 with_gnu_ld_CXX
=$with_gnu_ld
20494 # Do we need to explicitly link libc?
20496 case "x$archive_cmds_need_lc_CXX" in
20498 # Assume -lc should be added
20499 archive_cmds_need_lc_CXX
=yes
20501 if test "$enable_shared" = yes && test "$GCC" = yes; then
20502 case $archive_cmds_CXX in
20504 # FIXME: we may have to deal with multi-command sequences.
20507 # Test whether the compiler implicitly links with -lc since on some
20508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20509 # to ld, don't add -lc before -lgcc.
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20512 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20513 $as_echo_n "(cached) " >&6
20516 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20519 (eval $ac_compile) 2>&5
20521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20522 test $ac_status = 0; } 2>conftest.err
; then
20525 libobjs
=conftest.
$ac_objext
20527 wl
=$lt_prog_compiler_wl_CXX
20528 pic_flag
=$lt_prog_compiler_pic_CXX
20534 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20535 allow_undefined_flag_CXX
=
20536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20537 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20540 test $ac_status = 0; }
20542 lt_cv_archive_cmds_need_lc_CXX
=no
20544 lt_cv_archive_cmds_need_lc_CXX
=yes
20546 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20548 cat conftest.err
1>&5
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20554 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20555 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20626 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20628 library_names_spec
=
20629 libname_spec
='lib$name'
20633 postuninstall_cmds
=
20637 shlibpath_overrides_runpath
=unknown
20639 dynamic_linker
="$host_os ld.so"
20640 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20641 need_lib_prefix
=unknown
20642 hardcode_into_libs
=no
20644 # when you set need_version to no, make sure it does not cause -set_version
20645 # flags to be left without arguments
20646 need_version
=unknown
20651 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20652 shlibpath_var
=LIBPATH
20654 # AIX 3 has no versioning support, so we append a major version to the name.
20655 soname_spec
='${libname}${release}${shared_ext}$major'
20662 hardcode_into_libs
=yes
20663 if test "$host_cpu" = ia64
; then
20664 # AIX 5 supports IA64
20665 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20666 shlibpath_var
=LD_LIBRARY_PATH
20668 # With GCC up to 2.95.x, collect2 would create an import file
20669 # for dependence libraries. The import file would start with
20670 # the line `#! .'. This would cause the generated library to
20671 # depend on `.', always an invalid library. This was fixed in
20672 # development snapshots of GCC prior to 3.0.
20674 aix4 | aix4.
[01] | aix4.
[01].
*)
20675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20677 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20680 can_build_shared
=no
20684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20685 # soname into executable. Probably we can add versioning support to
20686 # collect2, so additional links can be useful in future.
20687 if test "$aix_use_runtimelinking" = yes; then
20688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20689 # instead of lib<name>.a to let people know that these are not
20690 # typical AIX shared libraries.
20691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 # We preserve .a as extension for shared libraries through AIX4.2
20694 # and later when we are not doing run time linking.
20695 library_names_spec
='${libname}${release}.a $libname.a'
20696 soname_spec
='${libname}${release}${shared_ext}$major'
20698 shlibpath_var
=LIBPATH
20705 # Since July 2007 AmigaOS4 officially supports .so libraries.
20706 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20707 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710 library_names_spec
='$libname.ixlibrary $libname.a'
20711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20712 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'
20718 library_names_spec
='${libname}${shared_ext}'
20719 dynamic_linker
="$host_os ld.so"
20720 shlibpath_var
=LIBRARY_PATH
20726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20727 soname_spec
='${libname}${release}${shared_ext}$major'
20728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20729 shlibpath_var
=LD_LIBRARY_PATH
20730 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20731 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20732 # the default ld.so.conf also contains /usr/contrib/lib and
20733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20734 # libtool to hard-code these into programs
20737 cygwin
* | mingw
* | pw32
* | cegcc
*)
20738 version_type
=windows
20743 case $GCC,$host_os in
20744 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20745 library_names_spec
='$libname.dll.a'
20746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20747 postinstall_cmds
='base_file=`basename \${file}`~
20748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20749 dldir=$destdir/`dirname \$dlpath`~
20750 test -d \$dldir || mkdir -p \$dldir~
20751 $install_prog $dir/$dlname \$dldir/$dlname~
20752 chmod a+x \$dldir/$dlname~
20753 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20754 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20756 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20757 dlpath=$dir/\$dldll~
20759 shlibpath_overrides_runpath
=yes
20763 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20764 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20768 # MinGW DLLs use traditional 'lib' prefix
20769 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20772 # pw32 DLLs use 'pw' prefix rather than 'lib'
20773 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20779 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20782 dynamic_linker
='Win32 ld.exe'
20783 # FIXME: first we should search . and the directory the executable is in
20787 darwin
* | rhapsody
*)
20788 dynamic_linker
="$host_os dyld"
20789 version_type
=darwin
20792 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20793 soname_spec
='${libname}${release}${major}$shared_ext'
20794 shlibpath_overrides_runpath
=yes
20795 shlibpath_var
=DYLD_LIBRARY_PATH
20796 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20798 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20806 soname_spec
='${libname}${release}${shared_ext}$major'
20807 shlibpath_var
=LD_LIBRARY_PATH
20810 freebsd
* | dragonfly
*)
20811 # DragonFly does not have aout. When/if they implement a new
20812 # versioning mechanism, adjust this.
20813 if test -x /usr
/bin
/objformat
; then
20814 objformat
=`/usr/bin/objformat`
20817 freebsd
[23].
*) objformat
=aout
;;
20818 *) objformat
=elf
;;
20821 version_type
=freebsd-
$objformat
20822 case $version_type in
20824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20829 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20833 shlibpath_var
=LD_LIBRARY_PATH
20836 shlibpath_overrides_runpath
=yes
20838 freebsd3.
[01]* | freebsdelf3.
[01]*)
20839 shlibpath_overrides_runpath
=yes
20840 hardcode_into_libs
=yes
20842 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20843 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20844 shlibpath_overrides_runpath
=no
20845 hardcode_into_libs
=yes
20847 *) # from 4.6 on, and DragonFly
20848 shlibpath_overrides_runpath
=yes
20849 hardcode_into_libs
=yes
20858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20859 soname_spec
='${libname}${release}${shared_ext}$major'
20860 shlibpath_var
=LD_LIBRARY_PATH
20861 hardcode_into_libs
=yes
20868 dynamic_linker
="$host_os runtime_loader"
20869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20870 soname_spec
='${libname}${release}${shared_ext}$major'
20871 shlibpath_var
=LIBRARY_PATH
20872 shlibpath_overrides_runpath
=yes
20873 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20874 hardcode_into_libs
=yes
20877 hpux9
* | hpux10
* | hpux11
*)
20878 # Give a soname corresponding to the major version so that dld.sl refuses to
20879 # link against other versions.
20886 hardcode_into_libs
=yes
20887 dynamic_linker
="$host_os dld.so"
20888 shlibpath_var
=LD_LIBRARY_PATH
20889 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20891 soname_spec
='${libname}${release}${shared_ext}$major'
20892 if test "X$HPUX_IA64_MODE" = X32
; then
20893 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20895 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20897 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20901 hardcode_into_libs
=yes
20902 dynamic_linker
="$host_os dld.sl"
20903 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20904 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 soname_spec
='${libname}${release}${shared_ext}$major'
20907 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20908 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20912 dynamic_linker
="$host_os dld.sl"
20913 shlibpath_var
=SHLIB_PATH
20914 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20916 soname_spec
='${libname}${release}${shared_ext}$major'
20919 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20920 postinstall_cmds
='chmod 555 $lib'
20921 # or fails outright, so override atomically:
20922 install_override_mode
=555
20929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20930 soname_spec
='${libname}${release}${shared_ext}$major'
20931 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20932 shlibpath_var
=LD_LIBRARY_PATH
20933 shlibpath_overrides_runpath
=no
20934 hardcode_into_libs
=yes
20937 irix5
* | irix6
* | nonstopux
*)
20939 nonstopux
*) version_type
=nonstopux
;;
20941 if test "$lt_cv_prog_gnu_ld" = yes; then
20949 soname_spec
='${libname}${release}${shared_ext}$major'
20950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20952 irix5
* | nonstopux
*)
20953 libsuff
= shlibsuff
=
20956 case $LD in # libtool.m4 will add one of these switches to LD
20957 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20958 libsuff
= shlibsuff
= libmagic
=32-bit;;
20959 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20960 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20961 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20962 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20963 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20967 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20968 shlibpath_overrides_runpath
=no
20969 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20970 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20971 hardcode_into_libs
=yes
20974 # No shared lib support for Linux oldld, aout, or coff.
20975 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20979 # This must be Linux ELF.
20980 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20985 soname_spec
='${libname}${release}${shared_ext}$major'
20986 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20987 shlibpath_var
=LD_LIBRARY_PATH
20988 shlibpath_overrides_runpath
=no
20990 # Some binutils ld are patched to set DT_RUNPATH
20991 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20992 $as_echo_n "(cached) " >&6
20994 lt_cv_shlibpath_overrides_runpath
=no
20995 save_LDFLAGS
=$LDFLAGS
20996 save_libdir
=$libdir
20997 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20998 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21000 /* end confdefs.h. */
21010 if ac_fn_cxx_try_link
"$LINENO"; then :
21011 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21012 lt_cv_shlibpath_overrides_runpath
=yes
21015 rm -f core conftest.err conftest.
$ac_objext \
21016 conftest
$ac_exeext conftest.
$ac_ext
21017 LDFLAGS
=$save_LDFLAGS
21018 libdir
=$save_libdir
21022 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21024 # This implies no fast_install, which is unacceptable.
21025 # Some rework will be needed to allow for fast_install
21026 # before this can be enabled.
21027 hardcode_into_libs
=yes
21029 # Append ld.so.conf contents to the search path
21030 if test -f /etc
/ld.so.conf
; then
21031 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' ' '`
21032 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21035 # We used to test for /lib/ld.so.1 and disable shared libraries on
21036 # powerpc, because MkLinux only supported shared libraries with the
21037 # GNU dynamic linker. Since this was broken with cross compilers,
21038 # most powerpc-linux boxes support dynamic linking these days and
21039 # people can always --disable-shared, the test was removed, and we
21040 # assume the GNU/Linux dynamic linker is in use.
21041 dynamic_linker
='GNU/Linux ld.so'
21048 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21050 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21051 dynamic_linker
='NetBSD (a.out) ld.so'
21053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21054 soname_spec
='${libname}${release}${shared_ext}$major'
21055 dynamic_linker
='NetBSD ld.elf_so'
21057 shlibpath_var
=LD_LIBRARY_PATH
21058 shlibpath_overrides_runpath
=yes
21059 hardcode_into_libs
=yes
21064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 shlibpath_var
=LD_LIBRARY_PATH
21066 shlibpath_overrides_runpath
=yes
21073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21074 soname_spec
='${libname}${release}${shared_ext}$major'
21075 shlibpath_var
=LD_LIBRARY_PATH
21076 shlibpath_overrides_runpath
=no
21077 hardcode_into_libs
=yes
21078 dynamic_linker
='ldqnx.so'
21083 sys_lib_dlsearch_path_spec
="/usr/lib"
21085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21087 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21088 *) need_version
=no
;;
21090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21091 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21092 shlibpath_var
=LD_LIBRARY_PATH
21093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21095 openbsd2.
[89] | openbsd2.
[89].
*)
21096 shlibpath_overrides_runpath
=no
21099 shlibpath_overrides_runpath
=yes
21103 shlibpath_overrides_runpath
=yes
21108 libname_spec
='$name'
21111 library_names_spec
='$libname${shared_ext} $libname.a'
21112 dynamic_linker
='OS/2 ld.exe'
21113 shlibpath_var
=LIBPATH
21116 osf3
* | osf4
* | osf5
*)
21120 soname_spec
='${libname}${release}${shared_ext}$major'
21121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21122 shlibpath_var
=LD_LIBRARY_PATH
21123 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21124 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21136 soname_spec
='${libname}${release}${shared_ext}$major'
21137 shlibpath_var
=LD_LIBRARY_PATH
21138 shlibpath_overrides_runpath
=yes
21139 hardcode_into_libs
=yes
21140 # ldd complains unless libraries are executable
21141 postinstall_cmds
='chmod +x $lib'
21146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21147 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21148 shlibpath_var
=LD_LIBRARY_PATH
21149 shlibpath_overrides_runpath
=yes
21150 if test "$with_gnu_ld" = yes; then
21158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21159 soname_spec
='${libname}${release}${shared_ext}$major'
21160 shlibpath_var
=LD_LIBRARY_PATH
21161 case $host_vendor in
21163 shlibpath_overrides_runpath
=no
21165 runpath_var
=LD_RUN_PATH
21173 shlibpath_overrides_runpath
=no
21174 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21180 if test -d /usr
/nec
;then
21182 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21183 soname_spec
='$libname${shared_ext}.$major'
21184 shlibpath_var
=LD_LIBRARY_PATH
21188 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21189 version_type
=freebsd-elf
21192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21193 soname_spec
='${libname}${release}${shared_ext}$major'
21194 shlibpath_var
=LD_LIBRARY_PATH
21195 shlibpath_overrides_runpath
=yes
21196 hardcode_into_libs
=yes
21197 if test "$with_gnu_ld" = yes; then
21198 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21200 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21203 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21207 sys_lib_dlsearch_path_spec
='/usr/lib'
21211 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 shlibpath_var
=LD_LIBRARY_PATH
21217 shlibpath_overrides_runpath
=no
21218 hardcode_into_libs
=yes
21223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21224 soname_spec
='${libname}${release}${shared_ext}$major'
21225 shlibpath_var
=LD_LIBRARY_PATH
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21233 $as_echo "$dynamic_linker" >&6; }
21234 test "$dynamic_linker" = no
&& can_build_shared
=no
21236 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21237 if test "$GCC" = yes; then
21238 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21242 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21244 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21245 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21286 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21287 hardcode_action_CXX
=
21288 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21289 test -n "$runpath_var_CXX" ||
21290 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21292 # We can hardcode non-existent directories.
21293 if test "$hardcode_direct_CXX" != no
&&
21294 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21295 # have to relink, otherwise we might link with an installed library
21296 # when we should be linking with a yet-to-be-installed one
21297 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21298 test "$hardcode_minus_L_CXX" != no
; then
21299 # Linking always hardcodes the temporary library directory.
21300 hardcode_action_CXX
=relink
21302 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21303 hardcode_action_CXX
=immediate
21306 # We cannot hardcode anything, or else we can only hardcode existing
21308 hardcode_action_CXX
=unsupported
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21311 $as_echo "$hardcode_action_CXX" >&6; }
21313 if test "$hardcode_action_CXX" = relink ||
21314 test "$inherit_rpath_CXX" = yes; then
21315 # Fast installation is not supported
21316 enable_fast_install
=no
21317 elif test "$shlibpath_overrides_runpath" = yes ||
21318 test "$enable_shared" = no
; then
21319 # Fast installation is not necessary
21320 enable_fast_install
=needless
21329 fi # test -n "$compiler"
21335 with_gnu_ld
=$lt_save_with_gnu_ld
21336 lt_cv_path_LDCXX
=$lt_cv_path_LD
21337 lt_cv_path_LD
=$lt_save_path_LD
21338 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21339 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21340 fi # test "$_lt_caught_CXX_error" != yes
21343 ac_cpp
='$CPP $CPPFLAGS'
21344 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21345 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21346 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21363 # Only expand once:
21369 # Identify the assembler which will work hand-in-glove with the newly
21370 # built GCC, so that we can examine its features. This is the assembler
21371 # which will be driven by the driver program.
21373 # If build != host, and we aren't building gas in-tree, we identify a
21374 # build->target assembler and hope that it will have the same features
21375 # as the host->target assembler we'll be using.
21376 gcc_cv_gas_major_version
=
21377 gcc_cv_gas_minor_version
=
21378 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21380 if test "${gcc_cv_as+set}" = set; then :
21384 if test -x "$DEFAULT_ASSEMBLER"; then
21385 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21386 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21387 && test -f ..
/gas
/Makefile \
21388 && test x
$build = x
$host; then
21389 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21390 elif test -x as
$build_exeext; then
21391 # Build using assembler in the current directory.
21392 gcc_cv_as
=.
/as
$build_exeext
21393 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21394 gcc_cv_as
="$AS_FOR_TARGET"
21396 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21397 set dummy
$AS_FOR_TARGET; ac_word
=$2
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21399 $as_echo_n "checking for $ac_word... " >&6; }
21400 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21401 $as_echo_n "(cached) " >&6
21405 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21409 for as_dir
in $PATH
21412 test -z "$as_dir" && as_dir
=.
21413 for ac_exec_ext
in '' $ac_executable_extensions; do
21414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21415 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21426 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21427 if test -n "$gcc_cv_as"; then
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21429 $as_echo "$gcc_cv_as" >&6; }
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21432 $as_echo "no" >&6; }
21439 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21441 case "$ORIGINAL_AS_FOR_TARGET" in
21442 .
/as | .
/as
$build_exeext) ;;
21443 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21448 $as_echo_n "checking what assembler to use... " >&6; }
21449 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21450 # Single tree build which includes gas. We want to prefer it
21451 # over whatever linker top-level may have detected, since
21452 # we'll use what we're building after installation anyway.
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21454 $as_echo "newly built gas" >&6; }
21456 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21457 for f
in $gcc_cv_as_bfd_srcdir/configure \
21458 $gcc_cv_as_gas_srcdir/configure \
21459 $gcc_cv_as_gas_srcdir/configure.
in \
21460 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21461 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21462 if test x
$gcc_cv_gas_version != x
; then
21466 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21467 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21468 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21469 case $gcc_cv_gas_patch_version in
21470 "") gcc_cv_gas_patch_version
="0" ;;
21472 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21473 + $gcc_cv_gas_minor_version \) \* 1000 \
21474 + $gcc_cv_gas_patch_version`
21476 in_tree_gas_is_elf
=no
21477 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21478 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21479 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21481 in_tree_gas_is_elf
=yes
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21485 $as_echo "$gcc_cv_as" >&6; }
21489 # Identify the linker which will work hand-in-glove with the newly
21490 # built GCC, so that we can examine its features. This is the linker
21491 # which will be driven by the driver program.
21493 # If build != host, and we aren't building gas in-tree, we identify a
21494 # build->target linker and hope that it will have the same features
21495 # as the host->target linker we'll be using.
21496 gcc_cv_gld_major_version
=
21497 gcc_cv_gld_minor_version
=
21498 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21499 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21501 if test "${gcc_cv_ld+set}" = set; then :
21505 if test -x "$DEFAULT_LINKER"; then
21506 gcc_cv_ld
="$DEFAULT_LINKER"
21507 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21508 && test -f ..
/ld
/Makefile \
21509 && test x
$build = x
$host; then
21510 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21511 elif test -x collect-ld
$build_exeext; then
21512 # Build using linker in the current directory.
21513 gcc_cv_ld
=.
/collect-ld
$build_exeext
21514 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21515 gcc_cv_ld
="$LD_FOR_TARGET"
21517 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21518 set dummy
$LD_FOR_TARGET; ac_word
=$2
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21520 $as_echo_n "checking for $ac_word... " >&6; }
21521 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21522 $as_echo_n "(cached) " >&6
21526 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21530 for as_dir
in $PATH
21533 test -z "$as_dir" && as_dir
=.
21534 for ac_exec_ext
in '' $ac_executable_extensions; do
21535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21536 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21547 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21548 if test -n "$gcc_cv_ld"; then
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21550 $as_echo "$gcc_cv_ld" >&6; }
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21553 $as_echo "no" >&6; }
21560 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21561 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21563 # Check whether --with-plugin-ld was given.
21564 if test "${with_plugin_ld+set}" = set; then :
21565 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21566 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21567 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21573 cat >>confdefs.h
<<_ACEOF
21574 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21578 # Check to see if we are using gold instead of ld
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21580 $as_echo_n "checking whether we are using gold... " >&6; }
21582 if test x
$gcc_cv_ld != x
; then
21583 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21584 |
grep "GNU gold" > /dev
/null
; then
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21589 $as_echo "$ld_is_gold" >&6; }
21591 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21593 case "$ORIGINAL_LD_FOR_TARGET" in
21594 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21595 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21600 $as_echo_n "checking what linker to use... " >&6; }
21601 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21602 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21603 # Single tree build which includes ld. We want to prefer it
21604 # over whatever linker top-level may have detected, since
21605 # we'll use what we're building after installation anyway.
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21607 $as_echo "newly built ld" >&6; }
21609 in_tree_ld_is_elf
=no
21610 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21611 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21612 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21613 in_tree_ld_is_elf
=yes
21614 elif test "$ld_is_gold" = yes; then
21615 in_tree_ld_is_elf
=yes
21617 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
21619 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21620 if test x
$gcc_cv_gld_version != x
; then
21624 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21625 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21628 $as_echo "$gcc_cv_ld" >&6; }
21632 # Figure out what nm we will be using.
21633 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21634 if test "${gcc_cv_nm+set}" = set; then :
21638 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21639 && test -f ..
/binutils
/Makefile \
21640 && test x
$build = x
$host; then
21641 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21642 elif test -x nm
$build_exeext; then
21643 gcc_cv_nm
=.
/nm
$build_exeext
21644 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21645 gcc_cv_nm
="$NM_FOR_TARGET"
21647 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21648 set dummy
$NM_FOR_TARGET; ac_word
=$2
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21650 $as_echo_n "checking for $ac_word... " >&6; }
21651 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21656 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21660 for as_dir
in $PATH
21663 test -z "$as_dir" && as_dir
=.
21664 for ac_exec_ext
in '' $ac_executable_extensions; do
21665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21666 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21677 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21678 if test -n "$gcc_cv_nm"; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21680 $as_echo "$gcc_cv_nm" >&6; }
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21691 $as_echo_n "checking what nm to use... " >&6; }
21692 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21693 # Single tree build which includes binutils.
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21695 $as_echo "newly built nm" >&6; }
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21699 $as_echo "$gcc_cv_nm" >&6; }
21703 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21705 case "$ORIGINAL_NM_FOR_TARGET" in
21706 .
/nm | .
/nm
$build_exeext) ;;
21707 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21712 # Figure out what objdump we will be using.
21713 if test "${gcc_cv_objdump+set}" = set; then :
21717 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21718 && test -f ..
/binutils
/Makefile \
21719 && test x
$build = x
$host; then
21720 # Single tree build which includes binutils.
21721 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21722 elif test -x objdump
$build_exeext; then
21723 gcc_cv_objdump
=.
/objdump
$build_exeext
21724 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21725 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21727 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21728 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21730 $as_echo_n "checking for $ac_word... " >&6; }
21731 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21732 $as_echo_n "(cached) " >&6
21734 case $gcc_cv_objdump in
21736 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21740 for as_dir
in $PATH
21743 test -z "$as_dir" && as_dir
=.
21744 for ac_exec_ext
in '' $ac_executable_extensions; do
21745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21746 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21757 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21758 if test -n "$gcc_cv_objdump"; then
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21760 $as_echo "$gcc_cv_objdump" >&6; }
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763 $as_echo "no" >&6; }
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21771 $as_echo_n "checking what objdump to use... " >&6; }
21772 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21773 # Single tree build which includes binutils.
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21775 $as_echo "newly built objdump" >&6; }
21776 elif test x
$gcc_cv_objdump = x
; then
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21778 $as_echo "not found" >&6; }
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21781 $as_echo "$gcc_cv_objdump" >&6; }
21784 # Figure out what readelf we will be using.
21785 if test "${gcc_cv_readelf+set}" = set; then :
21789 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21790 && test -f ..
/binutils
/Makefile \
21791 && test x
$build = x
$host; then
21792 # Single tree build which includes binutils.
21793 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21794 elif test -x readelf
$build_exeext; then
21795 gcc_cv_readelf
=.
/readelf
$build_exeext
21797 # Extract the first word of "readelf", so it can be a program name with args.
21798 set dummy readelf
; ac_word
=$2
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21800 $as_echo_n "checking for $ac_word... " >&6; }
21801 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21802 $as_echo_n "(cached) " >&6
21804 case $gcc_cv_readelf in
21806 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21810 for as_dir
in $PATH
21813 test -z "$as_dir" && as_dir
=.
21814 for ac_exec_ext
in '' $ac_executable_extensions; do
21815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21816 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21827 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21828 if test -n "$gcc_cv_readelf"; then
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21830 $as_echo "$gcc_cv_readelf" >&6; }
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21833 $as_echo "no" >&6; }
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21841 $as_echo_n "checking what readelf to use... " >&6; }
21842 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21843 # Single tree build which includes binutils.
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21845 $as_echo "newly built readelf" >&6; }
21846 elif test x
$gcc_cv_readelf = x
; then
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21848 $as_echo "not found" >&6; }
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21851 $as_echo "$gcc_cv_readelf" >&6; }
21854 # Figure out what assembler alignment features are present.
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21856 $as_echo_n "checking assembler flags... " >&6; }
21857 if test "${gcc_cv_as_flags+set}" = set; then :
21858 $as_echo_n "(cached) " >&6
21861 i
[34567]86-*-linux*)
21862 gcc_cv_as_flags
="--32"
21864 powerpc
*-*-darwin*)
21865 gcc_cv_as_flags
="-arch ppc"
21868 gcc_cv_as_flags
=" "
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21873 $as_echo "$gcc_cv_as_flags" >&6; }
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21876 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21877 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21878 $as_echo_n "(cached) " >&6
21880 gcc_cv_as_balign_and_p2align
=no
21881 if test $in_tree_gas = yes; then
21882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21883 then gcc_cv_as_balign_and_p2align
=yes
21885 elif test x
$gcc_cv_as != x
; then
21886 $as_echo '.balign 4
21887 .p2align 2' > conftest.s
21888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21895 gcc_cv_as_balign_and_p2align
=yes
21897 echo "configure: failed program was" >&5
21900 rm -f conftest.o conftest.s
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21904 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21905 if test $gcc_cv_as_balign_and_p2align = yes; then
21907 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21912 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21913 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21916 gcc_cv_as_max_skip_p2align
=no
21917 if test $in_tree_gas = yes; then
21918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21919 then gcc_cv_as_max_skip_p2align
=yes
21921 elif test x
$gcc_cv_as != x
; then
21922 $as_echo '.p2align 4,,7' > conftest.s
21923 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21925 (eval $ac_try) 2>&5
21927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21928 test $ac_status = 0; }; }
21930 gcc_cv_as_max_skip_p2align
=yes
21932 echo "configure: failed program was" >&5
21935 rm -f conftest.o conftest.s
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21939 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21940 if test $gcc_cv_as_max_skip_p2align = yes; then
21942 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21947 $as_echo_n "checking assembler for .literal16... " >&6; }
21948 if test "${gcc_cv_as_literal16+set}" = set; then :
21949 $as_echo_n "(cached) " >&6
21951 gcc_cv_as_literal16
=no
21952 if test $in_tree_gas = yes; then
21953 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21954 then gcc_cv_as_literal16
=yes
21956 elif test x
$gcc_cv_as != x
; then
21957 $as_echo '.literal16' > conftest.s
21958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21960 (eval $ac_try) 2>&5
21962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21963 test $ac_status = 0; }; }
21965 gcc_cv_as_literal16
=yes
21967 echo "configure: failed program was" >&5
21970 rm -f conftest.o conftest.s
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21974 $as_echo "$gcc_cv_as_literal16" >&6; }
21975 if test $gcc_cv_as_literal16 = yes; then
21977 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21982 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21983 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21986 gcc_cv_as_subsection_m1
=no
21987 if test $in_tree_gas = yes; then
21988 if test $in_tree_gas_is_elf = yes \
21989 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21990 then gcc_cv_as_subsection_m1
=yes
21992 elif test x
$gcc_cv_as != x
; then
21993 $as_echo 'conftest_label1: .word 0
21995 conftest_label2: .word 0
21996 .previous' > conftest.s
21997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999 (eval $ac_try) 2>&5
22001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002 test $ac_status = 0; }; }
22004 if test x
$gcc_cv_nm != x
; then
22005 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22006 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22007 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22009 else gcc_cv_as_subsection_m1
=yes
22011 rm -f conftest.nm1 conftest.nm2
22014 echo "configure: failed program was" >&5
22017 rm -f conftest.o conftest.s
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22021 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22022 if test $gcc_cv_as_subsection_m1 = yes; then
22024 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22029 $as_echo_n "checking assembler for .weak... " >&6; }
22030 if test "${gcc_cv_as_weak+set}" = set; then :
22031 $as_echo_n "(cached) " >&6
22034 if test $in_tree_gas = yes; then
22035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22036 then gcc_cv_as_weak
=yes
22038 elif test x
$gcc_cv_as != x
; then
22039 $as_echo ' .weak foobar' > conftest.s
22040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22042 (eval $ac_try) 2>&5
22044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22045 test $ac_status = 0; }; }
22049 echo "configure: failed program was" >&5
22052 rm -f conftest.o conftest.s
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22056 $as_echo "$gcc_cv_as_weak" >&6; }
22057 if test $gcc_cv_as_weak = yes; then
22059 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22064 $as_echo_n "checking assembler for .weakref... " >&6; }
22065 if test "${gcc_cv_as_weakref+set}" = set; then :
22066 $as_echo_n "(cached) " >&6
22068 gcc_cv_as_weakref
=no
22069 if test $in_tree_gas = yes; then
22070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22071 then gcc_cv_as_weakref
=yes
22073 elif test x
$gcc_cv_as != x
; then
22074 $as_echo ' .weakref foobar, barfnot' > conftest.s
22075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22077 (eval $ac_try) 2>&5
22079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080 test $ac_status = 0; }; }
22082 gcc_cv_as_weakref
=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_weakref" >&5
22091 $as_echo "$gcc_cv_as_weakref" >&6; }
22092 if test $gcc_cv_as_weakref = yes; then
22094 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22099 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22100 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22101 $as_echo_n "(cached) " >&6
22103 gcc_cv_as_nsubspa_comdat
=no
22104 if test $in_tree_gas = yes; then
22105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22106 then gcc_cv_as_nsubspa_comdat
=yes
22108 elif test x
$gcc_cv_as != x
; then
22109 $as_echo ' .SPACE $TEXT$
22110 .NSUBSPA $CODE$,COMDAT' > conftest.s
22111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22113 (eval $ac_try) 2>&5
22115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22116 test $ac_status = 0; }; }
22118 gcc_cv_as_nsubspa_comdat
=yes
22120 echo "configure: failed program was" >&5
22123 rm -f conftest.o conftest.s
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22127 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22128 if test $gcc_cv_as_nsubspa_comdat = yes; then
22130 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22134 # .hidden needs to be supported in both the assembler and the linker,
22135 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22136 # This is irritatingly difficult to feature test for; we have to check the
22137 # date string after the version number. If we've got an in-tree
22138 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22140 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22142 $as_echo_n "checking assembler for .hidden... " >&6; }
22143 if test "${gcc_cv_as_hidden+set}" = set; then :
22144 $as_echo_n "(cached) " >&6
22146 gcc_cv_as_hidden
=no
22147 if test $in_tree_gas = yes; then
22148 if test $in_tree_gas_is_elf = yes \
22149 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22150 then gcc_cv_as_hidden
=yes
22152 elif test x
$gcc_cv_as != x
; then
22153 $as_echo ' .hidden foobar
22154 foobar:' > conftest.s
22155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22157 (eval $ac_try) 2>&5
22159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22160 test $ac_status = 0; }; }
22163 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22164 # STV_HIDDEN, so disable .hidden support if so.
22165 case "${target}" in
22166 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22167 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22168 cat > conftest.s
<<EOF
22173 .set default,hidden
22175 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22176 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22177 grep '\.hidden default' > /dev
/null
; then
22178 gcc_cv_as_hidden
=no
22180 gcc_cv_as_hidden
=yes
22183 # Assume bug is present if objdump is missing.
22184 gcc_cv_as_hidden
=no
22188 gcc_cv_as_hidden
=yes
22192 echo "configure: failed program was" >&5
22195 rm -f conftest.o conftest.s
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22199 $as_echo "$gcc_cv_as_hidden" >&6; }
22201 case "${target}" in
22203 # Darwin as has some visibility support, though with a different syntax.
22204 gcc_cv_as_hidden
=yes
22208 # gnu_indirect_function type is an extension proposed at
22209 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22210 # selection of function implementation
22211 # Check whether --enable-gnu-indirect-function was given.
22212 if test "${enable_gnu_indirect_function+set}" = set; then :
22213 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22215 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22216 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22219 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22222 if test x
$enable_gnu_indirect_function = xyes
; then
22224 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22228 if test $in_tree_ld != yes ; then
22229 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22230 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22231 if test x
"$ld_is_gold" = xyes
; then
22232 # GNU gold --version looks like this:
22234 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22236 # We extract the binutils version which is more familiar and specific
22237 # than the gold version.
22238 ld_vers
=`echo $ld_ver | sed -n \
22239 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22241 # GNU ld --version looks like this:
22243 # GNU ld (GNU Binutils) 2.21.51.20110225
22244 ld_vers
=`echo $ld_ver | sed -n \
22245 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22247 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'`
22248 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22249 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22250 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22252 case "${target}" in
22254 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22257 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22258 # /usr/ccs/bin/ld has been configured.
22259 ld_ver
=`$gcc_cv_ld -V 2>&1`
22260 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22261 ld_vers
=`echo $ld_ver | sed -n \
22262 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22263 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22264 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22272 $as_echo_n "checking linker for .hidden support... " >&6; }
22273 if test "${gcc_cv_ld_hidden+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22276 if test $in_tree_ld = yes ; then
22277 gcc_cv_ld_hidden
=no
22278 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 \
22279 && test $in_tree_ld_is_elf = yes; then
22280 gcc_cv_ld_hidden
=yes
22283 gcc_cv_ld_hidden
=yes
22284 if test x
"$ld_is_gold" = xyes
; then
22286 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22287 if test 0"$ld_date" -lt 20020404; then
22288 if test -n "$ld_date"; then
22289 # If there was date string, but was earlier than 2002-04-04, fail
22290 gcc_cv_ld_hidden
=no
22291 elif test -z "$ld_vers"; then
22292 # If there was no date string nor ld version number, something is wrong
22293 gcc_cv_ld_hidden
=no
22295 test -z "$ld_vers_patch" && ld_vers_patch
=0
22296 if test "$ld_vers_major" -lt 2; then
22297 gcc_cv_ld_hidden
=no
22298 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22299 gcc_cv_ld_hidden
="no"
22300 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22301 gcc_cv_ld_hidden
=no
22306 case "${target}" in
22308 # Darwin ld has some visibility support.
22309 gcc_cv_ld_hidden
=yes
22311 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22312 gcc_cv_ld_hidden
=yes
22314 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22315 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22316 # .symbolic was only added in Solaris 9 12/02.
22317 gcc_cv_ld_hidden
=yes
22320 gcc_cv_ld_hidden
=no
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22327 $as_echo "$gcc_cv_ld_hidden" >&6; }
22328 libgcc_visibility
=no
22331 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22332 libgcc_visibility
=yes
22334 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22339 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22340 gcc_cv_ld_ro_rw_mix
=unknown
22341 if test $in_tree_ld = yes ; then
22342 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 \
22343 && test $in_tree_ld_is_elf = yes; then
22344 gcc_cv_ld_ro_rw_mix
=read-write
22346 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22347 echo '.section myfoosect, "a"' > conftest1.s
22348 echo '.section myfoosect, "aw"' > conftest2.s
22349 echo '.byte 1' >> conftest2.s
22350 echo '.section myfoosect, "a"' > conftest3.s
22351 echo '.byte 0' >> conftest3.s
22352 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22353 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22354 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22355 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22356 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22357 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22358 | sed -e '/myfoosect/!d' -e N`
22359 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22360 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22361 gcc_cv_ld_ro_rw_mix
=read-only
22363 gcc_cv_ld_ro_rw_mix
=read-write
22367 rm -f conftest.
* conftest
[123].
*
22369 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22371 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22375 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22377 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22378 case "${target}" in
22381 # Solaris 2 ld -V output looks like this for a regular version:
22383 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22385 # but test versions add stuff at the end:
22387 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22389 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22390 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22391 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22392 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22393 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22394 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22400 # Check whether --enable-initfini-array was given.
22401 if test "${enable_initfini_array+set}" = set; then :
22402 enableval
=$enable_initfini_array;
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22406 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22407 if test "${gcc_cv_initfini_array+set}" = set; then :
22408 $as_echo_n "(cached) " >&6
22410 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22411 case "${target}" in
22413 if test "$cross_compiling" = yes; then :
22414 gcc_cv_initfini_array
=no
22416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22420 #error Not an ELF OS
22422 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22423 if it can be used. */
22425 int main (void) { return x; }
22426 int foo (void) { x = 0; }
22427 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22430 if ac_fn_c_try_run
"$LINENO"; then :
22431 gcc_cv_initfini_array
=yes
22433 gcc_cv_initfini_array
=no
22435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22436 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22440 gcc_cv_initfini_array
=no
22441 if test $in_tree_ld = yes ; then
22442 if test "$gcc_cv_gld_major_version" -eq 2 \
22443 -a "$gcc_cv_gld_minor_version" -ge 22 \
22444 -o "$gcc_cv_gld_major_version" -gt 2 \
22445 && test $in_tree_ld_is_elf = yes; then
22446 gcc_cv_initfini_array
=yes
22448 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22449 cat > conftest.s
<<\EOF
22450 .section .dtors
,"a",%progbits
22452 .byte
'A', 'A', 'A', 'A'
22453 .section .ctors
,"a",%progbits
22455 .byte
'B', 'B', 'B', 'B'
22456 .section .fini_array
.65530,"a",%progbits
22458 .byte
'C', 'C', 'C', 'C'
22459 .section .init_array
.65530,"a",%progbits
22461 .byte
'D', 'D', 'D', 'D'
22462 .section .dtors
.64528,"a",%progbits
22464 .byte
'E', 'E', 'E', 'E'
22465 .section .ctors
.64528,"a",%progbits
22467 .byte
'F', 'F', 'F', 'F'
22468 .section .fini_array
.01005,"a",%progbits
22470 .byte
'G', 'G', 'G', 'G'
22471 .section .init_array
.01005,"a",%progbits
22473 .byte
'H', 'H', 'H', 'H'
22478 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22479 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22480 && $gcc_cv_objdump -s -j .init_array conftest \
22481 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22482 && $gcc_cv_objdump -s -j .fini_array conftest \
22483 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22484 gcc_cv_initfini_array
=yes
22486 rm -f conftest conftest.
*
22488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22492 # error Not an ELF OS
22494 #include <stdlib.h>
22495 #if defined __GLIBC_PREREQ
22496 # if __GLIBC_PREREQ (2, 4)
22498 # error GLIBC 2.4 required
22501 # if defined __sun__ && defined __svr4__
22502 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22504 # error The C library not known to support .init_array/.fini_array
22509 if ac_fn_c_try_cpp
"$LINENO"; then :
22512 gcc_cv_initfini_array
=no
22514 rm -f conftest.err conftest.
$ac_ext;;
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22518 $as_echo_n "checking cross compile... guessing... " >&6; }
22519 gcc_cv_initfini_array
=no
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22523 $as_echo "$gcc_cv_initfini_array" >&6; }
22524 enable_initfini_array
=$gcc_cv_initfini_array
22528 if test $enable_initfini_array = yes; then
22530 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22534 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22536 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22537 if test "${gcc_cv_as_leb128+set}" = set; then :
22538 $as_echo_n "(cached) " >&6
22540 gcc_cv_as_leb128
=no
22541 if test $in_tree_gas = yes; then
22542 if test $in_tree_gas_is_elf = yes \
22543 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22544 then gcc_cv_as_leb128
=yes
22546 elif test x
$gcc_cv_as != x
; then
22553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22555 (eval $ac_try) 2>&5
22557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22558 test $ac_status = 0; }; }
22560 # GAS versions before 2.11 do not support uleb128,
22561 # despite appearing to.
22562 # ??? There exists an elf-specific test that will crash
22563 # the assembler. Perhaps it's better to figure out whether
22564 # arbitrary sections are supported and try the test.
22565 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22566 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22567 as_vers
=`echo $as_ver | sed -n \
22568 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22569 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22570 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22571 if test $as_major -eq 2 && test $as_minor -lt 11
22573 else gcc_cv_as_leb128
=yes
22577 echo "configure: failed program was" >&5
22580 rm -f conftest.o conftest.s
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22584 $as_echo "$gcc_cv_as_leb128" >&6; }
22585 if test $gcc_cv_as_leb128 = yes; then
22587 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22591 # Check if we have assembler support for unwind directives.
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22593 $as_echo_n "checking assembler for cfi directives... " >&6; }
22594 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22597 gcc_cv_as_cfi_directive
=no
22598 if test x
$gcc_cv_as != x
; then
22604 .cfi_escape 1, 2, 3, 4, 5
22605 .cfi_endproc' > conftest.s
22606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22608 (eval $ac_try) 2>&5
22610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22611 test $ac_status = 0; }; }
22615 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22616 # read-only and read-write sections, we need to make sure that the
22617 # assembler used emits read-write .eh_frame sections.
22618 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22619 if test "x$gcc_cv_objdump" != x
; then
22620 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22621 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22622 gcc_cv_as_cfi_directive
=no
22625 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22626 # On Solaris/x86, make sure that GCC and gas agree on using
22627 # read-only .eh_frame sections for 64-bit.
22628 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22629 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22630 sed -e /.eh_frame
/!d
-e N | \
22631 grep READONLY
> /dev
/null
; then
22632 gcc_cv_as_cfi_directive
=yes
22634 gcc_cv_as_cfi_directive
=no
22638 gcc_cv_as_cfi_directive
=yes
22643 # no objdump, err on the side of caution
22644 gcc_cv_as_cfi_directive
=no
22647 gcc_cv_as_cfi_directive
=yes
22651 gcc_cv_as_cfi_directive
=yes
22655 echo "configure: failed program was" >&5
22658 rm -f conftest.o conftest.s
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22662 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22664 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22666 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22667 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22668 $as_echo_n "(cached) " >&6
22670 gcc_cv_as_cfi_advance_working
=no
22671 if test x
$gcc_cv_as != x
; then
22674 .cfi_adjust_cfa_offset 64
22676 .cfi_adjust_cfa_offset 128
22677 .cfi_endproc' > conftest.s
22678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }
22686 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22687 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22688 gcc_cv_as_cfi_advance_working
=yes
22692 echo "configure: failed program was" >&5
22695 rm -f conftest.o conftest.s
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22699 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22702 # no objdump, err on the side of caution
22703 gcc_cv_as_cfi_advance_working
=no
22707 cat >>confdefs.h
<<_ACEOF
22708 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22709 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22715 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22716 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22719 gcc_cv_as_cfi_personality_directive
=no
22720 if test x
$gcc_cv_as != x
; then
22723 .cfi_personality 0, symbol
22724 .cfi_endproc' > conftest.s
22725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22727 (eval $ac_try) 2>&5
22729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22730 test $ac_status = 0; }; }
22732 gcc_cv_as_cfi_personality_directive
=yes
22734 echo "configure: failed program was" >&5
22737 rm -f conftest.o conftest.s
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22741 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22744 cat >>confdefs.h
<<_ACEOF
22745 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22746 then echo 1; else echo 0; fi`
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22751 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22752 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22753 $as_echo_n "(cached) " >&6
22755 gcc_cv_as_cfi_sections_directive
=no
22756 if test x
$gcc_cv_as != x
; then
22758 .cfi_sections .debug_frame, .eh_frame
22760 .cfi_endproc' > conftest.s
22761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22763 (eval $ac_try) 2>&5
22765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22766 test $ac_status = 0; }; }
22769 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22770 # Need to check that we generated the correct relocation for the
22771 # .debug_frame section. This was fixed for binutils 2.21.
22772 gcc_cv_as_cfi_sections_directive
=no
22773 if test "x$gcc_cv_objdump" != x
; then
22774 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22775 grep secrel
> /dev
/null
; then
22776 gcc_cv_as_cfi_sections_directive
=yes
22781 gcc_cv_as_cfi_sections_directive
=yes
22785 echo "configure: failed program was" >&5
22788 rm -f conftest.o conftest.s
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22792 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22796 cat >>confdefs.h
<<_ACEOF
22797 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22798 then echo 1; else echo 0; fi`
22802 # GAS versions up to and including 2.11.0 may mis-optimize
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22805 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22806 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22807 $as_echo_n "(cached) " >&6
22809 gcc_cv_as_eh_frame
=no
22810 if test $in_tree_gas = yes; then
22811 if test $in_tree_gas_is_elf = yes \
22812 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22813 then gcc_cv_as_eh_frame
=yes
22815 elif test x
$gcc_cv_as != x
; then
22822 .section .eh_frame,"aw",@progbits
22824 .4byte .LECIE1-.LSCIE1
22838 .4byte .LEFDE1-.LASFDE1
22840 .4byte .LASFDE1-__FRAME_BEGIN__
22847 .LEFDE1:' > conftest.s
22848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 cat > conftest.lit
<<EOF
22856 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22857 0010 01000000 12000000 18000000 00000000 ................
22858 0020 08000000 04080000 0044 .........D
22860 cat > conftest.big
<<EOF
22861 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22862 0010 00000001 00000012 00000018 00000000 ................
22863 0020 00000008 04000000 0844 .........D
22865 # If the assembler didn't choke, and we can objdump,
22866 # and we got the correct data, then succeed.
22867 # The text in the here-document typically retains its unix-style line
22868 # endings, while the output of objdump will use host line endings.
22869 # Therefore, use diff -b for the comparisons.
22870 if test x
$gcc_cv_objdump != x \
22871 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22872 |
tail -3 > conftest.got \
22873 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22874 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22876 gcc_cv_as_eh_frame
=yes
22877 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22879 (eval $ac_try) 2>&5
22881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22882 test $ac_status = 0; }; }; then
22883 gcc_cv_as_eh_frame
=buggy
22885 # Uh oh, what do we do now?
22886 gcc_cv_as_eh_frame
=no
22889 echo "configure: failed program was" >&5
22892 rm -f conftest.o conftest.s
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22896 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22899 if test $gcc_cv_as_eh_frame = buggy
; then
22901 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22906 $as_echo_n "checking assembler for section merging support... " >&6; }
22907 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22908 $as_echo_n "(cached) " >&6
22910 gcc_cv_as_shf_merge
=no
22911 if test $in_tree_gas = yes; then
22912 if test $in_tree_gas_is_elf = yes \
22913 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22914 then gcc_cv_as_shf_merge
=yes
22916 elif test x
$gcc_cv_as != x
; then
22917 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }
22925 gcc_cv_as_shf_merge
=yes
22927 echo "configure: failed program was" >&5
22930 rm -f conftest.o conftest.s
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22934 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22936 if test $gcc_cv_as_shf_merge = no
; then
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22938 $as_echo_n "checking assembler for section merging support... " >&6; }
22939 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22940 $as_echo_n "(cached) " >&6
22942 gcc_cv_as_shf_merge
=no
22943 if test $in_tree_gas = yes; then
22944 if test $in_tree_gas_is_elf = yes \
22945 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22946 then gcc_cv_as_shf_merge
=yes
22948 elif test x
$gcc_cv_as != x
; then
22949 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22952 (eval $ac_try) 2>&5
22954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22955 test $ac_status = 0; }; }
22957 gcc_cv_as_shf_merge
=yes
22959 echo "configure: failed program was" >&5
22962 rm -f conftest.o conftest.s
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22966 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22970 cat >>confdefs.h
<<_ACEOF
22971 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22976 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22977 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22978 $as_echo_n "(cached) " >&6
22980 gcc_cv_as_comdat_group
=no
22981 if test $in_tree_gas = yes; then
22982 if test $in_tree_gas_is_elf = yes \
22983 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22984 then gcc_cv_as_comdat_group
=yes
22986 elif test x
$gcc_cv_as != x
; then
22987 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990 (eval $ac_try) 2>&5
22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993 test $ac_status = 0; }; }
22995 gcc_cv_as_comdat_group
=yes
22997 echo "configure: failed program was" >&5
23000 rm -f conftest.o conftest.s
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23004 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23006 if test $gcc_cv_as_comdat_group = yes; then
23007 gcc_cv_as_comdat_group_percent
=no
23008 gcc_cv_as_comdat_group_group
=no
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23011 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23012 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23015 gcc_cv_as_comdat_group_percent
=no
23016 if test $in_tree_gas = yes; then
23017 if test $in_tree_gas_is_elf = yes \
23018 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23019 then gcc_cv_as_comdat_group_percent
=yes
23021 elif test x
$gcc_cv_as != x
; then
23022 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23025 (eval $ac_try) 2>&5
23027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23028 test $ac_status = 0; }; }
23030 gcc_cv_as_comdat_group_percent
=yes
23032 echo "configure: failed program was" >&5
23035 rm -f conftest.o conftest.s
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23039 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23041 if test $gcc_cv_as_comdat_group_percent = yes; then
23042 gcc_cv_as_comdat_group_group
=no
23044 case "${target}" in
23045 # Sun as uses a completely different syntax.
23047 case "${target}" in
23048 sparc
*-*-solaris2*)
23050 .group foo,".text%foo",#comdat
23051 .section ".text%foo", #alloc,#execinstr,#progbits
23056 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23058 .group foo,.text%foo,#comdat
23059 .section .text%foo, "ax", @progbits
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23066 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23067 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23068 $as_echo_n "(cached) " >&6
23070 gcc_cv_as_comdat_group_group
=no
23071 if test x
$gcc_cv_as != x
; then
23072 $as_echo "$conftest_s" > 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_comdat_group_group
=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_comdat_group_group" >&5
23089 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23095 if test x
"$ld_is_gold" = xyes
; then
23097 elif test $in_tree_ld = yes ; then
23099 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 \
23100 && test $in_tree_ld_is_elf = yes; then
23103 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23105 if test 0"$ld_date" -lt 20050308; then
23106 if test -n "$ld_date"; then
23107 # If there was date string, but was earlier than 2005-03-08, fail
23109 elif test "$ld_vers_major" -lt 2; then
23111 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23116 case "${target}" in
23117 *-*-solaris2.1
[1-9]*)
23119 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23120 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23123 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23124 # least ld version 1.2267.
23125 if test "$ld_vers_major" -gt 1; then
23127 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23129 elif test "$ld_vers_minor" -ge 2267; then
23134 # Assume linkers other than GNU ld don't support COMDAT group.
23139 # Allow overriding the automatic COMDAT group tests above.
23140 # Check whether --enable-comdat was given.
23141 if test "${enable_comdat+set}" = set; then :
23142 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23145 if test $comdat_group = no
; then
23146 gcc_cv_as_comdat_group
=no
23147 gcc_cv_as_comdat_group_percent
=no
23148 gcc_cv_as_comdat_group_group
=no
23151 cat >>confdefs.h
<<_ACEOF
23152 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23153 || test $gcc_cv_as_comdat_group_percent = yes \
23154 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23159 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23160 if test "${gcc_cv_as_discriminator+set}" = set; then :
23161 $as_echo_n "(cached) " >&6
23163 gcc_cv_as_discriminator
=no
23164 if test $in_tree_gas = yes; then
23165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23166 then gcc_cv_as_discriminator
=yes
23168 elif test x
$gcc_cv_as != x
; then
23171 .loc 1 1 0 discriminator 1' > conftest.s
23172 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23174 (eval $ac_try) 2>&5
23176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23177 test $ac_status = 0; }; }
23179 gcc_cv_as_discriminator
=yes
23181 echo "configure: failed program was" >&5
23184 rm -f conftest.o conftest.s
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23188 $as_echo "$gcc_cv_as_discriminator" >&6; }
23189 if test $gcc_cv_as_discriminator = yes; then
23191 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23195 # Thread-local storage - the check is heavily parameterized.
23203 .section ".tdata","awT",@progbits
23206 ldq $27,__tls_get_addr($29) !literal!1
23207 lda $16,foo($29) !tlsgd!1
23208 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23209 ldq $27,__tls_get_addr($29) !literal!2
23210 lda $16,foo($29) !tlsldm!2
23211 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23212 ldq $1,foo($29) !gotdtprel
23213 ldah $2,foo($29) !dtprelhi
23214 lda $3,foo($2) !dtprello
23215 lda $4,foo($29) !dtprel
23216 ldq $1,foo($29) !gottprel
23217 ldah $2,foo($29) !tprelhi
23218 lda $3,foo($2) !tprello
23219 lda $4,foo($29) !tprel'
23222 tls_as_opt
=--fatal-warnings
23224 cris-
*-*|crisv32-
*-*)
23226 .section ".tdata","awT",@progbits
23233 tls_as_opt
=--fatal-warnings
23237 .section ".tdata","awT",@progbits
23240 call #gettlsoff(x)'
23249 .section ".tdata","awT",@progbits
23253 addil LT%foo-$tls_gdidx$,gp
23254 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23257 addil LT%foo-$tls_ldidx$,gp
23259 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23260 addil LR%foo-$tls_dtpoff$,%ret0
23261 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23263 addil LT%foo-$tls_ieoff$,gp
23264 ldw RT%foo-$tls_ieoff$(%r1),%t2
23267 addil LR%foo-$tls_leoff$,%t1
23268 ldo RR%foo-$tls_leoff$(%r1),%t2'
23271 tls_as_opt
=--fatal-warnings
23275 .section ".tdata","awT",%progbits
23278 .word foo(gottpoff)
23286 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23288 i
[34567]86-*-solaris2.
*)
23290 tga_func
=___tls_get_addr
23292 x86_64-
*-solaris2.1
[0-9]*)
23294 tga_func
=__tls_get_addr
23300 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23302 .section .tdata,"awt",@progbits'
23306 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23310 .section ".tdata","awT",@progbits'
23313 tls_as_opt
="--fatal-warnings"
23315 conftest_s
="$conftest_s
23319 leal foo@tlsgd(,%ebx,1), %eax
23320 leal foo@tlsldm(%ebx), %eax
23321 leal foo@dtpoff(%eax), %edx
23322 movl foo@gottpoff(%ebx), %eax
23323 subl foo@gottpoff(%ebx), %eax
23324 addl foo@gotntpoff(%ebx), %eax
23325 movl foo@indntpoff, %eax
23326 movl \$foo@tpoff, %eax
23327 subl \$foo@tpoff, %eax
23328 leal foo@ntpoff(%ecx), %eax"
23332 .section ".tdata","awT",@progbits
23336 leaq foo@TLSGD(%rip), %rdi
23337 leaq foo@TLSLD(%rip), %rdi
23338 leaq foo@DTPOFF(%rax), %rdx
23339 movq foo@GOTTPOFF(%rip), %rax
23340 movq $foo@TPOFF, %rax'
23343 tls_as_opt
=--fatal-warnings
23347 .section ".tdata","awT",@progbits
23350 addl r16 = @ltoff(@dtpmod(foo#)), gp
23351 addl r17 = @ltoff(@dtprel(foo#)), gp
23352 addl r18 = @ltoff(@tprel(foo#)), gp
23353 addl r19 = @dtprel(foo#), gp
23354 adds r21 = @dtprel(foo#), r13
23355 movl r23 = @dtprel(foo#)
23356 addl r20 = @tprel(foo#), gp
23357 adds r22 = @tprel(foo#), r13
23358 movl r24 = @tprel(foo#)'
23361 tls_as_opt
=--fatal-warnings
23365 .section .tdata,"awT",@progbits
23369 addiu $4, $28, %tlsgd(x)
23370 addiu $4, $28, %tlsldm(x)
23371 lui $4, %dtprel_hi(x)
23372 addiu $4, $4, %dtprel_lo(x)
23373 lw $4, %gottprel(x)($28)
23374 lui $4, %tprel_hi(x)
23375 addiu $4, $4, %tprel_lo(x)'
23378 tls_as_opt
='-32 --fatal-warnings'
23382 .section .tdata,"awT",@progbits
23387 move.l x@TLSGD(%a5),%a0
23388 move.l x@TLSLDM(%a5),%a0
23389 move.l x@TLSLDO(%a5),%a0
23390 move.l x@TLSIE(%a5),%a0
23391 move.l x@TLSLE(%a5),%a0'
23394 tls_as_opt
='--fatal-warnings'
23398 .section ".tdata","awT",@progbits
23406 addi 3,31,ld0@got@tlsgd
23408 addi 3,31,x1@got@tlsld
23411 addis 9,3,x2@dtprel@ha
23412 addi 9,9,x2@dtprel@l
23413 lwz 9,x3@got@tprel(31)
23416 addis 9,2,x2@tprel@ha
23417 addi 9,9,x2@tprel@l'
23420 tls_as_opt
="-a32 --fatal-warnings"
23424 .section ".tdata","awT",@progbits
23432 addi 3,2,ld0@got@tlsgd
23438 addi 3,2,x1@got@tlsld
23444 addis 9,3,x2@dtprel@ha
23445 addi 9,9,x2@dtprel@l
23448 ld 9,x3@got@dtprel(2)
23454 tls_as_opt
="-a64 --fatal-warnings"
23458 .section ".tdata","awT",@progbits
23465 .long foo@GOTNTPOFF
23466 .long foo@INDNTPOFF
23467 l %r1,foo@GOTNTPOFF(%r12)
23468 l %r1,0(%r1):tls_load:foo
23469 bas %r14,0(%r1,%r13):tls_gdcall:foo
23470 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23473 tls_as_opt
="-m31 --fatal-warnings"
23477 .section ".tdata","awT",@progbits
23484 .quad foo@GOTNTPOFF
23485 lg %r1,foo@GOTNTPOFF(%r12)
23486 larl %r1,foo@INDNTPOFF
23487 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23488 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23491 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23493 sh-
*-* | sh
[34]-*-*)
23495 .section ".tdata","awT",@progbits
23505 tls_as_opt
=--fatal-warnings
23509 sparc
*-sun-solaris2.
*)
23511 tga_func
=__tls_get_addr
23517 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23519 .section ".tdata",#alloc,#write,#tls'
23524 .section ".tdata","awT",@progbits'
23527 tls_as_opt
="-32 --fatal-warnings"
23529 conftest_s
="$conftest_s
23532 sethi %tgd_hi22(foo), %o0
23533 add %o0, %tgd_lo10(foo), %o1
23534 add %l7, %o1, %o0, %tgd_add(foo)
23535 call __tls_get_addr, %tgd_call(foo)
23536 sethi %tldm_hi22(foo), %l1
23537 add %l1, %tldm_lo10(foo), %l2
23538 add %l7, %l2, %o0, %tldm_add(foo)
23539 call __tls_get_addr, %tldm_call(foo)
23540 sethi %tldo_hix22(foo), %l3
23541 xor %l3, %tldo_lox10(foo), %l4
23542 add %o0, %l4, %l5, %tldo_add(foo)
23543 sethi %tie_hi22(foo), %o3
23544 add %o3, %tie_lo10(foo), %o3
23545 ld [%l7 + %o3], %o2, %tie_ld(foo)
23546 add %g7, %o2, %o4, %tie_add(foo)
23547 sethi %tle_hix22(foo), %l1
23548 xor %l1, %tle_lox10(foo), %o5
23549 ld [%g7 + %o5], %o1"
23553 .section ".tdata","awT",@progbits
23556 addli r0, zero, tls_gd(foo)
23557 auli r0, zero, tls_gd_ha16(foo)
23558 addli r0, r0, tls_gd_lo16(foo)
23560 addli r0, zero, tls_ie(foo)
23561 auli r0, r0, tls_ie_ha16(foo)
23562 addli r0, r0, tls_ie_lo16(foo)'
23565 tls_as_opt
="--fatal-warnings"
23569 .section ".tdata","awT",@progbits
23572 shl16insli r0, zero, hw0_last_tls_gd(foo)
23573 shl16insli r0, zero, hw1_last_tls_gd(foo)
23574 shl16insli r0, r0, hw0_tls_gd(foo)
23576 shl16insli r0, zero, hw1_last_tls_ie(foo)
23577 shl16insli r0, r0, hw0_tls_ie(foo)'
23580 tls_as_opt
="--fatal-warnings"
23584 .section ".tdata","awT",@progbits
23587 movi a8, foo@TLSFUNC
23588 movi a10, foo@TLSARG
23589 callx8.tls a8, foo@TLSCALL'
23595 if test "x$enable_tls" = xno
; then
23596 : # TLS explicitly disabled.
23597 elif test "x$enable_tls" = xyes
; then
23598 set_have_as_tls
=yes # TLS explicitly enabled.
23599 elif test -z "$tls_first_major"; then
23600 : # If we don't have a check, assume no support.
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23603 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23604 if test "${gcc_cv_as_tls+set}" = set; then :
23605 $as_echo_n "(cached) " >&6
23608 if test $in_tree_gas = yes; then
23609 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23610 then gcc_cv_as_tls
=yes
23612 elif test x
$gcc_cv_as != x
; then
23613 $as_echo "$conftest_s" > conftest.s
23614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23623 echo "configure: failed program was" >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23630 $as_echo "$gcc_cv_as_tls" >&6; }
23631 if test $gcc_cv_as_tls = yes; then
23632 set_have_as_tls
=yes
23636 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23637 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23638 # Sun style that Sun ld and GCC don't support any longer.
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23641 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23643 # Check ld and ld.so.1 TLS support.
23644 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23645 # Assume all interesting versions of GNU ld have TLS support.
23646 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23650 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23652 min_tls_ld_vers_minor
=374
23654 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23655 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23656 min_tls_ld_vers_minor
=343
23659 if test "$ld_vers_major" -gt 1 || \
23660 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23667 $as_echo "$ld_tls_support" >&6; }
23670 save_LDFLAGS
="$LDFLAGS"
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23675 $as_echo_n "checking library containing $tga_func... " >&6; }
23676 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23677 # (32-bit x86) only lived in libthread, so check for that. Keep
23678 # set_have_as_tls if found, disable if not.
23679 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23681 $as_echo_n "checking for library containing $tga_func... " >&6; }
23682 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23683 $as_echo_n "(cached) " >&6
23685 ac_func_search_save_LIBS
=$LIBS
23686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23687 /* end confdefs.h. */
23689 /* Override any GCC internal prototype to avoid an error.
23690 Use char because int might match the return type of a GCC
23691 builtin and then its argument prototype would still apply. */
23699 return $tga_func ();
23704 for ac_lib
in '' thread
; do
23705 if test -z "$ac_lib"; then
23706 ac_res
="none required"
23709 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23711 if ac_fn_c_try_link
"$LINENO"; then :
23712 eval "$as_ac_Search=\$ac_res"
23714 rm -f core conftest.err conftest.
$ac_objext \
23716 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23720 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23723 eval "$as_ac_Search=no"
23725 rm conftest.
$ac_ext
23726 LIBS
=$ac_func_search_save_LIBS
23728 eval ac_res
=\$
$as_ac_Search
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23730 $as_echo "$ac_res" >&6; }
23731 eval ac_res
=\$
$as_ac_Search
23732 if test "$ac_res" != no
; then :
23733 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23739 # Clear LIBS if we cannot support TLS.
23740 if test $set_have_as_tls = no
; then
23743 # Always define LIB_TLS_SPEC, even without TLS support.
23745 cat >>confdefs.h
<<_ACEOF
23746 #define LIB_TLS_SPEC "$LIBS"
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23750 $as_echo "$LIBS" >&6; }
23753 LDFLAGS
="$save_LDFLAGS"
23756 if test $set_have_as_tls = yes ; then
23758 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23762 # Target-specific assembler checks.
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23765 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23766 gcc_cv_ld_static_dynamic
=no
23767 gcc_cv_ld_static_option
='-Bstatic'
23768 gcc_cv_ld_dynamic_option
='-Bdynamic'
23769 if test $in_tree_ld = yes ; then
23770 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
23771 gcc_cv_ld_static_dynamic
=yes
23773 elif test x
$gcc_cv_ld != x
; then
23774 # Check if linker supports -Bstatic/-Bdynamic option
23775 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23776 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23777 gcc_cv_ld_static_dynamic
=yes
23780 # HP-UX ld uses -a flags to select between shared and archive.
23782 if test x
"$gnu_ld" = xno
; then
23783 gcc_cv_ld_static_dynamic
=yes
23784 gcc_cv_ld_static_option
="-aarchive_shared"
23785 gcc_cv_ld_dynamic_option
="-adefault"
23788 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23790 gcc_cv_ld_static_dynamic
=yes
23795 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23797 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23800 cat >>confdefs.h
<<_ACEOF
23801 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23805 cat >>confdefs.h
<<_ACEOF
23806 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23811 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23813 if test x
"$demangler_in_ld" = xyes
; then
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23815 $as_echo_n "checking linker --demangle support... " >&6; }
23816 gcc_cv_ld_demangle
=no
23817 if test $in_tree_ld = yes; then
23818 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 \
23819 gcc_cv_ld_demangle
=yes
23821 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23822 # Check if the GNU linker supports --demangle option
23823 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23824 gcc_cv_ld_demangle
=yes
23827 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23829 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23833 $as_echo "$gcc_cv_ld_demangle" >&6; }
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23837 $as_echo_n "checking linker plugin support... " >&6; }
23838 gcc_cv_lto_plugin
=0
23839 if test -f liblto_plugin.la
; then
23840 save_ld_ver
="$ld_ver"
23841 save_ld_vers_major
="$ld_vers_major"
23842 save_ld_vers_minor
="$ld_vers_minor"
23843 save_ld_is_gold
="$ld_is_gold"
23847 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23849 # FIXME: ld_is_gold?
23850 ld_vers_major
="$gcc_cv_gld_major_version"
23851 ld_vers_minor
="$gcc_cv_gld_minor_version"
23853 # Determine plugin linker version.
23854 # FIXME: Partial duplicate from above, generalize.
23855 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23856 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23857 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23859 ld_vers
=`echo $ld_ver | sed -n \
23860 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23862 ld_vers
=`echo $ld_ver | sed -n \
23863 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23865 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23866 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23870 # Determine plugin support.
23871 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23872 # Require GNU ld or gold 2.21+ for plugin support by default.
23873 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23874 gcc_cv_lto_plugin
=2
23875 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23876 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23877 gcc_cv_lto_plugin
=1
23881 ld_ver
="$save_ld_ver"
23882 ld_vers_major
="$save_ld_vers_major"
23883 ld_vers_minor
="$save_ld_vers_minor"
23884 ld_is_gold
="$save_ld_is_gold"
23887 cat >>confdefs.h
<<_ACEOF
23888 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23892 $as_echo "$gcc_cv_lto_plugin" >&6; }
23895 # All TARGET_ABI_OSF targets.
23896 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23898 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23899 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23900 $as_echo_n "(cached) " >&6
23902 gcc_cv_as_alpha_explicit_relocs
=no
23903 if test $in_tree_gas = yes; then
23904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23905 then gcc_cv_as_alpha_explicit_relocs
=yes
23907 elif test x
$gcc_cv_as != x
; then
23908 $as_echo ' .set nomacro
23910 extbl $3, $2, $3 !lituse_bytoff!1
23911 ldq $2, a($29) !literal!1
23912 ldq $4, b($29) !literal!2
23913 ldq_u $3, 0($2) !lituse_base!1
23914 ldq $27, f($29) !literal!5
23915 jsr $26, ($27), f !lituse_jsr!5
23916 ldah $29, 0($26) !gpdisp!3
23917 lda $0, c($29) !gprel
23918 ldah $1, d($29) !gprelhigh
23919 lda $1, d($1) !gprellow
23920 lda $29, 0($29) !gpdisp!3' > conftest.s
23921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; }
23928 gcc_cv_as_alpha_explicit_relocs
=yes
23930 echo "configure: failed program was" >&5
23933 rm -f conftest.o conftest.s
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23937 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23938 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23940 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23944 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23945 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23946 $as_echo_n "(cached) " >&6
23948 gcc_cv_as_alpha_jsrdirect_relocs
=no
23949 if test $in_tree_gas = yes; then
23950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23951 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23953 elif test x
$gcc_cv_as != x
; then
23954 $as_echo ' .set nomacro
23956 ldq $27, a($29) !literal!1
23957 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23965 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23967 echo "configure: failed program was" >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23974 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23975 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23977 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23984 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23985 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23986 $as_echo_n "(cached) " >&6
23988 gcc_cv_as_cris_no_mul_bug
=no
23989 if test $in_tree_gas = yes; then
23990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23991 then gcc_cv_as_cris_no_mul_bug
=yes
23993 elif test x
$gcc_cv_as != x
; then
23994 $as_echo '.text' > conftest.s
23995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23997 (eval $ac_try) 2>&5
23999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24000 test $ac_status = 0; }; }
24002 gcc_cv_as_cris_no_mul_bug
=yes
24004 echo "configure: failed program was" >&5
24007 rm -f conftest.o conftest.s
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24011 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24012 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24014 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24021 $as_echo_n "checking assembler for .register... " >&6; }
24022 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24025 gcc_cv_as_sparc_register_op
=no
24026 if test x
$gcc_cv_as != x
; then
24027 $as_echo '.register %g2, #scratch' > conftest.s
24028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24030 (eval $ac_try) 2>&5
24032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24033 test $ac_status = 0; }; }
24035 gcc_cv_as_sparc_register_op
=yes
24037 echo "configure: failed program was" >&5
24040 rm -f conftest.o conftest.s
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24044 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24045 if test $gcc_cv_as_sparc_register_op = yes; then
24047 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24052 $as_echo_n "checking assembler for -relax option... " >&6; }
24053 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24054 $as_echo_n "(cached) " >&6
24056 gcc_cv_as_sparc_relax
=no
24057 if test x
$gcc_cv_as != x
; then
24058 $as_echo '.text' > conftest.s
24059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }
24066 gcc_cv_as_sparc_relax
=yes
24068 echo "configure: failed program was" >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24075 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24076 if test $gcc_cv_as_sparc_relax = yes; then
24078 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24083 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24084 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24085 $as_echo_n "(cached) " >&6
24087 gcc_cv_as_sparc_gotdata_op
=no
24088 if test x
$gcc_cv_as != x
; then
24094 sethi %gdop_hix22(foo), %g1
24095 xor %g1, %gdop_lox10(foo), %g1
24096 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }
24104 if test x
$gcc_cv_ld != x \
24105 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24106 if test x
$gcc_cv_objdump != x
; then
24107 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24108 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24109 gcc_cv_as_sparc_gotdata_op
=no
24111 gcc_cv_as_sparc_gotdata_op
=yes
24117 echo "configure: failed program was" >&5
24120 rm -f conftest.o conftest.s
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24124 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24125 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24127 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24132 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24133 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24134 $as_echo_n "(cached) " >&6
24136 gcc_cv_as_sparc_ua_pcrel
=no
24137 if test x
$gcc_cv_as != x
; then
24144 .uaword %r_disp32(foo)' > conftest.s
24145 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; }
24152 if test x
$gcc_cv_ld != x \
24153 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24154 gcc_cv_as_sparc_ua_pcrel
=yes
24158 echo "configure: failed program was" >&5
24161 rm -f conftest.o conftest.s
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24165 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24166 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24168 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24172 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24173 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24174 $as_echo_n "(cached) " >&6
24176 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24177 if test x
$gcc_cv_as != x
; then
24181 .uaword %r_disp32(foo)
24182 .byte 0x32, 0x33, 0x34
24186 .skip 4' > conftest.s
24187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189 (eval $ac_try) 2>&5
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }; }
24194 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24195 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24196 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24197 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24198 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24199 |
grep 'DISP32' > /dev
/null
2>&1; then
24202 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24207 echo "configure: failed program was" >&5
24210 rm -f conftest.o conftest.s
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24214 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24215 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24217 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24221 fi # unaligned pcrel relocs
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24224 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24225 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24226 $as_echo_n "(cached) " >&6
24228 gcc_cv_as_sparc_offsetable_lo10
=no
24229 if test x
$gcc_cv_as != x
; then
24231 or %g1, %lo(ab) + 12, %g1
24232 or %g1, %lo(ab + 12), %g1' > conftest.s
24233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24235 (eval $ac_try) 2>&5
24237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24238 test $ac_status = 0; }; }
24240 if test x
$gcc_cv_objdump != x \
24241 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24242 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24243 gcc_cv_as_sparc_offsetable_lo10
=yes
24246 echo "configure: failed program was" >&5
24249 rm -f conftest.o conftest.s
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24253 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24254 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24256 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24261 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24262 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24263 $as_echo_n "(cached) " >&6
24265 gcc_cv_as_sparc_fmaf
=no
24266 if test x
$gcc_cv_as != x
; then
24268 .register %g2, #scratch
24269 .register %g3, #scratch
24271 fmaddd %f0, %f2, %f4, %f6
24272 addxccc %g1, %g2, %g3
24273 fsrl32 %f2, %f4, %f8
24274 fnaddd %f10, %f12, %f14' > conftest.s
24275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24277 (eval $ac_try) 2>&5
24279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24280 test $ac_status = 0; }; }
24282 gcc_cv_as_sparc_fmaf
=yes
24284 echo "configure: failed program was" >&5
24287 rm -f conftest.o conftest.s
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24291 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24292 if test $gcc_cv_as_sparc_fmaf = yes; then
24294 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24299 i
[34567]86-*-* | x86_64-
*-*)
24302 # Full C++ conformance when using a shared libstdc++-v3 requires some
24303 # support from the Cygwin DLL, which in more recent versions exports
24304 # wrappers to aid in interposing and redirecting operators new, delete,
24305 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24306 # are configuring for a version of Cygwin that exports the wrappers.
24307 if test x
$host = x
$target; then
24308 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24309 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24310 gcc_ac_cygwin_dll_wrappers
=yes
24312 gcc_ac_cygwin_dll_wrappers
=no
24316 # Can't check presence of libc functions during cross-compile, so
24317 # we just have to assume we're building for an up-to-date target.
24318 gcc_ac_cygwin_dll_wrappers
=yes
24321 cat >>confdefs.h
<<_ACEOF
24322 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24327 cygwin
* | pe | mingw32
* | interix
*)
24328 # Recent binutils allows the three-operand form of ".comm" on PE. This
24329 # definition is used unconditionally to initialise the default state of
24330 # the target option variable that governs usage of the feature.
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24332 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24333 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24334 $as_echo_n "(cached) " >&6
24336 gcc_cv_as_comm_has_align
=no
24337 if test $in_tree_gas = yes; then
24338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24339 then gcc_cv_as_comm_has_align
=yes
24341 elif test x
$gcc_cv_as != x
; then
24342 $as_echo '.comm foo,1,32' > conftest.s
24343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }
24350 gcc_cv_as_comm_has_align
=yes
24352 echo "configure: failed program was" >&5
24355 rm -f conftest.o conftest.s
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24359 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24362 cat >>confdefs.h
<<_ACEOF
24363 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24366 # Used for DWARF 2 in PE
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24368 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24369 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24370 $as_echo_n "(cached) " >&6
24372 gcc_cv_as_ix86_pe_secrel32
=no
24373 if test $in_tree_gas = yes; then
24374 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24375 then gcc_cv_as_ix86_pe_secrel32
=yes
24377 elif test x
$gcc_cv_as != x
; then
24381 .secrel32 foo' > conftest.s
24382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24384 (eval $ac_try) 2>&5
24386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24387 test $ac_status = 0; }; }
24389 if test x
$gcc_cv_ld != x \
24390 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24391 gcc_cv_as_ix86_pe_secrel32
=yes
24395 echo "configure: failed program was" >&5
24398 rm -f conftest.o conftest.s
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24402 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24403 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24405 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24408 # Test if the assembler supports the extended form of the .section
24409 # directive that specifies section alignment. LTO support uses this,
24410 # but normally only after installation, so we warn but don't fail the
24411 # configure if LTO is enabled but the assembler does not support it.
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24413 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24414 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24415 $as_echo_n "(cached) " >&6
24417 gcc_cv_as_section_has_align
=no
24418 if test $in_tree_gas = yes; then
24419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24420 then gcc_cv_as_section_has_align
=yes
24422 elif test x
$gcc_cv_as != x
; then
24423 $as_echo '.section lto_test,"dr0"' > conftest.s
24424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426 (eval $ac_try) 2>&5
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; }
24431 gcc_cv_as_section_has_align
=yes
24433 echo "configure: failed program was" >&5
24436 rm -f conftest.o conftest.s
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24440 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24442 if test x
$gcc_cv_as_section_has_align != xyes
; then
24443 case ",$enable_languages," in
24445 { $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
24446 $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;}
24450 # Test if the assembler supports the section flag 'e' for specifying
24451 # an excluded section.
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24453 $as_echo_n "checking assembler for .section with e... " >&6; }
24454 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 gcc_cv_as_section_has_e
=no
24458 if test $in_tree_gas = yes; then
24459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24460 then gcc_cv_as_section_has_e
=yes
24462 elif test x
$gcc_cv_as != x
; then
24463 $as_echo '.section foo1,"e"
24464 .byte 0,0,0,0' > conftest.s
24465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24467 (eval $ac_try) 2>&5
24469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24470 test $ac_status = 0; }; }
24472 gcc_cv_as_section_has_e
=yes
24474 echo "configure: failed program was" >&5
24477 rm -f conftest.o conftest.s
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24481 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24484 cat >>confdefs.h
<<_ACEOF
24485 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24492 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24493 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24496 gcc_cv_as_ix86_filds
=no
24497 if test x
$gcc_cv_as != x
; then
24498 $as_echo 'filds mem; fists mem' > conftest.s
24499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24501 (eval $ac_try) 2>&5
24503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24504 test $ac_status = 0; }; }
24506 gcc_cv_as_ix86_filds
=yes
24508 echo "configure: failed program was" >&5
24511 rm -f conftest.o conftest.s
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24515 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24516 if test $gcc_cv_as_ix86_filds = yes; then
24518 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24523 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24524 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24525 $as_echo_n "(cached) " >&6
24527 gcc_cv_as_ix86_fildq
=no
24528 if test x
$gcc_cv_as != x
; then
24529 $as_echo 'fildq mem; fistpq mem' > conftest.s
24530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24532 (eval $ac_try) 2>&5
24534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24535 test $ac_status = 0; }; }
24537 gcc_cv_as_ix86_fildq
=yes
24539 echo "configure: failed program was" >&5
24542 rm -f conftest.o conftest.s
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24546 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24547 if test $gcc_cv_as_ix86_fildq = yes; then
24549 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24554 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24555 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24558 gcc_cv_as_ix86_cmov_sun_syntax
=no
24559 if test x
$gcc_cv_as != x
; then
24560 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24563 (eval $ac_try) 2>&5
24565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24566 test $ac_status = 0; }; }
24568 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24570 echo "configure: failed program was" >&5
24573 rm -f conftest.o conftest.s
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24577 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24578 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24580 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24585 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24586 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24587 $as_echo_n "(cached) " >&6
24589 gcc_cv_as_ix86_ffreep
=no
24590 if test x
$gcc_cv_as != x
; then
24591 $as_echo 'ffreep %st(1)' > conftest.s
24592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24594 (eval $ac_try) 2>&5
24596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24597 test $ac_status = 0; }; }
24599 gcc_cv_as_ix86_ffreep
=yes
24601 echo "configure: failed program was" >&5
24604 rm -f conftest.o conftest.s
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24608 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24609 if test $gcc_cv_as_ix86_ffreep = yes; then
24611 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24616 $as_echo_n "checking assembler for .quad directive... " >&6; }
24617 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24618 $as_echo_n "(cached) " >&6
24620 gcc_cv_as_ix86_quad
=no
24621 if test x
$gcc_cv_as != x
; then
24622 $as_echo '.quad 0' > conftest.s
24623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24625 (eval $ac_try) 2>&5
24627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628 test $ac_status = 0; }; }
24630 gcc_cv_as_ix86_quad
=yes
24632 echo "configure: failed program was" >&5
24635 rm -f conftest.o conftest.s
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24639 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24640 if test $gcc_cv_as_ix86_quad = yes; then
24642 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24647 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24648 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24649 $as_echo_n "(cached) " >&6
24651 gcc_cv_as_ix86_sahf
=no
24652 if test x
$gcc_cv_as != x
; then
24655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657 (eval $ac_try) 2>&5
24659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660 test $ac_status = 0; }; }
24662 gcc_cv_as_ix86_sahf
=yes
24664 echo "configure: failed program was" >&5
24667 rm -f conftest.o conftest.s
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24671 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24672 if test $gcc_cv_as_ix86_sahf = yes; then
24674 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24679 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24680 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24681 $as_echo_n "(cached) " >&6
24683 gcc_cv_as_ix86_hle
=no
24684 if test x
$gcc_cv_as != x
; then
24686 lock xacquire cmpxchg %esi, (%rcx)
24688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24695 gcc_cv_as_ix86_hle
=yes
24697 echo "configure: failed program was" >&5
24700 rm -f conftest.o conftest.s
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24704 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24705 if test $gcc_cv_as_ix86_hle = yes; then
24707 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24712 $as_echo_n "checking assembler for swap suffix... " >&6; }
24713 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24714 $as_echo_n "(cached) " >&6
24716 gcc_cv_as_ix86_swap
=no
24717 if test x
$gcc_cv_as != x
; then
24718 $as_echo 'movl.s %esp, %ebp' > conftest.s
24719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24721 (eval $ac_try) 2>&5
24723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24724 test $ac_status = 0; }; }
24726 gcc_cv_as_ix86_swap
=yes
24728 echo "configure: failed program was" >&5
24731 rm -f conftest.o conftest.s
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24735 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24736 if test $gcc_cv_as_ix86_swap = yes; then
24738 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24743 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24744 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24745 $as_echo_n "(cached) " >&6
24747 gcc_cv_as_ix86_diff_sect_delta
=no
24748 if test x
$gcc_cv_as != x
; then
24749 $as_echo '.section .rodata
24755 .L2: nop' > conftest.s
24756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24758 (eval $ac_try) 2>&5
24760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761 test $ac_status = 0; }; }
24763 gcc_cv_as_ix86_diff_sect_delta
=yes
24765 echo "configure: failed program was" >&5
24768 rm -f conftest.o conftest.s
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24772 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24773 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24775 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24779 # These two are used unconditionally by i386.[ch]; it is to be defined
24780 # to 1 if the feature is present, 0 otherwise.
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24782 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24783 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24784 $as_echo_n "(cached) " >&6
24786 gcc_cv_as_ix86_gotoff_in_data
=no
24787 if test $in_tree_gas = yes; then
24788 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24789 then gcc_cv_as_ix86_gotoff_in_data
=yes
24791 elif test x
$gcc_cv_as != x
; then
24796 .long .L0@GOTOFF' > conftest.s
24797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24799 (eval $ac_try) 2>&5
24801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802 test $ac_status = 0; }; }
24804 gcc_cv_as_ix86_gotoff_in_data
=yes
24806 echo "configure: failed program was" >&5
24809 rm -f conftest.o conftest.s
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24813 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24816 cat >>confdefs.h
<<_ACEOF
24817 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24822 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24823 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24826 gcc_cv_as_ix86_rep_lock_prefix
=no
24827 if test x
$gcc_cv_as != x
; then
24828 $as_echo 'rep movsl
24833 lock addl %edi, (%eax,%esi)
24834 lock orl $0, (%esp)' > conftest.s
24835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }
24842 gcc_cv_as_ix86_rep_lock_prefix
=yes
24844 echo "configure: failed program was" >&5
24847 rm -f conftest.o conftest.s
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24851 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24852 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24854 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24859 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24860 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24863 gcc_cv_as_ix86_tlsgdplt
=no
24864 if test x
$gcc_cv_as != x
; then
24865 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24873 if test x
$gcc_cv_ld != x \
24874 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24875 gcc_cv_as_ix86_tlsgdplt
=yes
24879 echo "configure: failed program was" >&5
24882 rm -f conftest.o conftest.s
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24886 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24887 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24889 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24894 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24895 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24898 gcc_cv_as_ix86_tlsldmplt
=no
24899 if test x
$gcc_cv_as != x
; then
24901 call tls_ld@tlsldmplt' > conftest.s
24902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24904 (eval $ac_try) 2>&5
24906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24907 test $ac_status = 0; }; }
24909 if test x
$gcc_cv_ld != x \
24910 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24911 gcc_cv_as_ix86_tlsldmplt
=yes
24915 echo "configure: failed program was" >&5
24918 rm -f conftest.o conftest.s
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24922 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24923 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24925 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24933 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24934 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24935 $as_echo_n "(cached) " >&6
24937 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24938 if test $in_tree_gas = yes; then
24939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24940 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24942 elif test x
$gcc_cv_as != x
; then
24944 addl r15 = @ltoffx(x#), gp
24946 ld8.mov r16 = [r15], x#' > conftest.s
24947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }
24954 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24956 echo "configure: failed program was" >&5
24959 rm -f conftest.o conftest.s
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24963 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24964 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24966 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24974 *-*-aix*) conftest_s
=' .machine "pwr5"
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24979 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24980 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24983 gcc_cv_as_machine_directive
=no
24984 if test x
$gcc_cv_as != x
; then
24985 $as_echo ' .machine ppc7400' > conftest.s
24986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24988 (eval $ac_try) 2>&5
24990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24991 test $ac_status = 0; }; }
24993 gcc_cv_as_machine_directive
=yes
24995 echo "configure: failed program was" >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25002 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25004 if test x
$gcc_cv_as_machine_directive != xyes
; then
25005 echo "*** This target requires an assembler supporting \".machine\"" >&2
25006 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25007 test x
$build = x
$target && exit 1
25011 *) conftest_s
=' .machine power4
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25017 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25018 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25019 $as_echo_n "(cached) " >&6
25021 gcc_cv_as_powerpc_mfcrf
=no
25022 if test $in_tree_gas = yes; then
25023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25024 then gcc_cv_as_powerpc_mfcrf
=yes
25026 elif test x
$gcc_cv_as != x
; then
25027 $as_echo "$conftest_s" > conftest.s
25028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25035 gcc_cv_as_powerpc_mfcrf
=yes
25037 echo "configure: failed program was" >&5
25040 rm -f conftest.o conftest.s
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25044 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25045 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25047 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25052 *-*-aix*) conftest_s
=' .machine "pwr5"
25055 *) conftest_s
=' .machine power5
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25061 $as_echo_n "checking assembler for popcntb support... " >&6; }
25062 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25063 $as_echo_n "(cached) " >&6
25065 gcc_cv_as_powerpc_popcntb
=no
25066 if test $in_tree_gas = yes; then
25067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25068 then gcc_cv_as_powerpc_popcntb
=yes
25070 elif test x
$gcc_cv_as != x
; then
25071 $as_echo "$conftest_s" > conftest.s
25072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25079 gcc_cv_as_powerpc_popcntb
=yes
25081 echo "configure: failed program was" >&5
25084 rm -f conftest.o conftest.s
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25088 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25089 if test $gcc_cv_as_powerpc_popcntb = yes; then
25091 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25096 *-*-aix*) conftest_s
=' .machine "pwr5x"
25099 *) conftest_s
=' .machine power5
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25105 $as_echo_n "checking assembler for fp round support... " >&6; }
25106 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25109 gcc_cv_as_powerpc_fprnd
=no
25110 if test $in_tree_gas = yes; then
25111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25112 then gcc_cv_as_powerpc_fprnd
=yes
25114 elif test x
$gcc_cv_as != x
; then
25115 $as_echo "$conftest_s" > conftest.s
25116 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118 (eval $ac_try) 2>&5
25120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121 test $ac_status = 0; }; }
25123 gcc_cv_as_powerpc_fprnd
=yes
25125 echo "configure: failed program was" >&5
25128 rm -f conftest.o conftest.s
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25132 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25133 if test $gcc_cv_as_powerpc_fprnd = yes; then
25135 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25140 *-*-aix*) conftest_s
=' .machine "pwr6"
25143 *) conftest_s
=' .machine power6
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25149 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25150 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25151 $as_echo_n "(cached) " >&6
25153 gcc_cv_as_powerpc_mfpgpr
=no
25154 if test $in_tree_gas = yes; then
25155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25156 then gcc_cv_as_powerpc_mfpgpr
=yes
25158 elif test x
$gcc_cv_as != x
; then
25159 $as_echo "$conftest_s" > conftest.s
25160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25167 gcc_cv_as_powerpc_mfpgpr
=yes
25169 echo "configure: failed program was" >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25176 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25177 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25179 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25184 *-*-aix*) conftest_s
=' .csect .text[PR]
25186 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25190 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25191 *) conftest_s
=' .text
25193 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25197 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25198 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25201 gcc_cv_as_powerpc_rel16
=no
25202 if test $in_tree_gas = yes; then
25203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25204 then gcc_cv_as_powerpc_rel16
=yes
25206 elif test x
$gcc_cv_as != x
; then
25207 $as_echo "$conftest_s" > conftest.s
25208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25210 (eval $ac_try) 2>&5
25212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25213 test $ac_status = 0; }; }
25215 gcc_cv_as_powerpc_rel16
=yes
25217 echo "configure: failed program was" >&5
25220 rm -f conftest.o conftest.s
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25224 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25225 if test $gcc_cv_as_powerpc_rel16 = yes; then
25227 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25232 *-*-aix*) conftest_s
=' .machine "pwr6"
25235 *) conftest_s
=' .machine power6
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25241 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25242 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25243 $as_echo_n "(cached) " >&6
25245 gcc_cv_as_powerpc_cmpb
=no
25246 if test $in_tree_gas = yes; then
25247 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25248 then gcc_cv_as_powerpc_cmpb
=yes
25250 elif test x
$gcc_cv_as != x
; then
25251 $as_echo "$conftest_s" > conftest.s
25252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25259 gcc_cv_as_powerpc_cmpb
=yes
25261 echo "configure: failed program was" >&5
25264 rm -f conftest.o conftest.s
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25268 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25269 if test $gcc_cv_as_powerpc_cmpb = yes; then
25271 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25276 *-*-aix*) conftest_s
=' .machine "pwr6"
25279 *) conftest_s
=' .machine power6
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25285 $as_echo_n "checking assembler for decimal float support... " >&6; }
25286 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25287 $as_echo_n "(cached) " >&6
25289 gcc_cv_as_powerpc_dfp
=no
25290 if test $in_tree_gas = yes; then
25291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25292 then gcc_cv_as_powerpc_dfp
=yes
25294 elif test x
$gcc_cv_as != x
; then
25295 $as_echo "$conftest_s" > conftest.s
25296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25298 (eval $ac_try) 2>&5
25300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25301 test $ac_status = 0; }; }
25303 gcc_cv_as_powerpc_dfp
=yes
25305 echo "configure: failed program was" >&5
25308 rm -f conftest.o conftest.s
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25312 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25313 if test $gcc_cv_as_powerpc_dfp = yes; then
25315 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25320 *-*-aix*) conftest_s
=' .machine "pwr7"
25323 *) conftest_s
=' .machine power7
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25329 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25330 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25331 $as_echo_n "(cached) " >&6
25333 gcc_cv_as_powerpc_vsx
=no
25334 if test $in_tree_gas = yes; then
25335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25336 then gcc_cv_as_powerpc_vsx
=yes
25338 elif test x
$gcc_cv_as != x
; then
25339 $as_echo "$conftest_s" > conftest.s
25340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25347 gcc_cv_as_powerpc_vsx
=yes
25349 echo "configure: failed program was" >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25356 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25357 if test $gcc_cv_as_powerpc_vsx = yes; then
25359 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25364 *-*-aix*) conftest_s
=' .machine "pwr7"
25367 *) conftest_s
=' .machine power7
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25373 $as_echo_n "checking assembler for popcntd support... " >&6; }
25374 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25375 $as_echo_n "(cached) " >&6
25377 gcc_cv_as_powerpc_popcntd
=no
25378 if test $in_tree_gas = yes; then
25379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25380 then gcc_cv_as_powerpc_popcntd
=yes
25382 elif test x
$gcc_cv_as != x
; then
25383 $as_echo "$conftest_s" > conftest.s
25384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25391 gcc_cv_as_powerpc_popcntd
=yes
25393 echo "configure: failed program was" >&5
25396 rm -f conftest.o conftest.s
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25400 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25401 if test $gcc_cv_as_powerpc_popcntd = yes; then
25403 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25408 *-*-aix*) conftest_s
=' .csect .text[PR]
25410 *) conftest_s
=' .text
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25415 $as_echo_n "checking assembler for lwsync support... " >&6; }
25416 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25417 $as_echo_n "(cached) " >&6
25419 gcc_cv_as_powerpc_lwsync
=no
25420 if test $in_tree_gas = yes; then
25421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25422 then gcc_cv_as_powerpc_lwsync
=yes
25424 elif test x
$gcc_cv_as != x
; then
25425 $as_echo "$conftest_s" > conftest.s
25426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25428 (eval $ac_try) 2>&5
25430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25431 test $ac_status = 0; }; }
25433 gcc_cv_as_powerpc_lwsync
=yes
25435 echo "configure: failed program was" >&5
25438 rm -f conftest.o conftest.s
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25442 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25443 if test $gcc_cv_as_powerpc_lwsync = yes; then
25445 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25450 *-*-aix*) conftest_s
=' .machine "476"
25453 *) conftest_s
=' .machine "476"
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25459 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25460 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25461 $as_echo_n "(cached) " >&6
25463 gcc_cv_as_powerpc_dci
=no
25464 if test $in_tree_gas = yes; then
25465 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25466 then gcc_cv_as_powerpc_dci
=yes
25468 elif test x
$gcc_cv_as != x
; then
25469 $as_echo "$conftest_s" > conftest.s
25470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25477 gcc_cv_as_powerpc_dci
=yes
25479 echo "configure: failed program was" >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25486 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25487 if test $gcc_cv_as_powerpc_dci = yes; then
25489 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25494 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25495 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25496 $as_echo_n "(cached) " >&6
25498 gcc_cv_as_powerpc_gnu_attribute
=no
25499 if test $in_tree_gas = yes; then
25500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25501 then gcc_cv_as_powerpc_gnu_attribute
=yes
25503 elif test x
$gcc_cv_as != x
; then
25504 $as_echo '.gnu_attribute 4,1' > conftest.s
25505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25507 (eval $ac_try) 2>&5
25509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25510 test $ac_status = 0; }; }
25512 gcc_cv_as_powerpc_gnu_attribute
=yes
25514 echo "configure: failed program was" >&5
25517 rm -f conftest.o conftest.s
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25521 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25522 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25524 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25529 $as_echo_n "checking assembler for tls marker support... " >&6; }
25530 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25531 $as_echo_n "(cached) " >&6
25533 gcc_cv_as_powerpc_tls_markers
=no
25534 if test $in_tree_gas = yes; then
25535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25536 then gcc_cv_as_powerpc_tls_markers
=yes
25538 elif test x
$gcc_cv_as != x
; then
25539 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25542 (eval $ac_try) 2>&5
25544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25545 test $ac_status = 0; }; }
25547 gcc_cv_as_powerpc_tls_markers
=yes
25549 echo "configure: failed program was" >&5
25552 rm -f conftest.o conftest.s
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25556 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25557 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25559 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25566 $as_echo_n "checking assembler for .ref support... " >&6; }
25567 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25568 $as_echo_n "(cached) " >&6
25570 gcc_cv_as_aix_ref
=no
25571 if test $in_tree_gas = yes; then
25572 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25575 elif test x
$gcc_cv_as != x
; then
25576 $as_echo ' .csect stuff[rw]
25582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25589 gcc_cv_as_aix_ref
=yes
25591 echo "configure: failed program was" >&5
25594 rm -f conftest.o conftest.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25598 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25599 if test $gcc_cv_as_aix_ref = yes; then
25601 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25610 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25611 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25614 gcc_cv_as_mips_explicit_relocs
=no
25615 if test $in_tree_gas = yes; then
25616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25617 then gcc_cv_as_mips_explicit_relocs
=yes
25619 elif test x
$gcc_cv_as != x
; then
25620 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25623 (eval $ac_try) 2>&5
25625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25626 test $ac_status = 0; }; }
25628 gcc_cv_as_mips_explicit_relocs
=yes
25630 echo "configure: failed program was" >&5
25633 rm -f conftest.o conftest.s
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25637 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25638 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25639 if test x
$target_cpu_default = x
25640 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25641 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25645 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25646 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25647 $as_echo_n "(cached) " >&6
25649 gcc_cv_as_mips_no_shared
=no
25650 if test $in_tree_gas = yes; then
25651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25652 then gcc_cv_as_mips_no_shared
=yes
25654 elif test x
$gcc_cv_as != x
; then
25655 $as_echo 'nop' > conftest.s
25656 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25658 (eval $ac_try) 2>&5
25660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25661 test $ac_status = 0; }; }
25663 gcc_cv_as_mips_no_shared
=yes
25665 echo "configure: failed program was" >&5
25668 rm -f conftest.o conftest.s
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25672 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25673 if test $gcc_cv_as_mips_no_shared = yes; then
25675 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25680 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25681 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25682 $as_echo_n "(cached) " >&6
25684 gcc_cv_as_mips_gnu_attribute
=no
25685 if test $in_tree_gas = yes; then
25686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25687 then gcc_cv_as_mips_gnu_attribute
=yes
25689 elif test x
$gcc_cv_as != x
; then
25690 $as_echo '.gnu_attribute 4,1' > conftest.s
25691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25693 (eval $ac_try) 2>&5
25695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; }; }
25698 gcc_cv_as_mips_gnu_attribute
=yes
25700 echo "configure: failed program was" >&5
25703 rm -f conftest.o conftest.s
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25707 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25708 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25710 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25715 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25716 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25717 $as_echo_n "(cached) " >&6
25719 gcc_cv_as_mips_dtprelword
=no
25720 if test $in_tree_gas = yes; then
25721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25722 then gcc_cv_as_mips_dtprelword
=yes
25724 elif test x
$gcc_cv_as != x
; then
25725 $as_echo '.section .tdata,"awT",@progbits
25729 .dtprelword x+0x8000' > conftest.s
25730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25737 gcc_cv_as_mips_dtprelword
=yes
25739 echo "configure: failed program was" >&5
25742 rm -f conftest.o conftest.s
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25746 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25747 if test $gcc_cv_as_mips_dtprelword = yes; then
25749 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25754 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25755 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25756 $as_echo_n "(cached) " >&6
25758 gcc_cv_as_mips_dspr1_mult
=no
25759 if test x
$gcc_cv_as != x
; then
25760 $as_echo ' .set mips32r2
25768 multu $ac3,$4,$5' > conftest.s
25769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25771 (eval $ac_try) 2>&5
25773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25774 test $ac_status = 0; }; }
25776 gcc_cv_as_mips_dspr1_mult
=yes
25778 echo "configure: failed program was" >&5
25781 rm -f conftest.o conftest.s
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25785 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25786 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25788 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25793 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25794 gcc_cv_as_ld_jalr_reloc
=no
25795 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25796 if test $in_tree_ld = yes ; then
25797 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 \
25798 && test $in_tree_ld_is_elf = yes; then
25799 gcc_cv_as_ld_jalr_reloc
=yes
25801 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25802 echo ' .ent x' > conftest.s
25803 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25804 echo ' ld $25,%call16(y)($28)' >> conftest.s
25805 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25806 echo '1: jalr $25' >> conftest.s
25807 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25808 echo '1: jalr $25' >> conftest.s
25809 echo ' .end x' >> conftest.s
25810 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25811 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25812 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25813 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25814 gcc_cv_as_ld_jalr_reloc
=yes
25820 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25821 if test x
$target_cpu_default = x
; then
25822 target_cpu_default
=MASK_RELAX_PIC_CALLS
25824 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25828 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25831 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25832 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25833 $as_echo_n "(cached) " >&6
25835 gcc_cv_ld_mips_personality_relaxation
=no
25836 if test $in_tree_ld = yes ; then
25837 if test "$gcc_cv_gld_major_version" -eq 2 \
25838 -a "$gcc_cv_gld_minor_version" -ge 21 \
25839 -o "$gcc_cv_gld_major_version" -gt 2; then
25840 gcc_cv_ld_mips_personality_relaxation
=yes
25842 elif test x
$gcc_cv_as != x \
25843 -a x
$gcc_cv_ld != x \
25844 -a x
$gcc_cv_readelf != x
; then
25845 cat > conftest.s
<<EOF
25847 .cfi_personality 0x80,indirect_ptr
25854 .section .data,"aw",@progbits
25858 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25859 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25860 if $gcc_cv_readelf -d conftest
2>&1 \
25861 |
grep TEXTREL
> /dev
/null
2>&1; then
25863 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25864 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25867 gcc_cv_ld_mips_personality_relaxation
=yes
25871 rm -f conftest.s conftest.o conftest
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25874 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25875 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25877 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25883 # Mips and HP-UX need the GNU assembler.
25884 # Linux on IA64 might be able to use the Intel assembler.
25887 mips
*-*-* |
*-*-hpux* )
25888 if test x
$gas_flag = xyes \
25889 ||
test x
"$host" != x
"$build" \
25890 ||
test ! -x "$gcc_cv_as" \
25891 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25894 echo "*** This configuration requires the GNU assembler" >&2
25900 # ??? Not all targets support dwarf2 debug_line, even within a version
25901 # of gas. Moreover, we need to emit a valid instruction to trigger any
25902 # info to the output file. So, as supported targets are added to gas 2.11,
25903 # add some instruction here to (also) show we expect this might work.
25904 # ??? Once 2.11 is released, probably need to add first known working
25905 # version to the per-target configury.
25906 case "$cpu_type" in
25907 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25908 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25918 if test x
"$insn" != x
; then
25920 .file 1 \"conftest.s\"
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25924 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25925 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25926 $as_echo_n "(cached) " >&6
25928 gcc_cv_as_dwarf2_debug_line
=no
25929 if test $in_tree_gas = yes; then
25930 if test $in_tree_gas_is_elf = yes \
25931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25932 then gcc_cv_as_dwarf2_debug_line
=yes
25934 elif test x
$gcc_cv_as != x
; then
25935 $as_echo "$conftest_s" > conftest.s
25936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25938 (eval $ac_try) 2>&5
25940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25941 test $ac_status = 0; }; }
25943 if test x
$gcc_cv_objdump != x \
25944 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25945 |
grep debug_line
> /dev
/null
2>&1; then
25946 gcc_cv_as_dwarf2_debug_line
=yes
25949 echo "configure: failed program was" >&5
25952 rm -f conftest.o conftest.s
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25956 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25959 # The .debug_line file table must be in the exact order that
25960 # we specified the files, since these indices are also used
25961 # by DW_AT_decl_file. Approximate this test by testing if
25962 # the assembler bitches if the same index is assigned twice.
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25964 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25965 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25966 $as_echo_n "(cached) " >&6
25968 gcc_cv_as_dwarf2_file_buggy
=no
25969 if test x
$gcc_cv_as != x
; then
25970 $as_echo ' .file 1 "foo.s"
25971 .file 1 "bar.s"' > conftest.s
25972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25979 gcc_cv_as_dwarf2_file_buggy
=yes
25981 echo "configure: failed program was" >&5
25984 rm -f conftest.o conftest.s
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25988 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25991 if test $gcc_cv_as_dwarf2_debug_line = yes \
25992 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25994 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25999 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26000 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26001 $as_echo_n "(cached) " >&6
26003 gcc_cv_as_gdwarf2_flag
=no
26004 if test $in_tree_gas = yes; then
26005 if test $in_tree_gas_is_elf = yes \
26006 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26007 then gcc_cv_as_gdwarf2_flag
=yes
26009 elif test x
$gcc_cv_as != x
; then
26010 $as_echo "$insn" > conftest.s
26011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26013 (eval $ac_try) 2>&5
26015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26016 test $ac_status = 0; }; }
26018 gcc_cv_as_gdwarf2_flag
=yes
26020 echo "configure: failed program was" >&5
26023 rm -f conftest.o conftest.s
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26027 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26028 if test $gcc_cv_as_gdwarf2_flag = yes; then
26030 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26035 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26036 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26037 $as_echo_n "(cached) " >&6
26039 gcc_cv_as_gstabs_flag
=no
26040 if test $in_tree_gas = yes; then
26041 if test $in_tree_gas_is_elf = yes \
26042 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26043 then gcc_cv_as_gstabs_flag
=yes
26045 elif test x
$gcc_cv_as != x
; then
26046 $as_echo "$insn" > conftest.s
26047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26049 (eval $ac_try) 2>&5
26051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26052 test $ac_status = 0; }; }
26054 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26055 # and warns about it, but still exits successfully. So check for
26057 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26059 (eval $ac_try) 2>&5
26061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26062 test $ac_status = 0; }; }
26064 else gcc_cv_as_gstabs_flag
=yes
26067 echo "configure: failed program was" >&5
26070 rm -f conftest.o conftest.s
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26074 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26075 if test $gcc_cv_as_gstabs_flag = yes; then
26077 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26082 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26083 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26084 $as_echo_n "(cached) " >&6
26086 gcc_cv_as_debug_prefix_map_flag
=no
26087 if test $in_tree_gas = yes; then
26088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26089 then gcc_cv_as_debug_prefix_map_flag
=yes
26091 elif test x
$gcc_cv_as != x
; then
26092 $as_echo "$insn" > conftest.s
26093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26095 (eval $ac_try) 2>&5
26097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26098 test $ac_status = 0; }; }
26100 gcc_cv_as_debug_prefix_map_flag
=yes
26102 echo "configure: failed program was" >&5
26105 rm -f conftest.o conftest.s
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26109 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26110 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26112 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26118 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26119 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26120 $as_echo_n "(cached) " >&6
26122 gcc_cv_as_lcomm_with_alignment
=no
26123 if test x
$gcc_cv_as != x
; then
26124 $as_echo '.lcomm bar,4,16' > conftest.s
26125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26132 gcc_cv_as_lcomm_with_alignment
=yes
26134 echo "configure: failed program was" >&5
26137 rm -f conftest.o conftest.s
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26141 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26142 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26144 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26148 # Check whether --enable-gnu-unique-object was given.
26149 if test "${enable_gnu_unique_object+set}" = set; then :
26150 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26152 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26153 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26157 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26158 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26159 $as_echo_n "(cached) " >&6
26161 gcc_cv_as_gnu_unique_object
=no
26162 if test $in_tree_gas = yes; then
26163 if test $in_tree_gas_is_elf = yes \
26164 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26165 then gcc_cv_as_gnu_unique_object
=yes
26167 elif test x
$gcc_cv_as != x
; then
26168 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26171 (eval $ac_try) 2>&5
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; }
26176 gcc_cv_as_gnu_unique_object
=yes
26178 echo "configure: failed program was" >&5
26181 rm -f conftest.o conftest.s
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26185 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26186 if test $gcc_cv_as_gnu_unique_object = yes; then
26187 # We need to unquote above to to use the definition from config.gcc.
26188 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26189 if test x
$host = x
$build -a x
$host = x
$target &&
26190 ldd
--version 2>/dev
/null
&&
26191 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26192 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26193 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26194 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26195 if test "$glibcnum" -ge 2011 ; then
26196 enable_gnu_unique_object
=yes
26202 if test x
$enable_gnu_unique_object = xyes
; then
26204 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26209 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26210 if test "${gcc_cv_as_line_zero+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26213 gcc_cv_as_line_zero
=no
26214 if test $in_tree_gas = yes; then
26215 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26216 then gcc_cv_as_line_zero
=yes
26218 elif test "x$gcc_cv_as" != x
; then
26219 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26220 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26222 (eval $ac_try) 2>&5
26224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26225 test $ac_status = 0; }; } &&
26226 test "x`cat conftest.out`" = x
26228 gcc_cv_as_line_zero
=yes
26230 echo "configure: failed program was" >&5
26232 echo "configure: error output was" >&5
26233 cat conftest.out
>&5
26235 rm -f conftest.o conftest.s conftest.out
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26239 $as_echo "$gcc_cv_as_line_zero" >&6; }
26240 if test "x$gcc_cv_as_line_zero" = xyes
; then
26242 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26247 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26248 gcc_cv_ld_eh_frame_hdr
=no
26249 if test $in_tree_ld = yes ; then
26250 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 \
26251 && test $in_tree_ld_is_elf = yes; then
26252 gcc_cv_ld_eh_frame_hdr
=yes
26254 elif test x
$gcc_cv_ld != x
; then
26255 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26256 # Check if linker supports --eh-frame-hdr option
26257 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26258 gcc_cv_ld_eh_frame_hdr
=yes
26263 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26264 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26265 gcc_cv_ld_eh_frame_hdr
=yes
26272 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26274 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26278 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26281 $as_echo_n "checking linker position independent executable support... " >&6; }
26283 if test $in_tree_ld = yes ; then
26284 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 \
26285 && test $in_tree_ld_is_elf = yes; then
26288 elif test x
$gcc_cv_ld != x
; then
26289 # Check if linker supports -pie option
26290 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26294 if test x
"$gcc_cv_ld_pie" = xyes
; then
26296 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26300 $as_echo "$gcc_cv_ld_pie" >&6; }
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26303 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26304 gcc_cv_ld_eh_gc_sections
=no
26305 if test $in_tree_ld = yes ; then
26306 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 \
26307 && test $in_tree_ld_is_elf = yes; then
26308 gcc_cv_ld_eh_gc_sections
=yes
26310 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26311 cat > conftest.s
<<EOF
26314 .type _start, @function
26317 .size _start, .-_start
26318 .section .text.foo,"ax",@progbits
26319 .type foo, @function
26323 .section .gcc_except_table.foo,"a",@progbits
26326 .section .eh_frame,"a",@progbits
26329 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26330 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26331 |
grep "gc-sections option ignored" > /dev
/null
; then
26332 gcc_cv_ld_eh_gc_sections
=no
26333 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26334 |
grep gcc_except_table
> /dev
/null
; then
26335 gcc_cv_ld_eh_gc_sections
=yes
26336 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26337 if test x
$gcc_cv_as_comdat_group != xyes
; then
26338 gcc_cv_ld_eh_gc_sections
=no
26339 cat > conftest.s
<<EOF
26342 .type _start, @function
26345 .size _start, .-_start
26346 .section .gnu.linkonce.t.foo,"ax",@progbits
26347 .type foo, @function
26351 .section .gcc_except_table.foo,"a",@progbits
26354 .section .eh_frame,"a",@progbits
26357 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26358 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26359 |
grep "gc-sections option ignored" > /dev
/null
; then
26360 gcc_cv_ld_eh_gc_sections
=no
26361 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26362 |
grep gcc_except_table
> /dev
/null
; then
26363 gcc_cv_ld_eh_gc_sections
=yes
26369 rm -f conftest.s conftest.o conftest
26373 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26374 gcc_cv_ld_eh_gc_sections
=no
26377 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26379 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26383 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26386 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26387 gcc_cv_ld_eh_gc_sections_bug
=no
26388 if test $in_tree_ld = yes ; then
26389 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 \
26390 && test $in_tree_ld_is_elf = yes; then
26391 gcc_cv_ld_eh_gc_sections_bug
=yes
26393 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
26394 gcc_cv_ld_eh_gc_sections_bug
=yes
26395 cat > conftest.s
<<EOF
26398 .type _start, @function
26401 .size _start, .-_start
26402 .section .text.startup.foo,"ax",@progbits
26403 .type foo, @function
26407 .section .gcc_except_table.foo,"a",@progbits
26410 .section .eh_frame,"a",@progbits
26413 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26414 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26415 |
grep "gc-sections option ignored" > /dev
/null
; then
26417 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26418 |
grep gcc_except_table
> /dev
/null
; then
26419 gcc_cv_ld_eh_gc_sections_bug
=no
26422 rm -f conftest.s conftest.o conftest
26424 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26426 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26430 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26437 $as_echo_n "checking linker --as-needed support... " >&6; }
26438 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26439 $as_echo_n "(cached) " >&6
26441 gcc_cv_ld_as_needed
=no
26442 if test $in_tree_ld = yes ; then
26443 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 \
26444 && test $in_tree_ld_is_elf = yes; then
26445 gcc_cv_ld_as_needed
=yes
26447 elif test x
$gcc_cv_ld != x
; then
26448 # Check if linker supports --as-needed and --no-as-needed options
26449 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26450 gcc_cv_ld_as_needed
=yes
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26456 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26457 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26459 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26463 case "$target:$tm_file" in
26464 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26467 emul_name
="-melf64ppc"
26470 emul_name
="-melf64ppc_fbsd"
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26474 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26475 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26476 $as_echo_n "(cached) " >&6
26478 gcc_cv_ld_no_dot_syms
=no
26479 if test $in_tree_ld = yes ; then
26480 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
26481 gcc_cv_ld_no_dot_syms
=yes
26483 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26484 cat > conftest1.s
<<EOF
26488 cat > conftest2.s
<<EOF
26489 .section ".opd","aw"
26492 .type foo,@function
26494 .quad .LEfoo,.TOC.@tocbase,0
26500 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26501 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26502 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26503 gcc_cv_ld_no_dot_syms
=yes
26505 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26510 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26511 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26513 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26518 $as_echo_n "checking linker large toc support... " >&6; }
26519 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26520 $as_echo_n "(cached) " >&6
26522 gcc_cv_ld_large_toc
=no
26523 if test $in_tree_ld = yes ; then
26524 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
26525 gcc_cv_ld_large_toc
=yes
26527 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26528 cat > conftest.s
<<EOF
26529 .section ".tbss","awT",@nobits
26535 addis 9,13,ie0@got@tprel@ha
26536 ld 9,ie0@got@tprel@l(9)
26538 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26539 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26540 gcc_cv_ld_large_toc
=yes
26542 rm -f conftest conftest.o conftest.s
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26547 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26548 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26550 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26557 $as_echo_n "checking linker --build-id support... " >&6; }
26558 if test "${gcc_cv_ld_buildid+set}" = set; then :
26559 $as_echo_n "(cached) " >&6
26561 gcc_cv_ld_buildid
=no
26562 if test $in_tree_ld = yes ; then
26563 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26564 "$gcc_cv_gld_minor_version" -ge 18 -o \
26565 "$gcc_cv_gld_major_version" -gt 2 \
26566 && test $in_tree_ld_is_elf = yes; then
26567 gcc_cv_ld_buildid
=yes
26569 elif test x
$gcc_cv_ld != x
; then
26570 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26571 gcc_cv_ld_buildid
=yes
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26576 $as_echo "$gcc_cv_ld_buildid" >&6; }
26577 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26579 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26583 # Check whether --enable-linker-build-id was given.
26584 if test "${enable_linker_build_id+set}" = set; then :
26585 enableval
=$enable_linker_build_id;
26587 enable_linker_build_id
=no
26591 if test x
"$enable_linker_build_id" = xyes
; then
26592 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26594 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26598 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26602 # In binutils 2.21, GNU ld gained support for new emulations fully
26603 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26605 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26606 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26607 $as_echo_n "(cached) " >&6
26609 gcc_cv_ld_sol2_emulation
=no
26610 if test $in_tree_ld = yes ; then
26611 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26612 "$gcc_cv_gld_minor_version" -ge 21 -o \
26613 "$gcc_cv_gld_major_version" -gt 2 \
26614 && test $in_tree_ld_is_elf = yes; then
26615 gcc_cv_ld_sol2_emulation
=yes
26617 elif test x
$gcc_cv_ld != x
; then
26618 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26619 grep _sol2
> /dev
/null
; then
26620 gcc_cv_ld_sol2_emulation
=yes
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26625 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26626 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26628 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26633 $as_echo_n "checking linker --sysroot support... " >&6; }
26634 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26637 gcc_cv_ld_sysroot
=no
26638 if test $in_tree_ld = yes ; then
26639 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
26640 gcc_cv_ld_sysroot
=yes
26642 elif test x
$gcc_cv_ld != x
; then
26643 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26644 gcc_cv_ld_sysroot
=yes
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26649 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26650 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26652 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26656 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26657 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26658 && test "$prefix" != "NONE"; then
26660 cat >>confdefs.h
<<_ACEOF
26661 #define PREFIX_INCLUDE_DIR "$prefix/include"
26666 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26667 if test "x$with_headers" != x
; then
26668 target_header_dir
=$with_headers
26669 elif test "x$with_sysroot" = x
; then
26670 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26671 elif test "x$with_build_sysroot" != "x"; then
26672 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26673 elif test "x$with_sysroot" = xyes
; then
26674 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26676 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26679 target_header_dir
=${native_system_header_dir}
26682 # Test for stack protector support in target C library.
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26684 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26685 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26686 $as_echo_n "(cached) " >&6
26688 gcc_cv_libc_provides_ssp
=no
26690 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26691 # glibc 2.4 and later provides __stack_chk_fail and
26692 # either __stack_chk_guard, or TLS access to stack guard canary.
26693 if test -f $target_header_dir/features.h \
26694 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26695 $target_header_dir/features.h
> /dev
/null
; then
26696 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26697 $target_header_dir/features.h
> /dev
/null
; then
26698 gcc_cv_libc_provides_ssp
=yes
26699 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26700 $target_header_dir/features.h
> /dev
/null \
26701 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26702 $target_header_dir/features.h
> /dev
/null
; then
26703 gcc_cv_libc_provides_ssp
=yes
26704 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26705 $target_header_dir/features.h
> /dev
/null
&& \
26706 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26707 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26708 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26709 gcc_cv_libc_provides_ssp
=yes
26711 # all versions of Bionic support stack protector
26712 elif test -f $target_header_dir/sys
/cdefs.h \
26713 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26714 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26715 gcc_cv_libc_provides_ssp
=yes
26719 # Avoid complicated tests (see
26720 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26721 # simply assert that glibc does provide this, which is true for all
26722 # realistically usable GNU/Hurd configurations.
26723 gcc_cv_libc_provides_ssp
=yes;;
26724 *-*-darwin* |
*-*-freebsd*)
26725 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26726 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26727 gcc_cv_libc_provides_ssp
=yes
26729 echo "no __stack_chk_fail on this target"
26733 *) gcc_cv_libc_provides_ssp
=no
;;
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26737 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26739 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26741 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26745 # Test for <sys/sdt.h> on the target.
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26748 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26750 if test -f $target_header_dir/sys
/sdt.h
; then
26753 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26757 $as_echo "$have_sys_sdt_h" >&6; }
26759 # Check if TFmode long double should be used by default or not.
26760 # Some glibc targets used DFmode long double, but with glibc 2.4
26761 # and later they can use TFmode.
26763 powerpc
*-*-linux* | \
26764 sparc
*-*-linux* | \
26768 # Check whether --with-long-double-128 was given.
26769 if test "${with_long_double_128+set}" = set; then :
26770 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26772 gcc_cv_target_ldbl128
=no
26773 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26774 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26775 && gcc_cv_target_ldbl128
=yes
26781 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26783 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26788 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26789 gcc_cv_target_dl_iterate_phdr
=unknown
26791 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26792 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26793 # libdl there, both complicating its use and breaking compatibility
26794 # between Solaris 10 updates.
26795 *-*-solaris2.1
[1-9]*)
26796 # <link.h> needs both a dl_iterate_phdr declaration and support for
26797 # compilation with largefile support.
26798 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26799 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26800 gcc_cv_target_dl_iterate_phdr
=yes
26802 gcc_cv_target_dl_iterate_phdr
=no
26807 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26809 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26813 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26815 # Find out what GC implementation we want, or may, use.
26817 # Check whether --with-gc was given.
26818 if test "${with_gc+set}" = set; then :
26819 withval
=$with_gc; case "$withval" in
26826 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26830 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26838 echo "Using $GGC for garbage collection."
26840 # Libraries to use on the host. This will normally be set by the top
26841 # level Makefile. Here we simply capture the value for our Makefile.
26842 if test -z "${HOST_LIBS+set}"; then
26847 # Use the system's zlib library.
26849 zlibinc
="-I\$(srcdir)/../zlib"
26851 # Check whether --with-system-zlib was given.
26852 if test "${with_system_zlib+set}" = set; then :
26853 withval
=$with_system_zlib; zlibdir
=
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26863 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26864 # Check whether --enable-maintainer-mode was given.
26865 if test "${enable_maintainer_mode+set}" = set; then :
26866 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26873 $as_echo "$maintainer_mode" >&6; }
26875 if test "$maintainer_mode" = "yes"; then
26885 # Make empty files to contain the specs and options for each language.
26886 # Then add #include lines to for a compiler that has specs and/or options.
26892 # These (without "all_") are set in each config-lang.in.
26893 # `language' must be a single word so is spelled singularly.
26896 all_outputs
='Makefile'
26897 # List of language makefile fragments.
26898 all_lang_makefrags
=
26899 # Additional files for gengtype
26900 all_gtfiles
="$target_gtfiles"
26902 # These are the languages that are set in --enable-languages,
26903 # and are available in the GCC tree.
26904 all_selected_languages
=
26906 # Add the language fragments.
26907 # Languages are added via two mechanisms. Some information must be
26908 # recorded in makefile variables, these are defined in config-lang.in.
26909 # We accumulate them and plug them into the main Makefile.
26910 # The other mechanism is a set of hooks for each of the main targets
26911 # like `clean', `install', etc.
26913 language_hooks
="Make-hooks"
26915 for lang
in ${srcdir}/*/config-lang.
in
26917 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26919 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26920 if test "x$lang_alias" = x
26922 echo "$lang doesn't set \$language." 1>&2
26925 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26926 subdirs
="$subdirs $subdir"
26928 # $gcc_subdir is where the gcc integration files are to be found
26929 # for a language, both for internal compiler purposes (compiler
26930 # sources implementing front-end to GCC tree converters), and for
26931 # build infrastructure purposes (Make-lang.in, etc.)
26933 # This will be <subdir> (relative to $srcdir) if a line like
26934 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26935 # is found in <langdir>/config-lang.in, and will remain <langdir>
26938 # Except for the language alias (fetched above), the regular
26939 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26940 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26941 # only this and the language alias.
26943 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26944 if [ "$gcc_subdir" = "" ]; then
26945 gcc_subdir
="$subdir"
26948 case ",$enable_languages," in
26950 all_selected_languages
="$all_selected_languages $lang_alias"
26951 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26952 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26963 .
${srcdir}/$gcc_subdir/config-lang.
in
26964 if test "x$language" = x
26966 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26971 case ",$enable_languages," in
26972 *,$lang_alias,*) ;;
26974 for i
in $subdir_requires; do
26975 test -f "${srcdir}/$i/config-lang.in" && continue
26983 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26984 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26985 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26986 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26988 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26989 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26991 all_languages
="$all_languages $language"
26992 all_compilers
="$all_compilers $compilers"
26993 all_outputs
="$all_outputs $outputs"
26994 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26995 case ",$enable_languages," in
26998 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27008 for language
in $all_selected_languages
27010 check_languages
="$check_languages check-$language"
27013 # We link each language in with a set of hooks, reached indirectly via
27014 # lang.${target}. Only do so for selected languages.
27018 target_list
="all.cross start.encap rest.encap tags \
27019 install-common install-man install-info install-pdf install-html dvi \
27020 pdf html uninstall info man srcextra srcman srcinfo \
27021 mostlyclean clean distclean maintainer-clean install-plugin"
27023 for t
in $target_list
27026 for lang
in $all_selected_languages
27030 echo "lang.$t: $x" >> Make-hooks
27034 # Option include files
27037 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27038 option_includes
="option-includes.mk"
27047 echo "dir ." > .gdbinit
27048 echo "dir ${srcdir}" >> .gdbinit
27049 if test x
$gdb_needs_out_file_path = xyes
27051 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27053 if test "x$subdirs" != x
; then
27056 echo "dir ${srcdir}/$s" >> .gdbinit
27059 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27061 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27065 # Find a directory in which to install a shared libgcc.
27067 # Check whether --enable-version-specific-runtime-libs was given.
27068 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27069 enableval
=$enable_version_specific_runtime_libs;
27073 # Substitute configuration variables
27137 if test x
${build} = x
${host} ; then
27138 if test x
${host} = x
${target} ; then
27139 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27141 echo "Links are now set up to build a cross-compiler" 1>&2
27142 echo " from ${host} to ${target}." 1>&2
27145 if test x
${host} = x
${target} ; then
27146 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27147 echo " for ${target}." 1>&2
27149 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27150 echo " from ${host} to ${target}." 1>&2
27162 if test "x${CLOOGLIBS}" != "x" ; then
27164 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27168 # Check for plugin support
27169 # Check whether --enable-plugin was given.
27170 if test "${enable_plugin+set}" = set; then :
27171 enableval
=$enable_plugin; enable_plugin
=$enableval
27173 enable_plugin
=yes; default_plugin
=yes
27181 if test x
$build = x
$host; then
27182 export_sym_check
="nm${exeext} -g"
27183 elif test x
$host = x
$target; then
27184 export_sym_check
="$gcc_cv_nm -g"
27190 if test x
$build = x
$host; then
27191 export_sym_check
="objdump${exeext} -T"
27192 elif test x
$host = x
$target; then
27193 export_sym_check
="$gcc_cv_objdump -T"
27200 if test x
"$enable_plugin" = x
"yes"; then
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27203 $as_echo_n "checking for exported symbols... " >&6; }
27204 if test "x$export_sym_check" != x
; then
27205 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27206 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27207 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27208 : # No need to use a flag
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27210 $as_echo "yes" >&6; }
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27213 $as_echo "yes" >&6; }
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27215 $as_echo_n "checking for -rdynamic... " >&6; }
27216 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27217 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27218 plugin_rdynamic
=yes
27219 pluginlibs
="-rdynamic"
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27225 $as_echo "$plugin_rdynamic" >&6; }
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27229 $as_echo "unable to check" >&6; }
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27235 $as_echo_n "checking for library containing dlopen... " >&6; }
27236 if test "${ac_cv_search_dlopen+set}" = set; then :
27237 $as_echo_n "(cached) " >&6
27239 ac_func_search_save_LIBS
=$LIBS
27240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27241 /* end confdefs.h. */
27243 /* Override any GCC internal prototype to avoid an error.
27244 Use char because int might match the return type of a GCC
27245 builtin and then its argument prototype would still apply. */
27258 for ac_lib
in '' dl
; do
27259 if test -z "$ac_lib"; then
27260 ac_res
="none required"
27263 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27265 if ac_fn_c_try_link
"$LINENO"; then :
27266 ac_cv_search_dlopen
=$ac_res
27268 rm -f core conftest.err conftest.
$ac_objext \
27270 if test "${ac_cv_search_dlopen+set}" = set; then :
27274 if test "${ac_cv_search_dlopen+set}" = set; then :
27277 ac_cv_search_dlopen
=no
27279 rm conftest.
$ac_ext
27280 LIBS
=$ac_func_search_save_LIBS
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27283 $as_echo "$ac_cv_search_dlopen" >&6; }
27284 ac_res
=$ac_cv_search_dlopen
27285 if test "$ac_res" != no
; then :
27286 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27290 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27291 pluginlibs
="$pluginlibs -ldl"
27295 # Check that we can build shared objects with -fPIC -shared
27296 saved_LDFLAGS
="$LDFLAGS"
27297 saved_CFLAGS
="$CFLAGS"
27300 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27301 CFLAGS
="$CFLAGS -fPIC"
27302 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27305 CFLAGS
="$CFLAGS -fPIC"
27306 LDFLAGS
="$LDFLAGS -fPIC -shared"
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27310 $as_echo_n "checking for -fPIC -shared... " >&6; }
27311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27312 /* end confdefs.h. */
27322 if ac_fn_c_try_link
"$LINENO"; then :
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27324 $as_echo "yes" >&6; }; have_pic_shared
=yes
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27327 $as_echo "no" >&6; }; have_pic_shared
=no
27329 rm -f core conftest.err conftest.
$ac_objext \
27330 conftest
$ac_exeext conftest.
$ac_ext
27331 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27335 LDFLAGS
="$saved_LDFLAGS"
27336 CFLAGS
="$saved_CFLAGS"
27338 # If plugin support had been requested but not available, fail.
27339 if test x
"$enable_plugin" = x
"no" ; then
27340 if test x
"$default_plugin" != x
"yes"; then
27342 Building GCC with plugin support requires a host that supports
27343 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27350 if test x
"$enable_plugin" = x
"yes"; then
27352 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27357 # Check whether --enable-libquadmath-support was given.
27358 if test "${enable_libquadmath_support+set}" = set; then :
27359 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27361 ENABLE_LIBQUADMATH_SUPPORT
=yes
27364 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27366 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27371 # Specify what hash style to use by default.
27373 # Check whether --with-linker-hash-style was given.
27374 if test "${with_linker_hash_style+set}" = set; then :
27375 withval
=$with_linker_hash_style; case x
"$withval" in
27377 LINKER_HASH_STYLE
=sysv
27380 LINKER_HASH_STYLE
=gnu
27383 LINKER_HASH_STYLE
=both
27386 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27390 LINKER_HASH_STYLE
=''
27393 if test x
"${LINKER_HASH_STYLE}" != x
; then
27395 cat >>confdefs.h
<<_ACEOF
27396 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27401 # Configure the subdirectories
27402 # AC_CONFIG_SUBDIRS($subdirs)
27404 # Create the Makefile
27405 # and configure language subdirectories
27406 ac_config_files
="$ac_config_files $all_outputs"
27409 ac_config_commands
="$ac_config_commands default"
27411 cat >confcache
<<\_ACEOF
27412 # This file is a shell script that caches the results of configure
27413 # tests run on this system so they can be shared between configure
27414 # scripts and configure runs, see configure's option --config-cache.
27415 # It is not useful on other systems. If it contains results you don't
27416 # want to keep, you may remove or edit it.
27418 # config.status only pays attention to the cache file if you give it
27419 # the --recheck option to rerun configure.
27421 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27422 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27423 # following values.
27427 # The following way of writing the cache mishandles newlines in values,
27428 # but we know of no workaround that is simple, portable, and efficient.
27429 # So, we kill variables containing newlines.
27430 # Ultrix sh set writes to stderr and can't be redirected directly,
27431 # and sets the high bit in the cache file unless we assign to the vars.
27433 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27434 eval ac_val
=\$
$ac_var
27438 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27439 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27442 _ | IFS | as_nl
) ;; #(
27443 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27444 *) { eval $ac_var=; unset $ac_var;} ;;
27450 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27451 *${as_nl}ac_space
=\
*)
27452 # `set' does not quote correctly, so add quotes: double-quote
27453 # substitution turns \\\\ into \\, and sed turns \\ into \.
27456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27459 # `set' quotes correctly as required by POSIX, so do not add quotes.
27460 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27471 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27473 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27474 if test -w "$cache_file"; then
27475 test "x$cache_file" != "x/dev/null" &&
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27477 $as_echo "$as_me: updating cache $cache_file" >&6;}
27478 cat confcache
>$cache_file
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27481 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27486 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27487 # Let make expand exec_prefix.
27488 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27490 DEFS
=-DHAVE_CONFIG_H
27494 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27495 # 1. Remove the extension, and $U if already installed.
27496 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27497 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27498 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27499 # will be set to the directory where LIBOBJS objects are built.
27500 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27501 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27503 LIBOBJS
=$ac_libobjs
27505 LTLIBOBJS
=$ac_ltlibobjs
27510 : ${CONFIG_STATUS=./config.status}
27512 ac_clean_files_save
=$ac_clean_files
27513 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27517 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27519 # Generated by $as_me.
27520 # Run this file to recreate the current configuration.
27521 # Compiler output produced by configure, useful for debugging
27522 # configure, is in config.log if it exists.
27525 ac_cs_recheck=false
27528 SHELL=\${CONFIG_SHELL-$SHELL}
27531 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27532 ## -------------------- ##
27533 ## M4sh Initialization. ##
27534 ## -------------------- ##
27536 # Be more Bourne compatible
27537 DUALCASE
=1; export DUALCASE
# for MKS sh
27538 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27542 # is contrary to our usage. Disable this feature.
27543 alias -g '${1+"$@"}'='"$@"'
27544 setopt NO_GLOB_SUBST
27546 case `(set -o) 2>/dev/null` in #(
27558 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27559 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27562 # Prefer a ksh shell builtin over an external printf program on Solaris,
27563 # but without wasting forks for bash or zsh.
27564 if test -z "$BASH_VERSION$ZSH_VERSION" \
27565 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27566 as_echo='print
-r --'
27567 as_echo_n='print
-rn --'
27568 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27569 as_echo='printf %s
\n'
27570 as_echo_n='printf %s
'
27572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27573 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27574 as_echo_n='/usr
/ucb
/echo -n'
27576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27577 as_echo_n_body='eval
27581 expr "X$arg" : "X\\(.*\\)$as_nl";
27582 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27584 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27586 export as_echo_n_body
27587 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27589 export as_echo_body
27590 as_echo='sh
-c $as_echo_body as_echo
'
27593 # The user is always right.
27594 if test "${PATH_SEPARATOR+set}" != set; then
27596 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27597 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27604 # We need space, tab and new line, in precisely that order. Quoting is
27605 # there to prevent editors from complaining about space-tab.
27606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27607 # splitting by setting IFS to empty value.)
27610 # Find who we are. Look in the path if we contain no directory separator.
27612 *[\\/]* ) as_myself=$0 ;;
27613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27614 for as_dir in $PATH
27617 test -z "$as_dir" && as_dir=.
27618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27624 # We did not find ourselves, most probably we were run as `sh COMMAND'
27625 # in which case we are not to be found in the path.
27626 if test "x$as_myself" = x
; then
27629 if test ! -f "$as_myself"; then
27630 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27634 # Unset variables that we do not need and which cause bugs (e.g. in
27635 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27636 # suppresses any "Segmentation fault" message there. '((' could
27637 # trigger a bug in pdksh 5.2.14.
27638 for as_var
in BASH_ENV ENV MAIL MAILPATH
27639 do eval test x\
${$as_var+set} = xset \
27640 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27653 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27656 # as_fn_error ERROR [LINENO LOG_FD]
27657 # ---------------------------------
27658 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27659 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27660 # script with status $?, using 1 if that was 0.
27663 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27665 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27666 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27668 $as_echo "$as_me: error: $1" >&2
27669 as_fn_exit
$as_status
27673 # as_fn_set_status STATUS
27674 # -----------------------
27675 # Set $? to STATUS, without forking.
27676 as_fn_set_status
()
27679 } # as_fn_set_status
27681 # as_fn_exit STATUS
27682 # -----------------
27683 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27687 as_fn_set_status
$1
27693 # Portably unset VAR.
27696 { eval $1=; unset $1;}
27698 as_unset
=as_fn_unset
27699 # as_fn_append VAR VALUE
27700 # ----------------------
27701 # Append the text in VALUE to the end of the definition contained in VAR. Take
27702 # advantage of any shell optimizations that allow amortized linear growth over
27703 # repeated appends, instead of the typical quadratic growth present in naive
27705 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27706 eval 'as_fn_append ()
27717 # as_fn_arith ARG...
27718 # ------------------
27719 # Perform arithmetic evaluation on the ARGs, and store the result in the
27720 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27721 # must be portable across $(()) and expr.
27722 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27723 eval 'as_fn_arith ()
27730 as_val
=`expr "$@" || test $? -eq 1`
27735 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27736 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27742 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27743 as_basename
=basename
27748 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27754 as_me
=`$as_basename -- "$0" ||
27755 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27756 X"$0" : 'X\(//\)$' \| \
27757 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27759 sed '/^.*\/\([^/][^/]*\)\/*$/{
27773 # Avoid depending upon Character Ranges.
27774 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27775 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27776 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27777 as_cr_digits
='0123456789'
27778 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27780 ECHO_C
= ECHO_N
= ECHO_T
=
27781 case `echo -n x` in #(((((
27783 case `echo 'xy\c'` in
27784 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27786 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27793 rm -f conf$$ conf$$.exe conf$$.
file
27794 if test -d conf$$.dir
; then
27795 rm -f conf$$.dir
/conf$$.
file
27798 mkdir conf$$.dir
2>/dev
/null
27800 if (echo >conf$$.
file) 2>/dev
/null
; then
27801 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27803 # ... but there are two gotchas:
27804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27806 # In both cases, we have to default to `cp -p'.
27807 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27809 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27817 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27818 rmdir conf$$.dir
2>/dev
/null
27823 # Create "$as_dir" as a directory, including parents if necessary.
27828 -*) as_dir
=.
/$as_dir;;
27830 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27834 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27835 *) as_qdir
=$as_dir;;
27837 as_dirs
="'$as_qdir' $as_dirs"
27838 as_dir
=`$as_dirname -- "$as_dir" ||
27839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27840 X"$as_dir" : 'X\(//\)[^/]' \| \
27841 X"$as_dir" : 'X\(//\)$' \| \
27842 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27843 $as_echo X"$as_dir" |
27844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27848 /^X\(\/\/\)[^/].*/{
27861 test -d "$as_dir" && break
27863 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27864 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27868 if mkdir
-p .
2>/dev
/null
; then
27869 as_mkdir_p
='mkdir -p "$as_dir"'
27871 test -d .
/-p && rmdir .
/-p
27875 if test -x / >/dev
/null
2>&1; then
27876 as_test_x
='test -x'
27878 if ls -dL / >/dev
/null
2>&1; then
27885 if test -d "$1"; then
27891 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27892 ???[sx]*):;;*)false;;esac;fi
27896 as_executable_p
=$as_test_x
27898 # Sed expression to map a string onto a valid CPP name.
27899 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27901 # Sed expression to map a string onto a valid variable name.
27902 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27906 ## ----------------------------------- ##
27907 ## Main body of $CONFIG_STATUS script. ##
27908 ## ----------------------------------- ##
27910 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27913 # Save the log message, to keep $0 and so on meaningful, and to
27914 # report actual input values of CONFIG_FILES etc. instead of their
27915 # values after options handling.
27917 This file was extended by $as_me, which was
27918 generated by GNU Autoconf 2.64. Invocation command line was
27920 CONFIG_FILES = $CONFIG_FILES
27921 CONFIG_HEADERS = $CONFIG_HEADERS
27922 CONFIG_LINKS = $CONFIG_LINKS
27923 CONFIG_COMMANDS = $CONFIG_COMMANDS
27926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27931 case $ac_config_files in *"
27932 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27935 case $ac_config_headers in *"
27936 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27941 # Files that config.status was made for.
27942 config_files="$ac_config_files"
27943 config_headers="$ac_config_headers"
27944 config_commands="$ac_config_commands"
27948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27950 \`$as_me' instantiates files and other configuration actions
27951 from templates according to the current configuration. Unless the files
27952 and actions are specified as TAGs, all are instantiated by default.
27954 Usage: $0 [OPTION]... [TAG]...
27956 -h, --help print this help, then exit
27957 -V, --version print version number and configuration settings, then exit
27958 -q, --quiet, --silent
27959 do not print progress messages
27960 -d, --debug don't remove temporary files
27961 --recheck update $as_me by reconfiguring in the same conditions
27962 --file=FILE[:TEMPLATE]
27963 instantiate the configuration file FILE
27964 --header=FILE[:TEMPLATE]
27965 instantiate the configuration header FILE
27967 Configuration files:
27970 Configuration headers:
27973 Configuration commands:
27976 Report bugs to the package provider."
27979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27982 configured by $0, generated by GNU Autoconf 2.64,
27983 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27985 Copyright (C) 2009 Free Software Foundation, Inc.
27986 This config.status script is free software; the Free Software Foundation
27987 gives unlimited permission to copy, distribute and modify it."
27992 test -n "\$AWK" || AWK=awk
27995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27996 # The default lists apply if the user does not specify any file.
28002 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28003 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28014 # Handling of the options.
28015 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28017 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28018 $as_echo "$ac_cs_version"; exit ;;
28019 --debug |
--debu |
--deb |
--de |
--d |
-d )
28021 --file |
--fil |
--fi |
--f )
28024 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28026 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28027 ac_need_defaults
=false
;;
28028 --header |
--heade |
--head |
--hea )
28031 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28033 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28034 ac_need_defaults
=false
;;
28036 # Conflict between --help and --header
28037 as_fn_error
"ambiguous option: \`$1'
28038 Try \`$0 --help' for more information.";;
28039 --help |
--hel |
-h )
28040 $as_echo "$ac_cs_usage"; exit ;;
28041 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28042 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28045 # This is an error.
28046 -*) as_fn_error
"unrecognized option: \`$1'
28047 Try \`$0 --help' for more information." ;;
28049 *) as_fn_append ac_config_targets
" $1"
28050 ac_need_defaults
=false
;;
28056 ac_configure_extra_args
=
28058 if $ac_cs_silent; then
28060 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 if \$ac_cs_recheck; then
28066 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28068 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28069 CONFIG_SHELL='$SHELL'
28070 export CONFIG_SHELL
28075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28080 ## Running $as_me. ##
28086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28096 # Handling of arguments.
28097 for ac_config_target
in $ac_config_targets
28099 case $ac_config_target in
28100 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28101 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28102 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28103 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28104 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28105 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28107 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28112 # If the user did not use the arguments to specify the items to instantiate,
28113 # then the envvar interface is used. Set only those that are not.
28114 # We use the long form for the default assignment because of an extremely
28115 # bizarre bug on SunOS 4.1.3.
28116 if $ac_need_defaults; then
28117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28119 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28122 # Have a temporary directory for convenience. Make it in the build tree
28123 # simply because there is no reason against having it here, and in addition,
28124 # creating and moving files from /tmp can sometimes cause problems.
28125 # Hook for its removal unless debugging.
28126 # Note that there is a small window in which the directory will not be cleaned:
28127 # after its creation but before its name has been assigned to `$tmp'.
28131 trap 'exit_status=$?
28132 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28134 trap 'as_fn_exit 1' 1 2 13 15
28136 # Create a (secure) tmp directory for tmp files.
28139 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28140 test -n "$tmp" && test -d "$tmp"
28143 tmp
=.
/conf$$
-$RANDOM
28144 (umask 077 && mkdir
"$tmp")
28145 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28147 # Set up the scripts for CONFIG_FILES section.
28148 # No need to generate them if there are no CONFIG_FILES.
28149 # This happens for instance with `./config.status config.h'.
28150 if test -n "$CONFIG_FILES"; then
28152 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28153 ac_cs_awk_getline
=:
28154 ac_cs_awk_pipe_init
=
28155 ac_cs_awk_read_file
='
28156 while ((getline aline < (F[key])) > 0)
28159 ac_cs_awk_pipe_fini
=
28161 ac_cs_awk_getline
=false
28162 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28163 ac_cs_awk_read_file
='
28165 print "cat " F[key] " &&"
28166 '$ac_cs_awk_pipe_init
28167 # The final `:' finishes the AND list.
28168 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28170 ac_cr
=`echo X | tr X '\015'`
28171 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28172 # But we know of no other shell where ac_cr would be empty at this
28173 # point, so we can use a bashism as a fallback.
28174 if test "x$ac_cr" = x
; then
28175 eval ac_cr
=\$
\'\\r
\'
28177 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28178 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28181 ac_cs_awk_cr
=$ac_cr
28184 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28187 # Create commands to substitute file output variables.
28189 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28190 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28191 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28194 } >conf$
$files.sh
&&
28195 . .
/conf$
$files.sh ||
28196 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28197 rm -f conf$
$files.sh
28200 echo "cat >conf$$subs.awk <<_ACEOF" &&
28201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28203 } >conf$$subs.sh ||
28204 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28207 for ac_last_try in false false false false false :; do
28208 . ./conf$$subs.sh ||
28209 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28211 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28212 if test $ac_delim_n = $ac_delim_num; then
28214 elif $ac_last_try; then
28215 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28217 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28220 rm -f conf$$subs.sh
28222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28223 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28227 s/^/S["/; s
/!.
*/"]=/
28237 s/\(.\{148\}\).*/\1/
28239 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28244 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28251 s/\(.\{148\}\).*/\1/
28253 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28257 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28262 ' <conf$$subs.awk | sed '
28267 ' >>$CONFIG_STATUS || ac_write_fail=1
28268 rm -f conf$$subs.awk
28269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28271 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28272 for (key in S) S_is_set[key] = 1
28274 \$ac_cs_awk_pipe_init
28278 nfields = split(line, field, "@
")
28280 len = length(field[1])
28281 for (i = 2; i < nfields; i++) {
28283 keylen = length(key)
28284 if (S_is_set[key]) {
28286 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28287 len += length(value) + length(field[++i])
28292 if (nfields == 3 && !substed) {
28294 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28295 \$ac_cs_awk_read_file
28301 \$ac_cs_awk_pipe_fini
28304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28305 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28306 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28309 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28310 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28313 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28314 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28315 # trailing colons and then remove the whole line if VPATH becomes empty
28316 # (actually we leave an empty line to preserve line numbers).
28317 if test "x
$srcdir" = x.; then
28318 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28319 s/:*\$(srcdir):*/:/
28320 s/:*\${srcdir}:*/:/
28322 s/^\([^=]*=[ ]*\):*/\1/
28328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28329 fi # test -n "$CONFIG_FILES"
28331 # Set up the scripts for CONFIG_HEADERS section.
28332 # No need to generate them if there are no CONFIG_HEADERS.
28333 # This happens for instance with `./config.status Makefile'.
28334 if test -n "$CONFIG_HEADERS"; then
28335 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28339 # Transform confdefs.h into an awk script `defines.awk', embedded as
28340 # here-document in config.status, that substitutes the proper values into
28341 # config.h.in to produce config.h.
28343 # Create a delimiter string that does not exist in confdefs.h, to ease
28344 # handling of long lines.
28346 for ac_last_try in false false :; do
28347 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28348 if test -z "$ac_t"; then
28350 elif $ac_last_try; then
28351 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28353 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28357 # For the awk script, D is an array of macro values keyed by name,
28358 # likewise P contains macro parameters if any. Preserve backslash
28359 # newline sequences.
28361 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28363 s/.\{148\}/&'"$ac_delim"'/g
28366 s/^[ ]*#[ ]*define[ ][ ]*/ /
28373 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28375 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28380 D["\
1"]=" \
3\\\\\\n
"\\/p
28382 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28387 s/.\{148\}/&'"$ac_delim"'/g
28392 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28395 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28397 ' <confdefs.h | sed '
28398 s/'"$ac_delim"'/"\\\
28399 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28402 for (key in D) D_is_set[key] = 1
28405 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28407 split(line, arg, " ")
28408 if (arg[1] == "#") {
28412 defundef
= substr
(arg
[1], 2)
28415 split(mac1
, mac2
, "(") #)
28417 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28418 if (D_is_set
[macro
]) {
28419 # Preserve the white space surrounding the "#".
28420 print prefix
"define", macro P
[macro
] D
[macro
]
28423 # Replace #undef with comments. This is necessary, for example,
28424 # in the case of _POSIX_SOURCE, which is predefined and required
28425 # on some systems where configure will not decide to define it.
28426 if (defundef
== "undef") {
28427 print
"/*", prefix defundef
, macro
, "*/"
28435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28436 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28437 fi # test -n "$CONFIG_HEADERS"
28440 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28445 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28447 case $ac_mode$ac_tag in
28449 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28450 :[FH
]-) ac_tag
=-:-;;
28451 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28468 -) ac_f
="$tmp/stdin";;
28469 *) # Look for the file first in the build tree, then in the source tree
28470 # (if the path is not absolute). The absolute path cannot be DOS-style,
28471 # because $ac_f cannot contain `:'.
28475 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28477 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28479 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28480 as_fn_append ac_file_inputs
" '$ac_f'"
28483 # Let's still pretend it is `configure' which instantiates (i.e., don't
28484 # use $as_me), people would be surprised to read:
28485 # /* config.h. Generated by config.status. */
28486 configure_input
='Generated from '`
28487 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28489 if test x
"$ac_file" != x-
; then
28490 configure_input
="$ac_file. $configure_input"
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28492 $as_echo "$as_me: creating $ac_file" >&6;}
28494 # Neutralize special characters interpreted by sed in replacement strings.
28495 case $configure_input in #(
28496 *\
&* |
*\|
* |
*\\* )
28497 ac_sed_conf_input
=`$as_echo "$configure_input" |
28498 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28499 *) ac_sed_conf_input
=$configure_input;;
28503 *:-:* |
*:-) cat >"$tmp/stdin" \
28504 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28509 ac_dir
=`$as_dirname -- "$ac_file" ||
28510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28511 X"$ac_file" : 'X\(//\)[^/]' \| \
28512 X"$ac_file" : 'X\(//\)$' \| \
28513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28514 $as_echo X"$ac_file" |
28515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28519 /^X\(\/\/\)[^/].*/{
28532 as_dir
="$ac_dir"; as_fn_mkdir_p
28536 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28538 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28539 # A ".." for each directory in $ac_dir_suffix.
28540 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28541 case $ac_top_builddir_sub in
28542 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28543 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28546 ac_abs_top_builddir
=$ac_pwd
28547 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28548 # for backward compatibility:
28549 ac_top_builddir
=$ac_top_build_prefix
28552 .
) # We are building in place.
28554 ac_top_srcdir
=$ac_top_builddir_sub
28555 ac_abs_top_srcdir
=$ac_pwd ;;
28556 [\\/]* | ?
:[\\/]* ) # Absolute name.
28557 ac_srcdir
=$srcdir$ac_dir_suffix;
28558 ac_top_srcdir
=$srcdir
28559 ac_abs_top_srcdir
=$srcdir ;;
28560 *) # Relative name.
28561 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28562 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28563 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28565 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28577 # If the template does not know about datarootdir, expand it.
28578 # FIXME: This hack should be removed a few years after 2.60.
28579 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28590 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28591 *datarootdir
*) ac_datarootdir_seen
=yes;;
28592 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28594 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28597 ac_datarootdir_hack='
28598 s&@datadir@&$datadir&g
28599 s&@docdir@&$docdir&g
28600 s&@infodir@&$infodir&g
28601 s&@localedir@&$localedir&g
28602 s&@mandir@&$mandir&g
28603 s&\\\${datarootdir}&$datarootdir&g' ;;
28607 # Neutralize VPATH when `$srcdir' = `.'.
28608 # Shell code in configure.ac might set extrasub.
28609 # FIXME: do we really want to maintain this feature?
28610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28611 ac_sed_extra="$ac_vpsub
28614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28616 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28617 s|@configure_input@|
$ac_sed_conf_input|
;t t
28618 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28619 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28620 s
&@srcdir@
&$ac_srcdir&;t t
28621 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28622 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28623 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28624 s
&@builddir@
&$ac_builddir&;t t
28625 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28626 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28627 $ac_datarootdir_hack
28629 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28630 if $ac_cs_awk_getline; then
28631 $AWK -f "$tmp/subs.
awk"
28633 $AWK -f "$tmp/subs.
awk" | $SHELL
28635 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28637 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28638 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28639 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28641 which seems to be undefined. Please make sure it is defined." >&5
28642 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28643 which seems to be undefined. Please make sure it is defined." >&2;}
28647 -) cat "$tmp/out" && rm -f "$tmp/out";;
28648 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28650 || as_fn_error "could not create $ac_file" "$LINENO" 5
28656 if test x"$ac_file" != x-; then
28658 $as_echo "/* $configure_input */" \
28659 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28660 } >"$tmp/config.h" \
28661 || as_fn_error "could not create $ac_file" "$LINENO" 5
28662 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28664 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28667 mv "$tmp/config.h" "$ac_file" \
28668 || as_fn_error "could not create $ac_file" "$LINENO" 5
28671 $as_echo "/* $configure_input */" \
28672 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28673 || as_fn_error "could not create -" "$LINENO" 5
28677 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28678 $as_echo "$as_me: executing $ac_file commands" >&6;}
28683 case $ac_file$ac_mode in
28684 "as":F) chmod +x as ;;
28685 "collect-ld":F) chmod +x collect-ld ;;
28686 "nm":F) chmod +x nm ;;
28688 case ${CONFIG_HEADERS} in
28689 *auto-host.h:config.in*)
28692 # Make sure all the subdirs exist.
28693 for d in $subdirs doc build common c-family
28695 test -d $d || mkdir $d
28705 ac_clean_files=$ac_clean_files_save
28707 test $ac_write_fail = 0 ||
28708 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28711 # configure is writing to config.log, and then calls config.status.
28712 # config.status does its own redirection, appending to config.log.
28713 # Unfortunately, on DOS this fails, as config.log is still kept open
28714 # by configure, so config.status won't be able to
write to it
; its
28715 # output is simply discarded. So we exec the FD to /dev/null,
28716 # effectively closing config.log, so it can be properly (re)opened and
28717 # appended to by config.status. When coming back to configure, we
28718 # need to make the FD available again.
28719 if test "$no_create" != yes; then
28721 ac_config_status_args
=
28722 test "$silent" = yes &&
28723 ac_config_status_args
="$ac_config_status_args --quiet"
28725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28728 # would make configure fail if this is the last instruction.
28729 $ac_cs_success || as_fn_exit $?
28731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}