2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
680 ORIGINAL_NM_FOR_TARGET
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
849 program_transform_name
860 ac_subst_files
='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
889 with_upc_pts_vaddr_order
891 with_upc_pts_packed_bits
892 enable_upc_link_script
895 with_native_system_header_dir
905 enable_sjlj_exceptions
907 enable_leading_mingw64_underscores
910 enable_win32_registry
916 enable_gnu_indirect_function
917 enable_initfini_array
919 enable_gnu_unique_object
920 enable_linker_build_id
924 enable_maintainer_mode
925 enable_version_specific_runtime_libs
927 enable_libquadmath_support
928 with_linker_hash_style
930 ac_precious_vars
='build_alias
951 # Initialize some variables set by options.
953 ac_init_version
=false
954 ac_unrecognized_opts
=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name
=s
,x
,x
,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir
='${exec_prefix}/bin'
980 sbindir
='${exec_prefix}/sbin'
981 libexecdir
='${exec_prefix}/libexec'
982 datarootdir
='${prefix}/share'
983 datadir
='${datarootdir}'
984 sysconfdir
='${prefix}/etc'
985 sharedstatedir
='${prefix}/com'
986 localstatedir
='${prefix}/var'
987 includedir
='${prefix}/include'
988 oldincludedir
='/usr/include'
989 docdir
='${datarootdir}/doc/${PACKAGE}'
990 infodir
='${datarootdir}/info'
995 libdir
='${exec_prefix}/lib'
996 localedir
='${datarootdir}/locale'
997 mandir
='${datarootdir}/man'
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\
$ac_option
1011 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1023 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1024 bindir
=$ac_optarg ;;
1026 -build |
--build |
--buil |
--bui |
--bu)
1027 ac_prev
=build_alias
;;
1028 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1029 build_alias
=$ac_optarg ;;
1031 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1032 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1033 ac_prev
=cache_file
;;
1034 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1035 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1036 cache_file
=$ac_optarg ;;
1038 --config-cache |
-C)
1039 cache_file
=config.cache
;;
1041 -datadir |
--datadir |
--datadi |
--datad)
1043 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1044 datadir
=$ac_optarg ;;
1046 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1047 |
--dataroo |
--dataro |
--datar)
1048 ac_prev
=datarootdir
;;
1049 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1050 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1051 datarootdir
=$ac_optarg ;;
1053 -disable-* |
--disable-*)
1054 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1057 as_fn_error
"invalid feature name: $ac_useropt"
1058 ac_useropt_orig
=$ac_useropt
1059 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_
$ac_useropt"
1064 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep
=', ';;
1067 eval enable_
$ac_useropt=no
;;
1069 -docdir |
--docdir |
--docdi |
--doc |
--do)
1071 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1072 docdir
=$ac_optarg ;;
1074 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1076 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1077 dvidir
=$ac_optarg ;;
1079 -enable-* |
--enable-*)
1080 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1083 as_fn_error
"invalid feature name: $ac_useropt"
1084 ac_useropt_orig
=$ac_useropt
1085 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_
$ac_useropt"
1090 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep
=', ';;
1093 eval enable_
$ac_useropt=\
$ac_optarg ;;
1095 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1096 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1097 |
--exec |
--exe |
--ex)
1098 ac_prev
=exec_prefix
;;
1099 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1100 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1101 |
--exec=* |
--exe=* |
--ex=*)
1102 exec_prefix
=$ac_optarg ;;
1104 -gas |
--gas |
--ga |
--g)
1105 # Obsolete; use --with-gas.
1108 -help |
--help |
--hel |
--he |
-h)
1109 ac_init_help
=long
;;
1110 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1111 ac_init_help
=recursive
;;
1112 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1113 ac_init_help
=short
;;
1115 -host |
--host |
--hos |
--ho)
1116 ac_prev
=host_alias
;;
1117 -host=* |
--host=* |
--hos=* |
--ho=*)
1118 host_alias
=$ac_optarg ;;
1120 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1122 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1124 htmldir
=$ac_optarg ;;
1126 -includedir |
--includedir |
--includedi |
--included |
--include \
1127 |
--includ |
--inclu |
--incl |
--inc)
1128 ac_prev
=includedir
;;
1129 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1130 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1131 includedir
=$ac_optarg ;;
1133 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1135 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1136 infodir
=$ac_optarg ;;
1138 -libdir |
--libdir |
--libdi |
--libd)
1140 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1141 libdir
=$ac_optarg ;;
1143 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1144 |
--libexe |
--libex |
--libe)
1145 ac_prev
=libexecdir
;;
1146 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1147 |
--libexe=* |
--libex=* |
--libe=*)
1148 libexecdir
=$ac_optarg ;;
1150 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1151 ac_prev
=localedir
;;
1152 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1153 localedir
=$ac_optarg ;;
1155 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1156 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1157 ac_prev
=localstatedir
;;
1158 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1159 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1160 localstatedir
=$ac_optarg ;;
1162 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1164 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1165 mandir
=$ac_optarg ;;
1167 -nfp |
--nfp |
--nf)
1168 # Obsolete; use --without-fp.
1171 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1172 |
--no-cr |
--no-c |
-n)
1175 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1176 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1179 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1180 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1181 |
--oldin |
--oldi |
--old |
--ol |
--o)
1182 ac_prev
=oldincludedir
;;
1183 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1184 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1185 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1186 oldincludedir
=$ac_optarg ;;
1188 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1190 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1191 prefix
=$ac_optarg ;;
1193 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1194 |
--program-pre |
--program-pr |
--program-p)
1195 ac_prev
=program_prefix
;;
1196 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1197 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1198 program_prefix
=$ac_optarg ;;
1200 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1201 |
--program-suf |
--program-su |
--program-s)
1202 ac_prev
=program_suffix
;;
1203 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1204 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1205 program_suffix
=$ac_optarg ;;
1207 -program-transform-name |
--program-transform-name \
1208 |
--program-transform-nam |
--program-transform-na \
1209 |
--program-transform-n |
--program-transform- \
1210 |
--program-transform |
--program-transfor \
1211 |
--program-transfo |
--program-transf \
1212 |
--program-trans |
--program-tran \
1213 |
--progr-tra |
--program-tr |
--program-t)
1214 ac_prev
=program_transform_name
;;
1215 -program-transform-name=* |
--program-transform-name=* \
1216 |
--program-transform-nam=* |
--program-transform-na=* \
1217 |
--program-transform-n=* |
--program-transform-=* \
1218 |
--program-transform=* |
--program-transfor=* \
1219 |
--program-transfo=* |
--program-transf=* \
1220 |
--program-trans=* |
--program-tran=* \
1221 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1222 program_transform_name
=$ac_optarg ;;
1224 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1226 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1227 pdfdir
=$ac_optarg ;;
1229 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1231 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1234 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1235 |
-silent |
--silent |
--silen |
--sile |
--sil)
1238 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1240 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1242 sbindir
=$ac_optarg ;;
1244 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1245 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1246 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1248 ac_prev
=sharedstatedir
;;
1249 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1250 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1251 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1253 sharedstatedir
=$ac_optarg ;;
1255 -site |
--site |
--sit)
1257 -site=* |
--site=* |
--sit=*)
1260 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1262 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1263 srcdir
=$ac_optarg ;;
1265 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1266 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1267 ac_prev
=sysconfdir
;;
1268 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1269 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1270 sysconfdir
=$ac_optarg ;;
1272 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1273 ac_prev
=target_alias
;;
1274 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1275 target_alias
=$ac_optarg ;;
1277 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1280 -version |
--version |
--versio |
--versi |
--vers |
-V)
1281 ac_init_version
=: ;;
1284 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1287 as_fn_error
"invalid package name: $ac_useropt"
1288 ac_useropt_orig
=$ac_useropt
1289 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep
=', ';;
1297 eval with_
$ac_useropt=\
$ac_optarg ;;
1299 -without-* |
--without-*)
1300 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1303 as_fn_error
"invalid package name: $ac_useropt"
1304 ac_useropt_orig
=$ac_useropt
1305 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep
=', ';;
1313 eval with_
$ac_useropt=no
;;
1316 # Obsolete; use --with-x.
1319 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1320 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1321 ac_prev
=x_includes
;;
1322 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1323 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1324 x_includes
=$ac_optarg ;;
1326 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1327 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1328 ac_prev
=x_libraries
;;
1329 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1330 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1331 x_libraries
=$ac_optarg ;;
1333 -*) as_fn_error
"unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information."
1338 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1342 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1344 eval $ac_envvar=\
$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358 if test -n "$ac_prev"; then
1359 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error
"missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1366 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 # Check all directory arguments for consistency.
1372 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val
=\$
$ac_var
1378 # Remove trailing slashes.
1381 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\
$ac_val;;
1384 # Be sure to have absolute directory names.
1386 [\\/$
]* | ?
:[\\/]* ) continue;;
1387 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1389 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1397 target
=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x
; then
1401 if test "x$build_alias" = x
; then
1402 cross_compiling
=maybe
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1404 If a cross compiler is detected then cross compile mode will be used." >&2
1405 elif test "x$build_alias" != "x$host_alias"; then
1411 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1413 test "$silent" = yes && exec 6>/dev
/null
1416 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di
=`ls -di .` &&
1418 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error
"working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error
"pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted
=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir
=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1456 ac_srcdir_defaulted
=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1460 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1474 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 for ac_var
in $ac_precious_vars; do
1477 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1479 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1553 --build=BUILD configure
for building on BUILD
[guessed
]
1554 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1555 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1559 if test -n "$ac_init_help"; then
1564 --disable-option-checking ignore unrecognized
--enable/--with options
1565 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1566 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1567 --enable-generated-files-in-srcdir
1568 put copies of generated files
in source dir intended
1569 for creating
source tarballs
for users without
1570 texinfo bison or flex
1571 --disable-largefile omit support
for large files
1572 --enable-werror-always enable -Werror despite compiler version
1573 --enable-checking[=LIST
]
1574 enable expensive run-time checks. With LIST
, enable
1575 only specific categories of checks. Categories are
:
1576 yes,no
,all
,none
,release. Flags are
:
1577 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1578 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1579 --enable-coverage[=LEVEL
]
1580 enable compiler
's code coverage collection. Use to
1581 measure compiler performance and locate unused parts
1582 of the compiler. With LEVEL, specify optimization.
1583 Values are opt, noopt, default is noopt
1584 --enable-gather-detailed-mem-stats
1585 enable detailed memory allocation stats gathering
1586 --enable-multilib enable library support for multiple ABIs
1587 --enable-multiarch enable support for multiarch paths
1588 --enable-__cxa_atexit enable __cxa_atexit for C++
1589 --enable-decimal-float={no,yes,bid,dpd}
1590 enable decimal float extension to C. Selecting 'bid
'
1591 or 'dpd
' choses which decimal floating point format
1593 --enable-fixed-point enable fixed-point arithmetic extension to C
1594 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1596 --enable-tls enable or disable generation of tls code overriding
1597 the assembler check for tls support
1598 --enable-objc-gc enable the use of Boehm's garbage collector with the
1599 GNU Objective-C runtime
1600 --enable-upc-link-script
1601 enable UPC
's use of a custom linker script; this
1602 will define the UPC shared section as a no load
1603 section on targets where this feature is supported
1605 --disable-shared don't provide a shared libgcc
1606 --enable-languages=LIST specify
which front-ends to build
1607 --disable-rpath do not hardcode runtime library paths
1608 --enable-sjlj-exceptions
1609 arrange to use setjmp
/longjmp exception handling
1610 --enable-secureplt enable -msecure-plt by default
for PowerPC
1611 --enable-leading-mingw64-underscores
1612 enable leading underscores on
64 bit mingw targets
1613 --enable-cld enable -mcld by default
for 32bit x86
1614 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1616 --disable-win32-registry
1617 disable lookup of installation paths
in the Registry
1619 --enable-win32-registry enable registry lookup
(default
)
1620 --enable-win32-registry=KEY
1621 use KEY instead of GCC version as the last portion
1623 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1624 --enable-static[=PKGS
] build static libraries
[default
=yes]
1625 --enable-fast-install[=PKGS
]
1626 optimize
for fast installation
[default
=yes]
1627 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1628 --enable-gnu-indirect-function
1629 enable the use of the @gnu_indirect_function to
1631 --enable-initfini-array use .init_array
/.fini_array sections
1632 --enable-comdat enable COMDAT group support
1633 --enable-gnu-unique-object
1634 enable the use of the @gnu_unique_object ELF
1635 extension on glibc systems
1636 --enable-linker-build-id
1637 compiler will always pass
--build-id to linker
1638 --enable-maintainer-mode
1639 enable make rules and dependencies not useful
(and
1640 sometimes confusing
) to the casual installer
1641 --enable-version-specific-runtime-libs
1642 specify that runtime libraries should be installed
1643 in a compiler-specific directory
1644 --enable-plugin enable plugin support
1645 --disable-libquadmath-support
1646 disable libquadmath support
for Fortran
1649 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1650 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1651 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1652 --with-local-prefix=DIR specifies directory to put
local include
1653 --with-gxx-include-dir=DIR
1654 specifies directory to put g
++ header files
1655 --with-cpp-install-dir=DIR
1656 install the user visible C preprocessor
in DIR
1657 (relative to PREFIX
) as well as PREFIX
/bin
1658 --with-gnu-ld arrange to work with GNU ld
1659 --with-ld arrange to use the specified ld
(full pathname
)
1660 --with-demangler-in-ld try to use demangler
in GNU ld
1661 --with-gnu-as arrange to work with GNU as
1662 --with-as arrange to use the specified as
(full pathname
)
1663 --with-stabs arrange to use stabs instead of
host debug format
1664 --with-upc-pts={struct
,packed
}
1665 choose the representation of a UPC pointer-to-shared
1666 --with-upc-pts-vaddr-order={last
,first
}
1667 choose position of the address field
in UPC
1668 pointer-to-shared representation
1670 --with-upc-pts-packed-bits=phase
,thread
,vaddr
1671 choose bit distribution
in packed UPC
1672 pointer-to-shared representation
1673 --with-dwarf2 force the default debug format to be DWARF
2
1674 --with-native-system-header-dir=dir
1675 use dir as the directory to
look for standard
1676 system header files
in. Defaults to
/usr
/include.
1677 --with-build-sysroot=sysroot
1678 use sysroot as the system root during the build
1679 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1680 --with-specs=SPECS add SPECS to driver command-line processing
1681 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1682 --with-bugurl=URL Direct users to URL to report a bug
1683 --with-multilib-list select multilibs
(SH and x86-64 only
)
1684 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1685 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1686 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1687 --with-pic try to use only PIC/non-PIC objects [default=use
1689 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1690 --with-plugin-ld=[ARG] specify the plugin linker
1691 --with-long-double-128 use 128-bit long double by default
1692 --with-gc={page,zone} this option is not supported anymore. It used to
1693 choose the garbage collection mechanism to use with
1695 --with-system-zlib use installed libz
1696 --with-linker-hash-style={sysv,gnu,both}
1697 specify the linker hash style
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
1710 CXXCPP C++ preprocessor
1711 GMPLIBS How to link GMP
1712 GMPINC How to find GMP include files
1713 ISLLIBS How to link ISL
1714 ISLINC How to find ISL include files
1715 CLOOGLIBS How to link CLOOG
1716 CLOOGINC How to find CLOOG include files
1718 Use these variables to override the choices made by `configure' or to
help
1719 it to
find libraries and programs with nonstandard names
/locations.
1721 Report bugs to the package provider.
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1735 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1737 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1742 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1745 ac_abs_top_builddir
=$ac_pwd
1746 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir
=$ac_top_build_prefix
1751 .
) # We are building in place.
1753 ac_top_srcdir
=$ac_top_builddir_sub
1754 ac_abs_top_srcdir
=$ac_pwd ;;
1755 [\\/]* | ?
:[\\/]* ) # Absolute name.
1756 ac_srcdir
=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir
=$srcdir
1758 ac_abs_top_srcdir
=$srcdir ;;
1760 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1764 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1766 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1785 generated by GNU Autoconf
2.64
1787 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1788 This configure
script is free software
; the Free Software Foundation
1789 gives unlimited permission to copy
, distribute and modify it.
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile
()
1803 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1804 rm -f conftest.
$ac_objext
1805 if { { ac_try
="$ac_compile"
1807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_try_compile
1836 # ac_fn_cxx_try_compile LINENO
1837 # ----------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1846 *) ac_try_echo
=$ac_try;;
1848 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1852 if test -s conftest.err
; then
1853 grep -v '^ *+' conftest.err
>conftest.er1
1854 cat conftest.er1
>&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.
$ac_objext; then :
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.
$ac_ext >&5
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1872 } # ac_fn_cxx_try_compile
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1880 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } >/dev/null && {
1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914 # the include files in INCLUDES and setting the cache variable VAR
1916 ac_fn_c_check_header_mongrel ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 # Is the header compilable?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931 $as_echo_n "checking $2 usability... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_header_compiler=yes
1940 ac_header_compiler=no
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944 $as_echo "$ac_header_compiler" >&6; }
1946 # Is the header present?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948 $as_echo_n "checking $2 presence... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1953 if ac_fn_c_try_cpp "$LINENO"; then :
1954 ac_header_preproc=yes
1956 ac_header_preproc=no
1958 rm -f conftest.err conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960 $as_echo "$ac_header_preproc" >&6; }
1962 # So? What about this header?
1963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1974 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1978 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1986 $as_echo_n "(cached) " >&6
1988 eval "$3=\$ac_header_compiler"
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 } # ac_fn_c_check_header_mongrel
1998 # ac_fn_c_try_run LINENO
1999 # ----------------------
2000 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2001 # that executables *can* be run.
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if { { ac_try="$ac_link"
2007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2008 *) ac_try_echo
=$ac_try;;
2010 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 $as_echo "$ac_try_echo"; } >&5
2012 (eval "$ac_link") 2>&5
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2016 { { case "(($ac_try" in
2017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_try") 2>&5
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; }; }; then :
2028 $as_echo "$as_me: program exited with status $ac_status" >&5
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2032 ac_retval=$ac_status
2034 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2057 if ac_fn_c_try_compile "$LINENO"; then :
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 } # ac_fn_c_check_header_compile
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 ac_fn_c_compute_int ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2094 if ac_fn_c_try_compile "$LINENO"; then :
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=$ac_mid; break
2113 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2114 if test $ac_lo -le $ac_mid; then
2118 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) < 0)];
2136 if ac_fn_c_try_compile "$LINENO"; then :
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_lo=$ac_mid; break
2155 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156 if test $ac_mid -le $ac_hi; then
2160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 # Binary search between lo and hi bounds.
2171 while test "x$ac_lo" != "x$ac_hi"; do
2172 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 if ac_fn_c_try_compile "$LINENO"; then :
2189 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2201 static long int longval () { return $2; }
2202 static unsigned long int ulongval () { return $2; }
2209 FILE *f = fopen ("conftest.val", "w");
2214 long int i = longval ();
2217 fprintf (f, "%ld", i);
2221 unsigned long int i = ulongval ();
2224 fprintf (f, "%lu", i);
2226 /* Do not output a trailing newline, as this causes \r\n confusion
2227 on some platforms. */
2228 return ferror (f) || fclose (f) != 0;
2234 if ac_fn_c_try_run "$LINENO"; then :
2235 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240 conftest.$ac_objext conftest.beam conftest.$ac_ext
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_c_compute_int
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301 } # ac_fn_c_check_type
2303 # ac_fn_c_find_intX_t LINENO BITS VAR
2304 # -----------------------------------
2305 # Finds a signed integer type with width BITS, setting cache variable VAR
2307 ac_fn_c_find_intX_t ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2311 $as_echo_n "checking for int$2_t... " >&6; }
2312 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2313 $as_echo_n "(cached) " >&6
2316 for ac_type in int$2_t 'int' 'long int' \
2317 'long long int' 'short int' 'signed char'; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 $ac_includes_default
2324 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $ac_includes_default
2338 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2339 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2346 if ac_fn_c_try_compile "$LINENO"; then :
2353 eval "$3=\$ac_type" ;;
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 if test "x$as_val" = x""no; then :
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 } # ac_fn_c_find_intX_t
2374 # ac_fn_c_try_link LINENO
2375 # -----------------------
2376 # Try to link conftest.$ac_ext, and return whether this succeeded.
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest$ac_exeext
2381 if { { ac_try="$ac_link"
2383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2384 *) ac_try_echo
=$ac_try;;
2386 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>conftest.err
2390 if test -s conftest.err
; then
2391 grep -v '^ *+' conftest.err
>conftest.er1
2392 cat conftest.er1
>&5
2393 mv -f conftest.er1 conftest.err
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_c_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest
$ac_exeext && {
2400 test "$cross_compiling" = yes ||
2401 $as_test_x conftest
$ac_exeext
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.
$ac_ext >&5
2410 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2411 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2412 # interfere with the next link command; also delete a directory that is
2413 # left behind by Apple's compiler. We do this before executing the actions.
2414 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2418 } # ac_fn_c_try_link
2420 # ac_fn_c_find_uintX_t LINENO BITS VAR
2421 # ------------------------------------
2422 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2424 ac_fn_c_find_uintX_t
()
2426 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2428 $as_echo_n "checking for uint$2_t... " >&6; }
2429 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2430 $as_echo_n "(cached) " >&6
2433 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2434 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437 $ac_includes_default
2441 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2453 eval "$3=\$ac_type" ;;
2456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2458 if test "x$as_val" = x
""no
; then :
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2470 } # ac_fn_c_find_uintX_t
2472 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2473 # ----------------------------------------------
2474 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2475 ac_fn_c_check_header_preproc
()
2477 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2481 $as_echo_n "(cached) " >&6
2483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2487 if ac_fn_c_try_cpp
"$LINENO"; then :
2492 rm -f conftest.err conftest.
$ac_ext
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2499 } # ac_fn_c_check_header_preproc
2501 # ac_fn_cxx_try_cpp LINENO
2502 # ------------------------
2503 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2504 ac_fn_cxx_try_cpp
()
2506 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2507 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513 $as_echo "$ac_try_echo"; } >&5
2514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2516 if test -s conftest.err; then
2517 grep -v '^ *+' conftest.err >conftest.er1
2518 cat conftest.er1 >&5
2519 mv -f conftest.er1 conftest.err
2521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522 test $ac_status = 0; } >/dev/null && {
2523 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2524 test ! -s conftest.err
2528 $as_echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536 } # ac_fn_cxx_try_cpp
2538 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2539 # ------------------------------------------------
2540 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2541 ac_fn_cxx_check_header_preproc ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2547 $as_echo_n "(cached) " >&6
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2553 if ac_fn_cxx_try_cpp "$LINENO"; then :
2558 rm -f conftest.err conftest.$ac_ext
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 } # ac_fn_cxx_check_header_preproc
2567 # ac_fn_c_check_func LINENO FUNC VAR
2568 # ----------------------------------
2569 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2570 ac_fn_c_check_func ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2582 #define $2 innocuous_$2
2584 /* System header to define __stub macros and hopefully few prototypes,
2585 which can conflict with char $2 (); below.
2586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2587 <limits.h> exists even on freestanding compilers. */
2590 # include <limits.h>
2592 # include <assert.h>
2597 /* Override any GCC internal prototype to avoid an error.
2598 Use char because int might match the return type of a GCC
2599 builtin and then its argument prototype would still apply. */
2604 /* The GNU C library defines this for functions which it implements
2605 to always fail with ENOSYS. Some functions are actually named
2606 something starting with __ and the normal name is an alias. */
2607 #if defined __stub_$2 || defined __stub___$2
2619 if ac_fn_c_try_link "$LINENO"; then :
2624 rm -f core conftest.err conftest.$ac_objext \
2625 conftest$ac_exeext conftest.$ac_ext
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632 } # ac_fn_c_check_func
2634 # ac_fn_cxx_try_link LINENO
2635 # -------------------------
2636 # Try to link conftest.$ac_ext, and return whether this succeeded.
2637 ac_fn_cxx_try_link ()
2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640 rm -f conftest.$ac_objext conftest$ac_exeext
2641 if { { ac_try="$ac_link"
2643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2644 *) ac_try_echo
=$ac_try;;
2646 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647 $as_echo "$ac_try_echo"; } >&5
2648 (eval "$ac_link") 2>conftest.err
2650 if test -s conftest.err
; then
2651 grep -v '^ *+' conftest.err
>conftest.er1
2652 cat conftest.er1
>&5
2653 mv -f conftest.er1 conftest.err
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; } && {
2657 test -z "$ac_cxx_werror_flag" ||
2658 test ! -s conftest.err
2659 } && test -s conftest
$ac_exeext && {
2660 test "$cross_compiling" = yes ||
2661 $as_test_x conftest
$ac_exeext
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2672 # interfere with the next link command; also delete a directory that is
2673 # left behind by Apple's compiler. We do this before executing the actions.
2674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2678 } # ac_fn_cxx_try_link
2679 cat >config.log
<<_ACEOF
2680 This file contains any messages produced by compilers while
2681 running configure, to aid debugging if configure makes a mistake.
2683 It was created by $as_me, which was
2684 generated by GNU Autoconf 2.64. Invocation command line was
2696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir
=.
2720 $as_echo "PATH: $as_dir"
2736 # Keep a trace of the command line.
2737 # Strip out --no-create and --no-recursion so they do not pile up.
2738 # Strip out --silent because we don't want to record it for future runs.
2739 # Also quote any args containing shell meta-characters.
2740 # Make two passes to allow for proper duplicate-argument suppression.
2744 ac_must_keep_next
=false
2750 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2751 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2752 |
-silent |
--silent |
--silen |
--sile |
--sil)
2755 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2758 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2760 as_fn_append ac_configure_args1
" '$ac_arg'"
2761 if test $ac_must_keep_next = true
; then
2762 ac_must_keep_next
=false
# Got value, back to normal.
2765 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2766 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2767 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2768 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2769 case "$ac_configure_args0 " in
2770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2773 -* ) ac_must_keep_next
=true
;;
2776 as_fn_append ac_configure_args
" '$ac_arg'"
2781 { ac_configure_args0
=; unset ac_configure_args0
;}
2782 { ac_configure_args1
=; unset ac_configure_args1
;}
2784 # When interrupted or exit'd, cleanup temporary files, and complete
2785 # config.log. We remove comments because anyway the quotes in there
2786 # would cause problems or look ugly.
2787 # WARNING: Use '\'' to represent an apostrophe within the trap.
2788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2789 trap 'exit_status=$?
2790 # Save into config.log some information that might help in debugging.
2795 ## ---------------- ##
2796 ## Cache variables. ##
2797 ## ---------------- ##
2800 # The following way of writing the cache mishandles newlines in values,
2802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2803 eval ac_val=\$$ac_var
2807 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2811 _ | IFS | as_nl) ;; #(
2812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2813 *) { eval $ac_var=; unset $ac_var;} ;;
2818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2819 *${as_nl}ac_space=\ *)
2821 "s/'\''/'\''\\\\'\'''\''/g;
2822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2833 ## ----------------- ##
2834 ## Output variables. ##
2835 ## ----------------- ##
2838 for ac_var in $ac_subst_vars
2840 eval ac_val=\$$ac_var
2842 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 $as_echo "$ac_var='\''$ac_val'\''"
2848 if test -n "$ac_subst_files"; then
2850 ## ------------------- ##
2851 ## File substitutions. ##
2852 ## ------------------- ##
2855 for ac_var
in $ac_subst_files
2857 eval ac_val
=\$
$ac_var
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 $as_echo "$ac_var='\''$ac_val'\''"
2866 if test -s confdefs.h; then
2876 test "$ac_signal" != 0 &&
2877 $as_echo "$as_me: caught signal $ac_signal"
2878 $as_echo "$as_me: exit $exit_status"
2880 rm -f core *.core core.conftest.* &&
2881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2884 for ac_signal
in 1 2 13 15; do
2885 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2890 rm -f -r conftest
* confdefs.h
2892 $as_echo "/* confdefs.h */" > confdefs.h
2894 # Predefined preprocessor variables.
2896 cat >>confdefs.h
<<_ACEOF
2897 #define PACKAGE_NAME "$PACKAGE_NAME"
2900 cat >>confdefs.h
<<_ACEOF
2901 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2904 cat >>confdefs.h
<<_ACEOF
2905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2908 cat >>confdefs.h
<<_ACEOF
2909 #define PACKAGE_STRING "$PACKAGE_STRING"
2912 cat >>confdefs.h
<<_ACEOF
2913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2916 cat >>confdefs.h
<<_ACEOF
2917 #define PACKAGE_URL "$PACKAGE_URL"
2921 # Let the site file select an alternate cache file if it wants to.
2922 # Prefer an explicitly selected file to automatically selected ones.
2925 if test -n "$CONFIG_SITE"; then
2926 ac_site_file1
=$CONFIG_SITE
2927 elif test "x$prefix" != xNONE
; then
2928 ac_site_file1
=$prefix/share
/config.site
2929 ac_site_file2
=$prefix/etc
/config.site
2931 ac_site_file1
=$ac_default_prefix/share
/config.site
2932 ac_site_file2
=$ac_default_prefix/etc
/config.site
2934 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2936 test "x$ac_site_file" = xNONE
&& continue
2937 if test -r "$ac_site_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2939 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2940 sed 's/^/| /' "$ac_site_file" >&5
2945 if test -r "$cache_file"; then
2946 # Some versions of bash will fail to source /dev/null (special
2947 # files actually), so we avoid doing that.
2948 if test -f "$cache_file"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2950 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2953 *) .
"./$cache_file";;
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2958 $as_echo "$as_me: creating cache $cache_file" >&6;}
2962 # Check that the precious variables saved in the cache have kept the same
2964 ac_cache_corrupted
=false
2965 for ac_var
in $ac_precious_vars; do
2966 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2967 eval ac_new_set
=\
$ac_env_${ac_var}_set
2968 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2969 eval ac_new_val
=\
$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted
=: ;;
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted
=: ;;
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w
=`echo x $ac_old_val`
2984 ac_new_val_w
=`echo x $ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2988 ac_cache_corrupted
=:
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\
$ac_old_val
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2995 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3003 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 *) ac_arg
=$ac_var=$ac_new_val ;;
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3012 if $ac_cache_corrupted; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3024 ac_cpp
='$CPP $CPPFLAGS'
3025 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3034 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3037 gcc_version
=`cat $srcdir/BASE-VER`
3039 # Determine the host, build, and target systems
3041 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3042 for ac_t
in install-sh
install.sh shtool
; do
3043 if test -f "$ac_dir/$ac_t"; then
3045 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3050 if test -z "$ac_aux_dir"; then
3051 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3054 # These three variables are undocumented and unsupported,
3055 # and are intended to be withdrawn in a future Autoconf release.
3056 # They can cause serious problems if a builder's source tree is in a directory
3057 # whose full name contains unusual characters.
3058 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3059 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3060 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3063 # Make sure we can run config.sub.
3064 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3065 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3068 $as_echo_n "checking build system type... " >&6; }
3069 if test "${ac_cv_build+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 ac_build_alias
=$build_alias
3073 test "x$ac_build_alias" = x
&&
3074 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3075 test "x$ac_build_alias" = x
&&
3076 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3077 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3078 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3082 $as_echo "$ac_cv_build" >&6; }
3083 case $ac_cv_build in
3085 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3088 ac_save_IFS
=$IFS; IFS
='-'
3094 # Remember, the first character of IFS is used to create $*,
3095 # except with old shells:
3098 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3102 $as_echo_n "checking host system type... " >&6; }
3103 if test "${ac_cv_host+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3106 if test "x$host_alias" = x
; then
3107 ac_cv_host
=$ac_cv_build
3109 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3110 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3115 $as_echo "$ac_cv_host" >&6; }
3118 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3121 ac_save_IFS
=$IFS; IFS
='-'
3127 # Remember, the first character of IFS is used to create $*,
3128 # except with old shells:
3131 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3135 $as_echo_n "checking target system type... " >&6; }
3136 if test "${ac_cv_target+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3139 if test "x$target_alias" = x
; then
3140 ac_cv_target
=$ac_cv_host
3142 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3143 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3148 $as_echo "$ac_cv_target" >&6; }
3149 case $ac_cv_target in
3151 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3153 target
=$ac_cv_target
3154 ac_save_IFS
=$IFS; IFS
='-'
3160 # Remember, the first character of IFS is used to create $*,
3161 # except with old shells:
3164 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3167 # The aliases save the names the user supplied, while $host etc.
3168 # will get canonicalized.
3169 test -n "$target_alias" &&
3170 test "$program_prefix$program_suffix$program_transform_name" = \
3172 program_prefix
=${target_alias}-
3174 # Determine the noncanonical target name, for directory use.
3175 case ${build_alias} in
3176 "") build_noncanonical
=${build} ;;
3177 *) build_noncanonical
=${build_alias} ;;
3180 case ${host_alias} in
3181 "") host_noncanonical
=${build_noncanonical} ;;
3182 *) host_noncanonical
=${host_alias} ;;
3185 case ${target_alias} in
3186 "") target_noncanonical
=${host_noncanonical} ;;
3187 *) target_noncanonical
=${target_alias} ;;
3193 # Determine the target- and build-specific subdirectories
3195 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3196 # have matching libraries, they should use host libraries: Makefile.tpl
3197 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3198 # However, they still use the build modules, because the corresponding
3199 # host modules (e.g. bison) are only built for the host when bootstrap
3201 # - build_subdir is where we find build modules, and never changes.
3202 # - build_libsubdir is where we find build libraries, and can be overridden.
3204 # Prefix 'build-' so this never conflicts with target_subdir.
3205 build_subdir
="build-${build_noncanonical}"
3207 # Check whether --with-build-libsubdir was given.
3208 if test "${with_build_libsubdir+set}" = set; then :
3209 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3211 build_libsubdir
="$build_subdir"
3214 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3215 if ( test $srcdir = .
&& test -d gcc
) \
3216 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3217 host_subdir
="host-${host_noncanonical}"
3222 target_subdir
=${target_noncanonical}
3225 # Set program_transform_name
3226 test "$program_prefix" != NONE
&&
3227 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3228 # Use a double $ so make ignores it.
3229 test "$program_suffix" != NONE
&&
3230 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3231 # Double any \ or $.
3232 # By default was `s,x,x', remove it if useless.
3233 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3234 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3237 # Check for bogus environment variables.
3238 # Test if LIBRARY_PATH contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # LIBRARY_PATH contains the current directory if one of the following
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3246 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3247 case ${LIBRARY_PATH} in
3248 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3249 library_path_setting
="contains current directory"
3252 library_path_setting
="ok"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3256 $as_echo "$library_path_setting" >&6; }
3257 if test "$library_path_setting" != "ok"; then
3259 *** LIBRARY_PATH shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3264 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3265 # since this would lead to problems installing/building glibc.
3266 # GCC_EXEC_PREFIX contains the current directory if one of the following
3268 # - one of the terminals (":" and ";") is the first or last sign
3269 # - two terminals occur directly after each other
3270 # - the path contains an element with a dot in it
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3272 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3273 case ${GCC_EXEC_PREFIX} in
3274 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3275 gcc_exec_prefix_setting
="contains current directory"
3278 gcc_exec_prefix_setting
="ok"
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3282 $as_echo "$gcc_exec_prefix_setting" >&6; }
3283 if test "$gcc_exec_prefix_setting" != "ok"; then
3285 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3286 *** building gcc. Please change the environment variable
3287 *** and run configure again." "$LINENO" 5
3294 # Specify the local prefix
3297 # Check whether --with-local-prefix was given.
3298 if test "${with_local_prefix+set}" = set; then :
3299 withval
=$with_local_prefix; case "${withval}" in
3300 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3302 *) local_prefix
=$with_local_prefix ;;
3307 # Default local prefix if it is empty
3308 if test x
$local_prefix = x
; then
3309 local_prefix
=/usr
/local
3312 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3313 # passed in by the toplevel make and thus we'd get different behavior
3314 # depending on where we built the sources.
3315 gcc_gxx_include_dir
=
3316 # Specify the g++ header file directory
3318 # Check whether --with-gxx-include-dir was given.
3319 if test "${with_gxx_include_dir+set}" = set; then :
3320 withval
=$with_gxx_include_dir; case "${withval}" in
3321 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3323 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3328 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3329 if test x
${gcc_gxx_include_dir} = x
; then
3330 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3331 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3333 libstdcxx_incdir
='include/c++/$(version)'
3334 if test x
$host != x
$target; then
3335 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3337 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3341 gcc_gxx_include_dir_add_sysroot
=0
3342 if test "${with_sysroot+set}" = set; then
3343 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3344 if test "${gcc_gxx_without_sysroot}"; then
3345 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3346 gcc_gxx_include_dir_add_sysroot
=1
3351 # Check whether --with-cpp_install_dir was given.
3352 if test "${with_cpp_install_dir+set}" = set; then :
3353 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3354 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3355 elif test x
$withval != xno
; then
3356 cpp_install_dir
=$withval
3361 # We would like to our source tree to be readonly. However when releases or
3362 # pre-releases are generated, the flex/bison generated files as well as the
3363 # various formats of manuals need to be included along with the rest of the
3364 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3368 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3369 # Check whether --enable-generated-files-in-srcdir was given.
3370 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3371 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3373 generated_files_in_srcdir
=no
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3378 $as_echo "$generated_files_in_srcdir" >&6; }
3380 if test "$generated_files_in_srcdir" = "yes"; then
3387 # -------------------
3388 # Find default linker
3389 # -------------------
3393 # Check whether --with-gnu-ld was given.
3394 if test "${with_gnu_ld+set}" = set; then :
3395 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3401 # With pre-defined ld
3403 # Check whether --with-ld was given.
3404 if test "${with_ld+set}" = set; then :
3405 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3408 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3409 if test ! -x "$DEFAULT_LINKER"; then
3410 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3411 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3415 cat >>confdefs.h
<<_ACEOF
3416 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3422 $as_echo_n "checking whether a default linker was specified... " >&6; }
3423 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3424 if test x
"$gnu_ld_flag" = x
"no"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3426 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3429 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3436 # With demangler in GNU ld
3438 # Check whether --with-demangler-in-ld was given.
3439 if test "${with_demangler_in_ld+set}" = set; then :
3440 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3446 # ----------------------
3447 # Find default assembler
3448 # ----------------------
3452 # Check whether --with-gnu-as was given.
3453 if test "${with_gnu_as+set}" = set; then :
3454 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3461 # Check whether --with-as was given.
3462 if test "${with_as+set}" = set; then :
3463 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3466 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3467 if test ! -x "$DEFAULT_ASSEMBLER"; then
3468 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3469 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3473 cat >>confdefs.h
<<_ACEOF
3474 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3480 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3481 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3482 if test x
"$gas_flag" = x
"no"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3484 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3487 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3498 # If a non-executable a.out is present (e.g. created by GNU as above even if
3499 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3500 # file, even when creating an executable, so an execution test fails.
3501 # Remove possible default executable files to avoid this.
3503 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3504 # Autoconf includes it.
3505 rm -f a.out a.exe b.out
3507 # Find the native compiler
3509 ac_cpp
='$CPP $CPPFLAGS'
3510 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3515 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC
="$CC" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3552 if test -z "$ac_cv_prog_CC"; then
3554 # Extract the first word of "gcc", so it can be a program name with args.
3555 set dummy gcc
; ac_word
=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir
=.
3569 for ac_exec_ext
in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_ac_ct_CC
="gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3590 if test "x$ac_ct_CC" = x
; then
3593 case $cross_compiling:$ac_tool_warned in
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned
=yes ;;
3605 if test -z "$CC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3608 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if test "${ac_cv_prog_CC+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC
="$CC" # Let the user override the test.
3617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir
=.
3622 for ac_exec_ext
in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 # Extract the first word of "cc", so it can be a program name with args.
3648 set dummy cc
; ac_word
=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_CC+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC
="$CC" # Let the user override the test.
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir
=.
3663 for ac_exec_ext
in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3666 ac_prog_rejected
=yes
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 if test $ac_prog_rejected = yes; then
3678 # We found a bogon in the path, so make sure we never use it.
3679 set dummy
$ac_cv_prog_CC
3681 if test $# != 0; then
3682 # We chose a different compiler from the bogus one.
3683 # However, it has the same basename, so the bogon will be chosen
3684 # first if we set CC to just the basename; use the full file name.
3686 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog
in cl.exe
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_CC+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC
="$CC" # Let the user override the test.
3716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir
=.
3721 for ac_exec_ext
in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$CC" && break
3746 if test -z "$CC"; then
3748 for ac_prog
in cl.exe
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy
$ac_prog; ac_word
=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3757 if test -n "$ac_ct_CC"; then
3758 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir
=.
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_ac_ct_CC
="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780 $as_echo "$ac_ct_CC" >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$ac_ct_CC" && break
3790 if test "x$ac_ct_CC" = x
; then
3793 case $cross_compiling:$ac_tool_warned in
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned
=yes ;;
3806 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error
"no acceptable C compiler found in \$PATH
3809 See \`config.log' for more details." "$LINENO" 5; }
3811 # Provide some information about the compiler.
3812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3815 for ac_option
in --version -v -V -qversion; do
3816 { { ac_try
="$ac_compiler $ac_option >&5"
3818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 if test -s conftest.err; then
3827 ... rest of stderr output deleted ...
3828 10q' conftest.err >conftest.er1
3829 cat conftest.er1 >&5
3830 rm -f conftest.er1 conftest.err
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3847 ac_clean_files_save=$ac_clean_files
3848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3849 # Try to create an executable without -o first, disregard a.out.
3850 # It will help us diagnose broken compilers, and finding out an intuition
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3853 $as_echo_n "checking for C compiler default output file name... " >&6; }
3854 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3856 # The possible output files:
3857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3860 for ac_file in $ac_files
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869 if { { ac_try="$ac_link_default"
3871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3872 *) ac_try_echo
=$ac_try;;
3874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link_default") 2>&5
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3883 # so that the user can short-circuit this test for compilers unknown to
3885 for ac_file
in $ac_files ''
3887 test -f "$ac_file" ||
continue
3889 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3892 # We found the default executable, but exeext='' is most
3896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3898 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 # We set ac_cv_exeext here because the later test for it is not
3901 # safe: cross compilers may not add the suffix if given an `-o'
3902 # argument, so we may need to know it at that point already.
3903 # Even if this section looks crufty: it has the advantage of
3910 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3916 $as_echo "$ac_file" >&6; }
3917 if test -z "$ac_file"; then :
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.
$ac_ext >&5
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 { as_fn_set_status
77
3924 as_fn_error
"C compiler cannot create executables
3925 See \`config.log' for more details." "$LINENO" 5; }; }
3927 ac_exeext
=$ac_cv_exeext
3929 # Check that the compiler produces executables we can run. If not, either
3930 # the compiler is broken, or we cross compile.
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3932 $as_echo_n "checking whether the C compiler works... " >&6; }
3933 # If not cross compiling, check that we can run a simple program.
3934 if test "$cross_compiling" != yes; then
3935 if { ac_try
='./$ac_file'
3936 { { case "(($ac_try" in
3937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_try") 2>&5
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; }; then
3948 if test "$cross_compiling" = maybe; then
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error "cannot run C compiled programs.
3954 If you meant to cross compile
, use \
`--host'.
3955 See \`config.log
' for more details." "$LINENO" 5; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3963 ac_clean_files=$ac_clean_files_save
3964 # Check that the compiler produces executables we can run. If not, either
3965 # the compiler is broken, or we cross compile.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 $as_echo_n "checking whether we are cross compiling... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3969 $as_echo "$cross_compiling" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try="$ac_link"
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3985 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3988 for ac_file
in conftest.exe conftest conftest.
*; do
3989 test -f "$ac_file" ||
continue
3991 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3992 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details." "$LINENO" 5; }
4003 rm -f conftest
$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4007 rm -f conftest.
$ac_ext
4008 EXEEXT
=$ac_cv_exeext
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4011 $as_echo_n "checking for suffix of object files... " >&6; }
4012 if test "${ac_cv_objext+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4026 rm -f conftest.o conftest.obj
4027 if { { ac_try
="$ac_compile"
4029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_compile") 2>&5
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
4038 for ac_file in conftest.o conftest.obj conftest.*; do
4039 test -f "$ac_file" || continue;
4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4047 $as_echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error "cannot compute suffix of object files
: cannot compile
4053 See \
`config.log' for more details." "$LINENO" 5; }
4055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4058 $as_echo "$ac_cv_objext" >&6; }
4059 OBJEXT=$ac_cv_objext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4062 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4063 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4090 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4091 if test $ac_compiler_gnu = yes; then
4096 ac_test_CFLAGS=${CFLAGS+set}
4097 ac_save_CFLAGS=$CFLAGS
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4099 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4100 if test "${ac_cv_prog_cc_g+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4103 ac_save_c_werror_flag=$ac_c_werror_flag
4104 ac_c_werror_flag=yes
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4118 if ac_fn_c_try_compile "$LINENO"; then :
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4149 if ac_fn_c_try_compile "$LINENO"; then :
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 $as_echo "$ac_cv_prog_cc_g" >&6; }
4161 if test "$ac_test_CFLAGS" = set; then
4162 CFLAGS=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4170 if test "$GCC" = yes; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4178 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_cv_prog_cc_c89=no
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4187 #include <sys/types.h>
4188 #include <sys/stat.h>
4189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4190 struct buf { int x; };
4191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4192 static char *e (p, i)
4198 static char *f (char * (*g) (char **, int), char **p, ...)
4203 s = g (p, va_arg (v,int));
4208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4209 function prototypes and stuff, but not '\xHH' hex character constants.
4210 These don't provoke an error unfortunately, instead are silently treated
4211 as 'x'. The following induces an error, until -std is added to get
4212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4213 array size at least. It's necessary to write '\x00'==0 to get something
4214 that's true only with -std. */
4215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4218 inside strings and character constants. */
4220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222 int test (int i, double x);
4223 struct s1 {int (*f) (int a);};
4224 struct s2 {int (*f) (double a);};
4225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_cv_prog_cc_c89=$ac_arg
4243 rm -f core conftest.err conftest.$ac_objext
4244 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 rm -f conftest.$ac_ext
4251 case "x$ac_cv_prog_cc_c89" in
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4254 $as_echo "none needed" >&6; } ;;
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257 $as_echo "unsupported" >&6; } ;;
4259 CC="$CC $ac_cv_prog_cc_c89"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 if test "x$ac_cv_prog_cc_c89" != xno; then :
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273 if test "x$CC" != xcc; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4275 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4278 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4280 set dummy $CC; ac_cc=`$as_echo "$2" |
4281 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4282 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4283 $as_echo_n "(cached) " >&6
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4296 # Make sure it works both with $CC and with simple cc.
4297 # We do the test twice because some compilers refuse to overwrite an
4298 # existing .o file with -o, though they will create one.
4299 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4301 if { { case "(($ac_try" in
4302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4303 *) ac_try_echo
=$ac_try;;
4305 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; } &&
4311 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_try") 2>&5
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; };
4322 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4323 if test "x$CC" != xcc; then
4324 # Test first that cc exists at all.
4325 if { ac_try='cc -c conftest.$ac_ext >&5'
4326 { { case "(($ac_try" in
4327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4328 *) ac_try_echo
=$ac_try;;
4330 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }; }; then
4336 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4338 if { { case "(($ac_try" in
4339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; } &&
4348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4350 *) ac_try_echo
=$ac_try;;
4352 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; };
4362 # cc exists but doesn't like -o.
4363 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4368 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4370 rm -f core conftest
*
4373 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4380 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4384 # expand $ac_aux_dir to an absolute path
4385 am_aux_dir
=`cd $ac_aux_dir && pwd`
4387 # FIXME: we rely on the cache variable name because
4388 # there is no other way.
4390 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4391 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4392 if test "$am_t" != yes; then
4393 # Losing compiler, so override with the script.
4394 # FIXME: It is wrong to rewrite CC.
4395 # But if we don't then we get into trouble of one sort or another.
4396 # A longer-term fix would be to have automake use am__CC in this case,
4397 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4398 CC
="$am_aux_dir/compile $CC"
4403 ac_cpp
='$CXXCPP $CPPFLAGS'
4404 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4407 if test -z "$CXX"; then
4408 if test -n "$CCC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_CXX+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$CXX"; then
4422 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir
=.
4429 for ac_exec_ext
in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 if test -n "$CXX"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4444 $as_echo "$CXX" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$CXX" && break
4454 if test -z "$CXX"; then
4456 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy
$ac_prog; ac_word
=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4465 if test -n "$ac_ct_CXX"; then
4466 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir
=.
4473 for ac_exec_ext
in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4486 if test -n "$ac_ct_CXX"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4488 $as_echo "$ac_ct_CXX" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$ac_ct_CXX" && break
4498 if test "x$ac_ct_CXX" = x
; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned
=yes ;;
4513 # Provide some information about the compiler.
4514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4517 for ac_option
in --version -v -V -qversion; do
4518 { { ac_try
="$ac_compiler $ac_option >&5"
4520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4527 if test -s conftest.err; then
4529 ... rest of stderr output deleted ...
4530 10q' conftest.err >conftest.er1
4531 cat conftest.er1 >&5
4532 rm -f conftest.er1 conftest.err
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4539 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4540 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4567 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4568 if test $ac_compiler_gnu = yes; then
4573 ac_test_CXXFLAGS=${CXXFLAGS+set}
4574 ac_save_CXXFLAGS=$CXXFLAGS
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4576 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4577 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4581 ac_cxx_werror_flag=yes
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4595 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cv_prog_cxx_g=yes
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4626 if ac_fn_cxx_try_compile "$LINENO"; then :
4627 ac_cv_prog_cxx_g=yes
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4637 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4638 if test "$ac_test_CXXFLAGS" = set; then
4639 CXXFLAGS=$ac_save_CXXFLAGS
4640 elif test $ac_cv_prog_cxx_g = yes; then
4641 if test "$GXX" = yes; then
4647 if test "$GXX" = yes; then
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$GNATBIND"; then
4671 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 GNATBIND=$ac_cv_prog_GNATBIND
4691 if test -n "$GNATBIND"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4693 $as_echo "$GNATBIND" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4701 if test -z "$ac_cv_prog_GNATBIND"; then
4702 ac_ct_GNATBIND=$GNATBIND
4703 # Extract the first word of "gnatbind", so it can be a program name with args.
4704 set dummy gnatbind; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4710 if test -n "$ac_ct_GNATBIND"; then
4711 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4731 if test -n "$ac_ct_GNATBIND"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4733 $as_echo "$ac_ct_GNATBIND" >&6; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4739 if test "x$ac_ct_GNATBIND" = x; then
4742 case $cross_compiling:$ac_tool_warned in
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4746 ac_tool_warned=yes ;;
4748 GNATBIND=$ac_ct_GNATBIND
4751 GNATBIND="$ac_cv_prog_GNATBIND"
4754 if test -n "$ac_tool_prefix"; then
4755 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4756 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4760 $as_echo_n "(cached) " >&6
4762 if test -n "$GNATMAKE"; then
4763 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 GNATMAKE=$ac_cv_prog_GNATMAKE
4783 if test -n "$GNATMAKE"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4785 $as_echo "$GNATMAKE" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4793 if test -z "$ac_cv_prog_GNATMAKE"; then
4794 ac_ct_GNATMAKE=$GNATMAKE
4795 # Extract the first word of "gnatmake", so it can be a program name with args.
4796 set dummy gnatmake; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4823 if test -n "$ac_ct_GNATMAKE"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4825 $as_echo "$ac_ct_GNATMAKE" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4831 if test "x$ac_ct_GNATMAKE" = x; then
4834 case $cross_compiling:$ac_tool_warned in
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4840 GNATMAKE=$ac_ct_GNATMAKE
4843 GNATMAKE="$ac_cv_prog_GNATMAKE"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4847 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4848 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4851 cat >conftest.adb <<EOF
4852 procedure conftest is begin null; end conftest;
4854 acx_cv_cc_gcc_supports_ada=no
4855 # There is a bug in old released versions of GCC which causes the
4856 # driver to exit successfully when the appropriate language module
4857 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4858 # Therefore we must check for the error message as well as an
4859 # unsuccessful exit.
4860 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4861 # given a .adb file, but produce no object file. So we must check
4862 # if an object file was really produced to guard against this.
4863 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4864 if test x"$errors" = x && test -f conftest.$ac_objext; then
4865 acx_cv_cc_gcc_supports_ada=yes
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4870 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4872 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4879 # autoconf is lame and doesn't give us any substitution variable for this.
4880 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4881 NO_MINUS_C_MINUS_O=yes
4883 OUTPUT_OPTION='-o $@'
4888 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4889 # optimizations to be activated explicitly by the toplevel.
4891 */prev-gcc/xgcc*) ;;
4892 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4893 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4898 # Determine PICFLAG for target gnatlib.
4904 # PIC is the default on some targets or must not be used.
4906 # PIC is the default on this platform
4907 # Common symbols not allowed in MH_DYLIB files
4908 PICFLAG_FOR_TARGET=-fno-common
4911 # PIC is the default.
4914 # PIC is the default for 64-bit PA HP-UX.
4916 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4918 i[34567]86-*-interix[3-9]*)
4919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4920 # Instead, we relocate shared libraries at runtime.
4922 i[34567]86-*-nto-qnx*)
4923 # QNX uses GNU C++, but need to define -shared option too, otherwise
4925 PICFLAG_FOR_TARGET='-fPIC -shared'
4927 i[34567]86-pc-msdosdjgpp*)
4928 # DJGPP does not support shared libraries at all.
4931 # On IA64 HP-UX, PIC is the default but the pic flag
4932 # sets the default TLS model and affects inlining.
4933 PICFLAG_FOR_TARGET=-fPIC
4936 # PIC is the default.
4938 rs6000-ibm-aix* | powerpc-ibm-aix*)
4939 # All AIX code is PIC.
4942 # Some targets support both -fPIC and -fpic, but prefer the latter.
4944 i[34567]86-*-* | x86_64-*-*)
4945 PICFLAG_FOR_TARGET=-fpic
4948 PICFLAG_FOR_TARGET=-fpic
4950 # FIXME: Override -fPIC default in libgcc only?
4951 sh-*-linux* | sh[2346lbe]*-*-linux*)
4952 PICFLAG_FOR_TARGET=-fpic
4954 # FIXME: Simplify to sh*-*-netbsd*?
4955 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4956 sh64-*-netbsd* | sh64l*-*-netbsd*)
4957 PICFLAG_FOR_TARGET=-fpic
4959 # Default to -fPIC unless specified otherwise.
4961 PICFLAG_FOR_TARGET=-fPIC
4965 # If the user explicitly uses -fpic/-fPIC, keep that.
4966 case "${CFLAGS_FOR_TARGET}" in
4968 PICFLAG_FOR_TARGET=-fpic
4971 PICFLAG_FOR_TARGET=-fPIC
4977 # -------------------------
4978 # Check C compiler features
4979 # -------------------------
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4993 if test -z "$CPP"; then
4994 if test "${ac_cv_prog_CPP+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5012 # include <limits.h>
5014 # include <assert.h>
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5021 # Broken: fails on valid input.
5024 rm -f conftest.err conftest.$ac_ext
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <ac_nonexistent.h>
5032 if ac_fn_c_try_cpp "$LINENO"; then :
5033 # Broken: success on invalid input.
5036 # Passes both tests.
5040 rm -f conftest.err conftest.$ac_ext
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.err conftest.
$ac_ext
5045 if $ac_preproc_ok; then :
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5058 $as_echo "$CPP" >&6; }
5060 for ac_c_preproc_warn_flag
in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5071 # include <limits.h>
5073 # include <assert.h>
5077 if ac_fn_c_try_cpp
"$LINENO"; then :
5080 # Broken: fails on valid input.
5083 rm -f conftest.err conftest.
$ac_ext
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <ac_nonexistent.h>
5091 if ac_fn_c_try_cpp
"$LINENO"; then :
5092 # Broken: success on invalid input.
5095 # Passes both tests.
5099 rm -f conftest.err conftest.
$ac_ext
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.err conftest.
$ac_ext
5104 if $ac_preproc_ok; then :
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details." "$LINENO" 5; }
5114 ac_cpp
='$CPP $CPPFLAGS'
5115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if test "${ac_cv_path_GREP+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5125 if test -z "$GREP"; then
5126 ac_path_GREP_found
=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5129 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5132 test -z "$as_dir" && as_dir
=.
5133 for ac_prog
in grep ggrep
; do
5134 for ac_exec_ext
in '' $ac_executable_extensions; do
5135 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5136 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5141 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5144 $as_echo_n 0123456789 >"conftest.in"
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5152 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5153 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP
="$ac_path_GREP"
5157 ac_path_GREP_max
=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5162 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5165 $ac_path_GREP_found && break 3
5170 if test -z "$ac_cv_path_GREP"; then
5171 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5174 ac_cv_path_GREP
=$GREP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP
="$ac_cv_path_GREP"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if test "${ac_cv_path_EGREP+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5188 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5189 then ac_cv_path_EGREP
="$GREP -E"
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found
=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5195 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_prog
in egrep; do
5200 for ac_exec_ext
in '' $ac_executable_extensions; do
5201 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5207 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5210 $as_echo_n 0123456789 >"conftest.in"
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5218 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5219 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP
="$ac_path_EGREP"
5223 ac_path_EGREP_max
=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5228 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5231 $ac_path_EGREP_found && break 3
5236 if test -z "$ac_cv_path_EGREP"; then
5237 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240 ac_cv_path_EGREP
=$EGREP
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP
="$ac_cv_path_EGREP"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if test "${ac_cv_header_stdc+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5270 if ac_fn_c_try_compile
"$LINENO"; then :
5271 ac_cv_header_stdc
=yes
5273 ac_cv_header_stdc
=no
5275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5277 if test $ac_cv_header_stdc = yes; then
5278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev
/null
2>&1; then :
5288 ac_cv_header_stdc
=no
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev
/null
2>&1; then :
5305 ac_cv_header_stdc
=no
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then :
5316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5324 # define ISLOWER(c) \
5325 (('a' <= (c) && (c) <= 'i') \
5326 || ('j' <= (c) && (c) <= 'r') \
5327 || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5336 for (i = 0; i < 256; i++)
5337 if (XOR (islower (i), ISLOWER (i))
5338 || toupper (i) != TOUPPER (i))
5343 if ac_fn_c_try_run
"$LINENO"; then :
5346 ac_cv_header_stdc
=no
5348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5364 inttypes.h stdint.h unistd.h
5366 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5369 eval as_val
=\$
$as_ac_Header
5370 if test "x$as_val" = x
""yes; then :
5371 cat >>confdefs.h
<<_ACEOF
5372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5382 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5389 if test "$MINIX" = yes; then
5391 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5394 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5397 $as_echo "#define _MINIX 1" >>confdefs.h
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5403 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5404 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 # define __EXTENSIONS__ 1
5411 $ac_includes_default
5420 if ac_fn_c_try_compile
"$LINENO"; then :
5421 ac_cv_safe_to_define___extensions__
=yes
5423 ac_cv_safe_to_define___extensions__
=no
5425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5428 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5429 test $ac_cv_safe_to_define___extensions__ = yes &&
5430 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5432 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5434 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5436 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5438 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5442 ac_cpp
='$CPP $CPPFLAGS'
5443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5447 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5448 # On Suns, sometimes $CPP names a directory.
5449 if test -n "$CPP" && test -d "$CPP"; then
5452 if test -z "$CPP"; then
5453 if test "${ac_cv_prog_CPP+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5456 # Double quotes because CPP needs to be expanded
5457 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5460 for ac_c_preproc_warn_flag
in '' yes
5462 # Use a header file that comes with gcc, so configuring glibc
5463 # with a fresh cross-compiler works.
5464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465 # <limits.h> exists even on freestanding compilers.
5466 # On the NeXT, cc -E runs the code through the compiler's parser,
5467 # not just through cpp. "Syntax error" is here to catch this case.
5468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5471 # include <limits.h>
5473 # include <assert.h>
5477 if ac_fn_c_try_cpp
"$LINENO"; then :
5480 # Broken: fails on valid input.
5483 rm -f conftest.err conftest.
$ac_ext
5485 # OK, works on sane cases. Now check whether nonexistent headers
5486 # can be detected and how.
5487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 #include <ac_nonexistent.h>
5491 if ac_fn_c_try_cpp
"$LINENO"; then :
5492 # Broken: success on invalid input.
5495 # Passes both tests.
5499 rm -f conftest.err conftest.
$ac_ext
5502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5503 rm -f conftest.err conftest.
$ac_ext
5504 if $ac_preproc_ok; then :
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5517 $as_echo "$CPP" >&6; }
5519 for ac_c_preproc_warn_flag
in '' yes
5521 # Use a header file that comes with gcc, so configuring glibc
5522 # with a fresh cross-compiler works.
5523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524 # <limits.h> exists even on freestanding compilers.
5525 # On the NeXT, cc -E runs the code through the compiler's parser,
5526 # not just through cpp. "Syntax error" is here to catch this case.
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5530 # include <limits.h>
5532 # include <assert.h>
5536 if ac_fn_c_try_cpp
"$LINENO"; then :
5539 # Broken: fails on valid input.
5542 rm -f conftest.err conftest.
$ac_ext
5544 # OK, works on sane cases. Now check whether nonexistent headers
5545 # can be detected and how.
5546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <ac_nonexistent.h>
5550 if ac_fn_c_try_cpp
"$LINENO"; then :
5551 # Broken: success on invalid input.
5554 # Passes both tests.
5558 rm -f conftest.err conftest.
$ac_ext
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.
$ac_ext
5563 if $ac_preproc_ok; then :
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5569 See \`config.log' for more details." "$LINENO" 5; }
5573 ac_cpp
='$CPP $CPPFLAGS'
5574 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5579 $as_echo_n "checking for inline... " >&6; }
5580 if test "${ac_cv_c_inline+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5584 for ac_kw
in inline __inline__ __inline
; do
5585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5589 static $ac_kw foo_t static_foo () {return 0; }
5590 $ac_kw foo_t foo () {return 0; }
5594 if ac_fn_c_try_compile
"$LINENO"; then :
5595 ac_cv_c_inline
=$ac_kw
5597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5598 test "$ac_cv_c_inline" != no
&& break
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5603 $as_echo "$ac_cv_c_inline" >&6; }
5605 case $ac_cv_c_inline in
5608 case $ac_cv_c_inline in
5610 *) ac_val
=$ac_cv_c_inline;;
5612 cat >>confdefs.h
<<_ACEOF
5614 #define inline $ac_val
5621 # Check whether --enable-largefile was given.
5622 if test "${enable_largefile+set}" = set; then :
5623 enableval
=$enable_largefile;
5626 if test "$enable_largefile" != no
; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5629 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5630 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 ac_cv_sys_largefile_CC
=no
5634 if test "$GCC" != yes; then
5637 # IRIX 6.2 and later do not support large files by default,
5638 # so use the C compiler's -n32 option if that helps.
5639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #include <sys/types.h>
5642 /* Check that off_t can represent 2**63 - 1 correctly.
5643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5644 since some C++ compilers masquerading as C compilers
5645 incorrectly reject 9223372036854775807. */
5646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5648 && LARGE_OFF_T % 2147483647 == 1)
5658 if ac_fn_c_try_compile
"$LINENO"; then :
5661 rm -f core conftest.err conftest.
$ac_objext
5663 if ac_fn_c_try_compile
"$LINENO"; then :
5664 ac_cv_sys_largefile_CC
=' -n32'; break
5666 rm -f core conftest.err conftest.
$ac_objext
5670 rm -f conftest.
$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5674 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5675 if test "$ac_cv_sys_largefile_CC" != no
; then
5676 CC
=$CC$ac_cv_sys_largefile_CC
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5680 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5681 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5704 if ac_fn_c_try_compile
"$LINENO"; then :
5705 ac_cv_sys_file_offset_bits
=no
; break
5707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 #define _FILE_OFFSET_BITS 64
5711 #include <sys/types.h>
5712 /* Check that off_t can represent 2**63 - 1 correctly.
5713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5714 since some C++ compilers masquerading as C compilers
5715 incorrectly reject 9223372036854775807. */
5716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5718 && LARGE_OFF_T % 2147483647 == 1)
5728 if ac_fn_c_try_compile
"$LINENO"; then :
5729 ac_cv_sys_file_offset_bits
=64; break
5731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5732 ac_cv_sys_file_offset_bits
=unknown
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5737 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5738 case $ac_cv_sys_file_offset_bits in #(
5741 cat >>confdefs.h
<<_ACEOF
5742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5747 if test $ac_cv_sys_file_offset_bits = unknown
; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5749 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5750 if test "${ac_cv_sys_large_files+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 /* Check that off_t can represent 2**63 - 1 correctly.
5758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5759 since some C++ compilers masquerading as C compilers
5760 incorrectly reject 9223372036854775807. */
5761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5763 && LARGE_OFF_T % 2147483647 == 1)
5773 if ac_fn_c_try_compile
"$LINENO"; then :
5774 ac_cv_sys_large_files
=no
; break
5776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #define _LARGE_FILES 1
5780 #include <sys/types.h>
5781 /* Check that off_t can represent 2**63 - 1 correctly.
5782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5783 since some C++ compilers masquerading as C compilers
5784 incorrectly reject 9223372036854775807. */
5785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5787 && LARGE_OFF_T % 2147483647 == 1)
5797 if ac_fn_c_try_compile
"$LINENO"; then :
5798 ac_cv_sys_large_files
=1; break
5800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5801 ac_cv_sys_large_files
=unknown
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5806 $as_echo "$ac_cv_sys_large_files" >&6; }
5807 case $ac_cv_sys_large_files in #(
5810 cat >>confdefs.h
<<_ACEOF
5811 #define _LARGE_FILES $ac_cv_sys_large_files
5820 # sizeof(char) is 1 by definition.
5821 # The cast to long int works around a bug in the HP C Compiler
5822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5824 # This bug is HP SR number 8606223364.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5826 $as_echo_n "checking size of void *... " >&6; }
5827 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5830 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5833 if test "$ac_cv_type_void_p" = yes; then
5834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836 { as_fn_set_status
77
5837 as_fn_error
"cannot compute sizeof (void *)
5838 See \`config.log' for more details." "$LINENO" 5; }; }
5840 ac_cv_sizeof_void_p
=0
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5846 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5850 cat >>confdefs.h
<<_ACEOF
5851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5855 # The cast to long int works around a bug in the HP C Compiler
5856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5858 # This bug is HP SR number 8606223364.
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5860 $as_echo_n "checking size of short... " >&6; }
5861 if test "${ac_cv_sizeof_short+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5867 if test "$ac_cv_type_short" = yes; then
5868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5870 { as_fn_set_status
77
5871 as_fn_error
"cannot compute sizeof (short)
5872 See \`config.log' for more details." "$LINENO" 5; }; }
5874 ac_cv_sizeof_short
=0
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5880 $as_echo "$ac_cv_sizeof_short" >&6; }
5884 cat >>confdefs.h
<<_ACEOF
5885 #define SIZEOF_SHORT $ac_cv_sizeof_short
5889 # The cast to long int works around a bug in the HP C Compiler
5890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5892 # This bug is HP SR number 8606223364.
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5894 $as_echo_n "checking size of int... " >&6; }
5895 if test "${ac_cv_sizeof_int+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5898 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5901 if test "$ac_cv_type_int" = yes; then
5902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5904 { as_fn_set_status
77
5905 as_fn_error
"cannot compute sizeof (int)
5906 See \`config.log' for more details." "$LINENO" 5; }; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5914 $as_echo "$ac_cv_sizeof_int" >&6; }
5918 cat >>confdefs.h
<<_ACEOF
5919 #define SIZEOF_INT $ac_cv_sizeof_int
5923 # The cast to long int works around a bug in the HP C Compiler
5924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5926 # This bug is HP SR number 8606223364.
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5928 $as_echo_n "checking size of long... " >&6; }
5929 if test "${ac_cv_sizeof_long+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5935 if test "$ac_cv_type_long" = yes; then
5936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5938 { as_fn_set_status
77
5939 as_fn_error
"cannot compute sizeof (long)
5940 See \`config.log' for more details." "$LINENO" 5; }; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5948 $as_echo "$ac_cv_sizeof_long" >&6; }
5952 cat >>confdefs.h
<<_ACEOF
5953 #define SIZEOF_LONG $ac_cv_sizeof_long
5957 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5958 if test "x$ac_cv_type_long_long" = x
""yes; then :
5960 cat >>confdefs.h
<<_ACEOF
5961 #define HAVE_LONG_LONG 1
5964 # The cast to long int works around a bug in the HP C Compiler
5965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5967 # This bug is HP SR number 8606223364.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5969 $as_echo_n "checking size of long long... " >&6; }
5970 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5973 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5976 if test "$ac_cv_type_long_long" = yes; then
5977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5979 { as_fn_set_status
77
5980 as_fn_error
"cannot compute sizeof (long long)
5981 See \`config.log' for more details." "$LINENO" 5; }; }
5983 ac_cv_sizeof_long_long
=0
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5989 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5993 cat >>confdefs.h
<<_ACEOF
5994 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6000 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
6001 if test "x$ac_cv_type___int64" = x
""yes; then :
6003 cat >>confdefs.h
<<_ACEOF
6004 #define HAVE___INT64 1
6007 # The cast to long int works around a bug in the HP C Compiler
6008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6010 # This bug is HP SR number 8606223364.
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6012 $as_echo_n "checking size of __int64... " >&6; }
6013 if test "${ac_cv_sizeof___int64+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6016 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6019 if test "$ac_cv_type___int64" = yes; then
6020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6022 { as_fn_set_status
77
6023 as_fn_error
"cannot compute sizeof (__int64)
6024 See \`config.log' for more details." "$LINENO" 5; }; }
6026 ac_cv_sizeof___int64
=0
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6032 $as_echo "$ac_cv_sizeof___int64" >&6; }
6036 cat >>confdefs.h
<<_ACEOF
6037 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6043 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6044 case $ac_cv_c_int8_t in #(
6048 cat >>confdefs.h
<<_ACEOF
6049 #define int8_t $ac_cv_c_int8_t
6054 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6055 case $ac_cv_c_int16_t in #(
6059 cat >>confdefs.h
<<_ACEOF
6060 #define int16_t $ac_cv_c_int16_t
6065 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6066 case $ac_cv_c_int32_t in #(
6070 cat >>confdefs.h
<<_ACEOF
6071 #define int32_t $ac_cv_c_int32_t
6076 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6077 case $ac_cv_c_int64_t in #(
6081 cat >>confdefs.h
<<_ACEOF
6082 #define int64_t $ac_cv_c_int64_t
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6089 $as_echo_n "checking for long long int... " >&6; }
6090 if test "${ac_cv_type_long_long_int+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6096 /* For now, do not test the preprocessor; as of 2007 there are too many
6097 implementations with broken preprocessors. Perhaps this can
6098 be revisited in 2012. In the meantime, code should not expect
6099 #if to work with literals wider than 32 bits. */
6100 /* Test literals. */
6101 long long int ll = 9223372036854775807ll;
6102 long long int nll = -9223372036854775807LL;
6103 unsigned long long int ull = 18446744073709551615ULL;
6104 /* Test constant expressions. */
6105 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6107 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6113 /* Test availability of runtime routines for shift and division. */
6114 long long int llmax = 9223372036854775807ll;
6115 unsigned long long int ullmax = 18446744073709551615ull;
6116 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6117 | (llmax / ll) | (llmax % ll)
6118 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6119 | (ullmax / ull) | (ullmax % ull));
6125 if ac_fn_c_try_link
"$LINENO"; then :
6126 if test "$cross_compiling" = yes; then :
6127 ac_cv_type_long_long_int
=yes
6129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6134 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6135 # define LLONG_MAX (HALF - 1 + HALF)
6140 long long int n = 1;
6144 long long int m = n << i;
6147 if (LLONG_MAX / 2 < m)
6155 if ac_fn_c_try_run
"$LINENO"; then :
6156 ac_cv_type_long_long_int
=yes
6158 ac_cv_type_long_long_int
=no
6160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6165 ac_cv_type_long_long_int
=no
6167 rm -f core conftest.err conftest.
$ac_objext \
6168 conftest
$ac_exeext conftest.
$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6171 $as_echo "$ac_cv_type_long_long_int" >&6; }
6172 if test $ac_cv_type_long_long_int = yes; then
6174 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6180 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6183 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6186 test $ac_cv_type_long_long_int = yes \
6187 && ac_type
='long long int' \
6188 || ac_type
='long int'
6190 cat >>confdefs.h
<<_ACEOF
6191 #define intmax_t $ac_type
6198 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6199 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6201 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6204 for ac_type
in 'int' 'long int' 'long long int'; do
6205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 $ac_includes_default
6211 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6218 if ac_fn_c_try_compile
"$LINENO"; then :
6220 cat >>confdefs.h
<<_ACEOF
6221 #define intptr_t $ac_type
6226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6227 test -z "$ac_type" && break
6232 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6233 case $ac_cv_c_uint8_t in #(
6237 $as_echo "#define _UINT8_T 1" >>confdefs.h
6240 cat >>confdefs.h
<<_ACEOF
6241 #define uint8_t $ac_cv_c_uint8_t
6246 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6247 case $ac_cv_c_uint16_t in #(
6252 cat >>confdefs.h
<<_ACEOF
6253 #define uint16_t $ac_cv_c_uint16_t
6258 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6259 case $ac_cv_c_uint32_t in #(
6263 $as_echo "#define _UINT32_T 1" >>confdefs.h
6266 cat >>confdefs.h
<<_ACEOF
6267 #define uint32_t $ac_cv_c_uint32_t
6272 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6273 case $ac_cv_c_uint64_t in #(
6277 $as_echo "#define _UINT64_T 1" >>confdefs.h
6280 cat >>confdefs.h
<<_ACEOF
6281 #define uint64_t $ac_cv_c_uint64_t
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6288 $as_echo_n "checking for unsigned long long int... " >&6; }
6289 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6295 /* For now, do not test the preprocessor; as of 2007 there are too many
6296 implementations with broken preprocessors. Perhaps this can
6297 be revisited in 2012. In the meantime, code should not expect
6298 #if to work with literals wider than 32 bits. */
6299 /* Test literals. */
6300 long long int ll = 9223372036854775807ll;
6301 long long int nll = -9223372036854775807LL;
6302 unsigned long long int ull = 18446744073709551615ULL;
6303 /* Test constant expressions. */
6304 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6306 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6312 /* Test availability of runtime routines for shift and division. */
6313 long long int llmax = 9223372036854775807ll;
6314 unsigned long long int ullmax = 18446744073709551615ull;
6315 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6316 | (llmax / ll) | (llmax % ll)
6317 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6318 | (ullmax / ull) | (ullmax % ull));
6324 if ac_fn_c_try_link
"$LINENO"; then :
6325 ac_cv_type_unsigned_long_long_int
=yes
6327 ac_cv_type_unsigned_long_long_int
=no
6329 rm -f core conftest.err conftest.
$ac_objext \
6330 conftest
$ac_exeext conftest.
$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6333 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6334 if test $ac_cv_type_unsigned_long_long_int = yes; then
6336 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6342 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6345 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6348 test $ac_cv_type_unsigned_long_long_int = yes \
6349 && ac_type
='unsigned long long int' \
6350 || ac_type
='unsigned long int'
6352 cat >>confdefs.h
<<_ACEOF
6353 #define uintmax_t $ac_type
6360 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6361 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6363 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6366 for ac_type
in 'unsigned int' 'unsigned long int' \
6367 'unsigned long long int'; do
6368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370 $ac_includes_default
6374 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6381 if ac_fn_c_try_compile
"$LINENO"; then :
6383 cat >>confdefs.h
<<_ACEOF
6384 #define uintptr_t $ac_type
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 test -z "$ac_type" && break
6408 # ---------------------
6409 # Warnings and checking
6410 # ---------------------
6412 # Check $CC warning features (if it's GCC).
6413 # We want to use -pedantic, but we don't want warnings about
6416 # * overlong strings
6417 # * C++11 narrowing conversions in { }
6418 # So, we only use -pedantic if we can disable those warnings.
6421 save_CFLAGS
="$CFLAGS"
6422 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6423 # Do the check with the no- prefix removed since gcc silently
6424 # accepts any -Wno-* option on purpose
6425 case $real_option in
6426 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6427 *) option
=$real_option ;;
6429 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6432 $as_echo_n "checking whether $CC supports $option... " >&6; }
6433 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6434 $as_echo_n "(cached) " >&6
6437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6448 if ac_fn_c_try_compile
"$LINENO"; then :
6449 eval "$as_acx_Woption=yes"
6451 eval "$as_acx_Woption=no"
6453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6456 eval ac_res
=\$
$as_acx_Woption
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6458 $as_echo "$ac_res" >&6; }
6459 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6460 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6463 CFLAGS
="$save_CFLAGS"
6466 save_CFLAGS
="$CFLAGS"
6467 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6468 # Do the check with the no- prefix removed since gcc silently
6469 # accepts any -Wno-* option on purpose
6470 case $real_option in
6471 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6472 *) option
=$real_option ;;
6474 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6477 $as_echo_n "checking whether $CC supports $option... " >&6; }
6478 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6479 $as_echo_n "(cached) " >&6
6482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6493 if ac_fn_c_try_compile
"$LINENO"; then :
6494 eval "$as_acx_Woption=yes"
6496 eval "$as_acx_Woption=no"
6498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6501 eval ac_res
=\$
$as_acx_Woption
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6503 $as_echo "$ac_res" >&6; }
6504 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6505 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6508 CFLAGS
="$save_CFLAGS"
6511 save_CFLAGS
="$CFLAGS"
6512 for real_option
in -Wmissing-format-attribute; do
6513 # Do the check with the no- prefix removed since gcc silently
6514 # accepts any -Wno-* option on purpose
6515 case $real_option in
6516 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6517 *) option
=$real_option ;;
6519 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6522 $as_echo_n "checking whether $CC supports $option... " >&6; }
6523 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6524 $as_echo_n "(cached) " >&6
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6538 if ac_fn_c_try_compile
"$LINENO"; then :
6539 eval "$as_acx_Woption=yes"
6541 eval "$as_acx_Woption=no"
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 eval ac_res
=\$
$as_acx_Woption
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6548 $as_echo "$ac_res" >&6; }
6549 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6550 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6553 CFLAGS
="$save_CFLAGS"
6556 save_CFLAGS
="$CFLAGS"
6557 for real_option
in -Wold-style-definition -Wc++-compat; do
6558 # Do the check with the no- prefix removed since gcc silently
6559 # accepts any -Wno-* option on purpose
6560 case $real_option in
6561 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6562 *) option
=$real_option ;;
6564 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6567 $as_echo_n "checking whether $CC supports $option... " >&6; }
6568 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6569 $as_echo_n "(cached) " >&6
6572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6583 if ac_fn_c_try_compile
"$LINENO"; then :
6584 eval "$as_acx_Woption=yes"
6586 eval "$as_acx_Woption=no"
6588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6591 eval ac_res
=\$
$as_acx_Woption
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6593 $as_echo "$ac_res" >&6; }
6594 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6595 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6598 CFLAGS
="$save_CFLAGS"
6600 # Do the check with the no- prefix removed from the warning options
6601 # since gcc silently accepts any -Wno-* option on purpose
6602 if test "$GCC" = yes; then :
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6604 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6605 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6608 save_CFLAGS
="$CFLAGS"
6609 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6621 if ac_fn_c_try_compile
"$LINENO"; then :
6622 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6624 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6627 CFLAGS
="$save_CFLAGS"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6630 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6631 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6632 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6637 # Check whether --enable-werror-always was given.
6638 if test "${enable_werror_always+set}" = set; then :
6639 enableval
=$enable_werror_always;
6641 enable_werror_always
=no
6644 if test $enable_werror_always = yes; then :
6645 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6650 # The above macros do nothing if the compiler is not GCC. However, the
6651 # Makefile has more goo to add other flags, so these variables are used
6652 # to enable warnings only for GCC.
6655 if test "x$GCC" = "xyes"; then
6656 warn_cflags
='$(GCC_WARN_CFLAGS)'
6657 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6662 # Disable exceptions and RTTI if building with g++
6664 save_CFLAGS
="$CFLAGS"
6665 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6666 # Do the check with the no- prefix removed since gcc silently
6667 # accepts any -Wno-* option on purpose
6668 case $real_option in
6669 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6670 *) option
=$real_option ;;
6672 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6675 $as_echo_n "checking whether $CC supports $option... " >&6; }
6676 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6677 $as_echo_n "(cached) " >&6
6680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6691 if ac_fn_c_try_compile
"$LINENO"; then :
6692 eval "$as_acx_Woption=yes"
6694 eval "$as_acx_Woption=no"
6696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6699 eval ac_res
=\$
$as_acx_Woption
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6701 $as_echo "$ac_res" >&6; }
6702 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6703 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6706 CFLAGS
="$save_CFLAGS"
6709 # Enable expensive internal checks
6711 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6715 # Check whether --enable-checking was given.
6716 if test "${enable_checking+set}" = set; then :
6717 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6720 # Determine the default checks.
6721 if test x
$is_release = x
; then
6722 ac_checking_flags
=yes
6724 ac_checking_flags
=release
6728 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6729 for check
in release
$ac_checking_flags
6732 # these set all the flags to specific states
6733 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6734 ac_fold_checking
= ; ac_gc_checking
=1 ;
6735 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6736 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6737 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6738 ac_types_checking
=1 ;;
6739 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6740 ac_fold_checking
= ; ac_gc_checking
= ;
6741 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6742 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6743 ac_tree_checking
= ; ac_valgrind_checking
= ;
6744 ac_types_checking
= ;;
6745 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6746 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6747 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6748 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6749 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6750 ac_types_checking
=1 ;;
6751 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6752 ac_fold_checking
= ; ac_gc_checking
= ;
6753 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6754 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6755 ac_tree_checking
= ; ac_valgrind_checking
= ;
6756 ac_types_checking
= ;;
6757 # these enable particular checks
6758 assert
) ac_assert_checking
=1 ;;
6759 df
) ac_df_checking
=1 ;;
6760 fold) ac_fold_checking
=1 ;;
6761 gc
) ac_gc_checking
=1 ;;
6762 gcac
) ac_gc_always_collect
=1 ;;
6763 gimple
) ac_gimple_checking
=1 ;;
6764 misc
) ac_checking
=1 ;;
6765 rtl
) ac_rtl_checking
=1 ;;
6766 rtlflag
) ac_rtlflag_checking
=1 ;;
6767 runtime
) ac_runtime_checking
=1 ;;
6768 tree
) ac_tree_checking
=1 ;;
6769 types
) ac_types_checking
=1 ;;
6770 valgrind
) ac_valgrind_checking
=1 ;;
6771 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6777 if test x
$ac_checking != x
; then
6779 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6781 nocommon_flag
=-fno-common
6784 if test x
$ac_df_checking != x
; then
6786 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6789 if test x
$ac_assert_checking != x
; then
6791 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6794 if test x
$ac_gimple_checking != x
; then
6796 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6800 if test x
$ac_runtime_checking != x
; then
6802 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6805 if test x
$ac_tree_checking != x
; then
6807 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6809 TREEBROWSER
=tree-browser.o
6812 if test x
$ac_types_checking != x
; then
6814 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6819 if test x
$ac_rtl_checking != x
; then
6821 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6824 if test x
$ac_rtlflag_checking != x
; then
6826 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6829 if test x
$ac_gc_checking != x
; then
6831 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6834 if test x
$ac_gc_always_collect != x
; then
6836 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6839 if test x
$ac_fold_checking != x
; then
6841 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6844 valgrind_path_defines
=
6847 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6848 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6856 if test x
$ac_valgrind_checking != x
; then
6857 # It is certainly possible that there's valgrind but no valgrind.h.
6858 # GCC relies on making annotations so we must have both.
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6860 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <valgrind/memcheck.h>
6864 #ifndef VALGRIND_DISCARD
6865 #error VALGRIND_DISCARD not defined
6868 if ac_fn_c_try_cpp
"$LINENO"; then :
6869 gcc_cv_header_valgrind_memcheck_h
=yes
6871 gcc_cv_header_valgrind_memcheck_h
=no
6873 rm -f conftest.err conftest.
$ac_ext
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6875 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6877 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #include <memcheck.h>
6881 #ifndef VALGRIND_DISCARD
6882 #error VALGRIND_DISCARD not defined
6885 if ac_fn_c_try_cpp
"$LINENO"; then :
6886 gcc_cv_header_memcheck_h
=yes
6888 gcc_cv_header_memcheck_h
=no
6890 rm -f conftest.err conftest.
$ac_ext
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6892 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6894 # Prepare PATH_SEPARATOR.
6895 # The user is always right.
6896 if test "${PATH_SEPARATOR+set}" != set; then
6897 echo "#! /bin/sh" >conf$$.sh
6898 echo "exit 0" >>conf$$.sh
6900 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6908 # Find out how to test for executable files. Don't use a zero-byte file,
6909 # as systems may use methods other than mode bits to determine executability.
6910 cat >conf$$.
file <<_ASEOF
6914 chmod +x conf$$.
file
6915 if test -x conf$$.
file >/dev
/null
2>&1; then
6916 ac_executable_p
="test -x"
6918 ac_executable_p
="test -f"
6922 # Extract the first word of "valgrind", so it can be a program name with args.
6923 set dummy valgrind
; ac_word
=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6929 case "$valgrind_path" in
6931 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6934 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6935 for ac_dir
in $PATH; do
6937 test -z "$ac_dir" && ac_dir
=.
6938 for ac_exec_ext
in '' $ac_executable_extensions; do
6939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6940 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6941 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6951 valgrind_path
="$ac_cv_path_valgrind_path"
6952 if test -n "$valgrind_path"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6954 $as_echo "$valgrind_path" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$valgrind_path" = "x" \
6961 ||
(test $have_valgrind_h = no \
6962 && test $gcc_cv_header_memcheck_h = no \
6963 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6964 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6966 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6967 valgrind_command
="$valgrind_path -q"
6969 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6971 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6973 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6976 if test $gcc_cv_header_memcheck_h = yes; then
6978 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6985 # Enable code coverage collection
6986 # Check whether --enable-coverage was given.
6987 if test "${enable_coverage+set}" = set; then :
6988 enableval
=$enable_coverage; case "${enableval}" in
6990 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6993 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6996 # a.k.a. --disable-coverage
7000 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7009 # Check whether --enable-gather-detailed-mem-stats was given.
7010 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7011 enableval
=$enable_gather_detailed_mem_stats;
7013 enable_gather_detailed_mem_stats
=no
7016 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7018 cat >>confdefs.h
<<_ACEOF
7019 #define GATHER_STATISTICS $gather_stats
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval
=$with_stabs; stabs
="$with_stabs"
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval
=$enable_multilib;
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval
=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto
) enable_multiarch
=$enableval;;
7052 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7055 enable_multiarch
=auto
7058 if test x
${enable_multiarch} = xauto
; then
7059 if test x
${with_native_system_header_dir} != x
; then
7060 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7063 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7064 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval
=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval
=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7092 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7099 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7101 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7103 enable_decimal_float
=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float
=no
7115 # x86's use BID format instead of DPD
7116 case x
$enable_decimal_float in
7119 i?
86*-*-* | x86_64
*-*-*)
7120 enable_decimal_float
=bid
7123 enable_decimal_float
=dpd
7126 default_decimal_float
=$enable_decimal_float
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float
=dpd
7138 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h
<<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float
=$default_decimal_float
7148 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h
<<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval
=$enable_fixed_point;
7163 enable_fixed_point
=yes
7167 enable_fixed_point
=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point
=no
7180 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h
<<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval
=$enable_threads;
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval
=$enable_tls;
7203 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7224 case ,${enable_languages}, in
7225 *,upc
,) lang_upc_enabled
="yes" ;;
7230 # Check whether --with-upc-pts was given.
7231 if test "${with_upc_pts+set}" = set; then :
7232 withval
=$with_upc_pts;
7233 if test x
"$lang_upc_enabled" = x
"yes" ; then
7235 packed|struct
) upc_pts_rep
="$withval" ;;
7236 *) as_fn_error
"$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7241 support has been enabled" >&5
7242 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7243 support has been enabled" >&2;}
7248 if test x
"$lang_upc_enabled" = x
"yes" ; then
7249 upc_pts_rep
="packed"
7256 # Perl is required for checking pts representation
7257 # Extract the first word of "perl", so it can be a program name with args.
7258 set dummy perl
; ac_word
=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_PERL+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$PERL"; then
7265 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir
=.
7272 for ac_exec_ext
in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_PERL
="perl"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 PERL
=$ac_cv_prog_PERL
7285 if test -n "$PERL"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7287 $as_echo "$PERL" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7296 # Check whether --with-upc-pts-vaddr-order was given.
7297 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7298 withval
=$with_upc_pts_vaddr_order;
7299 if test x
"$lang_upc_enabled" = x
"yes" ; then
7300 upc_vaddr_order
="$withval"
7301 case "$upc_vaddr_order" in
7303 *) as_fn_error
"$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7307 support has been enabled" >&5
7308 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7309 support has been enabled" >&2;}
7314 if test x
"$lang_upc_enabled" = x
"yes" ; then
7315 # Default UPC PTS vaddr order to "first"
7316 upc_vaddr_order
="first"
7323 # Check whether --with-upc-packed-bits was given.
7324 if test "${with_upc_packed_bits+set}" = set; then :
7325 withval
=$with_upc_packed_bits;
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7327 Use --with-upc-pts-packed-bits instead." >&5
7328 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7329 Use --with-upc-pts-packed-bits instead." >&2;}
7330 with_upc_pts_packed_bits
="$withval";
7336 # Check whether --with-upc-pts-packed-bits was given.
7337 if test "${with_upc_pts_packed_bits+set}" = set; then :
7338 withval
=$with_upc_pts_packed_bits;
7339 if test x
"$lang_upc_enabled" = x
"yes" ; then
7340 if test x
"$upc_pts_rep" = x
"packed"; then
7341 UPC_PTS_PHASE_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7342 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7343 UPC_PTS_THREAD_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7344 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7345 UPC_PTS_VADDR_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7346 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7347 if test -z "$UPC_PTS_PHASE_SIZE" \
7348 ||
test -z "$UPC_PTS_THREAD_SIZE" \
7349 ||
test -z "$UPC_PTS_VADDR_SIZE" ; then
7350 as_fn_error
"--with-upc-pts-packed-bits=phase,thread,vaddr requires
7351 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7354 as_fn_error
"--with-upc-pts-packed-bits is only supported for
7355 the packed UPC pointer-to-shared representation" "$LINENO" 5
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7359 support has been enabled" >&5
7360 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7361 support has been enabled" >&2;}
7366 if test x
"$lang_upc_enabled" = x
"yes" ; then
7367 # GNU UPC packed pointer representation defaults.
7370 UPC_PTS_PHASE_SIZE
=20
7371 UPC_PTS_THREAD_SIZE
=12
7372 UPC_PTS_VADDR_SIZE
=32
7375 UPC_PTS_PHASE_SIZE
=20
7376 UPC_PTS_THREAD_SIZE
=10
7377 UPC_PTS_VADDR_SIZE
=34
7384 # Check whether --enable-upc-link-script was given.
7385 if test "${enable_upc_link_script+set}" = set; then :
7386 enableval
=$enable_upc_link_script;
7387 if test x
"$lang_upc_enabled" = x
"yes" ; then
7391 as_fn_error
"--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7395 support has been enabled" >&5
7396 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7397 support has been enabled" >&2;}
7402 if test x
"$lang_upc_enabled" = x
"yes" ; then
7403 enable_upc_link_script
=no
7409 if test x
"$lang_upc_enabled" = x
"yes" ; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7411 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7413 $as_echo "$upc_pts_rep" >&6; }
7414 case "$upc_pts_rep" in
7417 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7422 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7427 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7429 $as_echo "$upc_vaddr_order" >&6; }
7430 if test x
"$upc_vaddr_order" = x
"first"; then
7432 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7435 if test x
"$upc_pts_rep" = x
"packed"; then
7437 cat >>confdefs.h
<<_ACEOF
7438 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7442 cat >>confdefs.h
<<_ACEOF
7443 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7447 cat >>confdefs.h
<<_ACEOF
7448 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7452 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7454 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7455 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7456 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7459 $as_echo_n "checking for UPC link script support... " >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7461 $as_echo "$enable_upc_link_script" >&6; }
7462 if test "$enable_upc_link_script" = yes; then
7464 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7470 # Check whether --with-dwarf2 was given.
7471 if test "${with_dwarf2+set}" = set; then :
7472 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7478 # Check whether --enable-shared was given.
7479 if test "${enable_shared+set}" = set; then :
7480 enableval
=$enable_shared;
7481 case $enable_shared in
7485 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7486 for pkg
in $enableval; do
7487 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7502 # Check whether --with-native-system-header-dir was given.
7503 if test "${with_native_system_header_dir+set}" = set; then :
7504 withval
=$with_native_system_header_dir;
7505 case ${with_native_system_header_dir} in
7506 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7507 /* |
[A-Za-z
]:[\\/]*) ;;
7508 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7510 configured_native_system_header_dir
="${withval}"
7513 configured_native_system_header_dir
=
7518 # Check whether --with-build-sysroot was given.
7519 if test "${with_build_sysroot+set}" = set; then :
7520 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7521 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7524 SYSROOT_CFLAGS_FOR_TARGET
=
7529 if test "x$prefix" = xNONE
; then
7530 test_prefix
=/usr
/local
7534 if test "x$exec_prefix" = xNONE
; then
7535 test_exec_prefix
=$test_prefix
7537 test_exec_prefix
=$exec_prefix
7541 # Check whether --with-sysroot was given.
7542 if test "${with_sysroot+set}" = set; then :
7543 withval
=$with_sysroot;
7544 case ${with_sysroot} in
7545 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7546 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7549 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7550 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7552 case ${TARGET_SYSTEM_ROOT} in
7553 "${test_prefix}"|
"${test_prefix}/"*|\
7554 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7555 '${prefix}'|
'${prefix}/'*|\
7556 '${exec_prefix}'|
'${exec_prefix}/'*)
7557 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7558 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7565 TARGET_SYSTEM_ROOT_DEFINE
=
7566 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7575 # Check whether --with-specs was given.
7576 if test "${with_specs+set}" = set; then :
7577 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7587 # Check whether --with-pkgversion was given.
7588 if test "${with_pkgversion+set}" = set; then :
7589 withval
=$with_pkgversion; case "$withval" in
7590 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7592 *) PKGVERSION
="($withval) " ;;
7603 # Check whether --with-bugurl was given.
7604 if test "${with_bugurl+set}" = set; then :
7605 withval
=$with_bugurl; case "$withval" in
7606 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7609 *) BUGURL
="$withval"
7613 BUGURL
="http://gccupc.org/bugs"
7623 REPORT_BUGS_TO
="<$BUGURL>"
7624 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7631 # Sanity check enable_languages in case someone does not run the toplevel
7632 # configure # script.
7633 # Check whether --enable-languages was given.
7634 if test "${enable_languages+set}" = set; then :
7635 enableval
=$enable_languages; case ,${enable_languages}, in
7637 # go safe -- we cannot be much sure without the toplevel
7639 # analysis of which target libs are present and usable
7643 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7648 enable_languages
=c
,${enable_languages}
7657 # Check whether --with-multilib-list was given.
7658 if test "${with_multilib_list+set}" = set; then :
7659 withval
=$with_multilib_list; :
7661 with_multilib_list
=default
7665 # -------------------------
7666 # Checks for other programs
7667 # -------------------------
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7672 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7673 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7674 $as_echo_n "(cached) " >&6
7676 cat >conftest.
make <<\_ACEOF
7679 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7684 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7686 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7690 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692 $as_echo "yes" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 SET_MAKE
="MAKE=${MAKE-make}"
7701 # Find some useful tools
7702 for ac_prog
in gawk mawk nawk
awk
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy
$ac_prog; ac_word
=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_AWK+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$AWK"; then
7712 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir
=.
7719 for ac_exec_ext
in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_AWK
="$ac_prog"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 if test -n "$AWK"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7734 $as_echo "$AWK" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7741 test -n "$AWK" && break
7744 # We need awk to create options.c and options.h.
7745 # Bail out if it's missing.
7747 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7751 $as_echo_n "checking whether ln -s works... " >&6; }
7752 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 rm -f conftestdata_t
7756 echo >conftestdata_f
7757 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7759 gcc_cv_prog_LN_S
="ln -s"
7761 if ln conftestdata_f conftestdata_t
2>/dev
/null
7765 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7767 gcc_cv_prog_LN_S
="cp -p"
7773 rm -f conftestdata_f conftestdata_t
7776 LN_S
="$gcc_cv_prog_LN_S"
7777 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7779 $as_echo "yes" >&6; }
7781 if test "$gcc_cv_prog_LN_S" = "ln"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7783 $as_echo "no, using ln" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7786 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7791 $as_echo_n "checking whether ln works... " >&6; }
7792 if test "${acx_cv_prog_LN+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7795 rm -f conftestdata_t
7796 echo >conftestdata_f
7797 if ln conftestdata_f conftestdata_t
2>/dev
/null
7803 rm -f conftestdata_f conftestdata_t
7806 if test $acx_cv_prog_LN = no
; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7809 $as_echo "no, using $LN" >&6; }
7811 LN
="$acx_cv_prog_LN"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7813 $as_echo "yes" >&6; }
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7818 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$RANLIB"; then
7825 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir
=.
7832 for ac_exec_ext
in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 RANLIB
=$ac_cv_prog_RANLIB
7845 if test -n "$RANLIB"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7847 $as_echo "$RANLIB" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7855 if test -z "$ac_cv_prog_RANLIB"; then
7856 ac_ct_RANLIB
=$RANLIB
7857 # Extract the first word of "ranlib", so it can be a program name with args.
7858 set dummy ranlib
; ac_word
=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$ac_ct_RANLIB"; then
7865 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir
=.
7872 for ac_exec_ext
in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7885 if test -n "$ac_ct_RANLIB"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7887 $as_echo "$ac_ct_RANLIB" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7893 if test "x$ac_ct_RANLIB" = x
; then
7896 case $cross_compiling:$ac_tool_warned in
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned
=yes ;;
7902 RANLIB
=$ac_ct_RANLIB
7905 RANLIB
="$ac_cv_prog_RANLIB"
7911 # Find a good install program. We prefer a C program (faster),
7912 # so one script is as good as another. But avoid the broken or
7913 # incompatible versions:
7914 # SysV /etc/install, /usr/sbin/install
7915 # SunOS /usr/etc/install
7916 # IRIX /sbin/install
7918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7920 # ./install, which can be erroneously created by make from ./install.sh.
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7922 $as_echo_n "checking for a BSD compatible install... " >&6; }
7923 if test -z "$INSTALL"; then
7924 if test "${ac_cv_path_install+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7927 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7928 for ac_dir
in $PATH; do
7929 # Account for people who put trailing slashes in PATH elements.
7931 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7933 # OSF1 and SCO ODT 3.0 have their own names for install.
7934 for ac_prog
in ginstall scoinst
install; do
7935 if test -f $ac_dir/$ac_prog; then
7936 if test $ac_prog = install &&
7937 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7938 # AIX install. It has an incompatible calling convention.
7939 # OSF/1 installbsd also uses dspmsg, but is usable.
7942 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7953 if test "${ac_cv_path_install+set}" = set; then
7954 INSTALL
="$ac_cv_path_install"
7956 # As a last resort, use the slow shell script. We don't cache a
7957 # path for INSTALL within a source directory, because that will
7958 # break other packages using the cache if that directory is
7959 # removed, or if the path is relative.
7960 INSTALL
="$ac_install_sh"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7964 $as_echo "$INSTALL" >&6; }
7966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7967 # It thinks the first close brace ends the variable substitution.
7968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7970 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7973 # See if cmp has --ignore-initial.
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7975 $as_echo_n "checking for cmp's capabilities... " >&6; }
7976 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7981 gcc_cv_prog_cmp_skip
=slowcompare
7982 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7983 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7986 gcc_cv_prog_cmp_skip
=gnucompare
7989 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7990 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7991 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7994 gcc_cv_prog_cmp_skip
=fastcompare
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8002 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8003 make_compare_target
=$gcc_cv_prog_cmp_skip
8007 # See if we have the mktemp command.
8008 # Extract the first word of "mktemp", so it can be a program name with args.
8009 set dummy mktemp
; 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_have_mktemp_command+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8015 if test -n "$have_mktemp_command"; then
8016 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # 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_have_mktemp_command
="yes"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8036 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8037 if test -n "$have_mktemp_command"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8039 $as_echo "$have_mktemp_command" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8047 # See if makeinfo has been installed and is modern enough
8048 # that we can use it.
8050 # Extract the first word of "makeinfo", so it can be a program name with args.
8051 set dummy makeinfo
; ac_word
=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8057 if test -n "$MAKEINFO"; then
8058 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir
=.
8065 for ac_exec_ext
in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_prog_MAKEINFO
="makeinfo"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 MAKEINFO
=$ac_cv_prog_MAKEINFO
8078 if test -n "$MAKEINFO"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8080 $as_echo "$MAKEINFO" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8087 if test -n "$MAKEINFO"; then
8088 # Found it, now check the version.
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8090 $as_echo_n "checking for modern makeinfo... " >&6; }
8091 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8094 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8095 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8097 case $ac_prog_version in
8098 '') gcc_cv_prog_makeinfo_modern
=no
;;
8099 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8100 *) gcc_cv_prog_makeinfo_modern
=no
;;
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8105 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8107 gcc_cv_prog_makeinfo_modern
=no
8109 if test $gcc_cv_prog_makeinfo_modern = no
; then
8110 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8113 if test $gcc_cv_prog_makeinfo_modern = no
; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8115 *** Makeinfo is missing or too old.
8116 *** Info documentation will not be built." >&5
8117 $as_echo "$as_me: WARNING:
8118 *** Makeinfo is missing or too old.
8119 *** Info documentation will not be built." >&2;}
8126 # Is pod2man recent enough to regenerate manpages?
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8128 $as_echo_n "checking for recent Pod::Man... " >&6; }
8129 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 GENERATED_MANPAGES
=generated-manpages
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8140 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy
$ac_prog; ac_word
=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_FLEX+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8152 if test -n "$FLEX"; then
8153 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8159 test -z "$as_dir" && as_dir
=.
8160 for ac_exec_ext
in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_FLEX
="$ac_prog"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 FLEX
=$ac_cv_prog_FLEX
8173 if test -n "$FLEX"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8175 $as_echo "$FLEX" >&6; }
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8182 test -n "$FLEX" && break
8184 test -n "$FLEX" || FLEX
="$MISSING flex"
8188 for ac_prog
in bison
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy
$ac_prog; ac_word
=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_prog_BISON+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8197 if test -n "$BISON"; then
8198 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8204 test -z "$as_dir" && as_dir
=.
8205 for ac_exec_ext
in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_prog_BISON
="$ac_prog"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 BISON
=$ac_cv_prog_BISON
8218 if test -n "$BISON"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8220 $as_echo "$BISON" >&6; }
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8227 test -n "$BISON" && break
8229 test -n "$BISON" || BISON
="$MISSING bison"
8232 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8233 # check for build == host before using them.
8236 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8237 && test -d ..
/binutils
; then
8238 NM
='${objdir}/../binutils/nm-new'
8240 # Extract the first word of "nm", so it can be a program name with args.
8241 set dummy nm
; ac_word
=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_NM+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8247 if test -n "$NM"; then
8248 ac_cv_prog_NM
="$NM" # Let the user override the test.
8250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir
=.
8255 for ac_exec_ext
in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8269 if test -n "$NM"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8271 $as_echo "$NM" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8281 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8282 && test -d ..
/binutils
; then
8283 AR
='${objdir}/../binutils/ar'
8285 # Extract the first word of "ar", so it can be a program name with args.
8286 set dummy
ar; ac_word
=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_prog_AR+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8292 if test -n "$AR"; then
8293 ac_cv_prog_AR
="$AR" # Let the user override the test.
8295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir
=.
8300 for ac_exec_ext
in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8314 if test -n "$AR"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8316 $as_echo "$AR" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8326 # --------------------
8327 # Checks for C headers
8328 # --------------------
8330 # Need to reject headers which give warnings, so that the -Werror bootstrap
8331 # works later. *sigh* This needs to come before all header checks.
8333 ac_c_preproc_warn_flag
=yes
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8336 $as_echo_n "checking for ANSI C header files... " >&6; }
8337 if test "${ac_cv_header_stdc+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8355 if ac_fn_c_try_compile
"$LINENO"; then :
8356 ac_cv_header_stdc
=yes
8358 ac_cv_header_stdc
=no
8360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 if test $ac_cv_header_stdc = yes; then
8363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370 $EGREP "memchr" >/dev
/null
2>&1; then :
8373 ac_cv_header_stdc
=no
8379 if test $ac_cv_header_stdc = yes; then
8380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 $EGREP "free" >/dev
/null
2>&1; then :
8390 ac_cv_header_stdc
=no
8396 if test $ac_cv_header_stdc = yes; then
8397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8398 if test "$cross_compiling" = yes; then :
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8405 #if ((' ' & 0x0FF) == 0x020)
8406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8409 # define ISLOWER(c) \
8410 (('a' <= (c) && (c) <= 'i') \
8411 || ('j' <= (c) && (c) <= 'r') \
8412 || ('s' <= (c) && (c) <= 'z'))
8413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8421 for (i = 0; i < 256; i++)
8422 if (XOR (islower (i), ISLOWER (i))
8423 || toupper (i) != TOUPPER (i))
8428 if ac_fn_c_try_run
"$LINENO"; then :
8431 ac_cv_header_stdc
=no
8433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8440 $as_echo "$ac_cv_header_stdc" >&6; }
8441 if test $ac_cv_header_stdc = yes; then
8443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8448 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8449 if test "${ac_cv_header_time+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <sys/types.h>
8455 #include <sys/time.h>
8461 if ((struct tm *) 0)
8467 if ac_fn_c_try_compile
"$LINENO"; then :
8468 ac_cv_header_time
=yes
8470 ac_cv_header_time
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8475 $as_echo "$ac_cv_header_time" >&6; }
8476 if test $ac_cv_header_time = yes; then
8478 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8483 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8484 if test "${gcc_cv_header_string+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8490 #include <strings.h>
8499 if ac_fn_c_try_compile
"$LINENO"; then :
8500 gcc_cv_header_string
=yes
8502 gcc_cv_header_string
=no
8504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8507 $as_echo "$gcc_cv_header_string" >&6; }
8508 if test $gcc_cv_header_string = yes; then
8510 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8515 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8516 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <sys/types.h>
8522 #include <sys/wait.h>
8524 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8527 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8540 if ac_fn_c_try_compile
"$LINENO"; then :
8541 ac_cv_header_sys_wait_h
=yes
8543 ac_cv_header_sys_wait_h
=no
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8548 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8549 if test $ac_cv_header_sys_wait_h = yes; then
8551 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8555 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8556 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8557 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8558 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8560 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8561 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8562 eval as_val
=\$
$as_ac_Header
8563 if test "x$as_val" = x
""yes; then :
8564 cat >>confdefs.h
<<_ACEOF
8565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 # Check for thread headers.
8573 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8574 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8580 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8581 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8588 # These tests can't be done till we know if we have limits.h.
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8590 $as_echo_n "checking for CHAR_BIT... " >&6; }
8591 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #ifdef HAVE_LIMITS_H
8603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8604 $EGREP "found" >/dev
/null
2>&1; then :
8605 gcc_cv_decl_char_bit
=yes
8607 gcc_cv_decl_char_bit
=no
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8614 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8615 if test $gcc_cv_decl_char_bit = no
; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8617 $as_echo_n "checking number of bits in a byte... " >&6; }
8618 if test "${gcc_cv_c_nbby+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8623 while test $i -lt 65; do
8624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8631 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8632 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8638 if ac_fn_c_try_compile
"$LINENO"; then :
8639 gcc_cv_c_nbby
=$i; break
8641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8644 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8648 $as_echo "$gcc_cv_c_nbby" >&6; }
8649 if test $gcc_cv_c_nbby = failed
; then
8650 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8653 cat >>confdefs.h
<<_ACEOF
8654 #define CHAR_BIT $gcc_cv_c_nbby
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8660 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8661 if test "${ac_cv_c_bigendian+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8664 ac_cv_c_bigendian
=unknown
8665 # See if we're dealing with a universal compiler.
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #ifndef __APPLE_CC__
8669 not a universal capable compiler
8674 if ac_fn_c_try_compile
"$LINENO"; then :
8676 # Check for potential -arch flags. It is not universal unless
8677 # there are at least two -arch flags with different values.
8680 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8681 if test -n "$ac_prev"; then
8683 i?
86 | x86_64 | ppc | ppc64
)
8684 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8687 ac_cv_c_bigendian
=universal
8693 elif test "x$ac_word" = "x-arch"; then
8698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8699 if test $ac_cv_c_bigendian = unknown
; then
8700 # See if sys/param.h defines the BYTE_ORDER macro.
8701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/param.h>
8709 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8710 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8719 if ac_fn_c_try_compile
"$LINENO"; then :
8720 # It does; now see whether it defined to BIG_ENDIAN or not.
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <sys/types.h>
8724 #include <sys/param.h>
8729 #if BYTE_ORDER != BIG_ENDIAN
8737 if ac_fn_c_try_compile
"$LINENO"; then :
8738 ac_cv_c_bigendian
=yes
8740 ac_cv_c_bigendian
=no
8742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8746 if test $ac_cv_c_bigendian = unknown
; then
8747 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8755 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8763 if ac_fn_c_try_compile
"$LINENO"; then :
8764 # It does; now see whether it defined to _BIG_ENDIAN or not.
8765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8780 if ac_fn_c_try_compile
"$LINENO"; then :
8781 ac_cv_c_bigendian
=yes
8783 ac_cv_c_bigendian
=no
8785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 if test $ac_cv_c_bigendian = unknown
; then
8790 # Compile a test program.
8791 if test "$cross_compiling" = yes; then :
8792 # Try to guess by grepping values from an object file.
8793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 short int ascii_mm[] =
8796 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8797 short int ascii_ii[] =
8798 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8799 int use_ascii (int i) {
8800 return ascii_mm[i] + ascii_ii[i];
8802 short int ebcdic_ii[] =
8803 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8804 short int ebcdic_mm[] =
8805 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8806 int use_ebcdic (int i) {
8807 return ebcdic_mm[i] + ebcdic_ii[i];
8814 return use_ascii (foo) == use_ebcdic (foo);
8819 if ac_fn_c_try_compile
"$LINENO"; then :
8820 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8821 ac_cv_c_bigendian
=yes
8823 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8824 if test "$ac_cv_c_bigendian" = unknown
; then
8825 ac_cv_c_bigendian
=no
8827 # finding both strings is unlikely to happen, but who knows?
8828 ac_cv_c_bigendian
=unknown
8832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 $ac_includes_default
8841 /* Are we little or big endian? From Harbison&Steele. */
8845 char c[sizeof (long int)];
8848 return u.c[sizeof (long int) - 1] == 1;
8854 if ac_fn_c_try_run
"$LINENO"; then :
8855 ac_cv_c_bigendian
=no
8857 ac_cv_c_bigendian
=yes
8859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8866 $as_echo "$ac_cv_c_bigendian" >&6; }
8867 case $ac_cv_c_bigendian in #(
8869 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8875 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8879 as_fn_error
"unknown endianness
8880 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8884 # ----------------------
8885 # Checks for C++ headers
8886 # ----------------------
8889 ac_cpp
='$CXXCPP $CPPFLAGS'
8890 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8894 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8895 if test -z "$CXXCPP"; then
8896 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8899 # Double quotes because CXXCPP needs to be expanded
8900 for CXXCPP
in "$CXX -E" "/lib/cpp"
8903 for ac_cxx_preproc_warn_flag
in '' yes
8905 # Use a header file that comes with gcc, so configuring glibc
8906 # with a fresh cross-compiler works.
8907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908 # <limits.h> exists even on freestanding compilers.
8909 # On the NeXT, cc -E runs the code through the compiler's parser,
8910 # not just through cpp. "Syntax error" is here to catch this case.
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8914 # include <limits.h>
8916 # include <assert.h>
8920 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8923 # Broken: fails on valid input.
8926 rm -f conftest.err conftest.
$ac_ext
8928 # OK, works on sane cases. Now check whether nonexistent headers
8929 # can be detected and how.
8930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <ac_nonexistent.h>
8934 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8935 # Broken: success on invalid input.
8938 # Passes both tests.
8942 rm -f conftest.err conftest.
$ac_ext
8945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8946 rm -f conftest.err conftest.
$ac_ext
8947 if $ac_preproc_ok; then :
8952 ac_cv_prog_CXXCPP
=$CXXCPP
8955 CXXCPP
=$ac_cv_prog_CXXCPP
8957 ac_cv_prog_CXXCPP
=$CXXCPP
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8960 $as_echo "$CXXCPP" >&6; }
8962 for ac_cxx_preproc_warn_flag
in '' yes
8964 # Use a header file that comes with gcc, so configuring glibc
8965 # with a fresh cross-compiler works.
8966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967 # <limits.h> exists even on freestanding compilers.
8968 # On the NeXT, cc -E runs the code through the compiler's parser,
8969 # not just through cpp. "Syntax error" is here to catch this case.
8970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8973 # include <limits.h>
8975 # include <assert.h>
8979 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8982 # Broken: fails on valid input.
8985 rm -f conftest.err conftest.
$ac_ext
8987 # OK, works on sane cases. Now check whether nonexistent headers
8988 # can be detected and how.
8989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 #include <ac_nonexistent.h>
8993 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8994 # Broken: success on invalid input.
8997 # Passes both tests.
9001 rm -f conftest.err conftest.
$ac_ext
9004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9005 rm -f conftest.err conftest.
$ac_ext
9006 if $ac_preproc_ok; then :
9009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9012 See \`config.log' for more details." >&5
9013 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9014 See \`config.log' for more details." >&2;}; }
9018 ac_cpp
='$CPP $CPPFLAGS'
9019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9025 ac_cpp
='$CXXCPP $CPPFLAGS'
9026 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9033 for ac_header
in unordered_map
9035 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9036 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9037 cat >>confdefs.h
<<_ACEOF
9038 #define HAVE_UNORDERED_MAP 1
9044 for ac_header
in tr1/unordered_map
9046 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9047 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9048 cat >>confdefs.h
<<_ACEOF
9049 #define HAVE_TR1_UNORDERED_MAP 1
9055 for ac_header
in ext
/hash_map
9057 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9058 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9059 cat >>confdefs.h
<<_ACEOF
9060 #define HAVE_EXT_HASH_MAP 1
9068 ac_cpp
='$CPP $CPPFLAGS'
9069 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9070 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9071 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9079 # These libraries may be used by collect2.
9080 # We may need a special search path to get them linked.
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9082 $as_echo_n "checking for collect2 libraries... " >&6; }
9083 if test "${gcc_cv_collect2_libs+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9087 for libs
in '' -lld -lmld \
9088 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9089 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9110 if ac_fn_c_try_link
"$LINENO"; then :
9111 gcc_cv_collect2_libs
="$libs"; break
9113 rm -f core conftest.err conftest.
$ac_objext \
9114 conftest
$ac_exeext conftest.
$ac_ext
9117 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9120 $as_echo "$gcc_cv_collect2_libs" >&6; }
9121 case $gcc_cv_collect2_libs in
9123 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9127 # When building Ada code on Alpha, we need exc_resume which is usually in
9128 # -lexc. So test for it.
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9132 $as_echo_n "checking for library containing exc_resume... " >&6; }
9133 if test "${ac_cv_search_exc_resume+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9136 ac_func_search_save_LIBS
=$LIBS
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9150 return exc_resume ();
9155 for ac_lib
in '' exc
; do
9156 if test -z "$ac_lib"; then
9157 ac_res
="none required"
9160 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9162 if ac_fn_c_try_link
"$LINENO"; then :
9163 ac_cv_search_exc_resume
=$ac_res
9165 rm -f core conftest.err conftest.
$ac_objext \
9167 if test "${ac_cv_search_exc_resume+set}" = set; then :
9171 if test "${ac_cv_search_exc_resume+set}" = set; then :
9174 ac_cv_search_exc_resume
=no
9177 LIBS
=$ac_func_search_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9180 $as_echo "$ac_cv_search_exc_resume" >&6; }
9181 ac_res
=$ac_cv_search_exc_resume
9182 if test "$ac_res" != no
; then :
9183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9191 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9195 $as_echo_n "checking for library containing kstat_open... " >&6; }
9196 if test "${ac_cv_search_kstat_open+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9199 ac_func_search_save_LIBS
=$LIBS
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9213 return kstat_open ();
9218 for ac_lib
in '' kstat
; do
9219 if test -z "$ac_lib"; then
9220 ac_res
="none required"
9223 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9225 if ac_fn_c_try_link
"$LINENO"; then :
9226 ac_cv_search_kstat_open
=$ac_res
9228 rm -f core conftest.err conftest.
$ac_objext \
9230 if test "${ac_cv_search_kstat_open+set}" = set; then :
9234 if test "${ac_cv_search_kstat_open+set}" = set; then :
9237 ac_cv_search_kstat_open
=no
9240 LIBS
=$ac_func_search_save_LIBS
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9243 $as_echo "$ac_cv_search_kstat_open" >&6; }
9244 ac_res
=$ac_cv_search_kstat_open
9245 if test "$ac_res" != no
; then :
9246 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9250 EXTRA_GCC_LIBS
="$LIBS"
9254 # Some systems put ldexp and frexp in libm instead of libc; assume
9255 # they're both in the same place. jcf-dump needs them.
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9259 $as_echo_n "checking for library containing ldexp... " >&6; }
9260 if test "${ac_cv_search_ldexp+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9263 ac_func_search_save_LIBS
=$LIBS
9264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9267 /* Override any GCC internal prototype to avoid an error.
9268 Use char because int might match the return type of a GCC
9269 builtin and then its argument prototype would still apply. */
9282 for ac_lib
in '' m
; do
9283 if test -z "$ac_lib"; then
9284 ac_res
="none required"
9287 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9289 if ac_fn_c_try_link
"$LINENO"; then :
9290 ac_cv_search_ldexp
=$ac_res
9292 rm -f core conftest.err conftest.
$ac_objext \
9294 if test "${ac_cv_search_ldexp+set}" = set; then :
9298 if test "${ac_cv_search_ldexp+set}" = set; then :
9301 ac_cv_search_ldexp
=no
9304 LIBS
=$ac_func_search_save_LIBS
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9307 $as_echo "$ac_cv_search_ldexp" >&6; }
9308 ac_res
=$ac_cv_search_ldexp
9309 if test "$ac_res" != no
; then :
9310 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9318 # Use <inttypes.h> only if it exists,
9319 # doesn't clash with <sys/types.h>, and declares intmax_t.
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9321 $as_echo_n "checking for inttypes.h... " >&6; }
9322 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 #include <sys/types.h>
9328 #include <inttypes.h>
9337 if ac_fn_c_try_compile
"$LINENO"; then :
9338 gcc_cv_header_inttypes_h
=yes
9340 gcc_cv_header_inttypes_h
=no
9342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9346 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9347 if test $gcc_cv_header_inttypes_h = yes; then
9349 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9355 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9356 sysconf strsignal getrusage nl_langinfo \
9357 gettimeofday mbstowcs wcswidth mmap setlocale \
9358 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
9360 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9361 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9362 eval as_val
=\$
$as_ac_var
9363 if test "x$as_val" = x
""yes; then :
9364 cat >>confdefs.h
<<_ACEOF
9365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9372 if test x
$ac_cv_func_mbstowcs = xyes
; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9374 $as_echo_n "checking whether mbstowcs works... " >&6; }
9375 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9378 if test "$cross_compiling" = yes; then :
9379 gcc_cv_func_mbstowcs_works
=yes
9381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9390 if ac_fn_c_try_run
"$LINENO"; then :
9391 gcc_cv_func_mbstowcs_works
=yes
9393 gcc_cv_func_mbstowcs_works
=no
9395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9401 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9402 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9404 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9409 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9410 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9414 cat >>confdefs.h
<<_ACEOF
9420 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9421 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9425 cat >>confdefs.h
<<_ACEOF
9426 #define caddr_t char *
9433 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9434 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9435 gcc_header_sys_mman_h
=yes
9437 gcc_header_sys_mman_h
=no
9440 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9441 if test "x$ac_cv_func_mmap" = x
""yes; then :
9447 if test "$gcc_header_sys_mman_h" != yes \
9448 ||
test "$gcc_func_mmap" != yes; then
9449 gcc_cv_func_mmap_file
=no
9450 gcc_cv_func_mmap_dev_zero
=no
9451 gcc_cv_func_mmap_anon
=no
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9454 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9455 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9458 # Add a system to this blacklist if
9459 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9460 # memory area containing the same data that you'd get if you applied
9461 # read() to the same fd. The only system known to have a problem here
9462 # is VMS, where text files have record structure.
9465 gcc_cv_func_mmap_file
=no
;;
9467 gcc_cv_func_mmap_file
=yes;;
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9471 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9473 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9474 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9477 # Add a system to this blacklist if it has mmap() but /dev/zero
9478 # does not exist, or if mmapping /dev/zero does not give anonymous
9479 # zeroed pages with both the following properties:
9480 # 1. If you map N consecutive pages in with one call, and then
9481 # unmap any subset of those pages, the pages that were not
9482 # explicitly unmapped remain accessible.
9483 # 2. If you map two adjacent blocks of memory and then unmap them
9484 # both at once, they must both go away.
9485 # Systems known to be in this category are Windows (all variants),
9488 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9489 gcc_cv_func_mmap_dev_zero
=no
;;
9491 gcc_cv_func_mmap_dev_zero
=yes;;
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9495 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9497 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9499 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9500 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 #include <sys/types.h>
9506 #include <sys/mman.h>
9509 #ifndef MAP_ANONYMOUS
9510 #define MAP_ANONYMOUS MAP_ANON
9516 int n = MAP_ANONYMOUS;
9521 if ac_fn_c_try_compile
"$LINENO"; then :
9522 gcc_cv_decl_map_anon
=yes
9524 gcc_cv_decl_map_anon
=no
9526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9529 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9531 if test $gcc_cv_decl_map_anon = no
; then
9532 gcc_cv_func_mmap_anon
=no
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9535 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9536 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9539 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9540 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9541 # doesn't give anonymous zeroed pages with the same properties listed
9542 # above for use of /dev/zero.
9543 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9545 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9546 gcc_cv_func_mmap_anon
=no
;;
9548 gcc_cv_func_mmap_anon
=yes;;
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9552 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9556 if test $gcc_cv_func_mmap_file = yes; then
9558 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9561 if test $gcc_cv_func_mmap_dev_zero = yes; then
9563 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9566 if test $gcc_cv_func_mmap_anon = yes; then
9568 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9575 # Under VMS, vfork works very differently than on Unix. The standard test
9576 # won't work, and it isn't easily adaptable. It makes more sense to
9578 ac_cv_func_vfork_works
=yes
9581 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9582 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9586 cat >>confdefs.h
<<_ACEOF
9592 for ac_header
in vfork.h
9594 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9595 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9596 cat >>confdefs.h
<<_ACEOF
9597 #define HAVE_VFORK_H 1
9603 for ac_func
in fork vfork
9605 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9607 eval as_val
=\$
$as_ac_var
9608 if test "x$as_val" = x
""yes; then :
9609 cat >>confdefs.h
<<_ACEOF
9610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9616 if test "x$ac_cv_func_fork" = xyes
; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9618 $as_echo_n "checking for working fork... " >&6; }
9619 if test "${ac_cv_func_fork_works+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9622 if test "$cross_compiling" = yes; then :
9623 ac_cv_func_fork_works
=cross
9625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 $ac_includes_default
9632 /* By Ruediger Kuhlmann. */
9639 if ac_fn_c_try_run
"$LINENO"; then :
9640 ac_cv_func_fork_works
=yes
9642 ac_cv_func_fork_works
=no
9644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9650 $as_echo "$ac_cv_func_fork_works" >&6; }
9653 ac_cv_func_fork_works
=$ac_cv_func_fork
9655 if test "x$ac_cv_func_fork_works" = xcross
; then
9657 *-*-amigaos* |
*-*-msdosdjgpp*)
9658 # Override, as these systems have only a dummy fork() stub
9659 ac_cv_func_fork_works
=no
9662 ac_cv_func_fork_works
=yes
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9666 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9668 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9669 if test "x$ac_cv_func_vfork" = xyes
; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9671 $as_echo_n "checking for working vfork... " >&6; }
9672 if test "${ac_cv_func_vfork_works+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9675 if test "$cross_compiling" = yes; then :
9676 ac_cv_func_vfork_works
=cross
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 /* Thanks to Paul Eggert for this test. */
9681 $ac_includes_default
9682 #include <sys/wait.h>
9686 /* On some sparc systems, changes by the child to local and incoming
9687 argument registers are propagated back to the parent. The compiler
9688 is told about this with #include <vfork.h>, but some compilers
9689 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9690 static variable whose address is put into a register that is
9691 clobbered by the vfork. */
9694 sparc_address_test (int arg)
9696 sparc_address_test (arg) int arg;
9717 pid_t parent = getpid ();
9720 sparc_address_test (0);
9725 /* Here is another test for sparc vfork register problems. This
9726 test uses lots of local variables, at least as many local
9727 variables as main has allocated so far including compiler
9728 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9729 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9730 reuse the register of parent for one of the local variables,
9731 since it will think that parent can't possibly be used any more
9732 in this routine. Assigning to the local variable will thus
9733 munge parent in the parent process. */
9735 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9736 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9737 /* Convince the compiler that p..p7 are live; otherwise, it might
9738 use the same hardware register for all 8 local variables. */
9739 if (p != p1 || p != p2 || p != p3 || p != p4
9740 || p != p5 || p != p6 || p != p7)
9743 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9744 from child file descriptors. If the child closes a descriptor
9745 before it execs or exits, this munges the parent's descriptor
9746 as well. Test for this by closing stdout in the child. */
9747 _exit(close(fileno(stdout)) != 0);
9752 while (wait(&status) != child)
9755 /* Was there some problem with vforking? */
9758 /* Did the child fail? (This shouldn't happen.) */
9761 /* Did the vfork/compiler bug occur? */
9762 || parent != getpid()
9764 /* Did the file descriptor bug occur? */
9765 || fstat(fileno(stdout), &st) != 0
9770 if ac_fn_c_try_run
"$LINENO"; then :
9771 ac_cv_func_vfork_works
=yes
9773 ac_cv_func_vfork_works
=no
9775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9781 $as_echo "$ac_cv_func_vfork_works" >&6; }
9784 if test "x$ac_cv_func_fork_works" = xcross
; then
9785 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9787 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9790 if test "x$ac_cv_func_vfork_works" = xyes
; then
9792 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9796 $as_echo "#define vfork fork" >>confdefs.h
9799 if test "x$ac_cv_func_fork_works" = xyes
; then
9801 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9806 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9807 # iconv() prototype.
9809 ac_cpp
='$CXXCPP $CPPFLAGS'
9810 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9815 if test "X$prefix" = "XNONE"; then
9816 acl_final_prefix
="$ac_default_prefix"
9818 acl_final_prefix
="$prefix"
9820 if test "X$exec_prefix" = "XNONE"; then
9821 acl_final_exec_prefix
='${prefix}'
9823 acl_final_exec_prefix
="$exec_prefix"
9825 acl_save_prefix
="$prefix"
9826 prefix
="$acl_final_prefix"
9827 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9828 prefix
="$acl_save_prefix"
9831 # Check whether --with-gnu-ld was given.
9832 if test "${with_gnu_ld+set}" = set; then :
9833 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9838 # Prepare PATH_SEPARATOR.
9839 # The user is always right.
9840 if test "${PATH_SEPARATOR+set}" != set; then
9841 echo "#! /bin/sh" >conf$$.sh
9842 echo "exit 0" >>conf$$.sh
9844 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9852 if test "$GCC" = yes; then
9853 # Check if gcc -print-prog-name=ld gives a path.
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9855 $as_echo_n "checking for ld used by GCC... " >&6; }
9858 # gcc leaves a trailing carriage return which upsets mingw
9859 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9861 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9864 # Accept absolute paths.
9865 [\\/]* |
[A-Za-z
]:[\\/]*)
9866 re_direlt
='/[^/][^/]*/\.\./'
9867 # Canonicalize the path of ld
9868 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9869 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9870 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9872 test -z "$LD" && LD
="$ac_prog"
9875 # If it fails, then pretend we aren't using GCC.
9879 # If it is relative, then search for the first ld in PATH.
9883 elif test "$with_gnu_ld" = yes; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9885 $as_echo_n "checking for GNU ld... " >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9888 $as_echo_n "checking for non-GNU ld... " >&6; }
9890 if test "${acl_cv_path_LD+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9893 if test -z "$LD"; then
9894 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9895 for ac_dir
in $PATH; do
9896 test -z "$ac_dir" && ac_dir
=.
9897 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9898 acl_cv_path_LD
="$ac_dir/$ac_prog"
9899 # Check to see if the program is GNU ld. I'd rather use --version,
9900 # but apparently some GNU ld's only accept -v.
9901 # Break only if it was the GNU/non-GNU ld that we prefer.
9902 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9903 test "$with_gnu_ld" != no
&& break
9905 test "$with_gnu_ld" != yes && break
9911 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9915 LD
="$acl_cv_path_LD"
9916 if test -n "$LD"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9918 $as_echo "$LD" >&6; }
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9923 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9926 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9929 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9930 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9931 acl_cv_prog_gnu_ld
=yes
9933 acl_cv_prog_gnu_ld
=no
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9937 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9938 with_gnu_ld
=$acl_cv_prog_gnu_ld
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9943 $as_echo_n "checking for shared library run path origin... " >&6; }
9944 if test "${acl_cv_rpath+set}" = set; then :
9945 $as_echo_n "(cached) " >&6
9948 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9949 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9956 $as_echo "$acl_cv_rpath" >&6; }
9958 libext
="$acl_cv_libext"
9959 shlibext
="$acl_cv_shlibext"
9960 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9961 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9962 hardcode_direct
="$acl_cv_hardcode_direct"
9963 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9964 # Check whether --enable-rpath was given.
9965 if test "${enable_rpath+set}" = set; then :
9966 enableval
=$enable_rpath; :
9980 acl_save_prefix
="$prefix"
9981 prefix
="$acl_final_prefix"
9982 acl_save_exec_prefix
="$exec_prefix"
9983 exec_prefix
="$acl_final_exec_prefix"
9985 eval additional_includedir
=\"$includedir\"
9986 eval additional_libdir
=\"$libdir\"
9988 exec_prefix
="$acl_save_exec_prefix"
9989 prefix
="$acl_save_prefix"
9992 # Check whether --with-libiconv-prefix was given.
9993 if test "${with_libiconv_prefix+set}" = set; then :
9994 withval
=$with_libiconv_prefix;
9995 if test "X$withval" = "Xno"; then
9998 if test "X$withval" = "X"; then
10000 acl_save_prefix
="$prefix"
10001 prefix
="$acl_final_prefix"
10002 acl_save_exec_prefix
="$exec_prefix"
10003 exec_prefix
="$acl_final_exec_prefix"
10005 eval additional_includedir
=\"$includedir\"
10006 eval additional_libdir
=\"$libdir\"
10008 exec_prefix
="$acl_save_exec_prefix"
10009 prefix
="$acl_save_prefix"
10012 additional_includedir
="$withval/include"
10013 additional_libdir
="$withval/lib"
10024 names_already_handled
=
10025 names_next_round
='iconv '
10026 while test -n "$names_next_round"; do
10027 names_this_round
="$names_next_round"
10029 for name
in $names_this_round; do
10031 for n
in $names_already_handled; do
10032 if test "$n" = "$name"; then
10033 already_handled
=yes
10037 if test -z "$already_handled"; then
10038 names_already_handled
="$names_already_handled $name"
10039 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10040 eval value
=\"\
$HAVE_LIB$uppername\"
10041 if test -n "$value"; then
10042 if test "$value" = yes; then
10043 eval value
=\"\
$LIB$uppername\"
10044 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10045 eval value
=\"\
$LTLIB$uppername\"
10046 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10055 if test $use_additional = yes; then
10056 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10057 found_dir
="$additional_libdir"
10058 found_so
="$additional_libdir/lib$name.$shlibext"
10059 if test -f "$additional_libdir/lib$name.la"; then
10060 found_la
="$additional_libdir/lib$name.la"
10063 if test -f "$additional_libdir/lib$name.$libext"; then
10064 found_dir
="$additional_libdir"
10065 found_a
="$additional_libdir/lib$name.$libext"
10066 if test -f "$additional_libdir/lib$name.la"; then
10067 found_la
="$additional_libdir/lib$name.la"
10072 if test "X$found_dir" = "X"; then
10073 for x
in $LDFLAGS $LTLIBICONV; do
10075 acl_save_prefix
="$prefix"
10076 prefix
="$acl_final_prefix"
10077 acl_save_exec_prefix
="$exec_prefix"
10078 exec_prefix
="$acl_final_exec_prefix"
10080 exec_prefix
="$acl_save_exec_prefix"
10081 prefix
="$acl_save_prefix"
10085 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10086 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10088 found_so
="$dir/lib$name.$shlibext"
10089 if test -f "$dir/lib$name.la"; then
10090 found_la
="$dir/lib$name.la"
10093 if test -f "$dir/lib$name.$libext"; then
10095 found_a
="$dir/lib$name.$libext"
10096 if test -f "$dir/lib$name.la"; then
10097 found_la
="$dir/lib$name.la"
10103 if test "X$found_dir" != "X"; then
10108 if test "X$found_dir" != "X"; then
10109 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10110 if test "X$found_so" != "X"; then
10111 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10112 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10115 for x
in $ltrpathdirs; do
10116 if test "X$x" = "X$found_dir"; then
10121 if test -z "$haveit"; then
10122 ltrpathdirs
="$ltrpathdirs $found_dir"
10124 if test "$hardcode_direct" = yes; then
10125 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10127 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10128 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10130 for x
in $rpathdirs; do
10131 if test "X$x" = "X$found_dir"; then
10136 if test -z "$haveit"; then
10137 rpathdirs
="$rpathdirs $found_dir"
10141 for x
in $LDFLAGS $LIBICONV; do
10143 acl_save_prefix
="$prefix"
10144 prefix
="$acl_final_prefix"
10145 acl_save_exec_prefix
="$exec_prefix"
10146 exec_prefix
="$acl_final_exec_prefix"
10148 exec_prefix
="$acl_save_exec_prefix"
10149 prefix
="$acl_save_prefix"
10151 if test "X$x" = "X-L$found_dir"; then
10156 if test -z "$haveit"; then
10157 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10159 if test "$hardcode_minus_L" != no
; then
10160 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10162 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10168 if test "X$found_a" != "X"; then
10169 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10171 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10174 additional_includedir
=
10175 case "$found_dir" in
10177 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10178 additional_includedir
="$basedir/include"
10181 if test "X$additional_includedir" != "X"; then
10182 if test "X$additional_includedir" != "X/usr/include"; then
10184 if test "X$additional_includedir" = "X/usr/local/include"; then
10185 if test -n "$GCC"; then
10187 linux
*) haveit
=yes;;
10191 if test -z "$haveit"; then
10192 for x
in $CPPFLAGS $INCICONV; do
10194 acl_save_prefix
="$prefix"
10195 prefix
="$acl_final_prefix"
10196 acl_save_exec_prefix
="$exec_prefix"
10197 exec_prefix
="$acl_final_exec_prefix"
10199 exec_prefix
="$acl_save_exec_prefix"
10200 prefix
="$acl_save_prefix"
10202 if test "X$x" = "X-I$additional_includedir"; then
10207 if test -z "$haveit"; then
10208 if test -d "$additional_includedir"; then
10209 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10215 if test -n "$found_la"; then
10216 save_libdir
="$libdir"
10217 case "$found_la" in
10218 */* |
*\\*) .
"$found_la" ;;
10219 *) .
"./$found_la" ;;
10221 libdir
="$save_libdir"
10222 for dep
in $dependency_libs; do
10225 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10226 if test "X$additional_libdir" != "X/usr/lib"; then
10228 if test "X$additional_libdir" = "X/usr/local/lib"; then
10229 if test -n "$GCC"; then
10231 linux
*) haveit
=yes;;
10235 if test -z "$haveit"; then
10237 for x
in $LDFLAGS $LIBICONV; do
10239 acl_save_prefix
="$prefix"
10240 prefix
="$acl_final_prefix"
10241 acl_save_exec_prefix
="$exec_prefix"
10242 exec_prefix
="$acl_final_exec_prefix"
10244 exec_prefix
="$acl_save_exec_prefix"
10245 prefix
="$acl_save_prefix"
10247 if test "X$x" = "X-L$additional_libdir"; then
10252 if test -z "$haveit"; then
10253 if test -d "$additional_libdir"; then
10254 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10258 for x
in $LDFLAGS $LTLIBICONV; do
10260 acl_save_prefix
="$prefix"
10261 prefix
="$acl_final_prefix"
10262 acl_save_exec_prefix
="$exec_prefix"
10263 exec_prefix
="$acl_final_exec_prefix"
10265 exec_prefix
="$acl_save_exec_prefix"
10266 prefix
="$acl_save_prefix"
10268 if test "X$x" = "X-L$additional_libdir"; then
10273 if test -z "$haveit"; then
10274 if test -d "$additional_libdir"; then
10275 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10282 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10283 if test "$enable_rpath" != no
; then
10285 for x
in $rpathdirs; do
10286 if test "X$x" = "X$dir"; then
10291 if test -z "$haveit"; then
10292 rpathdirs
="$rpathdirs $dir"
10295 for x
in $ltrpathdirs; do
10296 if test "X$x" = "X$dir"; then
10301 if test -z "$haveit"; then
10302 ltrpathdirs
="$ltrpathdirs $dir"
10307 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10310 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10313 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10314 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10320 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10321 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10327 if test "X$rpathdirs" != "X"; then
10328 if test -n "$hardcode_libdir_separator"; then
10330 for found_dir
in $rpathdirs; do
10331 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10333 acl_save_libdir
="$libdir"
10335 eval flag
=\"$hardcode_libdir_flag_spec\"
10336 libdir
="$acl_save_libdir"
10337 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10339 for found_dir
in $rpathdirs; do
10340 acl_save_libdir
="$libdir"
10341 libdir
="$found_dir"
10342 eval flag
=\"$hardcode_libdir_flag_spec\"
10343 libdir
="$acl_save_libdir"
10344 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10348 if test "X$ltrpathdirs" != "X"; then
10349 for found_dir
in $ltrpathdirs; do
10350 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10360 am_save_CPPFLAGS
="$CPPFLAGS"
10362 for element
in $INCICONV; do
10364 for x
in $CPPFLAGS; do
10366 acl_save_prefix
="$prefix"
10367 prefix
="$acl_final_prefix"
10368 acl_save_exec_prefix
="$exec_prefix"
10369 exec_prefix
="$acl_final_exec_prefix"
10371 exec_prefix
="$acl_save_exec_prefix"
10372 prefix
="$acl_save_prefix"
10374 if test "X$x" = "X$element"; then
10379 if test -z "$haveit"; then
10380 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10386 $as_echo_n "checking for iconv... " >&6; }
10387 if test "${am_cv_func_iconv+set}" = set; then :
10388 $as_echo_n "(cached) " >&6
10391 am_cv_func_iconv
="no, consider installing GNU libiconv"
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <stdlib.h>
10400 iconv_t cd = iconv_open("","");
10401 iconv(cd,NULL,NULL,NULL,NULL);
10407 if ac_fn_cxx_try_link
"$LINENO"; then :
10408 am_cv_func_iconv
=yes
10410 rm -f core conftest.err conftest.
$ac_objext \
10411 conftest
$ac_exeext conftest.
$ac_ext
10412 if test "$am_cv_func_iconv" != yes; then
10413 am_save_LIBS
="$LIBS"
10414 LIBS
="$LIBS $LIBICONV"
10415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <stdlib.h>
10422 iconv_t cd = iconv_open("","");
10423 iconv(cd,NULL,NULL,NULL,NULL);
10429 if ac_fn_cxx_try_link
"$LINENO"; then :
10430 am_cv_lib_iconv
=yes
10431 am_cv_func_iconv
=yes
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10435 LIBS
="$am_save_LIBS"
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10440 $as_echo "$am_cv_func_iconv" >&6; }
10441 if test "$am_cv_func_iconv" = yes; then
10443 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10446 if test "$am_cv_lib_iconv" = yes; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10448 $as_echo_n "checking how to link with libiconv... " >&6; }
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10450 $as_echo "$LIBICONV" >&6; }
10452 CPPFLAGS
="$am_save_CPPFLAGS"
10459 if test "$am_cv_func_iconv" = yes; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10461 $as_echo_n "checking for iconv declaration... " >&6; }
10462 if test "${am_cv_proto_iconv+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10469 #include <stdlib.h>
10475 #if defined(__STDC__) || defined(__cplusplus)
10476 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10489 if ac_fn_cxx_try_compile
"$LINENO"; then :
10490 am_cv_proto_iconv_arg1
=""
10492 am_cv_proto_iconv_arg1
="const"
10494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10495 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);"
10498 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10500 }$am_cv_proto_iconv" >&5
10502 }$am_cv_proto_iconv" >&6; }
10504 cat >>confdefs.h
<<_ACEOF
10505 #define ICONV_CONST $am_cv_proto_iconv_arg1
10511 ac_cpp
='$CPP $CPPFLAGS'
10512 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10513 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10514 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10517 # Until we have in-tree GNU iconv:
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10523 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10524 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 #include <locale.h>
10538 if ac_fn_c_try_link
"$LINENO"; then :
10539 am_cv_val_LC_MESSAGES
=yes
10541 am_cv_val_LC_MESSAGES
=no
10543 rm -f core conftest.err conftest.
$ac_objext \
10544 conftest
$ac_exeext conftest.
$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10547 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10548 if test $am_cv_val_LC_MESSAGES = yes; then
10550 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10557 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10558 if test "${am_cv_langinfo_codeset+set}" = set; then :
10559 $as_echo_n "(cached) " >&6
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include <langinfo.h>
10567 char* cs = nl_langinfo(CODESET);
10572 if ac_fn_c_try_link
"$LINENO"; then :
10573 am_cv_langinfo_codeset
=yes
10575 am_cv_langinfo_codeset
=no
10577 rm -f core conftest.err conftest.
$ac_objext \
10578 conftest
$ac_exeext conftest.
$ac_ext
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10582 $as_echo "$am_cv_langinfo_codeset" >&6; }
10583 if test $am_cv_langinfo_codeset = yes; then
10585 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10590 # We will need to find libiberty.h and ansidecl.h
10591 saved_CFLAGS
="$CFLAGS"
10592 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10593 saved_CXXFLAGS
="$CXXFLAGS"
10594 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10595 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10596 strsignal strstr stpcpy strverscmp \
10597 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10598 free
basename getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10600 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10603 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10604 $as_echo_n "(cached) " >&6
10606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 #define $ac_tr_decl 1
10611 #include "ansidecl.h"
10612 #include "system.h"
10618 char *(*pfn) = (char *(*)) $ac_func ;
10624 if ac_fn_c_try_compile
"$LINENO"; then :
10625 eval "gcc_cv_have_decl_$ac_func=yes"
10627 eval "gcc_cv_have_decl_$ac_func=no"
10629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10632 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10634 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10635 #define $ac_tr_decl 1
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10641 #define $ac_tr_decl 0
10649 for ac_func
in getrlimit setrlimit getrusage
10651 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10653 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10654 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10655 $as_echo_n "(cached) " >&6
10657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 #define $ac_tr_decl 1
10662 #include "ansidecl.h"
10663 #include "system.h"
10664 #ifdef HAVE_SYS_RESOURCE_H
10665 #include <sys/resource.h>
10673 char *(*pfn) = (char *(*)) $ac_func ;
10679 if ac_fn_c_try_compile
"$LINENO"; then :
10680 eval "gcc_cv_have_decl_$ac_func=yes"
10682 eval "gcc_cv_have_decl_$ac_func=no"
10684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10687 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10689 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10690 #define $ac_tr_decl 1
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10696 #define $ac_tr_decl 0
10704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 #include "ansidecl.h"
10708 #include "system.h"
10709 #ifdef HAVE_SYS_RESOURCE_H
10710 #include <sys/resource.h>
10721 if ac_fn_c_try_compile
"$LINENO"; then :
10725 $as_echo "#define rlim_t long" >>confdefs.h
10728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10730 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10731 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10732 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10733 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10734 for ac_func
in ldgetname
10736 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10738 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10739 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10740 $as_echo_n "(cached) " >&6
10742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 #define $ac_tr_decl 1
10747 #include "ansidecl.h"
10748 #include "system.h"
10749 #ifdef HAVE_LDFCN_H
10760 char *(*pfn) = (char *(*)) $ac_func ;
10766 if ac_fn_c_try_compile
"$LINENO"; then :
10767 eval "gcc_cv_have_decl_$ac_func=yes"
10769 eval "gcc_cv_have_decl_$ac_func=no"
10771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10774 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10776 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10777 #define $ac_tr_decl 1
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10783 #define $ac_tr_decl 0
10791 for ac_func
in times
10793 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10795 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10796 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 #define $ac_tr_decl 1
10804 #include "ansidecl.h"
10805 #include "system.h"
10806 #ifdef HAVE_SYS_TIMES_H
10807 #include <sys/times.h>
10815 char *(*pfn) = (char *(*)) $ac_func ;
10821 if ac_fn_c_try_compile
"$LINENO"; then :
10822 eval "gcc_cv_have_decl_$ac_func=yes"
10824 eval "gcc_cv_have_decl_$ac_func=no"
10826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10829 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10832 #define $ac_tr_decl 1
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10838 #define $ac_tr_decl 0
10846 for ac_func
in sigaltstack
10848 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10850 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10851 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10852 $as_echo_n "(cached) " >&6
10854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 #define $ac_tr_decl 1
10859 #include "ansidecl.h"
10860 #include "system.h"
10861 #include <signal.h>
10868 char *(*pfn) = (char *(*)) $ac_func ;
10874 if ac_fn_c_try_compile
"$LINENO"; then :
10875 eval "gcc_cv_have_decl_$ac_func=yes"
10877 eval "gcc_cv_have_decl_$ac_func=no"
10879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10882 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10885 #define $ac_tr_decl 1
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10891 #define $ac_tr_decl 0
10899 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10902 ac_cpp
='$CXXCPP $CPPFLAGS'
10903 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10904 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10905 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10907 for ac_func
in madvise
10909 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10911 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10912 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10913 $as_echo_n "(cached) " >&6
10915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10918 #define $ac_tr_decl 1
10920 #include "ansidecl.h"
10921 #include "system.h"
10928 char *(*pfn) = (char *(*)) $ac_func ;
10934 if ac_fn_cxx_try_compile
"$LINENO"; then :
10935 eval "gcc_cv_have_decl_$ac_func=yes"
10937 eval "gcc_cv_have_decl_$ac_func=no"
10939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10942 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10944 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10945 #define $ac_tr_decl 1
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10951 #define $ac_tr_decl 0
10959 ac_cpp
='$CPP $CPPFLAGS'
10960 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10965 # More time-related stuff.
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10967 $as_echo_n "checking for struct tms... " >&6; }
10968 if test "${ac_cv_struct_tms+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10975 #include "ansidecl.h"
10976 #include "system.h"
10977 #ifdef HAVE_SYS_TIMES_H
10978 #include <sys/times.h>
10989 if ac_fn_c_try_compile
"$LINENO"; then :
10990 ac_cv_struct_tms
=yes
10992 ac_cv_struct_tms
=no
10994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10997 $as_echo "$ac_cv_struct_tms" >&6; }
10998 if test $ac_cv_struct_tms = yes; then
11000 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11004 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11005 # revisit after autoconf 2.50.
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11007 $as_echo_n "checking for clock_t... " >&6; }
11008 if test "${gcc_cv_type_clock_t+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11015 #include "ansidecl.h"
11016 #include "system.h"
11026 if ac_fn_c_try_compile
"$LINENO"; then :
11027 gcc_cv_type_clock_t
=yes
11029 gcc_cv_type_clock_t
=no
11031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11034 $as_echo "$gcc_cv_type_clock_t" >&6; }
11035 if test $gcc_cv_type_clock_t = yes; then
11037 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11041 # Check if F_SETLKW is supported by fcntl.
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11043 $as_echo_n "checking for F_SETLKW... " >&6; }
11044 if test "${ac_cv_f_setlkw+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11061 return fcntl (1, F_SETLKW, &fl);
11066 if ac_fn_c_try_compile
"$LINENO"; then :
11071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11074 $as_echo "$ac_cv_f_setlkw" >&6; }
11075 if test $ac_cv_f_setlkw = yes; then
11077 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11081 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11082 CFLAGS
="$saved_CFLAGS"
11083 CXXFLAGS
="$saved_CXXFLAGS"
11085 # mkdir takes a single argument on some systems.
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11087 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11088 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #include <sys/types.h>
11095 #ifdef HAVE_SYS_STAT_H
11096 # include <sys/stat.h>
11098 #ifdef HAVE_UNISTD_H
11099 # include <unistd.h>
11101 #ifdef HAVE_DIRECT_H
11102 # include <direct.h>
11112 if ac_fn_c_try_compile
"$LINENO"; then :
11113 gcc_cv_mkdir_takes_one_arg
=no
11115 gcc_cv_mkdir_takes_one_arg
=yes
11117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11120 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11121 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11123 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11134 # With Setjmp/Longjmp based exception handling.
11135 # Check whether --enable-sjlj-exceptions was given.
11136 if test "${enable_sjlj_exceptions+set}" = set; then :
11137 enableval
=$enable_sjlj_exceptions; case $target in
11139 if test $enableval != yes; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11141 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11146 force_sjlj_exceptions
=yes
11150 force_sjlj_exceptions
=yes
11154 force_sjlj_exceptions
=no
11159 if test $force_sjlj_exceptions = yes; then
11160 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11162 cat >>confdefs.h
<<_ACEOF
11163 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11168 # --------------------------------------------------------
11169 # Build, host, and target specific configuration fragments
11170 # --------------------------------------------------------
11172 # Collect build-machine-specific information.
11173 .
${srcdir}/config.build
11175 # Collect host-machine-specific information.
11176 .
${srcdir}/config.
host
11180 # Collect target-machine-specific information.
11181 .
${srcdir}/config.gcc
11183 extra_objs
="${host_extra_objs} ${extra_objs}"
11184 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11186 # Default the target-machine variables that were not explicitly set.
11187 if test x
"$tm_file" = x
11188 then tm_file
=$cpu_type/$cpu_type.h
; fi
11190 if test x
"$extra_headers" = x
11191 then extra_headers
=; fi
11193 if test x
$md_file = x
11194 then md_file
=$cpu_type/$cpu_type.md
; fi
11196 if test x
$out_file = x
11197 then out_file
=$cpu_type/$cpu_type.c
; fi
11199 if test x
"$tmake_file" = x
11200 then tmake_file
=$cpu_type/t-
$cpu_type
11203 # Support --enable-initfini-array.
11204 if test x
$enable_initfini_array != xno
; then
11205 tm_file
="${tm_file} initfini-array.h"
11208 if test x
"$dwarf2" = xyes
11209 then tm_file
="$tm_file tm-dwarf2.h"
11212 # Say what files are being used for the output code and MD file.
11213 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11214 echo "Using \`$srcdir/config/$md_file' as machine description file."
11216 # If any of the xm_file variables contain nonexistent files, warn
11217 # about them and drop them.
11220 for x
in $build_xm_file; do
11221 if test -f $srcdir/config
/$x
11223 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11224 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11227 build_xm_file
="$bx"
11230 for x
in $host_xm_file; do
11231 if test -f $srcdir/config
/$x
11233 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11234 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11240 for x
in $xm_file; do
11241 if test -f $srcdir/config
/$x
11243 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11244 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11250 for f
in $tm_file; do
11253 if test $count = ax
; then
11254 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11256 echo "Using the following target machine macro files:"
11257 for f
in $tm_file; do
11258 echo " $srcdir/config/$f"
11262 if test x
$need_64bit_hwint = xyes
; then
11264 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11268 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11270 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11274 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11276 cat >>confdefs.h
<<_ACEOF
11277 #define HAVE_GNU_LD $gnu_ld_bool
11281 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11283 cat >>confdefs.h
<<_ACEOF
11284 #define HAVE_GNU_AS $gnu_as_bool
11289 for f
in $host_xm_file; do
11292 if test $count = a
; then
11294 elif test $count = ax
; then
11295 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11297 echo "Using the following host machine macro files:"
11298 for f
in $host_xm_file; do
11299 echo " $srcdir/config/$f"
11302 echo "Using ${out_host_hook_obj} for host machine hooks."
11304 if test "$host_xm_file" != "$build_xm_file"; then
11306 for f
in $build_xm_file; do
11309 if test $count = a
; then
11311 elif test $count = ax
; then
11312 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11314 echo "Using the following build machine macro files:"
11315 for f
in $build_xm_file; do
11316 echo " $srcdir/config/$f"
11321 if test -n "$configured_native_system_header_dir"; then
11322 native_system_header_dir
=$configured_native_system_header_dir
11324 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11328 powerpc
*-*-darwin*)
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11330 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11331 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11337 #include <sys/cdefs.h>
11338 #include <sys/signal.h>
11339 #include <ucontext.h>
11340 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11343 if ac_fn_c_try_compile
"$LINENO"; then :
11344 gcc_cv_mcontext_underscores
=no
11346 gcc_cv_mcontext_underscores
=yes
11348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11351 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11352 if test $gcc_cv_mcontext_underscores = yes; then
11354 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11364 # Check if a valid thread package
11365 case ${enable_threads} in
11368 target_thread_file
='single'
11372 target_thread_file
='single'
11374 aix | dce | lynx | mipssde | posix | rtems | \
11375 single | tpf | vxworks | win32
)
11376 target_thread_file
=${enable_threads}
11379 echo "${enable_threads} is an unknown thread package" 1>&2
11384 if test x
${thread_file} = x
; then
11385 # No thread file set by target-specific clauses in config.gcc,
11386 # so use file chosen by default logic above
11387 thread_file
=${target_thread_file}
11395 if test x
$enable___cxa_atexit = xyes || \
11396 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11397 if test x
$host = x
$target; then
11399 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11400 # keyed to flag_use_cxa_atexit
11408 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11409 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11412 echo "__cxa_atexit can't be enabled on this target"
11418 # We can't check for __cxa_atexit when building a cross, so assume
11422 if test x
$use_cxa_atexit = xyes
; then
11424 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11429 # Look for a file containing extra machine modes.
11430 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11431 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11434 cat >>confdefs.h
<<_ACEOF
11435 #define EXTRA_MODES_FILE "config/$extra_modes"
11440 # Convert extra_options into a form suitable for Makefile use.
11443 for f
in $extra_options; do
11444 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11445 all_opt_files
="$all_opt_files $srcdir/config/$f"
11449 # auto-host.h is the file containing items generated by autoconf and is
11450 # the first file included by config.h.
11451 # If host=build, it is correct to have bconfig include auto-host.h
11452 # as well. If host!=build, we are in error and need to do more
11453 # work to find out the build config parameters.
11454 if test x
$host = x
$build
11456 build_auto
=auto-host.h
11458 # We create a subdir, then run autoconf in the subdir.
11459 # To prevent recursion we set host and build for the new
11460 # invocation of configure to the build for this invocation
11467 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11468 *) realsrcdir
=..
/${srcdir};;
11470 saved_CFLAGS
="${CFLAGS}"
11471 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11472 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11473 ${realsrcdir}/configure \
11474 --enable-languages=${enable_languages-all} \
11475 --target=$target_alias --host=$build_alias --build=$build_alias
11476 CFLAGS
="${saved_CFLAGS}"
11478 # We just finished tests for the build machine, so rename
11479 # the file auto-build.h in the gcc directory.
11480 mv auto-host.h ..
/auto-build.h
11483 build_auto
=auto-build.h
11487 tm_file
="${tm_file} defaults.h"
11488 tm_p_file
="${tm_p_file} tm-preds.h"
11489 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11490 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11491 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11492 # put this back in temporarily.
11493 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11499 # Compile in configure arguments.
11500 if test -f configargs.h
; then
11501 # Being re-configured.
11502 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11503 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11505 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11508 # Double all backslashes and backslash all quotes to turn
11509 # gcc_config_arguments into a C string.
11510 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11511 $gcc_config_arguments
11513 gcc_config_arguments_str
=`cat conftest.out`
11516 cat > configargs.h
<<EOF
11517 /* Generated automatically. */
11518 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11519 static const char thread_model[] = "$thread_file";
11521 static const struct {
11522 const char *name, *value;
11523 } configure_default_options[] = $configure_default_options;
11526 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11527 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11528 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11529 if test -f $srcdir/REVISION
; then
11530 gcc_REVISION
=`cat $srcdir/REVISION`
11534 cat > plugin-version.h
<<EOF
11535 #include "configargs.h"
11537 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11538 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11539 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11540 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11542 static char basever[] = "$gcc_BASEVER";
11543 static char datestamp[] = "$gcc_DATESTAMP";
11544 static char devphase[] = "$gcc_DEVPHASE";
11545 static char revision[] = "$gcc_REVISION";
11547 /* FIXME plugins: We should make the version information more precise.
11548 One way to do is to add a checksum. */
11550 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11551 devphase, revision,
11552 configuration_arguments};
11555 # Internationalization
11556 # If we haven't got the data from the intl directory,
11557 # assume NLS is disabled.
11566 if test -f ..
/intl
/config.intl
; then
11567 . ..
/intl
/config.intl
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11570 $as_echo_n "checking whether NLS is requested... " >&6; }
11571 if test x
"$USE_NLS" != xyes
; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576 $as_echo "yes" >&6; }
11578 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11582 $as_echo_n "checking for catalogs to be installed... " >&6; }
11583 # Look for .po and .gmo files in the source directory.
11586 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11587 # If there aren't any .gmo files the shell will give us the
11588 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11590 case "$cat" in *\
**)
11593 # The quadruple backslash is collapsed to a double backslash
11594 # by the backticks, then collapsed again by the double quotes,
11595 # leaving us with one backslash in the sed expression (right
11596 # before the dot that mustn't act as a wildcard).
11597 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11598 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11599 # The user is allowed to set LINGUAS to a list of languages to
11600 # install catalogs for. If it's empty that means "all of them."
11601 if test "x$LINGUAS" = x
; then
11602 CATALOGS
="$CATALOGS $cat"
11603 XLINGUAS
="$XLINGUAS $lang"
11605 case "$LINGUAS" in *$lang*)
11606 CATALOGS
="$CATALOGS $cat"
11607 XLINGUAS
="$XLINGUAS $lang"
11612 LINGUAS
="$XLINGUAS"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11614 $as_echo "$LINGUAS" >&6; }
11627 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11628 # -liconv on the link line twice.
11629 case "$LIBINTL" in *$LIBICONV*)
11633 # Check whether --enable-secureplt was given.
11634 if test "${enable_secureplt+set}" = set; then :
11635 enableval
=$enable_secureplt;
11639 # Check whether --enable-leading-mingw64-underscores was given.
11640 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11641 enableval
=$enable_leading_mingw64_underscores;
11644 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11646 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11650 # Check whether --enable-cld was given.
11651 if test "${enable_cld+set}" = set; then :
11652 enableval
=$enable_cld;
11658 # Check whether --enable-frame-pointer was given.
11659 if test "${enable_frame_pointer+set}" = set; then :
11660 enableval
=$enable_frame_pointer;
11664 linux
* | darwin
[8912]*)
11665 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11667 enable_frame_pointer
=no
11670 enable_frame_pointer
=yes
11677 # Windows32 Registry support for specifying GCC installation paths.
11678 # Check whether --enable-win32-registry was given.
11679 if test "${enable_win32_registry+set}" = set; then :
11680 enableval
=$enable_win32_registry;
11685 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11686 if test "x$enable_win32_registry" != xno
; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11688 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11689 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11692 ac_func_search_save_LIBS
=$LIBS
11693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11696 /* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11702 char RegOpenKeyExA ();
11706 return RegOpenKeyExA ();
11711 for ac_lib
in '' advapi32
; do
11712 if test -z "$ac_lib"; then
11713 ac_res
="none required"
11716 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11718 if ac_fn_c_try_link
"$LINENO"; then :
11719 ac_cv_search_RegOpenKeyExA
=$ac_res
11721 rm -f core conftest.err conftest.
$ac_objext \
11723 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11727 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11730 ac_cv_search_RegOpenKeyExA
=no
11732 rm conftest.
$ac_ext
11733 LIBS
=$ac_func_search_save_LIBS
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11736 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11737 ac_res
=$ac_cv_search_RegOpenKeyExA
11738 if test "$ac_res" != no
; then :
11739 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11742 enable_win32_registry
=no
11747 if test "x$enable_win32_registry" != xno
; then
11749 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11752 if test "x$enable_win32_registry" != xyes \
11753 && test "x$enable_win32_registry" != x
; then
11755 cat >>confdefs.h
<<_ACEOF
11756 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11764 # Get an absolute path to the GCC top-level source directory
11765 holddir
=`${PWDCMD-pwd}`
11767 topdir
=`${PWDCMD-pwd}`
11770 # Conditionalize the makefile for this host machine.
11772 for f
in ${host_xmake_file}
11774 if test -f ${srcdir}/config
/$f
11776 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11780 # Conditionalize the makefile for this target machine.
11782 for f
in ${tmake_file}
11784 if test -f ${srcdir}/config
/$f
11786 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11789 tmake_file
="${tmake_file_}"
11791 out_object_file
=`basename $out_file .c`.o
11792 common_out_object_file
=`basename $common_out_file .c`.o
11794 tm_file_list
="options.h"
11795 tm_include_list
="options.h insn-constants.h"
11796 for f
in $tm_file; do
11799 f
=`echo $f | sed 's/^..//'`
11800 tm_file_list
="${tm_file_list} $f"
11801 tm_include_list
="${tm_include_list} $f"
11804 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11805 tm_include_list
="${tm_include_list} $f"
11808 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11809 tm_include_list
="${tm_include_list} config/$f"
11816 for f
in $tm_p_file; do
11819 tm_p_file_list
="${tm_p_file_list} $f"
11820 tm_p_include_list
="${tm_p_include_list} $f"
11823 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11824 tm_p_include_list
="${tm_p_include_list} config/$f"
11830 for f
in $xm_file; do
11833 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11834 xm_include_list
="${xm_include_list} $f"
11837 xm_file_list
="${xm_file_list} $f"
11838 xm_include_list
="${xm_include_list} $f"
11841 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11842 xm_include_list
="${xm_include_list} config/$f"
11848 host_xm_include_list
=
11849 for f
in $host_xm_file; do
11852 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11853 host_xm_include_list
="${host_xm_include_list} $f"
11856 host_xm_file_list
="${host_xm_file_list} $f"
11857 host_xm_include_list
="${host_xm_include_list} $f"
11860 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11861 host_xm_include_list
="${host_xm_include_list} config/$f"
11866 build_xm_file_list
=
11867 for f
in $build_xm_file; do
11870 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11871 build_xm_include_list
="${build_xm_include_list} $f"
11873 auto-build.h | auto-host.h
)
11874 build_xm_file_list
="${build_xm_file_list} $f"
11875 build_xm_include_list
="${build_xm_include_list} $f"
11878 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11879 build_xm_include_list
="${build_xm_include_list} config/$f"
11884 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11885 # cross-compiler which does not use the native headers and libraries.
11886 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11889 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11891 if test "x$with_build_sysroot" != x
; then
11892 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11894 # This value is used, even on a native system, because
11895 # CROSS_SYSTEM_HEADER_DIR is just
11896 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11897 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11900 if test x
$host != x
$target
11902 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11904 SYSTEM_HEADER_DIR
=$build_system_header_dir
11905 case "$host","$target" in
11906 # Darwin crosses can use the host system's libraries and headers,
11907 # because of the fat library support. Of course, it must be the
11908 # same version of Darwin on both sides. Allow the user to
11909 # just say --target=foo-darwin without a version number to mean
11910 # "the version on this system".
11911 *-*-darwin*,*-*-darwin*)
11912 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11913 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11914 if test $hostos = $targetos -o $targetos = darwin
; then
11916 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11921 i?
86-*-*,x86_64-
*-* \
11922 | powerpc
*-*-*,powerpc64
*-*-*)
11923 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11928 if test "x$with_headers" = x
; then
11935 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11936 SYSTEM_HEADER_DIR
=$build_system_header_dir
11939 # If this is a cross-compiler that does not
11940 # have its own set of headers then define
11943 # If this is using newlib, without having the headers available now,
11944 # then define inhibit_libc in LIBGCC2_CFLAGS.
11945 # This prevents libgcc2 from containing any code which requires libc
11947 : ${inhibit_libc=false}
11948 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11949 test x
$with_newlib = xyes
; } &&
11950 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11955 # When building gcc with a cross-compiler, we need to adjust things so
11956 # that the generator programs are still built with the native compiler.
11957 # Also, we cannot run fixincludes.
11959 # These are the normal (build=host) settings:
11960 CC_FOR_BUILD
='$(CC)'
11961 CXX_FOR_BUILD
='$(CXX)'
11962 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11963 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11964 BUILD_LDFLAGS
='$(LDFLAGS)'
11965 STMP_FIXINC
=stmp-fixinc
11967 # And these apply if build != host, or we are generating coverage data
11968 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11970 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11971 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11974 # Expand extra_headers to include complete path.
11975 # This substitutes for lots of t-* files.
11976 extra_headers_list
=
11977 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11978 for file in ${extra_headers} ; do
11979 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11982 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11983 if test x
"$use_gcc_tgmath" = xyes
11984 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11987 # Define collect2 in Makefile.
11988 case $host_can_use_collect2 in
11990 *) collect2
='collect2$(exeext)' ;;
11994 # Add a definition of USE_COLLECT2 if system wants one.
11995 case $use_collect2 in
11996 no
) use_collect2
= ;;
11999 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12000 xm_defines
="${xm_defines} USE_COLLECT2"
12001 case $host_can_use_collect2 in
12003 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12010 cat >>confdefs.h
<<_ACEOF
12011 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12015 # ---------------------------
12016 # Assembler & linker features
12017 # ---------------------------
12019 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12020 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12021 # However when ld-new is first executed from the build tree, libtool will
12022 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12023 # to the build tree. While doing this we need to use the previous-stage
12024 # linker, or we have an infinite loop. The presence of a shell script as
12025 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12026 # the gcc/collect-ld script. So we need to know how libtool works, or
12027 # exec-tool will fail.
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12033 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12038 macro_version
='2.2.7a'
12039 macro_revision
='1.3134'
12053 ltmain
="$ac_aux_dir/ltmain.sh"
12055 # Backslashify metacharacters that are still active within
12056 # double-quoted strings.
12057 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12059 # Same as above, but do not quote variable references.
12060 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12062 # Sed substitution to delay expansion of an escaped shell variable in a
12063 # double_quote_subst'ed string.
12064 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12066 # Sed substitution to delay expansion of an escaped single quote.
12067 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12069 # Sed substitution to avoid accidental globbing in evaled expressions
12070 no_glob_subst
='s/\*/\\\*/g'
12072 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12077 $as_echo_n "checking how to print strings... " >&6; }
12078 # Test print first, because it will be a builtin if present.
12079 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12085 # Use this function as a fallback that always works.
12086 func_fallback_echo ()
12088 eval 'cat <<_LTECHO_EOF
12092 ECHO='func_fallback_echo
'
12095 # func_echo_all arg...
12096 # Invoke $ECHO with all args, space-separated.
12103 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12104 $as_echo "printf" >&6; } ;;
12105 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12106 $as_echo "print -r" >&6; } ;;
12107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12108 $as_echo "cat" >&6; } ;;
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12126 if test "${ac_cv_path_SED+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12130 for ac_i in 1 2 3 4 5 6 7; do
12131 ac_script="$ac_script$as_nl$ac_script"
12133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12134 { ac_script=; unset ac_script;}
12135 if test -z "$SED"; then
12136 ac_path_SED_found=false
12137 # Loop through the user's path and
test for each of PROGNAME-LIST
12138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12139 for as_dir
in $PATH
12142 test -z "$as_dir" && as_dir
=.
12143 for ac_prog
in sed gsed
; do
12144 for ac_exec_ext
in '' $ac_executable_extensions; do
12145 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12146 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12147 # Check for GNU ac_path_SED and select it if it is found.
12148 # Check for GNU $ac_path_SED
12149 case `"$ac_path_SED" --version 2>&1` in
12151 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12154 $as_echo_n 0123456789 >"conftest.in"
12157 cat "conftest.in" "conftest.in" >"conftest.tmp"
12158 mv "conftest.tmp" "conftest.in"
12159 cp "conftest.in" "conftest.nl"
12160 $as_echo '' >> "conftest.nl"
12161 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12162 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12163 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12164 if test $ac_count -gt ${ac_path_SED_max-0}; then
12165 # Best one so far, save it but keep looking for a better one
12166 ac_cv_path_SED
="$ac_path_SED"
12167 ac_path_SED_max
=$ac_count
12169 # 10*(2^10) chars as input seems more than enough
12170 test $ac_count -gt 10 && break
12172 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12175 $ac_path_SED_found && break 3
12180 if test -z "$ac_cv_path_SED"; then
12181 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12184 ac_cv_path_SED
=$SED
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12189 $as_echo "$ac_cv_path_SED" >&6; }
12190 SED
="$ac_cv_path_SED"
12193 test -z "$SED" && SED
=sed
12194 Xsed
="$SED -e 1s/^X//"
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12207 $as_echo_n "checking for fgrep... " >&6; }
12208 if test "${ac_cv_path_FGREP+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12211 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12212 then ac_cv_path_FGREP
="$GREP -F"
12214 if test -z "$FGREP"; then
12215 ac_path_FGREP_found
=false
12216 # Loop through the user's path and test for each of PROGNAME-LIST
12217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12218 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12221 test -z "$as_dir" && as_dir
=.
12222 for ac_prog
in fgrep
; do
12223 for ac_exec_ext
in '' $ac_executable_extensions; do
12224 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12226 # Check for GNU ac_path_FGREP and select it if it is found.
12227 # Check for GNU $ac_path_FGREP
12228 case `"$ac_path_FGREP" --version 2>&1` in
12230 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12233 $as_echo_n 0123456789 >"conftest.in"
12236 cat "conftest.in" "conftest.in" >"conftest.tmp"
12237 mv "conftest.tmp" "conftest.in"
12238 cp "conftest.in" "conftest.nl"
12239 $as_echo 'FGREP' >> "conftest.nl"
12240 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12241 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12242 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12244 # Best one so far, save it but keep looking for a better one
12245 ac_cv_path_FGREP
="$ac_path_FGREP"
12246 ac_path_FGREP_max
=$ac_count
12248 # 10*(2^10) chars as input seems more than enough
12249 test $ac_count -gt 10 && break
12251 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12254 $ac_path_FGREP_found && break 3
12259 if test -z "$ac_cv_path_FGREP"; then
12260 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12263 ac_cv_path_FGREP
=$FGREP
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12269 $as_echo "$ac_cv_path_FGREP" >&6; }
12270 FGREP
="$ac_cv_path_FGREP"
12273 test -z "$GREP" && GREP
=grep
12293 # Check whether --with-gnu-ld was given.
12294 if test "${with_gnu_ld+set}" = set; then :
12295 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12301 if test "$GCC" = yes; then
12302 # Check if gcc -print-prog-name=ld gives a path.
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12304 $as_echo_n "checking for ld used by $CC... " >&6; }
12307 # gcc leaves a trailing carriage return which upsets mingw
12308 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12310 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12313 # Accept absolute paths.
12315 re_direlt
='/[^/][^/]*/\.\./'
12316 # Canonicalize the pathname of ld
12317 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12318 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12319 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12321 test -z "$LD" && LD
="$ac_prog"
12324 # If it fails, then pretend we aren't using GCC.
12328 # If it is relative, then search for the first ld in PATH.
12329 with_gnu_ld
=unknown
12332 elif test "$with_gnu_ld" = yes; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12334 $as_echo_n "checking for GNU ld... " >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12337 $as_echo_n "checking for non-GNU ld... " >&6; }
12339 if test "${lt_cv_path_LD+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 if test -z "$LD"; then
12343 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12344 for ac_dir
in $PATH; do
12346 test -z "$ac_dir" && ac_dir
=.
12347 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12348 lt_cv_path_LD
="$ac_dir/$ac_prog"
12349 # Check to see if the program is GNU ld. I'd rather use --version,
12350 # but apparently some variants of GNU ld only accept -v.
12351 # Break only if it was the GNU/non-GNU ld that we prefer.
12352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12353 *GNU
* |
*'with BFD'*)
12354 test "$with_gnu_ld" != no
&& break
12357 test "$with_gnu_ld" != yes && break
12364 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12368 LD
="$lt_cv_path_LD"
12369 if test -n "$LD"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12371 $as_echo "$LD" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12376 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383 case `$LD -v 2>&1 </dev/null` in
12384 *GNU
* |
*'with BFD'*)
12385 lt_cv_prog_gnu_ld
=yes
12388 lt_cv_prog_gnu_ld
=no
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12394 with_gnu_ld
=$lt_cv_prog_gnu_ld
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12406 if test "${lt_cv_path_NM+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12409 if test -n "$NM"; then
12410 # Let the user override the test.
12411 lt_cv_path_NM
="$NM"
12413 lt_nm_to_check
="${ac_tool_prefix}nm"
12414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12415 lt_nm_to_check
="$lt_nm_to_check nm"
12417 for lt_tmp_nm
in $lt_nm_to_check; do
12418 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12419 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12421 test -z "$ac_dir" && ac_dir
=.
12422 tmp_nm
="$ac_dir/$lt_tmp_nm"
12423 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12424 # Check to see if the nm accepts a BSD-compat flag.
12425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12426 # nm: unknown option "B" ignored
12427 # Tru64's nm complains that /dev/null is an invalid object file
12428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12429 */dev
/null
* |
*'Invalid file or object type'*)
12430 lt_cv_path_NM
="$tmp_nm -B"
12434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12436 lt_cv_path_NM
="$tmp_nm -p"
12440 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12441 continue # so that we can try to find one that supports BSD flags
12450 : ${lt_cv_path_NM=no}
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12454 $as_echo "$lt_cv_path_NM" >&6; }
12455 if test "$lt_cv_path_NM" != "no"; then
12456 NM
="$lt_cv_path_NM"
12458 # Didn't find any BSD compatible name lister, look for dumpbin.
12459 if test -n "$DUMPBIN"; then :
12460 # Let the user override the test.
12462 if test -n "$ac_tool_prefix"; then
12463 for ac_prog
in dumpbin
"link -dump"
12465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12466 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12472 if test -n "$DUMPBIN"; then
12473 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12476 for as_dir
in $PATH
12479 test -z "$as_dir" && as_dir
=.
12480 for ac_exec_ext
in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12482 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 DUMPBIN
=$ac_cv_prog_DUMPBIN
12493 if test -n "$DUMPBIN"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12495 $as_echo "$DUMPBIN" >&6; }
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12502 test -n "$DUMPBIN" && break
12505 if test -z "$DUMPBIN"; then
12506 ac_ct_DUMPBIN
=$DUMPBIN
12507 for ac_prog
in dumpbin
"link -dump"
12509 # Extract the first word of "$ac_prog", so it can be a program name with args.
12510 set dummy
$ac_prog; ac_word
=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12516 if test -n "$ac_ct_DUMPBIN"; then
12517 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12520 for as_dir
in $PATH
12523 test -z "$as_dir" && as_dir
=.
12524 for ac_exec_ext
in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12537 if test -n "$ac_ct_DUMPBIN"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12539 $as_echo "$ac_ct_DUMPBIN" >&6; }
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12546 test -n "$ac_ct_DUMPBIN" && break
12549 if test "x$ac_ct_DUMPBIN" = x
; then
12552 case $cross_compiling:$ac_tool_warned in
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12556 ac_tool_warned
=yes ;;
12558 DUMPBIN
=$ac_ct_DUMPBIN
12562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12564 DUMPBIN
="$DUMPBIN -symbols"
12572 if test "$DUMPBIN" != ":"; then
12576 test -z "$NM" && NM
=nm
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12585 if test "${lt_cv_nm_interface+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12588 lt_cv_nm_interface
="BSD nm"
12589 echo "int some_variable = 0;" > conftest.
$ac_ext
12590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12591 (eval "$ac_compile" 2>conftest.err
)
12592 cat conftest.err
>&5
12593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12595 cat conftest.err
>&5
12596 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12597 cat conftest.out
>&5
12598 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12599 lt_cv_nm_interface
="MS dumpbin"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12604 $as_echo "$lt_cv_nm_interface" >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12607 $as_echo_n "checking whether ln -s works... " >&6; }
12609 if test "$LN_S" = "ln -s"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 $as_echo "yes" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12614 $as_echo "no, using $LN_S" >&6; }
12617 # find the maximum length of command line arguments
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12619 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12620 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12621 $as_echo_n "(cached) " >&6
12628 # On DJGPP, this test can blow up pretty badly due to problems in libc
12629 # (any single argument exceeding 2000 bytes causes a buffer overrun
12630 # during glob expansion). Even if it were fixed, the result of this
12631 # check would be larger than it should be.
12632 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12636 # Under GNU Hurd, this test is not required because there is
12637 # no limit to the length of command line arguments.
12638 # Libtool will interpret -1 as no limit whatsoever
12639 lt_cv_sys_max_cmd_len
=-1;
12642 cygwin
* | mingw
* | cegcc
*)
12643 # On Win9x/ME, this test blows up -- it succeeds, but takes
12644 # about 5 minutes as the teststring grows exponentially.
12645 # Worse, since 9x/ME are not pre-emptively multitasking,
12646 # you end up with a "frozen" computer, even though with patience
12647 # the test eventually succeeds (with a max line length of 256k).
12648 # Instead, let's just punt: use the minimum linelength reported by
12649 # all of the supported platforms: 8192 (on NT/2K/XP).
12650 lt_cv_sys_max_cmd_len
=8192;
12654 # On MiNT this can take a long time and run out of memory.
12655 lt_cv_sys_max_cmd_len
=8192;
12659 # On AmigaOS with pdksh, this test takes hours, literally.
12660 # So we just punt and use a minimum line length of 8192.
12661 lt_cv_sys_max_cmd_len
=8192;
12664 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12665 # This has been around since 386BSD, at least. Likely further.
12666 if test -x /sbin
/sysctl
; then
12667 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12668 elif test -x /usr
/sbin
/sysctl
; then
12669 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12671 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12673 # And add a safety zone
12674 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12675 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12679 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12680 lt_cv_sys_max_cmd_len
=196608
12684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12686 # nice to cause kernel panics so lets avoid the loop below.
12687 # First set a reasonable default.
12688 lt_cv_sys_max_cmd_len
=16384
12690 if test -x /sbin
/sysconfig
; then
12691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12692 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12697 lt_cv_sys_max_cmd_len
=102400
12699 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12700 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12701 if test -n "$kargmax"; then
12702 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12704 lt_cv_sys_max_cmd_len
=32768
12708 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12709 if test -n "$lt_cv_sys_max_cmd_len"; then
12710 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12711 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12713 # Make teststring a little bigger before we do anything with it.
12714 # a 1K string should be a reasonable start.
12715 for i
in 1 2 3 4 5 6 7 8 ; do
12716 teststring
=$teststring$teststring
12718 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12719 # If test is not a shell built-in, we'll probably end up computing a
12720 # maximum length that is only half of the actual maximum length, but
12722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12723 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12724 test $i != 17 # 1/2 MB should be enough
12727 teststring
=$teststring$teststring
12729 # Only check the string length outside the loop.
12730 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12732 # Add a significant safety factor because C++ compilers can tack on
12733 # massive amounts of additional arguments before passing them to the
12734 # linker. It appears as though 1/2 is a usable value.
12735 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12742 if test -n $lt_cv_sys_max_cmd_len ; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12747 $as_echo "none" >&6; }
12749 max_cmd_len
=$lt_cv_sys_max_cmd_len
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12762 # Try some XSI features
12764 ( _lt_dummy
="a/b/c"
12765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12767 && eval 'test $(( 1 + 1 )) -eq 2 \
12768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12771 $as_echo "$xsi_shell" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12775 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12777 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12779 && lt_shell_append=yes
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12781 $as_echo "$lt_shell_append" >&6; }
12784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12794 # test EBCDIC or ASCII
12795 case `echo X|tr X '\101'` in
12796 A) # ASCII based system
12797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12798 lt_SP2NL='tr \040 \012'
12799 lt_NL2SP='tr \015\012 \040\040'
12801 *) # EBCDIC based system
12802 lt_SP2NL='tr \100 \n'
12803 lt_NL2SP='tr \r\n \100\100'
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12816 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12817 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12818 $as_echo_n "(cached
) " >&6
12820 lt_cv_ld_reload_flag='-r'
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12823 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12824 reload_flag=$lt_cv_ld_reload_flag
12825 case $reload_flag in
12827 *) reload_flag=" $reload_flag" ;;
12829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12832 if test "$GCC" = yes; then
12833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12848 if test -n "$ac_tool_prefix"; then
12849 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12852 $as_echo_n "checking
for $ac_word...
" >&6; }
12853 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12854 $as_echo_n "(cached
) " >&6
12856 if test -n "$OBJDUMP"; then
12857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12876 OBJDUMP=$ac_cv_prog_OBJDUMP
12877 if test -n "$OBJDUMP"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12879 $as_echo "$OBJDUMP" >&6; }
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12882 $as_echo "no
" >&6; }
12887 if test -z "$ac_cv_prog_OBJDUMP"; then
12888 ac_ct_OBJDUMP=$OBJDUMP
12889 # Extract the first word of "objdump
", so it can be a program name with args.
12890 set dummy objdump; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12892 $as_echo_n "checking
for $ac_word...
" >&6; }
12893 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12894 $as_echo_n "(cached
) " >&6
12896 if test -n "$ac_ct_OBJDUMP"; then
12897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12917 if test -n "$ac_ct_OBJDUMP"; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12919 $as_echo "$ac_ct_OBJDUMP" >&6; }
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12922 $as_echo "no
" >&6; }
12925 if test "x
$ac_ct_OBJDUMP" = x; then
12928 case $cross_compiling:$ac_tool_warned in
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12931 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12932 ac_tool_warned=yes ;;
12934 OBJDUMP=$ac_ct_OBJDUMP
12937 OBJDUMP="$ac_cv_prog_OBJDUMP"
12940 test -z "$OBJDUMP" && OBJDUMP=objdump
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12951 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12952 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12953 $as_echo_n "(cached
) " >&6
12955 lt_cv_file_magic_cmd='$MAGIC_CMD'
12956 lt_cv_file_magic_test_file=
12957 lt_cv_deplibs_check_method='unknown'
12958 # Need to set the preceding variable on all platforms that support
12959 # interlibrary dependencies.
12960 # 'none' -- dependencies not supported.
12961 # `unknown' -- same as none, but documents that we really don't know.
12962 # 'pass_all' -- all dependencies passed with no checks.
12963 # 'test_compile' -- check by making test program.
12964 # 'file_magic [[regex]]' -- check by looking for files in library path
12965 # which responds to the $file_magic_cmd with a given extended regex.
12966 # If you have `file' or equivalent on your system and you're not sure
12967 # whether `pass_all' will *always* work, you probably want this one.
12971 lt_cv_deplibs_check_method=pass_all
12975 lt_cv_deplibs_check_method=pass_all
12979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12980 lt_cv_file_magic_cmd='/usr/bin/file -L'
12981 lt_cv_file_magic_test_file=/shlib/libc.so
12985 # func_win32_libid is a shell function defined in ltmain.sh
12986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12987 lt_cv_file_magic_cmd='func_win32_libid'
12991 # Base MSYS/MinGW do not provide the 'file' command needed by
12992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12993 # unless we find 'file', for example because we are cross-compiling.
12994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12995 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12997 lt_cv_file_magic_cmd='func_win32_libid'
12999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13000 lt_cv_file_magic_cmd='$OBJDUMP -f'
13005 # use the weaker test based on 'objdump'. See mingw*.
13006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13007 lt_cv_file_magic_cmd='$OBJDUMP -f'
13010 darwin* | rhapsody*)
13011 lt_cv_deplibs_check_method=pass_all
13014 freebsd* | dragonfly*)
13015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13018 # Not sure whether the presence of OpenBSD here was a mistake.
13019 # Let's accept both of them until this is cleared up.
13020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13021 lt_cv_file_magic_cmd=/usr/bin/file
13022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13026 lt_cv_deplibs_check_method=pass_all
13031 lt_cv_deplibs_check_method=pass_all
13035 lt_cv_deplibs_check_method=pass_all
13038 hpux10.20* | hpux11*)
13039 lt_cv_file_magic_cmd=/usr/bin/file
13042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13046 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]'
13047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13061 irix5* | irix6* | nonstopux*)
13063 *-32|*"-32 ") libmagic=32-bit;;
13064 *-n32|*"-n32 ") libmagic=N32;;
13065 *-64|*"-64 ") libmagic=64-bit;;
13066 *) libmagic=never-match;;
13068 lt_cv_deplibs_check_method=pass_all
13071 # This must be Linux ELF.
13072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13073 lt_cv_deplibs_check_method=pass_all
13077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13086 lt_cv_file_magic_cmd=/usr/bin/file
13087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13091 lt_cv_deplibs_check_method=pass_all
13095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13102 osf3* | osf4* | osf5*)
13103 lt_cv_deplibs_check_method=pass_all
13107 lt_cv_deplibs_check_method=pass_all
13111 lt_cv_deplibs_check_method=pass_all
13114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13115 lt_cv_deplibs_check_method=pass_all
13119 case $host_vendor in
13121 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]'
13122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13125 lt_cv_deplibs_check_method=pass_all
13128 lt_cv_file_magic_cmd='/bin/file'
13129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13132 lt_cv_file_magic_cmd='/bin/file'
13133 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13134 lt_cv_file_magic_test_file=/lib/libc.so
13137 lt_cv_deplibs_check_method=pass_all
13140 lt_cv_deplibs_check_method=pass_all
13146 lt_cv_deplibs_check_method=pass_all
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13153 file_magic_cmd=$lt_cv_file_magic_cmd
13154 deplibs_check_method=$lt_cv_deplibs_check_method
13155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13168 if test -n "$ac_tool_prefix"; then
13169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13170 set dummy ${ac_tool_prefix}ar; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13172 $as_echo_n "checking
for $ac_word...
" >&6; }
13173 if test "${ac_cv_prog_AR+set}" = set; then :
13174 $as_echo_n "(cached
) " >&6
13176 if test -n "$AR"; then
13177 ac_cv_prog_AR="$AR" # Let the user override the test.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_AR="${ac_tool_prefix}ar"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13197 if test -n "$AR"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13199 $as_echo "$AR" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13202 $as_echo "no
" >&6; }
13207 if test -z "$ac_cv_prog_AR"; then
13209 # Extract the first word of "ar", so it can be a program name with args.
13210 set dummy ar; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13212 $as_echo_n "checking
for $ac_word...
" >&6; }
13213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13214 $as_echo_n "(cached
) " >&6
13216 if test -n "$ac_ct_AR"; then
13217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_ac_ct_AR="ar"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13237 if test -n "$ac_ct_AR"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13239 $as_echo "$ac_ct_AR" >&6; }
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13242 $as_echo "no
" >&6; }
13245 if test "x
$ac_ct_AR" = x; then
13248 case $cross_compiling:$ac_tool_warned in
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13251 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13252 ac_tool_warned=yes ;;
13257 AR="$ac_cv_prog_AR"
13260 test -z "$AR" && AR=ar
13261 test -z "$AR_FLAGS" && AR_FLAGS=cru
13273 if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13275 set dummy ${ac_tool_prefix}strip; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13277 $as_echo_n "checking
for $ac_word...
" >&6; }
13278 if test "${ac_cv_prog_STRIP+set}" = set; then :
13279 $as_echo_n "(cached
) " >&6
13281 if test -n "$STRIP"; then
13282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13301 STRIP=$ac_cv_prog_STRIP
13302 if test -n "$STRIP"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13304 $as_echo "$STRIP" >&6; }
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13307 $as_echo "no
" >&6; }
13312 if test -z "$ac_cv_prog_STRIP"; then
13314 # Extract the first word of "strip
", so it can be a program name with args.
13315 set dummy strip; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13317 $as_echo_n "checking
for $ac_word...
" >&6; }
13318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13319 $as_echo_n "(cached
) " >&6
13321 if test -n "$ac_ct_STRIP"; then
13322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_ac_ct_STRIP="strip
"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13342 if test -n "$ac_ct_STRIP"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13344 $as_echo "$ac_ct_STRIP" >&6; }
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13347 $as_echo "no
" >&6; }
13350 if test "x
$ac_ct_STRIP" = x; then
13353 case $cross_compiling:$ac_tool_warned in
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13356 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13357 ac_tool_warned=yes ;;
13362 STRIP="$ac_cv_prog_STRIP"
13365 test -z "$STRIP" && STRIP=:
13372 if test -n "$ac_tool_prefix"; then
13373 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13376 $as_echo_n "checking
for $ac_word...
" >&6; }
13377 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13378 $as_echo_n "(cached
) " >&6
13380 if test -n "$RANLIB"; then
13381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13400 RANLIB=$ac_cv_prog_RANLIB
13401 if test -n "$RANLIB"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13403 $as_echo "$RANLIB" >&6; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13406 $as_echo "no
" >&6; }
13411 if test -z "$ac_cv_prog_RANLIB"; then
13412 ac_ct_RANLIB=$RANLIB
13413 # Extract the first word of "ranlib
", so it can be a program name with args.
13414 set dummy ranlib; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13416 $as_echo_n "checking
for $ac_word...
" >&6; }
13417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13418 $as_echo_n "(cached
) " >&6
13420 if test -n "$ac_ct_RANLIB"; then
13421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424 for as_dir in $PATH
13427 test -z "$as_dir" && as_dir=.
13428 for ac_exec_ext in '' $ac_executable_extensions; do
13429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13430 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13431 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13441 if test -n "$ac_ct_RANLIB"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13443 $as_echo "$ac_ct_RANLIB" >&6; }
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13446 $as_echo "no
" >&6; }
13449 if test "x
$ac_ct_RANLIB" = x; then
13452 case $cross_compiling:$ac_tool_warned in
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13455 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13456 ac_tool_warned=yes ;;
13458 RANLIB=$ac_ct_RANLIB
13461 RANLIB="$ac_cv_prog_RANLIB"
13464 test -z "$RANLIB" && RANLIB=:
13471 # Determine commands to create old-style static archives.
13472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13473 old_postinstall_cmds='chmod 644 $oldlib'
13474 old_postuninstall_cmds=
13476 if test -n "$RANLIB"; then
13479 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13482 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13485 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13490 lock_old_archive_extraction=yes ;;
13492 lock_old_archive_extraction=no ;;
13533 # If no C compiler was specified, use CC.
13536 # If no C compiler flags were specified, use CFLAGS.
13537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13539 # Allow CC to be a program name with arguments.
13543 # Check for command to grab the raw symbol name followed by C symbol from nm.
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13545 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13547 $as_echo_n "(cached
) " >&6
13550 # These are sane defaults that work on at least a few old systems.
13551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13553 # Character class describing NM global symbol codes.
13554 symcode='[BCDEGRST]'
13556 # Regexp to match symbols that can be accessed directly from C.
13557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13559 # Define system-specific variables.
13564 cygwin* | mingw* | pw32* | cegcc*)
13565 symcode='[ABCDGISTW]'
13568 if test "$host_cpu" = ia64; then
13569 symcode='[ABCDEGRST]'
13572 irix* | nonstopux*)
13573 symcode='[BCDEGRST]'
13576 symcode='[BCDEGQRST]'
13587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13595 # If we're using GNU nm, then use its standard symbol codes.
13596 case `$NM -V 2>&1` in
13597 *GNU* | *'with BFD'*)
13598 symcode='[ABCDGIRSTW]' ;;
13601 # Transform an extracted symbol line into a proper C declaration.
13602 # Some systems (esp. on ia64) link data and code symbols differently,
13603 # so use this general approach.
13604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13606 # Transform an extracted symbol line into symbol name and symbol address
13607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13608 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'"
13610 # Handle CRLF in mingw tool chain
13614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13618 # Try without a prefix underscore, then with it.
13619 for ac_symprfx in "" "_
"; do
13621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13622 symxfrm="\\1 $ac_symprfx\\2 \\2"
13624 # Write the raw and C identifiers.
13625 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13626 # Fake it for dumpbin and say T for any non-static function
13627 # and D for any global variable.
13628 # Also find C++ and __fastcall symbols from MSVC++,
13629 # which start with @ or ?.
13630 lt_cv_sys_global_symbol_pipe="$AWK '"\
13631 " {last_section=section; section=\$ 3};"\
13632 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13633 " \$ 0!~/External *\|/{next};"\
13634 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13635 " {if(hide[section]) next};"\
13636 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13637 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13638 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13639 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13640 " ' prfx
=^
$ac_symprfx"
13642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13645 # Check to see that the pipe works correctly.
13649 cat > conftest.$ac_ext <<_LT_EOF
13654 void nm_test_func(void);
13655 void nm_test_func(void){}
13659 int main(){nm_test_var='a';nm_test_func();return(0);}
13662 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13663 (eval $ac_compile) 2>&5
13665 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13666 test $ac_status = 0; }; then
13667 # Now try to grab the symbols.
13669 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13672 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13673 test $ac_status = 0; } && test -s "$nlist"; then
13674 # Try sorting and uniquifying the output.
13675 if sort "$nlist" | uniq > "$nlist"T; then
13676 mv -f "$nlist"T "$nlist"
13681 # Make sure that we snagged all the symbols we need.
13682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13684 cat <<_LT_EOF > conftest.$ac_ext
13690 # Now generate the symbol file.
13691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13693 cat <<_LT_EOF >> conftest.$ac_ext
13695 /* The mapping between symbol names and symbols. */
13700 lt__PROGRAM__LTX_preloaded_symbols[] =
13702 { "@PROGRAM@
", (void *) 0 },
13704 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13705 cat <<\_LT_EOF >> conftest.$ac_ext
13709 /* This works around a problem in FreeBSD linker */
13710 #ifdef FREEBSD_WORKAROUND
13711 static const void *lt_preloaded_setup() {
13712 return lt__PROGRAM__LTX_preloaded_symbols;
13720 # Now try linking the two files.
13721 mv conftest.$ac_objext conftstm.$ac_objext
13722 lt_save_LIBS="$LIBS"
13723 lt_save_CFLAGS="$CFLAGS"
13724 LIBS="conftstm.
$ac_objext"
13725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13726 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13727 (eval $ac_link) 2>&5
13729 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13733 LIBS="$lt_save_LIBS"
13734 CFLAGS="$lt_save_CFLAGS"
13736 echo "cannot
find nm_test_func
in $nlist" >&5
13739 echo "cannot
find nm_test_var
in $nlist" >&5
13742 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13745 echo "$progname: failed program was
:" >&5
13746 cat conftest.$ac_ext >&5
13748 rm -rf conftest* conftst*
13750 # Do not use the global_symbol_pipe unless it works.
13751 if test "$pipe_works" = yes; then
13754 lt_cv_sys_global_symbol_pipe=
13760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13761 lt_cv_sys_global_symbol_to_cdecl=
13763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13765 $as_echo "failed
" >&6; }
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13768 $as_echo "ok
" >&6; }
13792 # Check whether --enable-libtool-lock was given.
13793 if test "${enable_libtool_lock+set}" = set; then :
13794 enableval=$enable_libtool_lock;
13797 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13799 # Some flags need to be propagated to the compiler or linker for good
13803 # Find out which ABI we are using.
13804 echo 'int i;' > conftest.$ac_ext
13805 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13806 (eval $ac_compile) 2>&5
13808 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13809 test $ac_status = 0; }; then
13810 case `/usr/bin/file conftest.$ac_objext` in
13812 HPUX_IA64_MODE="32"
13815 HPUX_IA64_MODE="64"
13822 # Find out which ABI we are using.
13823 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13824 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13825 (eval $ac_compile) 2>&5
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13828 test $ac_status = 0; }; then
13829 if test "$lt_cv_prog_gnu_ld" = yes; then
13830 case `/usr/bin/file conftest.$ac_objext` in
13832 LD="${LD-ld} -melf32bsmip"
13835 LD="${LD-ld} -melf32bmipn32"
13838 LD="${LD-ld} -melf64bmip"
13842 case `/usr/bin/file conftest.$ac_objext` in
13858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13860 # Find out which ABI we are using.
13861 echo 'int i;' > conftest.$ac_ext
13862 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13863 (eval $ac_compile) 2>&5
13865 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13866 test $ac_status = 0; }; then
13867 case `/usr/bin/file conftest.o` in
13870 x86_64-*kfreebsd*-gnu)
13871 LD="${LD-ld} -m elf_i386_fbsd
"
13874 case `/usr/bin/file conftest.o` in
13876 LD="${LD-ld} -m elf32_x86_64
"
13879 LD="${LD-ld} -m elf_i386
"
13883 ppc64-*linux*|powerpc64-*linux*)
13884 LD="${LD-ld} -m elf32ppclinux
"
13887 LD="${LD-ld} -m elf_s390
"
13890 LD="${LD-ld} -m elf32_sparc
"
13896 x86_64-*kfreebsd*-gnu)
13897 LD="${LD-ld} -m elf_x86_64_fbsd
"
13900 LD="${LD-ld} -m elf_x86_64
"
13902 ppc*-*linux*|powerpc*-*linux*)
13903 LD="${LD-ld} -m elf64ppc
"
13905 s390*-*linux*|s390*-*tpf*)
13906 LD="${LD-ld} -m elf64_s390
"
13909 LD="${LD-ld} -m elf64_sparc
"
13919 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13920 SAVE_CFLAGS="$CFLAGS"
13921 CFLAGS="$CFLAGS -belf"
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13923 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13924 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13925 $as_echo_n "(cached
) " >&6
13928 ac_cpp='$CPP $CPPFLAGS'
13929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13944 if ac_fn_c_try_link "$LINENO"; then :
13945 lt_cv_cc_needs_belf=yes
13947 lt_cv_cc_needs_belf=no
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13952 ac_cpp='$CPP $CPPFLAGS'
13953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13960 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13961 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13962 CFLAGS="$SAVE_CFLAGS"
13966 # Find out which ABI we are using.
13967 echo 'int i;' > conftest.$ac_ext
13968 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13969 (eval $ac_compile) 2>&5
13971 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13972 test $ac_status = 0; }; then
13973 case `/usr/bin/file conftest.o` in
13975 case $lt_cv_prog_gnu_ld in
13976 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13990 need_locks="$enable_libtool_lock"
13994 rhapsody* | darwin*)
13995 if test -n "$ac_tool_prefix"; then
13996 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13997 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13999 $as_echo_n "checking
for $ac_word...
" >&6; }
14000 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14001 $as_echo_n "(cached
) " >&6
14003 if test -n "$DSYMUTIL"; then
14004 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14013 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14024 if test -n "$DSYMUTIL"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14026 $as_echo "$DSYMUTIL" >&6; }
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14029 $as_echo "no
" >&6; }
14034 if test -z "$ac_cv_prog_DSYMUTIL"; then
14035 ac_ct_DSYMUTIL=$DSYMUTIL
14036 # Extract the first word of "dsymutil
", so it can be a program name with args.
14037 set dummy dsymutil; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14039 $as_echo_n "checking
for $ac_word...
" >&6; }
14040 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14041 $as_echo_n "(cached
) " >&6
14043 if test -n "$ac_ct_DSYMUTIL"; then
14044 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047 for as_dir in $PATH
14050 test -z "$as_dir" && as_dir=.
14051 for ac_exec_ext in '' $ac_executable_extensions; do
14052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14054 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14064 if test -n "$ac_ct_DSYMUTIL"; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14069 $as_echo "no
" >&6; }
14072 if test "x
$ac_ct_DSYMUTIL" = x; then
14075 case $cross_compiling:$ac_tool_warned in
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14078 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14079 ac_tool_warned=yes ;;
14081 DSYMUTIL=$ac_ct_DSYMUTIL
14084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14087 if test -n "$ac_tool_prefix"; then
14088 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14091 $as_echo_n "checking
for $ac_word...
" >&6; }
14092 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14093 $as_echo_n "(cached
) " >&6
14095 if test -n "$NMEDIT"; then
14096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14115 NMEDIT=$ac_cv_prog_NMEDIT
14116 if test -n "$NMEDIT"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14118 $as_echo "$NMEDIT" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14121 $as_echo "no
" >&6; }
14126 if test -z "$ac_cv_prog_NMEDIT"; then
14127 ac_ct_NMEDIT=$NMEDIT
14128 # Extract the first word of "nmedit
", so it can be a program name with args.
14129 set dummy nmedit; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14131 $as_echo_n "checking
for $ac_word...
" >&6; }
14132 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14133 $as_echo_n "(cached
) " >&6
14135 if test -n "$ac_ct_NMEDIT"; then
14136 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14145 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14155 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14156 if test -n "$ac_ct_NMEDIT"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14158 $as_echo "$ac_ct_NMEDIT" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14161 $as_echo "no
" >&6; }
14164 if test "x
$ac_ct_NMEDIT" = x; then
14167 case $cross_compiling:$ac_tool_warned in
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14170 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14171 ac_tool_warned=yes ;;
14173 NMEDIT=$ac_ct_NMEDIT
14176 NMEDIT="$ac_cv_prog_NMEDIT"
14179 if test -n "$ac_tool_prefix"; then
14180 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14181 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14183 $as_echo_n "checking
for $ac_word...
" >&6; }
14184 if test "${ac_cv_prog_LIPO+set}" = set; then :
14185 $as_echo_n "(cached
) " >&6
14187 if test -n "$LIPO"; then
14188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14207 LIPO=$ac_cv_prog_LIPO
14208 if test -n "$LIPO"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14210 $as_echo "$LIPO" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14213 $as_echo "no
" >&6; }
14218 if test -z "$ac_cv_prog_LIPO"; then
14220 # Extract the first word of "lipo
", so it can be a program name with args.
14221 set dummy lipo; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14223 $as_echo_n "checking
for $ac_word...
" >&6; }
14224 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14225 $as_echo_n "(cached
) " >&6
14227 if test -n "$ac_ct_LIPO"; then
14228 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14237 ac_cv_prog_ac_ct_LIPO="lipo
"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14247 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14248 if test -n "$ac_ct_LIPO"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14250 $as_echo "$ac_ct_LIPO" >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14253 $as_echo "no
" >&6; }
14256 if test "x
$ac_ct_LIPO" = x; then
14259 case $cross_compiling:$ac_tool_warned in
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14262 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14263 ac_tool_warned=yes ;;
14268 LIPO="$ac_cv_prog_LIPO"
14271 if test -n "$ac_tool_prefix"; then
14272 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14273 set dummy ${ac_tool_prefix}otool; ac_word=$2
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14275 $as_echo_n "checking
for $ac_word...
" >&6; }
14276 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14277 $as_echo_n "(cached
) " >&6
14279 if test -n "$OTOOL"; then
14280 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14289 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14299 OTOOL=$ac_cv_prog_OTOOL
14300 if test -n "$OTOOL"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14302 $as_echo "$OTOOL" >&6; }
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14305 $as_echo "no
" >&6; }
14310 if test -z "$ac_cv_prog_OTOOL"; then
14312 # Extract the first word of "otool
", so it can be a program name with args.
14313 set dummy otool; ac_word=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14315 $as_echo_n "checking
for $ac_word...
" >&6; }
14316 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14317 $as_echo_n "(cached
) " >&6
14319 if test -n "$ac_ct_OTOOL"; then
14320 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323 for as_dir in $PATH
14326 test -z "$as_dir" && as_dir=.
14327 for ac_exec_ext in '' $ac_executable_extensions; do
14328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14329 ac_cv_prog_ac_ct_OTOOL="otool
"
14330 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14340 if test -n "$ac_ct_OTOOL"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14342 $as_echo "$ac_ct_OTOOL" >&6; }
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14345 $as_echo "no
" >&6; }
14348 if test "x
$ac_ct_OTOOL" = x; then
14351 case $cross_compiling:$ac_tool_warned in
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14354 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14355 ac_tool_warned=yes ;;
14360 OTOOL="$ac_cv_prog_OTOOL"
14363 if test -n "$ac_tool_prefix"; then
14364 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14367 $as_echo_n "checking
for $ac_word...
" >&6; }
14368 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14369 $as_echo_n "(cached
) " >&6
14371 if test -n "$OTOOL64"; then
14372 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14391 OTOOL64=$ac_cv_prog_OTOOL64
14392 if test -n "$OTOOL64"; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14394 $as_echo "$OTOOL64" >&6; }
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14397 $as_echo "no
" >&6; }
14402 if test -z "$ac_cv_prog_OTOOL64"; then
14403 ac_ct_OTOOL64=$OTOOL64
14404 # Extract the first word of "otool64
", so it can be a program name with args.
14405 set dummy otool64; ac_word=$2
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14407 $as_echo_n "checking
for $ac_word...
" >&6; }
14408 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14409 $as_echo_n "(cached
) " >&6
14411 if test -n "$ac_ct_OTOOL64"; then
14412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415 for as_dir in $PATH
14418 test -z "$as_dir" && as_dir=.
14419 for ac_exec_ext in '' $ac_executable_extensions; do
14420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14421 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14422 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14432 if test -n "$ac_ct_OTOOL64"; then
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14434 $as_echo "$ac_ct_OTOOL64" >&6; }
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14437 $as_echo "no
" >&6; }
14440 if test "x
$ac_ct_OTOOL64" = x; then
14443 case $cross_compiling:$ac_tool_warned in
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14446 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14447 ac_tool_warned=yes ;;
14449 OTOOL64=$ac_ct_OTOOL64
14452 OTOOL64="$ac_cv_prog_OTOOL64"
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14482 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14483 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14484 $as_echo_n "(cached
) " >&6
14486 lt_cv_apple_cc_single_mod=no
14487 if test -z "${LT_MULTI_MODULE}"; then
14488 # By default we will add the -single_module flag. You can override
14489 # by either setting the environment variable LT_MULTI_MODULE
14490 # non-empty at configure time, or by adding -multi_module to the
14492 rm -rf libconftest.dylib*
14493 echo "int foo
(void
){return 1;}" > conftest.c
14494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14495 -dynamiclib -Wl,-single_module conftest.c
" >&5
14496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14497 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14499 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14500 lt_cv_apple_cc_single_mod=yes
14502 cat conftest.err >&5
14504 rm -rf libconftest.dylib*
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14509 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14511 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14512 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14513 $as_echo_n "(cached
) " >&6
14515 lt_cv_ld_exported_symbols_list=no
14516 save_LDFLAGS=$LDFLAGS
14517 echo "_main
" > conftest.sym
14518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14530 if ac_fn_c_try_link "$LINENO"; then :
14531 lt_cv_ld_exported_symbols_list=yes
14533 lt_cv_ld_exported_symbols_list=no
14535 rm -f core conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14537 LDFLAGS="$save_LDFLAGS"
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14541 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14543 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14544 if test "${lt_cv_ld_force_load+set}" = set; then :
14545 $as_echo_n "(cached
) " >&6
14547 lt_cv_ld_force_load=no
14548 cat > conftest.c << _LT_EOF
14549 int forced_loaded() { return 2;}
14551 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14552 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14553 echo "$AR cru libconftest.a conftest.o
" >&5
14554 $AR cru libconftest.a conftest.o 2>&5
14555 cat > conftest.c << _LT_EOF
14556 int main() { return 0;}
14558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14561 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14562 lt_cv_ld_force_load=yes
14564 cat conftest.err >&5
14566 rm -f conftest.err libconftest.a conftest conftest.c
14567 rm -rf conftest.dSYM
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14571 $as_echo "$lt_cv_ld_force_load" >&6; }
14573 rhapsody* | darwin1.[012])
14574 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14577 darwin*) # darwin 5.x on
14578 # if running on 10.5 or later, the deployment target defaults
14579 # to the OS version, if on x86, and 10.4, the deployment
14580 # target defaults to 10.4. Don't you love it?
14581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14582 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14587 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14591 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14592 _lt_dar_single_mod='$single_module'
14594 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14595 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14597 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14599 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14600 _lt_dsymutil='~$DSYMUTIL $lib || :'
14607 for ac_header in dlfcn.h
14609 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14610 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_DLFCN_H 1
14629 enable_win32_dll=no
14632 # Check whether --enable-shared was given.
14633 if test "${enable_shared+set}" = set; then :
14634 enableval=$enable_shared; p=${PACKAGE-default}
14636 yes) enable_shared=yes ;;
14637 no) enable_shared=no ;;
14640 # Look at the argument we got. We use all the common list separators.
14641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14642 for pkg in $enableval; do
14644 if test "X
$pkg" = "X
$p"; then
14663 # Check whether --enable-static was given.
14664 if test "${enable_static+set}" = set; then :
14665 enableval=$enable_static; p=${PACKAGE-default}
14667 yes) enable_static=yes ;;
14668 no) enable_static=no ;;
14671 # Look at the argument we got. We use all the common list separators.
14672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14673 for pkg in $enableval; do
14675 if test "X
$pkg" = "X
$p"; then
14695 # Check whether --with-pic was given.
14696 if test "${with_pic+set}" = set; then :
14697 withval=$with_pic; pic_mode="$withval"
14703 test -z "$pic_mode" && pic_mode=default
14711 # Check whether --enable-fast-install was given.
14712 if test "${enable_fast_install+set}" = set; then :
14713 enableval=$enable_fast_install; p=${PACKAGE-default}
14715 yes) enable_fast_install=yes ;;
14716 no) enable_fast_install=no ;;
14718 enable_fast_install=no
14719 # Look at the argument we got. We use all the common list separators.
14720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14721 for pkg in $enableval; do
14723 if test "X
$pkg" = "X
$p"; then
14724 enable_fast_install=yes
14731 enable_fast_install=yes
14744 # This can be used to rebuild libtool when needed
14745 LIBTOOL_DEPS="$ltmain"
14747 # Always use our own libtool.
14748 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14775 test -z "$LN_S" && LN_S="ln -s"
14790 if test -n "${ZSH_VERSION+set}" ; then
14791 setopt NO_GLOB_SUBST
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14795 $as_echo_n "checking
for objdir...
" >&6; }
14796 if test "${lt_cv_objdir+set}" = set; then :
14797 $as_echo_n "(cached
) " >&6
14799 rm -f .libs 2>/dev/null
14800 mkdir .libs 2>/dev/null
14801 if test -d .libs; then
14804 # MS-DOS does not allow filenames that begin with a dot.
14807 rmdir .libs 2>/dev/null
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14810 $as_echo "$lt_cv_objdir" >&6; }
14811 objdir=$lt_cv_objdir
14817 cat >>confdefs.h <<_ACEOF
14818 #define LT_OBJDIR "$lt_cv_objdir/"
14826 # AIX sometimes has problems with the GCC collect2 program. For some
14827 # reason, if we set the COLLECT_NAMES environment variable, the problems
14828 # vanish in a puff of smoke.
14829 if test "X
${COLLECT_NAMES+set}" != Xset; then
14831 export COLLECT_NAMES
14836 # Global variables:
14838 can_build_shared=yes
14840 # All known linkers require a `.a' archive for static linking (except MSVC,
14841 # which needs '.lib').
14844 with_gnu_ld="$lt_cv_prog_gnu_ld"
14847 old_CFLAGS="$CFLAGS"
14849 # Set sane defaults for various variables
14850 test -z "$CC" && CC=cc
14851 test -z "$LTCC" && LTCC=$CC
14852 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14853 test -z "$LD" && LD=ld
14854 test -z "$ac_objext" && ac_objext=o
14856 for cc_temp in $compiler""; do
14858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14864 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14867 # Only perform the check for file, if the check method requires it
14868 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14869 case $deplibs_check_method in
14871 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14873 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14874 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14875 $as_echo_n "(cached
) " >&6
14879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14882 lt_save_MAGIC_CMD="$MAGIC_CMD"
14883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14884 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14885 for ac_dir in $ac_dummy; do
14887 test -z "$ac_dir" && ac_dir=.
14888 if test -f $ac_dir/${ac_tool_prefix}file; then
14889 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14890 if test -n "$file_magic_test_file"; then
14891 case $deplibs_check_method in
14893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14896 $EGREP "$file_magic_regex" > /dev/null; then
14901 *** Warning: the command libtool uses to detect shared libraries,
14902 *** $file_magic_cmd, produces output that libtool cannot recognize.
14903 *** The result is that libtool may fail to recognize shared libraries
14904 *** as such. This will affect the creation of libtool libraries that
14905 *** depend on shared libraries, but programs linked with such libtool
14906 *** libraries will work regardless of this problem. Nevertheless, you
14907 *** may want to report the problem to your system manager and/or to
14908 *** bug-libtool@gnu.org
14918 MAGIC_CMD="$lt_save_MAGIC_CMD"
14923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14924 if test -n "$MAGIC_CMD"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14926 $as_echo "$MAGIC_CMD" >&6; }
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14929 $as_echo "no
" >&6; }
14936 if test -z "$lt_cv_path_MAGIC_CMD"; then
14937 if test -n "$ac_tool_prefix"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14939 $as_echo_n "checking
for file...
" >&6; }
14940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14941 $as_echo_n "(cached
) " >&6
14945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14948 lt_save_MAGIC_CMD="$MAGIC_CMD"
14949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14950 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14951 for ac_dir in $ac_dummy; do
14953 test -z "$ac_dir" && ac_dir=.
14954 if test -f $ac_dir/file; then
14955 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14956 if test -n "$file_magic_test_file"; then
14957 case $deplibs_check_method in
14959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14962 $EGREP "$file_magic_regex" > /dev/null; then
14967 *** Warning: the command libtool uses to detect shared libraries,
14968 *** $file_magic_cmd, produces output that libtool cannot recognize.
14969 *** The result is that libtool may fail to recognize shared libraries
14970 *** as such. This will affect the creation of libtool libraries that
14971 *** depend on shared libraries, but programs linked with such libtool
14972 *** libraries will work regardless of this problem. Nevertheless, you
14973 *** may want to report the problem to your system manager and/or to
14974 *** bug-libtool@gnu.org
14984 MAGIC_CMD="$lt_save_MAGIC_CMD"
14989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14990 if test -n "$MAGIC_CMD"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14992 $as_echo "$MAGIC_CMD" >&6; }
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14995 $as_echo "no
" >&6; }
15008 # Use C for the default configuration in the libtool script
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15018 # Source file extension for C test sources.
15021 # Object file extension for compiled C test sources.
15025 # Code to be used in simple compile tests
15026 lt_simple_compile_test_code="int some_variable
= 0;"
15028 # Code to be used in simple link tests
15029 lt_simple_link_test_code='int main(){return(0);}'
15037 # If no C compiler was specified, use CC.
15040 # If no C compiler flags were specified, use CFLAGS.
15041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15043 # Allow CC to be a program name with arguments.
15046 # Save the default compiler, since it gets overwritten when the other
15047 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15048 compiler_DEFAULT=$CC
15050 # save warnings/boilerplate of simple test code
15051 ac_outfile=conftest.$ac_objext
15052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15054 _lt_compiler_boilerplate=`cat conftest.err`
15057 ac_outfile=conftest.$ac_objext
15058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15060 _lt_linker_boilerplate=`cat conftest.err`
15065 ## There is no encapsulation within the following macros, do not change
15066 ## the running order or otherwise move them around unless you know exactly
15067 ## what you are doing...
15068 if test -n "$compiler"; then
15070 lt_prog_compiler_no_builtin_flag=
15072 if test "$GCC" = yes; then
15073 case $cc_basename in
15075 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15077 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15081 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15082 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15083 $as_echo_n "(cached
) " >&6
15085 lt_cv_prog_compiler_rtti_exceptions=no
15086 ac_outfile=conftest.$ac_objext
15087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15088 lt_compiler_flag="-fno-rtti -fno-exceptions"
15089 # Insert the option either (1) after the last *FLAGS variable, or
15090 # (2) before a word containing "conftest.
", or (3) at the end.
15091 # Note that $ac_compile itself does not contain backslashes and begins
15092 # with a dollar sign (not a hyphen), so the echo should work correctly.
15093 # The option is referenced via a variable to avoid confusing sed.
15094 lt_compile=`echo "$ac_compile" | $SED \
15095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097 -e 's:$: $lt_compiler_flag:'`
15098 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15099 (eval "$lt_compile" 2>conftest.err)
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15103 if (exit $ac_status) && test -s "$ac_outfile"; then
15104 # The compiler can only warn and ignore the option if not recognized
15105 # So say no if there are warnings other than the usual output.
15106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15109 lt_cv_prog_compiler_rtti_exceptions=yes
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15116 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15118 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15119 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15131 lt_prog_compiler_wl=
15132 lt_prog_compiler_pic=
15133 lt_prog_compiler_static=
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15136 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15138 if test "$GCC" = yes; then
15139 lt_prog_compiler_wl='-Wl,'
15140 lt_prog_compiler_static='-static'
15144 # All AIX code is PIC.
15145 if test "$host_cpu" = ia64; then
15146 # AIX 5 now supports IA64 processor
15147 lt_prog_compiler_static='-Bstatic'
15149 lt_prog_compiler_pic='-fPIC'
15155 # see comment about AmigaOS4 .so support
15156 lt_prog_compiler_pic='-fPIC'
15159 # FIXME: we need at least 68020 code to build shared libraries, but
15160 # adding the `-m68020' flag to GCC prevents building anything better,
15162 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15167 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15168 # PIC is the default for these OSes.
15171 mingw* | cygwin* | pw32* | os2* | cegcc*)
15172 # This hack is so that the source file can tell whether it is being
15173 # built for inclusion in a dll (and should export symbols for example).
15174 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15175 # (--disable-auto-import) libraries
15176 lt_prog_compiler_pic='-DDLL_EXPORT'
15179 darwin* | rhapsody*)
15180 # PIC is the default on this platform
15181 # Common symbols not allowed in MH_DYLIB files
15182 lt_prog_compiler_pic='-fno-common'
15186 # PIC is the default for Haiku.
15187 # The "-static" flag exists, but is broken.
15188 lt_prog_compiler_static=
15192 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15193 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15194 # sets the default TLS model and affects inlining.
15200 lt_prog_compiler_pic='-fPIC'
15206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15207 # Instead, we relocate shared libraries at runtime.
15211 # Just because we use GCC doesn't mean we suddenly get shared libraries
15212 # on systems that don't support them.
15213 lt_prog_compiler_can_build_shared=no
15218 # QNX uses GNU C++, but need to define -shared option too, otherwise
15219 # it will coredump.
15220 lt_prog_compiler_pic='-fPIC -shared'
15224 if test -d /usr/nec; then
15225 lt_prog_compiler_pic=-Kconform_pic
15230 lt_prog_compiler_pic='-fPIC'
15234 case $cc_basename in
15235 nvcc*) # Cuda Compiler Driver 2.2
15236 lt_prog_compiler_wl='-Xlinker '
15237 lt_prog_compiler_pic='-Xcompiler -fPIC'
15241 # PORTME Check for flag to pass linker flags through the system compiler.
15244 lt_prog_compiler_wl='-Wl,'
15245 if test "$host_cpu" = ia64; then
15246 # AIX 5 now supports IA64 processor
15247 lt_prog_compiler_static='-Bstatic'
15249 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15253 mingw* | cygwin* | pw32* | os2* | cegcc*)
15254 # This hack is so that the source file can tell whether it is being
15255 # built for inclusion in a dll (and should export symbols for example).
15256 lt_prog_compiler_pic='-DDLL_EXPORT'
15259 hpux9* | hpux10* | hpux11*)
15260 lt_prog_compiler_wl='-Wl,'
15261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15262 # not for PA HP-UX.
15268 lt_prog_compiler_pic='+Z'
15271 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15272 lt_prog_compiler_static='${wl}-a ${wl}archive'
15275 irix5* | irix6* | nonstopux*)
15276 lt_prog_compiler_wl='-Wl,'
15277 # PIC (with -KPIC) is the default.
15278 lt_prog_compiler_static='-non_shared'
15281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15282 case $cc_basename in
15283 # old Intel for x86_64 which still supported -KPIC.
15285 lt_prog_compiler_wl='-Wl,'
15286 lt_prog_compiler_pic='-KPIC'
15287 lt_prog_compiler_static='-static'
15289 # icc used to be incompatible with GCC.
15290 # ICC 10 doesn't accept -KPIC any more.
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='-fPIC'
15294 lt_prog_compiler_static='-static'
15296 # Lahey Fortran 8.1.
15298 lt_prog_compiler_wl='-Wl,'
15299 lt_prog_compiler_pic='--shared'
15300 lt_prog_compiler_static='--static'
15302 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15303 # Portland Group compilers (*not* the Pentium gcc compiler,
15304 # which looks to be a dead project)
15305 lt_prog_compiler_wl='-Wl,'
15306 lt_prog_compiler_pic='-fpic'
15307 lt_prog_compiler_static='-Bstatic'
15310 lt_prog_compiler_wl='-Wl,'
15311 # All Alpha code is PIC.
15312 lt_prog_compiler_static='-non_shared'
15314 xl* | bgxl* | bgf* | mpixl*)
15315 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15316 lt_prog_compiler_wl='-Wl,'
15317 lt_prog_compiler_pic='-qpic'
15318 lt_prog_compiler_static='-qstaticlink'
15321 case `$CC -V 2>&1 | sed 5q` in
15322 *Sun\ F* | *Sun*Fortran*)
15323 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15324 lt_prog_compiler_pic='-KPIC'
15325 lt_prog_compiler_static='-Bstatic'
15326 lt_prog_compiler_wl=''
15330 lt_prog_compiler_pic='-KPIC'
15331 lt_prog_compiler_static='-Bstatic'
15332 lt_prog_compiler_wl='-Wl,'
15340 lt_prog_compiler_pic='-KPIC'
15341 lt_prog_compiler_static='-Bstatic'
15345 # QNX uses GNU C++, but need to define -shared option too, otherwise
15346 # it will coredump.
15347 lt_prog_compiler_pic='-fPIC -shared'
15350 osf3* | osf4* | osf5*)
15351 lt_prog_compiler_wl='-Wl,'
15352 # All OSF/1 code is PIC.
15353 lt_prog_compiler_static='-non_shared'
15357 lt_prog_compiler_static='-non_shared'
15361 lt_prog_compiler_pic='-KPIC'
15362 lt_prog_compiler_static='-Bstatic'
15363 case $cc_basename in
15364 f77* | f90* | f95*)
15365 lt_prog_compiler_wl='-Qoption ld ';;
15367 lt_prog_compiler_wl='-Wl,';;
15372 lt_prog_compiler_wl='-Qoption ld '
15373 lt_prog_compiler_pic='-PIC'
15374 lt_prog_compiler_static='-Bstatic'
15377 sysv4 | sysv4.2uw2* | sysv4.3*)
15378 lt_prog_compiler_wl='-Wl,'
15379 lt_prog_compiler_pic='-KPIC'
15380 lt_prog_compiler_static='-Bstatic'
15384 if test -d /usr/nec ;then
15385 lt_prog_compiler_pic='-Kconform_pic'
15386 lt_prog_compiler_static='-Bstatic'
15390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15391 lt_prog_compiler_wl='-Wl,'
15392 lt_prog_compiler_pic='-KPIC'
15393 lt_prog_compiler_static='-Bstatic'
15397 lt_prog_compiler_wl='-Wl,'
15398 lt_prog_compiler_can_build_shared=no
15402 lt_prog_compiler_pic='-pic'
15403 lt_prog_compiler_static='-Bstatic'
15407 lt_prog_compiler_can_build_shared=no
15413 # For platforms which do not support PIC, -DPIC is meaningless:
15415 lt_prog_compiler_pic=
15418 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15422 $as_echo "$lt_prog_compiler_pic" >&6; }
15430 # Check to make sure the PIC flag actually works.
15432 if test -n "$lt_prog_compiler_pic"; then
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15434 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15435 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15436 $as_echo_n "(cached
) " >&6
15438 lt_cv_prog_compiler_pic_works=no
15439 ac_outfile=conftest.$ac_objext
15440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15441 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15442 # Insert the option either (1) after the last *FLAGS variable, or
15443 # (2) before a word containing "conftest.
", or (3) at the end.
15444 # Note that $ac_compile itself does not contain backslashes and begins
15445 # with a dollar sign (not a hyphen), so the echo should work correctly.
15446 # The option is referenced via a variable to avoid confusing sed.
15447 lt_compile=`echo "$ac_compile" | $SED \
15448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15450 -e 's:$: $lt_compiler_flag:'`
15451 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15452 (eval "$lt_compile" 2>conftest.err)
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15456 if (exit $ac_status) && test -s "$ac_outfile"; then
15457 # The compiler can only warn and ignore the option if not recognized
15458 # So say no if there are warnings other than the usual output.
15459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15462 lt_cv_prog_compiler_pic_works=yes
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15469 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15471 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15472 case $lt_prog_compiler_pic in
15474 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15477 lt_prog_compiler_pic=
15478 lt_prog_compiler_can_build_shared=no
15489 # Check to make sure the static flag actually works.
15491 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15493 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15494 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15495 $as_echo_n "(cached
) " >&6
15497 lt_cv_prog_compiler_static_works=no
15498 save_LDFLAGS="$LDFLAGS"
15499 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15500 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15502 # The linker can only warn and ignore the option if not recognized
15503 # So say no if there are warnings
15504 if test -s conftest.err; then
15505 # Append any errors to the config.log.
15506 cat conftest.err 1>&5
15507 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15509 if diff conftest.exp conftest.er2 >/dev/null; then
15510 lt_cv_prog_compiler_static_works=yes
15513 lt_cv_prog_compiler_static_works=yes
15517 LDFLAGS="$save_LDFLAGS"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15521 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15523 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15526 lt_prog_compiler_static=
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15536 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15537 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15538 $as_echo_n "(cached
) " >&6
15540 lt_cv_prog_compiler_c_o=no
15541 $RM -r conftest 2>/dev/null
15545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15547 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15548 # Insert the option either (1) after the last *FLAGS variable, or
15549 # (2) before a word containing "conftest.
", or (3) at the end.
15550 # Note that $ac_compile itself does not contain backslashes and begins
15551 # with a dollar sign (not a hyphen), so the echo should work correctly.
15552 lt_compile=`echo "$ac_compile" | $SED \
15553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15555 -e 's:$: $lt_compiler_flag:'`
15556 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15557 (eval "$lt_compile" 2>out/conftest.err)
15559 cat out/conftest.err >&5
15560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15563 # The compiler can only warn and ignore the option if not recognized
15564 # So say no if there are warnings
15565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15568 lt_cv_prog_compiler_c_o=yes
15573 # SGI C++ compiler will create directory out/ii_files/ for
15574 # template instantiation
15575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15576 $RM out/* && rmdir out
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15583 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15591 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15593 $as_echo_n "(cached
) " >&6
15595 lt_cv_prog_compiler_c_o=no
15596 $RM -r conftest 2>/dev/null
15600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15602 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15603 # Insert the option either (1) after the last *FLAGS variable, or
15604 # (2) before a word containing "conftest.
", or (3) at the end.
15605 # Note that $ac_compile itself does not contain backslashes and begins
15606 # with a dollar sign (not a hyphen), so the echo should work correctly.
15607 lt_compile=`echo "$ac_compile" | $SED \
15608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15610 -e 's:$: $lt_compiler_flag:'`
15611 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15612 (eval "$lt_compile" 2>out/conftest.err)
15614 cat out/conftest.err >&5
15615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15618 # The compiler can only warn and ignore the option if not recognized
15619 # So say no if there are warnings
15620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15623 lt_cv_prog_compiler_c_o=yes
15628 # SGI C++ compiler will create directory out/ii_files/ for
15629 # template instantiation
15630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15631 $RM out/* && rmdir out
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15638 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15643 hard_links="nottested
"
15644 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15645 # do not overwrite the value of need_locks provided by the user
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15647 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15652 ln conftest.a conftest.b 2>&5 || hard_links=no
15653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15655 $as_echo "$hard_links" >&6; }
15656 if test "$hard_links" = no; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15658 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15671 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15674 allow_undefined_flag=
15675 always_export_symbols=no
15677 archive_expsym_cmds=
15678 compiler_needs_object=no
15679 enable_shared_with_static_runtimes=no
15680 export_dynamic_flag_spec=
15681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15682 hardcode_automatic=no
15684 hardcode_direct_absolute=no
15685 hardcode_libdir_flag_spec=
15686 hardcode_libdir_flag_spec_ld=
15687 hardcode_libdir_separator=
15688 hardcode_minus_L=no
15689 hardcode_shlibpath_var=unsupported
15691 link_all_deplibs=unknown
15693 module_expsym_cmds=
15694 old_archive_from_new_cmds=
15695 old_archive_from_expsyms_cmds=
15696 thread_safe_flag_spec=
15697 whole_archive_flag_spec=
15698 # include_expsyms should be a list of space-separated symbols to be *always*
15699 # included in the symbol list
15701 # exclude_expsyms can be an extended regexp of symbols to exclude
15702 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15703 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15704 # as well as any symbol that contains `d'.
15705 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15707 # platforms (ab)use it in PIC code, but their linkers get confused if
15708 # the symbol is explicitly referenced. Since portable code cannot
15709 # rely on this symbol name, it's probably fine to never include it in
15710 # preloaded symbol tables.
15711 # Exclude shared library initialization/finalization symbols.
15712 extract_expsyms_cmds=
15715 cygwin* | mingw* | pw32* | cegcc*)
15716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15717 # When not using gcc, we currently assume that we are using
15718 # Microsoft Visual C++.
15719 if test "$GCC" != yes; then
15724 # we just hope/assume this is gcc and not c89 (= MSVC++)
15734 # On some targets, GNU ld is compatible enough with the native linker
15735 # that we're better off using the native interface for both.
15736 lt_use_gnu_ld_interface=no
15737 if test "$with_gnu_ld" = yes; then
15740 # The AIX port of GNU ld has always aspired to compatibility
15741 # with the native linker. However, as the warning in the GNU ld
15742 # block says, versions before 2.19.5* couldn't really create working
15743 # shared libraries, regardless of the interface used.
15744 case `$LD -v 2>&1` in
15745 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15746 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15747 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15749 lt_use_gnu_ld_interface=yes
15754 lt_use_gnu_ld_interface=yes
15759 if test "$lt_use_gnu_ld_interface" = yes; then
15760 # If archive_cmds runs LD, not CC, wlarc should be empty
15763 # Set some defaults for GNU ld with shared library support. These
15764 # are reset later if shared libraries are not supported. Putting them
15765 # here allows them to be overridden if necessary.
15766 runpath_var=LD_RUN_PATH
15767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15768 export_dynamic_flag_spec='${wl}--export-dynamic'
15769 # ancient GNU ld didn't support --whole-archive et. al.
15770 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15771 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15773 whole_archive_flag_spec=
15775 supports_anon_versioning=no
15776 case `$LD -v 2>&1` in
15777 *GNU\ gold*) supports_anon_versioning=yes ;;
15778 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15779 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15780 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15781 *\ 2.11.*) ;; # other 2.11 versions
15782 *) supports_anon_versioning=yes ;;
15785 # See if GNU ld supports shared libraries.
15788 # On AIX/PPC, the GNU linker is very broken
15789 if test "$host_cpu" != ia64; then
15793 *** Warning: the GNU linker, at least up to release 2.19, is reported
15794 *** to be unable to reliably create shared libraries on AIX.
15795 *** Therefore, libtool is disabling shared libraries support. If you
15796 *** really care for shared libraries, you may want to install binutils
15797 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15798 *** You will then need to restart the configuration process.
15807 # see comment about AmigaOS4 .so support
15808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds=''
15812 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)'
15813 hardcode_libdir_flag_spec
='-L$libdir'
15814 hardcode_minus_L
=yes
15820 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15821 allow_undefined_flag
=unsupported
15822 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15823 # support --undefined. This deserves some investigation. FIXME
15824 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15830 cygwin
* | mingw
* | pw32
* | cegcc
*)
15831 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15832 # as there is no search path for DLLs.
15833 hardcode_libdir_flag_spec
='-L$libdir'
15834 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15835 allow_undefined_flag
=unsupported
15836 always_export_symbols
=no
15837 enable_shared_with_static_runtimes
=yes
15838 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15840 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15841 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15842 # If the export-symbols file already is a .def file (1st line
15843 # is EXPORTS), use it as is; otherwise, prepend...
15844 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15845 cp $export_symbols $output_objdir/$soname.def;
15847 echo EXPORTS > $output_objdir/$soname.def;
15848 cat $export_symbols >> $output_objdir/$soname.def;
15850 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15857 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15858 link_all_deplibs
=yes
15863 hardcode_shlibpath_var
=no
15864 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15865 export_dynamic_flag_spec
='${wl}-E'
15866 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15867 # Instead, shared libraries are loaded at an image base (0x10000000 by
15868 # default) and relocated if they conflict, which is a slow very memory
15869 # consuming and fragmenting process. To avoid this, we pick a random,
15870 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15871 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15872 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15873 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'
15876 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15878 if test "$host_os" = linux-dietlibc
; then
15879 case $cc_basename in
15880 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15883 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15884 && test "$tmp_diet" = no
15887 tmp_sharedflag
='-shared'
15888 case $cc_basename,$host_cpu in
15889 pgcc
*) # Portland Group C compiler
15890 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'
15891 tmp_addflag
=' $pic_flag'
15893 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15894 # Portland Group f77 and f90 compilers
15895 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'
15896 tmp_addflag
=' $pic_flag -Mnomain' ;;
15897 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15898 tmp_addflag
=' -i_dynamic' ;;
15899 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15900 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15901 ifc
* | ifort
*) # Intel Fortran compiler
15902 tmp_addflag
=' -nofor_main' ;;
15903 lf95
*) # Lahey Fortran 8.1
15904 whole_archive_flag_spec
=
15905 tmp_sharedflag
='--shared' ;;
15906 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15907 tmp_sharedflag
='-qmkshrobj'
15909 nvcc
*) # Cuda Compiler Driver 2.2
15910 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'
15911 compiler_needs_object
=yes
15914 case `$CC -V 2>&1 | sed 5q` in
15915 *Sun\ C
*) # Sun C 5.9
15916 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'
15917 compiler_needs_object
=yes
15918 tmp_sharedflag
='-G' ;;
15919 *Sun\ F
*) # Sun Fortran 8.3
15920 tmp_sharedflag
='-G' ;;
15922 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 if test "x$supports_anon_versioning" = xyes
; then
15925 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15927 echo "local: *; };" >> $output_objdir/$libname.ver~
15928 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15931 case $cc_basename in
15932 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15933 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15934 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15935 hardcode_libdir_flag_spec
=
15936 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15937 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15938 if test "x$supports_anon_versioning" = xyes
; then
15939 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15941 echo "local: *; };" >> $output_objdir/$libname.ver~
15942 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15952 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15953 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15956 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15962 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15966 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15967 *** create shared libraries on Solaris systems. Therefore, libtool
15968 *** is disabling shared libraries support. We urge you to upgrade GNU
15969 *** binutils to release 2.9.1 or newer. Another option is to modify
15970 *** your PATH or compiler configuration so that the native linker is
15971 *** used, and then restart.
15974 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15975 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15982 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15983 case `$LD -v 2>&1` in
15984 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15988 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15989 *** reliably create shared libraries on SCO systems. Therefore, libtool
15990 *** is disabling shared libraries support. We urge you to upgrade GNU
15991 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15992 *** your PATH or compiler configuration so that the native linker is
15993 *** used, and then restart.
15998 # For security reasons, it is highly recommended that you always
15999 # use absolute paths for naming shared libraries, and exclude the
16000 # DT_RUNPATH tag from executables and libraries. But doing so
16001 # requires that you compile everything twice, which is a pain.
16002 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16003 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16004 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16005 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16014 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16016 hardcode_direct
=yes
16017 hardcode_shlibpath_var
=no
16021 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16022 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16023 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16030 if test "$ld_shlibs" = no
; then
16032 hardcode_libdir_flag_spec
=
16033 export_dynamic_flag_spec
=
16034 whole_archive_flag_spec
=
16037 # PORTME fill in a description of your system's linker (not GNU ld)
16040 allow_undefined_flag
=unsupported
16041 always_export_symbols
=yes
16042 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'
16043 # Note: this linker hardcodes the directories in LIBPATH if there
16044 # are no directories specified by -L.
16045 hardcode_minus_L
=yes
16046 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16047 # Neither direct hardcoding nor static linking is supported with a
16049 hardcode_direct
=unsupported
16054 if test "$host_cpu" = ia64
; then
16055 # On IA64, the linker does run time linking by default, so we don't
16056 # have to do anything special.
16057 aix_use_runtimelinking
=no
16058 exp_sym_flag
='-Bexport'
16061 # If we're using GNU nm, then we don't want the "-C" option.
16062 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16063 # Also, AIX nm treats weak defined symbols like other global
16064 # defined symbols, whereas GNU nm marks them as "W".
16065 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16066 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'
16068 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'
16070 aix_use_runtimelinking
=no
16072 # Test if we are trying to use run time linking or normal
16073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16074 # need to do runtime linking.
16075 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16076 for ld_flag
in $LDFLAGS; do
16077 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16078 aix_use_runtimelinking
=yes
16085 exp_sym_flag
='-bexport'
16086 no_entry_flag
='-bnoentry'
16089 # When large executables or shared objects are built, AIX ld can
16090 # have problems creating the table of contents. If linking a library
16091 # or program results in "error TOC overflow" add -mminimal-toc to
16092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16096 hardcode_direct
=yes
16097 hardcode_direct_absolute
=yes
16098 hardcode_libdir_separator
=':'
16099 link_all_deplibs
=yes
16100 file_list_spec
='${wl}-f,'
16102 if test "$GCC" = yes; then
16103 case $host_os in aix4.
[012]|aix4.
[012].
*)
16104 # We only want to do this on AIX 4.2 and lower, the check
16105 # below for broken collect2 doesn't work under 4.3+
16106 collect2name
=`${CC} -print-prog-name=collect2`
16107 if test -f "$collect2name" &&
16108 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16110 # We have reworked collect2
16113 # We have old collect2
16114 hardcode_direct
=unsupported
16115 # It fails to find uninstalled libraries when the uninstalled
16116 # path is not listed in the libpath. Setting hardcode_minus_L
16117 # to unsupported forces relinking
16118 hardcode_minus_L
=yes
16119 hardcode_libdir_flag_spec
='-L$libdir'
16120 hardcode_libdir_separator
=
16124 shared_flag
='-shared'
16125 if test "$aix_use_runtimelinking" = yes; then
16126 shared_flag
="$shared_flag "'${wl}-G'
16130 if test "$host_cpu" = ia64
; then
16131 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16132 # chokes on -Wl,-G. The following line is correct:
16135 if test "$aix_use_runtimelinking" = yes; then
16136 shared_flag
='${wl}-G'
16138 shared_flag
='${wl}-bM:SRE'
16143 export_dynamic_flag_spec
='${wl}-bexpall'
16144 # It seems that -bexpall does not export symbols beginning with
16145 # underscore (_), so it is better to generate a list of symbols to export.
16146 always_export_symbols
=yes
16147 if test "$aix_use_runtimelinking" = yes; then
16148 # Warning - without using the other runtime loading flags (-brtl),
16149 # -berok will link without error, but may produce a broken library.
16150 allow_undefined_flag
='-berok'
16151 # Determine the default libpath from the value encoded in an
16152 # empty executable.
16153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16164 if ac_fn_c_try_link
"$LINENO"; then :
16166 lt_aix_libpath_sed
='
16167 /Import File Strings/,/^$/ {
16173 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16174 # Check for a 64-bit object if we didn't find anything.
16175 if test -z "$aix_libpath"; then
16176 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16179 rm -f core conftest.err conftest.
$ac_objext \
16180 conftest
$ac_exeext conftest.
$ac_ext
16181 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16183 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16184 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"
16186 if test "$host_cpu" = ia64
; then
16187 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16188 allow_undefined_flag
="-z nodefs"
16189 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"
16191 # Determine the default libpath from the value encoded in an
16192 # empty executable.
16193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16204 if ac_fn_c_try_link
"$LINENO"; then :
16206 lt_aix_libpath_sed
='
16207 /Import File Strings/,/^$/ {
16213 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16214 # Check for a 64-bit object if we didn't find anything.
16215 if test -z "$aix_libpath"; then
16216 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16219 rm -f core conftest.err conftest.
$ac_objext \
16220 conftest
$ac_exeext conftest.
$ac_ext
16221 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16223 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16224 # Warning - without using the other run time loading flags,
16225 # -berok will link without error, but may produce a broken library.
16226 no_undefined_flag
=' ${wl}-bernotok'
16227 allow_undefined_flag
=' ${wl}-berok'
16228 if test "$with_gnu_ld" = yes; then
16229 # We only use this code for GNU lds that support --whole-archive.
16230 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16232 # Exported symbols can be pulled into shared objects from archives
16233 whole_archive_flag_spec
='$convenience'
16235 archive_cmds_need_lc
=yes
16236 # This is similar to how AIX traditionally builds its shared libraries.
16237 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'
16245 # see comment about AmigaOS4 .so support
16246 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247 archive_expsym_cmds
=''
16250 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)'
16251 hardcode_libdir_flag_spec
='-L$libdir'
16252 hardcode_minus_L
=yes
16258 export_dynamic_flag_spec
=-rdynamic
16261 cygwin
* | mingw
* | pw32
* | cegcc
*)
16262 # When not using gcc, we currently assume that we are using
16263 # Microsoft Visual C++.
16264 # hardcode_libdir_flag_spec is actually meaningless, as there is
16265 # no search path for DLLs.
16266 hardcode_libdir_flag_spec
=' '
16267 allow_undefined_flag
=unsupported
16268 # Tell ltmain to make .lib files, not .a files.
16270 # Tell ltmain to make .dll files, not .so files.
16272 # FIXME: Setting linknames here is a bad hack.
16273 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16274 # The linker will automatically build a .lib file if we build a DLL.
16275 old_archive_from_new_cmds
='true'
16276 # FIXME: Should let the user specify the lib program.
16277 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16278 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16279 enable_shared_with_static_runtimes
=yes
16282 darwin
* | rhapsody
*)
16285 archive_cmds_need_lc
=no
16287 hardcode_automatic
=yes
16288 hardcode_shlibpath_var
=unsupported
16289 if test "$lt_cv_ld_force_load" = "yes"; then
16290 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\"`'
16292 whole_archive_flag_spec
=''
16294 link_all_deplibs
=yes
16295 allow_undefined_flag
="$_lt_dar_allow_undefined"
16296 case $cc_basename in
16297 ifort
*) _lt_dar_can_shared
=yes ;;
16298 *) _lt_dar_can_shared
=$GCC ;;
16300 if test "$_lt_dar_can_shared" = "yes"; then
16301 output_verbose_link_cmd
=func_echo_all
16302 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16303 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16304 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}"
16305 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}"
16314 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_libdir_flag_spec
='-L$libdir'
16316 hardcode_shlibpath_var
=no
16319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16320 # support. Future versions do this automatically, but an explicit c++rt0.o
16321 # does not break anything, and helps significantly (at the cost of a little
16324 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16325 hardcode_libdir_flag_spec
='-R$libdir'
16326 hardcode_direct
=yes
16327 hardcode_shlibpath_var
=no
16330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16332 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16333 hardcode_direct
=yes
16334 hardcode_minus_L
=yes
16335 hardcode_shlibpath_var
=no
16338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16339 freebsd
* | dragonfly
*)
16340 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16341 hardcode_libdir_flag_spec
='-R$libdir'
16342 hardcode_direct
=yes
16343 hardcode_shlibpath_var
=no
16347 if test "$GCC" = yes; then
16348 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'
16350 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'
16352 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16353 hardcode_libdir_separator
=:
16354 hardcode_direct
=yes
16356 # hardcode_minus_L: Not really in the search PATH,
16357 # but as the default location of the library.
16358 hardcode_minus_L
=yes
16359 export_dynamic_flag_spec
='${wl}-E'
16363 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16364 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16366 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16368 if test "$with_gnu_ld" = no
; then
16369 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16370 hardcode_libdir_flag_spec_ld
='+b $libdir'
16371 hardcode_libdir_separator
=:
16372 hardcode_direct
=yes
16373 hardcode_direct_absolute
=yes
16374 export_dynamic_flag_spec
='${wl}-E'
16375 # hardcode_minus_L: Not really in the search PATH,
16376 # but as the default location of the library.
16377 hardcode_minus_L
=yes
16382 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16385 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16388 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16391 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16397 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16400 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16404 # Older versions of the 11.00 compiler do not understand -b yet
16405 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16407 $as_echo_n "checking if $CC understands -b... " >&6; }
16408 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16409 $as_echo_n "(cached) " >&6
16411 lt_cv_prog_compiler__b
=no
16412 save_LDFLAGS
="$LDFLAGS"
16413 LDFLAGS
="$LDFLAGS -b"
16414 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16415 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16416 # The linker can only warn and ignore the option if not recognized
16417 # So say no if there are warnings
16418 if test -s conftest.err
; then
16419 # Append any errors to the config.log.
16420 cat conftest.err
1>&5
16421 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16422 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16423 if diff conftest.exp conftest.er2
>/dev
/null
; then
16424 lt_cv_prog_compiler__b
=yes
16427 lt_cv_prog_compiler__b
=yes
16431 LDFLAGS
="$save_LDFLAGS"
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16435 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16437 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16438 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16440 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16446 if test "$with_gnu_ld" = no
; then
16447 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16448 hardcode_libdir_separator
=:
16453 hardcode_shlibpath_var
=no
16456 hardcode_direct
=yes
16457 hardcode_direct_absolute
=yes
16458 export_dynamic_flag_spec
='${wl}-E'
16460 # hardcode_minus_L: Not really in the search PATH,
16461 # but as the default location of the library.
16462 hardcode_minus_L
=yes
16468 irix5
* | irix6
* | nonstopux
*)
16469 if test "$GCC" = yes; then
16470 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'
16471 # Try to use the -exported_symbol ld option, if it does not
16472 # work, assume that -exports_file does not work either and
16473 # implicitly export all symbols.
16474 save_LDFLAGS
="$LDFLAGS"
16475 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16480 if ac_fn_c_try_link
"$LINENO"; then :
16481 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'
16484 rm -f core conftest.err conftest.
$ac_objext \
16485 conftest
$ac_exeext conftest.
$ac_ext
16486 LDFLAGS
="$save_LDFLAGS"
16488 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'
16489 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'
16491 archive_cmds_need_lc
='no'
16492 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16493 hardcode_libdir_separator
=:
16495 link_all_deplibs
=yes
16499 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16500 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16502 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16504 hardcode_libdir_flag_spec
='-R$libdir'
16505 hardcode_direct
=yes
16506 hardcode_shlibpath_var
=no
16510 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16511 hardcode_direct
=yes
16512 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16513 hardcode_libdir_separator
=:
16514 hardcode_shlibpath_var
=no
16521 if test -f /usr
/libexec
/ld.so
; then
16522 hardcode_direct
=yes
16523 hardcode_shlibpath_var
=no
16524 hardcode_direct_absolute
=yes
16525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16526 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16527 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16528 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16529 export_dynamic_flag_spec
='${wl}-E'
16532 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16533 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16534 hardcode_libdir_flag_spec
='-R$libdir'
16537 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16538 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16548 hardcode_libdir_flag_spec
='-L$libdir'
16549 hardcode_minus_L
=yes
16550 allow_undefined_flag
=unsupported
16551 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'
16552 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16556 if test "$GCC" = yes; then
16557 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16558 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'
16560 allow_undefined_flag
=' -expect_unresolved \*'
16561 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'
16563 archive_cmds_need_lc
='no'
16564 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16565 hardcode_libdir_separator
=:
16568 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16569 if test "$GCC" = yes; then
16570 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16571 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'
16572 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16574 allow_undefined_flag
=' -expect_unresolved \*'
16575 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'
16576 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~
16577 $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'
16579 # Both c and cxx compiler support -rpath directly
16580 hardcode_libdir_flag_spec
='-rpath $libdir'
16582 archive_cmds_need_lc
='no'
16583 hardcode_libdir_separator
=:
16587 no_undefined_flag
=' -z defs'
16588 if test "$GCC" = yes; then
16590 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16592 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16594 case `$CC -V 2>&1` in
16597 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16603 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16604 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16605 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16609 hardcode_libdir_flag_spec
='-R$libdir'
16610 hardcode_shlibpath_var
=no
16612 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16614 # The compiler driver will combine and reorder linker options,
16615 # but understands `-z linker_flag'. GCC discards it without `$wl',
16616 # but is careful enough not to reorder.
16617 # Supported since Solaris 2.6 (maybe 2.5.1?)
16618 if test "$GCC" = yes; then
16619 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16621 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16625 link_all_deplibs
=yes
16629 if test "x$host_vendor" = xsequent
; then
16630 # Use $CC to link under sequent, because it throws in some extra .o
16631 # files that make .init and .fini sections work.
16632 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16634 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_libdir_flag_spec
='-L$libdir'
16637 hardcode_direct
=yes
16638 hardcode_minus_L
=yes
16639 hardcode_shlibpath_var
=no
16643 case $host_vendor in
16645 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_direct
=yes # is this really true???
16649 ## LD is ld it makes a PLAMLIB
16650 ## CC just makes a GrossModule.
16651 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16652 reload_cmds
='$CC -r -o $output$reload_objs'
16656 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16660 runpath_var
='LD_RUN_PATH'
16661 hardcode_shlibpath_var
=no
16665 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16666 hardcode_shlibpath_var
=no
16667 export_dynamic_flag_spec
='-Bexport'
16671 if test -d /usr
/nec
; then
16672 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673 hardcode_shlibpath_var
=no
16674 runpath_var
=LD_RUN_PATH
16675 hardcode_runpath_var
=yes
16680 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16681 no_undefined_flag
='${wl}-z,text'
16682 archive_cmds_need_lc
=no
16683 hardcode_shlibpath_var
=no
16684 runpath_var
='LD_RUN_PATH'
16686 if test "$GCC" = yes; then
16687 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16691 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 sysv5
* | sco3.2v5
* | sco5v6
*)
16696 # Note: We can NOT use -z defs as we might desire, because we do not
16697 # link with -lc, and that would cause any symbols used from libc to
16698 # always be unresolved, which means just about no library would
16699 # ever link correctly. If we're not using GNU ld we use -z text
16700 # though, which does catch some bad symbols but isn't as heavy-handed
16702 no_undefined_flag
='${wl}-z,text'
16703 allow_undefined_flag
='${wl}-z,nodefs'
16704 archive_cmds_need_lc
=no
16705 hardcode_shlibpath_var
=no
16706 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16707 hardcode_libdir_separator
=':'
16708 link_all_deplibs
=yes
16709 export_dynamic_flag_spec
='${wl}-Bexport'
16710 runpath_var
='LD_RUN_PATH'
16712 if test "$GCC" = yes; then
16713 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16716 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16717 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16722 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723 hardcode_libdir_flag_spec
='-L$libdir'
16724 hardcode_shlibpath_var
=no
16732 if test x
$host_vendor = xsni
; then
16734 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16735 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16742 $as_echo "$ld_shlibs" >&6; }
16743 test "$ld_shlibs" = no
&& can_build_shared
=no
16745 with_gnu_ld
=$with_gnu_ld
16762 # Do we need to explicitly link libc?
16764 case "x$archive_cmds_need_lc" in
16766 # Assume -lc should be added
16767 archive_cmds_need_lc
=yes
16769 if test "$enable_shared" = yes && test "$GCC" = yes; then
16770 case $archive_cmds in
16772 # FIXME: we may have to deal with multi-command sequences.
16775 # Test whether the compiler implicitly links with -lc since on some
16776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16777 # to ld, don't add -lc before -lgcc.
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16780 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16781 $as_echo_n "(cached) " >&6
16784 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16787 (eval $ac_compile) 2>&5
16789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16790 test $ac_status = 0; } 2>conftest.err
; then
16793 libobjs
=conftest.
$ac_objext
16795 wl
=$lt_prog_compiler_wl
16796 pic_flag
=$lt_prog_compiler_pic
16802 lt_save_allow_undefined_flag
=$allow_undefined_flag
16803 allow_undefined_flag
=
16804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16805 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16808 test $ac_status = 0; }
16810 lt_cv_archive_cmds_need_lc
=no
16812 lt_cv_archive_cmds_need_lc
=yes
16814 allow_undefined_flag
=$lt_save_allow_undefined_flag
16816 cat conftest.err
1>&5
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16822 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16823 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16987 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16989 if test "$GCC" = yes; then
16991 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16992 *) lt_awk_arg
="/^libraries:/" ;;
16995 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16996 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16998 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16999 case $lt_search_path_spec in
17001 # if the path contains ";" then we assume it to be the separator
17002 # otherwise default to the standard path separator (i.e. ":") - it is
17003 # assumed that no part of a normal pathname contains ";" but that should
17004 # okay in the real world where ";" in dirpaths is itself problematic.
17005 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17008 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17011 # Ok, now we have the path, separated by spaces, we can step through it
17012 # and add multilib dir if necessary.
17013 lt_tmp_lt_search_path_spec
=
17014 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17015 for lt_sys_path
in $lt_search_path_spec; do
17016 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17017 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17019 test -d "$lt_sys_path" && \
17020 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17023 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17024 BEGIN {RS=" "; FS="/|\n";} {
17027 for (lt_i = NF; lt_i > 0; lt_i--) {
17028 if ($lt_i != "" && $lt_i != ".") {
17029 if ($lt_i == "..") {
17032 if (lt_count == 0) {
17033 lt_foo="/" $lt_i lt_foo;
17040 if (lt_foo != "") { lt_freq[lt_foo]++; }
17041 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17043 # AWK program above erroneously prepends '/' to C:/dos/paths
17046 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17047 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17049 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17051 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17053 library_names_spec
=
17054 libname_spec
='lib$name'
17058 postuninstall_cmds
=
17062 shlibpath_overrides_runpath
=unknown
17064 dynamic_linker
="$host_os ld.so"
17065 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17066 need_lib_prefix
=unknown
17067 hardcode_into_libs
=no
17069 # when you set need_version to no, make sure it does not cause -set_version
17070 # flags to be left without arguments
17071 need_version
=unknown
17076 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17077 shlibpath_var
=LIBPATH
17079 # AIX 3 has no versioning support, so we append a major version to the name.
17080 soname_spec
='${libname}${release}${shared_ext}$major'
17087 hardcode_into_libs
=yes
17088 if test "$host_cpu" = ia64
; then
17089 # AIX 5 supports IA64
17090 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17091 shlibpath_var
=LD_LIBRARY_PATH
17093 # With GCC up to 2.95.x, collect2 would create an import file
17094 # for dependence libraries. The import file would start with
17095 # the line `#! .'. This would cause the generated library to
17096 # depend on `.', always an invalid library. This was fixed in
17097 # development snapshots of GCC prior to 3.0.
17099 aix4 | aix4.
[01] | aix4.
[01].
*)
17100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17102 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17105 can_build_shared
=no
17109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17110 # soname into executable. Probably we can add versioning support to
17111 # collect2, so additional links can be useful in future.
17112 if test "$aix_use_runtimelinking" = yes; then
17113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17114 # instead of lib<name>.a to let people know that these are not
17115 # typical AIX shared libraries.
17116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 # We preserve .a as extension for shared libraries through AIX4.2
17119 # and later when we are not doing run time linking.
17120 library_names_spec
='${libname}${release}.a $libname.a'
17121 soname_spec
='${libname}${release}${shared_ext}$major'
17123 shlibpath_var
=LIBPATH
17130 # Since July 2007 AmigaOS4 officially supports .so libraries.
17131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 library_names_spec
='$libname.ixlibrary $libname.a'
17136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17137 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'
17143 library_names_spec
='${libname}${shared_ext}'
17144 dynamic_linker
="$host_os ld.so"
17145 shlibpath_var
=LIBRARY_PATH
17151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec
='${libname}${release}${shared_ext}$major'
17153 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17154 shlibpath_var
=LD_LIBRARY_PATH
17155 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17156 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17157 # the default ld.so.conf also contains /usr/contrib/lib and
17158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17159 # libtool to hard-code these into programs
17162 cygwin
* | mingw
* | pw32
* | cegcc
*)
17163 version_type
=windows
17168 case $GCC,$host_os in
17169 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17170 library_names_spec
='$libname.dll.a'
17171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17172 postinstall_cmds
='base_file=`basename \${file}`~
17173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17174 dldir=$destdir/`dirname \$dlpath`~
17175 test -d \$dldir || mkdir -p \$dldir~
17176 $install_prog $dir/$dlname \$dldir/$dlname~
17177 chmod a+x \$dldir/$dlname~
17178 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17179 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17181 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17182 dlpath=$dir/\$dldll~
17184 shlibpath_overrides_runpath
=yes
17188 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17189 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17191 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17194 # MinGW DLLs use traditional 'lib' prefix
17195 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17198 # pw32 DLLs use 'pw' prefix rather than 'lib'
17199 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17205 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17208 dynamic_linker
='Win32 ld.exe'
17209 # FIXME: first we should search . and the directory the executable is in
17213 darwin
* | rhapsody
*)
17214 dynamic_linker
="$host_os dyld"
17215 version_type
=darwin
17218 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17219 soname_spec
='${libname}${release}${major}$shared_ext'
17220 shlibpath_overrides_runpath
=yes
17221 shlibpath_var
=DYLD_LIBRARY_PATH
17222 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17224 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17225 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17233 soname_spec
='${libname}${release}${shared_ext}$major'
17234 shlibpath_var
=LD_LIBRARY_PATH
17237 freebsd
* | dragonfly
*)
17238 # DragonFly does not have aout. When/if they implement a new
17239 # versioning mechanism, adjust this.
17240 if test -x /usr
/bin
/objformat
; then
17241 objformat
=`/usr/bin/objformat`
17244 freebsd
[23].
*) objformat
=aout
;;
17245 *) objformat
=elf
;;
17248 version_type
=freebsd-
$objformat
17249 case $version_type in
17251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17256 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17260 shlibpath_var
=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath
=yes
17265 freebsd3.
[01]* | freebsdelf3.
[01]*)
17266 shlibpath_overrides_runpath
=yes
17267 hardcode_into_libs
=yes
17269 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17270 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17271 shlibpath_overrides_runpath
=no
17272 hardcode_into_libs
=yes
17274 *) # from 4.6 on, and DragonFly
17275 shlibpath_overrides_runpath
=yes
17276 hardcode_into_libs
=yes
17285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17286 soname_spec
='${libname}${release}${shared_ext}$major'
17287 shlibpath_var
=LD_LIBRARY_PATH
17288 hardcode_into_libs
=yes
17295 dynamic_linker
="$host_os runtime_loader"
17296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17297 soname_spec
='${libname}${release}${shared_ext}$major'
17298 shlibpath_var
=LIBRARY_PATH
17299 shlibpath_overrides_runpath
=yes
17300 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17301 hardcode_into_libs
=yes
17304 hpux9
* | hpux10
* | hpux11
*)
17305 # Give a soname corresponding to the major version so that dld.sl refuses to
17306 # link against other versions.
17313 hardcode_into_libs
=yes
17314 dynamic_linker
="$host_os dld.so"
17315 shlibpath_var
=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec
='${libname}${release}${shared_ext}$major'
17319 if test "X$HPUX_IA64_MODE" = X32
; then
17320 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17322 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17324 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17328 hardcode_into_libs
=yes
17329 dynamic_linker
="$host_os dld.sl"
17330 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17331 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 soname_spec
='${libname}${release}${shared_ext}$major'
17334 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17335 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17339 dynamic_linker
="$host_os dld.sl"
17340 shlibpath_var
=SHLIB_PATH
17341 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec
='${libname}${release}${shared_ext}$major'
17346 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17347 postinstall_cmds
='chmod 555 $lib'
17348 # or fails outright, so override atomically:
17349 install_override_mode
=555
17356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17357 soname_spec
='${libname}${release}${shared_ext}$major'
17358 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17359 shlibpath_var
=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath
=no
17361 hardcode_into_libs
=yes
17364 irix5
* | irix6
* | nonstopux
*)
17366 nonstopux
*) version_type
=nonstopux
;;
17368 if test "$lt_cv_prog_gnu_ld" = yes; then
17376 soname_spec
='${libname}${release}${shared_ext}$major'
17377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17379 irix5
* | nonstopux
*)
17380 libsuff
= shlibsuff
=
17383 case $LD in # libtool.m4 will add one of these switches to LD
17384 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17385 libsuff
= shlibsuff
= libmagic
=32-bit;;
17386 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17387 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17388 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17389 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17390 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17394 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17395 shlibpath_overrides_runpath
=no
17396 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17397 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17398 hardcode_into_libs
=yes
17401 # No shared lib support for Linux oldld, aout, or coff.
17402 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17406 # This must be Linux ELF.
17407 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 soname_spec
='${libname}${release}${shared_ext}$major'
17413 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17414 shlibpath_var
=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath
=no
17417 # Some binutils ld are patched to set DT_RUNPATH
17418 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17419 $as_echo_n "(cached) " >&6
17421 lt_cv_shlibpath_overrides_runpath
=no
17422 save_LDFLAGS
=$LDFLAGS
17423 save_libdir
=$libdir
17424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17437 if ac_fn_c_try_link
"$LINENO"; then :
17438 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17439 lt_cv_shlibpath_overrides_runpath
=yes
17442 rm -f core conftest.err conftest.
$ac_objext \
17443 conftest
$ac_exeext conftest.
$ac_ext
17444 LDFLAGS
=$save_LDFLAGS
17445 libdir
=$save_libdir
17449 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17451 # This implies no fast_install, which is unacceptable.
17452 # Some rework will be needed to allow for fast_install
17453 # before this can be enabled.
17454 hardcode_into_libs
=yes
17456 # Append ld.so.conf contents to the search path
17457 if test -f /etc
/ld.so.conf
; then
17458 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' ' '`
17459 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17462 # We used to test for /lib/ld.so.1 and disable shared libraries on
17463 # powerpc, because MkLinux only supported shared libraries with the
17464 # GNU dynamic linker. Since this was broken with cross compilers,
17465 # most powerpc-linux boxes support dynamic linking these days and
17466 # people can always --disable-shared, the test was removed, and we
17467 # assume the GNU/Linux dynamic linker is in use.
17468 dynamic_linker
='GNU/Linux ld.so'
17475 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17477 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17478 dynamic_linker
='NetBSD (a.out) ld.so'
17480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481 soname_spec
='${libname}${release}${shared_ext}$major'
17482 dynamic_linker
='NetBSD ld.elf_so'
17484 shlibpath_var
=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath
=yes
17486 hardcode_into_libs
=yes
17491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 shlibpath_var
=LD_LIBRARY_PATH
17493 shlibpath_overrides_runpath
=yes
17500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 soname_spec
='${libname}${release}${shared_ext}$major'
17502 shlibpath_var
=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath
=no
17504 hardcode_into_libs
=yes
17505 dynamic_linker
='ldqnx.so'
17510 sys_lib_dlsearch_path_spec
="/usr/lib"
17512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17514 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17515 *) need_version
=no
;;
17517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17518 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17519 shlibpath_var
=LD_LIBRARY_PATH
17520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17522 openbsd2.
[89] | openbsd2.
[89].
*)
17523 shlibpath_overrides_runpath
=no
17526 shlibpath_overrides_runpath
=yes
17530 shlibpath_overrides_runpath
=yes
17535 libname_spec
='$name'
17538 library_names_spec
='$libname${shared_ext} $libname.a'
17539 dynamic_linker
='OS/2 ld.exe'
17540 shlibpath_var
=LIBPATH
17543 osf3
* | osf4
* | osf5
*)
17547 soname_spec
='${libname}${release}${shared_ext}$major'
17548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17549 shlibpath_var
=LD_LIBRARY_PATH
17550 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17551 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563 soname_spec
='${libname}${release}${shared_ext}$major'
17564 shlibpath_var
=LD_LIBRARY_PATH
17565 shlibpath_overrides_runpath
=yes
17566 hardcode_into_libs
=yes
17567 # ldd complains unless libraries are executable
17568 postinstall_cmds
='chmod +x $lib'
17573 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17574 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17575 shlibpath_var
=LD_LIBRARY_PATH
17576 shlibpath_overrides_runpath
=yes
17577 if test "$with_gnu_ld" = yes; then
17585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec
='${libname}${release}${shared_ext}$major'
17587 shlibpath_var
=LD_LIBRARY_PATH
17588 case $host_vendor in
17590 shlibpath_overrides_runpath
=no
17592 runpath_var
=LD_RUN_PATH
17600 shlibpath_overrides_runpath
=no
17601 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17607 if test -d /usr
/nec
;then
17609 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17610 soname_spec
='$libname${shared_ext}.$major'
17611 shlibpath_var
=LD_LIBRARY_PATH
17615 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17616 version_type
=freebsd-elf
17619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17620 soname_spec
='${libname}${release}${shared_ext}$major'
17621 shlibpath_var
=LD_LIBRARY_PATH
17622 shlibpath_overrides_runpath
=yes
17623 hardcode_into_libs
=yes
17624 if test "$with_gnu_ld" = yes; then
17625 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17627 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17630 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17634 sys_lib_dlsearch_path_spec
='/usr/lib'
17638 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643 shlibpath_var
=LD_LIBRARY_PATH
17644 shlibpath_overrides_runpath
=no
17645 hardcode_into_libs
=yes
17650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651 soname_spec
='${libname}${release}${shared_ext}$major'
17652 shlibpath_var
=LD_LIBRARY_PATH
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17660 $as_echo "$dynamic_linker" >&6; }
17661 test "$dynamic_linker" = no
&& can_build_shared
=no
17663 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17664 if test "$GCC" = yes; then
17665 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17668 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17669 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17671 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17672 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17767 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17769 if test -n "$hardcode_libdir_flag_spec" ||
17770 test -n "$runpath_var" ||
17771 test "X$hardcode_automatic" = "Xyes" ; then
17773 # We can hardcode non-existent directories.
17774 if test "$hardcode_direct" != no
&&
17775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17776 # have to relink, otherwise we might link with an installed library
17777 # when we should be linking with a yet-to-be-installed one
17778 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17779 test "$hardcode_minus_L" != no
; then
17780 # Linking always hardcodes the temporary library directory.
17781 hardcode_action
=relink
17783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17784 hardcode_action
=immediate
17787 # We cannot hardcode anything, or else we can only hardcode existing
17789 hardcode_action
=unsupported
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17792 $as_echo "$hardcode_action" >&6; }
17794 if test "$hardcode_action" = relink ||
17795 test "$inherit_rpath" = yes; then
17796 # Fast installation is not supported
17797 enable_fast_install
=no
17798 elif test "$shlibpath_overrides_runpath" = yes ||
17799 test "$enable_shared" = no
; then
17800 # Fast installation is not necessary
17801 enable_fast_install
=needless
17809 if test "x$enable_dlopen" != xyes
; then
17810 enable_dlopen
=unknown
17811 enable_dlopen_self
=unknown
17812 enable_dlopen_self_static
=unknown
17819 lt_cv_dlopen
="load_add_on"
17821 lt_cv_dlopen_self
=yes
17824 mingw
* | pw32
* | cegcc
*)
17825 lt_cv_dlopen
="LoadLibrary"
17830 lt_cv_dlopen
="dlopen"
17835 # if libdl is installed we need to link against it
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17837 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17839 $as_echo_n "(cached) " >&6
17841 ac_check_lib_save_LIBS
=$LIBS
17843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17861 if ac_fn_c_try_link
"$LINENO"; then :
17862 ac_cv_lib_dl_dlopen
=yes
17864 ac_cv_lib_dl_dlopen
=no
17866 rm -f core conftest.err conftest.
$ac_objext \
17867 conftest
$ac_exeext conftest.
$ac_ext
17868 LIBS
=$ac_check_lib_save_LIBS
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17871 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17872 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17873 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17876 lt_cv_dlopen
="dyld"
17878 lt_cv_dlopen_self
=yes
17885 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17886 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17887 lt_cv_dlopen
="shl_load"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17890 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17891 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17894 ac_check_lib_save_LIBS
=$LIBS
17896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17899 /* Override any GCC internal prototype to avoid an error.
17900 Use char because int might match the return type of a GCC
17901 builtin and then its argument prototype would still apply. */
17909 return shl_load ();
17914 if ac_fn_c_try_link
"$LINENO"; then :
17915 ac_cv_lib_dld_shl_load
=yes
17917 ac_cv_lib_dld_shl_load
=no
17919 rm -f core conftest.err conftest.
$ac_objext \
17920 conftest
$ac_exeext conftest.
$ac_ext
17921 LIBS
=$ac_check_lib_save_LIBS
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17924 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17925 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17926 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17928 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17929 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17930 lt_cv_dlopen
="dlopen"
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17933 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17934 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17935 $as_echo_n "(cached) " >&6
17937 ac_check_lib_save_LIBS
=$LIBS
17939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17957 if ac_fn_c_try_link
"$LINENO"; then :
17958 ac_cv_lib_dl_dlopen
=yes
17960 ac_cv_lib_dl_dlopen
=no
17962 rm -f core conftest.err conftest.
$ac_objext \
17963 conftest
$ac_exeext conftest.
$ac_ext
17964 LIBS
=$ac_check_lib_save_LIBS
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17967 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17968 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17969 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17972 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17974 $as_echo_n "(cached) " >&6
17976 ac_check_lib_save_LIBS
=$LIBS
17977 LIBS
="-lsvld $LIBS"
17978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17996 if ac_fn_c_try_link
"$LINENO"; then :
17997 ac_cv_lib_svld_dlopen
=yes
17999 ac_cv_lib_svld_dlopen
=no
18001 rm -f core conftest.err conftest.
$ac_objext \
18002 conftest
$ac_exeext conftest.
$ac_ext
18003 LIBS
=$ac_check_lib_save_LIBS
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18006 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18007 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18008 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18011 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18015 ac_check_lib_save_LIBS
=$LIBS
18017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18020 /* Override any GCC internal prototype to avoid an error.
18021 Use char because int might match the return type of a GCC
18022 builtin and then its argument prototype would still apply. */
18030 return dld_link ();
18035 if ac_fn_c_try_link
"$LINENO"; then :
18036 ac_cv_lib_dld_dld_link
=yes
18038 ac_cv_lib_dld_dld_link
=no
18040 rm -f core conftest.err conftest.
$ac_objext \
18041 conftest
$ac_exeext conftest.
$ac_ext
18042 LIBS
=$ac_check_lib_save_LIBS
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18045 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18046 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18047 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18068 if test "x$lt_cv_dlopen" != xno
; then
18074 case $lt_cv_dlopen in
18076 save_CPPFLAGS
="$CPPFLAGS"
18077 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18079 save_LDFLAGS
="$LDFLAGS"
18080 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18083 LIBS
="$lt_cv_dlopen_libs $LIBS"
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18086 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18087 if test "${lt_cv_dlopen_self+set}" = set; then :
18088 $as_echo_n "(cached) " >&6
18090 if test "$cross_compiling" = yes; then :
18091 lt_cv_dlopen_self
=cross
18093 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18094 lt_status
=$lt_dlunknown
18095 cat > conftest.
$ac_ext <<_LT_EOF
18096 #line 18096 "configure"
18097 #include "confdefs.h"
18106 # define LT_DLGLOBAL RTLD_GLOBAL
18109 # define LT_DLGLOBAL DL_GLOBAL
18111 # define LT_DLGLOBAL 0
18115 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18116 find out it does not work in some platform. */
18117 #ifndef LT_DLLAZY_OR_NOW
18119 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18122 # define LT_DLLAZY_OR_NOW DL_LAZY
18125 # define LT_DLLAZY_OR_NOW RTLD_NOW
18128 # define LT_DLLAZY_OR_NOW DL_NOW
18130 # define LT_DLLAZY_OR_NOW 0
18137 /* When -fvisbility=hidden is used, assume the code has been annotated
18138 correspondingly for the symbols needed. */
18139 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18140 void fnord () __attribute__((visibility("default")));
18143 void fnord () { int i=42; }
18146 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18147 int status = $lt_dlunknown;
18151 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18154 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18155 else puts (dlerror ());
18157 /* dlclose (self); */
18165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18166 (eval $ac_link) 2>&5
18168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18169 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18170 (.
/conftest
; exit; ) >&5 2>/dev
/null
18172 case x
$lt_status in
18173 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18174 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18175 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18178 # compilation failed
18179 lt_cv_dlopen_self
=no
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18187 $as_echo "$lt_cv_dlopen_self" >&6; }
18189 if test "x$lt_cv_dlopen_self" = xyes
; then
18190 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18192 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18193 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18194 $as_echo_n "(cached) " >&6
18196 if test "$cross_compiling" = yes; then :
18197 lt_cv_dlopen_self_static
=cross
18199 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18200 lt_status
=$lt_dlunknown
18201 cat > conftest.
$ac_ext <<_LT_EOF
18202 #line 18202 "configure"
18203 #include "confdefs.h"
18212 # define LT_DLGLOBAL RTLD_GLOBAL
18215 # define LT_DLGLOBAL DL_GLOBAL
18217 # define LT_DLGLOBAL 0
18221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18222 find out it does not work in some platform. */
18223 #ifndef LT_DLLAZY_OR_NOW
18225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18228 # define LT_DLLAZY_OR_NOW DL_LAZY
18231 # define LT_DLLAZY_OR_NOW RTLD_NOW
18234 # define LT_DLLAZY_OR_NOW DL_NOW
18236 # define LT_DLLAZY_OR_NOW 0
18243 /* When -fvisbility=hidden is used, assume the code has been annotated
18244 correspondingly for the symbols needed. */
18245 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18246 void fnord () __attribute__((visibility("default")));
18249 void fnord () { int i=42; }
18252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18253 int status = $lt_dlunknown;
18257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18260 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18261 else puts (dlerror ());
18263 /* dlclose (self); */
18271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18272 (eval $ac_link) 2>&5
18274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18276 (.
/conftest
; exit; ) >&5 2>/dev
/null
18278 case x
$lt_status in
18279 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18280 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18281 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18284 # compilation failed
18285 lt_cv_dlopen_self_static
=no
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18293 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18296 CPPFLAGS
="$save_CPPFLAGS"
18297 LDFLAGS
="$save_LDFLAGS"
18302 case $lt_cv_dlopen_self in
18303 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18304 *) enable_dlopen_self
=unknown
;;
18307 case $lt_cv_dlopen_self_static in
18308 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18309 *) enable_dlopen_self_static
=unknown
;;
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18332 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18333 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18334 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18335 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18337 $as_echo "yes" >&6; }
18339 # FIXME - insert some real tests, host_os isn't really good enough
18342 if test -n "$STRIP" ; then
18343 striplib
="$STRIP -x"
18344 old_striplib
="$STRIP -S"
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18346 $as_echo "yes" >&6; }
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18349 $as_echo "no" >&6; }
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18354 $as_echo "no" >&6; }
18370 # Report which library types will actually be built
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18372 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18374 $as_echo "$can_build_shared" >&6; }
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18377 $as_echo_n "checking whether to build shared libraries... " >&6; }
18378 test "$can_build_shared" = "no" && enable_shared
=no
18380 # On AIX, shared libraries and static libraries use the same namespace, and
18381 # are all built from PIC.
18384 test "$enable_shared" = yes && enable_static
=no
18385 if test -n "$RANLIB"; then
18386 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18387 postinstall_cmds
='$RANLIB $lib'
18392 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18393 test "$enable_shared" = yes && enable_static
=no
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18398 $as_echo "$enable_shared" >&6; }
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18401 $as_echo_n "checking whether to build static libraries... " >&6; }
18402 # Make sure either enable_shared or enable_static is yes.
18403 test "$enable_shared" = yes || enable_static
=yes
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18405 $as_echo "$enable_static" >&6; }
18412 ac_cpp
='$CPP $CPPFLAGS'
18413 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18419 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18420 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18421 (test "X$CXX" != "Xg++"))) ; then
18423 ac_cpp
='$CXXCPP $CPPFLAGS'
18424 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18425 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18426 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18428 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18429 if test -z "$CXXCPP"; then
18430 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18431 $as_echo_n "(cached) " >&6
18433 # Double quotes because CXXCPP needs to be expanded
18434 for CXXCPP
in "$CXX -E" "/lib/cpp"
18436 ac_preproc_ok
=false
18437 for ac_cxx_preproc_warn_flag
in '' yes
18439 # Use a header file that comes with gcc, so configuring glibc
18440 # with a fresh cross-compiler works.
18441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 # <limits.h> exists even on freestanding compilers.
18443 # On the NeXT, cc -E runs the code through the compiler's parser,
18444 # not just through cpp. "Syntax error" is here to catch this case.
18445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 # include <limits.h>
18450 # include <assert.h>
18454 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18457 # Broken: fails on valid input.
18460 rm -f conftest.err conftest.
$ac_ext
18462 # OK, works on sane cases. Now check whether nonexistent headers
18463 # can be detected and how.
18464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 #include <ac_nonexistent.h>
18468 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18469 # Broken: success on invalid input.
18472 # Passes both tests.
18476 rm -f conftest.err conftest.
$ac_ext
18479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18480 rm -f conftest.err conftest.
$ac_ext
18481 if $ac_preproc_ok; then :
18486 ac_cv_prog_CXXCPP
=$CXXCPP
18489 CXXCPP
=$ac_cv_prog_CXXCPP
18491 ac_cv_prog_CXXCPP
=$CXXCPP
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18494 $as_echo "$CXXCPP" >&6; }
18495 ac_preproc_ok
=false
18496 for ac_cxx_preproc_warn_flag
in '' yes
18498 # Use a header file that comes with gcc, so configuring glibc
18499 # with a fresh cross-compiler works.
18500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18501 # <limits.h> exists even on freestanding compilers.
18502 # On the NeXT, cc -E runs the code through the compiler's parser,
18503 # not just through cpp. "Syntax error" is here to catch this case.
18504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18505 /* end confdefs.h. */
18507 # include <limits.h>
18509 # include <assert.h>
18513 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18516 # Broken: fails on valid input.
18519 rm -f conftest.err conftest.
$ac_ext
18521 # OK, works on sane cases. Now check whether nonexistent headers
18522 # can be detected and how.
18523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h. */
18525 #include <ac_nonexistent.h>
18527 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18528 # Broken: success on invalid input.
18531 # Passes both tests.
18535 rm -f conftest.err conftest.
$ac_ext
18538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18539 rm -f conftest.err conftest.
$ac_ext
18540 if $ac_preproc_ok; then :
18543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18545 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18546 See \`config.log' for more details." "$LINENO" 5; }
18550 ac_cpp
='$CPP $CPPFLAGS'
18551 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18552 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18553 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18556 _lt_caught_CXX_error
=yes
18560 ac_cpp
='$CXXCPP $CPPFLAGS'
18561 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18565 archive_cmds_need_lc_CXX
=no
18566 allow_undefined_flag_CXX
=
18567 always_export_symbols_CXX
=no
18568 archive_expsym_cmds_CXX
=
18569 compiler_needs_object_CXX
=no
18570 export_dynamic_flag_spec_CXX
=
18571 hardcode_direct_CXX
=no
18572 hardcode_direct_absolute_CXX
=no
18573 hardcode_libdir_flag_spec_CXX
=
18574 hardcode_libdir_flag_spec_ld_CXX
=
18575 hardcode_libdir_separator_CXX
=
18576 hardcode_minus_L_CXX
=no
18577 hardcode_shlibpath_var_CXX
=unsupported
18578 hardcode_automatic_CXX
=no
18579 inherit_rpath_CXX
=no
18581 module_expsym_cmds_CXX
=
18582 link_all_deplibs_CXX
=unknown
18583 old_archive_cmds_CXX
=$old_archive_cmds
18584 reload_flag_CXX
=$reload_flag
18585 reload_cmds_CXX
=$reload_cmds
18586 no_undefined_flag_CXX
=
18587 whole_archive_flag_spec_CXX
=
18588 enable_shared_with_static_runtimes_CXX
=no
18590 # Source file extension for C++ test sources.
18593 # Object file extension for compiled C++ test sources.
18597 # No sense in running all these tests if we already determined that
18598 # the CXX compiler isn't working. Some variables (like enable_shared)
18599 # are currently assumed to apply to all compilers on this platform,
18600 # and will be corrupted by setting them based on a non-working compiler.
18601 if test "$_lt_caught_CXX_error" != yes; then
18602 # Code to be used in simple compile tests
18603 lt_simple_compile_test_code
="int some_variable = 0;"
18605 # Code to be used in simple link tests
18606 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18608 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18615 # If no C compiler was specified, use CC.
18618 # If no C compiler flags were specified, use CFLAGS.
18619 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18621 # Allow CC to be a program name with arguments.
18625 # save warnings/boilerplate of simple test code
18626 ac_outfile
=conftest.
$ac_objext
18627 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18628 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18629 _lt_compiler_boilerplate
=`cat conftest.err`
18632 ac_outfile
=conftest.
$ac_objext
18633 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18634 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18635 _lt_linker_boilerplate
=`cat conftest.err`
18639 # Allow CC to be a program name with arguments.
18644 lt_save_with_gnu_ld
=$with_gnu_ld
18645 lt_save_path_LD
=$lt_cv_path_LD
18646 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18647 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18649 $as_unset lt_cv_prog_gnu_ld
18651 if test -n "${lt_cv_path_LDCXX+set}"; then
18652 lt_cv_path_LD
=$lt_cv_path_LDCXX
18654 $as_unset lt_cv_path_LD
18656 test -z "${LDCXX+set}" || LD
=$LDCXX
18660 for cc_temp
in $compiler""; do
18662 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18663 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18668 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18671 if test -n "$compiler"; then
18672 # We don't want -fno-exception when compiling C++ code, so set the
18673 # no_builtin_flag separately
18674 if test "$GXX" = yes; then
18675 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18677 lt_prog_compiler_no_builtin_flag_CXX
=
18680 if test "$GXX" = yes; then
18681 # Set up default GNU C++ configuration
18685 # Check whether --with-gnu-ld was given.
18686 if test "${with_gnu_ld+set}" = set; then :
18687 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18693 if test "$GCC" = yes; then
18694 # Check if gcc -print-prog-name=ld gives a path.
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18696 $as_echo_n "checking for ld used by $CC... " >&6; }
18699 # gcc leaves a trailing carriage return which upsets mingw
18700 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18702 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18705 # Accept absolute paths.
18707 re_direlt
='/[^/][^/]*/\.\./'
18708 # Canonicalize the pathname of ld
18709 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18710 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18711 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18713 test -z "$LD" && LD
="$ac_prog"
18716 # If it fails, then pretend we aren't using GCC.
18720 # If it is relative, then search for the first ld in PATH.
18721 with_gnu_ld
=unknown
18724 elif test "$with_gnu_ld" = yes; then
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18726 $as_echo_n "checking for GNU ld... " >&6; }
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18729 $as_echo_n "checking for non-GNU ld... " >&6; }
18731 if test "${lt_cv_path_LD+set}" = set; then :
18732 $as_echo_n "(cached) " >&6
18734 if test -z "$LD"; then
18735 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18736 for ac_dir
in $PATH; do
18738 test -z "$ac_dir" && ac_dir
=.
18739 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18740 lt_cv_path_LD
="$ac_dir/$ac_prog"
18741 # Check to see if the program is GNU ld. I'd rather use --version,
18742 # but apparently some variants of GNU ld only accept -v.
18743 # Break only if it was the GNU/non-GNU ld that we prefer.
18744 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18745 *GNU
* |
*'with BFD'*)
18746 test "$with_gnu_ld" != no
&& break
18749 test "$with_gnu_ld" != yes && break
18756 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18760 LD
="$lt_cv_path_LD"
18761 if test -n "$LD"; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18763 $as_echo "$LD" >&6; }
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766 $as_echo "no" >&6; }
18768 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18770 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18771 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18772 $as_echo_n "(cached) " >&6
18774 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18775 case `$LD -v 2>&1 </dev/null` in
18776 *GNU
* |
*'with BFD'*)
18777 lt_cv_prog_gnu_ld
=yes
18780 lt_cv_prog_gnu_ld
=no
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18785 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18786 with_gnu_ld
=$lt_cv_prog_gnu_ld
18794 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18795 # archiving commands below assume that GNU ld is being used.
18796 if test "$with_gnu_ld" = yes; then
18797 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18798 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'
18800 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18801 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18803 # If archive_cmds runs LD, not CC, wlarc should be empty
18804 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18805 # investigate it a little bit more. (MM)
18808 # ancient GNU ld didn't support --whole-archive et. al.
18809 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18810 $GREP 'no-whole-archive' > /dev
/null
; then
18811 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18813 whole_archive_flag_spec_CXX
=
18819 # A generic and very simple default shared library creation
18820 # command for GNU C++ for the case where it uses the native
18821 # linker, instead of GNU ld. If possible, this setting should
18822 # overridden to take advantage of the native linker features on
18823 # the platform it is being used on.
18824 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18827 # Commands to make compiler produce verbose output that lists
18828 # what "hidden" libraries, object files and flags are used when
18829 # linking a shared library.
18830 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18838 # PORTME: fill in a description of your system's C++ link characteristics
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18840 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18844 # FIXME: insert proper C++ library support
18848 if test "$host_cpu" = ia64
; then
18849 # On IA64, the linker does run time linking by default, so we don't
18850 # have to do anything special.
18851 aix_use_runtimelinking
=no
18852 exp_sym_flag
='-Bexport'
18855 aix_use_runtimelinking
=no
18857 # Test if we are trying to use run time linking or normal
18858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18859 # need to do runtime linking.
18860 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18861 for ld_flag
in $LDFLAGS; do
18864 aix_use_runtimelinking
=yes
18872 exp_sym_flag
='-bexport'
18873 no_entry_flag
='-bnoentry'
18876 # When large executables or shared objects are built, AIX ld can
18877 # have problems creating the table of contents. If linking a library
18878 # or program results in "error TOC overflow" add -mminimal-toc to
18879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18882 archive_cmds_CXX
=''
18883 hardcode_direct_CXX
=yes
18884 hardcode_direct_absolute_CXX
=yes
18885 hardcode_libdir_separator_CXX
=':'
18886 link_all_deplibs_CXX
=yes
18887 file_list_spec_CXX
='${wl}-f,'
18889 if test "$GXX" = yes; then
18890 case $host_os in aix4.
[012]|aix4.
[012].
*)
18891 # We only want to do this on AIX 4.2 and lower, the check
18892 # below for broken collect2 doesn't work under 4.3+
18893 collect2name
=`${CC} -print-prog-name=collect2`
18894 if test -f "$collect2name" &&
18895 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18897 # We have reworked collect2
18900 # We have old collect2
18901 hardcode_direct_CXX
=unsupported
18902 # It fails to find uninstalled libraries when the uninstalled
18903 # path is not listed in the libpath. Setting hardcode_minus_L
18904 # to unsupported forces relinking
18905 hardcode_minus_L_CXX
=yes
18906 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18907 hardcode_libdir_separator_CXX
=
18910 shared_flag
='-shared'
18911 if test "$aix_use_runtimelinking" = yes; then
18912 shared_flag
="$shared_flag "'${wl}-G'
18916 if test "$host_cpu" = ia64
; then
18917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18918 # chokes on -Wl,-G. The following line is correct:
18921 if test "$aix_use_runtimelinking" = yes; then
18922 shared_flag
='${wl}-G'
18924 shared_flag
='${wl}-bM:SRE'
18929 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18930 # It seems that -bexpall does not export symbols beginning with
18931 # underscore (_), so it is better to generate a list of symbols to
18933 always_export_symbols_CXX
=yes
18934 if test "$aix_use_runtimelinking" = yes; then
18935 # Warning - without using the other runtime loading flags (-brtl),
18936 # -berok will link without error, but may produce a broken library.
18937 allow_undefined_flag_CXX
='-berok'
18938 # Determine the default libpath from the value encoded in an empty
18940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18951 if ac_fn_cxx_try_link
"$LINENO"; then :
18953 lt_aix_libpath_sed
='
18954 /Import File Strings/,/^$/ {
18960 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18961 # Check for a 64-bit object if we didn't find anything.
18962 if test -z "$aix_libpath"; then
18963 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18966 rm -f core conftest.err conftest.
$ac_objext \
18967 conftest
$ac_exeext conftest.
$ac_ext
18968 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18970 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18972 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"
18974 if test "$host_cpu" = ia64
; then
18975 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18976 allow_undefined_flag_CXX
="-z nodefs"
18977 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"
18979 # Determine the default libpath from the value encoded in an
18980 # empty executable.
18981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18992 if ac_fn_cxx_try_link
"$LINENO"; then :
18994 lt_aix_libpath_sed
='
18995 /Import File Strings/,/^$/ {
19001 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19002 # Check for a 64-bit object if we didn't find anything.
19003 if test -z "$aix_libpath"; then
19004 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19007 rm -f core conftest.err conftest.
$ac_objext \
19008 conftest
$ac_exeext conftest.
$ac_ext
19009 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19011 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19012 # Warning - without using the other run time loading flags,
19013 # -berok will link without error, but may produce a broken library.
19014 no_undefined_flag_CXX
=' ${wl}-bernotok'
19015 allow_undefined_flag_CXX
=' ${wl}-berok'
19016 if test "$with_gnu_ld" = yes; then
19017 # We only use this code for GNU lds that support --whole-archive.
19018 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19020 # Exported symbols can be pulled into shared objects from archives
19021 whole_archive_flag_spec_CXX
='$convenience'
19023 archive_cmds_need_lc_CXX
=yes
19024 # This is similar to how AIX traditionally builds its shared
19026 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'
19032 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19033 allow_undefined_flag_CXX
=unsupported
19034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19035 # support --undefined. This deserves some investigation. FIXME
19036 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19043 case $cc_basename in
19045 # FIXME: insert proper C++ library support
19051 cygwin
* | mingw
* | pw32
* | cegcc
*)
19052 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19053 # as there is no search path for DLLs.
19054 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19055 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19056 allow_undefined_flag_CXX
=unsupported
19057 always_export_symbols_CXX
=no
19058 enable_shared_with_static_runtimes_CXX
=yes
19060 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19061 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'
19062 # If the export-symbols file already is a .def file (1st line
19063 # is EXPORTS), use it as is; otherwise, prepend...
19064 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19065 cp $export_symbols $output_objdir/$soname.def;
19067 echo EXPORTS > $output_objdir/$soname.def;
19068 cat $export_symbols >> $output_objdir/$soname.def;
19070 $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'
19075 darwin
* | rhapsody
*)
19078 archive_cmds_need_lc_CXX
=no
19079 hardcode_direct_CXX
=no
19080 hardcode_automatic_CXX
=yes
19081 hardcode_shlibpath_var_CXX
=unsupported
19082 if test "$lt_cv_ld_force_load" = "yes"; then
19083 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\"`'
19085 whole_archive_flag_spec_CXX
=''
19087 link_all_deplibs_CXX
=yes
19088 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19089 case $cc_basename in
19090 ifort
*) _lt_dar_can_shared
=yes ;;
19091 *) _lt_dar_can_shared
=$GCC ;;
19093 if test "$_lt_dar_can_shared" = "yes"; then
19094 output_verbose_link_cmd
=func_echo_all
19095 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}"
19096 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19097 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}"
19098 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}"
19099 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19100 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}"
19101 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}"
19111 case $cc_basename in
19113 # FIXME: insert proper C++ library support
19117 # Green Hills C++ Compiler
19118 # FIXME: insert proper C++ library support
19122 # FIXME: insert proper C++ library support
19129 # C++ shared libraries reported to be fairly broken before
19135 archive_cmds_need_lc_CXX
=no
19138 freebsd
* | dragonfly
*)
19139 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19148 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149 link_all_deplibs_CXX
=yes
19153 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19154 hardcode_libdir_separator_CXX
=:
19155 export_dynamic_flag_spec_CXX
='${wl}-E'
19156 hardcode_direct_CXX
=yes
19157 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19158 # but as the default
19159 # location of the library.
19161 case $cc_basename in
19163 # FIXME: insert proper C++ library support
19167 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'
19168 # Commands to make compiler produce verbose output that lists
19169 # what "hidden" libraries, object files and flags are used when
19170 # linking a shared library.
19172 # There doesn't appear to be a way to prevent this compiler from
19173 # explicitly linking system object files so we need to strip them
19174 # from the output so that they don't get included in the library
19176 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"'
19179 if test "$GXX" = yes; then
19180 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'
19182 # FIXME: insert proper C++ library support
19190 if test $with_gnu_ld = no
; then
19191 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19192 hardcode_libdir_separator_CXX
=:
19198 export_dynamic_flag_spec_CXX
='${wl}-E'
19204 hardcode_direct_CXX
=no
19205 hardcode_shlibpath_var_CXX
=no
19208 hardcode_direct_CXX
=yes
19209 hardcode_direct_absolute_CXX
=yes
19210 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19211 # but as the default
19212 # location of the library.
19216 case $cc_basename in
19218 # FIXME: insert proper C++ library support
19224 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19227 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19233 # Commands to make compiler produce verbose output that lists
19234 # what "hidden" libraries, object files and flags are used when
19235 # linking a shared library.
19237 # There doesn't appear to be a way to prevent this compiler from
19238 # explicitly linking system object files so we need to strip them
19239 # from the output so that they don't get included in the library
19241 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"'
19244 if test "$GXX" = yes; then
19245 if test $with_gnu_ld = no
; then
19248 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19254 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'
19259 # FIXME: insert proper C++ library support
19267 hardcode_direct_CXX
=no
19268 hardcode_shlibpath_var_CXX
=no
19269 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19270 export_dynamic_flag_spec_CXX
='${wl}-E'
19271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19272 # Instead, shared libraries are loaded at an image base (0x10000000 by
19273 # default) and relocated if they conflict, which is a slow very memory
19274 # consuming and fragmenting process. To avoid this, we pick a random,
19275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19277 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'
19278 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'
19281 case $cc_basename in
19284 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'
19286 # Archives containing C++ object files must be created using
19287 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19288 # necessary to make sure instantiated templates are included
19290 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19293 if test "$GXX" = yes; then
19294 if test "$with_gnu_ld" = no
; then
19295 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'
19297 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'
19300 link_all_deplibs_CXX
=yes
19303 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19304 hardcode_libdir_separator_CXX
=:
19305 inherit_rpath_CXX
=yes
19308 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19309 case $cc_basename in
19311 # Kuck and Associates, Inc. (KAI) C++ Compiler
19313 # KCC will only create a shared library if the output file
19314 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19315 # to its proper name (with version) after linking.
19316 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'
19317 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'
19318 # Commands to make compiler produce verbose output that lists
19319 # what "hidden" libraries, object files and flags are used when
19320 # linking a shared library.
19322 # There doesn't appear to be a way to prevent this compiler from
19323 # explicitly linking system object files so we need to strip them
19324 # from the output so that they don't get included in the library
19326 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"'
19328 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19329 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19331 # Archives containing C++ object files must be created using
19332 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19333 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19338 # version 8.0 and above of icpc choke on multiply defined symbols
19339 # if we add $predep_objects and $postdep_objects, however 7.1 and
19340 # earlier do not add the objects themselves.
19341 case `$CC -V 2>&1` in
19343 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19344 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'
19346 *) # Version 8.0 or newer
19349 ia64
*) tmp_idyn
=' -i_dynamic';;
19351 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19352 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'
19355 archive_cmds_need_lc_CXX
=no
19356 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19357 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19358 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19361 # Portland Group C++ compiler
19363 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19364 prelink_cmds_CXX
='tpldir=Template.dir~
19366 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19367 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19368 old_archive_cmds_CXX
='tpldir=Template.dir~
19370 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19371 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19373 archive_cmds_CXX
='tpldir=Template.dir~
19375 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19376 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19377 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19379 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19380 $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'
19382 *) # Version 6 and above use weak symbols
19383 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19384 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'
19388 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19389 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19390 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'
19394 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19395 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'
19397 runpath_var
=LD_RUN_PATH
19398 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19399 hardcode_libdir_separator_CXX
=:
19401 # Commands to make compiler produce verbose output that lists
19402 # what "hidden" libraries, object files and flags are used when
19403 # linking a shared library.
19405 # There doesn't appear to be a way to prevent this compiler from
19406 # explicitly linking system object files so we need to strip them
19407 # from the output so that they don't get included in the library
19409 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'
19411 xl
* | mpixl
* | bgxl
*)
19412 # IBM XL 8.0 on PPC, with GNU ld
19413 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19414 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19415 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19416 if test "x$supports_anon_versioning" = xyes
; then
19417 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19419 echo "local: *; };" >> $output_objdir/$libname.ver~
19420 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19424 case `$CC -V 2>&1 | sed 5q` in
19427 no_undefined_flag_CXX
=' -zdefs'
19428 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19429 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'
19430 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19431 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'
19432 compiler_needs_object_CXX
=yes
19434 # Not sure whether something based on
19435 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19437 output_verbose_link_cmd
='func_echo_all'
19439 # Archives containing C++ object files must be created using
19440 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19441 # necessary to make sure instantiated templates are included
19443 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19451 # FIXME: insert proper C++ library support
19456 # FIXME: insert proper C++ library support
19461 case $cc_basename in
19463 # FIXME: insert proper C++ library support
19467 # FIXME: insert proper C++ library support
19474 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19475 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19477 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19478 hardcode_direct_CXX
=yes
19479 hardcode_shlibpath_var_CXX
=no
19481 # Workaround some broken pre-1.5 toolchains
19482 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19490 # C++ shared libraries are fairly broken
19495 if test -f /usr
/libexec
/ld.so
; then
19496 hardcode_direct_CXX
=yes
19497 hardcode_shlibpath_var_CXX
=no
19498 hardcode_direct_absolute_CXX
=yes
19499 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19500 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19502 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19503 export_dynamic_flag_spec_CXX
='${wl}-E'
19504 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19506 output_verbose_link_cmd
=func_echo_all
19512 osf3
* | osf4
* | osf5
*)
19513 case $cc_basename in
19515 # Kuck and Associates, Inc. (KAI) C++ Compiler
19517 # KCC will only create a shared library if the output file
19518 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19519 # to its proper name (with version) after linking.
19520 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'
19522 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19523 hardcode_libdir_separator_CXX
=:
19525 # Archives containing C++ object files must be created using
19526 # the KAI C++ compiler.
19528 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19529 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19533 # Rational C++ 2.4.1
19534 # FIXME: insert proper C++ library support
19540 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19541 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'
19542 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19545 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19546 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'
19547 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19548 echo "-hidden">> $lib.exp~
19549 $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~
19551 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19555 hardcode_libdir_separator_CXX
=:
19557 # Commands to make compiler produce verbose output that lists
19558 # what "hidden" libraries, object files and flags are used when
19559 # linking a shared library.
19561 # There doesn't appear to be a way to prevent this compiler from
19562 # explicitly linking system object files so we need to strip them
19563 # from the output so that they don't get included in the library
19565 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"'
19568 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19569 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19572 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'
19575 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'
19579 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19580 hardcode_libdir_separator_CXX
=:
19582 # Commands to make compiler produce verbose output that lists
19583 # what "hidden" libraries, object files and flags are used when
19584 # linking a shared library.
19585 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19588 # FIXME: insert proper C++ library support
19596 # FIXME: insert proper C++ library support
19601 case $cc_basename in
19604 # FIXME: insert proper C++ library support
19609 # FIXME: insert proper C++ library support
19613 # FIXME: insert proper C++ library support
19620 case $cc_basename in
19622 # Sun C++ 4.2, 5.x and Centerline C++
19623 archive_cmds_need_lc_CXX
=yes
19624 no_undefined_flag_CXX
=' -zdefs'
19625 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19626 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19627 $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'
19629 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19630 hardcode_shlibpath_var_CXX
=no
19632 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19634 # The compiler driver will combine and reorder linker options,
19635 # but understands `-z linker_flag'.
19636 # Supported since Solaris 2.6 (maybe 2.5.1?)
19637 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19640 link_all_deplibs_CXX
=yes
19642 output_verbose_link_cmd
='func_echo_all'
19644 # Archives containing C++ object files must be created using
19645 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19646 # necessary to make sure instantiated templates are included
19648 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19651 # Green Hills C++ Compiler
19652 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19654 # The C++ compiler must be used to create the archive.
19655 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19658 # GNU C++ compiler with Solaris linker
19659 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19660 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19661 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19662 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19663 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19664 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19666 # Commands to make compiler produce verbose output that lists
19667 # what "hidden" libraries, object files and flags are used when
19668 # linking a shared library.
19669 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19671 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19673 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19674 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19675 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19677 # Commands to make compiler produce verbose output that lists
19678 # what "hidden" libraries, object files and flags are used when
19679 # linking a shared library.
19680 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19683 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19685 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19687 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19695 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19696 no_undefined_flag_CXX
='${wl}-z,text'
19697 archive_cmds_need_lc_CXX
=no
19698 hardcode_shlibpath_var_CXX
=no
19699 runpath_var
='LD_RUN_PATH'
19701 case $cc_basename in
19703 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19704 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19713 sysv5
* | sco3.2v5
* | sco5v6
*)
19714 # Note: We can NOT use -z defs as we might desire, because we do not
19715 # link with -lc, and that would cause any symbols used from libc to
19716 # always be unresolved, which means just about no library would
19717 # ever link correctly. If we're not using GNU ld we use -z text
19718 # though, which does catch some bad symbols but isn't as heavy-handed
19720 no_undefined_flag_CXX
='${wl}-z,text'
19721 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19722 archive_cmds_need_lc_CXX
=no
19723 hardcode_shlibpath_var_CXX
=no
19724 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19725 hardcode_libdir_separator_CXX
=':'
19726 link_all_deplibs_CXX
=yes
19727 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19728 runpath_var
='LD_RUN_PATH'
19730 case $cc_basename in
19732 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19733 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19735 '"$old_archive_cmds_CXX"
19736 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19737 '"$reload_cmds_CXX"
19740 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19747 case $cc_basename in
19749 # NonStop-UX NCC 3.20
19750 # FIXME: insert proper C++ library support
19754 # FIXME: insert proper C++ library support
19761 # FIXME: insert proper C++ library support
19766 # FIXME: insert proper C++ library support
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19772 $as_echo "$ld_shlibs_CXX" >&6; }
19773 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19779 ## There is no encapsulation within the following macros, do not change
19780 ## the running order or otherwise move them around unless you know exactly
19781 ## what you are doing...
19782 # Dependencies to place before and after the object being linked:
19783 predep_objects_CXX
=
19784 postdep_objects_CXX
=
19787 compiler_lib_search_path_CXX
=
19789 cat > conftest.
$ac_ext <<_LT_EOF
19793 Foo (void) { a = 0; }
19799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19800 (eval $ac_compile) 2>&5
19802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19803 test $ac_status = 0; }; then
19804 # Parse the compiler output and extract the necessary
19805 # objects, libraries and library flags.
19807 # Sentinel used to keep track of whether or not we are before
19808 # the conftest object file.
19809 pre_test_object_deps_done
=no
19811 for p
in `eval "$output_verbose_link_cmd"`; do
19815 # Some compilers place space between "-{L,R}" and the path.
19816 # Remove the space.
19817 if test $p = "-L" ||
19818 test $p = "-R"; then
19825 if test "$pre_test_object_deps_done" = no
; then
19828 # Internal compiler library paths should come after those
19829 # provided the user. The postdeps already come after the
19830 # user supplied libs so there is no need to process them.
19831 if test -z "$compiler_lib_search_path_CXX"; then
19832 compiler_lib_search_path_CXX
="${prev}${p}"
19834 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19837 # The "-l" case would never come before the object being
19838 # linked, so don't bother handling this case.
19841 if test -z "$postdeps_CXX"; then
19842 postdeps_CXX
="${prev}${p}"
19844 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19850 # This assumes that the test object file only shows up
19851 # once in the compiler output.
19852 if test "$p" = "conftest.$objext"; then
19853 pre_test_object_deps_done
=yes
19857 if test "$pre_test_object_deps_done" = no
; then
19858 if test -z "$predep_objects_CXX"; then
19859 predep_objects_CXX
="$p"
19861 predep_objects_CXX
="$predep_objects_CXX $p"
19864 if test -z "$postdep_objects_CXX"; then
19865 postdep_objects_CXX
="$p"
19867 postdep_objects_CXX
="$postdep_objects_CXX $p"
19872 *) ;; # Ignore the rest.
19880 echo "libtool.m4: error: problem compiling CXX test program"
19883 $RM -f confest.
$objext
19885 # PORTME: override above test on systems where it is broken
19888 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19889 # hack all around it, let's just trust "g++" to DTRT.
19890 predep_objects_CXX
=
19891 postdep_objects_CXX
=
19896 case `$CC -V 2>&1 | sed 5q` in
19900 # The more standards-conforming stlport4 library is
19901 # incompatible with the Cstd library. Avoid specifying
19902 # it if it's in CXXFLAGS. Ignore libCrun as
19903 # -library=stlport4 depends on it.
19904 case " $CXX $CXXFLAGS " in
19905 *" -library=stlport4 "*)
19906 solaris_use_stlport4
=yes
19910 if test "$solaris_use_stlport4" != yes; then
19911 postdeps_CXX
='-library=Cstd -library=Crun'
19918 case $cc_basename in
19920 # The more standards-conforming stlport4 library is
19921 # incompatible with the Cstd library. Avoid specifying
19922 # it if it's in CXXFLAGS. Ignore libCrun as
19923 # -library=stlport4 depends on it.
19924 case " $CXX $CXXFLAGS " in
19925 *" -library=stlport4 "*)
19926 solaris_use_stlport4
=yes
19930 # Adding this requires a known-good setup of shared libraries for
19931 # Sun compiler versions before 5.6, else PIC objects from an old
19932 # archive will be linked into the output, leading to subtle bugs.
19933 if test "$solaris_use_stlport4" != yes; then
19934 postdeps_CXX
='-library=Cstd -library=Crun'
19942 case " $postdeps_CXX " in
19943 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19945 compiler_lib_search_dirs_CXX
=
19946 if test -n "${compiler_lib_search_path_CXX}"; then
19947 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19980 lt_prog_compiler_wl_CXX
=
19981 lt_prog_compiler_pic_CXX
=
19982 lt_prog_compiler_static_CXX
=
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19987 # C++ specific cases for pic, static, wl, etc.
19988 if test "$GXX" = yes; then
19989 lt_prog_compiler_wl_CXX
='-Wl,'
19990 lt_prog_compiler_static_CXX
='-static'
19994 # All AIX code is PIC.
19995 if test "$host_cpu" = ia64
; then
19996 # AIX 5 now supports IA64 processor
19997 lt_prog_compiler_static_CXX
='-Bstatic'
19999 lt_prog_compiler_pic_CXX
='-fPIC'
20005 # see comment about AmigaOS4 .so support
20006 lt_prog_compiler_pic_CXX
='-fPIC'
20009 # FIXME: we need at least 68020 code to build shared libraries, but
20010 # adding the `-m68020' flag to GCC prevents building anything better,
20012 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20017 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20018 # PIC is the default for these OSes.
20020 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20021 # This hack is so that the source file can tell whether it is being
20022 # built for inclusion in a dll (and should export symbols for example).
20023 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20024 # (--disable-auto-import) libraries
20025 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20027 darwin
* | rhapsody
*)
20028 # PIC is the default on this platform
20029 # Common symbols not allowed in MH_DYLIB files
20030 lt_prog_compiler_pic_CXX
='-fno-common'
20033 # DJGPP does not support shared libraries at all
20034 lt_prog_compiler_pic_CXX
=
20037 # PIC is the default for Haiku.
20038 # The "-static" flag exists, but is broken.
20039 lt_prog_compiler_static_CXX
=
20042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20043 # Instead, we relocate shared libraries at runtime.
20046 if test -d /usr
/nec
; then
20047 lt_prog_compiler_pic_CXX
=-Kconform_pic
20051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20053 # sets the default TLS model and affects inlining.
20058 lt_prog_compiler_pic_CXX
='-fPIC'
20063 # QNX uses GNU C++, but need to define -shared option too, otherwise
20064 # it will coredump.
20065 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20068 lt_prog_compiler_pic_CXX
='-fPIC'
20074 # All AIX code is PIC.
20075 if test "$host_cpu" = ia64
; then
20076 # AIX 5 now supports IA64 processor
20077 lt_prog_compiler_static_CXX
='-Bstatic'
20079 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20083 case $cc_basename in
20085 # Green Hills C++ Compiler
20086 # _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"
20091 case $cc_basename in
20093 lt_prog_compiler_pic_CXX
='-KPIC'
20096 # Green Hills C++ Compiler
20097 lt_prog_compiler_pic_CXX
='-pic'
20103 freebsd
* | dragonfly
*)
20104 # FreeBSD uses GNU C++
20106 hpux9
* | hpux10
* | hpux11
*)
20107 case $cc_basename in
20109 lt_prog_compiler_wl_CXX
='-Wl,'
20110 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20111 if test "$host_cpu" != ia64
; then
20112 lt_prog_compiler_pic_CXX
='+Z'
20116 lt_prog_compiler_wl_CXX
='-Wl,'
20117 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20123 lt_prog_compiler_pic_CXX
='+Z'
20132 # This is c89, which is MS Visual C++ (no shared libs)
20133 # Anyone wants to do a port?
20135 irix5
* | irix6
* | nonstopux
*)
20136 case $cc_basename in
20138 lt_prog_compiler_wl_CXX
='-Wl,'
20139 lt_prog_compiler_static_CXX
='-non_shared'
20140 # CC pic flag -KPIC is the default.
20146 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20147 case $cc_basename in
20150 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20151 lt_prog_compiler_pic_CXX
='-fPIC'
20154 # old Intel C++ for x86_64 which still supported -KPIC.
20155 lt_prog_compiler_wl_CXX
='-Wl,'
20156 lt_prog_compiler_pic_CXX
='-KPIC'
20157 lt_prog_compiler_static_CXX
='-static'
20160 # Intel C++, used to be incompatible with GCC.
20161 # ICC 10 doesn't accept -KPIC any more.
20162 lt_prog_compiler_wl_CXX
='-Wl,'
20163 lt_prog_compiler_pic_CXX
='-fPIC'
20164 lt_prog_compiler_static_CXX
='-static'
20167 # Portland Group C++ compiler
20168 lt_prog_compiler_wl_CXX
='-Wl,'
20169 lt_prog_compiler_pic_CXX
='-fpic'
20170 lt_prog_compiler_static_CXX
='-Bstatic'
20174 # Make sure the PIC flag is empty. It appears that all Alpha
20175 # Linux and Compaq Tru64 Unix objects are PIC.
20176 lt_prog_compiler_pic_CXX
=
20177 lt_prog_compiler_static_CXX
='-non_shared'
20179 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20180 # IBM XL 8.0, 9.0 on PPC and BlueGene
20181 lt_prog_compiler_wl_CXX
='-Wl,'
20182 lt_prog_compiler_pic_CXX
='-qpic'
20183 lt_prog_compiler_static_CXX
='-qstaticlink'
20186 case `$CC -V 2>&1 | sed 5q` in
20189 lt_prog_compiler_pic_CXX
='-KPIC'
20190 lt_prog_compiler_static_CXX
='-Bstatic'
20191 lt_prog_compiler_wl_CXX
='-Qoption ld '
20202 case $cc_basename in
20204 lt_prog_compiler_pic_CXX
='-W c,exportall'
20213 # QNX uses GNU C++, but need to define -shared option too, otherwise
20214 # it will coredump.
20215 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20217 osf3
* | osf4
* | osf5
*)
20218 case $cc_basename in
20220 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20223 # Rational C++ 2.4.1
20224 lt_prog_compiler_pic_CXX
='-pic'
20227 # Digital/Compaq C++
20228 lt_prog_compiler_wl_CXX
='-Wl,'
20229 # Make sure the PIC flag is empty. It appears that all Alpha
20230 # Linux and Compaq Tru64 Unix objects are PIC.
20231 lt_prog_compiler_pic_CXX
=
20232 lt_prog_compiler_static_CXX
='-non_shared'
20241 case $cc_basename in
20243 # Sun C++ 4.2, 5.x and Centerline C++
20244 lt_prog_compiler_pic_CXX
='-KPIC'
20245 lt_prog_compiler_static_CXX
='-Bstatic'
20246 lt_prog_compiler_wl_CXX
='-Qoption ld '
20249 # Green Hills C++ Compiler
20250 lt_prog_compiler_pic_CXX
='-PIC'
20257 case $cc_basename in
20260 lt_prog_compiler_pic_CXX
='-pic'
20261 lt_prog_compiler_static_CXX
='-Bstatic'
20265 lt_prog_compiler_pic_CXX
='-pic'
20271 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20272 case $cc_basename in
20274 lt_prog_compiler_wl_CXX
='-Wl,'
20275 lt_prog_compiler_pic_CXX
='-KPIC'
20276 lt_prog_compiler_static_CXX
='-Bstatic'
20281 case $cc_basename in
20283 # NonStop-UX NCC 3.20
20284 lt_prog_compiler_pic_CXX
='-KPIC'
20293 lt_prog_compiler_can_build_shared_CXX
=no
20299 # For platforms which do not support PIC, -DPIC is meaningless:
20301 lt_prog_compiler_pic_CXX
=
20304 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20308 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20313 # Check to make sure the PIC flag actually works.
20315 if test -n "$lt_prog_compiler_pic_CXX"; then
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20317 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20318 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20319 $as_echo_n "(cached) " >&6
20321 lt_cv_prog_compiler_pic_works_CXX
=no
20322 ac_outfile
=conftest.
$ac_objext
20323 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20324 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20325 # Insert the option either (1) after the last *FLAGS variable, or
20326 # (2) before a word containing "conftest.", or (3) at the end.
20327 # Note that $ac_compile itself does not contain backslashes and begins
20328 # with a dollar sign (not a hyphen), so the echo should work correctly.
20329 # The option is referenced via a variable to avoid confusing sed.
20330 lt_compile
=`echo "$ac_compile" | $SED \
20331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20333 -e 's:$: $lt_compiler_flag:'`
20334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20335 (eval "$lt_compile" 2>conftest.err
)
20337 cat conftest.err
>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 if (exit $ac_status) && test -s "$ac_outfile"; then
20340 # The compiler can only warn and ignore the option if not recognized
20341 # So say no if there are warnings other than the usual output.
20342 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20343 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20344 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20345 lt_cv_prog_compiler_pic_works_CXX
=yes
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20352 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20354 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20355 case $lt_prog_compiler_pic_CXX in
20357 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20360 lt_prog_compiler_pic_CXX
=
20361 lt_prog_compiler_can_build_shared_CXX
=no
20369 # Check to make sure the static flag actually works.
20371 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20373 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20374 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20375 $as_echo_n "(cached) " >&6
20377 lt_cv_prog_compiler_static_works_CXX
=no
20378 save_LDFLAGS
="$LDFLAGS"
20379 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20380 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20381 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20382 # The linker can only warn and ignore the option if not recognized
20383 # So say no if there are warnings
20384 if test -s conftest.err
; then
20385 # Append any errors to the config.log.
20386 cat conftest.err
1>&5
20387 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20388 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20389 if diff conftest.exp conftest.er2
>/dev
/null
; then
20390 lt_cv_prog_compiler_static_works_CXX
=yes
20393 lt_cv_prog_compiler_static_works_CXX
=yes
20397 LDFLAGS
="$save_LDFLAGS"
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20401 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20403 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20406 lt_prog_compiler_static_CXX
=
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20414 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20415 $as_echo_n "(cached) " >&6
20417 lt_cv_prog_compiler_c_o_CXX
=no
20418 $RM -r conftest
2>/dev
/null
20422 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20424 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20425 # Insert the option either (1) after the last *FLAGS variable, or
20426 # (2) before a word containing "conftest.", or (3) at the end.
20427 # Note that $ac_compile itself does not contain backslashes and begins
20428 # with a dollar sign (not a hyphen), so the echo should work correctly.
20429 lt_compile
=`echo "$ac_compile" | $SED \
20430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20432 -e 's:$: $lt_compiler_flag:'`
20433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20434 (eval "$lt_compile" 2>out
/conftest.err
)
20436 cat out
/conftest.err
>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20440 # The compiler can only warn and ignore the option if not recognized
20441 # So say no if there are warnings
20442 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20443 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20444 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20445 lt_cv_prog_compiler_c_o_CXX
=yes
20450 # SGI C++ compiler will create directory out/ii_files/ for
20451 # template instantiation
20452 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20453 $RM out
/* && rmdir out
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20460 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20467 $as_echo_n "(cached) " >&6
20469 lt_cv_prog_compiler_c_o_CXX
=no
20470 $RM -r conftest
2>/dev
/null
20474 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20476 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20477 # Insert the option either (1) after the last *FLAGS variable, or
20478 # (2) before a word containing "conftest.", or (3) at the end.
20479 # Note that $ac_compile itself does not contain backslashes and begins
20480 # with a dollar sign (not a hyphen), so the echo should work correctly.
20481 lt_compile
=`echo "$ac_compile" | $SED \
20482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20484 -e 's:$: $lt_compiler_flag:'`
20485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20486 (eval "$lt_compile" 2>out
/conftest.err
)
20488 cat out
/conftest.err
>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20492 # The compiler can only warn and ignore the option if not recognized
20493 # So say no if there are warnings
20494 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20495 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20496 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20497 lt_cv_prog_compiler_c_o_CXX
=yes
20502 # SGI C++ compiler will create directory out/ii_files/ for
20503 # template instantiation
20504 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20505 $RM out
/* && rmdir out
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20512 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20517 hard_links
="nottested"
20518 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20519 # do not overwrite the value of need_locks provided by the user
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20521 $as_echo_n "checking if we can lock with hard links... " >&6; }
20524 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20526 ln conftest.a conftest.b
2>&5 || hard_links
=no
20527 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20529 $as_echo "$hard_links" >&6; }
20530 if test "$hard_links" = no
; then
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20542 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20544 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20547 # If we're using GNU nm, then we don't want the "-C" option.
20548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20549 # Also, AIX nm treats weak defined symbols like other global defined
20550 # symbols, whereas GNU nm marks them as "W".
20551 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20552 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'
20554 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'
20558 export_symbols_cmds_CXX
="$ltdll_cmds"
20560 cygwin
* | mingw
* | cegcc
*)
20561 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'
20564 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20567 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20570 $as_echo "$ld_shlibs_CXX" >&6; }
20571 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20573 with_gnu_ld_CXX
=$with_gnu_ld
20581 # Do we need to explicitly link libc?
20583 case "x$archive_cmds_need_lc_CXX" in
20585 # Assume -lc should be added
20586 archive_cmds_need_lc_CXX
=yes
20588 if test "$enable_shared" = yes && test "$GCC" = yes; then
20589 case $archive_cmds_CXX in
20591 # FIXME: we may have to deal with multi-command sequences.
20594 # Test whether the compiler implicitly links with -lc since on some
20595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20596 # to ld, don't add -lc before -lgcc.
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20599 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20600 $as_echo_n "(cached) " >&6
20603 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20606 (eval $ac_compile) 2>&5
20608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20609 test $ac_status = 0; } 2>conftest.err
; then
20612 libobjs
=conftest.
$ac_objext
20614 wl
=$lt_prog_compiler_wl_CXX
20615 pic_flag
=$lt_prog_compiler_pic_CXX
20621 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20622 allow_undefined_flag_CXX
=
20623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20624 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20627 test $ac_status = 0; }
20629 lt_cv_archive_cmds_need_lc_CXX
=no
20631 lt_cv_archive_cmds_need_lc_CXX
=yes
20633 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20635 cat conftest.err
1>&5
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20641 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20642 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20715 library_names_spec
=
20716 libname_spec
='lib$name'
20720 postuninstall_cmds
=
20724 shlibpath_overrides_runpath
=unknown
20726 dynamic_linker
="$host_os ld.so"
20727 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20728 need_lib_prefix
=unknown
20729 hardcode_into_libs
=no
20731 # when you set need_version to no, make sure it does not cause -set_version
20732 # flags to be left without arguments
20733 need_version
=unknown
20738 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20739 shlibpath_var
=LIBPATH
20741 # AIX 3 has no versioning support, so we append a major version to the name.
20742 soname_spec
='${libname}${release}${shared_ext}$major'
20749 hardcode_into_libs
=yes
20750 if test "$host_cpu" = ia64
; then
20751 # AIX 5 supports IA64
20752 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20753 shlibpath_var
=LD_LIBRARY_PATH
20755 # With GCC up to 2.95.x, collect2 would create an import file
20756 # for dependence libraries. The import file would start with
20757 # the line `#! .'. This would cause the generated library to
20758 # depend on `.', always an invalid library. This was fixed in
20759 # development snapshots of GCC prior to 3.0.
20761 aix4 | aix4.
[01] | aix4.
[01].
*)
20762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20764 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20767 can_build_shared
=no
20771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20772 # soname into executable. Probably we can add versioning support to
20773 # collect2, so additional links can be useful in future.
20774 if test "$aix_use_runtimelinking" = yes; then
20775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20776 # instead of lib<name>.a to let people know that these are not
20777 # typical AIX shared libraries.
20778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20780 # We preserve .a as extension for shared libraries through AIX4.2
20781 # and later when we are not doing run time linking.
20782 library_names_spec
='${libname}${release}.a $libname.a'
20783 soname_spec
='${libname}${release}${shared_ext}$major'
20785 shlibpath_var
=LIBPATH
20792 # Since July 2007 AmigaOS4 officially supports .so libraries.
20793 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 library_names_spec
='$libname.ixlibrary $libname.a'
20798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20799 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'
20805 library_names_spec
='${libname}${shared_ext}'
20806 dynamic_linker
="$host_os ld.so"
20807 shlibpath_var
=LIBRARY_PATH
20813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 soname_spec
='${libname}${release}${shared_ext}$major'
20815 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20816 shlibpath_var
=LD_LIBRARY_PATH
20817 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20818 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20819 # the default ld.so.conf also contains /usr/contrib/lib and
20820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20821 # libtool to hard-code these into programs
20824 cygwin
* | mingw
* | pw32
* | cegcc
*)
20825 version_type
=windows
20830 case $GCC,$host_os in
20831 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20832 library_names_spec
='$libname.dll.a'
20833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20834 postinstall_cmds
='base_file=`basename \${file}`~
20835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20836 dldir=$destdir/`dirname \$dlpath`~
20837 test -d \$dldir || mkdir -p \$dldir~
20838 $install_prog $dir/$dlname \$dldir/$dlname~
20839 chmod a+x \$dldir/$dlname~
20840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20841 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20843 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20844 dlpath=$dir/\$dldll~
20846 shlibpath_overrides_runpath
=yes
20850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20851 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20855 # MinGW DLLs use traditional 'lib' prefix
20856 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20859 # pw32 DLLs use 'pw' prefix rather than 'lib'
20860 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20866 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20869 dynamic_linker
='Win32 ld.exe'
20870 # FIXME: first we should search . and the directory the executable is in
20874 darwin
* | rhapsody
*)
20875 dynamic_linker
="$host_os dyld"
20876 version_type
=darwin
20879 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20880 soname_spec
='${libname}${release}${major}$shared_ext'
20881 shlibpath_overrides_runpath
=yes
20882 shlibpath_var
=DYLD_LIBRARY_PATH
20883 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20885 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20893 soname_spec
='${libname}${release}${shared_ext}$major'
20894 shlibpath_var
=LD_LIBRARY_PATH
20897 freebsd
* | dragonfly
*)
20898 # DragonFly does not have aout. When/if they implement a new
20899 # versioning mechanism, adjust this.
20900 if test -x /usr
/bin
/objformat
; then
20901 objformat
=`/usr/bin/objformat`
20904 freebsd
[23].
*) objformat
=aout
;;
20905 *) objformat
=elf
;;
20908 version_type
=freebsd-
$objformat
20909 case $version_type in
20911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20916 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20920 shlibpath_var
=LD_LIBRARY_PATH
20923 shlibpath_overrides_runpath
=yes
20925 freebsd3.
[01]* | freebsdelf3.
[01]*)
20926 shlibpath_overrides_runpath
=yes
20927 hardcode_into_libs
=yes
20929 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20930 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20931 shlibpath_overrides_runpath
=no
20932 hardcode_into_libs
=yes
20934 *) # from 4.6 on, and DragonFly
20935 shlibpath_overrides_runpath
=yes
20936 hardcode_into_libs
=yes
20945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20946 soname_spec
='${libname}${release}${shared_ext}$major'
20947 shlibpath_var
=LD_LIBRARY_PATH
20948 hardcode_into_libs
=yes
20955 dynamic_linker
="$host_os runtime_loader"
20956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20957 soname_spec
='${libname}${release}${shared_ext}$major'
20958 shlibpath_var
=LIBRARY_PATH
20959 shlibpath_overrides_runpath
=yes
20960 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20961 hardcode_into_libs
=yes
20964 hpux9
* | hpux10
* | hpux11
*)
20965 # Give a soname corresponding to the major version so that dld.sl refuses to
20966 # link against other versions.
20973 hardcode_into_libs
=yes
20974 dynamic_linker
="$host_os dld.so"
20975 shlibpath_var
=LD_LIBRARY_PATH
20976 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20978 soname_spec
='${libname}${release}${shared_ext}$major'
20979 if test "X$HPUX_IA64_MODE" = X32
; then
20980 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20982 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20984 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20988 hardcode_into_libs
=yes
20989 dynamic_linker
="$host_os dld.sl"
20990 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20991 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993 soname_spec
='${libname}${release}${shared_ext}$major'
20994 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20995 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20999 dynamic_linker
="$host_os dld.sl"
21000 shlibpath_var
=SHLIB_PATH
21001 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21003 soname_spec
='${libname}${release}${shared_ext}$major'
21006 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21007 postinstall_cmds
='chmod 555 $lib'
21008 # or fails outright, so override atomically:
21009 install_override_mode
=555
21016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21017 soname_spec
='${libname}${release}${shared_ext}$major'
21018 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21019 shlibpath_var
=LD_LIBRARY_PATH
21020 shlibpath_overrides_runpath
=no
21021 hardcode_into_libs
=yes
21024 irix5
* | irix6
* | nonstopux
*)
21026 nonstopux
*) version_type
=nonstopux
;;
21028 if test "$lt_cv_prog_gnu_ld" = yes; then
21036 soname_spec
='${libname}${release}${shared_ext}$major'
21037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21039 irix5
* | nonstopux
*)
21040 libsuff
= shlibsuff
=
21043 case $LD in # libtool.m4 will add one of these switches to LD
21044 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21045 libsuff
= shlibsuff
= libmagic
=32-bit;;
21046 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21047 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21048 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21049 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21050 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21054 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21055 shlibpath_overrides_runpath
=no
21056 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21057 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21058 hardcode_into_libs
=yes
21061 # No shared lib support for Linux oldld, aout, or coff.
21062 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21066 # This must be Linux ELF.
21067 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21072 soname_spec
='${libname}${release}${shared_ext}$major'
21073 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21074 shlibpath_var
=LD_LIBRARY_PATH
21075 shlibpath_overrides_runpath
=no
21077 # Some binutils ld are patched to set DT_RUNPATH
21078 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21079 $as_echo_n "(cached) " >&6
21081 lt_cv_shlibpath_overrides_runpath
=no
21082 save_LDFLAGS
=$LDFLAGS
21083 save_libdir
=$libdir
21084 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21085 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h. */
21097 if ac_fn_cxx_try_link
"$LINENO"; then :
21098 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21099 lt_cv_shlibpath_overrides_runpath
=yes
21102 rm -f core conftest.err conftest.
$ac_objext \
21103 conftest
$ac_exeext conftest.
$ac_ext
21104 LDFLAGS
=$save_LDFLAGS
21105 libdir
=$save_libdir
21109 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21111 # This implies no fast_install, which is unacceptable.
21112 # Some rework will be needed to allow for fast_install
21113 # before this can be enabled.
21114 hardcode_into_libs
=yes
21116 # Append ld.so.conf contents to the search path
21117 if test -f /etc
/ld.so.conf
; then
21118 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' ' '`
21119 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21122 # We used to test for /lib/ld.so.1 and disable shared libraries on
21123 # powerpc, because MkLinux only supported shared libraries with the
21124 # GNU dynamic linker. Since this was broken with cross compilers,
21125 # most powerpc-linux boxes support dynamic linking these days and
21126 # people can always --disable-shared, the test was removed, and we
21127 # assume the GNU/Linux dynamic linker is in use.
21128 dynamic_linker
='GNU/Linux ld.so'
21135 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21137 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21138 dynamic_linker
='NetBSD (a.out) ld.so'
21140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21141 soname_spec
='${libname}${release}${shared_ext}$major'
21142 dynamic_linker
='NetBSD ld.elf_so'
21144 shlibpath_var
=LD_LIBRARY_PATH
21145 shlibpath_overrides_runpath
=yes
21146 hardcode_into_libs
=yes
21151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21152 shlibpath_var
=LD_LIBRARY_PATH
21153 shlibpath_overrides_runpath
=yes
21160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 soname_spec
='${libname}${release}${shared_ext}$major'
21162 shlibpath_var
=LD_LIBRARY_PATH
21163 shlibpath_overrides_runpath
=no
21164 hardcode_into_libs
=yes
21165 dynamic_linker
='ldqnx.so'
21170 sys_lib_dlsearch_path_spec
="/usr/lib"
21172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21174 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21175 *) need_version
=no
;;
21177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21178 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21179 shlibpath_var
=LD_LIBRARY_PATH
21180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21182 openbsd2.
[89] | openbsd2.
[89].
*)
21183 shlibpath_overrides_runpath
=no
21186 shlibpath_overrides_runpath
=yes
21190 shlibpath_overrides_runpath
=yes
21195 libname_spec
='$name'
21198 library_names_spec
='$libname${shared_ext} $libname.a'
21199 dynamic_linker
='OS/2 ld.exe'
21200 shlibpath_var
=LIBPATH
21203 osf3
* | osf4
* | osf5
*)
21207 soname_spec
='${libname}${release}${shared_ext}$major'
21208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21209 shlibpath_var
=LD_LIBRARY_PATH
21210 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21211 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21223 soname_spec
='${libname}${release}${shared_ext}$major'
21224 shlibpath_var
=LD_LIBRARY_PATH
21225 shlibpath_overrides_runpath
=yes
21226 hardcode_into_libs
=yes
21227 # ldd complains unless libraries are executable
21228 postinstall_cmds
='chmod +x $lib'
21233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21234 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21235 shlibpath_var
=LD_LIBRARY_PATH
21236 shlibpath_overrides_runpath
=yes
21237 if test "$with_gnu_ld" = yes; then
21245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21246 soname_spec
='${libname}${release}${shared_ext}$major'
21247 shlibpath_var
=LD_LIBRARY_PATH
21248 case $host_vendor in
21250 shlibpath_overrides_runpath
=no
21252 runpath_var
=LD_RUN_PATH
21260 shlibpath_overrides_runpath
=no
21261 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21267 if test -d /usr
/nec
;then
21269 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21270 soname_spec
='$libname${shared_ext}.$major'
21271 shlibpath_var
=LD_LIBRARY_PATH
21275 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21276 version_type
=freebsd-elf
21279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21280 soname_spec
='${libname}${release}${shared_ext}$major'
21281 shlibpath_var
=LD_LIBRARY_PATH
21282 shlibpath_overrides_runpath
=yes
21283 hardcode_into_libs
=yes
21284 if test "$with_gnu_ld" = yes; then
21285 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21287 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21290 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21294 sys_lib_dlsearch_path_spec
='/usr/lib'
21298 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21303 shlibpath_var
=LD_LIBRARY_PATH
21304 shlibpath_overrides_runpath
=no
21305 hardcode_into_libs
=yes
21310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21311 soname_spec
='${libname}${release}${shared_ext}$major'
21312 shlibpath_var
=LD_LIBRARY_PATH
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21320 $as_echo "$dynamic_linker" >&6; }
21321 test "$dynamic_linker" = no
&& can_build_shared
=no
21323 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21324 if test "$GCC" = yes; then
21325 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21328 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21329 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21331 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21332 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21374 hardcode_action_CXX
=
21375 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21376 test -n "$runpath_var_CXX" ||
21377 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21379 # We can hardcode non-existent directories.
21380 if test "$hardcode_direct_CXX" != no
&&
21381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21382 # have to relink, otherwise we might link with an installed library
21383 # when we should be linking with a yet-to-be-installed one
21384 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21385 test "$hardcode_minus_L_CXX" != no
; then
21386 # Linking always hardcodes the temporary library directory.
21387 hardcode_action_CXX
=relink
21389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21390 hardcode_action_CXX
=immediate
21393 # We cannot hardcode anything, or else we can only hardcode existing
21395 hardcode_action_CXX
=unsupported
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21398 $as_echo "$hardcode_action_CXX" >&6; }
21400 if test "$hardcode_action_CXX" = relink ||
21401 test "$inherit_rpath_CXX" = yes; then
21402 # Fast installation is not supported
21403 enable_fast_install
=no
21404 elif test "$shlibpath_overrides_runpath" = yes ||
21405 test "$enable_shared" = no
; then
21406 # Fast installation is not necessary
21407 enable_fast_install
=needless
21416 fi # test -n "$compiler"
21422 with_gnu_ld
=$lt_save_with_gnu_ld
21423 lt_cv_path_LDCXX
=$lt_cv_path_LD
21424 lt_cv_path_LD
=$lt_save_path_LD
21425 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21426 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21427 fi # test "$_lt_caught_CXX_error" != yes
21430 ac_cpp
='$CPP $CPPFLAGS'
21431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21450 # Only expand once:
21456 # Identify the assembler which will work hand-in-glove with the newly
21457 # built GCC, so that we can examine its features. This is the assembler
21458 # which will be driven by the driver program.
21460 # If build != host, and we aren't building gas in-tree, we identify a
21461 # build->target assembler and hope that it will have the same features
21462 # as the host->target assembler we'll be using.
21463 gcc_cv_gas_major_version
=
21464 gcc_cv_gas_minor_version
=
21465 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21467 if test "${gcc_cv_as+set}" = set; then :
21471 if test -x "$DEFAULT_ASSEMBLER"; then
21472 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21473 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21474 && test -f ..
/gas
/Makefile \
21475 && test x
$build = x
$host; then
21476 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21477 elif test -x as
$build_exeext; then
21478 # Build using assembler in the current directory.
21479 gcc_cv_as
=.
/as
$build_exeext
21480 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21481 gcc_cv_as
="$AS_FOR_TARGET"
21483 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21484 set dummy
$AS_FOR_TARGET; ac_word
=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21492 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21496 for as_dir
in $PATH
21499 test -z "$as_dir" && as_dir
=.
21500 for ac_exec_ext
in '' $ac_executable_extensions; do
21501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21502 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21513 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21514 if test -n "$gcc_cv_as"; then
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21516 $as_echo "$gcc_cv_as" >&6; }
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519 $as_echo "no" >&6; }
21526 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21528 case "$ORIGINAL_AS_FOR_TARGET" in
21529 .
/as | .
/as
$build_exeext) ;;
21530 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21535 $as_echo_n "checking what assembler to use... " >&6; }
21536 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21537 # Single tree build which includes gas. We want to prefer it
21538 # over whatever linker top-level may have detected, since
21539 # we'll use what we're building after installation anyway.
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21541 $as_echo "newly built gas" >&6; }
21543 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21544 for f
in $gcc_cv_as_bfd_srcdir/configure \
21545 $gcc_cv_as_gas_srcdir/configure \
21546 $gcc_cv_as_gas_srcdir/configure.
in \
21547 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21548 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21549 if test x
$gcc_cv_gas_version != x
; then
21553 case $gcc_cv_gas_version in
21555 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21557 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21558 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21559 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21560 case $gcc_cv_gas_patch_version in
21561 "") gcc_cv_gas_patch_version
="0" ;;
21563 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21564 + $gcc_cv_gas_minor_version \) \* 1000 \
21565 + $gcc_cv_gas_patch_version`
21567 in_tree_gas_is_elf
=no
21568 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21569 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21570 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21572 in_tree_gas_is_elf
=yes
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21576 $as_echo "$gcc_cv_as" >&6; }
21580 # Identify the linker which will work hand-in-glove with the newly
21581 # built GCC, so that we can examine its features. This is the linker
21582 # which will be driven by the driver program.
21584 # If build != host, and we aren't building gas in-tree, we identify a
21585 # build->target linker and hope that it will have the same features
21586 # as the host->target linker we'll be using.
21587 gcc_cv_gld_major_version
=
21588 gcc_cv_gld_minor_version
=
21589 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21590 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21592 if test "${gcc_cv_ld+set}" = set; then :
21596 if test -x "$DEFAULT_LINKER"; then
21597 gcc_cv_ld
="$DEFAULT_LINKER"
21598 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21599 && test -f ..
/ld
/Makefile \
21600 && test x
$build = x
$host; then
21601 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21602 elif test -x collect-ld
$build_exeext; then
21603 # Build using linker in the current directory.
21604 gcc_cv_ld
=.
/collect-ld
$build_exeext
21605 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21606 gcc_cv_ld
="$LD_FOR_TARGET"
21608 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21609 set dummy
$LD_FOR_TARGET; ac_word
=$2
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21611 $as_echo_n "checking for $ac_word... " >&6; }
21612 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21613 $as_echo_n "(cached) " >&6
21617 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21621 for as_dir
in $PATH
21624 test -z "$as_dir" && as_dir
=.
21625 for ac_exec_ext
in '' $ac_executable_extensions; do
21626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21627 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21638 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21639 if test -n "$gcc_cv_ld"; then
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21641 $as_echo "$gcc_cv_ld" >&6; }
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21644 $as_echo "no" >&6; }
21651 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21652 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21653 # if the PLUGIN_LD is set ld-new, just have it as ld
21654 # as that is the installed named.
21655 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21656 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21657 PLUGIN_LD_SUFFIX
=ld
21660 # Check whether --with-plugin-ld was given.
21661 if test "${with_plugin_ld+set}" = set; then :
21662 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21663 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21664 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21670 cat >>confdefs.h
<<_ACEOF
21671 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21675 # Check to see if we are using gold instead of ld
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21677 $as_echo_n "checking whether we are using gold... " >&6; }
21679 if test x
$gcc_cv_ld != x
; then
21680 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21681 |
grep "GNU gold" > /dev
/null
; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21686 $as_echo "$ld_is_gold" >&6; }
21688 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21690 case "$ORIGINAL_LD_FOR_TARGET" in
21691 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21692 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21697 $as_echo_n "checking what linker to use... " >&6; }
21698 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21699 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21700 # Single tree build which includes ld. We want to prefer it
21701 # over whatever linker top-level may have detected, since
21702 # we'll use what we're building after installation anyway.
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21704 $as_echo "newly built ld" >&6; }
21706 in_tree_ld_is_elf
=no
21707 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21708 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21709 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21710 in_tree_ld_is_elf
=yes
21711 elif test "$ld_is_gold" = yes; then
21712 in_tree_ld_is_elf
=yes
21714 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
21716 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21717 if test x
$gcc_cv_gld_version != x
; then
21721 case $gcc_cv_gld_version in
21723 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21725 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21726 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21729 $as_echo "$gcc_cv_ld" >&6; }
21733 # Figure out what nm we will be using.
21734 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21735 if test "${gcc_cv_nm+set}" = set; then :
21739 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21740 && test -f ..
/binutils
/Makefile \
21741 && test x
$build = x
$host; then
21742 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21743 elif test -x nm
$build_exeext; then
21744 gcc_cv_nm
=.
/nm
$build_exeext
21745 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21746 gcc_cv_nm
="$NM_FOR_TARGET"
21748 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21749 set dummy
$NM_FOR_TARGET; ac_word
=$2
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21751 $as_echo_n "checking for $ac_word... " >&6; }
21752 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21753 $as_echo_n "(cached) " >&6
21757 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21761 for as_dir
in $PATH
21764 test -z "$as_dir" && as_dir
=.
21765 for ac_exec_ext
in '' $ac_executable_extensions; do
21766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21767 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21778 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21779 if test -n "$gcc_cv_nm"; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21781 $as_echo "$gcc_cv_nm" >&6; }
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21784 $as_echo "no" >&6; }
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21792 $as_echo_n "checking what nm to use... " >&6; }
21793 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21794 # Single tree build which includes binutils.
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21796 $as_echo "newly built nm" >&6; }
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21800 $as_echo "$gcc_cv_nm" >&6; }
21804 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21806 case "$ORIGINAL_NM_FOR_TARGET" in
21807 .
/nm | .
/nm
$build_exeext) ;;
21808 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21813 # Figure out what objdump we will be using.
21814 if test "${gcc_cv_objdump+set}" = set; then :
21818 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21819 && test -f ..
/binutils
/Makefile \
21820 && test x
$build = x
$host; then
21821 # Single tree build which includes binutils.
21822 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21823 elif test -x objdump
$build_exeext; then
21824 gcc_cv_objdump
=.
/objdump
$build_exeext
21825 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21826 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21828 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21829 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21831 $as_echo_n "checking for $ac_word... " >&6; }
21832 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21833 $as_echo_n "(cached) " >&6
21835 case $gcc_cv_objdump in
21837 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21841 for as_dir
in $PATH
21844 test -z "$as_dir" && as_dir
=.
21845 for ac_exec_ext
in '' $ac_executable_extensions; do
21846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21847 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21858 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21859 if test -n "$gcc_cv_objdump"; then
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21861 $as_echo "$gcc_cv_objdump" >&6; }
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21872 $as_echo_n "checking what objdump to use... " >&6; }
21873 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21874 # Single tree build which includes binutils.
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21876 $as_echo "newly built objdump" >&6; }
21877 elif test x
$gcc_cv_objdump = x
; then
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21879 $as_echo "not found" >&6; }
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21882 $as_echo "$gcc_cv_objdump" >&6; }
21885 # Figure out what readelf we will be using.
21886 if test "${gcc_cv_readelf+set}" = set; then :
21890 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21891 && test -f ..
/binutils
/Makefile \
21892 && test x
$build = x
$host; then
21893 # Single tree build which includes binutils.
21894 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21895 elif test -x readelf
$build_exeext; then
21896 gcc_cv_readelf
=.
/readelf
$build_exeext
21898 # Extract the first word of "readelf", so it can be a program name with args.
21899 set dummy readelf
; ac_word
=$2
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21901 $as_echo_n "checking for $ac_word... " >&6; }
21902 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21903 $as_echo_n "(cached) " >&6
21905 case $gcc_cv_readelf in
21907 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21911 for as_dir
in $PATH
21914 test -z "$as_dir" && as_dir
=.
21915 for ac_exec_ext
in '' $ac_executable_extensions; do
21916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21917 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21928 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21929 if test -n "$gcc_cv_readelf"; then
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21931 $as_echo "$gcc_cv_readelf" >&6; }
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21934 $as_echo "no" >&6; }
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21942 $as_echo_n "checking what readelf to use... " >&6; }
21943 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21944 # Single tree build which includes binutils.
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21946 $as_echo "newly built readelf" >&6; }
21947 elif test x
$gcc_cv_readelf = x
; then
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21949 $as_echo "not found" >&6; }
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21952 $as_echo "$gcc_cv_readelf" >&6; }
21955 # Figure out what assembler alignment features are present.
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21957 $as_echo_n "checking assembler flags... " >&6; }
21958 if test "${gcc_cv_as_flags+set}" = set; then :
21959 $as_echo_n "(cached) " >&6
21962 i
[34567]86-*-linux*)
21963 gcc_cv_as_flags
="--32"
21965 powerpc
*-*-darwin*)
21966 gcc_cv_as_flags
="-arch ppc"
21969 gcc_cv_as_flags
=" "
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21974 $as_echo "$gcc_cv_as_flags" >&6; }
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21977 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21978 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21981 gcc_cv_as_balign_and_p2align
=no
21982 if test $in_tree_gas = yes; then
21983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21984 then gcc_cv_as_balign_and_p2align
=yes
21986 elif test x
$gcc_cv_as != x
; then
21987 $as_echo '.balign 4
21988 .p2align 2' > conftest.s
21989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991 (eval $ac_try) 2>&5
21993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994 test $ac_status = 0; }; }
21996 gcc_cv_as_balign_and_p2align
=yes
21998 echo "configure: failed program was" >&5
22001 rm -f conftest.o conftest.s
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22005 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22006 if test $gcc_cv_as_balign_and_p2align = yes; then
22008 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22013 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22014 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22015 $as_echo_n "(cached) " >&6
22017 gcc_cv_as_max_skip_p2align
=no
22018 if test $in_tree_gas = yes; then
22019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22020 then gcc_cv_as_max_skip_p2align
=yes
22022 elif test x
$gcc_cv_as != x
; then
22023 $as_echo '.p2align 4,,7' > conftest.s
22024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22026 (eval $ac_try) 2>&5
22028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22029 test $ac_status = 0; }; }
22031 gcc_cv_as_max_skip_p2align
=yes
22033 echo "configure: failed program was" >&5
22036 rm -f conftest.o conftest.s
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22040 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22041 if test $gcc_cv_as_max_skip_p2align = yes; then
22043 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22048 $as_echo_n "checking assembler for .literal16... " >&6; }
22049 if test "${gcc_cv_as_literal16+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22052 gcc_cv_as_literal16
=no
22053 if test $in_tree_gas = yes; then
22054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22055 then gcc_cv_as_literal16
=yes
22057 elif test x
$gcc_cv_as != x
; then
22058 $as_echo '.literal16' > conftest.s
22059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22061 (eval $ac_try) 2>&5
22063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22064 test $ac_status = 0; }; }
22066 gcc_cv_as_literal16
=yes
22068 echo "configure: failed program was" >&5
22071 rm -f conftest.o conftest.s
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22075 $as_echo "$gcc_cv_as_literal16" >&6; }
22076 if test $gcc_cv_as_literal16 = yes; then
22078 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22083 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22084 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22087 gcc_cv_as_subsection_m1
=no
22088 if test $in_tree_gas = yes; then
22089 if test $in_tree_gas_is_elf = yes \
22090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22091 then gcc_cv_as_subsection_m1
=yes
22093 elif test x
$gcc_cv_as != x
; then
22094 $as_echo 'conftest_label1: .word 0
22096 conftest_label2: .word 0
22097 .previous' > conftest.s
22098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22100 (eval $ac_try) 2>&5
22102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22103 test $ac_status = 0; }; }
22105 if test x
$gcc_cv_nm != x
; then
22106 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22107 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22108 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22110 else gcc_cv_as_subsection_m1
=yes
22112 rm -f conftest.nm1 conftest.nm2
22115 echo "configure: failed program was" >&5
22118 rm -f conftest.o conftest.s
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22122 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22123 if test $gcc_cv_as_subsection_m1 = yes; then
22125 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22130 $as_echo_n "checking assembler for .weak... " >&6; }
22131 if test "${gcc_cv_as_weak+set}" = set; then :
22132 $as_echo_n "(cached) " >&6
22135 if test $in_tree_gas = yes; then
22136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22137 then gcc_cv_as_weak
=yes
22139 elif test x
$gcc_cv_as != x
; then
22140 $as_echo ' .weak foobar' > conftest.s
22141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22143 (eval $ac_try) 2>&5
22145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22146 test $ac_status = 0; }; }
22150 echo "configure: failed program was" >&5
22153 rm -f conftest.o conftest.s
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22157 $as_echo "$gcc_cv_as_weak" >&6; }
22158 if test $gcc_cv_as_weak = yes; then
22160 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22165 $as_echo_n "checking assembler for .weakref... " >&6; }
22166 if test "${gcc_cv_as_weakref+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
22169 gcc_cv_as_weakref
=no
22170 if test $in_tree_gas = yes; then
22171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22172 then gcc_cv_as_weakref
=yes
22174 elif test x
$gcc_cv_as != x
; then
22175 $as_echo ' .weakref foobar, barfnot' > conftest.s
22176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22178 (eval $ac_try) 2>&5
22180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22181 test $ac_status = 0; }; }
22183 gcc_cv_as_weakref
=yes
22185 echo "configure: failed program was" >&5
22188 rm -f conftest.o conftest.s
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22192 $as_echo "$gcc_cv_as_weakref" >&6; }
22193 if test $gcc_cv_as_weakref = yes; then
22195 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22200 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22201 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22202 $as_echo_n "(cached) " >&6
22204 gcc_cv_as_nsubspa_comdat
=no
22205 if test $in_tree_gas = yes; then
22206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22207 then gcc_cv_as_nsubspa_comdat
=yes
22209 elif test x
$gcc_cv_as != x
; then
22210 $as_echo ' .SPACE $TEXT$
22211 .NSUBSPA $CODE$,COMDAT' > conftest.s
22212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22214 (eval $ac_try) 2>&5
22216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22217 test $ac_status = 0; }; }
22219 gcc_cv_as_nsubspa_comdat
=yes
22221 echo "configure: failed program was" >&5
22224 rm -f conftest.o conftest.s
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22228 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22229 if test $gcc_cv_as_nsubspa_comdat = yes; then
22231 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22235 # .hidden needs to be supported in both the assembler and the linker,
22236 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22237 # This is irritatingly difficult to feature test for; we have to check the
22238 # date string after the version number. If we've got an in-tree
22239 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22241 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22243 $as_echo_n "checking assembler for .hidden... " >&6; }
22244 if test "${gcc_cv_as_hidden+set}" = set; then :
22245 $as_echo_n "(cached) " >&6
22247 gcc_cv_as_hidden
=no
22248 if test $in_tree_gas = yes; then
22249 if test $in_tree_gas_is_elf = yes \
22250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22251 then gcc_cv_as_hidden
=yes
22253 elif test x
$gcc_cv_as != x
; then
22254 $as_echo ' .hidden foobar
22255 foobar:' > conftest.s
22256 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22258 (eval $ac_try) 2>&5
22260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22261 test $ac_status = 0; }; }
22264 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22265 # STV_HIDDEN, so disable .hidden support if so.
22266 case "${target}" in
22267 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22268 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22269 cat > conftest.s
<<EOF
22274 .set default,hidden
22276 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22277 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22278 grep '\.hidden default' > /dev
/null
; then
22279 gcc_cv_as_hidden
=no
22281 gcc_cv_as_hidden
=yes
22284 # Assume bug is present if objdump is missing.
22285 gcc_cv_as_hidden
=no
22289 gcc_cv_as_hidden
=yes
22293 echo "configure: failed program was" >&5
22296 rm -f conftest.o conftest.s
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22300 $as_echo "$gcc_cv_as_hidden" >&6; }
22302 case "${target}" in
22304 # Darwin as has some visibility support, though with a different syntax.
22305 gcc_cv_as_hidden
=yes
22309 # gnu_indirect_function type is an extension proposed at
22310 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22311 # selection of function implementation
22312 # Check whether --enable-gnu-indirect-function was given.
22313 if test "${enable_gnu_indirect_function+set}" = set; then :
22314 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22316 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22317 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22320 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22323 if test x
$enable_gnu_indirect_function = xyes
; then
22325 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22329 if test $in_tree_ld != yes ; then
22330 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22331 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22332 if test x
"$ld_is_gold" = xyes
; then
22333 # GNU gold --version looks like this:
22335 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22337 # We extract the binutils version which is more familiar and specific
22338 # than the gold version.
22339 ld_vers
=`echo $ld_ver | sed -n \
22340 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22342 # GNU ld --version looks like this:
22344 # GNU ld (GNU Binutils) 2.21.51.20110225
22345 ld_vers
=`echo $ld_ver | sed -n \
22346 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22348 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'`
22349 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22350 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22351 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22353 case "${target}" in
22355 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22358 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22359 # /usr/ccs/bin/ld has been configured.
22360 ld_ver
=`$gcc_cv_ld -V 2>&1`
22361 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22362 ld_vers
=`echo $ld_ver | sed -n \
22363 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22364 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22365 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22373 $as_echo_n "checking linker for .hidden support... " >&6; }
22374 if test "${gcc_cv_ld_hidden+set}" = set; then :
22375 $as_echo_n "(cached) " >&6
22377 if test $in_tree_ld = yes ; then
22378 gcc_cv_ld_hidden
=no
22379 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 \
22380 && test $in_tree_ld_is_elf = yes; then
22381 gcc_cv_ld_hidden
=yes
22384 gcc_cv_ld_hidden
=yes
22385 if test x
"$ld_is_gold" = xyes
; then
22387 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22388 case "${target}" in
22389 mmix-knuth-mmixware
)
22390 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22391 gcc_cv_ld_hidden
=no
22394 if test 0"$ld_date" -lt 20020404; then
22395 if test -n "$ld_date"; then
22396 # If there was date string, but was earlier than 2002-04-04, fail
22397 gcc_cv_ld_hidden
=no
22398 elif test -z "$ld_vers"; then
22399 # If there was no date string nor ld version number, something is wrong
22400 gcc_cv_ld_hidden
=no
22402 test -z "$ld_vers_patch" && ld_vers_patch
=0
22403 if test "$ld_vers_major" -lt 2; then
22404 gcc_cv_ld_hidden
=no
22405 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22406 gcc_cv_ld_hidden
="no"
22407 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22408 gcc_cv_ld_hidden
=no
22413 case "${target}" in
22415 # Darwin ld has some visibility support.
22416 gcc_cv_ld_hidden
=yes
22418 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22419 gcc_cv_ld_hidden
=yes
22421 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22422 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22423 # .symbolic was only added in Solaris 9 12/02.
22424 gcc_cv_ld_hidden
=yes
22427 gcc_cv_ld_hidden
=no
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22434 $as_echo "$gcc_cv_ld_hidden" >&6; }
22435 libgcc_visibility
=no
22438 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22439 libgcc_visibility
=yes
22441 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22446 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22447 gcc_cv_ld_ro_rw_mix
=unknown
22448 if test $in_tree_ld = yes ; then
22449 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 \
22450 && test $in_tree_ld_is_elf = yes; then
22451 gcc_cv_ld_ro_rw_mix
=read-write
22453 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22454 echo '.section myfoosect, "a"' > conftest1.s
22455 echo '.section myfoosect, "aw"' > conftest2.s
22456 echo '.byte 1' >> conftest2.s
22457 echo '.section myfoosect, "a"' > conftest3.s
22458 echo '.byte 0' >> conftest3.s
22459 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22460 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22461 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22462 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22463 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22464 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22465 | sed -e '/myfoosect/!d' -e N`
22466 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22467 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22468 gcc_cv_ld_ro_rw_mix
=read-only
22470 gcc_cv_ld_ro_rw_mix
=read-write
22474 rm -f conftest.
* conftest
[123].
*
22476 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22478 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22482 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22484 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22485 case "${target}" in
22488 # Solaris 2 ld -V output looks like this for a regular version:
22490 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22492 # but test versions add stuff at the end:
22494 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22496 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22497 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22498 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22499 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22500 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22501 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22507 # Check whether --enable-initfini-array was given.
22508 if test "${enable_initfini_array+set}" = set; then :
22509 enableval
=$enable_initfini_array;
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22513 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22514 if test "${gcc_cv_initfini_array+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22517 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22518 case "${target}" in
22520 if test "$cross_compiling" = yes; then :
22521 gcc_cv_initfini_array
=no
22523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22527 #error Not an ELF OS
22529 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22530 if it can be used. */
22532 int main (void) { return x; }
22533 int foo (void) { x = 0; }
22534 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22537 if ac_fn_c_try_run
"$LINENO"; then :
22538 gcc_cv_initfini_array
=yes
22540 gcc_cv_initfini_array
=no
22542 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22543 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22547 gcc_cv_initfini_array
=no
22548 if test $in_tree_ld = yes ; then
22549 if test "$gcc_cv_gld_major_version" -eq 2 \
22550 -a "$gcc_cv_gld_minor_version" -ge 22 \
22551 -o "$gcc_cv_gld_major_version" -gt 2 \
22552 && test $in_tree_ld_is_elf = yes; then
22553 gcc_cv_initfini_array
=yes
22555 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22556 cat > conftest.s
<<\EOF
22557 .section .dtors
,"a",%progbits
22559 .byte
'A', 'A', 'A', 'A'
22560 .section .ctors
,"a",%progbits
22562 .byte
'B', 'B', 'B', 'B'
22563 .section .fini_array
.65530,"a",%progbits
22565 .byte
'C', 'C', 'C', 'C'
22566 .section .init_array
.65530,"a",%progbits
22568 .byte
'D', 'D', 'D', 'D'
22569 .section .dtors
.64528,"a",%progbits
22571 .byte
'E', 'E', 'E', 'E'
22572 .section .ctors
.64528,"a",%progbits
22574 .byte
'F', 'F', 'F', 'F'
22575 .section .fini_array
.01005,"a",%progbits
22577 .byte
'G', 'G', 'G', 'G'
22578 .section .init_array
.01005,"a",%progbits
22580 .byte
'H', 'H', 'H', 'H'
22585 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22586 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22587 && $gcc_cv_objdump -s -j .init_array conftest \
22588 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22589 && $gcc_cv_objdump -s -j .fini_array conftest \
22590 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22591 gcc_cv_initfini_array
=yes
22593 rm -f conftest conftest.
*
22595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22599 # error Not an ELF OS
22601 #include <stdlib.h>
22602 #if defined __GLIBC_PREREQ
22603 # if __GLIBC_PREREQ (2, 4)
22605 # error GLIBC 2.4 required
22608 # if defined __sun__ && defined __svr4__
22609 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22611 # error The C library not known to support .init_array/.fini_array
22616 if ac_fn_c_try_cpp
"$LINENO"; then :
22619 gcc_cv_initfini_array
=no
22621 rm -f conftest.err conftest.
$ac_ext;;
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22625 $as_echo_n "checking cross compile... guessing... " >&6; }
22626 gcc_cv_initfini_array
=no
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22630 $as_echo "$gcc_cv_initfini_array" >&6; }
22631 enable_initfini_array
=$gcc_cv_initfini_array
22635 if test $enable_initfini_array = yes; then
22637 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22641 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22643 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22644 if test "${gcc_cv_as_leb128+set}" = set; then :
22645 $as_echo_n "(cached) " >&6
22647 gcc_cv_as_leb128
=no
22648 if test $in_tree_gas = yes; then
22649 if test $in_tree_gas_is_elf = yes \
22650 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22651 then gcc_cv_as_leb128
=yes
22653 elif test x
$gcc_cv_as != x
; then
22660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662 (eval $ac_try) 2>&5
22664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665 test $ac_status = 0; }; }
22667 # GAS versions before 2.11 do not support uleb128,
22668 # despite appearing to.
22669 # ??? There exists an elf-specific test that will crash
22670 # the assembler. Perhaps it's better to figure out whether
22671 # arbitrary sections are supported and try the test.
22672 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22673 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22674 as_vers
=`echo $as_ver | sed -n \
22675 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22676 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22677 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22678 if test $as_major -eq 2 && test $as_minor -lt 11
22680 else gcc_cv_as_leb128
=yes
22684 echo "configure: failed program was" >&5
22687 rm -f conftest.o conftest.s
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22691 $as_echo "$gcc_cv_as_leb128" >&6; }
22692 if test $gcc_cv_as_leb128 = yes; then
22694 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22698 # Check if we have assembler support for unwind directives.
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22700 $as_echo_n "checking assembler for cfi directives... " >&6; }
22701 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22704 gcc_cv_as_cfi_directive
=no
22705 if test x
$gcc_cv_as != x
; then
22711 .cfi_escape 1, 2, 3, 4, 5
22712 .cfi_endproc' > conftest.s
22713 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22722 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22723 # read-only and read-write sections, we need to make sure that the
22724 # assembler used emits read-write .eh_frame sections.
22725 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22726 if test "x$gcc_cv_objdump" != x
; then
22727 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22728 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22729 gcc_cv_as_cfi_directive
=no
22732 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22733 # On Solaris/x86, make sure that GCC and gas agree on using
22734 # read-only .eh_frame sections for 64-bit.
22735 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22736 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22737 sed -e /.eh_frame
/!d
-e N | \
22738 grep READONLY
> /dev
/null
; then
22739 gcc_cv_as_cfi_directive
=yes
22741 gcc_cv_as_cfi_directive
=no
22745 gcc_cv_as_cfi_directive
=yes
22750 # no objdump, err on the side of caution
22751 gcc_cv_as_cfi_directive
=no
22754 gcc_cv_as_cfi_directive
=yes
22758 gcc_cv_as_cfi_directive
=yes
22762 echo "configure: failed program was" >&5
22765 rm -f conftest.o conftest.s
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22769 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22771 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22773 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22774 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22775 $as_echo_n "(cached) " >&6
22777 gcc_cv_as_cfi_advance_working
=no
22778 if test x
$gcc_cv_as != x
; then
22781 .cfi_adjust_cfa_offset 64
22783 .cfi_adjust_cfa_offset 128
22784 .cfi_endproc' > conftest.s
22785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }
22793 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22794 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22795 gcc_cv_as_cfi_advance_working
=yes
22799 echo "configure: failed program was" >&5
22802 rm -f conftest.o conftest.s
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22806 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22809 # no objdump, err on the side of caution
22810 gcc_cv_as_cfi_advance_working
=no
22814 cat >>confdefs.h
<<_ACEOF
22815 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22816 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22822 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22823 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22824 $as_echo_n "(cached) " >&6
22826 gcc_cv_as_cfi_personality_directive
=no
22827 if test x
$gcc_cv_as != x
; then
22830 .cfi_personality 0, symbol
22831 .cfi_endproc' > conftest.s
22832 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22834 (eval $ac_try) 2>&5
22836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22837 test $ac_status = 0; }; }
22839 gcc_cv_as_cfi_personality_directive
=yes
22841 echo "configure: failed program was" >&5
22844 rm -f conftest.o conftest.s
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22848 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22851 cat >>confdefs.h
<<_ACEOF
22852 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22853 then echo 1; else echo 0; fi`
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22858 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22859 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22860 $as_echo_n "(cached) " >&6
22862 gcc_cv_as_cfi_sections_directive
=no
22863 if test x
$gcc_cv_as != x
; then
22865 .cfi_sections .debug_frame, .eh_frame
22867 .cfi_endproc' > conftest.s
22868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22870 (eval $ac_try) 2>&5
22872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873 test $ac_status = 0; }; }
22876 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22877 # Need to check that we generated the correct relocation for the
22878 # .debug_frame section. This was fixed for binutils 2.21.
22879 gcc_cv_as_cfi_sections_directive
=no
22880 if test "x$gcc_cv_objdump" != x
; then
22881 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22882 grep secrel
> /dev
/null
; then
22883 gcc_cv_as_cfi_sections_directive
=yes
22888 gcc_cv_as_cfi_sections_directive
=yes
22892 echo "configure: failed program was" >&5
22895 rm -f conftest.o conftest.s
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22899 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22903 cat >>confdefs.h
<<_ACEOF
22904 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22905 then echo 1; else echo 0; fi`
22909 # GAS versions up to and including 2.11.0 may mis-optimize
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22912 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22913 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22916 gcc_cv_as_eh_frame
=no
22917 if test $in_tree_gas = yes; then
22918 if test $in_tree_gas_is_elf = yes \
22919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22920 then gcc_cv_as_eh_frame
=yes
22922 elif test x
$gcc_cv_as != x
; then
22929 .section .eh_frame,"aw",@progbits
22931 .4byte .LECIE1-.LSCIE1
22945 .4byte .LEFDE1-.LASFDE1
22947 .4byte .LASFDE1-__FRAME_BEGIN__
22954 .LEFDE1:' > conftest.s
22955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22957 (eval $ac_try) 2>&5
22959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22960 test $ac_status = 0; }; }
22962 cat > conftest.lit
<<EOF
22963 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22964 0010 01000000 12000000 18000000 00000000 ................
22965 0020 08000000 04080000 0044 .........D
22967 cat > conftest.big
<<EOF
22968 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22969 0010 00000001 00000012 00000018 00000000 ................
22970 0020 00000008 04000000 0844 .........D
22972 # If the assembler didn't choke, and we can objdump,
22973 # and we got the correct data, then succeed.
22974 # The text in the here-document typically retains its unix-style line
22975 # endings, while the output of objdump will use host line endings.
22976 # Therefore, use diff -b for the comparisons.
22977 if test x
$gcc_cv_objdump != x \
22978 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22979 |
tail -3 > conftest.got \
22980 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22981 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22983 gcc_cv_as_eh_frame
=yes
22984 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22986 (eval $ac_try) 2>&5
22988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22989 test $ac_status = 0; }; }; then
22990 gcc_cv_as_eh_frame
=buggy
22992 # Uh oh, what do we do now?
22993 gcc_cv_as_eh_frame
=no
22996 echo "configure: failed program was" >&5
22999 rm -f conftest.o conftest.s
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23003 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23006 if test $gcc_cv_as_eh_frame = buggy
; then
23008 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23013 $as_echo_n "checking assembler for section merging support... " >&6; }
23014 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23015 $as_echo_n "(cached) " >&6
23017 gcc_cv_as_shf_merge
=no
23018 if test $in_tree_gas = yes; then
23019 if test $in_tree_gas_is_elf = yes \
23020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23021 then gcc_cv_as_shf_merge
=yes
23023 elif test x
$gcc_cv_as != x
; then
23024 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23027 (eval $ac_try) 2>&5
23029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23030 test $ac_status = 0; }; }
23032 gcc_cv_as_shf_merge
=yes
23034 echo "configure: failed program was" >&5
23037 rm -f conftest.o conftest.s
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23041 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23043 if test $gcc_cv_as_shf_merge = no
; then
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23045 $as_echo_n "checking assembler for section merging support... " >&6; }
23046 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23047 $as_echo_n "(cached) " >&6
23049 gcc_cv_as_shf_merge
=no
23050 if test $in_tree_gas = yes; then
23051 if test $in_tree_gas_is_elf = yes \
23052 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23053 then gcc_cv_as_shf_merge
=yes
23055 elif test x
$gcc_cv_as != x
; then
23056 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23059 (eval $ac_try) 2>&5
23061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23062 test $ac_status = 0; }; }
23064 gcc_cv_as_shf_merge
=yes
23066 echo "configure: failed program was" >&5
23069 rm -f conftest.o conftest.s
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23073 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23077 cat >>confdefs.h
<<_ACEOF
23078 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23083 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23084 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23085 $as_echo_n "(cached) " >&6
23087 gcc_cv_as_comdat_group
=no
23088 if test $in_tree_gas = yes; then
23089 if test $in_tree_gas_is_elf = yes \
23090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23091 then gcc_cv_as_comdat_group
=yes
23093 elif test x
$gcc_cv_as != x
; then
23094 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23102 gcc_cv_as_comdat_group
=yes
23104 echo "configure: failed program was" >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23111 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23113 if test $gcc_cv_as_comdat_group = yes; then
23114 gcc_cv_as_comdat_group_percent
=no
23115 gcc_cv_as_comdat_group_group
=no
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23118 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23119 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23120 $as_echo_n "(cached) " >&6
23122 gcc_cv_as_comdat_group_percent
=no
23123 if test $in_tree_gas = yes; then
23124 if test $in_tree_gas_is_elf = yes \
23125 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23126 then gcc_cv_as_comdat_group_percent
=yes
23128 elif test x
$gcc_cv_as != x
; then
23129 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23132 (eval $ac_try) 2>&5
23134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23135 test $ac_status = 0; }; }
23137 gcc_cv_as_comdat_group_percent
=yes
23139 echo "configure: failed program was" >&5
23142 rm -f conftest.o conftest.s
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23146 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23148 if test $gcc_cv_as_comdat_group_percent = yes; then
23149 gcc_cv_as_comdat_group_group
=no
23151 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23152 gcc_cv_as_comdat_group_group
=no
23154 case "${target}" in
23155 # Sun as uses a completely different syntax.
23157 case "${target}" in
23158 sparc
*-*-solaris2*)
23160 .group foo,".text%foo",#comdat
23161 .section ".text%foo", #alloc,#execinstr,#progbits
23166 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23168 .group foo,.text%foo,#comdat
23169 .section .text%foo, "ax", @progbits
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23176 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23177 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23178 $as_echo_n "(cached) " >&6
23180 gcc_cv_as_comdat_group_group
=no
23181 if test x
$gcc_cv_as != x
; then
23182 $as_echo "$conftest_s" > conftest.s
23183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23185 (eval $ac_try) 2>&5
23187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23188 test $ac_status = 0; }; }
23190 gcc_cv_as_comdat_group_group
=yes
23192 echo "configure: failed program was" >&5
23195 rm -f conftest.o conftest.s
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23199 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23205 if test x
"$ld_is_gold" = xyes
; then
23207 elif test $in_tree_ld = yes ; then
23209 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 \
23210 && test $in_tree_ld_is_elf = yes; then
23213 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23215 if test 0"$ld_date" -lt 20050308; then
23216 if test -n "$ld_date"; then
23217 # If there was date string, but was earlier than 2005-03-08, fail
23219 elif test "$ld_vers_major" -lt 2; then
23221 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23226 case "${target}" in
23227 *-*-solaris2.1
[1-9]*)
23229 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23230 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23233 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23234 # least ld version 1.2267.
23235 if test "$ld_vers_major" -gt 1; then
23237 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23239 elif test "$ld_vers_minor" -ge 2267; then
23244 # Assume linkers other than GNU ld don't support COMDAT group.
23249 # Allow overriding the automatic COMDAT group tests above.
23250 # Check whether --enable-comdat was given.
23251 if test "${enable_comdat+set}" = set; then :
23252 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23255 if test $comdat_group = no
; then
23256 gcc_cv_as_comdat_group
=no
23257 gcc_cv_as_comdat_group_percent
=no
23258 gcc_cv_as_comdat_group_group
=no
23261 cat >>confdefs.h
<<_ACEOF
23262 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23263 || test $gcc_cv_as_comdat_group_percent = yes \
23264 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23269 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23270 if test "${gcc_cv_as_discriminator+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23273 gcc_cv_as_discriminator
=no
23274 if test $in_tree_gas = yes; then
23275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23276 then gcc_cv_as_discriminator
=yes
23278 elif test x
$gcc_cv_as != x
; then
23281 .loc 1 1 0 discriminator 1' > conftest.s
23282 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23284 (eval $ac_try) 2>&5
23286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23287 test $ac_status = 0; }; }
23289 gcc_cv_as_discriminator
=yes
23291 echo "configure: failed program was" >&5
23294 rm -f conftest.o conftest.s
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23298 $as_echo "$gcc_cv_as_discriminator" >&6; }
23299 if test $gcc_cv_as_discriminator = yes; then
23301 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23305 # Thread-local storage - the check is heavily parameterized.
23313 .section ".tdata","awT",@progbits
23316 ldq $27,__tls_get_addr($29) !literal!1
23317 lda $16,foo($29) !tlsgd!1
23318 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23319 ldq $27,__tls_get_addr($29) !literal!2
23320 lda $16,foo($29) !tlsldm!2
23321 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23322 ldq $1,foo($29) !gotdtprel
23323 ldah $2,foo($29) !dtprelhi
23324 lda $3,foo($2) !dtprello
23325 lda $4,foo($29) !dtprel
23326 ldq $1,foo($29) !gottprel
23327 ldah $2,foo($29) !tprelhi
23328 lda $3,foo($2) !tprello
23329 lda $4,foo($29) !tprel'
23332 tls_as_opt
=--fatal-warnings
23334 cris-
*-*|crisv32-
*-*)
23336 .section ".tdata","awT",@progbits
23343 tls_as_opt
=--fatal-warnings
23347 .section ".tdata","awT",@progbits
23350 call #gettlsoff(x)'
23359 .section ".tdata","awT",@progbits
23363 addil LT%foo-$tls_gdidx$,gp
23364 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23367 addil LT%foo-$tls_ldidx$,gp
23369 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23370 addil LR%foo-$tls_dtpoff$,%ret0
23371 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23373 addil LT%foo-$tls_ieoff$,gp
23374 ldw RT%foo-$tls_ieoff$(%r1),%t2
23377 addil LR%foo-$tls_leoff$,%t1
23378 ldo RR%foo-$tls_leoff$(%r1),%t2'
23381 tls_as_opt
=--fatal-warnings
23385 .section ".tdata","awT",%progbits
23388 .word foo(gottpoff)
23396 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23398 i
[34567]86-*-solaris2.
*)
23400 tga_func
=___tls_get_addr
23402 x86_64-
*-solaris2.1
[0-9]*)
23404 tga_func
=__tls_get_addr
23410 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23412 .section .tdata,"awt",@progbits'
23416 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23420 .section ".tdata","awT",@progbits'
23423 tls_as_opt
="--fatal-warnings"
23425 conftest_s
="$conftest_s
23429 leal foo@tlsgd(,%ebx,1), %eax
23430 leal foo@tlsldm(%ebx), %eax
23431 leal foo@dtpoff(%eax), %edx
23432 movl foo@gottpoff(%ebx), %eax
23433 subl foo@gottpoff(%ebx), %eax
23434 addl foo@gotntpoff(%ebx), %eax
23435 movl foo@indntpoff, %eax
23436 movl \$foo@tpoff, %eax
23437 subl \$foo@tpoff, %eax
23438 leal foo@ntpoff(%ecx), %eax"
23442 .section ".tdata","awT",@progbits
23446 leaq foo@TLSGD(%rip), %rdi
23447 leaq foo@TLSLD(%rip), %rdi
23448 leaq foo@DTPOFF(%rax), %rdx
23449 movq foo@GOTTPOFF(%rip), %rax
23450 movq $foo@TPOFF, %rax'
23453 tls_as_opt
=--fatal-warnings
23457 .section ".tdata","awT",@progbits
23460 addl r16 = @ltoff(@dtpmod(foo#)), gp
23461 addl r17 = @ltoff(@dtprel(foo#)), gp
23462 addl r18 = @ltoff(@tprel(foo#)), gp
23463 addl r19 = @dtprel(foo#), gp
23464 adds r21 = @dtprel(foo#), r13
23465 movl r23 = @dtprel(foo#)
23466 addl r20 = @tprel(foo#), gp
23467 adds r22 = @tprel(foo#), r13
23468 movl r24 = @tprel(foo#)'
23471 tls_as_opt
=--fatal-warnings
23475 .section .tdata,"awT",@progbits
23479 addiu $4, $28, %tlsgd(x)
23480 addiu $4, $28, %tlsldm(x)
23481 lui $4, %dtprel_hi(x)
23482 addiu $4, $4, %dtprel_lo(x)
23483 lw $4, %gottprel(x)($28)
23484 lui $4, %tprel_hi(x)
23485 addiu $4, $4, %tprel_lo(x)'
23488 tls_as_opt
='-32 --fatal-warnings'
23492 .section .tdata,"awT",@progbits
23497 move.l x@TLSGD(%a5),%a0
23498 move.l x@TLSLDM(%a5),%a0
23499 move.l x@TLSLDO(%a5),%a0
23500 move.l x@TLSIE(%a5),%a0
23501 move.l x@TLSLE(%a5),%a0'
23504 tls_as_opt
='--fatal-warnings'
23508 .section ".tdata","awT",%progbits
23512 add x0, x0, #:tlsgd_lo12:x
23517 tls_as_opt
='--fatal-warnings'
23521 .extern __get_tpointer
23539 .section ".tdata","awT",@progbits
23547 addi 3,31,ld0@got@tlsgd
23549 addi 3,31,x1@got@tlsld
23552 addis 9,3,x2@dtprel@ha
23553 addi 9,9,x2@dtprel@l
23554 lwz 9,x3@got@tprel(31)
23557 addis 9,2,x2@tprel@ha
23558 addi 9,9,x2@tprel@l'
23561 tls_as_opt
="-a32 --fatal-warnings"
23565 .section ".tdata","awT",@progbits
23573 addi 3,2,ld0@got@tlsgd
23579 addi 3,2,x1@got@tlsld
23585 addis 9,3,x2@dtprel@ha
23586 addi 9,9,x2@dtprel@l
23589 ld 9,x3@got@dtprel(2)
23595 tls_as_opt
="-a64 --fatal-warnings"
23599 .section ".tdata","awT",@progbits
23606 .long foo@GOTNTPOFF
23607 .long foo@INDNTPOFF
23608 l %r1,foo@GOTNTPOFF(%r12)
23609 l %r1,0(%r1):tls_load:foo
23610 bas %r14,0(%r1,%r13):tls_gdcall:foo
23611 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23614 tls_as_opt
="-m31 --fatal-warnings"
23618 .section ".tdata","awT",@progbits
23625 .quad foo@GOTNTPOFF
23626 lg %r1,foo@GOTNTPOFF(%r12)
23627 larl %r1,foo@INDNTPOFF
23628 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23629 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23632 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23634 sh-
*-* | sh
[34]-*-*)
23636 .section ".tdata","awT",@progbits
23646 tls_as_opt
=--fatal-warnings
23650 sparc
*-sun-solaris2.
*)
23652 tga_func
=__tls_get_addr
23658 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23660 .section ".tdata",#alloc,#write,#tls'
23665 .section ".tdata","awT",@progbits'
23668 tls_as_opt
="-32 --fatal-warnings"
23670 conftest_s
="$conftest_s
23673 sethi %tgd_hi22(foo), %o0
23674 add %o0, %tgd_lo10(foo), %o1
23675 add %l7, %o1, %o0, %tgd_add(foo)
23676 call __tls_get_addr, %tgd_call(foo)
23677 sethi %tldm_hi22(foo), %l1
23678 add %l1, %tldm_lo10(foo), %l2
23679 add %l7, %l2, %o0, %tldm_add(foo)
23680 call __tls_get_addr, %tldm_call(foo)
23681 sethi %tldo_hix22(foo), %l3
23682 xor %l3, %tldo_lox10(foo), %l4
23683 add %o0, %l4, %l5, %tldo_add(foo)
23684 sethi %tie_hi22(foo), %o3
23685 add %o3, %tie_lo10(foo), %o3
23686 ld [%l7 + %o3], %o2, %tie_ld(foo)
23687 add %g7, %o2, %o4, %tie_add(foo)
23688 sethi %tle_hix22(foo), %l1
23689 xor %l1, %tle_lox10(foo), %o5
23690 ld [%g7 + %o5], %o1"
23694 .section ".tdata","awT",@progbits
23697 addli r0, zero, tls_gd(foo)
23698 auli r0, zero, tls_gd_ha16(foo)
23699 addli r0, r0, tls_gd_lo16(foo)
23701 addli r0, zero, tls_ie(foo)
23702 auli r0, r0, tls_ie_ha16(foo)
23703 addli r0, r0, tls_ie_lo16(foo)'
23706 tls_as_opt
="--fatal-warnings"
23710 .section ".tdata","awT",@progbits
23713 shl16insli r0, zero, hw0_last_tls_gd(foo)
23714 shl16insli r0, zero, hw1_last_tls_gd(foo)
23715 shl16insli r0, r0, hw0_tls_gd(foo)
23717 shl16insli r0, zero, hw1_last_tls_ie(foo)
23718 shl16insli r0, r0, hw0_tls_ie(foo)'
23721 tls_as_opt
="--fatal-warnings"
23725 .section ".tdata","awT",@progbits
23728 movi a8, foo@TLSFUNC
23729 movi a10, foo@TLSARG
23730 callx8.tls a8, foo@TLSCALL'
23736 if test "x$enable_tls" = xno
; then
23737 : # TLS explicitly disabled.
23738 elif test "x$enable_tls" = xyes
; then
23739 set_have_as_tls
=yes # TLS explicitly enabled.
23740 elif test -z "$tls_first_major"; then
23741 : # If we don't have a check, assume no support.
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23744 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23745 if test "${gcc_cv_as_tls+set}" = set; then :
23746 $as_echo_n "(cached) " >&6
23749 if test $in_tree_gas = yes; then
23750 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23751 then gcc_cv_as_tls
=yes
23753 elif test x
$gcc_cv_as != x
; then
23754 $as_echo "$conftest_s" > conftest.s
23755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23757 (eval $ac_try) 2>&5
23759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23760 test $ac_status = 0; }; }
23764 echo "configure: failed program was" >&5
23767 rm -f conftest.o conftest.s
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23771 $as_echo "$gcc_cv_as_tls" >&6; }
23772 if test $gcc_cv_as_tls = yes; then
23773 set_have_as_tls
=yes
23777 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23778 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23779 # Sun style that Sun ld and GCC don't support any longer.
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23782 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23784 # Check ld and ld.so.1 TLS support.
23785 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23786 # Assume all interesting versions of GNU ld have TLS support.
23787 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23791 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23793 min_tls_ld_vers_minor
=374
23795 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23796 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23797 min_tls_ld_vers_minor
=343
23800 if test "$ld_vers_major" -gt 1 || \
23801 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23808 $as_echo "$ld_tls_support" >&6; }
23811 save_LDFLAGS
="$LDFLAGS"
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23816 $as_echo_n "checking library containing $tga_func... " >&6; }
23817 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23818 # (32-bit x86) only lived in libthread, so check for that. Keep
23819 # set_have_as_tls if found, disable if not.
23820 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23822 $as_echo_n "checking for library containing $tga_func... " >&6; }
23823 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23824 $as_echo_n "(cached) " >&6
23826 ac_func_search_save_LIBS
=$LIBS
23827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h. */
23830 /* Override any GCC internal prototype to avoid an error.
23831 Use char because int might match the return type of a GCC
23832 builtin and then its argument prototype would still apply. */
23840 return $tga_func ();
23845 for ac_lib
in '' thread
; do
23846 if test -z "$ac_lib"; then
23847 ac_res
="none required"
23850 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23852 if ac_fn_c_try_link
"$LINENO"; then :
23853 eval "$as_ac_Search=\$ac_res"
23855 rm -f core conftest.err conftest.
$ac_objext \
23857 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23861 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23864 eval "$as_ac_Search=no"
23866 rm conftest.
$ac_ext
23867 LIBS
=$ac_func_search_save_LIBS
23869 eval ac_res
=\$
$as_ac_Search
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23871 $as_echo "$ac_res" >&6; }
23872 eval ac_res
=\$
$as_ac_Search
23873 if test "$ac_res" != no
; then :
23874 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23880 # Clear LIBS if we cannot support TLS.
23881 if test $set_have_as_tls = no
; then
23884 # Always define LIB_TLS_SPEC, even without TLS support.
23886 cat >>confdefs.h
<<_ACEOF
23887 #define LIB_TLS_SPEC "$LIBS"
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23891 $as_echo "$LIBS" >&6; }
23894 LDFLAGS
="$save_LDFLAGS"
23897 if test $set_have_as_tls = yes ; then
23899 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23903 # Target-specific assembler checks.
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23906 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23907 gcc_cv_ld_static_dynamic
=no
23908 gcc_cv_ld_static_option
='-Bstatic'
23909 gcc_cv_ld_dynamic_option
='-Bdynamic'
23910 if test $in_tree_ld = yes ; then
23911 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
23912 gcc_cv_ld_static_dynamic
=yes
23914 elif test x
$gcc_cv_ld != x
; then
23915 # Check if linker supports -Bstatic/-Bdynamic option
23916 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23917 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23918 gcc_cv_ld_static_dynamic
=yes
23921 # AIX ld uses -b flags
23922 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23923 gcc_cv_ld_static_dynamic
=yes
23924 gcc_cv_ld_static_option
="-bstatic"
23925 gcc_cv_ld_dynamic_option
="-bdynamic"
23927 # HP-UX ld uses -a flags to select between shared and archive.
23929 if test x
"$gnu_ld" = xno
; then
23930 gcc_cv_ld_static_dynamic
=yes
23931 gcc_cv_ld_static_option
="-aarchive_shared"
23932 gcc_cv_ld_dynamic_option
="-adefault"
23935 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23937 gcc_cv_ld_static_dynamic
=yes
23942 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23944 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23947 cat >>confdefs.h
<<_ACEOF
23948 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23952 cat >>confdefs.h
<<_ACEOF
23953 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23958 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23960 if test x
"$demangler_in_ld" = xyes
; then
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23962 $as_echo_n "checking linker --demangle support... " >&6; }
23963 gcc_cv_ld_demangle
=no
23964 if test $in_tree_ld = yes; then
23965 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 \
23966 gcc_cv_ld_demangle
=yes
23968 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23969 # Check if the GNU linker supports --demangle option
23970 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23971 gcc_cv_ld_demangle
=yes
23974 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23976 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23980 $as_echo "$gcc_cv_ld_demangle" >&6; }
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23984 $as_echo_n "checking linker plugin support... " >&6; }
23985 gcc_cv_lto_plugin
=0
23986 if test -f liblto_plugin.la
; then
23987 save_ld_ver
="$ld_ver"
23988 save_ld_vers_major
="$ld_vers_major"
23989 save_ld_vers_minor
="$ld_vers_minor"
23990 save_ld_is_gold
="$ld_is_gold"
23994 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23996 # FIXME: ld_is_gold?
23997 ld_vers_major
="$gcc_cv_gld_major_version"
23998 ld_vers_minor
="$gcc_cv_gld_minor_version"
24000 # Determine plugin linker version.
24001 # FIXME: Partial duplicate from above, generalize.
24002 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24003 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24004 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24006 ld_vers
=`echo $ld_ver | sed -n \
24007 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24009 ld_vers
=`echo $ld_ver | sed -n \
24010 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24012 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24013 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24017 # Determine plugin support.
24018 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24019 # Require GNU ld or gold 2.21+ for plugin support by default.
24020 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24021 gcc_cv_lto_plugin
=2
24022 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24023 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24024 gcc_cv_lto_plugin
=1
24028 ld_ver
="$save_ld_ver"
24029 ld_vers_major
="$save_ld_vers_major"
24030 ld_vers_minor
="$save_ld_vers_minor"
24031 ld_is_gold
="$save_ld_is_gold"
24034 cat >>confdefs.h
<<_ACEOF
24035 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24039 $as_echo "$gcc_cv_lto_plugin" >&6; }
24042 # All TARGET_ABI_OSF targets.
24043 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24045 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24046 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24049 gcc_cv_as_alpha_explicit_relocs
=no
24050 if test $in_tree_gas = yes; then
24051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24052 then gcc_cv_as_alpha_explicit_relocs
=yes
24054 elif test x
$gcc_cv_as != x
; then
24055 $as_echo ' .set nomacro
24057 extbl $3, $2, $3 !lituse_bytoff!1
24058 ldq $2, a($29) !literal!1
24059 ldq $4, b($29) !literal!2
24060 ldq_u $3, 0($2) !lituse_base!1
24061 ldq $27, f($29) !literal!5
24062 jsr $26, ($27), f !lituse_jsr!5
24063 ldah $29, 0($26) !gpdisp!3
24064 lda $0, c($29) !gprel
24065 ldah $1, d($29) !gprelhigh
24066 lda $1, d($1) !gprellow
24067 lda $29, 0($29) !gpdisp!3' > conftest.s
24068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }
24075 gcc_cv_as_alpha_explicit_relocs
=yes
24077 echo "configure: failed program was" >&5
24080 rm -f conftest.o conftest.s
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24084 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24085 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24087 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24091 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24092 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24095 gcc_cv_as_alpha_jsrdirect_relocs
=no
24096 if test $in_tree_gas = yes; then
24097 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24098 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24100 elif test x
$gcc_cv_as != x
; then
24101 $as_echo ' .set nomacro
24103 ldq $27, a($29) !literal!1
24104 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24107 (eval $ac_try) 2>&5
24109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24110 test $ac_status = 0; }; }
24112 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24114 echo "configure: failed program was" >&5
24117 rm -f conftest.o conftest.s
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24121 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24122 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24124 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24131 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24132 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24133 $as_echo_n "(cached) " >&6
24135 gcc_cv_as_cris_no_mul_bug
=no
24136 if test $in_tree_gas = yes; then
24137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24138 then gcc_cv_as_cris_no_mul_bug
=yes
24140 elif test x
$gcc_cv_as != x
; then
24141 $as_echo '.text' > conftest.s
24142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24144 (eval $ac_try) 2>&5
24146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24147 test $ac_status = 0; }; }
24149 gcc_cv_as_cris_no_mul_bug
=yes
24151 echo "configure: failed program was" >&5
24154 rm -f conftest.o conftest.s
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24158 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24159 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24161 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24168 $as_echo_n "checking assembler for .register... " >&6; }
24169 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24170 $as_echo_n "(cached) " >&6
24172 gcc_cv_as_sparc_register_op
=no
24173 if test x
$gcc_cv_as != x
; then
24174 $as_echo '.register %g2, #scratch' > conftest.s
24175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24182 gcc_cv_as_sparc_register_op
=yes
24184 echo "configure: failed program was" >&5
24187 rm -f conftest.o conftest.s
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24191 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24192 if test $gcc_cv_as_sparc_register_op = yes; then
24194 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24199 $as_echo_n "checking assembler for #nobits... " >&6; }
24200 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24201 $as_echo_n "(cached) " >&6
24203 gcc_cv_as_sparc_nobits
=no
24204 if test x
$gcc_cv_as != x
; then
24205 $as_echo '.section "nobits",#alloc,#write,#nobits
24206 .section "progbits",#alloc,#write,#progbits' > conftest.s
24207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24214 gcc_cv_as_sparc_nobits
=yes
24216 echo "configure: failed program was" >&5
24219 rm -f conftest.o conftest.s
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24223 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24226 cat >>confdefs.h
<<_ACEOF
24227 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24232 $as_echo_n "checking assembler for -relax option... " >&6; }
24233 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24234 $as_echo_n "(cached) " >&6
24236 gcc_cv_as_sparc_relax
=no
24237 if test x
$gcc_cv_as != x
; then
24238 $as_echo '.text' > conftest.s
24239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24241 (eval $ac_try) 2>&5
24243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24244 test $ac_status = 0; }; }
24246 gcc_cv_as_sparc_relax
=yes
24248 echo "configure: failed program was" >&5
24251 rm -f conftest.o conftest.s
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24255 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24256 if test $gcc_cv_as_sparc_relax = yes; then
24258 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24263 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24264 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24267 gcc_cv_as_sparc_gotdata_op
=no
24268 if test x
$gcc_cv_as != x
; then
24274 sethi %gdop_hix22(foo), %g1
24275 xor %g1, %gdop_lox10(foo), %g1
24276 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24279 (eval $ac_try) 2>&5
24281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24282 test $ac_status = 0; }; }
24284 if test x
$gcc_cv_ld != x \
24285 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24286 if test x
$gcc_cv_objdump != x
; then
24287 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24288 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24289 gcc_cv_as_sparc_gotdata_op
=no
24291 gcc_cv_as_sparc_gotdata_op
=yes
24297 echo "configure: failed program was" >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24304 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24305 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24307 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24312 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24313 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24316 gcc_cv_as_sparc_ua_pcrel
=no
24317 if test x
$gcc_cv_as != x
; then
24324 .uaword %r_disp32(foo)' > conftest.s
24325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24327 (eval $ac_try) 2>&5
24329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24330 test $ac_status = 0; }; }
24332 if test x
$gcc_cv_ld != x \
24333 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24334 gcc_cv_as_sparc_ua_pcrel
=yes
24338 echo "configure: failed program was" >&5
24341 rm -f conftest.o conftest.s
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24345 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24346 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24348 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24352 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24353 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24356 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24357 if test x
$gcc_cv_as != x
; then
24361 .uaword %r_disp32(foo)
24362 .byte 0x32, 0x33, 0x34
24366 .skip 4' > conftest.s
24367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24369 (eval $ac_try) 2>&5
24371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24372 test $ac_status = 0; }; }
24374 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24375 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24376 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24377 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24378 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24379 |
grep 'DISP32' > /dev
/null
2>&1; then
24382 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24387 echo "configure: failed program was" >&5
24390 rm -f conftest.o conftest.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24394 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24395 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24397 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24401 fi # unaligned pcrel relocs
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24404 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24405 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24406 $as_echo_n "(cached) " >&6
24408 gcc_cv_as_sparc_offsetable_lo10
=no
24409 if test x
$gcc_cv_as != x
; then
24411 or %g1, %lo(ab) + 12, %g1
24412 or %g1, %lo(ab + 12), %g1' > conftest.s
24413 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24415 (eval $ac_try) 2>&5
24417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24418 test $ac_status = 0; }; }
24420 if test x
$gcc_cv_objdump != x \
24421 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24422 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24423 gcc_cv_as_sparc_offsetable_lo10
=yes
24426 echo "configure: failed program was" >&5
24429 rm -f conftest.o conftest.s
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24433 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24434 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24436 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24441 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24442 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24445 gcc_cv_as_sparc_fmaf
=no
24446 if test x
$gcc_cv_as != x
; then
24448 .register %g2, #scratch
24449 .register %g3, #scratch
24451 fmaddd %f0, %f2, %f4, %f6
24452 addxccc %g1, %g2, %g3
24453 fsrl32 %f2, %f4, %f8
24454 fnaddd %f10, %f12, %f14' > conftest.s
24455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }
24462 gcc_cv_as_sparc_fmaf
=yes
24464 echo "configure: failed program was" >&5
24467 rm -f conftest.o conftest.s
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24471 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24472 if test $gcc_cv_as_sparc_fmaf = yes; then
24474 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24479 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24480 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24481 $as_echo_n "(cached) " >&6
24483 gcc_cv_as_sparc_sparc4
=no
24484 if test x
$gcc_cv_as != x
; then
24486 .register %g2, #scratch
24487 .register %g3, #scratch
24490 1: cwbneg %g2, %g3, 1f
24493 aes_kexpand0 %f4, %f6, %f8
24494 des_round %f38, %f40, %f42, %f44
24495 camellia_f %f54, %f56, %f58, %f60
24496 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24497 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24499 (eval $ac_try) 2>&5
24501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24502 test $ac_status = 0; }; }
24504 gcc_cv_as_sparc_sparc4
=yes
24506 echo "configure: failed program was" >&5
24509 rm -f conftest.o conftest.s
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24513 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24514 if test $gcc_cv_as_sparc_sparc4 = yes; then
24516 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24521 i
[34567]86-*-* | x86_64-
*-*)
24524 # Full C++ conformance when using a shared libstdc++-v3 requires some
24525 # support from the Cygwin DLL, which in more recent versions exports
24526 # wrappers to aid in interposing and redirecting operators new, delete,
24527 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24528 # are configuring for a version of Cygwin that exports the wrappers.
24529 if test x
$host = x
$target; then
24530 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24531 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24532 gcc_ac_cygwin_dll_wrappers
=yes
24534 gcc_ac_cygwin_dll_wrappers
=no
24538 # Can't check presence of libc functions during cross-compile, so
24539 # we just have to assume we're building for an up-to-date target.
24540 gcc_ac_cygwin_dll_wrappers
=yes
24543 cat >>confdefs.h
<<_ACEOF
24544 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24549 cygwin
* | pe | mingw32
* | interix
*)
24550 # Recent binutils allows the three-operand form of ".comm" on PE. This
24551 # definition is used unconditionally to initialise the default state of
24552 # the target option variable that governs usage of the feature.
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24554 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24555 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24558 gcc_cv_as_comm_has_align
=no
24559 if test $in_tree_gas = yes; then
24560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24561 then gcc_cv_as_comm_has_align
=yes
24563 elif test x
$gcc_cv_as != x
; then
24564 $as_echo '.comm foo,1,32' > conftest.s
24565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24572 gcc_cv_as_comm_has_align
=yes
24574 echo "configure: failed program was" >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24581 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24584 cat >>confdefs.h
<<_ACEOF
24585 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24588 # Used for DWARF 2 in PE
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24590 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24591 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24592 $as_echo_n "(cached) " >&6
24594 gcc_cv_as_ix86_pe_secrel32
=no
24595 if test $in_tree_gas = yes; then
24596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24597 then gcc_cv_as_ix86_pe_secrel32
=yes
24599 elif test x
$gcc_cv_as != x
; then
24603 .secrel32 foo' > conftest.s
24604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24611 if test x
$gcc_cv_ld != x \
24612 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24613 gcc_cv_as_ix86_pe_secrel32
=yes
24617 echo "configure: failed program was" >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24624 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24625 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24627 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24630 # Test if the assembler supports the extended form of the .section
24631 # directive that specifies section alignment. LTO support uses this,
24632 # but normally only after installation, so we warn but don't fail the
24633 # configure if LTO is enabled but the assembler does not support it.
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24635 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24636 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24639 gcc_cv_as_section_has_align
=no
24640 if test $in_tree_gas = yes; then
24641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24642 then gcc_cv_as_section_has_align
=yes
24644 elif test x
$gcc_cv_as != x
; then
24645 $as_echo '.section lto_test,"dr0"' > conftest.s
24646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24648 (eval $ac_try) 2>&5
24650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24651 test $ac_status = 0; }; }
24653 gcc_cv_as_section_has_align
=yes
24655 echo "configure: failed program was" >&5
24658 rm -f conftest.o conftest.s
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24662 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24664 if test x
$gcc_cv_as_section_has_align != xyes
; then
24665 case ",$enable_languages," in
24667 { $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
24668 $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;}
24672 # Test if the assembler supports the section flag 'e' for specifying
24673 # an excluded section.
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24675 $as_echo_n "checking assembler for .section with e... " >&6; }
24676 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24677 $as_echo_n "(cached) " >&6
24679 gcc_cv_as_section_has_e
=no
24680 if test $in_tree_gas = yes; then
24681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24682 then gcc_cv_as_section_has_e
=yes
24684 elif test x
$gcc_cv_as != x
; then
24685 $as_echo '.section foo1,"e"
24686 .byte 0,0,0,0' > conftest.s
24687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }
24694 gcc_cv_as_section_has_e
=yes
24696 echo "configure: failed program was" >&5
24699 rm -f conftest.o conftest.s
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24703 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24706 cat >>confdefs.h
<<_ACEOF
24707 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24714 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24715 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24716 $as_echo_n "(cached) " >&6
24718 gcc_cv_as_ix86_filds
=no
24719 if test x
$gcc_cv_as != x
; then
24720 $as_echo 'filds mem; fists mem' > conftest.s
24721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24723 (eval $ac_try) 2>&5
24725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24726 test $ac_status = 0; }; }
24728 gcc_cv_as_ix86_filds
=yes
24730 echo "configure: failed program was" >&5
24733 rm -f conftest.o conftest.s
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24737 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24738 if test $gcc_cv_as_ix86_filds = yes; then
24740 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24745 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24746 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24747 $as_echo_n "(cached) " >&6
24749 gcc_cv_as_ix86_fildq
=no
24750 if test x
$gcc_cv_as != x
; then
24751 $as_echo 'fildq mem; fistpq mem' > conftest.s
24752 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24754 (eval $ac_try) 2>&5
24756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24757 test $ac_status = 0; }; }
24759 gcc_cv_as_ix86_fildq
=yes
24761 echo "configure: failed program was" >&5
24764 rm -f conftest.o conftest.s
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24768 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24769 if test $gcc_cv_as_ix86_fildq = yes; then
24771 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24776 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24777 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24780 gcc_cv_as_ix86_cmov_sun_syntax
=no
24781 if test x
$gcc_cv_as != x
; then
24782 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24790 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24792 echo "configure: failed program was" >&5
24795 rm -f conftest.o conftest.s
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24799 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24800 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24802 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24807 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24808 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24811 gcc_cv_as_ix86_ffreep
=no
24812 if test x
$gcc_cv_as != x
; then
24813 $as_echo 'ffreep %st(1)' > conftest.s
24814 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816 (eval $ac_try) 2>&5
24818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819 test $ac_status = 0; }; }
24821 gcc_cv_as_ix86_ffreep
=yes
24823 echo "configure: failed program was" >&5
24826 rm -f conftest.o conftest.s
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24830 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24831 if test $gcc_cv_as_ix86_ffreep = yes; then
24833 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24838 $as_echo_n "checking assembler for .quad directive... " >&6; }
24839 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24840 $as_echo_n "(cached) " >&6
24842 gcc_cv_as_ix86_quad
=no
24843 if test x
$gcc_cv_as != x
; then
24844 $as_echo '.quad 0' > conftest.s
24845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24852 gcc_cv_as_ix86_quad
=yes
24854 echo "configure: failed program was" >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24861 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24862 if test $gcc_cv_as_ix86_quad = yes; then
24864 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24869 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24870 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24871 $as_echo_n "(cached) " >&6
24873 gcc_cv_as_ix86_sahf
=no
24874 if test x
$gcc_cv_as != x
; then
24877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24884 gcc_cv_as_ix86_sahf
=yes
24886 echo "configure: failed program was" >&5
24889 rm -f conftest.o conftest.s
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24893 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24894 if test $gcc_cv_as_ix86_sahf = yes; then
24896 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24901 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24902 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24905 gcc_cv_as_ix86_hle
=no
24906 if test x
$gcc_cv_as != x
; then
24907 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24910 (eval $ac_try) 2>&5
24912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913 test $ac_status = 0; }; }
24915 gcc_cv_as_ix86_hle
=yes
24917 echo "configure: failed program was" >&5
24920 rm -f conftest.o conftest.s
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24924 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24925 if test $gcc_cv_as_ix86_hle = yes; then
24927 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24932 $as_echo_n "checking assembler for swap suffix... " >&6; }
24933 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
24936 gcc_cv_as_ix86_swap
=no
24937 if test x
$gcc_cv_as != x
; then
24938 $as_echo 'movl.s %esp, %ebp' > conftest.s
24939 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24941 (eval $ac_try) 2>&5
24943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944 test $ac_status = 0; }; }
24946 gcc_cv_as_ix86_swap
=yes
24948 echo "configure: failed program was" >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24955 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24956 if test $gcc_cv_as_ix86_swap = yes; then
24958 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24963 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24964 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24967 gcc_cv_as_ix86_diff_sect_delta
=no
24968 if test x
$gcc_cv_as != x
; then
24969 $as_echo '.section .rodata
24975 .L2: nop' > conftest.s
24976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24978 (eval $ac_try) 2>&5
24980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24981 test $ac_status = 0; }; }
24983 gcc_cv_as_ix86_diff_sect_delta
=yes
24985 echo "configure: failed program was" >&5
24988 rm -f conftest.o conftest.s
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24992 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24993 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24995 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24999 # These two are used unconditionally by i386.[ch]; it is to be defined
25000 # to 1 if the feature is present, 0 otherwise.
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25002 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25003 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25006 gcc_cv_as_ix86_gotoff_in_data
=no
25007 if test $in_tree_gas = yes; then
25008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25009 then gcc_cv_as_ix86_gotoff_in_data
=yes
25011 elif test x
$gcc_cv_as != x
; then
25016 .long .L0@GOTOFF' > conftest.s
25017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25024 gcc_cv_as_ix86_gotoff_in_data
=yes
25026 echo "configure: failed program was" >&5
25029 rm -f conftest.o conftest.s
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25033 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25036 cat >>confdefs.h
<<_ACEOF
25037 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25042 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25043 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25044 $as_echo_n "(cached) " >&6
25046 gcc_cv_as_ix86_rep_lock_prefix
=no
25047 if test x
$gcc_cv_as != x
; then
25048 $as_echo 'rep movsl
25053 lock addl %edi, (%eax,%esi)
25054 lock orl $0, (%esp)' > conftest.s
25055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25057 (eval $ac_try) 2>&5
25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060 test $ac_status = 0; }; }
25062 gcc_cv_as_ix86_rep_lock_prefix
=yes
25064 echo "configure: failed program was" >&5
25067 rm -f conftest.o conftest.s
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25071 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25072 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25074 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25079 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25080 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25081 $as_echo_n "(cached) " >&6
25083 gcc_cv_as_ix86_tlsgdplt
=no
25084 if test x
$gcc_cv_as != x
; then
25085 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25088 (eval $ac_try) 2>&5
25090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25091 test $ac_status = 0; }; }
25093 if test x
$gcc_cv_ld != x \
25094 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25095 gcc_cv_as_ix86_tlsgdplt
=yes
25099 echo "configure: failed program was" >&5
25102 rm -f conftest.o conftest.s
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25106 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25107 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25109 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25114 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25115 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25118 gcc_cv_as_ix86_tlsldmplt
=no
25119 if test x
$gcc_cv_as != x
; then
25121 call tls_ld@tlsldmplt' > conftest.s
25122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25129 if test x
$gcc_cv_ld != x \
25130 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25131 gcc_cv_as_ix86_tlsldmplt
=yes
25135 echo "configure: failed program was" >&5
25138 rm -f conftest.o conftest.s
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25142 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25143 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25145 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25153 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25154 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25157 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25158 if test $in_tree_gas = yes; then
25159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25160 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25162 elif test x
$gcc_cv_as != x
; then
25164 addl r15 = @ltoffx(x#), gp
25166 ld8.mov r16 = [r15], x#' > conftest.s
25167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25169 (eval $ac_try) 2>&5
25171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25172 test $ac_status = 0; }; }
25174 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25176 echo "configure: failed program was" >&5
25179 rm -f conftest.o conftest.s
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25183 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25184 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25186 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25194 *-*-aix*) conftest_s
=' .machine "pwr5"
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25199 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25200 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25203 gcc_cv_as_machine_directive
=no
25204 if test x
$gcc_cv_as != x
; then
25205 $as_echo ' .machine ppc7400' > conftest.s
25206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; }
25213 gcc_cv_as_machine_directive
=yes
25215 echo "configure: failed program was" >&5
25218 rm -f conftest.o conftest.s
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25222 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25224 if test x
$gcc_cv_as_machine_directive != xyes
; then
25225 echo "*** This target requires an assembler supporting \".machine\"" >&2
25226 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25227 test x
$build = x
$target && exit 1
25231 *) conftest_s
=' .machine power4
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25237 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25238 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25239 $as_echo_n "(cached) " >&6
25241 gcc_cv_as_powerpc_mfcrf
=no
25242 if test $in_tree_gas = yes; then
25243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25244 then gcc_cv_as_powerpc_mfcrf
=yes
25246 elif test x
$gcc_cv_as != x
; then
25247 $as_echo "$conftest_s" > conftest.s
25248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; }
25255 gcc_cv_as_powerpc_mfcrf
=yes
25257 echo "configure: failed program was" >&5
25260 rm -f conftest.o conftest.s
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25264 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25265 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25267 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25272 *-*-aix*) conftest_s
=' .machine "pwr5"
25275 *) conftest_s
=' .machine power5
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25281 $as_echo_n "checking assembler for popcntb support... " >&6; }
25282 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25283 $as_echo_n "(cached) " >&6
25285 gcc_cv_as_powerpc_popcntb
=no
25286 if test $in_tree_gas = yes; then
25287 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25288 then gcc_cv_as_powerpc_popcntb
=yes
25290 elif test x
$gcc_cv_as != x
; then
25291 $as_echo "$conftest_s" > conftest.s
25292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294 (eval $ac_try) 2>&5
25296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297 test $ac_status = 0; }; }
25299 gcc_cv_as_powerpc_popcntb
=yes
25301 echo "configure: failed program was" >&5
25304 rm -f conftest.o conftest.s
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25308 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25309 if test $gcc_cv_as_powerpc_popcntb = yes; then
25311 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25316 *-*-aix*) conftest_s
=' .machine "pwr5x"
25319 *) conftest_s
=' .machine power5
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25325 $as_echo_n "checking assembler for fp round support... " >&6; }
25326 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
25329 gcc_cv_as_powerpc_fprnd
=no
25330 if test $in_tree_gas = yes; then
25331 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25332 then gcc_cv_as_powerpc_fprnd
=yes
25334 elif test x
$gcc_cv_as != x
; then
25335 $as_echo "$conftest_s" > conftest.s
25336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25338 (eval $ac_try) 2>&5
25340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25341 test $ac_status = 0; }; }
25343 gcc_cv_as_powerpc_fprnd
=yes
25345 echo "configure: failed program was" >&5
25348 rm -f conftest.o conftest.s
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25352 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25353 if test $gcc_cv_as_powerpc_fprnd = yes; then
25355 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25360 *-*-aix*) conftest_s
=' .machine "pwr6"
25363 *) conftest_s
=' .machine power6
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25369 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25370 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25371 $as_echo_n "(cached) " >&6
25373 gcc_cv_as_powerpc_mfpgpr
=no
25374 if test $in_tree_gas = yes; then
25375 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25376 then gcc_cv_as_powerpc_mfpgpr
=yes
25378 elif test x
$gcc_cv_as != x
; then
25379 $as_echo "$conftest_s" > conftest.s
25380 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25382 (eval $ac_try) 2>&5
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; }
25387 gcc_cv_as_powerpc_mfpgpr
=yes
25389 echo "configure: failed program was" >&5
25392 rm -f conftest.o conftest.s
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25396 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25397 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25399 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25404 *-*-aix*) conftest_s
=' .csect .text[PR]
25406 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25410 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25411 *) conftest_s
=' .text
25413 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25417 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25418 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25419 $as_echo_n "(cached) " >&6
25421 gcc_cv_as_powerpc_rel16
=no
25422 if test $in_tree_gas = yes; then
25423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25424 then gcc_cv_as_powerpc_rel16
=yes
25426 elif test x
$gcc_cv_as != x
; then
25427 $as_echo "$conftest_s" > conftest.s
25428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25435 gcc_cv_as_powerpc_rel16
=yes
25437 echo "configure: failed program was" >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25444 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25445 if test $gcc_cv_as_powerpc_rel16 = yes; then
25447 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25452 *-*-aix*) conftest_s
=' .machine "pwr6"
25455 *) conftest_s
=' .machine power6
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25461 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 gcc_cv_as_powerpc_cmpb
=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25468 then gcc_cv_as_powerpc_cmpb
=yes
25470 elif test x
$gcc_cv_as != x
; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25479 gcc_cv_as_powerpc_cmpb
=yes
25481 echo "configure: failed program was" >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25488 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25489 if test $gcc_cv_as_powerpc_cmpb = yes; then
25491 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25496 *-*-aix*) conftest_s
=' .machine "pwr6"
25499 *) conftest_s
=' .machine power6
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25505 $as_echo_n "checking assembler for decimal float support... " >&6; }
25506 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25509 gcc_cv_as_powerpc_dfp
=no
25510 if test $in_tree_gas = yes; then
25511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25512 then gcc_cv_as_powerpc_dfp
=yes
25514 elif test x
$gcc_cv_as != x
; then
25515 $as_echo "$conftest_s" > conftest.s
25516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25523 gcc_cv_as_powerpc_dfp
=yes
25525 echo "configure: failed program was" >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25532 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25533 if test $gcc_cv_as_powerpc_dfp = yes; then
25535 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25540 *-*-aix*) conftest_s
=' .machine "pwr7"
25543 *) conftest_s
=' .machine power7
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25549 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25550 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25551 $as_echo_n "(cached) " >&6
25553 gcc_cv_as_powerpc_vsx
=no
25554 if test $in_tree_gas = yes; then
25555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25556 then gcc_cv_as_powerpc_vsx
=yes
25558 elif test x
$gcc_cv_as != x
; then
25559 $as_echo "$conftest_s" > conftest.s
25560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25562 (eval $ac_try) 2>&5
25564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; }
25567 gcc_cv_as_powerpc_vsx
=yes
25569 echo "configure: failed program was" >&5
25572 rm -f conftest.o conftest.s
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25576 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25577 if test $gcc_cv_as_powerpc_vsx = yes; then
25579 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25584 *-*-aix*) conftest_s
=' .machine "pwr7"
25587 *) conftest_s
=' .machine power7
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25593 $as_echo_n "checking assembler for popcntd support... " >&6; }
25594 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25597 gcc_cv_as_powerpc_popcntd
=no
25598 if test $in_tree_gas = yes; then
25599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25600 then gcc_cv_as_powerpc_popcntd
=yes
25602 elif test x
$gcc_cv_as != x
; then
25603 $as_echo "$conftest_s" > conftest.s
25604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25611 gcc_cv_as_powerpc_popcntd
=yes
25613 echo "configure: failed program was" >&5
25616 rm -f conftest.o conftest.s
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25620 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25621 if test $gcc_cv_as_powerpc_popcntd = yes; then
25623 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25628 *-*-aix*) conftest_s
=' .machine "pwr8"
25629 .csect .text[PR]';;
25630 *) conftest_s
=' .machine power8
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25635 $as_echo_n "checking assembler for power8 support... " >&6; }
25636 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25637 $as_echo_n "(cached) " >&6
25639 gcc_cv_as_powerpc_power8
=no
25640 if test $in_tree_gas = yes; then
25641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25642 then gcc_cv_as_powerpc_power8
=yes
25644 elif test x
$gcc_cv_as != x
; then
25645 $as_echo "$conftest_s" > conftest.s
25646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25648 (eval $ac_try) 2>&5
25650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25651 test $ac_status = 0; }; }
25653 gcc_cv_as_powerpc_power8
=yes
25655 echo "configure: failed program was" >&5
25658 rm -f conftest.o conftest.s
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25662 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25663 if test $gcc_cv_as_powerpc_power8 = yes; then
25665 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25670 *-*-aix*) conftest_s
=' .csect .text[PR]
25672 *) conftest_s
=' .text
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25677 $as_echo_n "checking assembler for lwsync support... " >&6; }
25678 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25679 $as_echo_n "(cached) " >&6
25681 gcc_cv_as_powerpc_lwsync
=no
25682 if test $in_tree_gas = yes; then
25683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25684 then gcc_cv_as_powerpc_lwsync
=yes
25686 elif test x
$gcc_cv_as != x
; then
25687 $as_echo "$conftest_s" > conftest.s
25688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25690 (eval $ac_try) 2>&5
25692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25693 test $ac_status = 0; }; }
25695 gcc_cv_as_powerpc_lwsync
=yes
25697 echo "configure: failed program was" >&5
25700 rm -f conftest.o conftest.s
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25704 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25705 if test $gcc_cv_as_powerpc_lwsync = yes; then
25707 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25712 *-*-aix*) conftest_s
=' .machine "476"
25715 *) conftest_s
=' .machine "476"
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25721 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25722 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25723 $as_echo_n "(cached) " >&6
25725 gcc_cv_as_powerpc_dci
=no
25726 if test $in_tree_gas = yes; then
25727 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25728 then gcc_cv_as_powerpc_dci
=yes
25730 elif test x
$gcc_cv_as != x
; then
25731 $as_echo "$conftest_s" > conftest.s
25732 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25734 (eval $ac_try) 2>&5
25736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737 test $ac_status = 0; }; }
25739 gcc_cv_as_powerpc_dci
=yes
25741 echo "configure: failed program was" >&5
25744 rm -f conftest.o conftest.s
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25748 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25749 if test $gcc_cv_as_powerpc_dci = yes; then
25751 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25756 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25757 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25760 gcc_cv_as_powerpc_gnu_attribute
=no
25761 if test $in_tree_gas = yes; then
25762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25763 then gcc_cv_as_powerpc_gnu_attribute
=yes
25765 elif test x
$gcc_cv_as != x
; then
25766 $as_echo '.gnu_attribute 4,1' > conftest.s
25767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25769 (eval $ac_try) 2>&5
25771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25772 test $ac_status = 0; }; }
25774 gcc_cv_as_powerpc_gnu_attribute
=yes
25776 echo "configure: failed program was" >&5
25779 rm -f conftest.o conftest.s
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25783 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25784 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25786 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25791 $as_echo_n "checking assembler for tls marker support... " >&6; }
25792 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25795 gcc_cv_as_powerpc_tls_markers
=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25798 then gcc_cv_as_powerpc_tls_markers
=yes
25800 elif test x
$gcc_cv_as != x
; then
25801 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25809 gcc_cv_as_powerpc_tls_markers
=yes
25811 echo "configure: failed program was" >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25818 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25819 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25821 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25828 $as_echo_n "checking assembler for .ref support... " >&6; }
25829 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25832 gcc_cv_as_aix_ref
=no
25833 if test $in_tree_gas = yes; then
25834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25835 then gcc_cv_as_aix_ref
=yes
25837 elif test x
$gcc_cv_as != x
; then
25838 $as_echo ' .csect stuff[rw]
25844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25846 (eval $ac_try) 2>&5
25848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25849 test $ac_status = 0; }; }
25851 gcc_cv_as_aix_ref
=yes
25853 echo "configure: failed program was" >&5
25856 rm -f conftest.o conftest.s
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25860 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25861 if test $gcc_cv_as_aix_ref = yes; then
25863 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25872 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25873 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25876 gcc_cv_as_mips_explicit_relocs
=no
25877 if test $in_tree_gas = yes; then
25878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25879 then gcc_cv_as_mips_explicit_relocs
=yes
25881 elif test x
$gcc_cv_as != x
; then
25882 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; }
25890 gcc_cv_as_mips_explicit_relocs
=yes
25892 echo "configure: failed program was" >&5
25895 rm -f conftest.o conftest.s
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25899 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25900 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25901 if test x
$target_cpu_default = x
25902 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25903 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25907 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25908 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25911 gcc_cv_as_mips_no_shared
=no
25912 if test $in_tree_gas = yes; then
25913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25914 then gcc_cv_as_mips_no_shared
=yes
25916 elif test x
$gcc_cv_as != x
; then
25917 $as_echo 'nop' > conftest.s
25918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25920 (eval $ac_try) 2>&5
25922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25923 test $ac_status = 0; }; }
25925 gcc_cv_as_mips_no_shared
=yes
25927 echo "configure: failed program was" >&5
25930 rm -f conftest.o conftest.s
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25934 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25935 if test $gcc_cv_as_mips_no_shared = yes; then
25937 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25942 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25943 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25946 gcc_cv_as_mips_gnu_attribute
=no
25947 if test $in_tree_gas = yes; then
25948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25949 then gcc_cv_as_mips_gnu_attribute
=yes
25951 elif test x
$gcc_cv_as != x
; then
25952 $as_echo '.gnu_attribute 4,1' > conftest.s
25953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25960 gcc_cv_as_mips_gnu_attribute
=yes
25962 echo "configure: failed program was" >&5
25965 rm -f conftest.o conftest.s
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25969 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25970 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25972 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25977 $as_echo_n "checking assembler for .micromips support... " >&6; }
25978 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25979 $as_echo_n "(cached) " >&6
25981 gcc_cv_as_micromips_support
=no
25982 if test x
$gcc_cv_as != x
; then
25983 $as_echo '.set micromips' > conftest.s
25984 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25986 (eval $ac_try) 2>&5
25988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25989 test $ac_status = 0; }; }
25991 gcc_cv_as_micromips_support
=yes
25993 echo "configure: failed program was" >&5
25996 rm -f conftest.o conftest.s
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26000 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26001 if test $gcc_cv_as_micromips_support = yes; then
26003 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26008 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26009 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26010 $as_echo_n "(cached) " >&6
26012 gcc_cv_as_mips_dtprelword
=no
26013 if test $in_tree_gas = yes; then
26014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26015 then gcc_cv_as_mips_dtprelword
=yes
26017 elif test x
$gcc_cv_as != x
; then
26018 $as_echo '.section .tdata,"awT",@progbits
26022 .dtprelword x+0x8000' > conftest.s
26023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }
26030 gcc_cv_as_mips_dtprelword
=yes
26032 echo "configure: failed program was" >&5
26035 rm -f conftest.o conftest.s
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26039 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26040 if test $gcc_cv_as_mips_dtprelword = yes; then
26042 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26047 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26048 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26049 $as_echo_n "(cached) " >&6
26051 gcc_cv_as_mips_dspr1_mult
=no
26052 if test x
$gcc_cv_as != x
; then
26053 $as_echo ' .set mips32r2
26061 multu $ac3,$4,$5' > conftest.s
26062 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064 (eval $ac_try) 2>&5
26066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }; }
26069 gcc_cv_as_mips_dspr1_mult
=yes
26071 echo "configure: failed program was" >&5
26074 rm -f conftest.o conftest.s
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26078 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26079 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26081 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26086 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26087 gcc_cv_as_ld_jalr_reloc
=no
26088 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26089 if test $in_tree_ld = yes ; then
26090 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 \
26091 && test $in_tree_ld_is_elf = yes; then
26092 gcc_cv_as_ld_jalr_reloc
=yes
26094 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26095 echo ' .ent x' > conftest.s
26096 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26097 echo ' ld $25,%call16(y)($28)' >> conftest.s
26098 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26099 echo '1: jalr $25' >> conftest.s
26100 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26101 echo '1: jalr $25' >> conftest.s
26102 echo ' .end x' >> conftest.s
26103 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26104 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26105 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26106 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26107 gcc_cv_as_ld_jalr_reloc
=yes
26113 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26114 if test x
$target_cpu_default = x
; then
26115 target_cpu_default
=MASK_RELAX_PIC_CALLS
26117 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26121 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26124 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26125 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26126 $as_echo_n "(cached) " >&6
26128 gcc_cv_ld_mips_personality_relaxation
=no
26129 if test $in_tree_ld = yes ; then
26130 if test "$gcc_cv_gld_major_version" -eq 2 \
26131 -a "$gcc_cv_gld_minor_version" -ge 21 \
26132 -o "$gcc_cv_gld_major_version" -gt 2; then
26133 gcc_cv_ld_mips_personality_relaxation
=yes
26135 elif test x
$gcc_cv_as != x \
26136 -a x
$gcc_cv_ld != x \
26137 -a x
$gcc_cv_readelf != x
; then
26138 cat > conftest.s
<<EOF
26140 .cfi_personality 0x80,indirect_ptr
26147 .section .data,"aw",@progbits
26151 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26152 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26153 if $gcc_cv_readelf -d conftest
2>&1 \
26154 |
grep TEXTREL
> /dev
/null
2>&1; then
26156 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26157 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26160 gcc_cv_ld_mips_personality_relaxation
=yes
26164 rm -f conftest.s conftest.o conftest
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26167 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26168 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26170 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26176 # Mips and HP-UX need the GNU assembler.
26177 # Linux on IA64 might be able to use the Intel assembler.
26180 mips
*-*-* |
*-*-hpux* )
26181 if test x
$gas_flag = xyes \
26182 ||
test x
"$host" != x
"$build" \
26183 ||
test ! -x "$gcc_cv_as" \
26184 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26187 echo "*** This configuration requires the GNU assembler" >&2
26193 # ??? Not all targets support dwarf2 debug_line, even within a version
26194 # of gas. Moreover, we need to emit a valid instruction to trigger any
26195 # info to the output file. So, as supported targets are added to gas 2.11,
26196 # add some instruction here to (also) show we expect this might work.
26197 # ??? Once 2.11 is released, probably need to add first known working
26198 # version to the per-target configury.
26199 case "$cpu_type" in
26200 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26201 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
26211 if test x
"$insn" != x
; then
26213 .file 1 \"conftest.s\"
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26217 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26218 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26219 $as_echo_n "(cached) " >&6
26221 gcc_cv_as_dwarf2_debug_line
=no
26222 if test $in_tree_gas = yes; then
26223 if test $in_tree_gas_is_elf = yes \
26224 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26225 then gcc_cv_as_dwarf2_debug_line
=yes
26227 elif test x
$gcc_cv_as != x
; then
26228 $as_echo "$conftest_s" > conftest.s
26229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231 (eval $ac_try) 2>&5
26233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234 test $ac_status = 0; }; }
26236 if test x
$gcc_cv_objdump != x \
26237 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26238 |
grep debug_line
> /dev
/null
2>&1; then
26239 gcc_cv_as_dwarf2_debug_line
=yes
26242 echo "configure: failed program was" >&5
26245 rm -f conftest.o conftest.s
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26249 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26252 # The .debug_line file table must be in the exact order that
26253 # we specified the files, since these indices are also used
26254 # by DW_AT_decl_file. Approximate this test by testing if
26255 # the assembler bitches if the same index is assigned twice.
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26257 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26258 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26261 gcc_cv_as_dwarf2_file_buggy
=no
26262 if test x
$gcc_cv_as != x
; then
26263 $as_echo ' .file 1 "foo.s"
26264 .file 1 "bar.s"' > conftest.s
26265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267 (eval $ac_try) 2>&5
26269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270 test $ac_status = 0; }; }
26272 gcc_cv_as_dwarf2_file_buggy
=yes
26274 echo "configure: failed program was" >&5
26277 rm -f conftest.o conftest.s
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26281 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26284 if test $gcc_cv_as_dwarf2_debug_line = yes \
26285 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26287 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26292 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26293 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26294 $as_echo_n "(cached) " >&6
26296 gcc_cv_as_gdwarf2_flag
=no
26297 if test $in_tree_gas = yes; then
26298 if test $in_tree_gas_is_elf = yes \
26299 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26300 then gcc_cv_as_gdwarf2_flag
=yes
26302 elif test x
$gcc_cv_as != x
; then
26303 $as_echo "$insn" > conftest.s
26304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26306 (eval $ac_try) 2>&5
26308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26309 test $ac_status = 0; }; }
26311 gcc_cv_as_gdwarf2_flag
=yes
26313 echo "configure: failed program was" >&5
26316 rm -f conftest.o conftest.s
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26320 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26321 if test $gcc_cv_as_gdwarf2_flag = yes; then
26323 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26328 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26329 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26330 $as_echo_n "(cached) " >&6
26332 gcc_cv_as_gstabs_flag
=no
26333 if test $in_tree_gas = yes; then
26334 if test $in_tree_gas_is_elf = yes \
26335 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26336 then gcc_cv_as_gstabs_flag
=yes
26338 elif test x
$gcc_cv_as != x
; then
26339 $as_echo "$insn" > conftest.s
26340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26342 (eval $ac_try) 2>&5
26344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26345 test $ac_status = 0; }; }
26347 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26348 # and warns about it, but still exits successfully. So check for
26350 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26352 (eval $ac_try) 2>&5
26354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; }
26357 else gcc_cv_as_gstabs_flag
=yes
26360 echo "configure: failed program was" >&5
26363 rm -f conftest.o conftest.s
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26367 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26368 if test $gcc_cv_as_gstabs_flag = yes; then
26370 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26375 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26376 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26377 $as_echo_n "(cached) " >&6
26379 gcc_cv_as_debug_prefix_map_flag
=no
26380 if test $in_tree_gas = yes; then
26381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26382 then gcc_cv_as_debug_prefix_map_flag
=yes
26384 elif test x
$gcc_cv_as != x
; then
26385 $as_echo "$insn" > conftest.s
26386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26393 gcc_cv_as_debug_prefix_map_flag
=yes
26395 echo "configure: failed program was" >&5
26398 rm -f conftest.o conftest.s
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26402 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26403 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26405 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26411 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26412 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26413 $as_echo_n "(cached) " >&6
26415 gcc_cv_as_lcomm_with_alignment
=no
26416 if test x
$gcc_cv_as != x
; then
26417 $as_echo '.lcomm bar,4,16' > conftest.s
26418 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26420 (eval $ac_try) 2>&5
26422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26423 test $ac_status = 0; }; }
26425 gcc_cv_as_lcomm_with_alignment
=yes
26427 echo "configure: failed program was" >&5
26430 rm -f conftest.o conftest.s
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26434 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26435 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26437 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26441 # Check whether --enable-gnu-unique-object was given.
26442 if test "${enable_gnu_unique_object+set}" = set; then :
26443 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26445 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26446 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26450 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26451 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26454 gcc_cv_as_gnu_unique_object
=no
26455 if test $in_tree_gas = yes; then
26456 if test $in_tree_gas_is_elf = yes \
26457 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26458 then gcc_cv_as_gnu_unique_object
=yes
26460 elif test x
$gcc_cv_as != x
; then
26461 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26469 gcc_cv_as_gnu_unique_object
=yes
26471 echo "configure: failed program was" >&5
26474 rm -f conftest.o conftest.s
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26478 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26479 if test $gcc_cv_as_gnu_unique_object = yes; then
26480 # We need to unquote above to to use the definition from config.gcc.
26481 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26482 if test x
$host = x
$build -a x
$host = x
$target &&
26483 ldd
--version 2>/dev
/null
&&
26484 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26485 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26486 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26487 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26488 if test "$glibcnum" -ge 2011 ; then
26489 enable_gnu_unique_object
=yes
26495 if test x
$enable_gnu_unique_object = xyes
; then
26497 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26502 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26503 if test "${gcc_cv_as_line_zero+set}" = set; then :
26504 $as_echo_n "(cached) " >&6
26506 gcc_cv_as_line_zero
=no
26507 if test $in_tree_gas = yes; then
26508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26509 then gcc_cv_as_line_zero
=yes
26511 elif test "x$gcc_cv_as" != x
; then
26512 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26513 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26515 (eval $ac_try) 2>&5
26517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26518 test $ac_status = 0; }; } &&
26519 test "x`cat conftest.out`" = x
26521 gcc_cv_as_line_zero
=yes
26523 echo "configure: failed program was" >&5
26525 echo "configure: error output was" >&5
26526 cat conftest.out
>&5
26528 rm -f conftest.o conftest.s conftest.out
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26532 $as_echo "$gcc_cv_as_line_zero" >&6; }
26533 if test "x$gcc_cv_as_line_zero" = xyes
; then
26535 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26540 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26541 gcc_cv_ld_eh_frame_hdr
=no
26542 if test $in_tree_ld = yes ; then
26543 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 \
26544 && test $in_tree_ld_is_elf = yes; then
26545 gcc_cv_ld_eh_frame_hdr
=yes
26547 elif test x
$gcc_cv_ld != x
; then
26548 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26549 # Check if linker supports --eh-frame-hdr option
26550 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26551 gcc_cv_ld_eh_frame_hdr
=yes
26556 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26557 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26558 gcc_cv_ld_eh_frame_hdr
=yes
26565 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26567 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26571 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26574 $as_echo_n "checking linker position independent executable support... " >&6; }
26576 if test $in_tree_ld = yes ; then
26577 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 \
26578 && test $in_tree_ld_is_elf = yes; then
26581 elif test x
$gcc_cv_ld != x
; then
26582 # Check if linker supports -pie option
26583 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26587 if test x
"$gcc_cv_ld_pie" = xyes
; then
26589 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26593 $as_echo "$gcc_cv_ld_pie" >&6; }
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26596 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26597 gcc_cv_ld_eh_gc_sections
=no
26598 if test $in_tree_ld = yes ; then
26599 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 \
26600 && test $in_tree_ld_is_elf = yes; then
26601 gcc_cv_ld_eh_gc_sections
=yes
26603 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26604 cat > conftest.s
<<EOF
26607 .type _start, @function
26610 .size _start, .-_start
26611 .section .text.foo,"ax",@progbits
26612 .type foo, @function
26616 .section .gcc_except_table.foo,"a",@progbits
26619 .section .eh_frame,"a",@progbits
26622 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26623 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26624 |
grep "gc-sections option ignored" > /dev
/null
; then
26625 gcc_cv_ld_eh_gc_sections
=no
26626 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26627 |
grep gcc_except_table
> /dev
/null
; then
26628 gcc_cv_ld_eh_gc_sections
=yes
26629 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26630 if test x
$gcc_cv_as_comdat_group != xyes
; then
26631 gcc_cv_ld_eh_gc_sections
=no
26632 cat > conftest.s
<<EOF
26635 .type _start, @function
26638 .size _start, .-_start
26639 .section .gnu.linkonce.t.foo,"ax",@progbits
26640 .type foo, @function
26644 .section .gcc_except_table.foo,"a",@progbits
26647 .section .eh_frame,"a",@progbits
26650 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26651 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26652 |
grep "gc-sections option ignored" > /dev
/null
; then
26653 gcc_cv_ld_eh_gc_sections
=no
26654 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26655 |
grep gcc_except_table
> /dev
/null
; then
26656 gcc_cv_ld_eh_gc_sections
=yes
26662 rm -f conftest.s conftest.o conftest
26666 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26667 gcc_cv_ld_eh_gc_sections
=no
26670 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26672 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26676 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26679 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26680 gcc_cv_ld_eh_gc_sections_bug
=no
26681 if test $in_tree_ld = yes ; then
26682 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 \
26683 && test $in_tree_ld_is_elf = yes; then
26684 gcc_cv_ld_eh_gc_sections_bug
=yes
26686 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
26687 gcc_cv_ld_eh_gc_sections_bug
=yes
26688 cat > conftest.s
<<EOF
26691 .type _start, @function
26694 .size _start, .-_start
26695 .section .text.startup.foo,"ax",@progbits
26696 .type foo, @function
26700 .section .gcc_except_table.foo,"a",@progbits
26703 .section .eh_frame,"a",@progbits
26706 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26707 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26708 |
grep "gc-sections option ignored" > /dev
/null
; then
26710 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26711 |
grep gcc_except_table
> /dev
/null
; then
26712 gcc_cv_ld_eh_gc_sections_bug
=no
26715 rm -f conftest.s conftest.o conftest
26717 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26719 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26723 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26730 $as_echo_n "checking linker --as-needed support... " >&6; }
26731 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26732 $as_echo_n "(cached) " >&6
26734 gcc_cv_ld_as_needed
=no
26735 if test $in_tree_ld = yes ; then
26736 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 \
26737 && test $in_tree_ld_is_elf = yes; then
26738 gcc_cv_ld_as_needed
=yes
26740 elif test x
$gcc_cv_ld != x
; then
26741 # Check if linker supports --as-needed and --no-as-needed options
26742 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26743 gcc_cv_ld_as_needed
=yes
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26749 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26750 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26752 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26756 case "$target:$tm_file" in
26757 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26760 emul_name
="-melf64ppc"
26763 emul_name
="-melf64ppc_fbsd"
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26767 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26768 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26769 $as_echo_n "(cached) " >&6
26771 gcc_cv_ld_no_dot_syms
=no
26772 if test x
"$ld_is_gold" = xyes
; then
26773 gcc_cv_ld_no_dot_syms
=yes
26774 elif test $in_tree_ld = yes ; then
26775 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
26776 gcc_cv_ld_no_dot_syms
=yes
26778 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26779 cat > conftest1.s
<<EOF
26783 cat > conftest2.s
<<EOF
26784 .section ".opd","aw"
26787 .type foo,@function
26789 .quad .LEfoo,.TOC.@tocbase,0
26795 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26796 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26797 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26798 gcc_cv_ld_no_dot_syms
=yes
26800 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26805 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26806 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26808 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26813 $as_echo_n "checking linker large toc support... " >&6; }
26814 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26815 $as_echo_n "(cached) " >&6
26817 gcc_cv_ld_large_toc
=no
26818 if test x
"$ld_is_gold" = xyes
; then
26819 gcc_cv_ld_large_toc
=yes
26820 elif test $in_tree_ld = yes ; then
26821 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
26822 gcc_cv_ld_large_toc
=yes
26824 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26825 cat > conftest.s
<<EOF
26826 .section ".tbss","awT",@nobits
26832 addis 9,13,ie0@got@tprel@ha
26833 ld 9,ie0@got@tprel@l(9)
26835 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26836 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26837 gcc_cv_ld_large_toc
=yes
26839 rm -f conftest conftest.o conftest.s
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26844 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26845 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26847 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26856 $as_echo_n "checking linker large toc support... " >&6; }
26857 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26858 $as_echo_n "(cached) " >&6
26860 gcc_cv_ld_large_toc
=no
26861 if test x
$gcc_cv_as != x
; then
26862 cat > conftest.s
<<EOF
26872 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26873 gcc_cv_ld_large_toc
=yes
26875 rm -f conftest conftest.o conftest.s
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26880 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26881 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26883 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26890 $as_echo_n "checking linker --build-id support... " >&6; }
26891 if test "${gcc_cv_ld_buildid+set}" = set; then :
26892 $as_echo_n "(cached) " >&6
26894 gcc_cv_ld_buildid
=no
26895 if test $in_tree_ld = yes ; then
26896 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26897 "$gcc_cv_gld_minor_version" -ge 18 -o \
26898 "$gcc_cv_gld_major_version" -gt 2 \
26899 && test $in_tree_ld_is_elf = yes; then
26900 gcc_cv_ld_buildid
=yes
26902 elif test x
$gcc_cv_ld != x
; then
26903 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26904 gcc_cv_ld_buildid
=yes
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26909 $as_echo "$gcc_cv_ld_buildid" >&6; }
26910 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26912 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26916 # Check whether --enable-linker-build-id was given.
26917 if test "${enable_linker_build_id+set}" = set; then :
26918 enableval
=$enable_linker_build_id;
26920 enable_linker_build_id
=no
26924 if test x
"$enable_linker_build_id" = xyes
; then
26925 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26927 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26931 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26935 # In binutils 2.21, GNU ld gained support for new emulations fully
26936 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26938 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26939 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26940 $as_echo_n "(cached) " >&6
26942 gcc_cv_ld_sol2_emulation
=no
26943 if test $in_tree_ld = yes ; then
26944 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26945 "$gcc_cv_gld_minor_version" -ge 21 -o \
26946 "$gcc_cv_gld_major_version" -gt 2 \
26947 && test $in_tree_ld_is_elf = yes; then
26948 gcc_cv_ld_sol2_emulation
=yes
26950 elif test x
$gcc_cv_ld != x
; then
26951 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26952 grep _sol2
> /dev
/null
; then
26953 gcc_cv_ld_sol2_emulation
=yes
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26958 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26959 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26961 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26966 $as_echo_n "checking linker --sysroot support... " >&6; }
26967 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26968 $as_echo_n "(cached) " >&6
26970 gcc_cv_ld_sysroot
=no
26971 if test $in_tree_ld = yes ; then
26972 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
26973 gcc_cv_ld_sysroot
=yes
26975 elif test x
$gcc_cv_ld != x
; then
26976 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26977 gcc_cv_ld_sysroot
=yes
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26982 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26983 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26985 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26989 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26990 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26991 && test "$prefix" != "NONE"; then
26993 cat >>confdefs.h
<<_ACEOF
26994 #define PREFIX_INCLUDE_DIR "$prefix/include"
26999 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
27000 if test "x$with_headers" != x
; then
27001 target_header_dir
=$with_headers
27002 elif test "x$with_sysroot" = x
; then
27003 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
27004 elif test "x$with_build_sysroot" != "x"; then
27005 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
27006 elif test "x$with_sysroot" = xyes
; then
27007 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27009 target_header_dir
="${with_sysroot}${native_system_header_dir}"
27012 target_header_dir
=${native_system_header_dir}
27015 # Test for stack protector support in target C library.
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27017 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27018 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27019 $as_echo_n "(cached) " >&6
27021 gcc_cv_libc_provides_ssp
=no
27023 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27024 # glibc 2.4 and later provides __stack_chk_fail and
27025 # either __stack_chk_guard, or TLS access to stack guard canary.
27026 if test -f $target_header_dir/features.h \
27027 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27028 $target_header_dir/features.h
> /dev
/null
; then
27029 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27030 $target_header_dir/features.h
> /dev
/null
; then
27031 gcc_cv_libc_provides_ssp
=yes
27032 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27033 $target_header_dir/features.h
> /dev
/null \
27034 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27035 $target_header_dir/features.h
> /dev
/null
; then
27036 gcc_cv_libc_provides_ssp
=yes
27037 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27038 $target_header_dir/features.h
> /dev
/null
&& \
27039 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27040 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27041 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27042 gcc_cv_libc_provides_ssp
=yes
27044 # all versions of Bionic support stack protector
27045 elif test -f $target_header_dir/sys
/cdefs.h \
27046 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27047 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27048 gcc_cv_libc_provides_ssp
=yes
27052 # Avoid complicated tests (see
27053 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27054 # simply assert that glibc does provide this, which is true for all
27055 # realistically usable GNU/Hurd configurations.
27056 gcc_cv_libc_provides_ssp
=yes;;
27057 *-*-darwin* |
*-*-freebsd*)
27058 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27059 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27060 gcc_cv_libc_provides_ssp
=yes
27062 echo "no __stack_chk_fail on this target"
27066 *) gcc_cv_libc_provides_ssp
=no
;;
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27070 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27072 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27074 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27078 # Test for <sys/sdt.h> on the target.
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27081 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27083 if test -f $target_header_dir/sys
/sdt.h
; then
27086 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27090 $as_echo "$have_sys_sdt_h" >&6; }
27092 # Check if TFmode long double should be used by default or not.
27093 # Some glibc targets used DFmode long double, but with glibc 2.4
27094 # and later they can use TFmode.
27096 powerpc
*-*-linux* | \
27097 sparc
*-*-linux* | \
27101 # Check whether --with-long-double-128 was given.
27102 if test "${with_long_double_128+set}" = set; then :
27103 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27105 gcc_cv_target_ldbl128
=no
27106 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27107 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27108 && gcc_cv_target_ldbl128
=yes
27114 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27116 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27121 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27122 gcc_cv_target_dl_iterate_phdr
=unknown
27124 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27125 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27126 # libdl there, both complicating its use and breaking compatibility
27127 # between Solaris 10 updates.
27128 *-*-solaris2.1
[1-9]*)
27129 # <link.h> needs both a dl_iterate_phdr declaration and support for
27130 # compilation with largefile support.
27131 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27132 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27133 gcc_cv_target_dl_iterate_phdr
=yes
27135 gcc_cv_target_dl_iterate_phdr
=no
27140 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27142 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27146 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27148 # We no longer support different GC mechanisms. Emit an error if
27149 # the user configures with --with-gc.
27151 # Check whether --with-gc was given.
27152 if test "${with_gc+set}" = set; then :
27153 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27157 # Libraries to use on the host. This will normally be set by the top
27158 # level Makefile. Here we simply capture the value for our Makefile.
27159 if test -z "${HOST_LIBS+set}"; then
27164 # Use the system's zlib library.
27166 zlibinc
="-I\$(srcdir)/../zlib"
27168 # Check whether --with-system-zlib was given.
27169 if test "${with_system_zlib+set}" = set; then :
27170 withval
=$with_system_zlib; zlibdir
=
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27180 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27181 # Check whether --enable-maintainer-mode was given.
27182 if test "${enable_maintainer_mode+set}" = set; then :
27183 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27190 $as_echo "$maintainer_mode" >&6; }
27192 if test "$maintainer_mode" = "yes"; then
27202 # Make empty files to contain the specs and options for each language.
27203 # Then add #include lines to for a compiler that has specs and/or options.
27209 # These (without "all_") are set in each config-lang.in.
27210 # `language' must be a single word so is spelled singularly.
27213 all_outputs
='Makefile'
27214 # List of language makefile fragments.
27215 all_lang_makefrags
=
27216 # Additional files for gengtype
27217 all_gtfiles
="$target_gtfiles"
27219 # These are the languages that are set in --enable-languages,
27220 # and are available in the GCC tree.
27221 all_selected_languages
=
27223 # Add the language fragments.
27224 # Languages are added via two mechanisms. Some information must be
27225 # recorded in makefile variables, these are defined in config-lang.in.
27226 # We accumulate them and plug them into the main Makefile.
27227 # The other mechanism is a set of hooks for each of the main targets
27228 # like `clean', `install', etc.
27230 language_hooks
="Make-hooks"
27232 for lang
in ${srcdir}/*/config-lang.
in
27234 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27236 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27237 if test "x$lang_alias" = x
27239 echo "$lang doesn't set \$language." 1>&2
27242 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27243 subdirs
="$subdirs $subdir"
27245 # $gcc_subdir is where the gcc integration files are to be found
27246 # for a language, both for internal compiler purposes (compiler
27247 # sources implementing front-end to GCC tree converters), and for
27248 # build infrastructure purposes (Make-lang.in, etc.)
27250 # This will be <subdir> (relative to $srcdir) if a line like
27251 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27252 # is found in <langdir>/config-lang.in, and will remain <langdir>
27255 # Except for the language alias (fetched above), the regular
27256 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27257 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27258 # only this and the language alias.
27260 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27261 if [ "$gcc_subdir" = "" ]; then
27262 gcc_subdir
="$subdir"
27265 case ",$enable_languages," in
27267 all_selected_languages
="$all_selected_languages $lang_alias"
27268 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27269 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27280 .
${srcdir}/$gcc_subdir/config-lang.
in
27281 if test "x$language" = x
27283 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27288 case ",$enable_languages," in
27289 *,$lang_alias,*) ;;
27291 for i
in $subdir_requires; do
27292 test -f "${srcdir}/$i/config-lang.in" && continue
27300 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27301 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27302 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27303 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27305 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27306 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27308 all_languages
="$all_languages $language"
27309 all_compilers
="$all_compilers $compilers"
27310 all_outputs
="$all_outputs $outputs"
27311 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27312 case ",$enable_languages," in
27315 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27325 for language
in $all_selected_languages
27327 check_languages
="$check_languages check-$language"
27330 # We link each language in with a set of hooks, reached indirectly via
27331 # lang.${target}. Only do so for selected languages.
27335 target_list
="all.cross start.encap rest.encap tags \
27336 install-common install-man install-info install-pdf install-html dvi \
27337 pdf html uninstall info man srcextra srcman srcinfo \
27338 mostlyclean clean distclean maintainer-clean install-plugin"
27340 for t
in $target_list
27343 for lang
in $all_selected_languages
27347 echo "lang.$t: $x" >> Make-hooks
27351 # Option include files
27354 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27355 option_includes
="option-includes.mk"
27364 echo "dir ." > .gdbinit
27365 echo "dir ${srcdir}" >> .gdbinit
27366 if test x
$gdb_needs_out_file_path = xyes
27368 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27370 if test "x$subdirs" != x
; then
27373 echo "dir ${srcdir}/$s" >> .gdbinit
27376 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27378 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27382 # Find a directory in which to install a shared libgcc.
27384 # Check whether --enable-version-specific-runtime-libs was given.
27385 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27386 enableval
=$enable_version_specific_runtime_libs;
27390 # Substitute configuration variables
27454 if test x
${build} = x
${host} ; then
27455 if test x
${host} = x
${target} ; then
27456 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27458 echo "Links are now set up to build a cross-compiler" 1>&2
27459 echo " from ${host} to ${target}." 1>&2
27462 if test x
${host} = x
${target} ; then
27463 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27464 echo " for ${target}." 1>&2
27466 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27467 echo " from ${host} to ${target}." 1>&2
27479 if test "x${CLOOGLIBS}" != "x" ; then
27481 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27485 # Check for plugin support
27486 # Check whether --enable-plugin was given.
27487 if test "${enable_plugin+set}" = set; then :
27488 enableval
=$enable_plugin; enable_plugin
=$enableval
27490 enable_plugin
=yes; default_plugin
=yes
27498 if test x
$build = x
$host; then
27499 export_sym_check
="nm${exeext} -g"
27500 elif test x
$host = x
$target; then
27501 export_sym_check
="$gcc_cv_nm -g"
27507 if test x
$build = x
$host; then
27508 export_sym_check
="objdump${exeext} -T"
27509 elif test x
$host = x
$target; then
27510 export_sym_check
="$gcc_cv_objdump -T"
27517 if test x
"$enable_plugin" = x
"yes"; then
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27520 $as_echo_n "checking for exported symbols... " >&6; }
27521 if test "x$export_sym_check" != x
; then
27522 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27523 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27524 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27525 : # No need to use a flag
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27527 $as_echo "yes" >&6; }
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27530 $as_echo "yes" >&6; }
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27532 $as_echo_n "checking for -rdynamic... " >&6; }
27533 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27534 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27535 plugin_rdynamic
=yes
27536 pluginlibs
="-rdynamic"
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27542 $as_echo "$plugin_rdynamic" >&6; }
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27546 $as_echo "unable to check" >&6; }
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27552 $as_echo_n "checking for library containing dlopen... " >&6; }
27553 if test "${ac_cv_search_dlopen+set}" = set; then :
27554 $as_echo_n "(cached) " >&6
27556 ac_func_search_save_LIBS
=$LIBS
27557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27558 /* end confdefs.h. */
27560 /* Override any GCC internal prototype to avoid an error.
27561 Use char because int might match the return type of a GCC
27562 builtin and then its argument prototype would still apply. */
27575 for ac_lib
in '' dl
; do
27576 if test -z "$ac_lib"; then
27577 ac_res
="none required"
27580 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27582 if ac_fn_c_try_link
"$LINENO"; then :
27583 ac_cv_search_dlopen
=$ac_res
27585 rm -f core conftest.err conftest.
$ac_objext \
27587 if test "${ac_cv_search_dlopen+set}" = set; then :
27591 if test "${ac_cv_search_dlopen+set}" = set; then :
27594 ac_cv_search_dlopen
=no
27596 rm conftest.
$ac_ext
27597 LIBS
=$ac_func_search_save_LIBS
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27600 $as_echo "$ac_cv_search_dlopen" >&6; }
27601 ac_res
=$ac_cv_search_dlopen
27602 if test "$ac_res" != no
; then :
27603 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27607 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27608 pluginlibs
="$pluginlibs -ldl"
27612 # Check that we can build shared objects with -fPIC -shared
27613 saved_LDFLAGS
="$LDFLAGS"
27614 saved_CFLAGS
="$CFLAGS"
27617 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27618 CFLAGS
="$CFLAGS -fPIC"
27619 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27622 CFLAGS
="$CFLAGS -fPIC"
27623 LDFLAGS
="$LDFLAGS -fPIC -shared"
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27627 $as_echo_n "checking for -fPIC -shared... " >&6; }
27628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27639 if ac_fn_c_try_link
"$LINENO"; then :
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27641 $as_echo "yes" >&6; }; have_pic_shared
=yes
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27644 $as_echo "no" >&6; }; have_pic_shared
=no
27646 rm -f core conftest.err conftest.
$ac_objext \
27647 conftest
$ac_exeext conftest.
$ac_ext
27648 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27652 LDFLAGS
="$saved_LDFLAGS"
27653 CFLAGS
="$saved_CFLAGS"
27655 # If plugin support had been requested but not available, fail.
27656 if test x
"$enable_plugin" = x
"no" ; then
27657 if test x
"$default_plugin" != x
"yes"; then
27659 Building GCC with plugin support requires a host that supports
27660 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27667 if test x
"$enable_plugin" = x
"yes"; then
27669 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27674 # Check whether --enable-libquadmath-support was given.
27675 if test "${enable_libquadmath_support+set}" = set; then :
27676 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27678 ENABLE_LIBQUADMATH_SUPPORT
=yes
27681 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27683 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27688 # Specify what hash style to use by default.
27690 # Check whether --with-linker-hash-style was given.
27691 if test "${with_linker_hash_style+set}" = set; then :
27692 withval
=$with_linker_hash_style; case x
"$withval" in
27694 LINKER_HASH_STYLE
=sysv
27697 LINKER_HASH_STYLE
=gnu
27700 LINKER_HASH_STYLE
=both
27703 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27707 LINKER_HASH_STYLE
=''
27710 if test x
"${LINKER_HASH_STYLE}" != x
; then
27712 cat >>confdefs.h
<<_ACEOF
27713 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27718 # Configure the subdirectories
27719 # AC_CONFIG_SUBDIRS($subdirs)
27721 # Create the Makefile
27722 # and configure language subdirectories
27723 ac_config_files
="$ac_config_files $all_outputs"
27726 ac_config_commands
="$ac_config_commands default"
27728 cat >confcache
<<\_ACEOF
27729 # This file is a shell script that caches the results of configure
27730 # tests run on this system so they can be shared between configure
27731 # scripts and configure runs, see configure's option --config-cache.
27732 # It is not useful on other systems. If it contains results you don't
27733 # want to keep, you may remove or edit it.
27735 # config.status only pays attention to the cache file if you give it
27736 # the --recheck option to rerun configure.
27738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27740 # following values.
27744 # The following way of writing the cache mishandles newlines in values,
27745 # but we know of no workaround that is simple, portable, and efficient.
27746 # So, we kill variables containing newlines.
27747 # Ultrix sh set writes to stderr and can't be redirected directly,
27748 # and sets the high bit in the cache file unless we assign to the vars.
27750 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27751 eval ac_val
=\$
$ac_var
27755 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27759 _ | IFS | as_nl
) ;; #(
27760 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27761 *) { eval $ac_var=; unset $ac_var;} ;;
27767 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27768 *${as_nl}ac_space
=\
*)
27769 # `set' does not quote correctly, so add quotes: double-quote
27770 # substitution turns \\\\ into \\, and sed turns \\ into \.
27773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27776 # `set' quotes correctly as required by POSIX, so do not add quotes.
27777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27790 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27791 if test -w "$cache_file"; then
27792 test "x$cache_file" != "x/dev/null" &&
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27794 $as_echo "$as_me: updating cache $cache_file" >&6;}
27795 cat confcache
>$cache_file
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27798 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27803 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27804 # Let make expand exec_prefix.
27805 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27807 DEFS
=-DHAVE_CONFIG_H
27811 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27812 # 1. Remove the extension, and $U if already installed.
27813 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27814 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27816 # will be set to the directory where LIBOBJS objects are built.
27817 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27818 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27820 LIBOBJS
=$ac_libobjs
27822 LTLIBOBJS
=$ac_ltlibobjs
27827 : ${CONFIG_STATUS=./config.status}
27829 ac_clean_files_save
=$ac_clean_files
27830 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27836 # Generated by $as_me.
27837 # Run this file to recreate the current configuration.
27838 # Compiler output produced by configure, useful for debugging
27839 # configure, is in config.log if it exists.
27842 ac_cs_recheck=false
27845 SHELL=\${CONFIG_SHELL-$SHELL}
27848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27849 ## -------------------- ##
27850 ## M4sh Initialization. ##
27851 ## -------------------- ##
27853 # Be more Bourne compatible
27854 DUALCASE
=1; export DUALCASE
# for MKS sh
27855 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27859 # is contrary to our usage. Disable this feature.
27860 alias -g '${1+"$@"}'='"$@"'
27861 setopt NO_GLOB_SUBST
27863 case `(set -o) 2>/dev/null` in #(
27875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27876 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27879 # Prefer a ksh shell builtin over an external printf program on Solaris,
27880 # but without wasting forks for bash or zsh.
27881 if test -z "$BASH_VERSION$ZSH_VERSION" \
27882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27883 as_echo='print
-r --'
27884 as_echo_n='print
-rn --'
27885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27886 as_echo='printf %s
\n'
27887 as_echo_n='printf %s
'
27889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27890 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27891 as_echo_n='/usr
/ucb
/echo -n'
27893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27894 as_echo_n_body='eval
27898 expr "X$arg" : "X\\(.*\\)$as_nl";
27899 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27901 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27903 export as_echo_n_body
27904 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27906 export as_echo_body
27907 as_echo='sh
-c $as_echo_body as_echo
'
27910 # The user is always right.
27911 if test "${PATH_SEPARATOR+set}" != set; then
27913 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27914 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27921 # We need space, tab and new line, in precisely that order. Quoting is
27922 # there to prevent editors from complaining about space-tab.
27923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27924 # splitting by setting IFS to empty value.)
27927 # Find who we are. Look in the path if we contain no directory separator.
27929 *[\\/]* ) as_myself=$0 ;;
27930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27931 for as_dir in $PATH
27934 test -z "$as_dir" && as_dir=.
27935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27941 # We did not find ourselves, most probably we were run as `sh COMMAND'
27942 # in which case we are not to be found in the path.
27943 if test "x$as_myself" = x
; then
27946 if test ! -f "$as_myself"; then
27947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27951 # Unset variables that we do not need and which cause bugs (e.g. in
27952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27953 # suppresses any "Segmentation fault" message there. '((' could
27954 # trigger a bug in pdksh 5.2.14.
27955 for as_var
in BASH_ENV ENV MAIL MAILPATH
27956 do eval test x\
${$as_var+set} = xset \
27957 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27970 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27973 # as_fn_error ERROR [LINENO LOG_FD]
27974 # ---------------------------------
27975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27977 # script with status $?, using 1 if that was 0.
27980 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27982 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27985 $as_echo "$as_me: error: $1" >&2
27986 as_fn_exit
$as_status
27990 # as_fn_set_status STATUS
27991 # -----------------------
27992 # Set $? to STATUS, without forking.
27993 as_fn_set_status
()
27996 } # as_fn_set_status
27998 # as_fn_exit STATUS
27999 # -----------------
28000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28004 as_fn_set_status
$1
28010 # Portably unset VAR.
28013 { eval $1=; unset $1;}
28015 as_unset
=as_fn_unset
28016 # as_fn_append VAR VALUE
28017 # ----------------------
28018 # Append the text in VALUE to the end of the definition contained in VAR. Take
28019 # advantage of any shell optimizations that allow amortized linear growth over
28020 # repeated appends, instead of the typical quadratic growth present in naive
28022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28023 eval 'as_fn_append ()
28034 # as_fn_arith ARG...
28035 # ------------------
28036 # Perform arithmetic evaluation on the ARGs, and store the result in the
28037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28038 # must be portable across $(()) and expr.
28039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28040 eval 'as_fn_arith ()
28047 as_val
=`expr "$@" || test $? -eq 1`
28052 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28053 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28059 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28060 as_basename
=basename
28065 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28071 as_me
=`$as_basename -- "$0" ||
28072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28073 X"$0" : 'X\(//\)$' \| \
28074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28076 sed '/^.*\/\([^/][^/]*\)\/*$/{
28090 # Avoid depending upon Character Ranges.
28091 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28092 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28093 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28094 as_cr_digits
='0123456789'
28095 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28097 ECHO_C
= ECHO_N
= ECHO_T
=
28098 case `echo -n x` in #(((((
28100 case `echo 'xy\c'` in
28101 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28103 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28110 rm -f conf$$ conf$$.exe conf$$.
file
28111 if test -d conf$$.dir
; then
28112 rm -f conf$$.dir
/conf$$.
file
28115 mkdir conf$$.dir
2>/dev
/null
28117 if (echo >conf$$.
file) 2>/dev
/null
; then
28118 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28120 # ... but there are two gotchas:
28121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28123 # In both cases, we have to default to `cp -p'.
28124 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28126 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28134 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28135 rmdir conf$$.dir
2>/dev
/null
28140 # Create "$as_dir" as a directory, including parents if necessary.
28145 -*) as_dir
=.
/$as_dir;;
28147 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28151 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28152 *) as_qdir
=$as_dir;;
28154 as_dirs
="'$as_qdir' $as_dirs"
28155 as_dir
=`$as_dirname -- "$as_dir" ||
28156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28157 X"$as_dir" : 'X\(//\)[^/]' \| \
28158 X"$as_dir" : 'X\(//\)$' \| \
28159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28160 $as_echo X"$as_dir" |
28161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28165 /^X\(\/\/\)[^/].*/{
28178 test -d "$as_dir" && break
28180 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28181 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28185 if mkdir
-p .
2>/dev
/null
; then
28186 as_mkdir_p
='mkdir -p "$as_dir"'
28188 test -d .
/-p && rmdir .
/-p
28192 if test -x / >/dev
/null
2>&1; then
28193 as_test_x
='test -x'
28195 if ls -dL / >/dev
/null
2>&1; then
28202 if test -d "$1"; then
28208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28209 ???[sx]*):;;*)false;;esac;fi
28213 as_executable_p
=$as_test_x
28215 # Sed expression to map a string onto a valid CPP name.
28216 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28218 # Sed expression to map a string onto a valid variable name.
28219 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28223 ## ----------------------------------- ##
28224 ## Main body of $CONFIG_STATUS script. ##
28225 ## ----------------------------------- ##
28227 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28230 # Save the log message, to keep $0 and so on meaningful, and to
28231 # report actual input values of CONFIG_FILES etc. instead of their
28232 # values after options handling.
28234 This file was extended by $as_me, which was
28235 generated by GNU Autoconf 2.64. Invocation command line was
28237 CONFIG_FILES = $CONFIG_FILES
28238 CONFIG_HEADERS = $CONFIG_HEADERS
28239 CONFIG_LINKS = $CONFIG_LINKS
28240 CONFIG_COMMANDS = $CONFIG_COMMANDS
28243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28248 case $ac_config_files in *"
28249 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28252 case $ac_config_headers in *"
28253 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28258 # Files that config.status was made for.
28259 config_files="$ac_config_files"
28260 config_headers="$ac_config_headers"
28261 config_commands="$ac_config_commands"
28265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28267 \`$as_me' instantiates files and other configuration actions
28268 from templates according to the current configuration. Unless the files
28269 and actions are specified as TAGs, all are instantiated by default.
28271 Usage: $0 [OPTION]... [TAG]...
28273 -h, --help print this help, then exit
28274 -V, --version print version number and configuration settings, then exit
28275 -q, --quiet, --silent
28276 do not print progress messages
28277 -d, --debug don't remove temporary files
28278 --recheck update $as_me by reconfiguring in the same conditions
28279 --file=FILE[:TEMPLATE]
28280 instantiate the configuration file FILE
28281 --header=FILE[:TEMPLATE]
28282 instantiate the configuration header FILE
28284 Configuration files:
28287 Configuration headers:
28290 Configuration commands:
28293 Report bugs to the package provider."
28296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28299 configured by $0, generated by GNU Autoconf 2.64,
28300 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28302 Copyright (C) 2009 Free Software Foundation, Inc.
28303 This config.status script is free software; the Free Software Foundation
28304 gives unlimited permission to copy, distribute and modify it."
28309 test -n "\$AWK" || AWK=awk
28312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28313 # The default lists apply if the user does not specify any file.
28319 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28320 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28331 # Handling of the options.
28332 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28334 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28335 $as_echo "$ac_cs_version"; exit ;;
28336 --debug |
--debu |
--deb |
--de |
--d |
-d )
28338 --file |
--fil |
--fi |
--f )
28341 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28343 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28344 ac_need_defaults
=false
;;
28345 --header |
--heade |
--head |
--hea )
28348 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28350 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28351 ac_need_defaults
=false
;;
28353 # Conflict between --help and --header
28354 as_fn_error
"ambiguous option: \`$1'
28355 Try \`$0 --help' for more information.";;
28356 --help |
--hel |
-h )
28357 $as_echo "$ac_cs_usage"; exit ;;
28358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28359 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28362 # This is an error.
28363 -*) as_fn_error
"unrecognized option: \`$1'
28364 Try \`$0 --help' for more information." ;;
28366 *) as_fn_append ac_config_targets
" $1"
28367 ac_need_defaults
=false
;;
28373 ac_configure_extra_args
=
28375 if $ac_cs_silent; then
28377 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28382 if \$ac_cs_recheck; then
28383 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28385 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28386 CONFIG_SHELL='$SHELL'
28387 export CONFIG_SHELL
28392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28397 ## Running $as_me. ##
28403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28413 # Handling of arguments.
28414 for ac_config_target
in $ac_config_targets
28416 case $ac_config_target in
28417 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28418 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28419 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28420 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28421 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28422 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28424 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28429 # If the user did not use the arguments to specify the items to instantiate,
28430 # then the envvar interface is used. Set only those that are not.
28431 # We use the long form for the default assignment because of an extremely
28432 # bizarre bug on SunOS 4.1.3.
28433 if $ac_need_defaults; then
28434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28439 # Have a temporary directory for convenience. Make it in the build tree
28440 # simply because there is no reason against having it here, and in addition,
28441 # creating and moving files from /tmp can sometimes cause problems.
28442 # Hook for its removal unless debugging.
28443 # Note that there is a small window in which the directory will not be cleaned:
28444 # after its creation but before its name has been assigned to `$tmp'.
28448 trap 'exit_status=$?
28449 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28451 trap 'as_fn_exit 1' 1 2 13 15
28453 # Create a (secure) tmp directory for tmp files.
28456 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28457 test -n "$tmp" && test -d "$tmp"
28460 tmp
=.
/conf$$
-$RANDOM
28461 (umask 077 && mkdir
"$tmp")
28462 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28464 # Set up the scripts for CONFIG_FILES section.
28465 # No need to generate them if there are no CONFIG_FILES.
28466 # This happens for instance with `./config.status config.h'.
28467 if test -n "$CONFIG_FILES"; then
28469 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28470 ac_cs_awk_getline
=:
28471 ac_cs_awk_pipe_init
=
28472 ac_cs_awk_read_file
='
28473 while ((getline aline < (F[key])) > 0)
28476 ac_cs_awk_pipe_fini
=
28478 ac_cs_awk_getline
=false
28479 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28480 ac_cs_awk_read_file
='
28482 print "cat " F[key] " &&"
28483 '$ac_cs_awk_pipe_init
28484 # The final `:' finishes the AND list.
28485 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28487 ac_cr
=`echo X | tr X '\015'`
28488 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28489 # But we know of no other shell where ac_cr would be empty at this
28490 # point, so we can use a bashism as a fallback.
28491 if test "x$ac_cr" = x
; then
28492 eval ac_cr
=\$
\'\\r
\'
28494 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28498 ac_cs_awk_cr
=$ac_cr
28501 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28504 # Create commands to substitute file output variables.
28506 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28507 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28508 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28511 } >conf$
$files.sh
&&
28512 . .
/conf$
$files.sh ||
28513 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28514 rm -f conf$
$files.sh
28517 echo "cat >conf$$subs.awk <<_ACEOF" &&
28518 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28520 } >conf$$subs.sh ||
28521 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28522 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28524 for ac_last_try in false false false false false :; do
28525 . ./conf$$subs.sh ||
28526 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28528 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28529 if test $ac_delim_n = $ac_delim_num; then
28531 elif $ac_last_try; then
28532 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28534 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28537 rm -f conf$$subs.sh
28539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28540 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28544 s/^/S["/; s
/!.
*/"]=/
28554 s/\(.\{148\}\).*/\1/
28556 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28561 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28568 s/\(.\{148\}\).*/\1/
28570 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28574 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28579 ' <conf$$subs.awk | sed '
28584 ' >>$CONFIG_STATUS || ac_write_fail=1
28585 rm -f conf$$subs.awk
28586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28588 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28589 for (key in S) S_is_set[key] = 1
28591 \$ac_cs_awk_pipe_init
28595 nfields = split(line, field, "@
")
28597 len = length(field[1])
28598 for (i = 2; i < nfields; i++) {
28600 keylen = length(key)
28601 if (S_is_set[key]) {
28603 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28604 len += length(value) + length(field[++i])
28609 if (nfields == 3 && !substed) {
28611 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28612 \$ac_cs_awk_read_file
28618 \$ac_cs_awk_pipe_fini
28621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28622 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28623 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28626 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28627 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28630 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28631 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28632 # trailing colons and then remove the whole line if VPATH becomes empty
28633 # (actually we leave an empty line to preserve line numbers).
28634 if test "x
$srcdir" = x.; then
28635 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28636 s/:*\$(srcdir):*/:/
28637 s/:*\${srcdir}:*/:/
28639 s/^\([^=]*=[ ]*\):*/\1/
28645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28646 fi # test -n "$CONFIG_FILES"
28648 # Set up the scripts for CONFIG_HEADERS section.
28649 # No need to generate them if there are no CONFIG_HEADERS.
28650 # This happens for instance with `./config.status Makefile'.
28651 if test -n "$CONFIG_HEADERS"; then
28652 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28656 # Transform confdefs.h into an awk script `defines.awk', embedded as
28657 # here-document in config.status, that substitutes the proper values into
28658 # config.h.in to produce config.h.
28660 # Create a delimiter string that does not exist in confdefs.h, to ease
28661 # handling of long lines.
28663 for ac_last_try in false false :; do
28664 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28665 if test -z "$ac_t"; then
28667 elif $ac_last_try; then
28668 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28670 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28674 # For the awk script, D is an array of macro values keyed by name,
28675 # likewise P contains macro parameters if any. Preserve backslash
28676 # newline sequences.
28678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28680 s/.\{148\}/&'"$ac_delim"'/g
28683 s/^[ ]*#[ ]*define[ ][ ]*/ /
28690 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28692 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28697 D["\
1"]=" \
3\\\\\\n
"\\/p
28699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28704 s/.\{148\}/&'"$ac_delim"'/g
28709 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28712 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28714 ' <confdefs.h | sed '
28715 s/'"$ac_delim"'/"\\\
28716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28719 for (key in D) D_is_set[key] = 1
28722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28724 split(line, arg, " ")
28725 if (arg[1] == "#") {
28729 defundef
= substr
(arg
[1], 2)
28732 split(mac1
, mac2
, "(") #)
28734 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28735 if (D_is_set
[macro
]) {
28736 # Preserve the white space surrounding the "#".
28737 print prefix
"define", macro P
[macro
] D
[macro
]
28740 # Replace #undef with comments. This is necessary, for example,
28741 # in the case of _POSIX_SOURCE, which is predefined and required
28742 # on some systems where configure will not decide to define it.
28743 if (defundef
== "undef") {
28744 print
"/*", prefix defundef
, macro
, "*/"
28752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28753 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28754 fi # test -n "$CONFIG_HEADERS"
28757 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28762 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28764 case $ac_mode$ac_tag in
28766 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28767 :[FH
]-) ac_tag
=-:-;;
28768 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28785 -) ac_f
="$tmp/stdin";;
28786 *) # Look for the file first in the build tree, then in the source tree
28787 # (if the path is not absolute). The absolute path cannot be DOS-style,
28788 # because $ac_f cannot contain `:'.
28792 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28794 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28796 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28797 as_fn_append ac_file_inputs
" '$ac_f'"
28800 # Let's still pretend it is `configure' which instantiates (i.e., don't
28801 # use $as_me), people would be surprised to read:
28802 # /* config.h. Generated by config.status. */
28803 configure_input
='Generated from '`
28804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28806 if test x
"$ac_file" != x-
; then
28807 configure_input
="$ac_file. $configure_input"
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28809 $as_echo "$as_me: creating $ac_file" >&6;}
28811 # Neutralize special characters interpreted by sed in replacement strings.
28812 case $configure_input in #(
28813 *\
&* |
*\|
* |
*\\* )
28814 ac_sed_conf_input
=`$as_echo "$configure_input" |
28815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28816 *) ac_sed_conf_input
=$configure_input;;
28820 *:-:* |
*:-) cat >"$tmp/stdin" \
28821 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28826 ac_dir
=`$as_dirname -- "$ac_file" ||
28827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28828 X"$ac_file" : 'X\(//\)[^/]' \| \
28829 X"$ac_file" : 'X\(//\)$' \| \
28830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28831 $as_echo X"$ac_file" |
28832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28836 /^X\(\/\/\)[^/].*/{
28849 as_dir
="$ac_dir"; as_fn_mkdir_p
28853 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28855 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28856 # A ".." for each directory in $ac_dir_suffix.
28857 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28858 case $ac_top_builddir_sub in
28859 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28860 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28863 ac_abs_top_builddir
=$ac_pwd
28864 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28865 # for backward compatibility:
28866 ac_top_builddir
=$ac_top_build_prefix
28869 .
) # We are building in place.
28871 ac_top_srcdir
=$ac_top_builddir_sub
28872 ac_abs_top_srcdir
=$ac_pwd ;;
28873 [\\/]* | ?
:[\\/]* ) # Absolute name.
28874 ac_srcdir
=$srcdir$ac_dir_suffix;
28875 ac_top_srcdir
=$srcdir
28876 ac_abs_top_srcdir
=$srcdir ;;
28877 *) # Relative name.
28878 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28879 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28880 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28882 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28894 # If the template does not know about datarootdir, expand it.
28895 # FIXME: This hack should be removed a few years after 2.60.
28896 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28907 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28908 *datarootdir
*) ac_datarootdir_seen
=yes;;
28909 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28911 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28914 ac_datarootdir_hack='
28915 s&@datadir@&$datadir&g
28916 s&@docdir@&$docdir&g
28917 s&@infodir@&$infodir&g
28918 s&@localedir@&$localedir&g
28919 s&@mandir@&$mandir&g
28920 s&\\\${datarootdir}&$datarootdir&g' ;;
28924 # Neutralize VPATH when `$srcdir' = `.'.
28925 # Shell code in configure.ac might set extrasub.
28926 # FIXME: do we really want to maintain this feature?
28927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28928 ac_sed_extra="$ac_vpsub
28931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28933 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28934 s|@configure_input@|
$ac_sed_conf_input|
;t t
28935 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28936 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28937 s
&@srcdir@
&$ac_srcdir&;t t
28938 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28939 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28940 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28941 s
&@builddir@
&$ac_builddir&;t t
28942 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28943 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28944 $ac_datarootdir_hack
28946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28947 if $ac_cs_awk_getline; then
28948 $AWK -f "$tmp/subs.
awk"
28950 $AWK -f "$tmp/subs.
awk" | $SHELL
28952 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28955 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28956 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28958 which seems to be undefined. Please make sure it is defined." >&5
28959 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28960 which seems to be undefined. Please make sure it is defined." >&2;}
28964 -) cat "$tmp/out" && rm -f "$tmp/out";;
28965 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28967 || as_fn_error "could not create $ac_file" "$LINENO" 5
28973 if test x"$ac_file" != x-; then
28975 $as_echo "/* $configure_input */" \
28976 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28977 } >"$tmp/config.h" \
28978 || as_fn_error "could not create $ac_file" "$LINENO" 5
28979 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28981 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28984 mv "$tmp/config.h" "$ac_file" \
28985 || as_fn_error "could not create $ac_file" "$LINENO" 5
28988 $as_echo "/* $configure_input */" \
28989 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28990 || as_fn_error "could not create -" "$LINENO" 5
28994 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28995 $as_echo "$as_me: executing $ac_file commands" >&6;}
29000 case $ac_file$ac_mode in
29001 "as":F) chmod +x as ;;
29002 "collect-ld":F) chmod +x collect-ld ;;
29003 "nm":F) chmod +x nm ;;
29005 case ${CONFIG_HEADERS} in
29006 *auto-host.h:config.in*)
29009 # Make sure all the subdirs exist.
29010 for d in $subdirs doc build common c-family
29012 test -d $d || mkdir $d
29022 ac_clean_files=$ac_clean_files_save
29024 test $ac_write_fail = 0 ||
29025 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29028 # configure is writing to config.log, and then calls config.status.
29029 # config.status does its own redirection, appending to config.log.
29030 # Unfortunately, on DOS this fails, as config.log is still kept open
29031 # by configure, so config.status won't be able to
write to it
; its
29032 # output is simply discarded. So we exec the FD to /dev/null,
29033 # effectively closing config.log, so it can be properly (re)opened and
29034 # appended to by config.status. When coming back to configure, we
29035 # need to make the FD available again.
29036 if test "$no_create" != yes; then
29038 ac_config_status_args
=
29039 test "$silent" = yes &&
29040 ac_config_status_args
="$ac_config_status_args --quiet"
29042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29045 # would make configure fail if this is the last instruction.
29046 $ac_cs_success || as_fn_exit $?
29048 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29050 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}