2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
771 valgrind_path_defines
845 program_transform_name
856 ac_subst_files
='option_includes
859 enable_option_checking
864 enable_generated_files_in_srcdir
874 enable_gather_detailed_mem_stats
885 with_native_system_header_dir
895 enable_sjlj_exceptions
897 enable_leading_mingw64_underscores
900 enable_win32_registry
906 enable_gnu_indirect_function
907 enable_initfini_array
909 enable_gnu_unique_object
910 enable_linker_build_id
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
917 enable_libquadmath_support
918 with_linker_hash_style
920 ac_precious_vars
='build_alias
941 # Initialize some variables set by options.
943 ac_init_version
=false
944 ac_unrecognized_opts
=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name
=s
,x
,x
,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir
='${exec_prefix}/bin'
970 sbindir
='${exec_prefix}/sbin'
971 libexecdir
='${exec_prefix}/libexec'
972 datarootdir
='${prefix}/share'
973 datadir
='${datarootdir}'
974 sysconfdir
='${prefix}/etc'
975 sharedstatedir
='${prefix}/com'
976 localstatedir
='${prefix}/var'
977 includedir
='${prefix}/include'
978 oldincludedir
='/usr/include'
979 docdir
='${datarootdir}/doc/${PACKAGE}'
980 infodir
='${datarootdir}/info'
985 libdir
='${exec_prefix}/lib'
986 localedir
='${datarootdir}/locale'
987 mandir
='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\
$ac_option
1001 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1013 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1014 bindir
=$ac_optarg ;;
1016 -build |
--build |
--buil |
--bui |
--bu)
1017 ac_prev
=build_alias
;;
1018 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1019 build_alias
=$ac_optarg ;;
1021 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1022 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1023 ac_prev
=cache_file
;;
1024 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1025 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1026 cache_file
=$ac_optarg ;;
1028 --config-cache |
-C)
1029 cache_file
=config.cache
;;
1031 -datadir |
--datadir |
--datadi |
--datad)
1033 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1034 datadir
=$ac_optarg ;;
1036 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1037 |
--dataroo |
--dataro |
--datar)
1038 ac_prev
=datarootdir
;;
1039 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1040 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1041 datarootdir
=$ac_optarg ;;
1043 -disable-* |
--disable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=no
;;
1059 -docdir |
--docdir |
--docdi |
--doc |
--do)
1061 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1062 docdir
=$ac_optarg ;;
1064 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1066 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1067 dvidir
=$ac_optarg ;;
1069 -enable-* |
--enable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=\
$ac_optarg ;;
1085 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1086 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1087 |
--exec |
--exe |
--ex)
1088 ac_prev
=exec_prefix
;;
1089 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1090 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1091 |
--exec=* |
--exe=* |
--ex=*)
1092 exec_prefix
=$ac_optarg ;;
1094 -gas |
--gas |
--ga |
--g)
1095 # Obsolete; use --with-gas.
1098 -help |
--help |
--hel |
--he |
-h)
1099 ac_init_help
=long
;;
1100 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1101 ac_init_help
=recursive
;;
1102 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1103 ac_init_help
=short
;;
1105 -host |
--host |
--hos |
--ho)
1106 ac_prev
=host_alias
;;
1107 -host=* |
--host=* |
--hos=* |
--ho=*)
1108 host_alias
=$ac_optarg ;;
1110 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1112 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1114 htmldir
=$ac_optarg ;;
1116 -includedir |
--includedir |
--includedi |
--included |
--include \
1117 |
--includ |
--inclu |
--incl |
--inc)
1118 ac_prev
=includedir
;;
1119 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1120 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1121 includedir
=$ac_optarg ;;
1123 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1125 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1126 infodir
=$ac_optarg ;;
1128 -libdir |
--libdir |
--libdi |
--libd)
1130 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1131 libdir
=$ac_optarg ;;
1133 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1134 |
--libexe |
--libex |
--libe)
1135 ac_prev
=libexecdir
;;
1136 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1137 |
--libexe=* |
--libex=* |
--libe=*)
1138 libexecdir
=$ac_optarg ;;
1140 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1141 ac_prev
=localedir
;;
1142 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1143 localedir
=$ac_optarg ;;
1145 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1146 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1147 ac_prev
=localstatedir
;;
1148 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1149 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1150 localstatedir
=$ac_optarg ;;
1152 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1154 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1155 mandir
=$ac_optarg ;;
1157 -nfp |
--nfp |
--nf)
1158 # Obsolete; use --without-fp.
1161 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1162 |
--no-cr |
--no-c |
-n)
1165 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1166 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1169 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1170 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1171 |
--oldin |
--oldi |
--old |
--ol |
--o)
1172 ac_prev
=oldincludedir
;;
1173 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1174 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1175 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1176 oldincludedir
=$ac_optarg ;;
1178 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1180 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1181 prefix
=$ac_optarg ;;
1183 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1184 |
--program-pre |
--program-pr |
--program-p)
1185 ac_prev
=program_prefix
;;
1186 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1187 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1188 program_prefix
=$ac_optarg ;;
1190 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1191 |
--program-suf |
--program-su |
--program-s)
1192 ac_prev
=program_suffix
;;
1193 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1194 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1195 program_suffix
=$ac_optarg ;;
1197 -program-transform-name |
--program-transform-name \
1198 |
--program-transform-nam |
--program-transform-na \
1199 |
--program-transform-n |
--program-transform- \
1200 |
--program-transform |
--program-transfor \
1201 |
--program-transfo |
--program-transf \
1202 |
--program-trans |
--program-tran \
1203 |
--progr-tra |
--program-tr |
--program-t)
1204 ac_prev
=program_transform_name
;;
1205 -program-transform-name=* |
--program-transform-name=* \
1206 |
--program-transform-nam=* |
--program-transform-na=* \
1207 |
--program-transform-n=* |
--program-transform-=* \
1208 |
--program-transform=* |
--program-transfor=* \
1209 |
--program-transfo=* |
--program-transf=* \
1210 |
--program-trans=* |
--program-tran=* \
1211 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1212 program_transform_name
=$ac_optarg ;;
1214 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1216 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1217 pdfdir
=$ac_optarg ;;
1219 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1221 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1225 |
-silent |
--silent |
--silen |
--sile |
--sil)
1228 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1230 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1232 sbindir
=$ac_optarg ;;
1234 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1235 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1236 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1238 ac_prev
=sharedstatedir
;;
1239 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1240 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1241 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1243 sharedstatedir
=$ac_optarg ;;
1245 -site |
--site |
--sit)
1247 -site=* |
--site=* |
--sit=*)
1250 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1252 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1253 srcdir
=$ac_optarg ;;
1255 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1256 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1257 ac_prev
=sysconfdir
;;
1258 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1259 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1260 sysconfdir
=$ac_optarg ;;
1262 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1263 ac_prev
=target_alias
;;
1264 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1265 target_alias
=$ac_optarg ;;
1267 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1270 -version |
--version |
--versio |
--versi |
--vers |
-V)
1271 ac_init_version
=: ;;
1274 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1277 as_fn_error
"invalid package name: $ac_useropt"
1278 ac_useropt_orig
=$ac_useropt
1279 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep
=', ';;
1287 eval with_
$ac_useropt=\
$ac_optarg ;;
1289 -without-* |
--without-*)
1290 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1293 as_fn_error
"invalid package name: $ac_useropt"
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=no
;;
1306 # Obsolete; use --with-x.
1309 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1310 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1311 ac_prev
=x_includes
;;
1312 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1313 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1314 x_includes
=$ac_optarg ;;
1316 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1317 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1318 ac_prev
=x_libraries
;;
1319 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1320 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1321 x_libraries
=$ac_optarg ;;
1323 -*) as_fn_error
"unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1328 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1332 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1334 eval $ac_envvar=\
$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error
"missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1356 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val
=\$
$ac_var
1368 # Remove trailing slashes.
1371 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\
$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$
]* | ?
:[\\/]* ) continue;;
1377 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1379 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target
=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x
; then
1391 if test "x$build_alias" = x
; then
1392 cross_compiling
=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1403 test "$silent" = yes && exec 6>/dev
/null
1406 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di
=`ls -di .` &&
1408 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error
"working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error
"pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var
in $ac_precious_vars; do
1467 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1469 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1543 --build=BUILD configure
for building on BUILD
[guessed
]
1544 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1545 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized
--enable/--with options
1555 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1556 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files
in source dir intended
1559 for creating
source tarballs
for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support
for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST
]
1564 enable expensive run-time checks. With LIST
, enable
1565 only specific categories of checks. Categories are
:
1566 yes,no
,all
,none
,release. Flags are
:
1567 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1568 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1569 --enable-coverage[=LEVEL
]
1570 enable compiler
's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid
'
1580 or 'dpd
' choses which decimal floating point format
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1585 --enable-tls enable or disable generation of tls code overriding
1586 the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with the
1588 GNU Objective-C runtime
1589 --disable-shared don
't provide a shared libgcc
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-leading-mingw64-underscores
1596 enable leading underscores on 64 bit mingw targets
1597 --enable-cld enable -mcld by default for 32bit x86
1598 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1600 --disable-win32-registry
1601 disable lookup of installation paths in the Registry
1603 --enable-win32-registry enable registry lookup (default)
1604 --enable-win32-registry=KEY
1605 use KEY instead of GCC version as the last portion
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-static[=PKGS] build static libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --enable-gnu-indirect-function
1613 enable the use of the @gnu_indirect_function to
1615 --enable-initfini-array use .init_array/.fini_array sections
1616 --enable-comdat enable COMDAT group support
1617 --enable-gnu-unique-object
1618 enable the use of the @gnu_unique_object ELF
1619 extension on glibc systems
1620 --enable-linker-build-id
1621 compiler will always pass --build-id to linker
1622 --enable-maintainer-mode
1623 enable make rules and dependencies not useful (and
1624 sometimes confusing) to the casual installer
1625 --enable-version-specific-runtime-libs
1626 specify that runtime libraries should be installed
1627 in a compiler-specific directory
1628 --enable-plugin enable plugin support
1629 --disable-libquadmath-support
1630 disable libquadmath support for Fortran
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-build-libsubdir=DIR Directory where to find libraries for build system
1636 --with-local-prefix=DIR specifies directory to put local include
1637 --with-gxx-include-dir=DIR
1638 specifies directory to put g++ header files
1639 --with-cpp-install-dir=DIR
1640 install the user visible C preprocessor in DIR
1641 (relative to PREFIX) as well as PREFIX/bin
1642 --with-gnu-ld arrange to work with GNU ld
1643 --with-ld arrange to use the specified ld (full pathname)
1644 --with-demangler-in-ld try to use demangler in GNU ld
1645 --with-gnu-as arrange to work with GNU as
1646 --with-as arrange to use the specified as (full pathname)
1647 --with-stabs arrange to use stabs instead of host debug format
1648 --with-dwarf2 force the default debug format to be DWARF 2
1649 --with-native-system-header-dir=dir
1650 use dir as the directory to look for standard
1651 system header files in. Defaults to /usr/include.
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1662 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1664 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1665 --with-plugin-ld=[ARG
] specify the plugin linker
1666 --with-long-double-128 use
128-bit long double by default
1667 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1669 --with-system-zlib use installed libz
1670 --with-linker-hash-style={sysv
,gnu
,both
}
1671 specify the linker
hash style
1673 Some influential environment variables
:
1674 CC C compiler
command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1677 nonstandard directory
<lib dir
>
1678 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1679 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1680 you have headers
in a nonstandard directory
<include dir
>
1681 CXX C
++ compiler
command
1682 CXXFLAGS C
++ compiler flags
1684 CXXCPP C
++ preprocessor
1685 GMPLIBS How to link GMP
1686 GMPINC How to
find GMP include files
1687 ISLLIBS How to link ISL
1688 ISLINC How to
find ISL include files
1689 CLOOGLIBS How to link CLOOG
1690 CLOOGINC How to
find CLOOG include files
1692 Use these variables to override the choices made by
`configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1695 Report bugs to the package provider.
1700 if test "$ac_init_help" = "recursive"; then
1701 # If there are subdirs, report their specific --help.
1702 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703 test -d "$ac_dir" ||
1704 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1712 # A ".." for each directory in $ac_dir_suffix.
1713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1714 case $ac_top_builddir_sub in
1715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1725 .) # We are building in place.
1727 ac_top_srcdir=$ac_top_builddir_sub
1728 ac_abs_top_srcdir=$ac_pwd ;;
1729 [\\/]* | ?:[\\/]* ) # Absolute name.
1730 ac_srcdir=$srcdir$ac_dir_suffix;
1731 ac_top_srcdir=$srcdir
1732 ac_abs_top_srcdir=$srcdir ;;
1734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735 ac_top_srcdir=$ac_top_build_prefix$srcdir
1736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740 cd "$ac_dir" || { ac_status=$?; continue; }
1741 # Check for guested configure.
1742 if test -f "$ac_srcdir/configure.gnu"; then
1744 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745 elif test -f "$ac_srcdir/configure"; then
1747 $SHELL "$ac_srcdir/configure" --help=recursive
1749 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 cd "$ac_pwd" || { ac_status=$?; break; }
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1759 generated by GNU Autoconf 2.64
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1782 *) ac_try_echo
=$ac_try;;
1784 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1788 if test -s conftest.err
; then
1789 grep -v '^ *+' conftest.err
>conftest.er1
1790 cat conftest.er1
>&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.
$ac_objext; then :
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.
$ac_ext >&5
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1808 } # ac_fn_c_try_compile
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile
()
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 rm -f conftest.
$ac_objext
1817 if { { ac_try
="$ac_compile"
1819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_cxx_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 } # ac_fn_cxx_try_compile
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 if test -s conftest.err
; then
1864 grep -v '^ *+' conftest.err
>conftest.er1
1865 cat conftest.er1
>&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } >/dev
/null
&& {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.
$ac_ext >&5
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1890 ac_fn_c_check_header_mongrel
()
1892 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1893 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile
"$LINENO"; then :
1912 ac_header_compiler
=yes
1914 ac_header_compiler
=no
1916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 if ac_fn_c_try_cpp
"$LINENO"; then :
1928 ac_header_preproc
=yes
1930 ac_header_preproc
=no
1932 rm -f conftest.err conftest.
$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1962 eval "$3=\$ac_header_compiler"
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1970 } # ac_fn_c_check_header_mongrel
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1978 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1979 if { { ac_try
="$ac_link"
1981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1992 *) ac_try_echo
=$ac_try;;
1994 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.
$ac_ext >&5
2006 ac_retval
=$ac_status
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile
()
2020 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2043 } # ac_fn_c_check_header_compile
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 ac_fn_c_compute_int
()
2052 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2068 if ac_fn_c_try_compile
"$LINENO"; then :
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 if ac_fn_c_try_compile
"$LINENO"; then :
2085 ac_hi
=$ac_mid; break
2087 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2088 if test $ac_lo -le $ac_mid; then
2092 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) < 0)];
2110 if ac_fn_c_try_compile
"$LINENO"; then :
2113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 if ac_fn_c_try_compile
"$LINENO"; then :
2127 ac_lo
=$ac_mid; break
2129 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2130 if test $ac_mid -le $ac_hi; then
2134 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 if ac_fn_c_try_compile
"$LINENO"; then :
2163 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2168 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2183 FILE *f = fopen ("conftest.val", "w");
2188 long int i = longval ();
2191 fprintf (f, "%ld", i);
2195 unsigned long int i = ulongval ();
2198 fprintf (f, "%lu", i);
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2208 if ac_fn_c_try_run
"$LINENO"; then :
2209 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2221 } # ac_fn_c_compute_int
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type
()
2229 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2248 if ac_fn_c_try_compile
"$LINENO"; then :
2249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2261 if ac_fn_c_try_compile
"$LINENO"; then :
2266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2275 } # ac_fn_c_check_type
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 ac_fn_c_find_intX_t
()
2283 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2290 for ac_type
in int
$2_t 'int' 'long int' \
2291 'long long int' 'short int' 'signed char'; do
2292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2305 if ac_fn_c_try_compile
"$LINENO"; then :
2306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $ac_includes_default
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2327 eval "$3=\$ac_type" ;;
2330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 if test "x$as_val" = x
""no
; then :
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2346 } # ac_fn_c_find_intX_t
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2354 rm -f conftest.
$ac_objext conftest
$ac_exeext
2355 if { { ac_try
="$ac_link"
2357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>conftest.err
2364 if test -s conftest.err; then
2365 grep -v '^ *+' conftest.err >conftest.er1
2366 cat conftest.er1 >&5
2367 mv -f conftest.er1 conftest.err
2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370 test $ac_status = 0; } && {
2371 test -z "$ac_c_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest$ac_exeext && {
2374 test "$cross_compiling" = yes ||
2375 $as_test_x conftest$ac_exeext
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386 # interfere with the next link command; also delete a directory that is
2387 # left behind by Apple's compiler. We do this before executing the actions.
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_try_link
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 ac_fn_c_find_uintX_t ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $ac_includes_default
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2422 if ac_fn_c_try_compile "$LINENO"; then :
2427 eval "$3=\$ac_type" ;;
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 if test "x$as_val" = x""no; then :
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444 } # ac_fn_c_find_uintX_t
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2466 rm -f conftest.err conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473 } # ac_fn_c_check_header_preproc
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2484 *) ac_try_echo
=$ac_try;;
2486 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 if test -s conftest.err
; then
2491 grep -v '^ *+' conftest.err
>conftest.er1
2492 cat conftest.er1
>&5
2493 mv -f conftest.er1 conftest.err
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } >/dev
/null
&& {
2497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2502 $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.
$ac_ext >&5
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2510 } # ac_fn_cxx_try_cpp
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc
()
2517 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2527 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2532 rm -f conftest.err conftest.
$ac_ext
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2539 } # ac_fn_cxx_check_header_preproc
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func
()
2546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2564 # include <limits.h>
2566 # include <assert.h>
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2593 if ac_fn_c_try_link
"$LINENO"; then :
2598 rm -f core conftest.err conftest.
$ac_objext \
2599 conftest
$ac_exeext conftest.
$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2606 } # ac_fn_c_check_func
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link
()
2613 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2614 rm -f conftest.
$ac_objext conftest
$ac_exeext
2615 if { { ac_try
="$ac_link"
2617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>conftest.err
2624 if test -s conftest.err; then
2625 grep -v '^ *+' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 mv -f conftest.er1 conftest.err
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; } && {
2631 test -z "$ac_cxx_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest$ac_exeext && {
2634 test "$cross_compiling" = yes ||
2635 $as_test_x conftest$ac_exeext
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646 # interfere with the next link command; also delete a directory that is
2647 # left behind by Apple's compiler. We do this before executing the actions.
2648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64. Invocation command line was
2670 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2671 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2672 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2673 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2674 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2676 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2677 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2679 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2680 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2681 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2683 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2685 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_must_keep_next=false
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2729 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 -* ) ac_must_keep_next=true ;;
2750 as_fn_append ac_configure_args " '$ac_arg'"
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2774 # The following way of writing the cache mishandles newlines in values,
2776 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2777 eval ac_val=\$$ac_var
2781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2792 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2812 for ac_var in $ac_subst_vars
2814 eval ac_val=\$$ac_var
2816 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 $as_echo "$ac_var='\''$ac_val'\''"
2822 if test -n "$ac_subst_files"; then
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2829 for ac_var in $ac_subst_files
2831 eval ac_val=\$$ac_var
2833 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -s confdefs.h; then
2850 test "$ac_signal" != 0 &&
2851 $as_echo "$as_me: caught signal $ac_signal"
2852 $as_echo "$as_me: exit $exit_status"
2854 rm -f core *.core core.conftest.* &&
2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 for ac_signal in 1 2 13 15; do
2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2866 $as_echo "/* confdefs.h */" > confdefs.h
2868 # Predefined preprocessor variables.
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2899 if test -n "$CONFIG_SITE"; then
2900 ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902 ac_site_file1=$prefix/share/config.site
2903 ac_site_file2=$prefix/etc/config.site
2905 ac_site_file1=$ac_default_prefix/share/config.site
2906 ac_site_file2=$ac_default_prefix/etc/config.site
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 test "x$ac_site_file" = xNONE && continue
2911 if test -r "$ac_site_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914 sed 's/^/| /' "$ac_site_file" >&5
2919 if test -r "$cache_file"; then
2920 # Some versions of bash will fail to source /dev/null (special
2921 # files actually), so we avoid doing that.
2922 if test -f "$cache_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927 *) . "./$cache_file";;
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 # Check that the precious variables saved in the cache have kept the same
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941 eval ac_new_set=\$ac_env_${ac_var}_set
2942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943 eval ac_new_val=\$ac_env_${ac_var}_value
2944 case $ac_old_set,$ac_new_set in
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2947 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2951 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2955 if test "x$ac_old_val" != "x$ac_new_val"; then
2956 # differences in whitespace do not lead to failure.
2957 ac_old_val_w=`echo x
$ac_old_val`
2958 ac_new_val_w=`echo x
$ac_new_val`
2959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2962 ac_cache_corrupted=:
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966 eval $ac_var=\$ac_old_val
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2969 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 # Pass precious variables to config.status.
2975 if test "$ac_new_set" = set; then
2977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2978 *) ac_arg=$ac_var=$ac_new_val ;;
2980 case " $ac_configure_args " in
2981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 if $ac_cache_corrupted; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011 gcc_version=`cat $srcdir/BASE-VER
`
3013 # Determine the host, build, and target systems
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 for ac_t in install-sh install.sh shtool; do
3017 if test -f "$ac_dir/$ac_t"; then
3019 ac_install_sh="$ac_aux_dir/$ac_t -c"
3024 if test -z "$ac_aux_dir"; then
3025 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 ac_save_IFS=$IFS; IFS='-'
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3072 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test "x$host_alias" = x; then
3081 ac_cv_host=$ac_cv_build
3083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 ac_save_IFS=$IFS; IFS='-'
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3105 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3113 if test "x$target_alias" = x; then
3114 ac_cv_target=$ac_cv_host
3116 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3138 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144 test "$program_prefix$program_suffix$program_transform_name" = \
3146 program_prefix=${target_alias}-
3148 # Determine the noncanonical target name, for directory use.
3149 case ${build_alias} in
3150 "") build_noncanonical=${build} ;;
3151 *) build_noncanonical=${build_alias} ;;
3154 case ${host_alias} in
3155 "") host_noncanonical=${build_noncanonical} ;;
3156 *) host_noncanonical=${host_alias} ;;
3159 case ${target_alias} in
3160 "") target_noncanonical=${host_noncanonical} ;;
3161 *) target_noncanonical=${target_alias} ;;
3167 # Determine the target- and build-specific subdirectories
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 build_libsubdir="$build_subdir"
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190 || test -d $srcdir/../host-${host_noncanonical}; then
3191 host_subdir="host-${host_noncanonical}"
3196 target_subdir=${target_noncanonical}
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s
,x
,x
', remove it if useless.
3207 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223 library_path_setting="contains current directory"
3226 library_path_setting="ok"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again.
" "$LINENO" 5
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX 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 GCC_EXEC_PREFIX variable
" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 gcc_exec_prefix_setting="contains current directory
"
3252 gcc_exec_prefix_setting="ok
"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok
"; then
3259 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3268 # Specify the local prefix
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273 withval=$with_local_prefix; case "${withval}" in
3274 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 *) local_prefix=$with_local_prefix ;;
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283 local_prefix=/usr/local
3286 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir
=
3290 # Specify the g++ header file directory
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294 withval
=$with_gxx_include_dir; case "${withval}" in
3295 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x
${gcc_gxx_include_dir} = x
; then
3304 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3305 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3307 libstdcxx_incdir
='include/c++/$(version)'
3308 if test x
$host != x
$target; then
3309 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3311 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3315 gcc_gxx_include_dir_add_sysroot
=0
3316 if test "${with_sysroot+set}" = set; then
3317 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3318 if test "${gcc_gxx_without_sysroot}"; then
3319 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3320 gcc_gxx_include_dir_add_sysroot
=1
3325 # Check whether --with-cpp_install_dir was given.
3326 if test "${with_cpp_install_dir+set}" = set; then :
3327 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3328 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3329 elif test x
$withval != xno
; then
3330 cpp_install_dir
=$withval
3335 # We would like to our source tree to be readonly. However when releases or
3336 # pre-releases are generated, the flex/bison generated files as well as the
3337 # various formats of manuals need to be included along with the rest of the
3338 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3342 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3343 # Check whether --enable-generated-files-in-srcdir was given.
3344 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3345 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3347 generated_files_in_srcdir
=no
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3352 $as_echo "$generated_files_in_srcdir" >&6; }
3354 if test "$generated_files_in_srcdir" = "yes"; then
3361 # -------------------
3362 # Find default linker
3363 # -------------------
3367 # Check whether --with-gnu-ld was given.
3368 if test "${with_gnu_ld+set}" = set; then :
3369 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3375 # With pre-defined ld
3377 # Check whether --with-ld was given.
3378 if test "${with_ld+set}" = set; then :
3379 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3382 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3383 if test ! -x "$DEFAULT_LINKER"; then
3384 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3385 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3389 cat >>confdefs.h
<<_ACEOF
3390 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3398 if test x
"$gnu_ld_flag" = x
"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 # With demangler in GNU ld
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3440 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3447 cat >>confdefs.h
<<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3454 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3455 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3456 if test x
"$gas_flag" = x
"no"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3458 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3461 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3472 # If a non-executable a.out is present (e.g. created by GNU as above even if
3473 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3474 # file, even when creating an executable, so an execution test fails.
3475 # Remove possible default executable files to avoid this.
3477 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3478 # Autoconf includes it.
3479 rm -f a.out a.exe b.out
3481 # Find the native compiler
3483 ac_cpp
='$CPP $CPPFLAGS'
3484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC
="$CC" # Let the user override the test.
3498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir
=.
3503 for ac_exec_ext
in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3526 if test -z "$ac_cv_prog_CC"; then
3528 # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc
; ac_word
=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir
=.
3543 for ac_exec_ext
in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_ac_ct_CC
="gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3564 if test "x$ac_ct_CC" = x
; then
3567 case $cross_compiling:$ac_tool_warned in
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned
=yes ;;
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_CC+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC
="$CC" # Let the user override the test.
3591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir
=.
3596 for ac_exec_ext
in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3620 if test -z "$CC"; then
3621 # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc
; ac_word
=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_CC+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC
="$CC" # Let the user override the test.
3632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir
=.
3637 for ac_exec_ext
in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640 ac_prog_rejected
=yes
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test $ac_prog_rejected = yes; then
3652 # We found a bogon in the path, so make sure we never use it.
3653 set dummy
$ac_cv_prog_CC
3655 if test $# != 0; then
3656 # We chose a different compiler from the bogus one.
3657 # However, it has the same basename, so the bogon will be chosen
3658 # first if we set CC to just the basename; use the full file name.
3660 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog
in cl.exe
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC
="$CC" # Let the user override the test.
3690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir
=.
3695 for ac_exec_ext
in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3717 test -n "$CC" && break
3720 if test -z "$CC"; then
3722 for ac_prog
in cl.exe
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy
$ac_prog; ac_word
=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir
=.
3739 for ac_exec_ext
in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_CC
="$ac_prog"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3761 test -n "$ac_ct_CC" && break
3764 if test "x$ac_ct_CC" = x
; then
3767 case $cross_compiling:$ac_tool_warned in
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned
=yes ;;
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error
"no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details." "$LINENO" 5; }
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3789 for ac_option
in --version -v -V -qversion; do
3790 { { ac_try
="$ac_compiler $ac_option >&5"
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799 if test -s conftest.err; then
3801 ... rest of stderr output deleted ...
3802 10q' conftest.err >conftest.er1
3803 cat conftest.er1 >&5
3804 rm -f conftest.er1 conftest.err
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3827 $as_echo_n "checking for C compiler default output file name... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3834 for ac_file in $ac_files
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 if { { ac_try="$ac_link_default"
3845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3846 *) ac_try_echo
=$ac_try;;
3848 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link_default") 2>&5
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3859 for ac_file
in $ac_files ''
3861 test -f "$ac_file" ||
continue
3863 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3866 # We found the default executable, but exeext='' is most
3870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3872 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 # We set ac_cv_exeext here because the later test for it is not
3875 # safe: cross compilers may not add the suffix if given an `-o'
3876 # argument, so we may need to know it at that point already.
3877 # Even if this section looks crufty: it has the advantage of
3884 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890 $as_echo "$ac_file" >&6; }
3891 if test -z "$ac_file"; then :
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.
$ac_ext >&5
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 { as_fn_set_status
77
3898 as_fn_error
"C compiler cannot create executables
3899 See \`config.log' for more details." "$LINENO" 5; }; }
3901 ac_exeext
=$ac_cv_exeext
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 $as_echo_n "checking whether the C compiler works... " >&6; }
3907 # If not cross compiling, check that we can run a simple program.
3908 if test "$cross_compiling" != yes; then
3909 if { ac_try
='./$ac_file'
3910 { { case "(($ac_try" in
3911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_try") 2>&5
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; }; then
3922 if test "$cross_compiling" = maybe; then
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot run C compiled programs.
3928 If you meant to cross compile
, use \
`--host'.
3929 See \`config.log
' for more details." "$LINENO" 5; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934 $as_echo "yes" >&6; }
3936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3937 ac_clean_files=$ac_clean_files_save
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3943 $as_echo "$cross_compiling" >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3946 $as_echo_n "checking for suffix of executables... " >&6; }
3947 if { { ac_try="$ac_link"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link") 2>&5
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3959 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3960 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3962 for ac_file
in conftest.exe conftest conftest.
*; do
3963 test -f "$ac_file" ||
continue
3965 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3966 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3975 See \`config.log' for more details." "$LINENO" 5; }
3977 rm -f conftest
$ac_cv_exeext
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3979 $as_echo "$ac_cv_exeext" >&6; }
3981 rm -f conftest.
$ac_ext
3982 EXEEXT
=$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3985 $as_echo_n "checking for suffix of object files... " >&6; }
3986 if test "${ac_cv_objext+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try
="$ac_compile"
4003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_compile") 2>&5
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }; then :
4012 for ac_file in conftest.o conftest.obj conftest.*; do
4013 test -f "$ac_file" || continue;
4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021 $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error "cannot compute suffix of object files
: cannot compile
4027 See \
`config.log' for more details." "$LINENO" 5; }
4029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4032 $as_echo "$ac_cv_objext" >&6; }
4033 OBJEXT=$ac_cv_objext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065 if test $ac_compiler_gnu = yes; then
4070 ac_test_CFLAGS=${CFLAGS+set}
4071 ac_save_CFLAGS=$CFLAGS
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074 if test "${ac_cv_prog_cc_g+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4077 ac_save_c_werror_flag=$ac_c_werror_flag
4078 ac_c_werror_flag=yes
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4123 if ac_fn_c_try_compile "$LINENO"; then :
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136 CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138 if test "$GCC" = yes; then
4144 if test "$GCC" = yes; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4155 ac_cv_prog_cc_c89=no
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 #include <sys/types.h>
4162 #include <sys/stat.h>
4163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4164 struct buf { int x; };
4165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4166 static char *e (p, i)
4172 static char *f (char * (*g) (char **, int), char **p, ...)
4177 s = g (p, va_arg (v,int));
4182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4183 function prototypes and stuff, but not '\xHH' hex character constants.
4184 These don't provoke an error unfortunately, instead are silently treated
4185 as 'x'. The following induces an error, until -std is added to get
4186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4187 array size at least. It's necessary to write '\x00'==0 to get something
4188 that's true only with -std. */
4189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4192 inside strings and character constants. */
4194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4196 int test (int i, double x);
4197 struct s1 {int (*f) (int a);};
4198 struct s2 {int (*f) (double a);};
4199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4213 CC="$ac_save_CC $ac_arg"
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_prog_cc_c89=$ac_arg
4217 rm -f core conftest.err conftest.$ac_objext
4218 test "x$ac_cv_prog_cc_c89" != "xno" && break
4220 rm -f conftest.$ac_ext
4225 case "x$ac_cv_prog_cc_c89" in
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 $as_echo "none needed" >&6; } ;;
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 $as_echo "unsupported" >&6; } ;;
4233 CC="$CC $ac_cv_prog_cc_c89"
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4237 if test "x$ac_cv_prog_cc_c89" != xno; then :
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 if test "x$CC" != xcc; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4249 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4252 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4254 set dummy $CC; ac_cc=`$as_echo "$2" |
4255 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4256 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4257 $as_echo_n "(cached) " >&6
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4270 # Make sure it works both with $CC and with simple cc.
4271 # We do the test twice because some compilers refuse to overwrite an
4272 # existing .o file with -o, though they will create one.
4273 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4275 if { { case "(($ac_try" in
4276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4277 *) ac_try_echo
=$ac_try;;
4279 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_try") 2>&5
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; } &&
4285 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; };
4296 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4297 if test "x$CC" != xcc; then
4298 # Test first that cc exists at all.
4299 if { ac_try='cc -c conftest.$ac_ext >&5'
4300 { { case "(($ac_try" in
4301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4302 *) ac_try_echo
=$ac_try;;
4304 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }; }; then
4310 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4312 if { { case "(($ac_try" in
4313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 $as_echo "$ac_try_echo"; } >&5
4318 (eval "$ac_try") 2>&5
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; } &&
4322 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4324 *) ac_try_echo
=$ac_try;;
4326 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; };
4336 # cc exists but doesn't like -o.
4337 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4342 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4344 rm -f core conftest
*
4347 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349 $as_echo "yes" >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4354 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4358 # expand $ac_aux_dir to an absolute path
4359 am_aux_dir
=`cd $ac_aux_dir && pwd`
4361 # FIXME: we rely on the cache variable name because
4362 # there is no other way.
4364 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4365 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4366 if test "$am_t" != yes; then
4367 # Losing compiler, so override with the script.
4368 # FIXME: It is wrong to rewrite CC.
4369 # But if we don't then we get into trouble of one sort or another.
4370 # A longer-term fix would be to have automake use am__CC in this case,
4371 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4372 CC
="$am_aux_dir/compile $CC"
4377 ac_cpp
='$CXXCPP $CPPFLAGS'
4378 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4381 if test -z "$CXX"; then
4382 if test -n "$CCC"; then
4385 if test -n "$ac_tool_prefix"; then
4386 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4389 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_CXX+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 if test -n "$CXX"; then
4396 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir
=.
4403 for ac_exec_ext
in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 if test -n "$CXX"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4418 $as_echo "$CXX" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4425 test -n "$CXX" && break
4428 if test -z "$CXX"; then
4430 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4432 # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy
$ac_prog; ac_word
=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4439 if test -n "$ac_ct_CXX"; then
4440 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir
=.
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4460 if test -n "$ac_ct_CXX"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4462 $as_echo "$ac_ct_CXX" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4469 test -n "$ac_ct_CXX" && break
4472 if test "x$ac_ct_CXX" = x
; then
4475 case $cross_compiling:$ac_tool_warned in
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned
=yes ;;
4487 # Provide some information about the compiler.
4488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4491 for ac_option
in --version -v -V -qversion; do
4492 { { ac_try
="$ac_compiler $ac_option >&5"
4494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4501 if test -s conftest.err; then
4503 ... rest of stderr output deleted ...
4504 10q' conftest.err >conftest.er1
4505 cat conftest.er1 >&5
4506 rm -f conftest.er1 conftest.err
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4513 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4514 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4541 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4542 if test $ac_compiler_gnu = yes; then
4547 ac_test_CXXFLAGS=${CXXFLAGS+set}
4548 ac_save_CXXFLAGS=$CXXFLAGS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4550 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4551 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4555 ac_cxx_werror_flag=yes
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570 ac_cv_prog_cxx_g=yes
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4600 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 ac_cv_prog_cxx_g=yes
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4611 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4612 if test "$ac_test_CXXFLAGS" = set; then
4613 CXXFLAGS=$ac_save_CXXFLAGS
4614 elif test $ac_cv_prog_cxx_g = yes; then
4615 if test "$GXX" = yes; then
4621 if test "$GXX" = yes; then
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$GNATBIND"; then
4645 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 GNATBIND=$ac_cv_prog_GNATBIND
4665 if test -n "$GNATBIND"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4667 $as_echo "$GNATBIND" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4675 if test -z "$ac_cv_prog_GNATBIND"; then
4676 ac_ct_GNATBIND=$GNATBIND
4677 # Extract the first word of "gnatbind", so it can be a program name with args.
4678 set dummy gnatbind; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$ac_ct_GNATBIND"; then
4685 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4705 if test -n "$ac_ct_GNATBIND"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4707 $as_echo "$ac_ct_GNATBIND" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4713 if test "x$ac_ct_GNATBIND" = x; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4722 GNATBIND=$ac_ct_GNATBIND
4725 GNATBIND="$ac_cv_prog_GNATBIND"
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4736 if test -n "$GNATMAKE"; then
4737 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 GNATMAKE=$ac_cv_prog_GNATMAKE
4757 if test -n "$GNATMAKE"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4759 $as_echo "$GNATMAKE" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4767 if test -z "$ac_cv_prog_GNATMAKE"; then
4768 ac_ct_GNATMAKE=$GNATMAKE
4769 # Extract the first word of "gnatmake", so it can be a program name with args.
4770 set dummy gnatmake; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4776 if test -n "$ac_ct_GNATMAKE"; then
4777 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4797 if test -n "$ac_ct_GNATMAKE"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4799 $as_echo "$ac_ct_GNATMAKE" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4805 if test "x$ac_ct_GNATMAKE" = x; then
4808 case $cross_compiling:$ac_tool_warned in
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4812 ac_tool_warned=yes ;;
4814 GNATMAKE=$ac_ct_GNATMAKE
4817 GNATMAKE="$ac_cv_prog_GNATMAKE"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4821 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4822 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4825 cat >conftest.adb <<EOF
4826 procedure conftest is begin null; end conftest;
4828 acx_cv_cc_gcc_supports_ada=no
4829 # There is a bug in old released versions of GCC which causes the
4830 # driver to exit successfully when the appropriate language module
4831 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4832 # Therefore we must check for the error message as well as an
4833 # unsuccessful exit.
4834 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4835 # given a .adb file, but produce no object file. So we must check
4836 # if an object file was really produced to guard against this.
4837 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4838 if test x"$errors" = x && test -f conftest.$ac_objext; then
4839 acx_cv_cc_gcc_supports_ada=yes
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4844 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4846 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853 # autoconf is lame and doesn't give us any substitution variable for this.
4854 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4855 NO_MINUS_C_MINUS_O=yes
4857 OUTPUT_OPTION='-o $@'
4862 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4863 # optimizations to be activated explicitly by the toplevel.
4865 */prev-gcc/xgcc*) ;;
4866 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" `
4867 CXXFLAGS=`echo $CXXFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4872 # Determine PICFLAG for target gnatlib.
4878 # PIC is the default on some targets or must not be used.
4880 # PIC is the default on this platform
4881 # Common symbols not allowed in MH_DYLIB files
4882 PICFLAG_FOR_TARGET=-fno-common
4885 # PIC is the default.
4888 # PIC is the default for 64-bit PA HP-UX.
4890 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4892 i[34567]86-*-interix[3-9]*)
4893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4894 # Instead, we relocate shared libraries at runtime.
4896 i[34567]86-*-nto-qnx*)
4897 # QNX uses GNU C++, but need to define -shared option too, otherwise
4899 PICFLAG_FOR_TARGET='-fPIC -shared'
4901 i[34567]86-pc-msdosdjgpp*)
4902 # DJGPP does not support shared libraries at all.
4905 # On IA64 HP-UX, PIC is the default but the pic flag
4906 # sets the default TLS model and affects inlining.
4907 PICFLAG_FOR_TARGET=-fPIC
4910 # PIC is the default.
4912 rs6000-ibm-aix* | powerpc-ibm-aix*)
4913 # All AIX code is PIC.
4916 # Some targets support both -fPIC and -fpic, but prefer the latter.
4918 i[34567]86-*-* | x86_64-*-*)
4919 PICFLAG_FOR_TARGET=-fpic
4922 PICFLAG_FOR_TARGET=-fpic
4924 # FIXME: Override -fPIC default in libgcc only?
4925 sh-*-linux* | sh[2346lbe]*-*-linux*)
4926 PICFLAG_FOR_TARGET=-fpic
4928 # FIXME: Simplify to sh*-*-netbsd*?
4929 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4930 sh64-*-netbsd* | sh64l*-*-netbsd*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 # Default to -fPIC unless specified otherwise.
4935 PICFLAG_FOR_TARGET=-fPIC
4939 # If the user explicitly uses -fpic/-fPIC, keep that.
4940 case "${CFLAGS_FOR_TARGET}" in
4942 PICFLAG_FOR_TARGET=-fpic
4945 PICFLAG_FOR_TARGET=-fPIC
4951 # -------------------------
4952 # Check C compiler features
4953 # -------------------------
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4963 # On Suns, sometimes $CPP names a directory.
4964 if test -n "$CPP" && test -d "$CPP"; then
4967 if test -z "$CPP"; then
4968 if test "${ac_cv_prog_CPP+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4971 # Double quotes because CPP needs to be expanded
4972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4975 for ac_c_preproc_warn_flag in '' yes
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980 # <limits.h> exists even on freestanding compilers.
4981 # On the NeXT, cc -E runs the code through the compiler's parser,
4982 # not just through cpp. "Syntax error" is here to catch this case.
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4986 # include <limits.h>
4988 # include <assert.h>
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4995 # Broken: fails on valid input.
4998 rm -f conftest.err conftest.$ac_ext
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <ac_nonexistent.h>
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: success on invalid input.
5010 # Passes both tests.
5014 rm -f conftest.err conftest.$ac_ext
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.
$ac_ext
5019 if $ac_preproc_ok; then :
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5032 $as_echo "$CPP" >&6; }
5034 for ac_c_preproc_warn_flag
in '' yes
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5045 # include <limits.h>
5047 # include <assert.h>
5051 if ac_fn_c_try_cpp
"$LINENO"; then :
5054 # Broken: fails on valid input.
5057 rm -f conftest.err conftest.
$ac_ext
5059 # OK, works on sane cases. Now check whether nonexistent headers
5060 # can be detected and how.
5061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 #include <ac_nonexistent.h>
5065 if ac_fn_c_try_cpp
"$LINENO"; then :
5066 # Broken: success on invalid input.
5069 # Passes both tests.
5073 rm -f conftest.err conftest.
$ac_ext
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.
$ac_ext
5078 if $ac_preproc_ok; then :
5081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5083 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5084 See \`config.log' for more details." "$LINENO" 5; }
5088 ac_cpp
='$CPP $CPPFLAGS'
5089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5096 if test "${ac_cv_path_GREP+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5099 if test -z "$GREP"; then
5100 ac_path_GREP_found
=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5106 test -z "$as_dir" && as_dir
=.
5107 for ac_prog
in grep ggrep
; do
5108 for ac_exec_ext
in '' $ac_executable_extensions; do
5109 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5110 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5111 # Check for GNU ac_path_GREP and select it if it is found.
5112 # Check for GNU $ac_path_GREP
5113 case `"$ac_path_GREP" --version 2>&1` in
5115 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5118 $as_echo_n 0123456789 >"conftest.in"
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo 'GREP' >> "conftest.nl"
5125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5126 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5127 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5128 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_GREP
="$ac_path_GREP"
5131 ac_path_GREP_max
=$ac_count
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5136 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5139 $ac_path_GREP_found && break 3
5144 if test -z "$ac_cv_path_GREP"; then
5145 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148 ac_cv_path_GREP
=$GREP
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5153 $as_echo "$ac_cv_path_GREP" >&6; }
5154 GREP
="$ac_cv_path_GREP"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5158 $as_echo_n "checking for egrep... " >&6; }
5159 if test "${ac_cv_path_EGREP+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5162 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5163 then ac_cv_path_EGREP
="$GREP -E"
5165 if test -z "$EGREP"; then
5166 ac_path_EGREP_found
=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5169 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5172 test -z "$as_dir" && as_dir
=.
5173 for ac_prog
in egrep; do
5174 for ac_exec_ext
in '' $ac_executable_extensions; do
5175 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5176 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5177 # Check for GNU ac_path_EGREP and select it if it is found.
5178 # Check for GNU $ac_path_EGREP
5179 case `"$ac_path_EGREP" --version 2>&1` in
5181 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5184 $as_echo_n 0123456789 >"conftest.in"
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 $as_echo 'EGREP' >> "conftest.nl"
5191 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5192 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5193 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5194 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_EGREP
="$ac_path_EGREP"
5197 ac_path_EGREP_max
=$ac_count
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5202 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5205 $ac_path_EGREP_found && break 3
5210 if test -z "$ac_cv_path_EGREP"; then
5211 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 ac_cv_path_EGREP
=$EGREP
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5220 $as_echo "$ac_cv_path_EGREP" >&6; }
5221 EGREP
="$ac_cv_path_EGREP"
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5225 $as_echo_n "checking for ANSI C header files... " >&6; }
5226 if test "${ac_cv_header_stdc+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5244 if ac_fn_c_try_compile
"$LINENO"; then :
5245 ac_cv_header_stdc
=yes
5247 ac_cv_header_stdc
=no
5249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5251 if test $ac_cv_header_stdc = yes; then
5252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev
/null
2>&1; then :
5262 ac_cv_header_stdc
=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "free" >/dev
/null
2>&1; then :
5279 ac_cv_header_stdc
=no
5285 if test $ac_cv_header_stdc = yes; then
5286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287 if test "$cross_compiling" = yes; then :
5290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5294 #if ((' ' & 0x0FF) == 0x020)
5295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5298 # define ISLOWER(c) \
5299 (('a' <= (c) && (c) <= 'i') \
5300 || ('j' <= (c) && (c) <= 'r') \
5301 || ('s' <= (c) && (c) <= 'z'))
5302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5310 for (i = 0; i < 256; i++)
5311 if (XOR (islower (i), ISLOWER (i))
5312 || toupper (i) != TOUPPER (i))
5317 if ac_fn_c_try_run
"$LINENO"; then :
5320 ac_cv_header_stdc
=no
5322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5323 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5329 $as_echo "$ac_cv_header_stdc" >&6; }
5330 if test $ac_cv_header_stdc = yes; then
5332 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5336 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5338 inttypes.h stdint.h unistd.h
5340 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5343 eval as_val
=\$
$as_ac_Header
5344 if test "x$as_val" = x
""yes; then :
5345 cat >>confdefs.h
<<_ACEOF
5346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5356 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5363 if test "$MINIX" = yes; then
5365 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5368 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5371 $as_echo "#define _MINIX 1" >>confdefs.h
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5377 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5378 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5384 # define __EXTENSIONS__ 1
5385 $ac_includes_default
5394 if ac_fn_c_try_compile
"$LINENO"; then :
5395 ac_cv_safe_to_define___extensions__
=yes
5397 ac_cv_safe_to_define___extensions__
=no
5399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5402 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5403 test $ac_cv_safe_to_define___extensions__ = yes &&
5404 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5406 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5408 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5410 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5412 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5416 ac_cpp
='$CPP $CPPFLAGS'
5417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5422 # On Suns, sometimes $CPP names a directory.
5423 if test -n "$CPP" && test -d "$CPP"; then
5426 if test -z "$CPP"; then
5427 if test "${ac_cv_prog_CPP+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5430 # Double quotes because CPP needs to be expanded
5431 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5434 for ac_c_preproc_warn_flag
in '' yes
5436 # Use a header file that comes with gcc, so configuring glibc
5437 # with a fresh cross-compiler works.
5438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439 # <limits.h> exists even on freestanding compilers.
5440 # On the NeXT, cc -E runs the code through the compiler's parser,
5441 # not just through cpp. "Syntax error" is here to catch this case.
5442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5445 # include <limits.h>
5447 # include <assert.h>
5451 if ac_fn_c_try_cpp
"$LINENO"; then :
5454 # Broken: fails on valid input.
5457 rm -f conftest.err conftest.
$ac_ext
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <ac_nonexistent.h>
5465 if ac_fn_c_try_cpp
"$LINENO"; then :
5466 # Broken: success on invalid input.
5469 # Passes both tests.
5473 rm -f conftest.err conftest.
$ac_ext
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.
$ac_ext
5478 if $ac_preproc_ok; then :
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5491 $as_echo "$CPP" >&6; }
5493 for ac_c_preproc_warn_flag
in '' yes
5495 # Use a header file that comes with gcc, so configuring glibc
5496 # with a fresh cross-compiler works.
5497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5498 # <limits.h> exists even on freestanding compilers.
5499 # On the NeXT, cc -E runs the code through the compiler's parser,
5500 # not just through cpp. "Syntax error" is here to catch this case.
5501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 # include <limits.h>
5506 # include <assert.h>
5510 if ac_fn_c_try_cpp
"$LINENO"; then :
5513 # Broken: fails on valid input.
5516 rm -f conftest.err conftest.
$ac_ext
5518 # OK, works on sane cases. Now check whether nonexistent headers
5519 # can be detected and how.
5520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #include <ac_nonexistent.h>
5524 if ac_fn_c_try_cpp
"$LINENO"; then :
5525 # Broken: success on invalid input.
5528 # Passes both tests.
5532 rm -f conftest.err conftest.
$ac_ext
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.
$ac_ext
5537 if $ac_preproc_ok; then :
5540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5543 See \`config.log' for more details." "$LINENO" 5; }
5547 ac_cpp
='$CPP $CPPFLAGS'
5548 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5553 $as_echo_n "checking for inline... " >&6; }
5554 if test "${ac_cv_c_inline+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5558 for ac_kw
in inline __inline__ __inline
; do
5559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5563 static $ac_kw foo_t static_foo () {return 0; }
5564 $ac_kw foo_t foo () {return 0; }
5568 if ac_fn_c_try_compile
"$LINENO"; then :
5569 ac_cv_c_inline
=$ac_kw
5571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5572 test "$ac_cv_c_inline" != no
&& break
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5577 $as_echo "$ac_cv_c_inline" >&6; }
5579 case $ac_cv_c_inline in
5582 case $ac_cv_c_inline in
5584 *) ac_val
=$ac_cv_c_inline;;
5586 cat >>confdefs.h
<<_ACEOF
5588 #define inline $ac_val
5595 # Check whether --enable-largefile was given.
5596 if test "${enable_largefile+set}" = set; then :
5597 enableval
=$enable_largefile;
5600 if test "$enable_largefile" != no
; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5603 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5604 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5607 ac_cv_sys_largefile_CC
=no
5608 if test "$GCC" != yes; then
5611 # IRIX 6.2 and later do not support large files by default,
5612 # so use the C compiler's -n32 option if that helps.
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 /* Check that off_t can represent 2**63 - 1 correctly.
5617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618 since some C++ compilers masquerading as C compilers
5619 incorrectly reject 9223372036854775807. */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622 && LARGE_OFF_T % 2147483647 == 1)
5632 if ac_fn_c_try_compile
"$LINENO"; then :
5635 rm -f core conftest.err conftest.
$ac_objext
5637 if ac_fn_c_try_compile
"$LINENO"; then :
5638 ac_cv_sys_largefile_CC
=' -n32'; break
5640 rm -f core conftest.err conftest.
$ac_objext
5644 rm -f conftest.
$ac_ext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5648 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5649 if test "$ac_cv_sys_largefile_CC" != no
; then
5650 CC
=$CC$ac_cv_sys_largefile_CC
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5654 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5655 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5678 if ac_fn_c_try_compile
"$LINENO"; then :
5679 ac_cv_sys_file_offset_bits
=no
; break
5681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #define _FILE_OFFSET_BITS 64
5685 #include <sys/types.h>
5686 /* Check that off_t can represent 2**63 - 1 correctly.
5687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5688 since some C++ compilers masquerading as C compilers
5689 incorrectly reject 9223372036854775807. */
5690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5692 && LARGE_OFF_T % 2147483647 == 1)
5702 if ac_fn_c_try_compile
"$LINENO"; then :
5703 ac_cv_sys_file_offset_bits
=64; break
5705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5706 ac_cv_sys_file_offset_bits
=unknown
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5711 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5712 case $ac_cv_sys_file_offset_bits in #(
5715 cat >>confdefs.h
<<_ACEOF
5716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5721 if test $ac_cv_sys_file_offset_bits = unknown
; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5723 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5724 if test "${ac_cv_sys_large_files+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 #include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5747 if ac_fn_c_try_compile
"$LINENO"; then :
5748 ac_cv_sys_large_files
=no
; break
5750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #define _LARGE_FILES 1
5754 #include <sys/types.h>
5755 /* Check that off_t can represent 2**63 - 1 correctly.
5756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5757 since some C++ compilers masquerading as C compilers
5758 incorrectly reject 9223372036854775807. */
5759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5761 && LARGE_OFF_T % 2147483647 == 1)
5771 if ac_fn_c_try_compile
"$LINENO"; then :
5772 ac_cv_sys_large_files
=1; break
5774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5775 ac_cv_sys_large_files
=unknown
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5780 $as_echo "$ac_cv_sys_large_files" >&6; }
5781 case $ac_cv_sys_large_files in #(
5784 cat >>confdefs.h
<<_ACEOF
5785 #define _LARGE_FILES $ac_cv_sys_large_files
5794 # sizeof(char) is 1 by definition.
5795 # The cast to long int works around a bug in the HP C Compiler
5796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5798 # This bug is HP SR number 8606223364.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5800 $as_echo_n "checking size of void *... " >&6; }
5801 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5807 if test "$ac_cv_type_void_p" = yes; then
5808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810 { as_fn_set_status
77
5811 as_fn_error
"cannot compute sizeof (void *)
5812 See \`config.log' for more details." "$LINENO" 5; }; }
5814 ac_cv_sizeof_void_p
=0
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5820 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5824 cat >>confdefs.h
<<_ACEOF
5825 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5834 $as_echo_n "checking size of short... " >&6; }
5835 if test "${ac_cv_sizeof_short+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5838 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5841 if test "$ac_cv_type_short" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status
77
5845 as_fn_error
"cannot compute sizeof (short)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5848 ac_cv_sizeof_short
=0
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5854 $as_echo "$ac_cv_sizeof_short" >&6; }
5858 cat >>confdefs.h
<<_ACEOF
5859 #define SIZEOF_SHORT $ac_cv_sizeof_short
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5868 $as_echo_n "checking size of int... " >&6; }
5869 if test "${ac_cv_sizeof_int+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5875 if test "$ac_cv_type_int" = yes; then
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status
77
5879 as_fn_error
"cannot compute sizeof (int)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5888 $as_echo "$ac_cv_sizeof_int" >&6; }
5892 cat >>confdefs.h
<<_ACEOF
5893 #define SIZEOF_INT $ac_cv_sizeof_int
5897 # The cast to long int works around a bug in the HP C Compiler
5898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5900 # This bug is HP SR number 8606223364.
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5902 $as_echo_n "checking size of long... " >&6; }
5903 if test "${ac_cv_sizeof_long+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5906 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5909 if test "$ac_cv_type_long" = yes; then
5910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5912 { as_fn_set_status
77
5913 as_fn_error
"cannot compute sizeof (long)
5914 See \`config.log' for more details." "$LINENO" 5; }; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5922 $as_echo "$ac_cv_sizeof_long" >&6; }
5926 cat >>confdefs.h
<<_ACEOF
5927 #define SIZEOF_LONG $ac_cv_sizeof_long
5931 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5932 if test "x$ac_cv_type_long_long" = x
""yes; then :
5934 cat >>confdefs.h
<<_ACEOF
5935 #define HAVE_LONG_LONG 1
5938 # The cast to long int works around a bug in the HP C Compiler
5939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5941 # This bug is HP SR number 8606223364.
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5943 $as_echo_n "checking size of long long... " >&6; }
5944 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5947 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5950 if test "$ac_cv_type_long_long" = yes; then
5951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5953 { as_fn_set_status
77
5954 as_fn_error
"cannot compute sizeof (long long)
5955 See \`config.log' for more details." "$LINENO" 5; }; }
5957 ac_cv_sizeof_long_long
=0
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5963 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5967 cat >>confdefs.h
<<_ACEOF
5968 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5974 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5975 if test "x$ac_cv_type___int64" = x
""yes; then :
5977 cat >>confdefs.h
<<_ACEOF
5978 #define HAVE___INT64 1
5981 # The cast to long int works around a bug in the HP C Compiler
5982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5984 # This bug is HP SR number 8606223364.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5986 $as_echo_n "checking size of __int64... " >&6; }
5987 if test "${ac_cv_sizeof___int64+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5990 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5993 if test "$ac_cv_type___int64" = yes; then
5994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5996 { as_fn_set_status
77
5997 as_fn_error
"cannot compute sizeof (__int64)
5998 See \`config.log' for more details." "$LINENO" 5; }; }
6000 ac_cv_sizeof___int64
=0
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6006 $as_echo "$ac_cv_sizeof___int64" >&6; }
6010 cat >>confdefs.h
<<_ACEOF
6011 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6017 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6018 case $ac_cv_c_int8_t in #(
6022 cat >>confdefs.h
<<_ACEOF
6023 #define int8_t $ac_cv_c_int8_t
6028 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6029 case $ac_cv_c_int16_t in #(
6033 cat >>confdefs.h
<<_ACEOF
6034 #define int16_t $ac_cv_c_int16_t
6039 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6040 case $ac_cv_c_int32_t in #(
6044 cat >>confdefs.h
<<_ACEOF
6045 #define int32_t $ac_cv_c_int32_t
6050 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6051 case $ac_cv_c_int64_t in #(
6055 cat >>confdefs.h
<<_ACEOF
6056 #define int64_t $ac_cv_c_int64_t
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6063 $as_echo_n "checking for long long int... " >&6; }
6064 if test "${ac_cv_type_long_long_int+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6070 /* For now, do not test the preprocessor; as of 2007 there are too many
6071 implementations with broken preprocessors. Perhaps this can
6072 be revisited in 2012. In the meantime, code should not expect
6073 #if to work with literals wider than 32 bits. */
6074 /* Test literals. */
6075 long long int ll = 9223372036854775807ll;
6076 long long int nll = -9223372036854775807LL;
6077 unsigned long long int ull = 18446744073709551615ULL;
6078 /* Test constant expressions. */
6079 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6081 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6087 /* Test availability of runtime routines for shift and division. */
6088 long long int llmax = 9223372036854775807ll;
6089 unsigned long long int ullmax = 18446744073709551615ull;
6090 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6091 | (llmax / ll) | (llmax % ll)
6092 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6093 | (ullmax / ull) | (ullmax % ull));
6099 if ac_fn_c_try_link
"$LINENO"; then :
6100 if test "$cross_compiling" = yes; then :
6101 ac_cv_type_long_long_int
=yes
6103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6108 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6109 # define LLONG_MAX (HALF - 1 + HALF)
6114 long long int n = 1;
6118 long long int m = n << i;
6121 if (LLONG_MAX / 2 < m)
6129 if ac_fn_c_try_run
"$LINENO"; then :
6130 ac_cv_type_long_long_int
=yes
6132 ac_cv_type_long_long_int
=no
6134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6139 ac_cv_type_long_long_int
=no
6141 rm -f core conftest.err conftest.
$ac_objext \
6142 conftest
$ac_exeext conftest.
$ac_ext
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6145 $as_echo "$ac_cv_type_long_long_int" >&6; }
6146 if test $ac_cv_type_long_long_int = yes; then
6148 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6154 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6155 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6157 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6160 test $ac_cv_type_long_long_int = yes \
6161 && ac_type
='long long int' \
6162 || ac_type
='long int'
6164 cat >>confdefs.h
<<_ACEOF
6165 #define intmax_t $ac_type
6172 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6175 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6178 for ac_type
in 'int' 'long int' 'long long int'; do
6179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 $ac_includes_default
6185 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6192 if ac_fn_c_try_compile
"$LINENO"; then :
6194 cat >>confdefs.h
<<_ACEOF
6195 #define intptr_t $ac_type
6200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6201 test -z "$ac_type" && break
6206 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6207 case $ac_cv_c_uint8_t in #(
6211 $as_echo "#define _UINT8_T 1" >>confdefs.h
6214 cat >>confdefs.h
<<_ACEOF
6215 #define uint8_t $ac_cv_c_uint8_t
6220 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6221 case $ac_cv_c_uint16_t in #(
6226 cat >>confdefs.h
<<_ACEOF
6227 #define uint16_t $ac_cv_c_uint16_t
6232 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6233 case $ac_cv_c_uint32_t in #(
6237 $as_echo "#define _UINT32_T 1" >>confdefs.h
6240 cat >>confdefs.h
<<_ACEOF
6241 #define uint32_t $ac_cv_c_uint32_t
6246 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6247 case $ac_cv_c_uint64_t in #(
6251 $as_echo "#define _UINT64_T 1" >>confdefs.h
6254 cat >>confdefs.h
<<_ACEOF
6255 #define uint64_t $ac_cv_c_uint64_t
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6262 $as_echo_n "checking for unsigned long long int... " >&6; }
6263 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6269 /* For now, do not test the preprocessor; as of 2007 there are too many
6270 implementations with broken preprocessors. Perhaps this can
6271 be revisited in 2012. In the meantime, code should not expect
6272 #if to work with literals wider than 32 bits. */
6273 /* Test literals. */
6274 long long int ll = 9223372036854775807ll;
6275 long long int nll = -9223372036854775807LL;
6276 unsigned long long int ull = 18446744073709551615ULL;
6277 /* Test constant expressions. */
6278 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6280 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6286 /* Test availability of runtime routines for shift and division. */
6287 long long int llmax = 9223372036854775807ll;
6288 unsigned long long int ullmax = 18446744073709551615ull;
6289 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6290 | (llmax / ll) | (llmax % ll)
6291 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6292 | (ullmax / ull) | (ullmax % ull));
6298 if ac_fn_c_try_link
"$LINENO"; then :
6299 ac_cv_type_unsigned_long_long_int
=yes
6301 ac_cv_type_unsigned_long_long_int
=no
6303 rm -f core conftest.err conftest.
$ac_objext \
6304 conftest
$ac_exeext conftest.
$ac_ext
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6307 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6308 if test $ac_cv_type_unsigned_long_long_int = yes; then
6310 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6316 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6317 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6319 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6322 test $ac_cv_type_unsigned_long_long_int = yes \
6323 && ac_type
='unsigned long long int' \
6324 || ac_type
='unsigned long int'
6326 cat >>confdefs.h
<<_ACEOF
6327 #define uintmax_t $ac_type
6334 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6337 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6340 for ac_type
in 'unsigned int' 'unsigned long int' \
6341 'unsigned long long int'; do
6342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 $ac_includes_default
6348 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6355 if ac_fn_c_try_compile
"$LINENO"; then :
6357 cat >>confdefs.h
<<_ACEOF
6358 #define uintptr_t $ac_type
6363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6364 test -z "$ac_type" && break
6382 # ---------------------
6383 # Warnings and checking
6384 # ---------------------
6386 # Check $CC warning features (if it's GCC).
6387 # We want to use -pedantic, but we don't want warnings about
6390 # * overlong strings
6391 # * C++11 narrowing conversions in { }
6392 # So, we only use -pedantic if we can disable those warnings.
6395 save_CFLAGS
="$CFLAGS"
6396 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6397 # Do the check with the no- prefix removed since gcc silently
6398 # accepts any -Wno-* option on purpose
6399 case $real_option in
6400 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6401 *) option
=$real_option ;;
6403 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6406 $as_echo_n "checking whether $CC supports $option... " >&6; }
6407 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6408 $as_echo_n "(cached) " >&6
6411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6422 if ac_fn_c_try_compile
"$LINENO"; then :
6423 eval "$as_acx_Woption=yes"
6425 eval "$as_acx_Woption=no"
6427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6430 eval ac_res
=\$
$as_acx_Woption
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6432 $as_echo "$ac_res" >&6; }
6433 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6434 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6437 CFLAGS
="$save_CFLAGS"
6440 save_CFLAGS
="$CFLAGS"
6441 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6442 # Do the check with the no- prefix removed since gcc silently
6443 # accepts any -Wno-* option on purpose
6444 case $real_option in
6445 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6446 *) option
=$real_option ;;
6448 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6451 $as_echo_n "checking whether $CC supports $option... " >&6; }
6452 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6453 $as_echo_n "(cached) " >&6
6456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6467 if ac_fn_c_try_compile
"$LINENO"; then :
6468 eval "$as_acx_Woption=yes"
6470 eval "$as_acx_Woption=no"
6472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6475 eval ac_res
=\$
$as_acx_Woption
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6477 $as_echo "$ac_res" >&6; }
6478 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6479 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6482 CFLAGS
="$save_CFLAGS"
6485 save_CFLAGS
="$CFLAGS"
6486 for real_option
in -Wmissing-format-attribute; do
6487 # Do the check with the no- prefix removed since gcc silently
6488 # accepts any -Wno-* option on purpose
6489 case $real_option in
6490 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6491 *) option
=$real_option ;;
6493 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6496 $as_echo_n "checking whether $CC supports $option... " >&6; }
6497 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6498 $as_echo_n "(cached) " >&6
6501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6512 if ac_fn_c_try_compile
"$LINENO"; then :
6513 eval "$as_acx_Woption=yes"
6515 eval "$as_acx_Woption=no"
6517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6520 eval ac_res
=\$
$as_acx_Woption
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6522 $as_echo "$ac_res" >&6; }
6523 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6524 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6527 CFLAGS
="$save_CFLAGS"
6530 save_CFLAGS
="$CFLAGS"
6531 for real_option
in -Wold-style-definition -Wc++-compat; do
6532 # Do the check with the no- prefix removed since gcc silently
6533 # accepts any -Wno-* option on purpose
6534 case $real_option in
6535 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6536 *) option
=$real_option ;;
6538 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6541 $as_echo_n "checking whether $CC supports $option... " >&6; }
6542 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6543 $as_echo_n "(cached) " >&6
6546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6557 if ac_fn_c_try_compile
"$LINENO"; then :
6558 eval "$as_acx_Woption=yes"
6560 eval "$as_acx_Woption=no"
6562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 eval ac_res
=\$
$as_acx_Woption
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6567 $as_echo "$ac_res" >&6; }
6568 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6569 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6572 CFLAGS
="$save_CFLAGS"
6574 # Do the check with the no- prefix removed from the warning options
6575 # since gcc silently accepts any -Wno-* option on purpose
6576 if test "$GCC" = yes; then :
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6578 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6579 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6582 save_CFLAGS
="$CFLAGS"
6583 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6595 if ac_fn_c_try_compile
"$LINENO"; then :
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6598 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6601 CFLAGS
="$save_CFLAGS"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6604 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6605 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6606 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6611 # Check whether --enable-werror-always was given.
6612 if test "${enable_werror_always+set}" = set; then :
6613 enableval
=$enable_werror_always;
6615 enable_werror_always
=no
6618 if test $enable_werror_always = yes; then :
6619 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6624 # The above macros do nothing if the compiler is not GCC. However, the
6625 # Makefile has more goo to add other flags, so these variables are used
6626 # to enable warnings only for GCC.
6629 if test "x$GCC" = "xyes"; then
6630 warn_cflags
='$(GCC_WARN_CFLAGS)'
6631 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6636 # Disable exceptions and RTTI if building with g++
6638 save_CFLAGS
="$CFLAGS"
6639 for real_option
in -fno-exceptions -fno-rtti; do
6640 # Do the check with the no- prefix removed since gcc silently
6641 # accepts any -Wno-* option on purpose
6642 case $real_option in
6643 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6644 *) option
=$real_option ;;
6646 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6649 $as_echo_n "checking whether $CC supports $option... " >&6; }
6650 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6651 $as_echo_n "(cached) " >&6
6654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6665 if ac_fn_c_try_compile
"$LINENO"; then :
6666 eval "$as_acx_Woption=yes"
6668 eval "$as_acx_Woption=no"
6670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6673 eval ac_res
=\$
$as_acx_Woption
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6675 $as_echo "$ac_res" >&6; }
6676 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6677 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6680 CFLAGS
="$save_CFLAGS"
6683 # Enable expensive internal checks
6685 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6689 # Check whether --enable-checking was given.
6690 if test "${enable_checking+set}" = set; then :
6691 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6694 # Determine the default checks.
6695 if test x
$is_release = x
; then
6696 ac_checking_flags
=yes
6698 ac_checking_flags
=release
6702 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6703 for check
in release
$ac_checking_flags
6706 # these set all the flags to specific states
6707 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6708 ac_fold_checking
= ; ac_gc_checking
=1 ;
6709 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6710 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6711 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6712 ac_types_checking
=1 ;;
6713 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6714 ac_fold_checking
= ; ac_gc_checking
= ;
6715 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6716 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6717 ac_tree_checking
= ; ac_valgrind_checking
= ;
6718 ac_types_checking
= ;;
6719 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6720 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6721 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6722 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6723 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6724 ac_types_checking
=1 ;;
6725 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6726 ac_fold_checking
= ; ac_gc_checking
= ;
6727 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6728 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6729 ac_tree_checking
= ; ac_valgrind_checking
= ;
6730 ac_types_checking
= ;;
6731 # these enable particular checks
6732 assert
) ac_assert_checking
=1 ;;
6733 df
) ac_df_checking
=1 ;;
6734 fold) ac_fold_checking
=1 ;;
6735 gc
) ac_gc_checking
=1 ;;
6736 gcac
) ac_gc_always_collect
=1 ;;
6737 gimple
) ac_gimple_checking
=1 ;;
6738 misc
) ac_checking
=1 ;;
6739 rtl
) ac_rtl_checking
=1 ;;
6740 rtlflag
) ac_rtlflag_checking
=1 ;;
6741 runtime
) ac_runtime_checking
=1 ;;
6742 tree
) ac_tree_checking
=1 ;;
6743 types
) ac_types_checking
=1 ;;
6744 valgrind
) ac_valgrind_checking
=1 ;;
6745 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6751 if test x
$ac_checking != x
; then
6753 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6755 nocommon_flag
=-fno-common
6758 if test x
$ac_df_checking != x
; then
6760 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6763 if test x
$ac_assert_checking != x
; then
6765 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6768 if test x
$ac_gimple_checking != x
; then
6770 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6774 if test x
$ac_runtime_checking != x
; then
6776 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6779 if test x
$ac_tree_checking != x
; then
6781 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6783 TREEBROWSER
=tree-browser.o
6785 if test x
$ac_types_checking != x
; then
6787 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6791 if test x
$ac_rtl_checking != x
; then
6793 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6796 if test x
$ac_rtlflag_checking != x
; then
6798 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6801 if test x
$ac_gc_checking != x
; then
6803 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6806 if test x
$ac_gc_always_collect != x
; then
6808 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6811 if test x
$ac_fold_checking != x
; then
6813 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6816 valgrind_path_defines
=
6819 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6820 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6828 if test x
$ac_valgrind_checking != x
; then
6829 # It is certainly possible that there's valgrind but no valgrind.h.
6830 # GCC relies on making annotations so we must have both.
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6832 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <valgrind/memcheck.h>
6836 #ifndef VALGRIND_DISCARD
6837 #error VALGRIND_DISCARD not defined
6840 if ac_fn_c_try_cpp
"$LINENO"; then :
6841 gcc_cv_header_valgrind_memcheck_h
=yes
6843 gcc_cv_header_valgrind_memcheck_h
=no
6845 rm -f conftest.err conftest.
$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6847 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6849 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <memcheck.h>
6853 #ifndef VALGRIND_DISCARD
6854 #error VALGRIND_DISCARD not defined
6857 if ac_fn_c_try_cpp
"$LINENO"; then :
6858 gcc_cv_header_memcheck_h
=yes
6860 gcc_cv_header_memcheck_h
=no
6862 rm -f conftest.err conftest.
$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6864 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6866 # Prepare PATH_SEPARATOR.
6867 # The user is always right.
6868 if test "${PATH_SEPARATOR+set}" != set; then
6869 echo "#! /bin/sh" >conf$$.sh
6870 echo "exit 0" >>conf$$.sh
6872 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6880 # Find out how to test for executable files. Don't use a zero-byte file,
6881 # as systems may use methods other than mode bits to determine executability.
6882 cat >conf$$.
file <<_ASEOF
6886 chmod +x conf$$.
file
6887 if test -x conf$$.
file >/dev
/null
2>&1; then
6888 ac_executable_p
="test -x"
6890 ac_executable_p
="test -f"
6894 # Extract the first word of "valgrind", so it can be a program name with args.
6895 set dummy valgrind
; ac_word
=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6901 case "$valgrind_path" in
6903 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6906 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6907 for ac_dir
in $PATH; do
6909 test -z "$ac_dir" && ac_dir
=.
6910 for ac_exec_ext
in '' $ac_executable_extensions; do
6911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6912 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6913 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6923 valgrind_path
="$ac_cv_path_valgrind_path"
6924 if test -n "$valgrind_path"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6926 $as_echo "$valgrind_path" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6932 if test "x$valgrind_path" = "x" \
6933 ||
(test $have_valgrind_h = no \
6934 && test $gcc_cv_header_memcheck_h = no \
6935 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6936 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6938 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6939 valgrind_command
="$valgrind_path -q"
6941 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6943 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6945 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6948 if test $gcc_cv_header_memcheck_h = yes; then
6950 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6957 # Enable code coverage collection
6958 # Check whether --enable-coverage was given.
6959 if test "${enable_coverage+set}" = set; then :
6960 enableval
=$enable_coverage; case "${enableval}" in
6962 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6965 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6968 # a.k.a. --disable-coverage
6972 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6981 # Check whether --enable-gather-detailed-mem-stats was given.
6982 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6983 enableval
=$enable_gather_detailed_mem_stats;
6985 enable_gather_detailed_mem_stats
=no
6988 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6990 cat >>confdefs.h
<<_ACEOF
6991 #define GATHER_STATISTICS $gather_stats
6995 # -------------------------------
6996 # Miscenalleous configure options
6997 # -------------------------------
7001 # Check whether --with-stabs was given.
7002 if test "${with_stabs+set}" = set; then :
7003 withval
=$with_stabs; stabs
="$with_stabs"
7009 # Determine whether or not multilibs are enabled.
7010 # Check whether --enable-multilib was given.
7011 if test "${enable_multilib+set}" = set; then :
7012 enableval
=$enable_multilib;
7019 # Enable __cxa_atexit for C++.
7020 # Check whether --enable-__cxa_atexit was given.
7021 if test "${enable___cxa_atexit+set}" = set; then :
7022 enableval
=$enable___cxa_atexit;
7026 # Enable C extension for decimal float if target supports it.
7028 # Check whether --enable-decimal-float was given.
7029 if test "${enable_decimal_float+set}" = set; then :
7030 enableval
=$enable_decimal_float;
7031 case $enable_decimal_float in
7032 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7033 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7034 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7040 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7041 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7043 enable_decimal_float
=yes
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7047 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7048 enable_decimal_float
=no
7055 # x86's use BID format instead of DPD
7056 case x
$enable_decimal_float in
7059 i?
86*-*-* | x86_64
*-*-*)
7060 enable_decimal_float
=bid
7063 enable_decimal_float
=dpd
7066 default_decimal_float
=$enable_decimal_float
7069 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7070 # dependency on libdecnumber.
7071 default_decimal_float
=dpd
7078 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7080 cat >>confdefs.h
<<_ACEOF
7081 #define ENABLE_DECIMAL_FLOAT $dfp
7085 # Use default_decimal_float for dependency.
7086 enable_decimal_float
=$default_decimal_float
7088 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7090 cat >>confdefs.h
<<_ACEOF
7091 #define ENABLE_DECIMAL_BID_FORMAT $bid
7095 # Enable C extension for fixed-point arithmetic.
7096 # Check whether --enable-fixed-point was given.
7097 if test "${enable_fixed_point+set}" = set; then :
7098 enableval
=$enable_fixed_point;
7103 enable_fixed_point
=yes
7107 enable_fixed_point
=yes
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7111 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7112 enable_fixed_point
=no
7120 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7122 cat >>confdefs.h
<<_ACEOF
7123 #define ENABLE_FIXED_POINT $fixedpoint
7128 # Pass with no value to take the default
7129 # Pass with a value to specify a thread package
7130 # Check whether --enable-threads was given.
7131 if test "${enable_threads+set}" = set; then :
7132 enableval
=$enable_threads;
7138 # Check whether --enable-tls was given.
7139 if test "${enable_tls+set}" = set; then :
7140 enableval
=$enable_tls;
7143 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7144 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7152 # Check whether --enable-objc-gc was given.
7153 if test "${enable_objc_gc+set}" = set; then :
7154 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7165 # Check whether --with-dwarf2 was given.
7166 if test "${with_dwarf2+set}" = set; then :
7167 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7173 # Check whether --enable-shared was given.
7174 if test "${enable_shared+set}" = set; then :
7175 enableval
=$enable_shared;
7176 case $enable_shared in
7180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7181 for pkg
in $enableval; do
7182 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7197 # Check whether --with-native-system-header-dir was given.
7198 if test "${with_native_system_header_dir+set}" = set; then :
7199 withval
=$with_native_system_header_dir;
7200 case ${with_native_system_header_dir} in
7201 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7202 /* |
[A-Za-z
]:[\\/]*) ;;
7203 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7205 configured_native_system_header_dir
="${withval}"
7208 configured_native_system_header_dir
=
7213 # Check whether --with-build-sysroot was given.
7214 if test "${with_build_sysroot+set}" = set; then :
7215 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7216 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7219 SYSROOT_CFLAGS_FOR_TARGET
=
7224 if test "x$prefix" = xNONE
; then
7225 test_prefix
=/usr
/local
7229 if test "x$exec_prefix" = xNONE
; then
7230 test_exec_prefix
=$test_prefix
7232 test_exec_prefix
=$exec_prefix
7236 # Check whether --with-sysroot was given.
7237 if test "${with_sysroot+set}" = set; then :
7238 withval
=$with_sysroot;
7239 case ${with_sysroot} in
7240 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7241 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7244 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7245 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7247 case ${TARGET_SYSTEM_ROOT} in
7248 "${test_prefix}"|
"${test_prefix}/"*|\
7249 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7250 '${prefix}'|
'${prefix}/'*|\
7251 '${exec_prefix}'|
'${exec_prefix}/'*)
7252 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7253 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7260 TARGET_SYSTEM_ROOT_DEFINE
=
7261 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7270 # Check whether --with-specs was given.
7271 if test "${with_specs+set}" = set; then :
7272 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7282 # Check whether --with-pkgversion was given.
7283 if test "${with_pkgversion+set}" = set; then :
7284 withval
=$with_pkgversion; case "$withval" in
7285 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7287 *) PKGVERSION
="($withval) " ;;
7298 # Check whether --with-bugurl was given.
7299 if test "${with_bugurl+set}" = set; then :
7300 withval
=$with_bugurl; case "$withval" in
7301 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7304 *) BUGURL
="$withval"
7308 BUGURL
="http://gcc.gnu.org/bugs.html"
7318 REPORT_BUGS_TO
="<$BUGURL>"
7319 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7326 # Sanity check enable_languages in case someone does not run the toplevel
7327 # configure # script.
7328 # Check whether --enable-languages was given.
7329 if test "${enable_languages+set}" = set; then :
7330 enableval
=$enable_languages; case ,${enable_languages}, in
7332 # go safe -- we cannot be much sure without the toplevel
7334 # analysis of which target libs are present and usable
7338 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7343 enable_languages
=c
,${enable_languages}
7352 # Check whether --with-multilib-list was given.
7353 if test "${with_multilib_list+set}" = set; then :
7354 withval
=$with_multilib_list; :
7356 with_multilib_list
=default
7360 # -------------------------
7361 # Checks for other programs
7362 # -------------------------
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7365 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7367 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7368 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7369 $as_echo_n "(cached) " >&6
7371 cat >conftest.
make <<\_ACEOF
7374 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7377 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7379 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7381 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7385 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7387 $as_echo "yes" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 SET_MAKE
="MAKE=${MAKE-make}"
7396 # Find some useful tools
7397 for ac_prog
in gawk mawk nawk
awk
7399 # Extract the first word of "$ac_prog", so it can be a program name with args.
7400 set dummy
$ac_prog; ac_word
=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if test "${ac_cv_prog_AWK+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$AWK"; then
7407 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir
=.
7414 for ac_exec_ext
in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_prog_AWK
="$ac_prog"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 if test -n "$AWK"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7429 $as_echo "$AWK" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7436 test -n "$AWK" && break
7439 # We need awk to create options.c and options.h.
7440 # Bail out if it's missing.
7442 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7446 $as_echo_n "checking whether ln -s works... " >&6; }
7447 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7450 rm -f conftestdata_t
7451 echo >conftestdata_f
7452 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7454 gcc_cv_prog_LN_S
="ln -s"
7456 if ln conftestdata_f conftestdata_t
2>/dev
/null
7460 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7462 gcc_cv_prog_LN_S
="cp -p"
7468 rm -f conftestdata_f conftestdata_t
7471 LN_S
="$gcc_cv_prog_LN_S"
7472 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7476 if test "$gcc_cv_prog_LN_S" = "ln"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7478 $as_echo "no, using ln" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7481 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7486 $as_echo_n "checking whether ln works... " >&6; }
7487 if test "${acx_cv_prog_LN+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7490 rm -f conftestdata_t
7491 echo >conftestdata_f
7492 if ln conftestdata_f conftestdata_t
2>/dev
/null
7498 rm -f conftestdata_f conftestdata_t
7501 if test $acx_cv_prog_LN = no
; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7504 $as_echo "no, using $LN" >&6; }
7506 LN
="$acx_cv_prog_LN"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508 $as_echo "yes" >&6; }
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7513 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$RANLIB"; then
7520 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir
=.
7527 for ac_exec_ext
in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 RANLIB
=$ac_cv_prog_RANLIB
7540 if test -n "$RANLIB"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7542 $as_echo "$RANLIB" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_RANLIB"; then
7551 ac_ct_RANLIB
=$RANLIB
7552 # Extract the first word of "ranlib", so it can be a program name with args.
7553 set dummy ranlib
; ac_word
=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$ac_ct_RANLIB"; then
7560 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir
=.
7567 for ac_exec_ext
in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7580 if test -n "$ac_ct_RANLIB"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7582 $as_echo "$ac_ct_RANLIB" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_RANLIB" = x
; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned
=yes ;;
7597 RANLIB
=$ac_ct_RANLIB
7600 RANLIB
="$ac_cv_prog_RANLIB"
7606 # Find a good install program. We prefer a C program (faster),
7607 # so one script is as good as another. But avoid the broken or
7608 # incompatible versions:
7609 # SysV /etc/install, /usr/sbin/install
7610 # SunOS /usr/etc/install
7611 # IRIX /sbin/install
7613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7615 # ./install, which can be erroneously created by make from ./install.sh.
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7617 $as_echo_n "checking for a BSD compatible install... " >&6; }
7618 if test -z "$INSTALL"; then
7619 if test "${ac_cv_path_install+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7622 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7623 for ac_dir
in $PATH; do
7624 # Account for people who put trailing slashes in PATH elements.
7626 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7628 # OSF1 and SCO ODT 3.0 have their own names for install.
7629 for ac_prog
in ginstall scoinst
install; do
7630 if test -f $ac_dir/$ac_prog; then
7631 if test $ac_prog = install &&
7632 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7633 # AIX install. It has an incompatible calling convention.
7634 # OSF/1 installbsd also uses dspmsg, but is usable.
7637 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7648 if test "${ac_cv_path_install+set}" = set; then
7649 INSTALL
="$ac_cv_path_install"
7651 # As a last resort, use the slow shell script. We don't cache a
7652 # path for INSTALL within a source directory, because that will
7653 # break other packages using the cache if that directory is
7654 # removed, or if the path is relative.
7655 INSTALL
="$ac_install_sh"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7659 $as_echo "$INSTALL" >&6; }
7661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7662 # It thinks the first close brace ends the variable substitution.
7663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7665 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7668 # See if cmp has --ignore-initial.
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7670 $as_echo_n "checking for cmp's capabilities... " >&6; }
7671 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7676 gcc_cv_prog_cmp_skip
=slowcompare
7677 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7678 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7681 gcc_cv_prog_cmp_skip
=gnucompare
7684 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7685 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7686 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7689 gcc_cv_prog_cmp_skip
=fastcompare
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7697 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7698 make_compare_target
=$gcc_cv_prog_cmp_skip
7702 # See if we have the mktemp command.
7703 # Extract the first word of "mktemp", so it can be a program name with args.
7704 set dummy mktemp
; ac_word
=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7710 if test -n "$have_mktemp_command"; then
7711 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir
=.
7718 for ac_exec_ext
in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_prog_have_mktemp_command
="yes"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7731 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7732 if test -n "$have_mktemp_command"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7734 $as_echo "$have_mktemp_command" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 # See if makeinfo has been installed and is modern enough
7743 # that we can use it.
7745 # Extract the first word of "makeinfo", so it can be a program name with args.
7746 set dummy makeinfo
; ac_word
=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$MAKEINFO"; then
7753 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir
=.
7760 for ac_exec_ext
in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_MAKEINFO
="makeinfo"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 MAKEINFO
=$ac_cv_prog_MAKEINFO
7773 if test -n "$MAKEINFO"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7775 $as_echo "$MAKEINFO" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7782 if test -n "$MAKEINFO"; then
7783 # Found it, now check the version.
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7785 $as_echo_n "checking for modern makeinfo... " >&6; }
7786 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7789 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7790 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7792 case $ac_prog_version in
7793 '') gcc_cv_prog_makeinfo_modern
=no
;;
7794 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7795 *) gcc_cv_prog_makeinfo_modern
=no
;;
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7800 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7802 gcc_cv_prog_makeinfo_modern
=no
7804 if test $gcc_cv_prog_makeinfo_modern = no
; then
7805 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7808 if test $gcc_cv_prog_makeinfo_modern = no
; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7810 *** Makeinfo is missing or too old.
7811 *** Info documentation will not be built." >&5
7812 $as_echo "$as_me: WARNING:
7813 *** Makeinfo is missing or too old.
7814 *** Info documentation will not be built." >&2;}
7821 # Is pod2man recent enough to regenerate manpages?
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7823 $as_echo_n "checking for recent Pod::Man... " >&6; }
7824 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7826 $as_echo "yes" >&6; }
7827 GENERATED_MANPAGES
=generated-manpages
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7835 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7840 # Extract the first word of "$ac_prog", so it can be a program name with args.
7841 set dummy
$ac_prog; ac_word
=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_prog_FLEX+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7847 if test -n "$FLEX"; then
7848 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir
=.
7855 for ac_exec_ext
in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_FLEX
="$ac_prog"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 FLEX
=$ac_cv_prog_FLEX
7868 if test -n "$FLEX"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7870 $as_echo "$FLEX" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7877 test -n "$FLEX" && break
7879 test -n "$FLEX" || FLEX
="$MISSING flex"
7883 for ac_prog
in bison
7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
7886 set dummy
$ac_prog; ac_word
=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if test "${ac_cv_prog_BISON+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7892 if test -n "$BISON"; then
7893 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7899 test -z "$as_dir" && as_dir
=.
7900 for ac_exec_ext
in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_BISON
="$ac_prog"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 BISON
=$ac_cv_prog_BISON
7913 if test -n "$BISON"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7915 $as_echo "$BISON" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7922 test -n "$BISON" && break
7924 test -n "$BISON" || BISON
="$MISSING bison"
7927 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7928 # check for build == host before using them.
7931 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7932 && test -d ..
/binutils
; then
7933 NM
='${objdir}/../binutils/nm-new'
7935 # Extract the first word of "nm", so it can be a program name with args.
7936 set dummy nm
; ac_word
=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if test "${ac_cv_prog_NM+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7942 if test -n "$NM"; then
7943 ac_cv_prog_NM
="$NM" # Let the user override the test.
7945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir
=.
7950 for ac_exec_ext
in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7964 if test -n "$NM"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7966 $as_echo "$NM" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7976 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7977 && test -d ..
/binutils
; then
7978 AR
='${objdir}/../binutils/ar'
7980 # Extract the first word of "ar", so it can be a program name with args.
7981 set dummy
ar; ac_word
=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_AR+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if test -n "$AR"; then
7988 ac_cv_prog_AR
="$AR" # Let the user override the test.
7990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir
=.
7995 for ac_exec_ext
in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8009 if test -n "$AR"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8011 $as_echo "$AR" >&6; }
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8021 # --------------------
8022 # Checks for C headers
8023 # --------------------
8025 # Need to reject headers which give warnings, so that the -Werror bootstrap
8026 # works later. *sigh* This needs to come before all header checks.
8028 ac_c_preproc_warn_flag
=yes
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8031 $as_echo_n "checking for ANSI C header files... " >&6; }
8032 if test "${ac_cv_header_stdc+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8050 if ac_fn_c_try_compile
"$LINENO"; then :
8051 ac_cv_header_stdc
=yes
8053 ac_cv_header_stdc
=no
8055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8057 if test $ac_cv_header_stdc = yes; then
8058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8065 $EGREP "memchr" >/dev
/null
2>&1; then :
8068 ac_cv_header_stdc
=no
8074 if test $ac_cv_header_stdc = yes; then
8075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 $EGREP "free" >/dev
/null
2>&1; then :
8085 ac_cv_header_stdc
=no
8091 if test $ac_cv_header_stdc = yes; then
8092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8093 if test "$cross_compiling" = yes; then :
8096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8100 #if ((' ' & 0x0FF) == 0x020)
8101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8104 # define ISLOWER(c) \
8105 (('a' <= (c) && (c) <= 'i') \
8106 || ('j' <= (c) && (c) <= 'r') \
8107 || ('s' <= (c) && (c) <= 'z'))
8108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8116 for (i = 0; i < 256; i++)
8117 if (XOR (islower (i), ISLOWER (i))
8118 || toupper (i) != TOUPPER (i))
8123 if ac_fn_c_try_run
"$LINENO"; then :
8126 ac_cv_header_stdc
=no
8128 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8129 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8135 $as_echo "$ac_cv_header_stdc" >&6; }
8136 if test $ac_cv_header_stdc = yes; then
8138 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8143 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8144 if test "${ac_cv_header_time+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <sys/types.h>
8150 #include <sys/time.h>
8156 if ((struct tm *) 0)
8162 if ac_fn_c_try_compile
"$LINENO"; then :
8163 ac_cv_header_time
=yes
8165 ac_cv_header_time
=no
8167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8170 $as_echo "$ac_cv_header_time" >&6; }
8171 if test $ac_cv_header_time = yes; then
8173 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8178 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8179 if test "${gcc_cv_header_string+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8185 #include <strings.h>
8194 if ac_fn_c_try_compile
"$LINENO"; then :
8195 gcc_cv_header_string
=yes
8197 gcc_cv_header_string
=no
8199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8202 $as_echo "$gcc_cv_header_string" >&6; }
8203 if test $gcc_cv_header_string = yes; then
8205 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8210 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8211 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <sys/wait.h>
8219 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8222 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8230 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8235 if ac_fn_c_try_compile
"$LINENO"; then :
8236 ac_cv_header_sys_wait_h
=yes
8238 ac_cv_header_sys_wait_h
=no
8240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8243 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8244 if test $ac_cv_header_sys_wait_h = yes; then
8246 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8250 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8251 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8252 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8253 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8255 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8256 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8257 eval as_val
=\$
$as_ac_Header
8258 if test "x$as_val" = x
""yes; then :
8259 cat >>confdefs.h
<<_ACEOF
8260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8267 # Check for thread headers.
8268 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8269 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8275 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8276 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8283 # These tests can't be done till we know if we have limits.h.
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8285 $as_echo_n "checking for CHAR_BIT... " >&6; }
8286 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 #ifdef HAVE_LIMITS_H
8298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8299 $EGREP "found" >/dev
/null
2>&1; then :
8300 gcc_cv_decl_char_bit
=yes
8302 gcc_cv_decl_char_bit
=no
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8309 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8310 if test $gcc_cv_decl_char_bit = no
; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8312 $as_echo_n "checking number of bits in a byte... " >&6; }
8313 if test "${gcc_cv_c_nbby+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8318 while test $i -lt 65; do
8319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8326 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8327 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8333 if ac_fn_c_try_compile
"$LINENO"; then :
8334 gcc_cv_c_nbby
=$i; break
8336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8343 $as_echo "$gcc_cv_c_nbby" >&6; }
8344 if test $gcc_cv_c_nbby = failed
; then
8345 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8348 cat >>confdefs.h
<<_ACEOF
8349 #define CHAR_BIT $gcc_cv_c_nbby
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8355 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8356 if test "${ac_cv_c_bigendian+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8359 ac_cv_c_bigendian
=unknown
8360 # See if we're dealing with a universal compiler.
8361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #ifndef __APPLE_CC__
8364 not a universal capable compiler
8369 if ac_fn_c_try_compile
"$LINENO"; then :
8371 # Check for potential -arch flags. It is not universal unless
8372 # there are at least two -arch flags with different values.
8375 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8376 if test -n "$ac_prev"; then
8378 i?
86 | x86_64 | ppc | ppc64
)
8379 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8382 ac_cv_c_bigendian
=universal
8388 elif test "x$ac_word" = "x-arch"; then
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8394 if test $ac_cv_c_bigendian = unknown
; then
8395 # See if sys/param.h defines the BYTE_ORDER macro.
8396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #include <sys/types.h>
8399 #include <sys/param.h>
8404 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8405 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8414 if ac_fn_c_try_compile
"$LINENO"; then :
8415 # It does; now see whether it defined to BIG_ENDIAN or not.
8416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 #include <sys/types.h>
8419 #include <sys/param.h>
8424 #if BYTE_ORDER != BIG_ENDIAN
8432 if ac_fn_c_try_compile
"$LINENO"; then :
8433 ac_cv_c_bigendian
=yes
8435 ac_cv_c_bigendian
=no
8437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 if test $ac_cv_c_bigendian = unknown
; then
8442 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8450 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8458 if ac_fn_c_try_compile
"$LINENO"; then :
8459 # It does; now see whether it defined to _BIG_ENDIAN or not.
8460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8475 if ac_fn_c_try_compile
"$LINENO"; then :
8476 ac_cv_c_bigendian
=yes
8478 ac_cv_c_bigendian
=no
8480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8484 if test $ac_cv_c_bigendian = unknown
; then
8485 # Compile a test program.
8486 if test "$cross_compiling" = yes; then :
8487 # Try to guess by grepping values from an object file.
8488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 short int ascii_mm[] =
8491 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8492 short int ascii_ii[] =
8493 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8494 int use_ascii (int i) {
8495 return ascii_mm[i] + ascii_ii[i];
8497 short int ebcdic_ii[] =
8498 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8499 short int ebcdic_mm[] =
8500 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8501 int use_ebcdic (int i) {
8502 return ebcdic_mm[i] + ebcdic_ii[i];
8509 return use_ascii (foo) == use_ebcdic (foo);
8514 if ac_fn_c_try_compile
"$LINENO"; then :
8515 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8516 ac_cv_c_bigendian
=yes
8518 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8519 if test "$ac_cv_c_bigendian" = unknown
; then
8520 ac_cv_c_bigendian
=no
8522 # finding both strings is unlikely to happen, but who knows?
8523 ac_cv_c_bigendian
=unknown
8527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 $ac_includes_default
8536 /* Are we little or big endian? From Harbison&Steele. */
8540 char c[sizeof (long int)];
8543 return u.c[sizeof (long int) - 1] == 1;
8549 if ac_fn_c_try_run
"$LINENO"; then :
8550 ac_cv_c_bigendian
=no
8552 ac_cv_c_bigendian
=yes
8554 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8555 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8561 $as_echo "$ac_cv_c_bigendian" >&6; }
8562 case $ac_cv_c_bigendian in #(
8564 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8570 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8574 as_fn_error
"unknown endianness
8575 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8579 # ----------------------
8580 # Checks for C++ headers
8581 # ----------------------
8584 ac_cpp
='$CXXCPP $CPPFLAGS'
8585 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8586 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8587 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8589 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8590 if test -z "$CXXCPP"; then
8591 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8594 # Double quotes because CXXCPP needs to be expanded
8595 for CXXCPP
in "$CXX -E" "/lib/cpp"
8598 for ac_cxx_preproc_warn_flag
in '' yes
8600 # Use a header file that comes with gcc, so configuring glibc
8601 # with a fresh cross-compiler works.
8602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8603 # <limits.h> exists even on freestanding compilers.
8604 # On the NeXT, cc -E runs the code through the compiler's parser,
8605 # not just through cpp. "Syntax error" is here to catch this case.
8606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8609 # include <limits.h>
8611 # include <assert.h>
8615 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8618 # Broken: fails on valid input.
8621 rm -f conftest.err conftest.
$ac_ext
8623 # OK, works on sane cases. Now check whether nonexistent headers
8624 # can be detected and how.
8625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 #include <ac_nonexistent.h>
8629 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8630 # Broken: success on invalid input.
8633 # Passes both tests.
8637 rm -f conftest.err conftest.
$ac_ext
8640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8641 rm -f conftest.err conftest.
$ac_ext
8642 if $ac_preproc_ok; then :
8647 ac_cv_prog_CXXCPP
=$CXXCPP
8650 CXXCPP
=$ac_cv_prog_CXXCPP
8652 ac_cv_prog_CXXCPP
=$CXXCPP
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8655 $as_echo "$CXXCPP" >&6; }
8657 for ac_cxx_preproc_warn_flag
in '' yes
8659 # Use a header file that comes with gcc, so configuring glibc
8660 # with a fresh cross-compiler works.
8661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662 # <limits.h> exists even on freestanding compilers.
8663 # On the NeXT, cc -E runs the code through the compiler's parser,
8664 # not just through cpp. "Syntax error" is here to catch this case.
8665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8668 # include <limits.h>
8670 # include <assert.h>
8674 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8677 # Broken: fails on valid input.
8680 rm -f conftest.err conftest.
$ac_ext
8682 # OK, works on sane cases. Now check whether nonexistent headers
8683 # can be detected and how.
8684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 #include <ac_nonexistent.h>
8688 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8689 # Broken: success on invalid input.
8692 # Passes both tests.
8696 rm -f conftest.err conftest.
$ac_ext
8699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8700 rm -f conftest.err conftest.
$ac_ext
8701 if $ac_preproc_ok; then :
8704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8707 See \`config.log' for more details." >&5
8708 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8709 See \`config.log' for more details." >&2;}; }
8713 ac_cpp
='$CPP $CPPFLAGS'
8714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8720 ac_cpp
='$CXXCPP $CPPFLAGS'
8721 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8728 for ac_header
in unordered_map
8730 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8731 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8732 cat >>confdefs.h
<<_ACEOF
8733 #define HAVE_UNORDERED_MAP 1
8739 for ac_header
in tr1/unordered_map
8741 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8742 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8743 cat >>confdefs.h
<<_ACEOF
8744 #define HAVE_TR1_UNORDERED_MAP 1
8750 for ac_header
in ext
/hash_map
8752 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8753 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8754 cat >>confdefs.h
<<_ACEOF
8755 #define HAVE_EXT_HASH_MAP 1
8763 ac_cpp
='$CPP $CPPFLAGS'
8764 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8765 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8766 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8774 # These libraries may be used by collect2.
8775 # We may need a special search path to get them linked.
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8777 $as_echo_n "checking for collect2 libraries... " >&6; }
8778 if test "${gcc_cv_collect2_libs+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8782 for libs
in '' -lld -lmld \
8783 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8784 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8805 if ac_fn_c_try_link
"$LINENO"; then :
8806 gcc_cv_collect2_libs
="$libs"; break
8808 rm -f core conftest.err conftest.
$ac_objext \
8809 conftest
$ac_exeext conftest.
$ac_ext
8812 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8815 $as_echo "$gcc_cv_collect2_libs" >&6; }
8816 case $gcc_cv_collect2_libs in
8818 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8822 # When building Ada code on Alpha, we need exc_resume which is usually in
8823 # -lexc. So test for it.
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8827 $as_echo_n "checking for library containing exc_resume... " >&6; }
8828 if test "${ac_cv_search_exc_resume+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8831 ac_func_search_save_LIBS
=$LIBS
8832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8835 /* Override any GCC internal prototype to avoid an error.
8836 Use char because int might match the return type of a GCC
8837 builtin and then its argument prototype would still apply. */
8845 return exc_resume ();
8850 for ac_lib
in '' exc
; do
8851 if test -z "$ac_lib"; then
8852 ac_res
="none required"
8855 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8857 if ac_fn_c_try_link
"$LINENO"; then :
8858 ac_cv_search_exc_resume
=$ac_res
8860 rm -f core conftest.err conftest.
$ac_objext \
8862 if test "${ac_cv_search_exc_resume+set}" = set; then :
8866 if test "${ac_cv_search_exc_resume+set}" = set; then :
8869 ac_cv_search_exc_resume
=no
8872 LIBS
=$ac_func_search_save_LIBS
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8875 $as_echo "$ac_cv_search_exc_resume" >&6; }
8876 ac_res
=$ac_cv_search_exc_resume
8877 if test "$ac_res" != no
; then :
8878 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8886 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8890 $as_echo_n "checking for library containing kstat_open... " >&6; }
8891 if test "${ac_cv_search_kstat_open+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
8894 ac_func_search_save_LIBS
=$LIBS
8895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8898 /* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8908 return kstat_open ();
8913 for ac_lib
in '' kstat
; do
8914 if test -z "$ac_lib"; then
8915 ac_res
="none required"
8918 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8920 if ac_fn_c_try_link
"$LINENO"; then :
8921 ac_cv_search_kstat_open
=$ac_res
8923 rm -f core conftest.err conftest.
$ac_objext \
8925 if test "${ac_cv_search_kstat_open+set}" = set; then :
8929 if test "${ac_cv_search_kstat_open+set}" = set; then :
8932 ac_cv_search_kstat_open
=no
8935 LIBS
=$ac_func_search_save_LIBS
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8938 $as_echo "$ac_cv_search_kstat_open" >&6; }
8939 ac_res
=$ac_cv_search_kstat_open
8940 if test "$ac_res" != no
; then :
8941 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8945 EXTRA_GCC_LIBS
="$LIBS"
8949 # Some systems put ldexp and frexp in libm instead of libc; assume
8950 # they're both in the same place. jcf-dump needs them.
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8954 $as_echo_n "checking for library containing ldexp... " >&6; }
8955 if test "${ac_cv_search_ldexp+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8958 ac_func_search_save_LIBS
=$LIBS
8959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8962 /* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
8977 for ac_lib
in '' m
; do
8978 if test -z "$ac_lib"; then
8979 ac_res
="none required"
8982 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8984 if ac_fn_c_try_link
"$LINENO"; then :
8985 ac_cv_search_ldexp
=$ac_res
8987 rm -f core conftest.err conftest.
$ac_objext \
8989 if test "${ac_cv_search_ldexp+set}" = set; then :
8993 if test "${ac_cv_search_ldexp+set}" = set; then :
8996 ac_cv_search_ldexp
=no
8999 LIBS
=$ac_func_search_save_LIBS
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9002 $as_echo "$ac_cv_search_ldexp" >&6; }
9003 ac_res
=$ac_cv_search_ldexp
9004 if test "$ac_res" != no
; then :
9005 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9013 # Use <inttypes.h> only if it exists,
9014 # doesn't clash with <sys/types.h>, and declares intmax_t.
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9016 $as_echo_n "checking for inttypes.h... " >&6; }
9017 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 #include <sys/types.h>
9023 #include <inttypes.h>
9032 if ac_fn_c_try_compile
"$LINENO"; then :
9033 gcc_cv_header_inttypes_h
=yes
9035 gcc_cv_header_inttypes_h
=no
9037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9041 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9042 if test $gcc_cv_header_inttypes_h = yes; then
9044 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9050 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9051 sysconf strsignal getrusage nl_langinfo \
9052 gettimeofday mbstowcs wcswidth mmap setlocale \
9053 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
9055 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9057 eval as_val
=\$
$as_ac_var
9058 if test "x$as_val" = x
""yes; then :
9059 cat >>confdefs.h
<<_ACEOF
9060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9067 if test x
$ac_cv_func_mbstowcs = xyes
; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9069 $as_echo_n "checking whether mbstowcs works... " >&6; }
9070 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9073 if test "$cross_compiling" = yes; then :
9074 gcc_cv_func_mbstowcs_works
=yes
9076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9085 if ac_fn_c_try_run
"$LINENO"; then :
9086 gcc_cv_func_mbstowcs_works
=yes
9088 gcc_cv_func_mbstowcs_works
=no
9090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9096 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9097 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9099 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9104 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9105 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9109 cat >>confdefs.h
<<_ACEOF
9115 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9116 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9120 cat >>confdefs.h
<<_ACEOF
9121 #define caddr_t char *
9128 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9129 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9130 gcc_header_sys_mman_h
=yes
9132 gcc_header_sys_mman_h
=no
9135 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9136 if test "x$ac_cv_func_mmap" = x
""yes; then :
9142 if test "$gcc_header_sys_mman_h" != yes \
9143 ||
test "$gcc_func_mmap" != yes; then
9144 gcc_cv_func_mmap_file
=no
9145 gcc_cv_func_mmap_dev_zero
=no
9146 gcc_cv_func_mmap_anon
=no
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9149 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9150 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9153 # Add a system to this blacklist if
9154 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9155 # memory area containing the same data that you'd get if you applied
9156 # read() to the same fd. The only system known to have a problem here
9157 # is VMS, where text files have record structure.
9160 gcc_cv_func_mmap_file
=no
;;
9162 gcc_cv_func_mmap_file
=yes;;
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9166 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9168 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9169 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9172 # Add a system to this blacklist if it has mmap() but /dev/zero
9173 # does not exist, or if mmapping /dev/zero does not give anonymous
9174 # zeroed pages with both the following properties:
9175 # 1. If you map N consecutive pages in with one call, and then
9176 # unmap any subset of those pages, the pages that were not
9177 # explicitly unmapped remain accessible.
9178 # 2. If you map two adjacent blocks of memory and then unmap them
9179 # both at once, they must both go away.
9180 # Systems known to be in this category are Windows (all variants),
9183 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9184 gcc_cv_func_mmap_dev_zero
=no
;;
9186 gcc_cv_func_mmap_dev_zero
=yes;;
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9190 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9192 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9194 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9195 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <sys/types.h>
9201 #include <sys/mman.h>
9204 #ifndef MAP_ANONYMOUS
9205 #define MAP_ANONYMOUS MAP_ANON
9211 int n = MAP_ANONYMOUS;
9216 if ac_fn_c_try_compile
"$LINENO"; then :
9217 gcc_cv_decl_map_anon
=yes
9219 gcc_cv_decl_map_anon
=no
9221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9224 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9226 if test $gcc_cv_decl_map_anon = no
; then
9227 gcc_cv_func_mmap_anon
=no
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9230 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9231 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9234 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9235 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9236 # doesn't give anonymous zeroed pages with the same properties listed
9237 # above for use of /dev/zero.
9238 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9240 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9241 gcc_cv_func_mmap_anon
=no
;;
9243 gcc_cv_func_mmap_anon
=yes;;
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9247 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9251 if test $gcc_cv_func_mmap_file = yes; then
9253 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9256 if test $gcc_cv_func_mmap_dev_zero = yes; then
9258 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9261 if test $gcc_cv_func_mmap_anon = yes; then
9263 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9270 # Under VMS, vfork works very differently than on Unix. The standard test
9271 # won't work, and it isn't easily adaptable. It makes more sense to
9273 ac_cv_func_vfork_works
=yes
9276 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9277 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9281 cat >>confdefs.h
<<_ACEOF
9287 for ac_header
in vfork.h
9289 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9290 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9291 cat >>confdefs.h
<<_ACEOF
9292 #define HAVE_VFORK_H 1
9298 for ac_func
in fork vfork
9300 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9301 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9302 eval as_val
=\$
$as_ac_var
9303 if test "x$as_val" = x
""yes; then :
9304 cat >>confdefs.h
<<_ACEOF
9305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9311 if test "x$ac_cv_func_fork" = xyes
; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9313 $as_echo_n "checking for working fork... " >&6; }
9314 if test "${ac_cv_func_fork_works+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
9317 if test "$cross_compiling" = yes; then :
9318 ac_cv_func_fork_works
=cross
9320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 $ac_includes_default
9327 /* By Ruediger Kuhlmann. */
9334 if ac_fn_c_try_run
"$LINENO"; then :
9335 ac_cv_func_fork_works
=yes
9337 ac_cv_func_fork_works
=no
9339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9345 $as_echo "$ac_cv_func_fork_works" >&6; }
9348 ac_cv_func_fork_works
=$ac_cv_func_fork
9350 if test "x$ac_cv_func_fork_works" = xcross
; then
9352 *-*-amigaos* |
*-*-msdosdjgpp*)
9353 # Override, as these systems have only a dummy fork() stub
9354 ac_cv_func_fork_works
=no
9357 ac_cv_func_fork_works
=yes
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9361 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9363 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9364 if test "x$ac_cv_func_vfork" = xyes
; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9366 $as_echo_n "checking for working vfork... " >&6; }
9367 if test "${ac_cv_func_vfork_works+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9370 if test "$cross_compiling" = yes; then :
9371 ac_cv_func_vfork_works
=cross
9373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375 /* Thanks to Paul Eggert for this test. */
9376 $ac_includes_default
9377 #include <sys/wait.h>
9381 /* On some sparc systems, changes by the child to local and incoming
9382 argument registers are propagated back to the parent. The compiler
9383 is told about this with #include <vfork.h>, but some compilers
9384 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9385 static variable whose address is put into a register that is
9386 clobbered by the vfork. */
9389 sparc_address_test (int arg)
9391 sparc_address_test (arg) int arg;
9412 pid_t parent = getpid ();
9415 sparc_address_test (0);
9420 /* Here is another test for sparc vfork register problems. This
9421 test uses lots of local variables, at least as many local
9422 variables as main has allocated so far including compiler
9423 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9424 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9425 reuse the register of parent for one of the local variables,
9426 since it will think that parent can't possibly be used any more
9427 in this routine. Assigning to the local variable will thus
9428 munge parent in the parent process. */
9430 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9431 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9432 /* Convince the compiler that p..p7 are live; otherwise, it might
9433 use the same hardware register for all 8 local variables. */
9434 if (p != p1 || p != p2 || p != p3 || p != p4
9435 || p != p5 || p != p6 || p != p7)
9438 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9439 from child file descriptors. If the child closes a descriptor
9440 before it execs or exits, this munges the parent's descriptor
9441 as well. Test for this by closing stdout in the child. */
9442 _exit(close(fileno(stdout)) != 0);
9447 while (wait(&status) != child)
9450 /* Was there some problem with vforking? */
9453 /* Did the child fail? (This shouldn't happen.) */
9456 /* Did the vfork/compiler bug occur? */
9457 || parent != getpid()
9459 /* Did the file descriptor bug occur? */
9460 || fstat(fileno(stdout), &st) != 0
9465 if ac_fn_c_try_run
"$LINENO"; then :
9466 ac_cv_func_vfork_works
=yes
9468 ac_cv_func_vfork_works
=no
9470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9471 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9476 $as_echo "$ac_cv_func_vfork_works" >&6; }
9479 if test "x$ac_cv_func_fork_works" = xcross
; then
9480 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9482 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9485 if test "x$ac_cv_func_vfork_works" = xyes
; then
9487 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9491 $as_echo "#define vfork fork" >>confdefs.h
9494 if test "x$ac_cv_func_fork_works" = xyes
; then
9496 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9501 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9502 # iconv() prototype.
9504 ac_cpp
='$CXXCPP $CPPFLAGS'
9505 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9506 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9507 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9510 if test "X$prefix" = "XNONE"; then
9511 acl_final_prefix
="$ac_default_prefix"
9513 acl_final_prefix
="$prefix"
9515 if test "X$exec_prefix" = "XNONE"; then
9516 acl_final_exec_prefix
='${prefix}'
9518 acl_final_exec_prefix
="$exec_prefix"
9520 acl_save_prefix
="$prefix"
9521 prefix
="$acl_final_prefix"
9522 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9523 prefix
="$acl_save_prefix"
9526 # Check whether --with-gnu-ld was given.
9527 if test "${with_gnu_ld+set}" = set; then :
9528 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9533 # Prepare PATH_SEPARATOR.
9534 # The user is always right.
9535 if test "${PATH_SEPARATOR+set}" != set; then
9536 echo "#! /bin/sh" >conf$$.sh
9537 echo "exit 0" >>conf$$.sh
9539 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9547 if test "$GCC" = yes; then
9548 # Check if gcc -print-prog-name=ld gives a path.
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9550 $as_echo_n "checking for ld used by GCC... " >&6; }
9553 # gcc leaves a trailing carriage return which upsets mingw
9554 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9556 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9559 # Accept absolute paths.
9560 [\\/]* |
[A-Za-z
]:[\\/]*)
9561 re_direlt
='/[^/][^/]*/\.\./'
9562 # Canonicalize the path of ld
9563 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9564 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9565 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9567 test -z "$LD" && LD
="$ac_prog"
9570 # If it fails, then pretend we aren't using GCC.
9574 # If it is relative, then search for the first ld in PATH.
9578 elif test "$with_gnu_ld" = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9580 $as_echo_n "checking for GNU ld... " >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9583 $as_echo_n "checking for non-GNU ld... " >&6; }
9585 if test "${acl_cv_path_LD+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9588 if test -z "$LD"; then
9589 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9590 for ac_dir
in $PATH; do
9591 test -z "$ac_dir" && ac_dir
=.
9592 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9593 acl_cv_path_LD
="$ac_dir/$ac_prog"
9594 # Check to see if the program is GNU ld. I'd rather use --version,
9595 # but apparently some GNU ld's only accept -v.
9596 # Break only if it was the GNU/non-GNU ld that we prefer.
9597 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9598 test "$with_gnu_ld" != no
&& break
9600 test "$with_gnu_ld" != yes && break
9606 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9610 LD
="$acl_cv_path_LD"
9611 if test -n "$LD"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9613 $as_echo "$LD" >&6; }
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9618 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9621 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9622 $as_echo_n "(cached) " >&6
9624 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9625 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9626 acl_cv_prog_gnu_ld
=yes
9628 acl_cv_prog_gnu_ld
=no
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9632 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9633 with_gnu_ld
=$acl_cv_prog_gnu_ld
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9638 $as_echo_n "checking for shared library run path origin... " >&6; }
9639 if test "${acl_cv_rpath+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9643 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9644 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9651 $as_echo "$acl_cv_rpath" >&6; }
9653 libext
="$acl_cv_libext"
9654 shlibext
="$acl_cv_shlibext"
9655 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9656 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9657 hardcode_direct
="$acl_cv_hardcode_direct"
9658 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9659 # Check whether --enable-rpath was given.
9660 if test "${enable_rpath+set}" = set; then :
9661 enableval
=$enable_rpath; :
9675 acl_save_prefix
="$prefix"
9676 prefix
="$acl_final_prefix"
9677 acl_save_exec_prefix
="$exec_prefix"
9678 exec_prefix
="$acl_final_exec_prefix"
9680 eval additional_includedir
=\"$includedir\"
9681 eval additional_libdir
=\"$libdir\"
9683 exec_prefix
="$acl_save_exec_prefix"
9684 prefix
="$acl_save_prefix"
9687 # Check whether --with-libiconv-prefix was given.
9688 if test "${with_libiconv_prefix+set}" = set; then :
9689 withval
=$with_libiconv_prefix;
9690 if test "X$withval" = "Xno"; then
9693 if test "X$withval" = "X"; then
9695 acl_save_prefix
="$prefix"
9696 prefix
="$acl_final_prefix"
9697 acl_save_exec_prefix
="$exec_prefix"
9698 exec_prefix
="$acl_final_exec_prefix"
9700 eval additional_includedir
=\"$includedir\"
9701 eval additional_libdir
=\"$libdir\"
9703 exec_prefix
="$acl_save_exec_prefix"
9704 prefix
="$acl_save_prefix"
9707 additional_includedir
="$withval/include"
9708 additional_libdir
="$withval/lib"
9719 names_already_handled
=
9720 names_next_round
='iconv '
9721 while test -n "$names_next_round"; do
9722 names_this_round
="$names_next_round"
9724 for name
in $names_this_round; do
9726 for n
in $names_already_handled; do
9727 if test "$n" = "$name"; then
9732 if test -z "$already_handled"; then
9733 names_already_handled
="$names_already_handled $name"
9734 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9735 eval value
=\"\
$HAVE_LIB$uppername\"
9736 if test -n "$value"; then
9737 if test "$value" = yes; then
9738 eval value
=\"\
$LIB$uppername\"
9739 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9740 eval value
=\"\
$LTLIB$uppername\"
9741 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9750 if test $use_additional = yes; then
9751 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9752 found_dir
="$additional_libdir"
9753 found_so
="$additional_libdir/lib$name.$shlibext"
9754 if test -f "$additional_libdir/lib$name.la"; then
9755 found_la
="$additional_libdir/lib$name.la"
9758 if test -f "$additional_libdir/lib$name.$libext"; then
9759 found_dir
="$additional_libdir"
9760 found_a
="$additional_libdir/lib$name.$libext"
9761 if test -f "$additional_libdir/lib$name.la"; then
9762 found_la
="$additional_libdir/lib$name.la"
9767 if test "X$found_dir" = "X"; then
9768 for x
in $LDFLAGS $LTLIBICONV; do
9770 acl_save_prefix
="$prefix"
9771 prefix
="$acl_final_prefix"
9772 acl_save_exec_prefix
="$exec_prefix"
9773 exec_prefix
="$acl_final_exec_prefix"
9775 exec_prefix
="$acl_save_exec_prefix"
9776 prefix
="$acl_save_prefix"
9780 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9781 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9783 found_so
="$dir/lib$name.$shlibext"
9784 if test -f "$dir/lib$name.la"; then
9785 found_la
="$dir/lib$name.la"
9788 if test -f "$dir/lib$name.$libext"; then
9790 found_a
="$dir/lib$name.$libext"
9791 if test -f "$dir/lib$name.la"; then
9792 found_la
="$dir/lib$name.la"
9798 if test "X$found_dir" != "X"; then
9803 if test "X$found_dir" != "X"; then
9804 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9805 if test "X$found_so" != "X"; then
9806 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9807 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9810 for x
in $ltrpathdirs; do
9811 if test "X$x" = "X$found_dir"; then
9816 if test -z "$haveit"; then
9817 ltrpathdirs
="$ltrpathdirs $found_dir"
9819 if test "$hardcode_direct" = yes; then
9820 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9822 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9823 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9825 for x
in $rpathdirs; do
9826 if test "X$x" = "X$found_dir"; then
9831 if test -z "$haveit"; then
9832 rpathdirs
="$rpathdirs $found_dir"
9836 for x
in $LDFLAGS $LIBICONV; do
9838 acl_save_prefix
="$prefix"
9839 prefix
="$acl_final_prefix"
9840 acl_save_exec_prefix
="$exec_prefix"
9841 exec_prefix
="$acl_final_exec_prefix"
9843 exec_prefix
="$acl_save_exec_prefix"
9844 prefix
="$acl_save_prefix"
9846 if test "X$x" = "X-L$found_dir"; then
9851 if test -z "$haveit"; then
9852 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9854 if test "$hardcode_minus_L" != no
; then
9855 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9857 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9863 if test "X$found_a" != "X"; then
9864 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9866 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9869 additional_includedir
=
9870 case "$found_dir" in
9872 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9873 additional_includedir
="$basedir/include"
9876 if test "X$additional_includedir" != "X"; then
9877 if test "X$additional_includedir" != "X/usr/include"; then
9879 if test "X$additional_includedir" = "X/usr/local/include"; then
9880 if test -n "$GCC"; then
9882 linux
*) haveit
=yes;;
9886 if test -z "$haveit"; then
9887 for x
in $CPPFLAGS $INCICONV; do
9889 acl_save_prefix
="$prefix"
9890 prefix
="$acl_final_prefix"
9891 acl_save_exec_prefix
="$exec_prefix"
9892 exec_prefix
="$acl_final_exec_prefix"
9894 exec_prefix
="$acl_save_exec_prefix"
9895 prefix
="$acl_save_prefix"
9897 if test "X$x" = "X-I$additional_includedir"; then
9902 if test -z "$haveit"; then
9903 if test -d "$additional_includedir"; then
9904 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9910 if test -n "$found_la"; then
9911 save_libdir
="$libdir"
9913 */* |
*\\*) .
"$found_la" ;;
9914 *) .
"./$found_la" ;;
9916 libdir
="$save_libdir"
9917 for dep
in $dependency_libs; do
9920 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9921 if test "X$additional_libdir" != "X/usr/lib"; then
9923 if test "X$additional_libdir" = "X/usr/local/lib"; then
9924 if test -n "$GCC"; then
9926 linux
*) haveit
=yes;;
9930 if test -z "$haveit"; then
9932 for x
in $LDFLAGS $LIBICONV; do
9934 acl_save_prefix
="$prefix"
9935 prefix
="$acl_final_prefix"
9936 acl_save_exec_prefix
="$exec_prefix"
9937 exec_prefix
="$acl_final_exec_prefix"
9939 exec_prefix
="$acl_save_exec_prefix"
9940 prefix
="$acl_save_prefix"
9942 if test "X$x" = "X-L$additional_libdir"; then
9947 if test -z "$haveit"; then
9948 if test -d "$additional_libdir"; then
9949 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9953 for x
in $LDFLAGS $LTLIBICONV; do
9955 acl_save_prefix
="$prefix"
9956 prefix
="$acl_final_prefix"
9957 acl_save_exec_prefix
="$exec_prefix"
9958 exec_prefix
="$acl_final_exec_prefix"
9960 exec_prefix
="$acl_save_exec_prefix"
9961 prefix
="$acl_save_prefix"
9963 if test "X$x" = "X-L$additional_libdir"; then
9968 if test -z "$haveit"; then
9969 if test -d "$additional_libdir"; then
9970 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9977 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9978 if test "$enable_rpath" != no
; then
9980 for x
in $rpathdirs; do
9981 if test "X$x" = "X$dir"; then
9986 if test -z "$haveit"; then
9987 rpathdirs
="$rpathdirs $dir"
9990 for x
in $ltrpathdirs; do
9991 if test "X$x" = "X$dir"; then
9996 if test -z "$haveit"; then
9997 ltrpathdirs
="$ltrpathdirs $dir"
10002 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10005 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10008 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10009 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10015 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10016 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10022 if test "X$rpathdirs" != "X"; then
10023 if test -n "$hardcode_libdir_separator"; then
10025 for found_dir
in $rpathdirs; do
10026 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10028 acl_save_libdir
="$libdir"
10030 eval flag
=\"$hardcode_libdir_flag_spec\"
10031 libdir
="$acl_save_libdir"
10032 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10034 for found_dir
in $rpathdirs; do
10035 acl_save_libdir
="$libdir"
10036 libdir
="$found_dir"
10037 eval flag
=\"$hardcode_libdir_flag_spec\"
10038 libdir
="$acl_save_libdir"
10039 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10043 if test "X$ltrpathdirs" != "X"; then
10044 for found_dir
in $ltrpathdirs; do
10045 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10055 am_save_CPPFLAGS
="$CPPFLAGS"
10057 for element
in $INCICONV; do
10059 for x
in $CPPFLAGS; do
10061 acl_save_prefix
="$prefix"
10062 prefix
="$acl_final_prefix"
10063 acl_save_exec_prefix
="$exec_prefix"
10064 exec_prefix
="$acl_final_exec_prefix"
10066 exec_prefix
="$acl_save_exec_prefix"
10067 prefix
="$acl_save_prefix"
10069 if test "X$x" = "X$element"; then
10074 if test -z "$haveit"; then
10075 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10081 $as_echo_n "checking for iconv... " >&6; }
10082 if test "${am_cv_func_iconv+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10086 am_cv_func_iconv
="no, consider installing GNU libiconv"
10088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 #include <stdlib.h>
10095 iconv_t cd = iconv_open("","");
10096 iconv(cd,NULL,NULL,NULL,NULL);
10102 if ac_fn_cxx_try_link
"$LINENO"; then :
10103 am_cv_func_iconv
=yes
10105 rm -f core conftest.err conftest.
$ac_objext \
10106 conftest
$ac_exeext conftest.
$ac_ext
10107 if test "$am_cv_func_iconv" != yes; then
10108 am_save_LIBS
="$LIBS"
10109 LIBS
="$LIBS $LIBICONV"
10110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112 #include <stdlib.h>
10117 iconv_t cd = iconv_open("","");
10118 iconv(cd,NULL,NULL,NULL,NULL);
10124 if ac_fn_cxx_try_link
"$LINENO"; then :
10125 am_cv_lib_iconv
=yes
10126 am_cv_func_iconv
=yes
10128 rm -f core conftest.err conftest.
$ac_objext \
10129 conftest
$ac_exeext conftest.
$ac_ext
10130 LIBS
="$am_save_LIBS"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10135 $as_echo "$am_cv_func_iconv" >&6; }
10136 if test "$am_cv_func_iconv" = yes; then
10138 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10141 if test "$am_cv_lib_iconv" = yes; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10143 $as_echo_n "checking how to link with libiconv... " >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10145 $as_echo "$LIBICONV" >&6; }
10147 CPPFLAGS
="$am_save_CPPFLAGS"
10154 if test "$am_cv_func_iconv" = yes; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10156 $as_echo_n "checking for iconv declaration... " >&6; }
10157 if test "${am_cv_proto_iconv+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10164 #include <stdlib.h>
10170 #if defined(__STDC__) || defined(__cplusplus)
10171 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10184 if ac_fn_cxx_try_compile
"$LINENO"; then :
10185 am_cv_proto_iconv_arg1
=""
10187 am_cv_proto_iconv_arg1
="const"
10189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10190 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);"
10193 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10195 }$am_cv_proto_iconv" >&5
10197 }$am_cv_proto_iconv" >&6; }
10199 cat >>confdefs.h
<<_ACEOF
10200 #define ICONV_CONST $am_cv_proto_iconv_arg1
10206 ac_cpp
='$CPP $CPPFLAGS'
10207 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10208 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10209 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10212 # Until we have in-tree GNU iconv:
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10218 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10219 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
10222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 #include <locale.h>
10233 if ac_fn_c_try_link
"$LINENO"; then :
10234 am_cv_val_LC_MESSAGES
=yes
10236 am_cv_val_LC_MESSAGES
=no
10238 rm -f core conftest.err conftest.
$ac_objext \
10239 conftest
$ac_exeext conftest.
$ac_ext
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10242 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10243 if test $am_cv_val_LC_MESSAGES = yes; then
10245 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10252 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10253 if test "${am_cv_langinfo_codeset+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 #include <langinfo.h>
10262 char* cs = nl_langinfo(CODESET);
10267 if ac_fn_c_try_link
"$LINENO"; then :
10268 am_cv_langinfo_codeset
=yes
10270 am_cv_langinfo_codeset
=no
10272 rm -f core conftest.err conftest.
$ac_objext \
10273 conftest
$ac_exeext conftest.
$ac_ext
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10277 $as_echo "$am_cv_langinfo_codeset" >&6; }
10278 if test $am_cv_langinfo_codeset = yes; then
10280 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10285 # We will need to find libiberty.h and ansidecl.h
10286 saved_CFLAGS
="$CFLAGS"
10287 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10288 saved_CXXFLAGS
="$CXXFLAGS"
10289 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10290 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10291 strsignal strstr stpcpy strverscmp \
10292 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10293 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
10295 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10297 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10298 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10299 $as_echo_n "(cached) " >&6
10301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10304 #define $ac_tr_decl 1
10306 #include "ansidecl.h"
10307 #include "system.h"
10313 char *(*pfn) = (char *(*)) $ac_func ;
10319 if ac_fn_c_try_compile
"$LINENO"; then :
10320 eval "gcc_cv_have_decl_$ac_func=yes"
10322 eval "gcc_cv_have_decl_$ac_func=no"
10324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10327 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10329 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10330 #define $ac_tr_decl 1
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10336 #define $ac_tr_decl 0
10344 for ac_func
in getrlimit setrlimit getrusage
10346 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10348 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10349 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10350 $as_echo_n "(cached) " >&6
10352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10355 #define $ac_tr_decl 1
10357 #include "ansidecl.h"
10358 #include "system.h"
10359 #ifdef HAVE_SYS_RESOURCE_H
10360 #include <sys/resource.h>
10368 char *(*pfn) = (char *(*)) $ac_func ;
10374 if ac_fn_c_try_compile
"$LINENO"; then :
10375 eval "gcc_cv_have_decl_$ac_func=yes"
10377 eval "gcc_cv_have_decl_$ac_func=no"
10379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10382 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10384 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10385 #define $ac_tr_decl 1
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10391 #define $ac_tr_decl 0
10399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10402 #include "ansidecl.h"
10403 #include "system.h"
10404 #ifdef HAVE_SYS_RESOURCE_H
10405 #include <sys/resource.h>
10416 if ac_fn_c_try_compile
"$LINENO"; then :
10420 $as_echo "#define rlim_t long" >>confdefs.h
10423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10425 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10426 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10427 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10428 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10429 for ac_func
in ldgetname
10431 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10433 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10434 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10435 $as_echo_n "(cached) " >&6
10437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10440 #define $ac_tr_decl 1
10442 #include "ansidecl.h"
10443 #include "system.h"
10444 #ifdef HAVE_LDFCN_H
10455 char *(*pfn) = (char *(*)) $ac_func ;
10461 if ac_fn_c_try_compile
"$LINENO"; then :
10462 eval "gcc_cv_have_decl_$ac_func=yes"
10464 eval "gcc_cv_have_decl_$ac_func=no"
10466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10469 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10471 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10472 #define $ac_tr_decl 1
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10478 #define $ac_tr_decl 0
10486 for ac_func
in times
10488 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10490 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10491 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10492 $as_echo_n "(cached) " >&6
10494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10497 #define $ac_tr_decl 1
10499 #include "ansidecl.h"
10500 #include "system.h"
10501 #ifdef HAVE_SYS_TIMES_H
10502 #include <sys/times.h>
10510 char *(*pfn) = (char *(*)) $ac_func ;
10516 if ac_fn_c_try_compile
"$LINENO"; then :
10517 eval "gcc_cv_have_decl_$ac_func=yes"
10519 eval "gcc_cv_have_decl_$ac_func=no"
10521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10524 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10526 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10527 #define $ac_tr_decl 1
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10533 #define $ac_tr_decl 0
10541 for ac_func
in sigaltstack
10543 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10545 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10546 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10547 $as_echo_n "(cached) " >&6
10549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10552 #define $ac_tr_decl 1
10554 #include "ansidecl.h"
10555 #include "system.h"
10556 #include <signal.h>
10563 char *(*pfn) = (char *(*)) $ac_func ;
10569 if ac_fn_c_try_compile
"$LINENO"; then :
10570 eval "gcc_cv_have_decl_$ac_func=yes"
10572 eval "gcc_cv_have_decl_$ac_func=no"
10574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10577 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10579 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10580 #define $ac_tr_decl 1
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10586 #define $ac_tr_decl 0
10594 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10597 ac_cpp
='$CXXCPP $CPPFLAGS'
10598 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10602 for ac_func
in madvise
10604 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10606 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10607 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10608 $as_echo_n "(cached) " >&6
10610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10613 #define $ac_tr_decl 1
10615 #include "ansidecl.h"
10616 #include "system.h"
10623 char *(*pfn) = (char *(*)) $ac_func ;
10629 if ac_fn_cxx_try_compile
"$LINENO"; then :
10630 eval "gcc_cv_have_decl_$ac_func=yes"
10632 eval "gcc_cv_have_decl_$ac_func=no"
10634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10637 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10639 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10640 #define $ac_tr_decl 1
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10646 #define $ac_tr_decl 0
10654 ac_cpp
='$CPP $CPPFLAGS'
10655 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10660 # More time-related stuff.
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10662 $as_echo_n "checking for struct tms... " >&6; }
10663 if test "${ac_cv_struct_tms+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10670 #include "ansidecl.h"
10671 #include "system.h"
10672 #ifdef HAVE_SYS_TIMES_H
10673 #include <sys/times.h>
10684 if ac_fn_c_try_compile
"$LINENO"; then :
10685 ac_cv_struct_tms
=yes
10687 ac_cv_struct_tms
=no
10689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10692 $as_echo "$ac_cv_struct_tms" >&6; }
10693 if test $ac_cv_struct_tms = yes; then
10695 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10699 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10700 # revisit after autoconf 2.50.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10702 $as_echo_n "checking for clock_t... " >&6; }
10703 if test "${gcc_cv_type_clock_t+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 #include "ansidecl.h"
10711 #include "system.h"
10721 if ac_fn_c_try_compile
"$LINENO"; then :
10722 gcc_cv_type_clock_t
=yes
10724 gcc_cv_type_clock_t
=no
10726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10729 $as_echo "$gcc_cv_type_clock_t" >&6; }
10730 if test $gcc_cv_type_clock_t = yes; then
10732 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10736 # Check if F_SETLKW is supported by fcntl.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10738 $as_echo_n "checking for F_SETLKW... " >&6; }
10739 if test "${ac_cv_f_setlkw+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10756 return fcntl (1, F_SETLKW, &fl);
10761 if ac_fn_c_try_compile
"$LINENO"; then :
10766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10769 $as_echo "$ac_cv_f_setlkw" >&6; }
10770 if test $ac_cv_f_setlkw = yes; then
10772 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10776 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10777 CFLAGS
="$saved_CFLAGS"
10778 CXXFLAGS
="$saved_CXXFLAGS"
10780 # mkdir takes a single argument on some systems.
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10782 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10783 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10784 $as_echo_n "(cached) " >&6
10786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10789 #include <sys/types.h>
10790 #ifdef HAVE_SYS_STAT_H
10791 # include <sys/stat.h>
10793 #ifdef HAVE_UNISTD_H
10794 # include <unistd.h>
10796 #ifdef HAVE_DIRECT_H
10797 # include <direct.h>
10807 if ac_fn_c_try_compile
"$LINENO"; then :
10808 gcc_cv_mkdir_takes_one_arg
=no
10810 gcc_cv_mkdir_takes_one_arg
=yes
10812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10815 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10816 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10818 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10829 # With Setjmp/Longjmp based exception handling.
10830 # Check whether --enable-sjlj-exceptions was given.
10831 if test "${enable_sjlj_exceptions+set}" = set; then :
10832 enableval
=$enable_sjlj_exceptions; case $target in
10834 if test $enableval != yes; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10836 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10841 force_sjlj_exceptions
=yes
10845 force_sjlj_exceptions
=yes
10849 force_sjlj_exceptions
=no
10854 if test $force_sjlj_exceptions = yes; then
10855 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10857 cat >>confdefs.h
<<_ACEOF
10858 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10863 # --------------------------------------------------------
10864 # Build, host, and target specific configuration fragments
10865 # --------------------------------------------------------
10867 # Collect build-machine-specific information.
10868 .
${srcdir}/config.build
10870 # Collect host-machine-specific information.
10871 .
${srcdir}/config.
host
10875 # Collect target-machine-specific information.
10876 .
${srcdir}/config.gcc
10878 extra_objs
="${host_extra_objs} ${extra_objs}"
10879 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10881 # Default the target-machine variables that were not explicitly set.
10882 if test x
"$tm_file" = x
10883 then tm_file
=$cpu_type/$cpu_type.h
; fi
10885 if test x
"$extra_headers" = x
10886 then extra_headers
=; fi
10888 if test x
$md_file = x
10889 then md_file
=$cpu_type/$cpu_type.md
; fi
10891 if test x
$out_file = x
10892 then out_file
=$cpu_type/$cpu_type.c
; fi
10894 if test x
"$tmake_file" = x
10895 then tmake_file
=$cpu_type/t-
$cpu_type
10898 # Support --enable-initfini-array.
10899 if test x
$enable_initfini_array != xno
; then
10900 tm_file
="${tm_file} initfini-array.h"
10903 if test x
"$dwarf2" = xyes
10904 then tm_file
="$tm_file tm-dwarf2.h"
10907 # Say what files are being used for the output code and MD file.
10908 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10909 echo "Using \`$srcdir/config/$md_file' as machine description file."
10911 # If any of the xm_file variables contain nonexistent files, warn
10912 # about them and drop them.
10915 for x
in $build_xm_file; do
10916 if test -f $srcdir/config
/$x
10918 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10919 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10922 build_xm_file
="$bx"
10925 for x
in $host_xm_file; do
10926 if test -f $srcdir/config
/$x
10928 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10929 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10935 for x
in $xm_file; do
10936 if test -f $srcdir/config
/$x
10938 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10939 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10945 for f
in $tm_file; do
10948 if test $count = ax
; then
10949 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10951 echo "Using the following target machine macro files:"
10952 for f
in $tm_file; do
10953 echo " $srcdir/config/$f"
10957 if test x
$need_64bit_hwint = xyes
; then
10959 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10963 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10965 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10969 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
10971 cat >>confdefs.h
<<_ACEOF
10972 #define HAVE_GNU_LD $gnu_ld_bool
10976 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
10978 cat >>confdefs.h
<<_ACEOF
10979 #define HAVE_GNU_AS $gnu_as_bool
10984 for f
in $host_xm_file; do
10987 if test $count = a
; then
10989 elif test $count = ax
; then
10990 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10992 echo "Using the following host machine macro files:"
10993 for f
in $host_xm_file; do
10994 echo " $srcdir/config/$f"
10997 echo "Using ${out_host_hook_obj} for host machine hooks."
10999 if test "$host_xm_file" != "$build_xm_file"; then
11001 for f
in $build_xm_file; do
11004 if test $count = a
; then
11006 elif test $count = ax
; then
11007 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11009 echo "Using the following build machine macro files:"
11010 for f
in $build_xm_file; do
11011 echo " $srcdir/config/$f"
11016 if test -n "$configured_native_system_header_dir"; then
11017 native_system_header_dir
=$configured_native_system_header_dir
11019 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11023 powerpc
*-*-darwin*)
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11025 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11026 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11032 #include <sys/cdefs.h>
11033 #include <sys/signal.h>
11034 #include <ucontext.h>
11035 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11038 if ac_fn_c_try_compile
"$LINENO"; then :
11039 gcc_cv_mcontext_underscores
=no
11041 gcc_cv_mcontext_underscores
=yes
11043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11046 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11047 if test $gcc_cv_mcontext_underscores = yes; then
11049 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11059 # Check if a valid thread package
11060 case ${enable_threads} in
11063 target_thread_file
='single'
11067 target_thread_file
='single'
11069 aix | dce | lynx | mipssde | posix | rtems | \
11070 single | tpf | vxworks | win32
)
11071 target_thread_file
=${enable_threads}
11074 echo "${enable_threads} is an unknown thread package" 1>&2
11079 if test x
${thread_file} = x
; then
11080 # No thread file set by target-specific clauses in config.gcc,
11081 # so use file chosen by default logic above
11082 thread_file
=${target_thread_file}
11090 if test x
$enable___cxa_atexit = xyes || \
11091 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11092 if test x
$host = x
$target; then
11094 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11095 # keyed to flag_use_cxa_atexit
11100 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11101 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11104 echo "__cxa_atexit can't be enabled on this target"
11110 # We can't check for __cxa_atexit when building a cross, so assume
11114 if test x
$use_cxa_atexit = xyes
; then
11116 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11121 # Look for a file containing extra machine modes.
11122 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11123 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11126 cat >>confdefs.h
<<_ACEOF
11127 #define EXTRA_MODES_FILE "config/$extra_modes"
11132 # Convert extra_options into a form suitable for Makefile use.
11135 for f
in $extra_options; do
11136 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11137 all_opt_files
="$all_opt_files $srcdir/config/$f"
11141 # auto-host.h is the file containing items generated by autoconf and is
11142 # the first file included by config.h.
11143 # If host=build, it is correct to have bconfig include auto-host.h
11144 # as well. If host!=build, we are in error and need to do more
11145 # work to find out the build config parameters.
11146 if test x
$host = x
$build
11148 build_auto
=auto-host.h
11150 # We create a subdir, then run autoconf in the subdir.
11151 # To prevent recursion we set host and build for the new
11152 # invocation of configure to the build for this invocation
11159 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11160 *) realsrcdir
=..
/${srcdir};;
11162 saved_CFLAGS
="${CFLAGS}"
11163 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11164 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11165 ${realsrcdir}/configure \
11166 --enable-languages=${enable_languages-all} \
11167 --target=$target_alias --host=$build_alias --build=$build_alias
11168 CFLAGS
="${saved_CFLAGS}"
11170 # We just finished tests for the build machine, so rename
11171 # the file auto-build.h in the gcc directory.
11172 mv auto-host.h ..
/auto-build.h
11175 build_auto
=auto-build.h
11179 tm_file
="${tm_file} defaults.h"
11180 tm_p_file
="${tm_p_file} tm-preds.h"
11181 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11182 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11183 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11184 # put this back in temporarily.
11185 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11191 # Compile in configure arguments.
11192 if test -f configargs.h
; then
11193 # Being re-configured.
11194 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11195 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11197 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11200 # Double all backslashes and backslash all quotes to turn
11201 # gcc_config_arguments into a C string.
11202 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11203 $gcc_config_arguments
11205 gcc_config_arguments_str
=`cat conftest.out`
11208 cat > configargs.h
<<EOF
11209 /* Generated automatically. */
11210 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11211 static const char thread_model[] = "$thread_file";
11213 static const struct {
11214 const char *name, *value;
11215 } configure_default_options[] = $configure_default_options;
11218 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11219 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11220 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11221 if test -f $srcdir/REVISION
; then
11222 gcc_REVISION
=`cat $srcdir/REVISION`
11226 cat > plugin-version.h
<<EOF
11227 #include "configargs.h"
11229 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11230 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11231 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11232 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11234 static char basever[] = "$gcc_BASEVER";
11235 static char datestamp[] = "$gcc_DATESTAMP";
11236 static char devphase[] = "$gcc_DEVPHASE";
11237 static char revision[] = "$gcc_REVISION";
11239 /* FIXME plugins: We should make the version information more precise.
11240 One way to do is to add a checksum. */
11242 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11243 devphase, revision,
11244 configuration_arguments};
11247 # Internationalization
11248 # If we haven't got the data from the intl directory,
11249 # assume NLS is disabled.
11258 if test -f ..
/intl
/config.intl
; then
11259 . ..
/intl
/config.intl
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11262 $as_echo_n "checking whether NLS is requested... " >&6; }
11263 if test x
"$USE_NLS" != xyes
; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 $as_echo "yes" >&6; }
11270 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11274 $as_echo_n "checking for catalogs to be installed... " >&6; }
11275 # Look for .po and .gmo files in the source directory.
11278 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11279 # If there aren't any .gmo files the shell will give us the
11280 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11282 case "$cat" in *\
**)
11285 # The quadruple backslash is collapsed to a double backslash
11286 # by the backticks, then collapsed again by the double quotes,
11287 # leaving us with one backslash in the sed expression (right
11288 # before the dot that mustn't act as a wildcard).
11289 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11290 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11291 # The user is allowed to set LINGUAS to a list of languages to
11292 # install catalogs for. If it's empty that means "all of them."
11293 if test "x$LINGUAS" = x
; then
11294 CATALOGS
="$CATALOGS $cat"
11295 XLINGUAS
="$XLINGUAS $lang"
11297 case "$LINGUAS" in *$lang*)
11298 CATALOGS
="$CATALOGS $cat"
11299 XLINGUAS
="$XLINGUAS $lang"
11304 LINGUAS
="$XLINGUAS"
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11306 $as_echo "$LINGUAS" >&6; }
11319 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11320 # -liconv on the link line twice.
11321 case "$LIBINTL" in *$LIBICONV*)
11325 # Check whether --enable-secureplt was given.
11326 if test "${enable_secureplt+set}" = set; then :
11327 enableval
=$enable_secureplt;
11331 # Check whether --enable-leading-mingw64-underscores was given.
11332 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11333 enableval
=$enable_leading_mingw64_underscores;
11336 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11338 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11342 # Check whether --enable-cld was given.
11343 if test "${enable_cld+set}" = set; then :
11344 enableval
=$enable_cld;
11350 # Check whether --enable-frame-pointer was given.
11351 if test "${enable_frame_pointer+set}" = set; then :
11352 enableval
=$enable_frame_pointer;
11356 linux
* | darwin
[8912]*)
11357 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11359 enable_frame_pointer
=no
11362 enable_frame_pointer
=yes
11369 # Windows32 Registry support for specifying GCC installation paths.
11370 # Check whether --enable-win32-registry was given.
11371 if test "${enable_win32_registry+set}" = set; then :
11372 enableval
=$enable_win32_registry;
11377 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11378 if test "x$enable_win32_registry" != xno
; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11380 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11381 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11384 ac_func_search_save_LIBS
=$LIBS
11385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11394 char RegOpenKeyExA ();
11398 return RegOpenKeyExA ();
11403 for ac_lib
in '' advapi32
; do
11404 if test -z "$ac_lib"; then
11405 ac_res
="none required"
11408 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11410 if ac_fn_c_try_link
"$LINENO"; then :
11411 ac_cv_search_RegOpenKeyExA
=$ac_res
11413 rm -f core conftest.err conftest.
$ac_objext \
11415 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11419 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11422 ac_cv_search_RegOpenKeyExA
=no
11424 rm conftest.
$ac_ext
11425 LIBS
=$ac_func_search_save_LIBS
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11428 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11429 ac_res
=$ac_cv_search_RegOpenKeyExA
11430 if test "$ac_res" != no
; then :
11431 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11434 enable_win32_registry
=no
11439 if test "x$enable_win32_registry" != xno
; then
11441 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11444 if test "x$enable_win32_registry" != xyes \
11445 && test "x$enable_win32_registry" != x
; then
11447 cat >>confdefs.h
<<_ACEOF
11448 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11456 # Get an absolute path to the GCC top-level source directory
11457 holddir
=`${PWDCMD-pwd}`
11459 topdir
=`${PWDCMD-pwd}`
11462 # Conditionalize the makefile for this host machine.
11464 for f
in ${host_xmake_file}
11466 if test -f ${srcdir}/config
/$f
11468 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11472 # Conditionalize the makefile for this target machine.
11474 for f
in ${tmake_file}
11476 if test -f ${srcdir}/config
/$f
11478 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11481 tmake_file
="${tmake_file_}"
11483 out_object_file
=`basename $out_file .c`.o
11484 common_out_object_file
=`basename $common_out_file .c`.o
11486 tm_file_list
="options.h"
11487 tm_include_list
="options.h insn-constants.h"
11488 for f
in $tm_file; do
11491 f
=`echo $f | sed 's/^..//'`
11492 tm_file_list
="${tm_file_list} $f"
11493 tm_include_list
="${tm_include_list} $f"
11496 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11497 tm_include_list
="${tm_include_list} $f"
11500 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11501 tm_include_list
="${tm_include_list} config/$f"
11508 for f
in $tm_p_file; do
11511 tm_p_file_list
="${tm_p_file_list} $f"
11512 tm_p_include_list
="${tm_p_include_list} $f"
11515 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11516 tm_p_include_list
="${tm_p_include_list} config/$f"
11522 for f
in $xm_file; do
11525 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11526 xm_include_list
="${xm_include_list} $f"
11529 xm_file_list
="${xm_file_list} $f"
11530 xm_include_list
="${xm_include_list} $f"
11533 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11534 xm_include_list
="${xm_include_list} config/$f"
11540 host_xm_include_list
=
11541 for f
in $host_xm_file; do
11544 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11545 host_xm_include_list
="${host_xm_include_list} $f"
11548 host_xm_file_list
="${host_xm_file_list} $f"
11549 host_xm_include_list
="${host_xm_include_list} $f"
11552 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11553 host_xm_include_list
="${host_xm_include_list} config/$f"
11558 build_xm_file_list
=
11559 for f
in $build_xm_file; do
11562 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11563 build_xm_include_list
="${build_xm_include_list} $f"
11565 auto-build.h | auto-host.h
)
11566 build_xm_file_list
="${build_xm_file_list} $f"
11567 build_xm_include_list
="${build_xm_include_list} $f"
11570 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11571 build_xm_include_list
="${build_xm_include_list} config/$f"
11576 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11577 # cross-compiler which does not use the native headers and libraries.
11578 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11581 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11583 if test "x$with_build_sysroot" != x
; then
11584 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11586 # This value is used, even on a native system, because
11587 # CROSS_SYSTEM_HEADER_DIR is just
11588 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11589 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11592 if test x
$host != x
$target
11594 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11596 SYSTEM_HEADER_DIR
=$build_system_header_dir
11597 case "$host","$target" in
11598 # Darwin crosses can use the host system's libraries and headers,
11599 # because of the fat library support. Of course, it must be the
11600 # same version of Darwin on both sides. Allow the user to
11601 # just say --target=foo-darwin without a version number to mean
11602 # "the version on this system".
11603 *-*-darwin*,*-*-darwin*)
11604 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11605 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11606 if test $hostos = $targetos -o $targetos = darwin
; then
11608 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11613 i?
86-*-*,x86_64-
*-* \
11614 | powerpc
*-*-*,powerpc64
*-*-*)
11615 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11620 if test "x$with_headers" = x
; then
11627 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11628 SYSTEM_HEADER_DIR
=$build_system_header_dir
11631 # If this is a cross-compiler that does not
11632 # have its own set of headers then define
11635 # If this is using newlib, without having the headers available now,
11636 # then define inhibit_libc in LIBGCC2_CFLAGS.
11637 # This prevents libgcc2 from containing any code which requires libc
11639 : ${inhibit_libc=false}
11640 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11641 test x
$with_newlib = xyes
; } &&
11642 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11647 # When building gcc with a cross-compiler, we need to adjust things so
11648 # that the generator programs are still built with the native compiler.
11649 # Also, we cannot run fixincludes.
11651 # These are the normal (build=host) settings:
11652 CC_FOR_BUILD
='$(CC)'
11653 CXX_FOR_BUILD
='$(CXX)'
11654 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11655 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11656 BUILD_LDFLAGS
='$(LDFLAGS)'
11657 STMP_FIXINC
=stmp-fixinc
11659 # And these apply if build != host, or we are generating coverage data
11660 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11662 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11663 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11666 # Expand extra_headers to include complete path.
11667 # This substitutes for lots of t-* files.
11668 extra_headers_list
=
11669 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11670 for file in ${extra_headers} ; do
11671 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11674 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11675 if test x
"$use_gcc_tgmath" = xyes
11676 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11679 # Define collect2 in Makefile.
11680 case $host_can_use_collect2 in
11682 *) collect2
='collect2$(exeext)' ;;
11686 # Add a definition of USE_COLLECT2 if system wants one.
11687 case $use_collect2 in
11688 no
) use_collect2
= ;;
11691 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11692 xm_defines
="${xm_defines} USE_COLLECT2"
11693 case $host_can_use_collect2 in
11695 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11702 cat >>confdefs.h
<<_ACEOF
11703 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11707 # ---------------------------
11708 # Assembler & linker features
11709 # ---------------------------
11711 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11712 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11713 # However when ld-new is first executed from the build tree, libtool will
11714 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11715 # to the build tree. While doing this we need to use the previous-stage
11716 # linker, or we have an infinite loop. The presence of a shell script as
11717 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11718 # the gcc/collect-ld script. So we need to know how libtool works, or
11719 # exec-tool will fail.
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11725 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11730 macro_version
='2.2.7a'
11731 macro_revision
='1.3134'
11745 ltmain
="$ac_aux_dir/ltmain.sh"
11747 # Backslashify metacharacters that are still active within
11748 # double-quoted strings.
11749 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11751 # Same as above, but do not quote variable references.
11752 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11754 # Sed substitution to delay expansion of an escaped shell variable in a
11755 # double_quote_subst'ed string.
11756 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11758 # Sed substitution to delay expansion of an escaped single quote.
11759 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11761 # Sed substitution to avoid accidental globbing in evaled expressions
11762 no_glob_subst
='s/\*/\\\*/g'
11764 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11765 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11766 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11769 $as_echo_n "checking how to print strings... " >&6; }
11770 # Test print first, because it will be a builtin if present.
11771 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11772 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11774 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11777 # Use this function as a fallback that always works.
11778 func_fallback_echo ()
11780 eval 'cat <<_LTECHO_EOF
11784 ECHO='func_fallback_echo
'
11787 # func_echo_all arg...
11788 # Invoke $ECHO with all args, space-separated.
11795 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11796 $as_echo "printf" >&6; } ;;
11797 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11798 $as_echo "print -r" >&6; } ;;
11799 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11800 $as_echo "cat" >&6; } ;;
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11817 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11818 if test "${ac_cv_path_SED+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11822 for ac_i in 1 2 3 4 5 6 7; do
11823 ac_script="$ac_script$as_nl$ac_script"
11825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11826 { ac_script=; unset ac_script;}
11827 if test -z "$SED"; then
11828 ac_path_SED_found=false
11829 # Loop through the user's path and
test for each of PROGNAME-LIST
11830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11831 for as_dir
in $PATH
11834 test -z "$as_dir" && as_dir
=.
11835 for ac_prog
in sed gsed
; do
11836 for ac_exec_ext
in '' $ac_executable_extensions; do
11837 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11838 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11839 # Check for GNU ac_path_SED and select it if it is found.
11840 # Check for GNU $ac_path_SED
11841 case `"$ac_path_SED" --version 2>&1` in
11843 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11846 $as_echo_n 0123456789 >"conftest.in"
11849 cat "conftest.in" "conftest.in" >"conftest.tmp"
11850 mv "conftest.tmp" "conftest.in"
11851 cp "conftest.in" "conftest.nl"
11852 $as_echo '' >> "conftest.nl"
11853 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11854 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11855 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11856 if test $ac_count -gt ${ac_path_SED_max-0}; then
11857 # Best one so far, save it but keep looking for a better one
11858 ac_cv_path_SED
="$ac_path_SED"
11859 ac_path_SED_max
=$ac_count
11861 # 10*(2^10) chars as input seems more than enough
11862 test $ac_count -gt 10 && break
11864 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11867 $ac_path_SED_found && break 3
11872 if test -z "$ac_cv_path_SED"; then
11873 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11876 ac_cv_path_SED
=$SED
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11881 $as_echo "$ac_cv_path_SED" >&6; }
11882 SED
="$ac_cv_path_SED"
11885 test -z "$SED" && SED
=sed
11886 Xsed
="$SED -e 1s/^X//"
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11899 $as_echo_n "checking for fgrep... " >&6; }
11900 if test "${ac_cv_path_FGREP+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11903 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11904 then ac_cv_path_FGREP
="$GREP -F"
11906 if test -z "$FGREP"; then
11907 ac_path_FGREP_found
=false
11908 # Loop through the user's path and test for each of PROGNAME-LIST
11909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11910 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11913 test -z "$as_dir" && as_dir
=.
11914 for ac_prog
in fgrep
; do
11915 for ac_exec_ext
in '' $ac_executable_extensions; do
11916 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11917 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11918 # Check for GNU ac_path_FGREP and select it if it is found.
11919 # Check for GNU $ac_path_FGREP
11920 case `"$ac_path_FGREP" --version 2>&1` in
11922 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11925 $as_echo_n 0123456789 >"conftest.in"
11928 cat "conftest.in" "conftest.in" >"conftest.tmp"
11929 mv "conftest.tmp" "conftest.in"
11930 cp "conftest.in" "conftest.nl"
11931 $as_echo 'FGREP' >> "conftest.nl"
11932 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11933 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11934 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11935 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11936 # Best one so far, save it but keep looking for a better one
11937 ac_cv_path_FGREP
="$ac_path_FGREP"
11938 ac_path_FGREP_max
=$ac_count
11940 # 10*(2^10) chars as input seems more than enough
11941 test $ac_count -gt 10 && break
11943 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11946 $ac_path_FGREP_found && break 3
11951 if test -z "$ac_cv_path_FGREP"; then
11952 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11955 ac_cv_path_FGREP
=$FGREP
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11961 $as_echo "$ac_cv_path_FGREP" >&6; }
11962 FGREP
="$ac_cv_path_FGREP"
11965 test -z "$GREP" && GREP
=grep
11985 # Check whether --with-gnu-ld was given.
11986 if test "${with_gnu_ld+set}" = set; then :
11987 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11993 if test "$GCC" = yes; then
11994 # Check if gcc -print-prog-name=ld gives a path.
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11996 $as_echo_n "checking for ld used by $CC... " >&6; }
11999 # gcc leaves a trailing carriage return which upsets mingw
12000 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12002 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12005 # Accept absolute paths.
12007 re_direlt
='/[^/][^/]*/\.\./'
12008 # Canonicalize the pathname of ld
12009 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12010 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12011 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12013 test -z "$LD" && LD
="$ac_prog"
12016 # If it fails, then pretend we aren't using GCC.
12020 # If it is relative, then search for the first ld in PATH.
12021 with_gnu_ld
=unknown
12024 elif test "$with_gnu_ld" = yes; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12026 $as_echo_n "checking for GNU ld... " >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12029 $as_echo_n "checking for non-GNU ld... " >&6; }
12031 if test "${lt_cv_path_LD+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
12034 if test -z "$LD"; then
12035 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12036 for ac_dir
in $PATH; do
12038 test -z "$ac_dir" && ac_dir
=.
12039 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12040 lt_cv_path_LD
="$ac_dir/$ac_prog"
12041 # Check to see if the program is GNU ld. I'd rather use --version,
12042 # but apparently some variants of GNU ld only accept -v.
12043 # Break only if it was the GNU/non-GNU ld that we prefer.
12044 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12045 *GNU
* |
*'with BFD'*)
12046 test "$with_gnu_ld" != no
&& break
12049 test "$with_gnu_ld" != yes && break
12056 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12060 LD
="$lt_cv_path_LD"
12061 if test -n "$LD"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12063 $as_echo "$LD" >&6; }
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12068 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12070 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12071 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12075 case `$LD -v 2>&1 </dev/null` in
12076 *GNU
* |
*'with BFD'*)
12077 lt_cv_prog_gnu_ld
=yes
12080 lt_cv_prog_gnu_ld
=no
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12085 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12086 with_gnu_ld
=$lt_cv_prog_gnu_ld
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12097 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12098 if test "${lt_cv_path_NM+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12101 if test -n "$NM"; then
12102 # Let the user override the test.
12103 lt_cv_path_NM
="$NM"
12105 lt_nm_to_check
="${ac_tool_prefix}nm"
12106 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12107 lt_nm_to_check
="$lt_nm_to_check nm"
12109 for lt_tmp_nm
in $lt_nm_to_check; do
12110 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12111 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12113 test -z "$ac_dir" && ac_dir
=.
12114 tmp_nm
="$ac_dir/$lt_tmp_nm"
12115 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12116 # Check to see if the nm accepts a BSD-compat flag.
12117 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12118 # nm: unknown option "B" ignored
12119 # Tru64's nm complains that /dev/null is an invalid object file
12120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12121 */dev
/null
* |
*'Invalid file or object type'*)
12122 lt_cv_path_NM
="$tmp_nm -B"
12126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12128 lt_cv_path_NM
="$tmp_nm -p"
12132 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12133 continue # so that we can try to find one that supports BSD flags
12142 : ${lt_cv_path_NM=no}
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12146 $as_echo "$lt_cv_path_NM" >&6; }
12147 if test "$lt_cv_path_NM" != "no"; then
12148 NM
="$lt_cv_path_NM"
12150 # Didn't find any BSD compatible name lister, look for dumpbin.
12151 if test -n "$DUMPBIN"; then :
12152 # Let the user override the test.
12154 if test -n "$ac_tool_prefix"; then
12155 for ac_prog
in dumpbin
"link -dump"
12157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12164 if test -n "$DUMPBIN"; then
12165 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12168 for as_dir
in $PATH
12171 test -z "$as_dir" && as_dir
=.
12172 for ac_exec_ext
in '' $ac_executable_extensions; do
12173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12174 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 DUMPBIN
=$ac_cv_prog_DUMPBIN
12185 if test -n "$DUMPBIN"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12187 $as_echo "$DUMPBIN" >&6; }
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12194 test -n "$DUMPBIN" && break
12197 if test -z "$DUMPBIN"; then
12198 ac_ct_DUMPBIN
=$DUMPBIN
12199 for ac_prog
in dumpbin
"link -dump"
12201 # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy
$ac_prog; ac_word
=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12208 if test -n "$ac_ct_DUMPBIN"; then
12209 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12212 for as_dir
in $PATH
12215 test -z "$as_dir" && as_dir
=.
12216 for ac_exec_ext
in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12229 if test -n "$ac_ct_DUMPBIN"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12231 $as_echo "$ac_ct_DUMPBIN" >&6; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12238 test -n "$ac_ct_DUMPBIN" && break
12241 if test "x$ac_ct_DUMPBIN" = x
; then
12244 case $cross_compiling:$ac_tool_warned in
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned
=yes ;;
12250 DUMPBIN
=$ac_ct_DUMPBIN
12254 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12256 DUMPBIN
="$DUMPBIN -symbols"
12264 if test "$DUMPBIN" != ":"; then
12268 test -z "$NM" && NM
=nm
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12276 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12277 if test "${lt_cv_nm_interface+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12280 lt_cv_nm_interface
="BSD nm"
12281 echo "int some_variable = 0;" > conftest.
$ac_ext
12282 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12283 (eval "$ac_compile" 2>conftest.err
)
12284 cat conftest.err
>&5
12285 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12286 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12287 cat conftest.err
>&5
12288 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12289 cat conftest.out
>&5
12290 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12291 lt_cv_nm_interface
="MS dumpbin"
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12296 $as_echo "$lt_cv_nm_interface" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12299 $as_echo_n "checking whether ln -s works... " >&6; }
12301 if test "$LN_S" = "ln -s"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12306 $as_echo "no, using $LN_S" >&6; }
12309 # find the maximum length of command line arguments
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12311 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12312 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12320 # On DJGPP, this test can blow up pretty badly due to problems in libc
12321 # (any single argument exceeding 2000 bytes causes a buffer overrun
12322 # during glob expansion). Even if it were fixed, the result of this
12323 # check would be larger than it should be.
12324 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12328 # Under GNU Hurd, this test is not required because there is
12329 # no limit to the length of command line arguments.
12330 # Libtool will interpret -1 as no limit whatsoever
12331 lt_cv_sys_max_cmd_len
=-1;
12334 cygwin
* | mingw
* | cegcc
*)
12335 # On Win9x/ME, this test blows up -- it succeeds, but takes
12336 # about 5 minutes as the teststring grows exponentially.
12337 # Worse, since 9x/ME are not pre-emptively multitasking,
12338 # you end up with a "frozen" computer, even though with patience
12339 # the test eventually succeeds (with a max line length of 256k).
12340 # Instead, let's just punt: use the minimum linelength reported by
12341 # all of the supported platforms: 8192 (on NT/2K/XP).
12342 lt_cv_sys_max_cmd_len
=8192;
12346 # On MiNT this can take a long time and run out of memory.
12347 lt_cv_sys_max_cmd_len
=8192;
12351 # On AmigaOS with pdksh, this test takes hours, literally.
12352 # So we just punt and use a minimum line length of 8192.
12353 lt_cv_sys_max_cmd_len
=8192;
12356 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12357 # This has been around since 386BSD, at least. Likely further.
12358 if test -x /sbin
/sysctl
; then
12359 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12360 elif test -x /usr
/sbin
/sysctl
; then
12361 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12363 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12365 # And add a safety zone
12366 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12367 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12371 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12372 lt_cv_sys_max_cmd_len
=196608
12376 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12377 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12378 # nice to cause kernel panics so lets avoid the loop below.
12379 # First set a reasonable default.
12380 lt_cv_sys_max_cmd_len
=16384
12382 if test -x /sbin
/sysconfig
; then
12383 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12384 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12389 lt_cv_sys_max_cmd_len
=102400
12391 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12392 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12393 if test -n "$kargmax"; then
12394 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12396 lt_cv_sys_max_cmd_len
=32768
12400 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12401 if test -n "$lt_cv_sys_max_cmd_len"; then
12402 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12403 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12405 # Make teststring a little bigger before we do anything with it.
12406 # a 1K string should be a reasonable start.
12407 for i
in 1 2 3 4 5 6 7 8 ; do
12408 teststring
=$teststring$teststring
12410 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12411 # If test is not a shell built-in, we'll probably end up computing a
12412 # maximum length that is only half of the actual maximum length, but
12414 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12415 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12416 test $i != 17 # 1/2 MB should be enough
12419 teststring
=$teststring$teststring
12421 # Only check the string length outside the loop.
12422 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12424 # Add a significant safety factor because C++ compilers can tack on
12425 # massive amounts of additional arguments before passing them to the
12426 # linker. It appears as though 1/2 is a usable value.
12427 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12434 if test -n $lt_cv_sys_max_cmd_len ; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12436 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12439 $as_echo "none" >&6; }
12441 max_cmd_len
=$lt_cv_sys_max_cmd_len
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12453 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12454 # Try some XSI features
12456 ( _lt_dummy
="a/b/c"
12457 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12459 && eval 'test $(( 1 + 1 )) -eq 2 \
12460 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12463 $as_echo "$xsi_shell" >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12467 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12469 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12471 && lt_shell_append=yes
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12473 $as_echo "$lt_shell_append" >&6; }
12476 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12486 # test EBCDIC or ASCII
12487 case `echo X|tr X '\101'` in
12488 A) # ASCII based system
12489 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12490 lt_SP2NL='tr \040 \012'
12491 lt_NL2SP='tr \015\012 \040\040'
12493 *) # EBCDIC based system
12494 lt_SP2NL='tr \100 \n'
12495 lt_NL2SP='tr \r\n \100\100'
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12508 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12509 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12510 $as_echo_n "(cached
) " >&6
12512 lt_cv_ld_reload_flag='-r'
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12515 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12516 reload_flag=$lt_cv_ld_reload_flag
12517 case $reload_flag in
12519 *) reload_flag=" $reload_flag" ;;
12521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12524 if test "$GCC" = yes; then
12525 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12540 if test -n "$ac_tool_prefix"; then
12541 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12542 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12544 $as_echo_n "checking
for $ac_word...
" >&6; }
12545 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12546 $as_echo_n "(cached
) " >&6
12548 if test -n "$OBJDUMP"; then
12549 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12568 OBJDUMP=$ac_cv_prog_OBJDUMP
12569 if test -n "$OBJDUMP"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12571 $as_echo "$OBJDUMP" >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12574 $as_echo "no
" >&6; }
12579 if test -z "$ac_cv_prog_OBJDUMP"; then
12580 ac_ct_OBJDUMP=$OBJDUMP
12581 # Extract the first word of "objdump
", so it can be a program name with args.
12582 set dummy objdump; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12584 $as_echo_n "checking
for $ac_word...
" >&6; }
12585 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12586 $as_echo_n "(cached
) " >&6
12588 if test -n "$ac_ct_OBJDUMP"; then
12589 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12608 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12609 if test -n "$ac_ct_OBJDUMP"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12611 $as_echo "$ac_ct_OBJDUMP" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12614 $as_echo "no
" >&6; }
12617 if test "x
$ac_ct_OBJDUMP" = x; then
12620 case $cross_compiling:$ac_tool_warned in
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12623 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12624 ac_tool_warned=yes ;;
12626 OBJDUMP=$ac_ct_OBJDUMP
12629 OBJDUMP="$ac_cv_prog_OBJDUMP"
12632 test -z "$OBJDUMP" && OBJDUMP=objdump
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12643 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12644 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12645 $as_echo_n "(cached
) " >&6
12647 lt_cv_file_magic_cmd='$MAGIC_CMD'
12648 lt_cv_file_magic_test_file=
12649 lt_cv_deplibs_check_method='unknown'
12650 # Need to set the preceding variable on all platforms that support
12651 # interlibrary dependencies.
12652 # 'none' -- dependencies not supported.
12653 # `unknown' -- same as none, but documents that we really don't know.
12654 # 'pass_all' -- all dependencies passed with no checks.
12655 # 'test_compile' -- check by making test program.
12656 # 'file_magic [[regex]]' -- check by looking for files in library path
12657 # which responds to the $file_magic_cmd with a given extended regex.
12658 # If you have `file' or equivalent on your system and you're not sure
12659 # whether `pass_all' will *always* work, you probably want this one.
12663 lt_cv_deplibs_check_method=pass_all
12667 lt_cv_deplibs_check_method=pass_all
12671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12672 lt_cv_file_magic_cmd='/usr/bin/file -L'
12673 lt_cv_file_magic_test_file=/shlib/libc.so
12677 # func_win32_libid is a shell function defined in ltmain.sh
12678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12679 lt_cv_file_magic_cmd='func_win32_libid'
12683 # Base MSYS/MinGW do not provide the 'file' command needed by
12684 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12685 # unless we find 'file', for example because we are cross-compiling.
12686 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12687 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12689 lt_cv_file_magic_cmd='func_win32_libid'
12691 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12692 lt_cv_file_magic_cmd='$OBJDUMP -f'
12697 # use the weaker test based on 'objdump'. See mingw*.
12698 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12699 lt_cv_file_magic_cmd='$OBJDUMP -f'
12702 darwin* | rhapsody*)
12703 lt_cv_deplibs_check_method=pass_all
12706 freebsd* | dragonfly*)
12707 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12710 # Not sure whether the presence of OpenBSD here was a mistake.
12711 # Let's accept both of them until this is cleared up.
12712 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12713 lt_cv_file_magic_cmd=/usr/bin/file
12714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12718 lt_cv_deplibs_check_method=pass_all
12723 lt_cv_deplibs_check_method=pass_all
12727 lt_cv_deplibs_check_method=pass_all
12730 hpux10.20* | hpux11*)
12731 lt_cv_file_magic_cmd=/usr/bin/file
12734 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12735 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12738 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]'
12739 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12742 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12743 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12749 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12753 irix5* | irix6* | nonstopux*)
12755 *-32|*"-32 ") libmagic=32-bit;;
12756 *-n32|*"-n32 ") libmagic=N32;;
12757 *-64|*"-64 ") libmagic=64-bit;;
12758 *) libmagic=never-match;;
12760 lt_cv_deplibs_check_method=pass_all
12763 # This must be Linux ELF.
12764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12765 lt_cv_deplibs_check_method=pass_all
12769 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12778 lt_cv_file_magic_cmd=/usr/bin/file
12779 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12783 lt_cv_deplibs_check_method=pass_all
12787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12794 osf3* | osf4* | osf5*)
12795 lt_cv_deplibs_check_method=pass_all
12799 lt_cv_deplibs_check_method=pass_all
12803 lt_cv_deplibs_check_method=pass_all
12806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12807 lt_cv_deplibs_check_method=pass_all
12811 case $host_vendor in
12813 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]'
12814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12817 lt_cv_deplibs_check_method=pass_all
12820 lt_cv_file_magic_cmd='/bin/file'
12821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12824 lt_cv_file_magic_cmd='/bin/file'
12825 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12826 lt_cv_file_magic_test_file=/lib/libc.so
12829 lt_cv_deplibs_check_method=pass_all
12832 lt_cv_deplibs_check_method=pass_all
12838 lt_cv_deplibs_check_method=pass_all
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12844 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12845 file_magic_cmd=$lt_cv_file_magic_cmd
12846 deplibs_check_method=$lt_cv_deplibs_check_method
12847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12860 if test -n "$ac_tool_prefix"; then
12861 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12862 set dummy ${ac_tool_prefix}ar; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12864 $as_echo_n "checking
for $ac_word...
" >&6; }
12865 if test "${ac_cv_prog_AR+set}" = set; then :
12866 $as_echo_n "(cached
) " >&6
12868 if test -n "$AR"; then
12869 ac_cv_prog_AR="$AR" # Let the user override the test.
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_AR="${ac_tool_prefix}ar"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12889 if test -n "$AR"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12891 $as_echo "$AR" >&6; }
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12894 $as_echo "no
" >&6; }
12899 if test -z "$ac_cv_prog_AR"; then
12901 # Extract the first word of "ar", so it can be a program name with args.
12902 set dummy ar; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12904 $as_echo_n "checking
for $ac_word...
" >&6; }
12905 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12906 $as_echo_n "(cached
) " >&6
12908 if test -n "$ac_ct_AR"; then
12909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918 ac_cv_prog_ac_ct_AR="ar"
12919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12928 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12929 if test -n "$ac_ct_AR"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12931 $as_echo "$ac_ct_AR" >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12934 $as_echo "no
" >&6; }
12937 if test "x
$ac_ct_AR" = x; then
12940 case $cross_compiling:$ac_tool_warned in
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12943 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12944 ac_tool_warned=yes ;;
12949 AR="$ac_cv_prog_AR"
12952 test -z "$AR" && AR=ar
12953 test -z "$AR_FLAGS" && AR_FLAGS=cru
12965 if test -n "$ac_tool_prefix"; then
12966 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12967 set dummy ${ac_tool_prefix}strip; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12969 $as_echo_n "checking
for $ac_word...
" >&6; }
12970 if test "${ac_cv_prog_STRIP+set}" = set; then :
12971 $as_echo_n "(cached
) " >&6
12973 if test -n "$STRIP"; then
12974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12983 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12993 STRIP=$ac_cv_prog_STRIP
12994 if test -n "$STRIP"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12996 $as_echo "$STRIP" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12999 $as_echo "no
" >&6; }
13004 if test -z "$ac_cv_prog_STRIP"; then
13006 # Extract the first word of "strip
", so it can be a program name with args.
13007 set dummy strip; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13009 $as_echo_n "checking
for $ac_word...
" >&6; }
13010 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13011 $as_echo_n "(cached
) " >&6
13013 if test -n "$ac_ct_STRIP"; then
13014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023 ac_cv_prog_ac_ct_STRIP="strip
"
13024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13034 if test -n "$ac_ct_STRIP"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13036 $as_echo "$ac_ct_STRIP" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13039 $as_echo "no
" >&6; }
13042 if test "x
$ac_ct_STRIP" = x; then
13045 case $cross_compiling:$ac_tool_warned in
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13048 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13049 ac_tool_warned=yes ;;
13054 STRIP="$ac_cv_prog_STRIP"
13057 test -z "$STRIP" && STRIP=:
13064 if test -n "$ac_tool_prefix"; then
13065 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13068 $as_echo_n "checking
for $ac_word...
" >&6; }
13069 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13070 $as_echo_n "(cached
) " >&6
13072 if test -n "$RANLIB"; then
13073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13092 RANLIB=$ac_cv_prog_RANLIB
13093 if test -n "$RANLIB"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13095 $as_echo "$RANLIB" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13098 $as_echo "no
" >&6; }
13103 if test -z "$ac_cv_prog_RANLIB"; then
13104 ac_ct_RANLIB=$RANLIB
13105 # Extract the first word of "ranlib
", so it can be a program name with args.
13106 set dummy ranlib; ac_word=$2
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13108 $as_echo_n "checking
for $ac_word...
" >&6; }
13109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13110 $as_echo_n "(cached
) " >&6
13112 if test -n "$ac_ct_RANLIB"; then
13113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13123 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13132 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13133 if test -n "$ac_ct_RANLIB"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13135 $as_echo "$ac_ct_RANLIB" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13138 $as_echo "no
" >&6; }
13141 if test "x
$ac_ct_RANLIB" = x; then
13144 case $cross_compiling:$ac_tool_warned in
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13147 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13148 ac_tool_warned=yes ;;
13150 RANLIB=$ac_ct_RANLIB
13153 RANLIB="$ac_cv_prog_RANLIB"
13156 test -z "$RANLIB" && RANLIB=:
13163 # Determine commands to create old-style static archives.
13164 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13165 old_postinstall_cmds='chmod 644 $oldlib'
13166 old_postuninstall_cmds=
13168 if test -n "$RANLIB"; then
13171 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13174 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13177 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13182 lock_old_archive_extraction=yes ;;
13184 lock_old_archive_extraction=no ;;
13225 # If no C compiler was specified, use CC.
13228 # If no C compiler flags were specified, use CFLAGS.
13229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13231 # Allow CC to be a program name with arguments.
13235 # Check for command to grab the raw symbol name followed by C symbol from nm.
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13237 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13238 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13239 $as_echo_n "(cached
) " >&6
13242 # These are sane defaults that work on at least a few old systems.
13243 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13245 # Character class describing NM global symbol codes.
13246 symcode='[BCDEGRST]'
13248 # Regexp to match symbols that can be accessed directly from C.
13249 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13251 # Define system-specific variables.
13256 cygwin* | mingw* | pw32* | cegcc*)
13257 symcode='[ABCDGISTW]'
13260 if test "$host_cpu" = ia64; then
13261 symcode='[ABCDEGRST]'
13264 irix* | nonstopux*)
13265 symcode='[BCDEGRST]'
13268 symcode='[BCDEGQRST]'
13279 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13287 # If we're using GNU nm, then use its standard symbol codes.
13288 case `$NM -V 2>&1` in
13289 *GNU* | *'with BFD'*)
13290 symcode='[ABCDGIRSTW]' ;;
13293 # Transform an extracted symbol line into a proper C declaration.
13294 # Some systems (esp. on ia64) link data and code symbols differently,
13295 # so use this general approach.
13296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13298 # Transform an extracted symbol line into symbol name and symbol address
13299 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13300 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'"
13302 # Handle CRLF in mingw tool chain
13306 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13310 # Try without a prefix underscore, then with it.
13311 for ac_symprfx in "" "_
"; do
13313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13314 symxfrm="\\1 $ac_symprfx\\2 \\2"
13316 # Write the raw and C identifiers.
13317 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13318 # Fake it for dumpbin and say T for any non-static function
13319 # and D for any global variable.
13320 # Also find C++ and __fastcall symbols from MSVC++,
13321 # which start with @ or ?.
13322 lt_cv_sys_global_symbol_pipe="$AWK '"\
13323 " {last_section=section; section=\$ 3};"\
13324 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13325 " \$ 0!~/External *\|/{next};"\
13326 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13327 " {if(hide[section]) next};"\
13328 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13329 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13330 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13331 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13332 " ' prfx
=^
$ac_symprfx"
13334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13337 # Check to see that the pipe works correctly.
13341 cat > conftest.$ac_ext <<_LT_EOF
13346 void nm_test_func(void);
13347 void nm_test_func(void){}
13351 int main(){nm_test_var='a';nm_test_func();return(0);}
13354 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13355 (eval $ac_compile) 2>&5
13357 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13358 test $ac_status = 0; }; then
13359 # Now try to grab the symbols.
13361 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13362 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13364 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13365 test $ac_status = 0; } && test -s "$nlist"; then
13366 # Try sorting and uniquifying the output.
13367 if sort "$nlist" | uniq > "$nlist"T; then
13368 mv -f "$nlist"T "$nlist"
13373 # Make sure that we snagged all the symbols we need.
13374 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13375 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13376 cat <<_LT_EOF > conftest.$ac_ext
13382 # Now generate the symbol file.
13383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13385 cat <<_LT_EOF >> conftest.$ac_ext
13387 /* The mapping between symbol names and symbols. */
13392 lt__PROGRAM__LTX_preloaded_symbols[] =
13394 { "@PROGRAM@
", (void *) 0 },
13396 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13397 cat <<\_LT_EOF >> conftest.$ac_ext
13401 /* This works around a problem in FreeBSD linker */
13402 #ifdef FREEBSD_WORKAROUND
13403 static const void *lt_preloaded_setup() {
13404 return lt__PROGRAM__LTX_preloaded_symbols;
13412 # Now try linking the two files.
13413 mv conftest.$ac_objext conftstm.$ac_objext
13414 lt_save_LIBS="$LIBS"
13415 lt_save_CFLAGS="$CFLAGS"
13416 LIBS="conftstm.
$ac_objext"
13417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13418 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13419 (eval $ac_link) 2>&5
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13422 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13425 LIBS="$lt_save_LIBS"
13426 CFLAGS="$lt_save_CFLAGS"
13428 echo "cannot
find nm_test_func
in $nlist" >&5
13431 echo "cannot
find nm_test_var
in $nlist" >&5
13434 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13437 echo "$progname: failed program was
:" >&5
13438 cat conftest.$ac_ext >&5
13440 rm -rf conftest* conftst*
13442 # Do not use the global_symbol_pipe unless it works.
13443 if test "$pipe_works" = yes; then
13446 lt_cv_sys_global_symbol_pipe=
13452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13453 lt_cv_sys_global_symbol_to_cdecl=
13455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13457 $as_echo "failed
" >&6; }
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13460 $as_echo "ok
" >&6; }
13484 # Check whether --enable-libtool-lock was given.
13485 if test "${enable_libtool_lock+set}" = set; then :
13486 enableval=$enable_libtool_lock;
13489 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13491 # Some flags need to be propagated to the compiler or linker for good
13495 # Find out which ABI we are using.
13496 echo 'int i;' > conftest.$ac_ext
13497 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13498 (eval $ac_compile) 2>&5
13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13501 test $ac_status = 0; }; then
13502 case `/usr/bin/file conftest.$ac_objext` in
13504 HPUX_IA64_MODE="32"
13507 HPUX_IA64_MODE="64"
13514 # Find out which ABI we are using.
13515 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13516 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13517 (eval $ac_compile) 2>&5
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13520 test $ac_status = 0; }; then
13521 if test "$lt_cv_prog_gnu_ld" = yes; then
13522 case `/usr/bin/file conftest.$ac_objext` in
13524 LD="${LD-ld} -melf32bsmip"
13527 LD="${LD-ld} -melf32bmipn32"
13530 LD="${LD-ld} -melf64bmip"
13534 case `/usr/bin/file conftest.$ac_objext` in
13550 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13551 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13552 # Find out which ABI we are using.
13553 echo 'int i;' > conftest.$ac_ext
13554 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13555 (eval $ac_compile) 2>&5
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13558 test $ac_status = 0; }; then
13559 case `/usr/bin/file conftest.o` in
13562 x86_64-*kfreebsd*-gnu)
13563 LD="${LD-ld} -m elf_i386_fbsd
"
13566 case `/usr/bin/file conftest.o` in
13568 LD="${LD-ld} -m elf32_x86_64
"
13571 LD="${LD-ld} -m elf_i386
"
13575 ppc64-*linux*|powerpc64-*linux*)
13576 LD="${LD-ld} -m elf32ppclinux
"
13579 LD="${LD-ld} -m elf_s390
"
13582 LD="${LD-ld} -m elf32_sparc
"
13588 x86_64-*kfreebsd*-gnu)
13589 LD="${LD-ld} -m elf_x86_64_fbsd
"
13592 LD="${LD-ld} -m elf_x86_64
"
13594 ppc*-*linux*|powerpc*-*linux*)
13595 LD="${LD-ld} -m elf64ppc
"
13597 s390*-*linux*|s390*-*tpf*)
13598 LD="${LD-ld} -m elf64_s390
"
13601 LD="${LD-ld} -m elf64_sparc
"
13611 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13612 SAVE_CFLAGS="$CFLAGS"
13613 CFLAGS="$CFLAGS -belf"
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13615 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13616 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13617 $as_echo_n "(cached
) " >&6
13620 ac_cpp='$CPP $CPPFLAGS'
13621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 lt_cv_cc_needs_belf=yes
13639 lt_cv_cc_needs_belf=no
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13644 ac_cpp='$CPP $CPPFLAGS'
13645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13651 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13652 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13653 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13654 CFLAGS="$SAVE_CFLAGS"
13658 # Find out which ABI we are using.
13659 echo 'int i;' > conftest.$ac_ext
13660 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13661 (eval $ac_compile) 2>&5
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 case `/usr/bin/file conftest.o` in
13667 case $lt_cv_prog_gnu_ld in
13668 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13682 need_locks="$enable_libtool_lock"
13686 rhapsody* | darwin*)
13687 if test -n "$ac_tool_prefix"; then
13688 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13689 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13691 $as_echo_n "checking
for $ac_word...
" >&6; }
13692 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13693 $as_echo_n "(cached
) " >&6
13695 if test -n "$DSYMUTIL"; then
13696 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699 for as_dir in $PATH
13702 test -z "$as_dir" && as_dir=.
13703 for ac_exec_ext in '' $ac_executable_extensions; do
13704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13705 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13706 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13715 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13716 if test -n "$DSYMUTIL"; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13718 $as_echo "$DSYMUTIL" >&6; }
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13721 $as_echo "no
" >&6; }
13726 if test -z "$ac_cv_prog_DSYMUTIL"; then
13727 ac_ct_DSYMUTIL=$DSYMUTIL
13728 # Extract the first word of "dsymutil
", so it can be a program name with args.
13729 set dummy dsymutil; ac_word=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13731 $as_echo_n "checking
for $ac_word...
" >&6; }
13732 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13733 $as_echo_n "(cached
) " >&6
13735 if test -n "$ac_ct_DSYMUTIL"; then
13736 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13745 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13755 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13756 if test -n "$ac_ct_DSYMUTIL"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13758 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13761 $as_echo "no
" >&6; }
13764 if test "x
$ac_ct_DSYMUTIL" = x; then
13767 case $cross_compiling:$ac_tool_warned in
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13770 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13771 ac_tool_warned=yes ;;
13773 DSYMUTIL=$ac_ct_DSYMUTIL
13776 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13779 if test -n "$ac_tool_prefix"; then
13780 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13781 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13783 $as_echo_n "checking
for $ac_word...
" >&6; }
13784 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13785 $as_echo_n "(cached
) " >&6
13787 if test -n "$NMEDIT"; then
13788 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13794 test -z "$as_dir" && as_dir=.
13795 for ac_exec_ext in '' $ac_executable_extensions; do
13796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13797 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13798 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13807 NMEDIT=$ac_cv_prog_NMEDIT
13808 if test -n "$NMEDIT"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13810 $as_echo "$NMEDIT" >&6; }
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13813 $as_echo "no
" >&6; }
13818 if test -z "$ac_cv_prog_NMEDIT"; then
13819 ac_ct_NMEDIT=$NMEDIT
13820 # Extract the first word of "nmedit
", so it can be a program name with args.
13821 set dummy nmedit; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13823 $as_echo_n "checking
for $ac_word...
" >&6; }
13824 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13825 $as_echo_n "(cached
) " >&6
13827 if test -n "$ac_ct_NMEDIT"; then
13828 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13837 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13847 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13848 if test -n "$ac_ct_NMEDIT"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13850 $as_echo "$ac_ct_NMEDIT" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13853 $as_echo "no
" >&6; }
13856 if test "x
$ac_ct_NMEDIT" = x; then
13859 case $cross_compiling:$ac_tool_warned in
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13862 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13863 ac_tool_warned=yes ;;
13865 NMEDIT=$ac_ct_NMEDIT
13868 NMEDIT="$ac_cv_prog_NMEDIT"
13871 if test -n "$ac_tool_prefix"; then
13872 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13873 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13875 $as_echo_n "checking
for $ac_word...
" >&6; }
13876 if test "${ac_cv_prog_LIPO+set}" = set; then :
13877 $as_echo_n "(cached
) " >&6
13879 if test -n "$LIPO"; then
13880 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13899 LIPO=$ac_cv_prog_LIPO
13900 if test -n "$LIPO"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13902 $as_echo "$LIPO" >&6; }
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13905 $as_echo "no
" >&6; }
13910 if test -z "$ac_cv_prog_LIPO"; then
13912 # Extract the first word of "lipo
", so it can be a program name with args.
13913 set dummy lipo; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13915 $as_echo_n "checking
for $ac_word...
" >&6; }
13916 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13917 $as_echo_n "(cached
) " >&6
13919 if test -n "$ac_ct_LIPO"; then
13920 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13929 ac_cv_prog_ac_ct_LIPO="lipo
"
13930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13939 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13940 if test -n "$ac_ct_LIPO"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13942 $as_echo "$ac_ct_LIPO" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13945 $as_echo "no
" >&6; }
13948 if test "x
$ac_ct_LIPO" = x; then
13951 case $cross_compiling:$ac_tool_warned in
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13954 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13955 ac_tool_warned=yes ;;
13960 LIPO="$ac_cv_prog_LIPO"
13963 if test -n "$ac_tool_prefix"; then
13964 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13965 set dummy ${ac_tool_prefix}otool; ac_word=$2
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13967 $as_echo_n "checking
for $ac_word...
" >&6; }
13968 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13969 $as_echo_n "(cached
) " >&6
13971 if test -n "$OTOOL"; then
13972 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13981 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13991 OTOOL=$ac_cv_prog_OTOOL
13992 if test -n "$OTOOL"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13994 $as_echo "$OTOOL" >&6; }
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13997 $as_echo "no
" >&6; }
14002 if test -z "$ac_cv_prog_OTOOL"; then
14004 # Extract the first word of "otool
", so it can be a program name with args.
14005 set dummy otool; ac_word=$2
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14007 $as_echo_n "checking
for $ac_word...
" >&6; }
14008 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14009 $as_echo_n "(cached
) " >&6
14011 if test -n "$ac_ct_OTOOL"; then
14012 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14015 for as_dir in $PATH
14018 test -z "$as_dir" && as_dir=.
14019 for ac_exec_ext in '' $ac_executable_extensions; do
14020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14021 ac_cv_prog_ac_ct_OTOOL="otool
"
14022 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14031 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14032 if test -n "$ac_ct_OTOOL"; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14034 $as_echo "$ac_ct_OTOOL" >&6; }
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14037 $as_echo "no
" >&6; }
14040 if test "x
$ac_ct_OTOOL" = x; then
14043 case $cross_compiling:$ac_tool_warned in
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14046 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14047 ac_tool_warned=yes ;;
14052 OTOOL="$ac_cv_prog_OTOOL"
14055 if test -n "$ac_tool_prefix"; then
14056 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14057 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14059 $as_echo_n "checking
for $ac_word...
" >&6; }
14060 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14061 $as_echo_n "(cached
) " >&6
14063 if test -n "$OTOOL64"; then
14064 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067 for as_dir in $PATH
14070 test -z "$as_dir" && as_dir=.
14071 for ac_exec_ext in '' $ac_executable_extensions; do
14072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14073 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14083 OTOOL64=$ac_cv_prog_OTOOL64
14084 if test -n "$OTOOL64"; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14086 $as_echo "$OTOOL64" >&6; }
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14089 $as_echo "no
" >&6; }
14094 if test -z "$ac_cv_prog_OTOOL64"; then
14095 ac_ct_OTOOL64=$OTOOL64
14096 # Extract the first word of "otool64
", so it can be a program name with args.
14097 set dummy otool64; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14099 $as_echo_n "checking
for $ac_word...
" >&6; }
14100 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14101 $as_echo_n "(cached
) " >&6
14103 if test -n "$ac_ct_OTOOL64"; then
14104 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14113 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14123 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14124 if test -n "$ac_ct_OTOOL64"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14126 $as_echo "$ac_ct_OTOOL64" >&6; }
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14129 $as_echo "no
" >&6; }
14132 if test "x
$ac_ct_OTOOL64" = x; then
14135 case $cross_compiling:$ac_tool_warned in
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14138 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14139 ac_tool_warned=yes ;;
14141 OTOOL64=$ac_ct_OTOOL64
14144 OTOOL64="$ac_cv_prog_OTOOL64"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14174 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14175 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14176 $as_echo_n "(cached
) " >&6
14178 lt_cv_apple_cc_single_mod=no
14179 if test -z "${LT_MULTI_MODULE}"; then
14180 # By default we will add the -single_module flag. You can override
14181 # by either setting the environment variable LT_MULTI_MODULE
14182 # non-empty at configure time, or by adding -multi_module to the
14184 rm -rf libconftest.dylib*
14185 echo "int foo
(void
){return 1;}" > conftest.c
14186 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14187 -dynamiclib -Wl,-single_module conftest.c
" >&5
14188 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14189 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14191 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14192 lt_cv_apple_cc_single_mod=yes
14194 cat conftest.err >&5
14196 rm -rf libconftest.dylib*
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14201 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14203 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14204 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14205 $as_echo_n "(cached
) " >&6
14207 lt_cv_ld_exported_symbols_list=no
14208 save_LDFLAGS=$LDFLAGS
14209 echo "_main
" > conftest.sym
14210 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14222 if ac_fn_c_try_link "$LINENO"; then :
14223 lt_cv_ld_exported_symbols_list=yes
14225 lt_cv_ld_exported_symbols_list=no
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 LDFLAGS="$save_LDFLAGS"
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14233 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14235 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14236 if test "${lt_cv_ld_force_load+set}" = set; then :
14237 $as_echo_n "(cached
) " >&6
14239 lt_cv_ld_force_load=no
14240 cat > conftest.c << _LT_EOF
14241 int forced_loaded() { return 2;}
14243 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14244 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14245 echo "$AR cru libconftest.a conftest.o
" >&5
14246 $AR cru libconftest.a conftest.o 2>&5
14247 cat > conftest.c << _LT_EOF
14248 int main() { return 0;}
14250 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14251 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14253 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14254 lt_cv_ld_force_load=yes
14256 cat conftest.err >&5
14258 rm -f conftest.err libconftest.a conftest conftest.c
14259 rm -rf conftest.dSYM
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14263 $as_echo "$lt_cv_ld_force_load" >&6; }
14265 rhapsody* | darwin1.[012])
14266 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14268 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14269 darwin*) # darwin 5.x on
14270 # if running on 10.5 or later, the deployment target defaults
14271 # to the OS version, if on x86, and 10.4, the deployment
14272 # target defaults to 10.4. Don't you love it?
14273 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14274 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14275 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14277 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14279 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14283 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14284 _lt_dar_single_mod='$single_module'
14286 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14287 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14289 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14291 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14292 _lt_dsymutil='~$DSYMUTIL $lib || :'
14299 for ac_header in dlfcn.h
14301 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14302 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_DLFCN_H 1
14321 enable_win32_dll=no
14324 # Check whether --enable-shared was given.
14325 if test "${enable_shared+set}" = set; then :
14326 enableval=$enable_shared; p=${PACKAGE-default}
14328 yes) enable_shared=yes ;;
14329 no) enable_shared=no ;;
14332 # Look at the argument we got. We use all the common list separators.
14333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14334 for pkg in $enableval; do
14336 if test "X
$pkg" = "X
$p"; then
14355 # Check whether --enable-static was given.
14356 if test "${enable_static+set}" = set; then :
14357 enableval=$enable_static; p=${PACKAGE-default}
14359 yes) enable_static=yes ;;
14360 no) enable_static=no ;;
14363 # Look at the argument we got. We use all the common list separators.
14364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14365 for pkg in $enableval; do
14367 if test "X
$pkg" = "X
$p"; then
14387 # Check whether --with-pic was given.
14388 if test "${with_pic+set}" = set; then :
14389 withval=$with_pic; pic_mode="$withval"
14395 test -z "$pic_mode" && pic_mode=default
14403 # Check whether --enable-fast-install was given.
14404 if test "${enable_fast_install+set}" = set; then :
14405 enableval=$enable_fast_install; p=${PACKAGE-default}
14407 yes) enable_fast_install=yes ;;
14408 no) enable_fast_install=no ;;
14410 enable_fast_install=no
14411 # Look at the argument we got. We use all the common list separators.
14412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14413 for pkg in $enableval; do
14415 if test "X
$pkg" = "X
$p"; then
14416 enable_fast_install=yes
14423 enable_fast_install=yes
14436 # This can be used to rebuild libtool when needed
14437 LIBTOOL_DEPS="$ltmain"
14439 # Always use our own libtool.
14440 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14467 test -z "$LN_S" && LN_S="ln -s"
14482 if test -n "${ZSH_VERSION+set}" ; then
14483 setopt NO_GLOB_SUBST
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14487 $as_echo_n "checking
for objdir...
" >&6; }
14488 if test "${lt_cv_objdir+set}" = set; then :
14489 $as_echo_n "(cached
) " >&6
14491 rm -f .libs 2>/dev/null
14492 mkdir .libs 2>/dev/null
14493 if test -d .libs; then
14496 # MS-DOS does not allow filenames that begin with a dot.
14499 rmdir .libs 2>/dev/null
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14502 $as_echo "$lt_cv_objdir" >&6; }
14503 objdir=$lt_cv_objdir
14509 cat >>confdefs.h <<_ACEOF
14510 #define LT_OBJDIR "$lt_cv_objdir/"
14518 # AIX sometimes has problems with the GCC collect2 program. For some
14519 # reason, if we set the COLLECT_NAMES environment variable, the problems
14520 # vanish in a puff of smoke.
14521 if test "X
${COLLECT_NAMES+set}" != Xset; then
14523 export COLLECT_NAMES
14528 # Global variables:
14530 can_build_shared=yes
14532 # All known linkers require a `.a' archive for static linking (except MSVC,
14533 # which needs '.lib').
14536 with_gnu_ld="$lt_cv_prog_gnu_ld"
14539 old_CFLAGS="$CFLAGS"
14541 # Set sane defaults for various variables
14542 test -z "$CC" && CC=cc
14543 test -z "$LTCC" && LTCC=$CC
14544 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14545 test -z "$LD" && LD=ld
14546 test -z "$ac_objext" && ac_objext=o
14548 for cc_temp in $compiler""; do
14550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14556 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14559 # Only perform the check for file, if the check method requires it
14560 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14561 case $deplibs_check_method in
14563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14565 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14567 $as_echo_n "(cached
) " >&6
14571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14574 lt_save_MAGIC_CMD="$MAGIC_CMD"
14575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14576 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14577 for ac_dir in $ac_dummy; do
14579 test -z "$ac_dir" && ac_dir=.
14580 if test -f $ac_dir/${ac_tool_prefix}file; then
14581 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14582 if test -n "$file_magic_test_file"; then
14583 case $deplibs_check_method in
14585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14588 $EGREP "$file_magic_regex" > /dev/null; then
14593 *** Warning: the command libtool uses to detect shared libraries,
14594 *** $file_magic_cmd, produces output that libtool cannot recognize.
14595 *** The result is that libtool may fail to recognize shared libraries
14596 *** as such. This will affect the creation of libtool libraries that
14597 *** depend on shared libraries, but programs linked with such libtool
14598 *** libraries will work regardless of this problem. Nevertheless, you
14599 *** may want to report the problem to your system manager and/or to
14600 *** bug-libtool@gnu.org
14610 MAGIC_CMD="$lt_save_MAGIC_CMD"
14615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14616 if test -n "$MAGIC_CMD"; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14618 $as_echo "$MAGIC_CMD" >&6; }
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14621 $as_echo "no
" >&6; }
14628 if test -z "$lt_cv_path_MAGIC_CMD"; then
14629 if test -n "$ac_tool_prefix"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14631 $as_echo_n "checking
for file...
" >&6; }
14632 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14633 $as_echo_n "(cached
) " >&6
14637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14640 lt_save_MAGIC_CMD="$MAGIC_CMD"
14641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14642 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14643 for ac_dir in $ac_dummy; do
14645 test -z "$ac_dir" && ac_dir=.
14646 if test -f $ac_dir/file; then
14647 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14648 if test -n "$file_magic_test_file"; then
14649 case $deplibs_check_method in
14651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14654 $EGREP "$file_magic_regex" > /dev/null; then
14659 *** Warning: the command libtool uses to detect shared libraries,
14660 *** $file_magic_cmd, produces output that libtool cannot recognize.
14661 *** The result is that libtool may fail to recognize shared libraries
14662 *** as such. This will affect the creation of libtool libraries that
14663 *** depend on shared libraries, but programs linked with such libtool
14664 *** libraries will work regardless of this problem. Nevertheless, you
14665 *** may want to report the problem to your system manager and/or to
14666 *** bug-libtool@gnu.org
14676 MAGIC_CMD="$lt_save_MAGIC_CMD"
14681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14682 if test -n "$MAGIC_CMD"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14684 $as_echo "$MAGIC_CMD" >&6; }
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14687 $as_echo "no
" >&6; }
14700 # Use C for the default configuration in the libtool script
14704 ac_cpp='$CPP $CPPFLAGS'
14705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14710 # Source file extension for C test sources.
14713 # Object file extension for compiled C test sources.
14717 # Code to be used in simple compile tests
14718 lt_simple_compile_test_code="int some_variable
= 0;"
14720 # Code to be used in simple link tests
14721 lt_simple_link_test_code='int main(){return(0);}'
14729 # If no C compiler was specified, use CC.
14732 # If no C compiler flags were specified, use CFLAGS.
14733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14735 # Allow CC to be a program name with arguments.
14738 # Save the default compiler, since it gets overwritten when the other
14739 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14740 compiler_DEFAULT=$CC
14742 # save warnings/boilerplate of simple test code
14743 ac_outfile=conftest.$ac_objext
14744 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14746 _lt_compiler_boilerplate=`cat conftest.err`
14749 ac_outfile=conftest.$ac_objext
14750 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14752 _lt_linker_boilerplate=`cat conftest.err`
14757 ## There is no encapsulation within the following macros, do not change
14758 ## the running order or otherwise move them around unless you know exactly
14759 ## what you are doing...
14760 if test -n "$compiler"; then
14762 lt_prog_compiler_no_builtin_flag=
14764 if test "$GCC" = yes; then
14765 case $cc_basename in
14767 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14769 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14773 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14774 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14775 $as_echo_n "(cached
) " >&6
14777 lt_cv_prog_compiler_rtti_exceptions=no
14778 ac_outfile=conftest.$ac_objext
14779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14780 lt_compiler_flag="-fno-rtti -fno-exceptions"
14781 # Insert the option either (1) after the last *FLAGS variable, or
14782 # (2) before a word containing "conftest.
", or (3) at the end.
14783 # Note that $ac_compile itself does not contain backslashes and begins
14784 # with a dollar sign (not a hyphen), so the echo should work correctly.
14785 # The option is referenced via a variable to avoid confusing sed.
14786 lt_compile=`echo "$ac_compile" | $SED \
14787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14789 -e 's:$: $lt_compiler_flag:'`
14790 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14791 (eval "$lt_compile" 2>conftest.err)
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14795 if (exit $ac_status) && test -s "$ac_outfile"; then
14796 # The compiler can only warn and ignore the option if not recognized
14797 # So say no if there are warnings other than the usual output.
14798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14801 lt_cv_prog_compiler_rtti_exceptions=yes
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14808 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14810 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14811 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14823 lt_prog_compiler_wl=
14824 lt_prog_compiler_pic=
14825 lt_prog_compiler_static=
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14828 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14830 if test "$GCC" = yes; then
14831 lt_prog_compiler_wl='-Wl,'
14832 lt_prog_compiler_static='-static'
14836 # All AIX code is PIC.
14837 if test "$host_cpu" = ia64; then
14838 # AIX 5 now supports IA64 processor
14839 lt_prog_compiler_static='-Bstatic'
14846 # see comment about AmigaOS4 .so support
14847 lt_prog_compiler_pic='-fPIC'
14850 # FIXME: we need at least 68020 code to build shared libraries, but
14851 # adding the `-m68020' flag to GCC prevents building anything better,
14853 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14858 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14859 # PIC is the default for these OSes.
14862 mingw* | cygwin* | pw32* | os2* | cegcc*)
14863 # This hack is so that the source file can tell whether it is being
14864 # built for inclusion in a dll (and should export symbols for example).
14865 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14866 # (--disable-auto-import) libraries
14867 lt_prog_compiler_pic='-DDLL_EXPORT'
14870 darwin* | rhapsody*)
14871 # PIC is the default on this platform
14872 # Common symbols not allowed in MH_DYLIB files
14873 lt_prog_compiler_pic='-fno-common'
14877 # PIC is the default for Haiku.
14878 # The "-static" flag exists, but is broken.
14879 lt_prog_compiler_static=
14883 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14884 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14885 # sets the default TLS model and affects inlining.
14891 lt_prog_compiler_pic='-fPIC'
14897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14898 # Instead, we relocate shared libraries at runtime.
14902 # Just because we use GCC doesn't mean we suddenly get shared libraries
14903 # on systems that don't support them.
14904 lt_prog_compiler_can_build_shared=no
14909 # QNX uses GNU C++, but need to define -shared option too, otherwise
14910 # it will coredump.
14911 lt_prog_compiler_pic='-fPIC -shared'
14915 if test -d /usr/nec; then
14916 lt_prog_compiler_pic=-Kconform_pic
14921 lt_prog_compiler_pic='-fPIC'
14925 case $cc_basename in
14926 nvcc*) # Cuda Compiler Driver 2.2
14927 lt_prog_compiler_wl='-Xlinker '
14928 lt_prog_compiler_pic='-Xcompiler -fPIC'
14932 # PORTME Check for flag to pass linker flags through the system compiler.
14935 lt_prog_compiler_wl='-Wl,'
14936 if test "$host_cpu" = ia64; then
14937 # AIX 5 now supports IA64 processor
14938 lt_prog_compiler_static='-Bstatic'
14940 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14944 mingw* | cygwin* | pw32* | os2* | cegcc*)
14945 # This hack is so that the source file can tell whether it is being
14946 # built for inclusion in a dll (and should export symbols for example).
14947 lt_prog_compiler_pic='-DDLL_EXPORT'
14950 hpux9* | hpux10* | hpux11*)
14951 lt_prog_compiler_wl='-Wl,'
14952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14953 # not for PA HP-UX.
14959 lt_prog_compiler_pic='+Z'
14962 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14963 lt_prog_compiler_static='${wl}-a ${wl}archive'
14966 irix5* | irix6* | nonstopux*)
14967 lt_prog_compiler_wl='-Wl,'
14968 # PIC (with -KPIC) is the default.
14969 lt_prog_compiler_static='-non_shared'
14972 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14973 case $cc_basename in
14974 # old Intel for x86_64 which still supported -KPIC.
14976 lt_prog_compiler_wl='-Wl,'
14977 lt_prog_compiler_pic='-KPIC'
14978 lt_prog_compiler_static='-static'
14980 # icc used to be incompatible with GCC.
14981 # ICC 10 doesn't accept -KPIC any more.
14983 lt_prog_compiler_wl='-Wl,'
14984 lt_prog_compiler_pic='-fPIC'
14985 lt_prog_compiler_static='-static'
14987 # Lahey Fortran 8.1.
14989 lt_prog_compiler_wl='-Wl,'
14990 lt_prog_compiler_pic='--shared'
14991 lt_prog_compiler_static='--static'
14993 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14994 # Portland Group compilers (*not* the Pentium gcc compiler,
14995 # which looks to be a dead project)
14996 lt_prog_compiler_wl='-Wl,'
14997 lt_prog_compiler_pic='-fpic'
14998 lt_prog_compiler_static='-Bstatic'
15001 lt_prog_compiler_wl='-Wl,'
15002 # All Alpha code is PIC.
15003 lt_prog_compiler_static='-non_shared'
15005 xl* | bgxl* | bgf* | mpixl*)
15006 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15007 lt_prog_compiler_wl='-Wl,'
15008 lt_prog_compiler_pic='-qpic'
15009 lt_prog_compiler_static='-qstaticlink'
15012 case `$CC -V 2>&1 | sed 5q` in
15013 *Sun\ F* | *Sun*Fortran*)
15014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15015 lt_prog_compiler_pic='-KPIC'
15016 lt_prog_compiler_static='-Bstatic'
15017 lt_prog_compiler_wl=''
15021 lt_prog_compiler_pic='-KPIC'
15022 lt_prog_compiler_static='-Bstatic'
15023 lt_prog_compiler_wl='-Wl,'
15031 lt_prog_compiler_pic='-KPIC'
15032 lt_prog_compiler_static='-Bstatic'
15036 # QNX uses GNU C++, but need to define -shared option too, otherwise
15037 # it will coredump.
15038 lt_prog_compiler_pic='-fPIC -shared'
15041 osf3* | osf4* | osf5*)
15042 lt_prog_compiler_wl='-Wl,'
15043 # All OSF/1 code is PIC.
15044 lt_prog_compiler_static='-non_shared'
15048 lt_prog_compiler_static='-non_shared'
15052 lt_prog_compiler_pic='-KPIC'
15053 lt_prog_compiler_static='-Bstatic'
15054 case $cc_basename in
15055 f77* | f90* | f95*)
15056 lt_prog_compiler_wl='-Qoption ld ';;
15058 lt_prog_compiler_wl='-Wl,';;
15063 lt_prog_compiler_wl='-Qoption ld '
15064 lt_prog_compiler_pic='-PIC'
15065 lt_prog_compiler_static='-Bstatic'
15068 sysv4 | sysv4.2uw2* | sysv4.3*)
15069 lt_prog_compiler_wl='-Wl,'
15070 lt_prog_compiler_pic='-KPIC'
15071 lt_prog_compiler_static='-Bstatic'
15075 if test -d /usr/nec ;then
15076 lt_prog_compiler_pic='-Kconform_pic'
15077 lt_prog_compiler_static='-Bstatic'
15081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15082 lt_prog_compiler_wl='-Wl,'
15083 lt_prog_compiler_pic='-KPIC'
15084 lt_prog_compiler_static='-Bstatic'
15088 lt_prog_compiler_wl='-Wl,'
15089 lt_prog_compiler_can_build_shared=no
15093 lt_prog_compiler_pic='-pic'
15094 lt_prog_compiler_static='-Bstatic'
15098 lt_prog_compiler_can_build_shared=no
15104 # For platforms which do not support PIC, -DPIC is meaningless:
15106 lt_prog_compiler_pic=
15109 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15113 $as_echo "$lt_prog_compiler_pic" >&6; }
15121 # Check to make sure the PIC flag actually works.
15123 if test -n "$lt_prog_compiler_pic"; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15125 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15126 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15127 $as_echo_n "(cached
) " >&6
15129 lt_cv_prog_compiler_pic_works=no
15130 ac_outfile=conftest.$ac_objext
15131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15132 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15133 # Insert the option either (1) after the last *FLAGS variable, or
15134 # (2) before a word containing "conftest.
", or (3) at the end.
15135 # Note that $ac_compile itself does not contain backslashes and begins
15136 # with a dollar sign (not a hyphen), so the echo should work correctly.
15137 # The option is referenced via a variable to avoid confusing sed.
15138 lt_compile=`echo "$ac_compile" | $SED \
15139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15141 -e 's:$: $lt_compiler_flag:'`
15142 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15143 (eval "$lt_compile" 2>conftest.err)
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15147 if (exit $ac_status) && test -s "$ac_outfile"; then
15148 # The compiler can only warn and ignore the option if not recognized
15149 # So say no if there are warnings other than the usual output.
15150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15153 lt_cv_prog_compiler_pic_works=yes
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15160 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15162 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15163 case $lt_prog_compiler_pic in
15165 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15168 lt_prog_compiler_pic=
15169 lt_prog_compiler_can_build_shared=no
15180 # Check to make sure the static flag actually works.
15182 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15184 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15185 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15186 $as_echo_n "(cached
) " >&6
15188 lt_cv_prog_compiler_static_works=no
15189 save_LDFLAGS="$LDFLAGS"
15190 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15193 # The linker can only warn and ignore the option if not recognized
15194 # So say no if there are warnings
15195 if test -s conftest.err; then
15196 # Append any errors to the config.log.
15197 cat conftest.err 1>&5
15198 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15200 if diff conftest.exp conftest.er2 >/dev/null; then
15201 lt_cv_prog_compiler_static_works=yes
15204 lt_cv_prog_compiler_static_works=yes
15208 LDFLAGS="$save_LDFLAGS"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15212 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15214 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15217 lt_prog_compiler_static=
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15227 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15228 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15229 $as_echo_n "(cached
) " >&6
15231 lt_cv_prog_compiler_c_o=no
15232 $RM -r conftest 2>/dev/null
15236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15238 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15239 # Insert the option either (1) after the last *FLAGS variable, or
15240 # (2) before a word containing "conftest.
", or (3) at the end.
15241 # Note that $ac_compile itself does not contain backslashes and begins
15242 # with a dollar sign (not a hyphen), so the echo should work correctly.
15243 lt_compile=`echo "$ac_compile" | $SED \
15244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15246 -e 's:$: $lt_compiler_flag:'`
15247 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15248 (eval "$lt_compile" 2>out/conftest.err)
15250 cat out/conftest.err >&5
15251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15254 # The compiler can only warn and ignore the option if not recognized
15255 # So say no if there are warnings
15256 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15259 lt_cv_prog_compiler_c_o=yes
15264 # SGI C++ compiler will create directory out/ii_files/ for
15265 # template instantiation
15266 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15267 $RM out/* && rmdir out
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15274 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15282 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15283 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15284 $as_echo_n "(cached
) " >&6
15286 lt_cv_prog_compiler_c_o=no
15287 $RM -r conftest 2>/dev/null
15291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15293 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15294 # Insert the option either (1) after the last *FLAGS variable, or
15295 # (2) before a word containing "conftest.
", or (3) at the end.
15296 # Note that $ac_compile itself does not contain backslashes and begins
15297 # with a dollar sign (not a hyphen), so the echo should work correctly.
15298 lt_compile=`echo "$ac_compile" | $SED \
15299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15301 -e 's:$: $lt_compiler_flag:'`
15302 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15303 (eval "$lt_compile" 2>out/conftest.err)
15305 cat out/conftest.err >&5
15306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15309 # The compiler can only warn and ignore the option if not recognized
15310 # So say no if there are warnings
15311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15314 lt_cv_prog_compiler_c_o=yes
15319 # SGI C++ compiler will create directory out/ii_files/ for
15320 # template instantiation
15321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15322 $RM out/* && rmdir out
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15334 hard_links="nottested
"
15335 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15336 # do not overwrite the value of need_locks provided by the user
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15338 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15343 ln conftest.a conftest.b 2>&5 || hard_links=no
15344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15346 $as_echo "$hard_links" >&6; }
15347 if test "$hard_links" = no; then
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15349 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15362 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15365 allow_undefined_flag=
15366 always_export_symbols=no
15368 archive_expsym_cmds=
15369 compiler_needs_object=no
15370 enable_shared_with_static_runtimes=no
15371 export_dynamic_flag_spec=
15372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15373 hardcode_automatic=no
15375 hardcode_direct_absolute=no
15376 hardcode_libdir_flag_spec=
15377 hardcode_libdir_flag_spec_ld=
15378 hardcode_libdir_separator=
15379 hardcode_minus_L=no
15380 hardcode_shlibpath_var=unsupported
15382 link_all_deplibs=unknown
15384 module_expsym_cmds=
15385 old_archive_from_new_cmds=
15386 old_archive_from_expsyms_cmds=
15387 thread_safe_flag_spec=
15388 whole_archive_flag_spec=
15389 # include_expsyms should be a list of space-separated symbols to be *always*
15390 # included in the symbol list
15392 # exclude_expsyms can be an extended regexp of symbols to exclude
15393 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15394 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15395 # as well as any symbol that contains `d'.
15396 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15397 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15398 # platforms (ab)use it in PIC code, but their linkers get confused if
15399 # the symbol is explicitly referenced. Since portable code cannot
15400 # rely on this symbol name, it's probably fine to never include it in
15401 # preloaded symbol tables.
15402 # Exclude shared library initialization/finalization symbols.
15403 extract_expsyms_cmds=
15406 cygwin* | mingw* | pw32* | cegcc*)
15407 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15408 # When not using gcc, we currently assume that we are using
15409 # Microsoft Visual C++.
15410 if test "$GCC" != yes; then
15415 # we just hope/assume this is gcc and not c89 (= MSVC++)
15425 # On some targets, GNU ld is compatible enough with the native linker
15426 # that we're better off using the native interface for both.
15427 lt_use_gnu_ld_interface=no
15428 if test "$with_gnu_ld" = yes; then
15431 # The AIX port of GNU ld has always aspired to compatibility
15432 # with the native linker. However, as the warning in the GNU ld
15433 # block says, versions before 2.19.5* couldn't really create working
15434 # shared libraries, regardless of the interface used.
15435 case `$LD -v 2>&1` in
15436 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15437 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15438 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15440 lt_use_gnu_ld_interface=yes
15445 lt_use_gnu_ld_interface=yes
15450 if test "$lt_use_gnu_ld_interface" = yes; then
15451 # If archive_cmds runs LD, not CC, wlarc should be empty
15454 # Set some defaults for GNU ld with shared library support. These
15455 # are reset later if shared libraries are not supported. Putting them
15456 # here allows them to be overridden if necessary.
15457 runpath_var=LD_RUN_PATH
15458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15459 export_dynamic_flag_spec='${wl}--export-dynamic'
15460 # ancient GNU ld didn't support --whole-archive et. al.
15461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15462 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15464 whole_archive_flag_spec=
15466 supports_anon_versioning=no
15467 case `$LD -v 2>&1` in
15468 *GNU\ gold*) supports_anon_versioning=yes ;;
15469 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15470 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15471 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15472 *\ 2.11.*) ;; # other 2.11 versions
15473 *) supports_anon_versioning=yes ;;
15476 # See if GNU ld supports shared libraries.
15479 # On AIX/PPC, the GNU linker is very broken
15480 if test "$host_cpu" != ia64; then
15484 *** Warning: the GNU linker, at least up to release 2.19, is reported
15485 *** to be unable to reliably create shared libraries on AIX.
15486 *** Therefore, libtool is disabling shared libraries support. If you
15487 *** really care for shared libraries, you may want to install binutils
15488 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15489 *** You will then need to restart the configuration process.
15498 # see comment about AmigaOS4 .so support
15499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15500 archive_expsym_cmds=''
15503 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)'
15504 hardcode_libdir_flag_spec
='-L$libdir'
15505 hardcode_minus_L
=yes
15511 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15512 allow_undefined_flag
=unsupported
15513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15514 # support --undefined. This deserves some investigation. FIXME
15515 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15521 cygwin
* | mingw
* | pw32
* | cegcc
*)
15522 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15523 # as there is no search path for DLLs.
15524 hardcode_libdir_flag_spec
='-L$libdir'
15525 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15526 allow_undefined_flag
=unsupported
15527 always_export_symbols
=no
15528 enable_shared_with_static_runtimes
=yes
15529 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15531 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15532 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15533 # If the export-symbols file already is a .def file (1st line
15534 # is EXPORTS), use it as is; otherwise, prepend...
15535 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15536 cp $export_symbols $output_objdir/$soname.def;
15538 echo EXPORTS > $output_objdir/$soname.def;
15539 cat $export_symbols >> $output_objdir/$soname.def;
15541 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15548 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15549 link_all_deplibs
=yes
15554 hardcode_shlibpath_var
=no
15555 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15556 export_dynamic_flag_spec
='${wl}-E'
15557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15558 # Instead, shared libraries are loaded at an image base (0x10000000 by
15559 # default) and relocated if they conflict, which is a slow very memory
15560 # consuming and fragmenting process. To avoid this, we pick a random,
15561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15563 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15564 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'
15567 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15569 if test "$host_os" = linux-dietlibc
; then
15570 case $cc_basename in
15571 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15574 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15575 && test "$tmp_diet" = no
15578 tmp_sharedflag
='-shared'
15579 case $cc_basename,$host_cpu in
15580 pgcc
*) # Portland Group C compiler
15581 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'
15582 tmp_addflag
=' $pic_flag'
15584 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15585 # Portland Group f77 and f90 compilers
15586 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'
15587 tmp_addflag
=' $pic_flag -Mnomain' ;;
15588 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15589 tmp_addflag
=' -i_dynamic' ;;
15590 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15591 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15592 ifc
* | ifort
*) # Intel Fortran compiler
15593 tmp_addflag
=' -nofor_main' ;;
15594 lf95
*) # Lahey Fortran 8.1
15595 whole_archive_flag_spec
=
15596 tmp_sharedflag
='--shared' ;;
15597 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15598 tmp_sharedflag
='-qmkshrobj'
15600 nvcc
*) # Cuda Compiler Driver 2.2
15601 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'
15602 compiler_needs_object
=yes
15605 case `$CC -V 2>&1 | sed 5q` in
15606 *Sun\ C
*) # Sun C 5.9
15607 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'
15608 compiler_needs_object
=yes
15609 tmp_sharedflag
='-G' ;;
15610 *Sun\ F
*) # Sun Fortran 8.3
15611 tmp_sharedflag
='-G' ;;
15613 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15615 if test "x$supports_anon_versioning" = xyes
; then
15616 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15618 echo "local: *; };" >> $output_objdir/$libname.ver~
15619 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15622 case $cc_basename in
15623 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15624 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15625 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15626 hardcode_libdir_flag_spec
=
15627 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15628 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15629 if test "x$supports_anon_versioning" = xyes
; then
15630 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15632 echo "local: *; };" >> $output_objdir/$libname.ver~
15633 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15643 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15644 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15647 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15653 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15658 *** create shared libraries on Solaris systems. Therefore, libtool
15659 *** is disabling shared libraries support. We urge you to upgrade GNU
15660 *** binutils to release 2.9.1 or newer. Another option is to modify
15661 *** your PATH or compiler configuration so that the native linker is
15662 *** used, and then restart.
15665 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15666 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15667 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15673 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15674 case `$LD -v 2>&1` in
15675 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15679 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15680 *** reliably create shared libraries on SCO systems. Therefore, libtool
15681 *** is disabling shared libraries support. We urge you to upgrade GNU
15682 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15683 *** your PATH or compiler configuration so that the native linker is
15684 *** used, and then restart.
15689 # For security reasons, it is highly recommended that you always
15690 # use absolute paths for naming shared libraries, and exclude the
15691 # DT_RUNPATH tag from executables and libraries. But doing so
15692 # requires that you compile everything twice, which is a pain.
15693 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15694 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15695 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15696 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15705 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_direct
=yes
15708 hardcode_shlibpath_var
=no
15712 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15713 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15714 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15721 if test "$ld_shlibs" = no
; then
15723 hardcode_libdir_flag_spec
=
15724 export_dynamic_flag_spec
=
15725 whole_archive_flag_spec
=
15728 # PORTME fill in a description of your system's linker (not GNU ld)
15731 allow_undefined_flag
=unsupported
15732 always_export_symbols
=yes
15733 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'
15734 # Note: this linker hardcodes the directories in LIBPATH if there
15735 # are no directories specified by -L.
15736 hardcode_minus_L
=yes
15737 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15738 # Neither direct hardcoding nor static linking is supported with a
15740 hardcode_direct
=unsupported
15745 if test "$host_cpu" = ia64
; then
15746 # On IA64, the linker does run time linking by default, so we don't
15747 # have to do anything special.
15748 aix_use_runtimelinking
=no
15749 exp_sym_flag
='-Bexport'
15752 # If we're using GNU nm, then we don't want the "-C" option.
15753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15754 # Also, AIX nm treats weak defined symbols like other global
15755 # defined symbols, whereas GNU nm marks them as "W".
15756 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15757 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'
15759 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'
15761 aix_use_runtimelinking
=no
15763 # Test if we are trying to use run time linking or normal
15764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15765 # need to do runtime linking.
15766 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15767 for ld_flag
in $LDFLAGS; do
15768 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15769 aix_use_runtimelinking
=yes
15776 exp_sym_flag
='-bexport'
15777 no_entry_flag
='-bnoentry'
15780 # When large executables or shared objects are built, AIX ld can
15781 # have problems creating the table of contents. If linking a library
15782 # or program results in "error TOC overflow" add -mminimal-toc to
15783 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15784 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15787 hardcode_direct
=yes
15788 hardcode_direct_absolute
=yes
15789 hardcode_libdir_separator
=':'
15790 link_all_deplibs
=yes
15791 file_list_spec
='${wl}-f,'
15793 if test "$GCC" = yes; then
15794 case $host_os in aix4.
[012]|aix4.
[012].
*)
15795 # We only want to do this on AIX 4.2 and lower, the check
15796 # below for broken collect2 doesn't work under 4.3+
15797 collect2name
=`${CC} -print-prog-name=collect2`
15798 if test -f "$collect2name" &&
15799 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15801 # We have reworked collect2
15804 # We have old collect2
15805 hardcode_direct
=unsupported
15806 # It fails to find uninstalled libraries when the uninstalled
15807 # path is not listed in the libpath. Setting hardcode_minus_L
15808 # to unsupported forces relinking
15809 hardcode_minus_L
=yes
15810 hardcode_libdir_flag_spec
='-L$libdir'
15811 hardcode_libdir_separator
=
15815 shared_flag
='-shared'
15816 if test "$aix_use_runtimelinking" = yes; then
15817 shared_flag
="$shared_flag "'${wl}-G'
15821 if test "$host_cpu" = ia64
; then
15822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15823 # chokes on -Wl,-G. The following line is correct:
15826 if test "$aix_use_runtimelinking" = yes; then
15827 shared_flag
='${wl}-G'
15829 shared_flag
='${wl}-bM:SRE'
15834 export_dynamic_flag_spec
='${wl}-bexpall'
15835 # It seems that -bexpall does not export symbols beginning with
15836 # underscore (_), so it is better to generate a list of symbols to export.
15837 always_export_symbols
=yes
15838 if test "$aix_use_runtimelinking" = yes; then
15839 # Warning - without using the other runtime loading flags (-brtl),
15840 # -berok will link without error, but may produce a broken library.
15841 allow_undefined_flag
='-berok'
15842 # Determine the default libpath from the value encoded in an
15843 # empty executable.
15844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15855 if ac_fn_c_try_link
"$LINENO"; then :
15857 lt_aix_libpath_sed
='
15858 /Import File Strings/,/^$/ {
15864 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15865 # Check for a 64-bit object if we didn't find anything.
15866 if test -z "$aix_libpath"; then
15867 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15870 rm -f core conftest.err conftest.
$ac_objext \
15871 conftest
$ac_exeext conftest.
$ac_ext
15872 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15874 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15875 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"
15877 if test "$host_cpu" = ia64
; then
15878 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15879 allow_undefined_flag
="-z nodefs"
15880 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"
15882 # Determine the default libpath from the value encoded in an
15883 # empty executable.
15884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15895 if ac_fn_c_try_link
"$LINENO"; then :
15897 lt_aix_libpath_sed
='
15898 /Import File Strings/,/^$/ {
15904 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15905 # Check for a 64-bit object if we didn't find anything.
15906 if test -z "$aix_libpath"; then
15907 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15910 rm -f core conftest.err conftest.
$ac_objext \
15911 conftest
$ac_exeext conftest.
$ac_ext
15912 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15914 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15915 # Warning - without using the other run time loading flags,
15916 # -berok will link without error, but may produce a broken library.
15917 no_undefined_flag
=' ${wl}-bernotok'
15918 allow_undefined_flag
=' ${wl}-berok'
15919 if test "$with_gnu_ld" = yes; then
15920 # We only use this code for GNU lds that support --whole-archive.
15921 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15923 # Exported symbols can be pulled into shared objects from archives
15924 whole_archive_flag_spec
='$convenience'
15926 archive_cmds_need_lc
=yes
15927 # This is similar to how AIX traditionally builds its shared libraries.
15928 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'
15936 # see comment about AmigaOS4 .so support
15937 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15938 archive_expsym_cmds
=''
15941 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)'
15942 hardcode_libdir_flag_spec
='-L$libdir'
15943 hardcode_minus_L
=yes
15949 export_dynamic_flag_spec
=-rdynamic
15952 cygwin
* | mingw
* | pw32
* | cegcc
*)
15953 # When not using gcc, we currently assume that we are using
15954 # Microsoft Visual C++.
15955 # hardcode_libdir_flag_spec is actually meaningless, as there is
15956 # no search path for DLLs.
15957 hardcode_libdir_flag_spec
=' '
15958 allow_undefined_flag
=unsupported
15959 # Tell ltmain to make .lib files, not .a files.
15961 # Tell ltmain to make .dll files, not .so files.
15963 # FIXME: Setting linknames here is a bad hack.
15964 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15965 # The linker will automatically build a .lib file if we build a DLL.
15966 old_archive_from_new_cmds
='true'
15967 # FIXME: Should let the user specify the lib program.
15968 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15969 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15970 enable_shared_with_static_runtimes
=yes
15973 darwin
* | rhapsody
*)
15976 archive_cmds_need_lc
=no
15978 hardcode_automatic
=yes
15979 hardcode_shlibpath_var
=unsupported
15980 if test "$lt_cv_ld_force_load" = "yes"; then
15981 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\"`'
15983 whole_archive_flag_spec
=''
15985 link_all_deplibs
=yes
15986 allow_undefined_flag
="$_lt_dar_allow_undefined"
15987 case $cc_basename in
15988 ifort
*) _lt_dar_can_shared
=yes ;;
15989 *) _lt_dar_can_shared
=$GCC ;;
15991 if test "$_lt_dar_can_shared" = "yes"; then
15992 output_verbose_link_cmd
=func_echo_all
15993 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15994 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15995 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}"
15996 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}"
16005 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16006 hardcode_libdir_flag_spec
='-L$libdir'
16007 hardcode_shlibpath_var
=no
16010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16011 # support. Future versions do this automatically, but an explicit c++rt0.o
16012 # does not break anything, and helps significantly (at the cost of a little
16015 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16016 hardcode_libdir_flag_spec
='-R$libdir'
16017 hardcode_direct
=yes
16018 hardcode_shlibpath_var
=no
16021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16023 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16024 hardcode_direct
=yes
16025 hardcode_minus_L
=yes
16026 hardcode_shlibpath_var
=no
16029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16030 freebsd
* | dragonfly
*)
16031 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16032 hardcode_libdir_flag_spec
='-R$libdir'
16033 hardcode_direct
=yes
16034 hardcode_shlibpath_var
=no
16038 if test "$GCC" = yes; then
16039 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'
16041 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'
16043 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16044 hardcode_libdir_separator
=:
16045 hardcode_direct
=yes
16047 # hardcode_minus_L: Not really in the search PATH,
16048 # but as the default location of the library.
16049 hardcode_minus_L
=yes
16050 export_dynamic_flag_spec
='${wl}-E'
16054 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16055 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16059 if test "$with_gnu_ld" = no
; then
16060 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16061 hardcode_libdir_flag_spec_ld
='+b $libdir'
16062 hardcode_libdir_separator
=:
16063 hardcode_direct
=yes
16064 hardcode_direct_absolute
=yes
16065 export_dynamic_flag_spec
='${wl}-E'
16066 # hardcode_minus_L: Not really in the search PATH,
16067 # but as the default location of the library.
16068 hardcode_minus_L
=yes
16073 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16076 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16079 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16082 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16088 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16095 # Older versions of the 11.00 compiler do not understand -b yet
16096 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16098 $as_echo_n "checking if $CC understands -b... " >&6; }
16099 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16100 $as_echo_n "(cached) " >&6
16102 lt_cv_prog_compiler__b
=no
16103 save_LDFLAGS
="$LDFLAGS"
16104 LDFLAGS
="$LDFLAGS -b"
16105 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16106 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16107 # The linker can only warn and ignore the option if not recognized
16108 # So say no if there are warnings
16109 if test -s conftest.err
; then
16110 # Append any errors to the config.log.
16111 cat conftest.err
1>&5
16112 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16113 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16114 if diff conftest.exp conftest.er2
>/dev
/null
; then
16115 lt_cv_prog_compiler__b
=yes
16118 lt_cv_prog_compiler__b
=yes
16122 LDFLAGS
="$save_LDFLAGS"
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16128 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16129 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16131 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16137 if test "$with_gnu_ld" = no
; then
16138 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16139 hardcode_libdir_separator
=:
16144 hardcode_shlibpath_var
=no
16147 hardcode_direct
=yes
16148 hardcode_direct_absolute
=yes
16149 export_dynamic_flag_spec
='${wl}-E'
16151 # hardcode_minus_L: Not really in the search PATH,
16152 # but as the default location of the library.
16153 hardcode_minus_L
=yes
16159 irix5
* | irix6
* | nonstopux
*)
16160 if test "$GCC" = yes; then
16161 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'
16162 # Try to use the -exported_symbol ld option, if it does not
16163 # work, assume that -exports_file does not work either and
16164 # implicitly export all symbols.
16165 save_LDFLAGS
="$LDFLAGS"
16166 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16171 if ac_fn_c_try_link
"$LINENO"; then :
16172 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'
16175 rm -f core conftest.err conftest.
$ac_objext \
16176 conftest
$ac_exeext conftest.
$ac_ext
16177 LDFLAGS
="$save_LDFLAGS"
16179 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'
16180 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'
16182 archive_cmds_need_lc
='no'
16183 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16184 hardcode_libdir_separator
=:
16186 link_all_deplibs
=yes
16190 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16191 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16193 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16195 hardcode_libdir_flag_spec
='-R$libdir'
16196 hardcode_direct
=yes
16197 hardcode_shlibpath_var
=no
16201 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_direct
=yes
16203 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16204 hardcode_libdir_separator
=:
16205 hardcode_shlibpath_var
=no
16212 if test -f /usr
/libexec
/ld.so
; then
16213 hardcode_direct
=yes
16214 hardcode_shlibpath_var
=no
16215 hardcode_direct_absolute
=yes
16216 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16217 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16219 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16220 export_dynamic_flag_spec
='${wl}-E'
16223 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16224 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16225 hardcode_libdir_flag_spec
='-R$libdir'
16228 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16229 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16239 hardcode_libdir_flag_spec
='-L$libdir'
16240 hardcode_minus_L
=yes
16241 allow_undefined_flag
=unsupported
16242 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'
16243 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16247 if test "$GCC" = yes; then
16248 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16249 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'
16251 allow_undefined_flag
=' -expect_unresolved \*'
16252 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'
16254 archive_cmds_need_lc
='no'
16255 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16256 hardcode_libdir_separator
=:
16259 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16260 if test "$GCC" = yes; then
16261 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16262 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'
16263 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16265 allow_undefined_flag
=' -expect_unresolved \*'
16266 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'
16267 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~
16268 $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'
16270 # Both c and cxx compiler support -rpath directly
16271 hardcode_libdir_flag_spec
='-rpath $libdir'
16273 archive_cmds_need_lc
='no'
16274 hardcode_libdir_separator
=:
16278 no_undefined_flag
=' -z defs'
16279 if test "$GCC" = yes; then
16281 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16283 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16285 case `$CC -V 2>&1` in
16288 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16289 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16290 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16294 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16295 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16296 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16300 hardcode_libdir_flag_spec
='-R$libdir'
16301 hardcode_shlibpath_var
=no
16303 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16305 # The compiler driver will combine and reorder linker options,
16306 # but understands `-z linker_flag'. GCC discards it without `$wl',
16307 # but is careful enough not to reorder.
16308 # Supported since Solaris 2.6 (maybe 2.5.1?)
16309 if test "$GCC" = yes; then
16310 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16312 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16316 link_all_deplibs
=yes
16320 if test "x$host_vendor" = xsequent
; then
16321 # Use $CC to link under sequent, because it throws in some extra .o
16322 # files that make .init and .fini sections work.
16323 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16325 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16327 hardcode_libdir_flag_spec
='-L$libdir'
16328 hardcode_direct
=yes
16329 hardcode_minus_L
=yes
16330 hardcode_shlibpath_var
=no
16334 case $host_vendor in
16336 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337 hardcode_direct
=yes # is this really true???
16340 ## LD is ld it makes a PLAMLIB
16341 ## CC just makes a GrossModule.
16342 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16343 reload_cmds
='$CC -r -o $output$reload_objs'
16347 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16351 runpath_var
='LD_RUN_PATH'
16352 hardcode_shlibpath_var
=no
16356 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16357 hardcode_shlibpath_var
=no
16358 export_dynamic_flag_spec
='-Bexport'
16362 if test -d /usr
/nec
; then
16363 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16364 hardcode_shlibpath_var
=no
16365 runpath_var
=LD_RUN_PATH
16366 hardcode_runpath_var
=yes
16371 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16372 no_undefined_flag
='${wl}-z,text'
16373 archive_cmds_need_lc
=no
16374 hardcode_shlibpath_var
=no
16375 runpath_var
='LD_RUN_PATH'
16377 if test "$GCC" = yes; then
16378 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16381 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16386 sysv5
* | sco3.2v5
* | sco5v6
*)
16387 # Note: We can NOT use -z defs as we might desire, because we do not
16388 # link with -lc, and that would cause any symbols used from libc to
16389 # always be unresolved, which means just about no library would
16390 # ever link correctly. If we're not using GNU ld we use -z text
16391 # though, which does catch some bad symbols but isn't as heavy-handed
16393 no_undefined_flag
='${wl}-z,text'
16394 allow_undefined_flag
='${wl}-z,nodefs'
16395 archive_cmds_need_lc
=no
16396 hardcode_shlibpath_var
=no
16397 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16398 hardcode_libdir_separator
=':'
16399 link_all_deplibs
=yes
16400 export_dynamic_flag_spec
='${wl}-Bexport'
16401 runpath_var
='LD_RUN_PATH'
16403 if test "$GCC" = yes; then
16404 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16407 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16408 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16413 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec
='-L$libdir'
16415 hardcode_shlibpath_var
=no
16423 if test x
$host_vendor = xsni
; then
16425 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16426 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16433 $as_echo "$ld_shlibs" >&6; }
16434 test "$ld_shlibs" = no
&& can_build_shared
=no
16436 with_gnu_ld
=$with_gnu_ld
16453 # Do we need to explicitly link libc?
16455 case "x$archive_cmds_need_lc" in
16457 # Assume -lc should be added
16458 archive_cmds_need_lc
=yes
16460 if test "$enable_shared" = yes && test "$GCC" = yes; then
16461 case $archive_cmds in
16463 # FIXME: we may have to deal with multi-command sequences.
16466 # Test whether the compiler implicitly links with -lc since on some
16467 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16468 # to ld, don't add -lc before -lgcc.
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16470 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16471 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16472 $as_echo_n "(cached) " >&6
16475 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16478 (eval $ac_compile) 2>&5
16480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16481 test $ac_status = 0; } 2>conftest.err
; then
16484 libobjs
=conftest.
$ac_objext
16486 wl
=$lt_prog_compiler_wl
16487 pic_flag
=$lt_prog_compiler_pic
16493 lt_save_allow_undefined_flag
=$allow_undefined_flag
16494 allow_undefined_flag
=
16495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16496 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 test $ac_status = 0; }
16501 lt_cv_archive_cmds_need_lc
=no
16503 lt_cv_archive_cmds_need_lc
=yes
16505 allow_undefined_flag
=$lt_save_allow_undefined_flag
16507 cat conftest.err
1>&5
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16513 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16514 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16680 if test "$GCC" = yes; then
16682 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16683 *) lt_awk_arg
="/^libraries:/" ;;
16686 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16687 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16689 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16690 case $lt_search_path_spec in
16692 # if the path contains ";" then we assume it to be the separator
16693 # otherwise default to the standard path separator (i.e. ":") - it is
16694 # assumed that no part of a normal pathname contains ";" but that should
16695 # okay in the real world where ";" in dirpaths is itself problematic.
16696 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16699 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16702 # Ok, now we have the path, separated by spaces, we can step through it
16703 # and add multilib dir if necessary.
16704 lt_tmp_lt_search_path_spec
=
16705 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16706 for lt_sys_path
in $lt_search_path_spec; do
16707 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16708 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16710 test -d "$lt_sys_path" && \
16711 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16714 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16715 BEGIN {RS=" "; FS="/|\n";} {
16718 for (lt_i = NF; lt_i > 0; lt_i--) {
16719 if ($lt_i != "" && $lt_i != ".") {
16720 if ($lt_i == "..") {
16723 if (lt_count == 0) {
16724 lt_foo="/" $lt_i lt_foo;
16731 if (lt_foo != "") { lt_freq[lt_foo]++; }
16732 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16734 # AWK program above erroneously prepends '/' to C:/dos/paths
16737 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16738 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16740 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16742 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16744 library_names_spec
=
16745 libname_spec
='lib$name'
16749 postuninstall_cmds
=
16753 shlibpath_overrides_runpath
=unknown
16755 dynamic_linker
="$host_os ld.so"
16756 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16757 need_lib_prefix
=unknown
16758 hardcode_into_libs
=no
16760 # when you set need_version to no, make sure it does not cause -set_version
16761 # flags to be left without arguments
16762 need_version
=unknown
16767 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16768 shlibpath_var
=LIBPATH
16770 # AIX 3 has no versioning support, so we append a major version to the name.
16771 soname_spec
='${libname}${release}${shared_ext}$major'
16778 hardcode_into_libs
=yes
16779 if test "$host_cpu" = ia64
; then
16780 # AIX 5 supports IA64
16781 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16782 shlibpath_var
=LD_LIBRARY_PATH
16784 # With GCC up to 2.95.x, collect2 would create an import file
16785 # for dependence libraries. The import file would start with
16786 # the line `#! .'. This would cause the generated library to
16787 # depend on `.', always an invalid library. This was fixed in
16788 # development snapshots of GCC prior to 3.0.
16790 aix4 | aix4.
[01] | aix4.
[01].
*)
16791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16793 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16796 can_build_shared
=no
16800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16801 # soname into executable. Probably we can add versioning support to
16802 # collect2, so additional links can be useful in future.
16803 if test "$aix_use_runtimelinking" = yes; then
16804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16805 # instead of lib<name>.a to let people know that these are not
16806 # typical AIX shared libraries.
16807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 # We preserve .a as extension for shared libraries through AIX4.2
16810 # and later when we are not doing run time linking.
16811 library_names_spec
='${libname}${release}.a $libname.a'
16812 soname_spec
='${libname}${release}${shared_ext}$major'
16814 shlibpath_var
=LIBPATH
16821 # Since July 2007 AmigaOS4 officially supports .so libraries.
16822 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 library_names_spec
='$libname.ixlibrary $libname.a'
16827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16828 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'
16834 library_names_spec
='${libname}${shared_ext}'
16835 dynamic_linker
="$host_os ld.so"
16836 shlibpath_var
=LIBRARY_PATH
16842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 soname_spec
='${libname}${release}${shared_ext}$major'
16844 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16845 shlibpath_var
=LD_LIBRARY_PATH
16846 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16847 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16848 # the default ld.so.conf also contains /usr/contrib/lib and
16849 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16850 # libtool to hard-code these into programs
16853 cygwin
* | mingw
* | pw32
* | cegcc
*)
16854 version_type
=windows
16859 case $GCC,$host_os in
16860 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16861 library_names_spec
='$libname.dll.a'
16862 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16863 postinstall_cmds
='base_file=`basename \${file}`~
16864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16865 dldir=$destdir/`dirname \$dlpath`~
16866 test -d \$dldir || mkdir -p \$dldir~
16867 $install_prog $dir/$dlname \$dldir/$dlname~
16868 chmod a+x \$dldir/$dlname~
16869 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16870 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16872 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16873 dlpath=$dir/\$dldll~
16875 shlibpath_overrides_runpath
=yes
16879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16880 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16882 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16885 # MinGW DLLs use traditional 'lib' prefix
16886 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16889 # pw32 DLLs use 'pw' prefix rather than 'lib'
16890 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16899 dynamic_linker
='Win32 ld.exe'
16900 # FIXME: first we should search . and the directory the executable is in
16904 darwin
* | rhapsody
*)
16905 dynamic_linker
="$host_os dyld"
16906 version_type
=darwin
16909 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16910 soname_spec
='${libname}${release}${major}$shared_ext'
16911 shlibpath_overrides_runpath
=yes
16912 shlibpath_var
=DYLD_LIBRARY_PATH
16913 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16915 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16916 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16924 soname_spec
='${libname}${release}${shared_ext}$major'
16925 shlibpath_var
=LD_LIBRARY_PATH
16928 freebsd
* | dragonfly
*)
16929 # DragonFly does not have aout. When/if they implement a new
16930 # versioning mechanism, adjust this.
16931 if test -x /usr
/bin
/objformat
; then
16932 objformat
=`/usr/bin/objformat`
16935 freebsd
[23].
*) objformat
=aout
;;
16936 *) objformat
=elf
;;
16939 version_type
=freebsd-
$objformat
16940 case $version_type in
16942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16947 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16951 shlibpath_var
=LD_LIBRARY_PATH
16954 shlibpath_overrides_runpath
=yes
16956 freebsd3.
[01]* | freebsdelf3.
[01]*)
16957 shlibpath_overrides_runpath
=yes
16958 hardcode_into_libs
=yes
16960 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16961 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16962 shlibpath_overrides_runpath
=no
16963 hardcode_into_libs
=yes
16965 *) # from 4.6 on, and DragonFly
16966 shlibpath_overrides_runpath
=yes
16967 hardcode_into_libs
=yes
16976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16977 soname_spec
='${libname}${release}${shared_ext}$major'
16978 shlibpath_var
=LD_LIBRARY_PATH
16979 hardcode_into_libs
=yes
16986 dynamic_linker
="$host_os runtime_loader"
16987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16988 soname_spec
='${libname}${release}${shared_ext}$major'
16989 shlibpath_var
=LIBRARY_PATH
16990 shlibpath_overrides_runpath
=yes
16991 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16992 hardcode_into_libs
=yes
16995 hpux9
* | hpux10
* | hpux11
*)
16996 # Give a soname corresponding to the major version so that dld.sl refuses to
16997 # link against other versions.
17004 hardcode_into_libs
=yes
17005 dynamic_linker
="$host_os dld.so"
17006 shlibpath_var
=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009 soname_spec
='${libname}${release}${shared_ext}$major'
17010 if test "X$HPUX_IA64_MODE" = X32
; then
17011 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17013 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17015 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17019 hardcode_into_libs
=yes
17020 dynamic_linker
="$host_os dld.sl"
17021 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17022 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024 soname_spec
='${libname}${release}${shared_ext}$major'
17025 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17026 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17030 dynamic_linker
="$host_os dld.sl"
17031 shlibpath_var
=SHLIB_PATH
17032 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 soname_spec
='${libname}${release}${shared_ext}$major'
17037 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17038 postinstall_cmds
='chmod 555 $lib'
17039 # or fails outright, so override atomically:
17040 install_override_mode
=555
17047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17048 soname_spec
='${libname}${release}${shared_ext}$major'
17049 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17050 shlibpath_var
=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath
=no
17052 hardcode_into_libs
=yes
17055 irix5
* | irix6
* | nonstopux
*)
17057 nonstopux
*) version_type
=nonstopux
;;
17059 if test "$lt_cv_prog_gnu_ld" = yes; then
17067 soname_spec
='${libname}${release}${shared_ext}$major'
17068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17070 irix5
* | nonstopux
*)
17071 libsuff
= shlibsuff
=
17074 case $LD in # libtool.m4 will add one of these switches to LD
17075 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17076 libsuff
= shlibsuff
= libmagic
=32-bit;;
17077 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17078 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17079 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17080 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17081 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17085 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17086 shlibpath_overrides_runpath
=no
17087 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17088 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17089 hardcode_into_libs
=yes
17092 # No shared lib support for Linux oldld, aout, or coff.
17093 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17097 # This must be Linux ELF.
17098 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 soname_spec
='${libname}${release}${shared_ext}$major'
17104 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17105 shlibpath_var
=LD_LIBRARY_PATH
17106 shlibpath_overrides_runpath
=no
17108 # Some binutils ld are patched to set DT_RUNPATH
17109 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17110 $as_echo_n "(cached) " >&6
17112 lt_cv_shlibpath_overrides_runpath
=no
17113 save_LDFLAGS
=$LDFLAGS
17114 save_libdir
=$libdir
17115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17128 if ac_fn_c_try_link
"$LINENO"; then :
17129 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17130 lt_cv_shlibpath_overrides_runpath
=yes
17133 rm -f core conftest.err conftest.
$ac_objext \
17134 conftest
$ac_exeext conftest.
$ac_ext
17135 LDFLAGS
=$save_LDFLAGS
17136 libdir
=$save_libdir
17140 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17142 # This implies no fast_install, which is unacceptable.
17143 # Some rework will be needed to allow for fast_install
17144 # before this can be enabled.
17145 hardcode_into_libs
=yes
17147 # Append ld.so.conf contents to the search path
17148 if test -f /etc
/ld.so.conf
; then
17149 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' ' '`
17150 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17153 # We used to test for /lib/ld.so.1 and disable shared libraries on
17154 # powerpc, because MkLinux only supported shared libraries with the
17155 # GNU dynamic linker. Since this was broken with cross compilers,
17156 # most powerpc-linux boxes support dynamic linking these days and
17157 # people can always --disable-shared, the test was removed, and we
17158 # assume the GNU/Linux dynamic linker is in use.
17159 dynamic_linker
='GNU/Linux ld.so'
17166 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17168 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17169 dynamic_linker
='NetBSD (a.out) ld.so'
17171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17172 soname_spec
='${libname}${release}${shared_ext}$major'
17173 dynamic_linker
='NetBSD ld.elf_so'
17175 shlibpath_var
=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath
=yes
17177 hardcode_into_libs
=yes
17182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 shlibpath_var
=LD_LIBRARY_PATH
17184 shlibpath_overrides_runpath
=yes
17191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192 soname_spec
='${libname}${release}${shared_ext}$major'
17193 shlibpath_var
=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath
=no
17195 hardcode_into_libs
=yes
17196 dynamic_linker
='ldqnx.so'
17201 sys_lib_dlsearch_path_spec
="/usr/lib"
17203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17205 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17206 *) need_version
=no
;;
17208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17209 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17210 shlibpath_var
=LD_LIBRARY_PATH
17211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17213 openbsd2.
[89] | openbsd2.
[89].
*)
17214 shlibpath_overrides_runpath
=no
17217 shlibpath_overrides_runpath
=yes
17221 shlibpath_overrides_runpath
=yes
17226 libname_spec
='$name'
17229 library_names_spec
='$libname${shared_ext} $libname.a'
17230 dynamic_linker
='OS/2 ld.exe'
17231 shlibpath_var
=LIBPATH
17234 osf3
* | osf4
* | osf5
*)
17238 soname_spec
='${libname}${release}${shared_ext}$major'
17239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 shlibpath_var
=LD_LIBRARY_PATH
17241 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17242 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254 soname_spec
='${libname}${release}${shared_ext}$major'
17255 shlibpath_var
=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath
=yes
17257 hardcode_into_libs
=yes
17258 # ldd complains unless libraries are executable
17259 postinstall_cmds
='chmod +x $lib'
17264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17265 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17266 shlibpath_var
=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath
=yes
17268 if test "$with_gnu_ld" = yes; then
17276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277 soname_spec
='${libname}${release}${shared_ext}$major'
17278 shlibpath_var
=LD_LIBRARY_PATH
17279 case $host_vendor in
17281 shlibpath_overrides_runpath
=no
17283 runpath_var
=LD_RUN_PATH
17291 shlibpath_overrides_runpath
=no
17292 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17298 if test -d /usr
/nec
;then
17300 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17301 soname_spec
='$libname${shared_ext}.$major'
17302 shlibpath_var
=LD_LIBRARY_PATH
17306 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17307 version_type
=freebsd-elf
17310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17311 soname_spec
='${libname}${release}${shared_ext}$major'
17312 shlibpath_var
=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath
=yes
17314 hardcode_into_libs
=yes
17315 if test "$with_gnu_ld" = yes; then
17316 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17318 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17321 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17325 sys_lib_dlsearch_path_spec
='/usr/lib'
17329 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 shlibpath_var
=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath
=no
17336 hardcode_into_libs
=yes
17341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342 soname_spec
='${libname}${release}${shared_ext}$major'
17343 shlibpath_var
=LD_LIBRARY_PATH
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17351 $as_echo "$dynamic_linker" >&6; }
17352 test "$dynamic_linker" = no
&& can_build_shared
=no
17354 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17355 if test "$GCC" = yes; then
17356 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17359 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17360 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17362 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17363 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17458 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17460 if test -n "$hardcode_libdir_flag_spec" ||
17461 test -n "$runpath_var" ||
17462 test "X$hardcode_automatic" = "Xyes" ; then
17464 # We can hardcode non-existent directories.
17465 if test "$hardcode_direct" != no
&&
17466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17467 # have to relink, otherwise we might link with an installed library
17468 # when we should be linking with a yet-to-be-installed one
17469 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17470 test "$hardcode_minus_L" != no
; then
17471 # Linking always hardcodes the temporary library directory.
17472 hardcode_action
=relink
17474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17475 hardcode_action
=immediate
17478 # We cannot hardcode anything, or else we can only hardcode existing
17480 hardcode_action
=unsupported
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17483 $as_echo "$hardcode_action" >&6; }
17485 if test "$hardcode_action" = relink ||
17486 test "$inherit_rpath" = yes; then
17487 # Fast installation is not supported
17488 enable_fast_install
=no
17489 elif test "$shlibpath_overrides_runpath" = yes ||
17490 test "$enable_shared" = no
; then
17491 # Fast installation is not necessary
17492 enable_fast_install
=needless
17500 if test "x$enable_dlopen" != xyes
; then
17501 enable_dlopen
=unknown
17502 enable_dlopen_self
=unknown
17503 enable_dlopen_self_static
=unknown
17510 lt_cv_dlopen
="load_add_on"
17512 lt_cv_dlopen_self
=yes
17515 mingw
* | pw32
* | cegcc
*)
17516 lt_cv_dlopen
="LoadLibrary"
17521 lt_cv_dlopen
="dlopen"
17526 # if libdl is installed we need to link against it
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17528 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17530 $as_echo_n "(cached) " >&6
17532 ac_check_lib_save_LIBS
=$LIBS
17534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17537 /* Override any GCC internal prototype to avoid an error.
17538 Use char because int might match the return type of a GCC
17539 builtin and then its argument prototype would still apply. */
17552 if ac_fn_c_try_link
"$LINENO"; then :
17553 ac_cv_lib_dl_dlopen
=yes
17555 ac_cv_lib_dl_dlopen
=no
17557 rm -f core conftest.err conftest.
$ac_objext \
17558 conftest
$ac_exeext conftest.
$ac_ext
17559 LIBS
=$ac_check_lib_save_LIBS
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17563 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17564 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17567 lt_cv_dlopen
="dyld"
17569 lt_cv_dlopen_self
=yes
17576 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17577 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17578 lt_cv_dlopen
="shl_load"
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17581 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17582 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17583 $as_echo_n "(cached) " >&6
17585 ac_check_lib_save_LIBS
=$LIBS
17587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17588 /* end confdefs.h. */
17590 /* Override any GCC internal prototype to avoid an error.
17591 Use char because int might match the return type of a GCC
17592 builtin and then its argument prototype would still apply. */
17600 return shl_load ();
17605 if ac_fn_c_try_link
"$LINENO"; then :
17606 ac_cv_lib_dld_shl_load
=yes
17608 ac_cv_lib_dld_shl_load
=no
17610 rm -f core conftest.err conftest.
$ac_objext \
17611 conftest
$ac_exeext conftest.
$ac_ext
17612 LIBS
=$ac_check_lib_save_LIBS
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17615 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17616 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17617 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17619 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17620 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17621 lt_cv_dlopen
="dlopen"
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17625 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17626 $as_echo_n "(cached) " >&6
17628 ac_check_lib_save_LIBS
=$LIBS
17630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17633 /* Override any GCC internal prototype to avoid an error.
17634 Use char because int might match the return type of a GCC
17635 builtin and then its argument prototype would still apply. */
17648 if ac_fn_c_try_link
"$LINENO"; then :
17649 ac_cv_lib_dl_dlopen
=yes
17651 ac_cv_lib_dl_dlopen
=no
17653 rm -f core conftest.err conftest.
$ac_objext \
17654 conftest
$ac_exeext conftest.
$ac_ext
17655 LIBS
=$ac_check_lib_save_LIBS
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17659 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17660 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17663 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17664 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17665 $as_echo_n "(cached) " >&6
17667 ac_check_lib_save_LIBS
=$LIBS
17668 LIBS
="-lsvld $LIBS"
17669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17672 /* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17687 if ac_fn_c_try_link
"$LINENO"; then :
17688 ac_cv_lib_svld_dlopen
=yes
17690 ac_cv_lib_svld_dlopen
=no
17692 rm -f core conftest.err conftest.
$ac_objext \
17693 conftest
$ac_exeext conftest.
$ac_ext
17694 LIBS
=$ac_check_lib_save_LIBS
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17697 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17698 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17699 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17702 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17706 ac_check_lib_save_LIBS
=$LIBS
17708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17711 /* Override any GCC internal prototype to avoid an error.
17712 Use char because int might match the return type of a GCC
17713 builtin and then its argument prototype would still apply. */
17721 return dld_link ();
17726 if ac_fn_c_try_link
"$LINENO"; then :
17727 ac_cv_lib_dld_dld_link
=yes
17729 ac_cv_lib_dld_dld_link
=no
17731 rm -f core conftest.err conftest.
$ac_objext \
17732 conftest
$ac_exeext conftest.
$ac_ext
17733 LIBS
=$ac_check_lib_save_LIBS
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17736 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17737 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17738 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17759 if test "x$lt_cv_dlopen" != xno
; then
17765 case $lt_cv_dlopen in
17767 save_CPPFLAGS
="$CPPFLAGS"
17768 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17770 save_LDFLAGS
="$LDFLAGS"
17771 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17774 LIBS
="$lt_cv_dlopen_libs $LIBS"
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17777 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17778 if test "${lt_cv_dlopen_self+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17781 if test "$cross_compiling" = yes; then :
17782 lt_cv_dlopen_self
=cross
17784 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17785 lt_status
=$lt_dlunknown
17786 cat > conftest.
$ac_ext <<_LT_EOF
17787 #line 17787 "configure"
17788 #include "confdefs.h"
17797 # define LT_DLGLOBAL RTLD_GLOBAL
17800 # define LT_DLGLOBAL DL_GLOBAL
17802 # define LT_DLGLOBAL 0
17806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17807 find out it does not work in some platform. */
17808 #ifndef LT_DLLAZY_OR_NOW
17810 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17813 # define LT_DLLAZY_OR_NOW DL_LAZY
17816 # define LT_DLLAZY_OR_NOW RTLD_NOW
17819 # define LT_DLLAZY_OR_NOW DL_NOW
17821 # define LT_DLLAZY_OR_NOW 0
17828 /* When -fvisbility=hidden is used, assume the code has been annotated
17829 correspondingly for the symbols needed. */
17830 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17831 void fnord () __attribute__((visibility("default")));
17834 void fnord () { int i=42; }
17837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17838 int status = $lt_dlunknown;
17842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17845 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17846 else puts (dlerror ());
17848 /* dlclose (self); */
17856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17857 (eval $ac_link) 2>&5
17859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17860 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17861 (.
/conftest
; exit; ) >&5 2>/dev
/null
17863 case x
$lt_status in
17864 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17865 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17866 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17869 # compilation failed
17870 lt_cv_dlopen_self
=no
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17878 $as_echo "$lt_cv_dlopen_self" >&6; }
17880 if test "x$lt_cv_dlopen_self" = xyes
; then
17881 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17883 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17884 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17885 $as_echo_n "(cached) " >&6
17887 if test "$cross_compiling" = yes; then :
17888 lt_cv_dlopen_self_static
=cross
17890 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17891 lt_status
=$lt_dlunknown
17892 cat > conftest.
$ac_ext <<_LT_EOF
17893 #line 17893 "configure"
17894 #include "confdefs.h"
17903 # define LT_DLGLOBAL RTLD_GLOBAL
17906 # define LT_DLGLOBAL DL_GLOBAL
17908 # define LT_DLGLOBAL 0
17912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17913 find out it does not work in some platform. */
17914 #ifndef LT_DLLAZY_OR_NOW
17916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17919 # define LT_DLLAZY_OR_NOW DL_LAZY
17922 # define LT_DLLAZY_OR_NOW RTLD_NOW
17925 # define LT_DLLAZY_OR_NOW DL_NOW
17927 # define LT_DLLAZY_OR_NOW 0
17934 /* When -fvisbility=hidden is used, assume the code has been annotated
17935 correspondingly for the symbols needed. */
17936 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17937 void fnord () __attribute__((visibility("default")));
17940 void fnord () { int i=42; }
17943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17944 int status = $lt_dlunknown;
17948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17951 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17952 else puts (dlerror ());
17954 /* dlclose (self); */
17962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17963 (eval $ac_link) 2>&5
17965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17966 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17967 (.
/conftest
; exit; ) >&5 2>/dev
/null
17969 case x
$lt_status in
17970 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17971 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17972 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17975 # compilation failed
17976 lt_cv_dlopen_self_static
=no
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17984 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17987 CPPFLAGS
="$save_CPPFLAGS"
17988 LDFLAGS
="$save_LDFLAGS"
17993 case $lt_cv_dlopen_self in
17994 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17995 *) enable_dlopen_self
=unknown
;;
17998 case $lt_cv_dlopen_self_static in
17999 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18000 *) enable_dlopen_self_static
=unknown
;;
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18023 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18024 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18025 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18026 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18028 $as_echo "yes" >&6; }
18030 # FIXME - insert some real tests, host_os isn't really good enough
18033 if test -n "$STRIP" ; then
18034 striplib
="$STRIP -x"
18035 old_striplib
="$STRIP -S"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18037 $as_echo "yes" >&6; }
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040 $as_echo "no" >&6; }
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18045 $as_echo "no" >&6; }
18061 # Report which library types will actually be built
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18063 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18065 $as_echo "$can_build_shared" >&6; }
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18068 $as_echo_n "checking whether to build shared libraries... " >&6; }
18069 test "$can_build_shared" = "no" && enable_shared
=no
18071 # On AIX, shared libraries and static libraries use the same namespace, and
18072 # are all built from PIC.
18075 test "$enable_shared" = yes && enable_static
=no
18076 if test -n "$RANLIB"; then
18077 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18078 postinstall_cmds
='$RANLIB $lib'
18083 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18084 test "$enable_shared" = yes && enable_static
=no
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18089 $as_echo "$enable_shared" >&6; }
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18092 $as_echo_n "checking whether to build static libraries... " >&6; }
18093 # Make sure either enable_shared or enable_static is yes.
18094 test "$enable_shared" = yes || enable_static
=yes
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18096 $as_echo "$enable_static" >&6; }
18103 ac_cpp
='$CPP $CPPFLAGS'
18104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18110 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18112 (test "X$CXX" != "Xg++"))) ; then
18114 ac_cpp
='$CXXCPP $CPPFLAGS'
18115 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18119 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18120 if test -z "$CXXCPP"; then
18121 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18122 $as_echo_n "(cached) " >&6
18124 # Double quotes because CXXCPP needs to be expanded
18125 for CXXCPP
in "$CXX -E" "/lib/cpp"
18127 ac_preproc_ok
=false
18128 for ac_cxx_preproc_warn_flag
in '' yes
18130 # Use a header file that comes with gcc, so configuring glibc
18131 # with a fresh cross-compiler works.
18132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18133 # <limits.h> exists even on freestanding compilers.
18134 # On the NeXT, cc -E runs the code through the compiler's parser,
18135 # not just through cpp. "Syntax error" is here to catch this case.
18136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18139 # include <limits.h>
18141 # include <assert.h>
18145 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18148 # Broken: fails on valid input.
18151 rm -f conftest.err conftest.
$ac_ext
18153 # OK, works on sane cases. Now check whether nonexistent headers
18154 # can be detected and how.
18155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h. */
18157 #include <ac_nonexistent.h>
18159 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18160 # Broken: success on invalid input.
18163 # Passes both tests.
18167 rm -f conftest.err conftest.
$ac_ext
18170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18171 rm -f conftest.err conftest.
$ac_ext
18172 if $ac_preproc_ok; then :
18177 ac_cv_prog_CXXCPP
=$CXXCPP
18180 CXXCPP
=$ac_cv_prog_CXXCPP
18182 ac_cv_prog_CXXCPP
=$CXXCPP
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18185 $as_echo "$CXXCPP" >&6; }
18186 ac_preproc_ok
=false
18187 for ac_cxx_preproc_warn_flag
in '' yes
18189 # Use a header file that comes with gcc, so configuring glibc
18190 # with a fresh cross-compiler works.
18191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18192 # <limits.h> exists even on freestanding compilers.
18193 # On the NeXT, cc -E runs the code through the compiler's parser,
18194 # not just through cpp. "Syntax error" is here to catch this case.
18195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18198 # include <limits.h>
18200 # include <assert.h>
18204 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18207 # Broken: fails on valid input.
18210 rm -f conftest.err conftest.
$ac_ext
18212 # OK, works on sane cases. Now check whether nonexistent headers
18213 # can be detected and how.
18214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18216 #include <ac_nonexistent.h>
18218 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18219 # Broken: success on invalid input.
18222 # Passes both tests.
18226 rm -f conftest.err conftest.
$ac_ext
18229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18230 rm -f conftest.err conftest.
$ac_ext
18231 if $ac_preproc_ok; then :
18234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18236 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18237 See \`config.log' for more details." "$LINENO" 5; }
18241 ac_cpp
='$CPP $CPPFLAGS'
18242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18247 _lt_caught_CXX_error
=yes
18251 ac_cpp
='$CXXCPP $CPPFLAGS'
18252 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18253 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18254 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18256 archive_cmds_need_lc_CXX
=no
18257 allow_undefined_flag_CXX
=
18258 always_export_symbols_CXX
=no
18259 archive_expsym_cmds_CXX
=
18260 compiler_needs_object_CXX
=no
18261 export_dynamic_flag_spec_CXX
=
18262 hardcode_direct_CXX
=no
18263 hardcode_direct_absolute_CXX
=no
18264 hardcode_libdir_flag_spec_CXX
=
18265 hardcode_libdir_flag_spec_ld_CXX
=
18266 hardcode_libdir_separator_CXX
=
18267 hardcode_minus_L_CXX
=no
18268 hardcode_shlibpath_var_CXX
=unsupported
18269 hardcode_automatic_CXX
=no
18270 inherit_rpath_CXX
=no
18272 module_expsym_cmds_CXX
=
18273 link_all_deplibs_CXX
=unknown
18274 old_archive_cmds_CXX
=$old_archive_cmds
18275 reload_flag_CXX
=$reload_flag
18276 reload_cmds_CXX
=$reload_cmds
18277 no_undefined_flag_CXX
=
18278 whole_archive_flag_spec_CXX
=
18279 enable_shared_with_static_runtimes_CXX
=no
18281 # Source file extension for C++ test sources.
18284 # Object file extension for compiled C++ test sources.
18288 # No sense in running all these tests if we already determined that
18289 # the CXX compiler isn't working. Some variables (like enable_shared)
18290 # are currently assumed to apply to all compilers on this platform,
18291 # and will be corrupted by setting them based on a non-working compiler.
18292 if test "$_lt_caught_CXX_error" != yes; then
18293 # Code to be used in simple compile tests
18294 lt_simple_compile_test_code
="int some_variable = 0;"
18296 # Code to be used in simple link tests
18297 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18306 # If no C compiler was specified, use CC.
18309 # If no C compiler flags were specified, use CFLAGS.
18310 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18312 # Allow CC to be a program name with arguments.
18316 # save warnings/boilerplate of simple test code
18317 ac_outfile
=conftest.
$ac_objext
18318 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18319 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18320 _lt_compiler_boilerplate
=`cat conftest.err`
18323 ac_outfile
=conftest.
$ac_objext
18324 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18325 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18326 _lt_linker_boilerplate
=`cat conftest.err`
18330 # Allow CC to be a program name with arguments.
18335 lt_save_with_gnu_ld
=$with_gnu_ld
18336 lt_save_path_LD
=$lt_cv_path_LD
18337 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18338 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18340 $as_unset lt_cv_prog_gnu_ld
18342 if test -n "${lt_cv_path_LDCXX+set}"; then
18343 lt_cv_path_LD
=$lt_cv_path_LDCXX
18345 $as_unset lt_cv_path_LD
18347 test -z "${LDCXX+set}" || LD
=$LDCXX
18351 for cc_temp
in $compiler""; do
18353 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18354 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18359 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18362 if test -n "$compiler"; then
18363 # We don't want -fno-exception when compiling C++ code, so set the
18364 # no_builtin_flag separately
18365 if test "$GXX" = yes; then
18366 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18368 lt_prog_compiler_no_builtin_flag_CXX
=
18371 if test "$GXX" = yes; then
18372 # Set up default GNU C++ configuration
18376 # Check whether --with-gnu-ld was given.
18377 if test "${with_gnu_ld+set}" = set; then :
18378 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18384 if test "$GCC" = yes; then
18385 # Check if gcc -print-prog-name=ld gives a path.
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18387 $as_echo_n "checking for ld used by $CC... " >&6; }
18390 # gcc leaves a trailing carriage return which upsets mingw
18391 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18393 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18396 # Accept absolute paths.
18398 re_direlt
='/[^/][^/]*/\.\./'
18399 # Canonicalize the pathname of ld
18400 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18401 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18402 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18404 test -z "$LD" && LD
="$ac_prog"
18407 # If it fails, then pretend we aren't using GCC.
18411 # If it is relative, then search for the first ld in PATH.
18412 with_gnu_ld
=unknown
18415 elif test "$with_gnu_ld" = yes; then
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18417 $as_echo_n "checking for GNU ld... " >&6; }
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18420 $as_echo_n "checking for non-GNU ld... " >&6; }
18422 if test "${lt_cv_path_LD+set}" = set; then :
18423 $as_echo_n "(cached) " >&6
18425 if test -z "$LD"; then
18426 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18427 for ac_dir
in $PATH; do
18429 test -z "$ac_dir" && ac_dir
=.
18430 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18431 lt_cv_path_LD
="$ac_dir/$ac_prog"
18432 # Check to see if the program is GNU ld. I'd rather use --version,
18433 # but apparently some variants of GNU ld only accept -v.
18434 # Break only if it was the GNU/non-GNU ld that we prefer.
18435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18436 *GNU
* |
*'with BFD'*)
18437 test "$with_gnu_ld" != no
&& break
18440 test "$with_gnu_ld" != yes && break
18447 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18451 LD
="$lt_cv_path_LD"
18452 if test -n "$LD"; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18454 $as_echo "$LD" >&6; }
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18457 $as_echo "no" >&6; }
18459 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18461 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18462 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18463 $as_echo_n "(cached) " >&6
18465 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18466 case `$LD -v 2>&1 </dev/null` in
18467 *GNU
* |
*'with BFD'*)
18468 lt_cv_prog_gnu_ld
=yes
18471 lt_cv_prog_gnu_ld
=no
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18476 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18477 with_gnu_ld
=$lt_cv_prog_gnu_ld
18485 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18486 # archiving commands below assume that GNU ld is being used.
18487 if test "$with_gnu_ld" = yes; then
18488 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18489 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'
18491 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18492 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18494 # If archive_cmds runs LD, not CC, wlarc should be empty
18495 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18496 # investigate it a little bit more. (MM)
18499 # ancient GNU ld didn't support --whole-archive et. al.
18500 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18501 $GREP 'no-whole-archive' > /dev
/null
; then
18502 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18504 whole_archive_flag_spec_CXX
=
18510 # A generic and very simple default shared library creation
18511 # command for GNU C++ for the case where it uses the native
18512 # linker, instead of GNU ld. If possible, this setting should
18513 # overridden to take advantage of the native linker features on
18514 # the platform it is being used on.
18515 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18518 # Commands to make compiler produce verbose output that lists
18519 # what "hidden" libraries, object files and flags are used when
18520 # linking a shared library.
18521 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18529 # PORTME: fill in a description of your system's C++ link characteristics
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18531 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18535 # FIXME: insert proper C++ library support
18539 if test "$host_cpu" = ia64
; then
18540 # On IA64, the linker does run time linking by default, so we don't
18541 # have to do anything special.
18542 aix_use_runtimelinking
=no
18543 exp_sym_flag
='-Bexport'
18546 aix_use_runtimelinking
=no
18548 # Test if we are trying to use run time linking or normal
18549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18550 # need to do runtime linking.
18551 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18552 for ld_flag
in $LDFLAGS; do
18555 aix_use_runtimelinking
=yes
18563 exp_sym_flag
='-bexport'
18564 no_entry_flag
='-bnoentry'
18567 # When large executables or shared objects are built, AIX ld can
18568 # have problems creating the table of contents. If linking a library
18569 # or program results in "error TOC overflow" add -mminimal-toc to
18570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18573 archive_cmds_CXX
=''
18574 hardcode_direct_CXX
=yes
18575 hardcode_direct_absolute_CXX
=yes
18576 hardcode_libdir_separator_CXX
=':'
18577 link_all_deplibs_CXX
=yes
18578 file_list_spec_CXX
='${wl}-f,'
18580 if test "$GXX" = yes; then
18581 case $host_os in aix4.
[012]|aix4.
[012].
*)
18582 # We only want to do this on AIX 4.2 and lower, the check
18583 # below for broken collect2 doesn't work under 4.3+
18584 collect2name
=`${CC} -print-prog-name=collect2`
18585 if test -f "$collect2name" &&
18586 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18588 # We have reworked collect2
18591 # We have old collect2
18592 hardcode_direct_CXX
=unsupported
18593 # It fails to find uninstalled libraries when the uninstalled
18594 # path is not listed in the libpath. Setting hardcode_minus_L
18595 # to unsupported forces relinking
18596 hardcode_minus_L_CXX
=yes
18597 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18598 hardcode_libdir_separator_CXX
=
18601 shared_flag
='-shared'
18602 if test "$aix_use_runtimelinking" = yes; then
18603 shared_flag
="$shared_flag "'${wl}-G'
18607 if test "$host_cpu" = ia64
; then
18608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18609 # chokes on -Wl,-G. The following line is correct:
18612 if test "$aix_use_runtimelinking" = yes; then
18613 shared_flag
='${wl}-G'
18615 shared_flag
='${wl}-bM:SRE'
18620 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18621 # It seems that -bexpall does not export symbols beginning with
18622 # underscore (_), so it is better to generate a list of symbols to
18624 always_export_symbols_CXX
=yes
18625 if test "$aix_use_runtimelinking" = yes; then
18626 # Warning - without using the other runtime loading flags (-brtl),
18627 # -berok will link without error, but may produce a broken library.
18628 allow_undefined_flag_CXX
='-berok'
18629 # Determine the default libpath from the value encoded in an empty
18631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18632 /* end confdefs.h. */
18642 if ac_fn_cxx_try_link
"$LINENO"; then :
18644 lt_aix_libpath_sed
='
18645 /Import File Strings/,/^$/ {
18651 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18652 # Check for a 64-bit object if we didn't find anything.
18653 if test -z "$aix_libpath"; then
18654 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18657 rm -f core conftest.err conftest.
$ac_objext \
18658 conftest
$ac_exeext conftest.
$ac_ext
18659 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18661 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18663 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"
18665 if test "$host_cpu" = ia64
; then
18666 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18667 allow_undefined_flag_CXX
="-z nodefs"
18668 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"
18670 # Determine the default libpath from the value encoded in an
18671 # empty executable.
18672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18683 if ac_fn_cxx_try_link
"$LINENO"; then :
18685 lt_aix_libpath_sed
='
18686 /Import File Strings/,/^$/ {
18692 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18693 # Check for a 64-bit object if we didn't find anything.
18694 if test -z "$aix_libpath"; then
18695 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18698 rm -f core conftest.err conftest.
$ac_objext \
18699 conftest
$ac_exeext conftest.
$ac_ext
18700 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18702 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18703 # Warning - without using the other run time loading flags,
18704 # -berok will link without error, but may produce a broken library.
18705 no_undefined_flag_CXX
=' ${wl}-bernotok'
18706 allow_undefined_flag_CXX
=' ${wl}-berok'
18707 if test "$with_gnu_ld" = yes; then
18708 # We only use this code for GNU lds that support --whole-archive.
18709 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18711 # Exported symbols can be pulled into shared objects from archives
18712 whole_archive_flag_spec_CXX
='$convenience'
18714 archive_cmds_need_lc_CXX
=yes
18715 # This is similar to how AIX traditionally builds its shared
18717 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'
18723 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18724 allow_undefined_flag_CXX
=unsupported
18725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18726 # support --undefined. This deserves some investigation. FIXME
18727 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18734 case $cc_basename in
18736 # FIXME: insert proper C++ library support
18742 cygwin
* | mingw
* | pw32
* | cegcc
*)
18743 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18744 # as there is no search path for DLLs.
18745 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18746 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18747 allow_undefined_flag_CXX
=unsupported
18748 always_export_symbols_CXX
=no
18749 enable_shared_with_static_runtimes_CXX
=yes
18751 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18752 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'
18753 # If the export-symbols file already is a .def file (1st line
18754 # is EXPORTS), use it as is; otherwise, prepend...
18755 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18756 cp $export_symbols $output_objdir/$soname.def;
18758 echo EXPORTS > $output_objdir/$soname.def;
18759 cat $export_symbols >> $output_objdir/$soname.def;
18761 $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'
18766 darwin
* | rhapsody
*)
18769 archive_cmds_need_lc_CXX
=no
18770 hardcode_direct_CXX
=no
18771 hardcode_automatic_CXX
=yes
18772 hardcode_shlibpath_var_CXX
=unsupported
18773 if test "$lt_cv_ld_force_load" = "yes"; then
18774 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\"`'
18776 whole_archive_flag_spec_CXX
=''
18778 link_all_deplibs_CXX
=yes
18779 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18780 case $cc_basename in
18781 ifort
*) _lt_dar_can_shared
=yes ;;
18782 *) _lt_dar_can_shared
=$GCC ;;
18784 if test "$_lt_dar_can_shared" = "yes"; then
18785 output_verbose_link_cmd
=func_echo_all
18786 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}"
18787 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18788 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}"
18789 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}"
18790 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18791 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}"
18792 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}"
18802 case $cc_basename in
18804 # FIXME: insert proper C++ library support
18808 # Green Hills C++ Compiler
18809 # FIXME: insert proper C++ library support
18813 # FIXME: insert proper C++ library support
18820 # C++ shared libraries reported to be fairly broken before
18826 archive_cmds_need_lc_CXX
=no
18829 freebsd
* | dragonfly
*)
18830 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18839 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18840 link_all_deplibs_CXX
=yes
18844 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18845 hardcode_libdir_separator_CXX
=:
18846 export_dynamic_flag_spec_CXX
='${wl}-E'
18847 hardcode_direct_CXX
=yes
18848 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18849 # but as the default
18850 # location of the library.
18852 case $cc_basename in
18854 # FIXME: insert proper C++ library support
18858 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'
18859 # Commands to make compiler produce verbose output that lists
18860 # what "hidden" libraries, object files and flags are used when
18861 # linking a shared library.
18863 # There doesn't appear to be a way to prevent this compiler from
18864 # explicitly linking system object files so we need to strip them
18865 # from the output so that they don't get included in the library
18867 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"'
18870 if test "$GXX" = yes; then
18871 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'
18873 # FIXME: insert proper C++ library support
18881 if test $with_gnu_ld = no
; then
18882 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18883 hardcode_libdir_separator_CXX
=:
18889 export_dynamic_flag_spec_CXX
='${wl}-E'
18895 hardcode_direct_CXX
=no
18896 hardcode_shlibpath_var_CXX
=no
18899 hardcode_direct_CXX
=yes
18900 hardcode_direct_absolute_CXX
=yes
18901 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18902 # but as the default
18903 # location of the library.
18907 case $cc_basename in
18909 # FIXME: insert proper C++ library support
18915 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18918 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18921 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18924 # Commands to make compiler produce verbose output that lists
18925 # what "hidden" libraries, object files and flags are used when
18926 # linking a shared library.
18928 # There doesn't appear to be a way to prevent this compiler from
18929 # explicitly linking system object files so we need to strip them
18930 # from the output so that they don't get included in the library
18932 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"'
18935 if test "$GXX" = yes; then
18936 if test $with_gnu_ld = no
; then
18939 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18942 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18945 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'
18950 # FIXME: insert proper C++ library support
18958 hardcode_direct_CXX
=no
18959 hardcode_shlibpath_var_CXX
=no
18960 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18961 export_dynamic_flag_spec_CXX
='${wl}-E'
18962 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18963 # Instead, shared libraries are loaded at an image base (0x10000000 by
18964 # default) and relocated if they conflict, which is a slow very memory
18965 # consuming and fragmenting process. To avoid this, we pick a random,
18966 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18967 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18968 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'
18969 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'
18972 case $cc_basename in
18975 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'
18977 # Archives containing C++ object files must be created using
18978 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18979 # necessary to make sure instantiated templates are included
18981 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18984 if test "$GXX" = yes; then
18985 if test "$with_gnu_ld" = no
; then
18986 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'
18988 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'
18991 link_all_deplibs_CXX
=yes
18994 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18995 hardcode_libdir_separator_CXX
=:
18996 inherit_rpath_CXX
=yes
18999 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19000 case $cc_basename in
19002 # Kuck and Associates, Inc. (KAI) C++ Compiler
19004 # KCC will only create a shared library if the output file
19005 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19006 # to its proper name (with version) after linking.
19007 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'
19008 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'
19009 # Commands to make compiler produce verbose output that lists
19010 # what "hidden" libraries, object files and flags are used when
19011 # linking a shared library.
19013 # There doesn't appear to be a way to prevent this compiler from
19014 # explicitly linking system object files so we need to strip them
19015 # from the output so that they don't get included in the library
19017 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"'
19019 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19020 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19022 # Archives containing C++ object files must be created using
19023 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19024 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19029 # version 8.0 and above of icpc choke on multiply defined symbols
19030 # if we add $predep_objects and $postdep_objects, however 7.1 and
19031 # earlier do not add the objects themselves.
19032 case `$CC -V 2>&1` in
19034 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19035 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'
19037 *) # Version 8.0 or newer
19040 ia64
*) tmp_idyn
=' -i_dynamic';;
19042 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19043 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'
19046 archive_cmds_need_lc_CXX
=no
19047 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19048 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19049 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19052 # Portland Group C++ compiler
19054 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19055 prelink_cmds_CXX
='tpldir=Template.dir~
19057 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19058 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19059 old_archive_cmds_CXX
='tpldir=Template.dir~
19061 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19062 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19064 archive_cmds_CXX
='tpldir=Template.dir~
19066 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19067 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19068 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19070 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19071 $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'
19073 *) # Version 6 and above use weak symbols
19074 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19075 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'
19079 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19080 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19081 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'
19085 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086 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'
19088 runpath_var
=LD_RUN_PATH
19089 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19090 hardcode_libdir_separator_CXX
=:
19092 # Commands to make compiler produce verbose output that lists
19093 # what "hidden" libraries, object files and flags are used when
19094 # linking a shared library.
19096 # There doesn't appear to be a way to prevent this compiler from
19097 # explicitly linking system object files so we need to strip them
19098 # from the output so that they don't get included in the library
19100 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'
19102 xl
* | mpixl
* | bgxl
*)
19103 # IBM XL 8.0 on PPC, with GNU ld
19104 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19105 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19106 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19107 if test "x$supports_anon_versioning" = xyes
; then
19108 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19110 echo "local: *; };" >> $output_objdir/$libname.ver~
19111 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19115 case `$CC -V 2>&1 | sed 5q` in
19118 no_undefined_flag_CXX
=' -zdefs'
19119 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19120 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'
19121 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19122 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'
19123 compiler_needs_object_CXX
=yes
19125 # Not sure whether something based on
19126 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19128 output_verbose_link_cmd
='func_echo_all'
19130 # Archives containing C++ object files must be created using
19131 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19132 # necessary to make sure instantiated templates are included
19134 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19142 # FIXME: insert proper C++ library support
19147 # FIXME: insert proper C++ library support
19152 case $cc_basename in
19154 # FIXME: insert proper C++ library support
19158 # FIXME: insert proper C++ library support
19165 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19166 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19168 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19169 hardcode_direct_CXX
=yes
19170 hardcode_shlibpath_var_CXX
=no
19172 # Workaround some broken pre-1.5 toolchains
19173 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19181 # C++ shared libraries are fairly broken
19186 if test -f /usr
/libexec
/ld.so
; then
19187 hardcode_direct_CXX
=yes
19188 hardcode_shlibpath_var_CXX
=no
19189 hardcode_direct_absolute_CXX
=yes
19190 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19191 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19193 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19194 export_dynamic_flag_spec_CXX
='${wl}-E'
19195 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19197 output_verbose_link_cmd
=func_echo_all
19203 osf3
* | osf4
* | osf5
*)
19204 case $cc_basename in
19206 # Kuck and Associates, Inc. (KAI) C++ Compiler
19208 # KCC will only create a shared library if the output file
19209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19210 # to its proper name (with version) after linking.
19211 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'
19213 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19214 hardcode_libdir_separator_CXX
=:
19216 # Archives containing C++ object files must be created using
19217 # the KAI C++ compiler.
19219 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19220 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19224 # Rational C++ 2.4.1
19225 # FIXME: insert proper C++ library support
19231 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19232 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'
19233 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19236 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19237 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'
19238 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19239 echo "-hidden">> $lib.exp~
19240 $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~
19242 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19246 hardcode_libdir_separator_CXX
=:
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
19252 # There doesn't appear to be a way to prevent this compiler from
19253 # explicitly linking system object files so we need to strip them
19254 # from the output so that they don't get included in the library
19256 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"'
19259 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19260 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19263 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'
19266 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'
19270 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19271 hardcode_libdir_separator_CXX
=:
19273 # Commands to make compiler produce verbose output that lists
19274 # what "hidden" libraries, object files and flags are used when
19275 # linking a shared library.
19276 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19279 # FIXME: insert proper C++ library support
19287 # FIXME: insert proper C++ library support
19292 case $cc_basename in
19295 # FIXME: insert proper C++ library support
19300 # FIXME: insert proper C++ library support
19304 # FIXME: insert proper C++ library support
19311 case $cc_basename in
19313 # Sun C++ 4.2, 5.x and Centerline C++
19314 archive_cmds_need_lc_CXX
=yes
19315 no_undefined_flag_CXX
=' -zdefs'
19316 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19317 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19318 $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'
19320 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19321 hardcode_shlibpath_var_CXX
=no
19323 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19325 # The compiler driver will combine and reorder linker options,
19326 # but understands `-z linker_flag'.
19327 # Supported since Solaris 2.6 (maybe 2.5.1?)
19328 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19331 link_all_deplibs_CXX
=yes
19333 output_verbose_link_cmd
='func_echo_all'
19335 # Archives containing C++ object files must be created using
19336 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19337 # necessary to make sure instantiated templates are included
19339 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19342 # Green Hills C++ Compiler
19343 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19345 # The C++ compiler must be used to create the archive.
19346 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19349 # GNU C++ compiler with Solaris linker
19350 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19351 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19352 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19353 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19354 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19355 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19360 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19362 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19364 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19365 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19366 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19368 # Commands to make compiler produce verbose output that lists
19369 # what "hidden" libraries, object files and flags are used when
19370 # linking a shared library.
19371 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19374 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19376 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19378 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19386 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19387 no_undefined_flag_CXX
='${wl}-z,text'
19388 archive_cmds_need_lc_CXX
=no
19389 hardcode_shlibpath_var_CXX
=no
19390 runpath_var
='LD_RUN_PATH'
19392 case $cc_basename in
19394 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19395 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19398 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19399 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19404 sysv5
* | sco3.2v5
* | sco5v6
*)
19405 # Note: We can NOT use -z defs as we might desire, because we do not
19406 # link with -lc, and that would cause any symbols used from libc to
19407 # always be unresolved, which means just about no library would
19408 # ever link correctly. If we're not using GNU ld we use -z text
19409 # though, which does catch some bad symbols but isn't as heavy-handed
19411 no_undefined_flag_CXX
='${wl}-z,text'
19412 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19413 archive_cmds_need_lc_CXX
=no
19414 hardcode_shlibpath_var_CXX
=no
19415 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19416 hardcode_libdir_separator_CXX
=':'
19417 link_all_deplibs_CXX
=yes
19418 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19419 runpath_var
='LD_RUN_PATH'
19421 case $cc_basename in
19423 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19424 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19425 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19426 '"$old_archive_cmds_CXX"
19427 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19428 '"$reload_cmds_CXX"
19431 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19432 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19438 case $cc_basename in
19440 # NonStop-UX NCC 3.20
19441 # FIXME: insert proper C++ library support
19445 # FIXME: insert proper C++ library support
19452 # FIXME: insert proper C++ library support
19457 # FIXME: insert proper C++ library support
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19463 $as_echo "$ld_shlibs_CXX" >&6; }
19464 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19470 ## There is no encapsulation within the following macros, do not change
19471 ## the running order or otherwise move them around unless you know exactly
19472 ## what you are doing...
19473 # Dependencies to place before and after the object being linked:
19474 predep_objects_CXX
=
19475 postdep_objects_CXX
=
19478 compiler_lib_search_path_CXX
=
19480 cat > conftest.
$ac_ext <<_LT_EOF
19484 Foo (void) { a = 0; }
19490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19491 (eval $ac_compile) 2>&5
19493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19494 test $ac_status = 0; }; then
19495 # Parse the compiler output and extract the necessary
19496 # objects, libraries and library flags.
19498 # Sentinel used to keep track of whether or not we are before
19499 # the conftest object file.
19500 pre_test_object_deps_done
=no
19502 for p
in `eval "$output_verbose_link_cmd"`; do
19506 # Some compilers place space between "-{L,R}" and the path.
19507 # Remove the space.
19508 if test $p = "-L" ||
19509 test $p = "-R"; then
19516 if test "$pre_test_object_deps_done" = no
; then
19519 # Internal compiler library paths should come after those
19520 # provided the user. The postdeps already come after the
19521 # user supplied libs so there is no need to process them.
19522 if test -z "$compiler_lib_search_path_CXX"; then
19523 compiler_lib_search_path_CXX
="${prev}${p}"
19525 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19528 # The "-l" case would never come before the object being
19529 # linked, so don't bother handling this case.
19532 if test -z "$postdeps_CXX"; then
19533 postdeps_CXX
="${prev}${p}"
19535 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19541 # This assumes that the test object file only shows up
19542 # once in the compiler output.
19543 if test "$p" = "conftest.$objext"; then
19544 pre_test_object_deps_done
=yes
19548 if test "$pre_test_object_deps_done" = no
; then
19549 if test -z "$predep_objects_CXX"; then
19550 predep_objects_CXX
="$p"
19552 predep_objects_CXX
="$predep_objects_CXX $p"
19555 if test -z "$postdep_objects_CXX"; then
19556 postdep_objects_CXX
="$p"
19558 postdep_objects_CXX
="$postdep_objects_CXX $p"
19563 *) ;; # Ignore the rest.
19571 echo "libtool.m4: error: problem compiling CXX test program"
19574 $RM -f confest.
$objext
19576 # PORTME: override above test on systems where it is broken
19579 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19580 # hack all around it, let's just trust "g++" to DTRT.
19581 predep_objects_CXX
=
19582 postdep_objects_CXX
=
19587 case `$CC -V 2>&1 | sed 5q` in
19591 # The more standards-conforming stlport4 library is
19592 # incompatible with the Cstd library. Avoid specifying
19593 # it if it's in CXXFLAGS. Ignore libCrun as
19594 # -library=stlport4 depends on it.
19595 case " $CXX $CXXFLAGS " in
19596 *" -library=stlport4 "*)
19597 solaris_use_stlport4
=yes
19601 if test "$solaris_use_stlport4" != yes; then
19602 postdeps_CXX
='-library=Cstd -library=Crun'
19609 case $cc_basename in
19611 # The more standards-conforming stlport4 library is
19612 # incompatible with the Cstd library. Avoid specifying
19613 # it if it's in CXXFLAGS. Ignore libCrun as
19614 # -library=stlport4 depends on it.
19615 case " $CXX $CXXFLAGS " in
19616 *" -library=stlport4 "*)
19617 solaris_use_stlport4
=yes
19621 # Adding this requires a known-good setup of shared libraries for
19622 # Sun compiler versions before 5.6, else PIC objects from an old
19623 # archive will be linked into the output, leading to subtle bugs.
19624 if test "$solaris_use_stlport4" != yes; then
19625 postdeps_CXX
='-library=Cstd -library=Crun'
19633 case " $postdeps_CXX " in
19634 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19636 compiler_lib_search_dirs_CXX
=
19637 if test -n "${compiler_lib_search_path_CXX}"; then
19638 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19671 lt_prog_compiler_wl_CXX
=
19672 lt_prog_compiler_pic_CXX
=
19673 lt_prog_compiler_static_CXX
=
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19676 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19678 # C++ specific cases for pic, static, wl, etc.
19679 if test "$GXX" = yes; then
19680 lt_prog_compiler_wl_CXX
='-Wl,'
19681 lt_prog_compiler_static_CXX
='-static'
19685 # All AIX code is PIC.
19686 if test "$host_cpu" = ia64
; then
19687 # AIX 5 now supports IA64 processor
19688 lt_prog_compiler_static_CXX
='-Bstatic'
19695 # see comment about AmigaOS4 .so support
19696 lt_prog_compiler_pic_CXX
='-fPIC'
19699 # FIXME: we need at least 68020 code to build shared libraries, but
19700 # adding the `-m68020' flag to GCC prevents building anything better,
19702 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19707 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19708 # PIC is the default for these OSes.
19710 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19711 # This hack is so that the source file can tell whether it is being
19712 # built for inclusion in a dll (and should export symbols for example).
19713 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19714 # (--disable-auto-import) libraries
19715 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19717 darwin
* | rhapsody
*)
19718 # PIC is the default on this platform
19719 # Common symbols not allowed in MH_DYLIB files
19720 lt_prog_compiler_pic_CXX
='-fno-common'
19723 # DJGPP does not support shared libraries at all
19724 lt_prog_compiler_pic_CXX
=
19727 # PIC is the default for Haiku.
19728 # The "-static" flag exists, but is broken.
19729 lt_prog_compiler_static_CXX
=
19732 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19733 # Instead, we relocate shared libraries at runtime.
19736 if test -d /usr
/nec
; then
19737 lt_prog_compiler_pic_CXX
=-Kconform_pic
19741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19743 # sets the default TLS model and affects inlining.
19748 lt_prog_compiler_pic_CXX
='-fPIC'
19753 # QNX uses GNU C++, but need to define -shared option too, otherwise
19754 # it will coredump.
19755 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19758 lt_prog_compiler_pic_CXX
='-fPIC'
19764 # All AIX code is PIC.
19765 if test "$host_cpu" = ia64
; then
19766 # AIX 5 now supports IA64 processor
19767 lt_prog_compiler_static_CXX
='-Bstatic'
19769 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19773 case $cc_basename in
19775 # Green Hills C++ Compiler
19776 # _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"
19781 case $cc_basename in
19783 lt_prog_compiler_pic_CXX
='-KPIC'
19786 # Green Hills C++ Compiler
19787 lt_prog_compiler_pic_CXX
='-pic'
19793 freebsd
* | dragonfly
*)
19794 # FreeBSD uses GNU C++
19796 hpux9
* | hpux10
* | hpux11
*)
19797 case $cc_basename in
19799 lt_prog_compiler_wl_CXX
='-Wl,'
19800 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19801 if test "$host_cpu" != ia64
; then
19802 lt_prog_compiler_pic_CXX
='+Z'
19806 lt_prog_compiler_wl_CXX
='-Wl,'
19807 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19813 lt_prog_compiler_pic_CXX
='+Z'
19822 # This is c89, which is MS Visual C++ (no shared libs)
19823 # Anyone wants to do a port?
19825 irix5
* | irix6
* | nonstopux
*)
19826 case $cc_basename in
19828 lt_prog_compiler_wl_CXX
='-Wl,'
19829 lt_prog_compiler_static_CXX
='-non_shared'
19830 # CC pic flag -KPIC is the default.
19836 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19837 case $cc_basename in
19840 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19841 lt_prog_compiler_pic_CXX
='-fPIC'
19844 # old Intel C++ for x86_64 which still supported -KPIC.
19845 lt_prog_compiler_wl_CXX
='-Wl,'
19846 lt_prog_compiler_pic_CXX
='-KPIC'
19847 lt_prog_compiler_static_CXX
='-static'
19850 # Intel C++, used to be incompatible with GCC.
19851 # ICC 10 doesn't accept -KPIC any more.
19852 lt_prog_compiler_wl_CXX
='-Wl,'
19853 lt_prog_compiler_pic_CXX
='-fPIC'
19854 lt_prog_compiler_static_CXX
='-static'
19857 # Portland Group C++ compiler
19858 lt_prog_compiler_wl_CXX
='-Wl,'
19859 lt_prog_compiler_pic_CXX
='-fpic'
19860 lt_prog_compiler_static_CXX
='-Bstatic'
19864 # Make sure the PIC flag is empty. It appears that all Alpha
19865 # Linux and Compaq Tru64 Unix objects are PIC.
19866 lt_prog_compiler_pic_CXX
=
19867 lt_prog_compiler_static_CXX
='-non_shared'
19869 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19870 # IBM XL 8.0, 9.0 on PPC and BlueGene
19871 lt_prog_compiler_wl_CXX
='-Wl,'
19872 lt_prog_compiler_pic_CXX
='-qpic'
19873 lt_prog_compiler_static_CXX
='-qstaticlink'
19876 case `$CC -V 2>&1 | sed 5q` in
19879 lt_prog_compiler_pic_CXX
='-KPIC'
19880 lt_prog_compiler_static_CXX
='-Bstatic'
19881 lt_prog_compiler_wl_CXX
='-Qoption ld '
19892 case $cc_basename in
19894 lt_prog_compiler_pic_CXX
='-W c,exportall'
19903 # QNX uses GNU C++, but need to define -shared option too, otherwise
19904 # it will coredump.
19905 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19907 osf3
* | osf4
* | osf5
*)
19908 case $cc_basename in
19910 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19913 # Rational C++ 2.4.1
19914 lt_prog_compiler_pic_CXX
='-pic'
19917 # Digital/Compaq C++
19918 lt_prog_compiler_wl_CXX
='-Wl,'
19919 # Make sure the PIC flag is empty. It appears that all Alpha
19920 # Linux and Compaq Tru64 Unix objects are PIC.
19921 lt_prog_compiler_pic_CXX
=
19922 lt_prog_compiler_static_CXX
='-non_shared'
19931 case $cc_basename in
19933 # Sun C++ 4.2, 5.x and Centerline C++
19934 lt_prog_compiler_pic_CXX
='-KPIC'
19935 lt_prog_compiler_static_CXX
='-Bstatic'
19936 lt_prog_compiler_wl_CXX
='-Qoption ld '
19939 # Green Hills C++ Compiler
19940 lt_prog_compiler_pic_CXX
='-PIC'
19947 case $cc_basename in
19950 lt_prog_compiler_pic_CXX
='-pic'
19951 lt_prog_compiler_static_CXX
='-Bstatic'
19955 lt_prog_compiler_pic_CXX
='-pic'
19961 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19962 case $cc_basename in
19964 lt_prog_compiler_wl_CXX
='-Wl,'
19965 lt_prog_compiler_pic_CXX
='-KPIC'
19966 lt_prog_compiler_static_CXX
='-Bstatic'
19971 case $cc_basename in
19973 # NonStop-UX NCC 3.20
19974 lt_prog_compiler_pic_CXX
='-KPIC'
19983 lt_prog_compiler_can_build_shared_CXX
=no
19989 # For platforms which do not support PIC, -DPIC is meaningless:
19991 lt_prog_compiler_pic_CXX
=
19994 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19998 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20003 # Check to make sure the PIC flag actually works.
20005 if test -n "$lt_prog_compiler_pic_CXX"; then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20007 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20008 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20009 $as_echo_n "(cached) " >&6
20011 lt_cv_prog_compiler_pic_works_CXX
=no
20012 ac_outfile
=conftest.
$ac_objext
20013 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20014 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20015 # Insert the option either (1) after the last *FLAGS variable, or
20016 # (2) before a word containing "conftest.", or (3) at the end.
20017 # Note that $ac_compile itself does not contain backslashes and begins
20018 # with a dollar sign (not a hyphen), so the echo should work correctly.
20019 # The option is referenced via a variable to avoid confusing sed.
20020 lt_compile
=`echo "$ac_compile" | $SED \
20021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20023 -e 's:$: $lt_compiler_flag:'`
20024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20025 (eval "$lt_compile" 2>conftest.err
)
20027 cat conftest.err
>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 if (exit $ac_status) && test -s "$ac_outfile"; then
20030 # The compiler can only warn and ignore the option if not recognized
20031 # So say no if there are warnings other than the usual output.
20032 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20033 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20034 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20035 lt_cv_prog_compiler_pic_works_CXX
=yes
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20042 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20044 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20045 case $lt_prog_compiler_pic_CXX in
20047 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20050 lt_prog_compiler_pic_CXX
=
20051 lt_prog_compiler_can_build_shared_CXX
=no
20059 # Check to make sure the static flag actually works.
20061 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20063 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20064 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20065 $as_echo_n "(cached) " >&6
20067 lt_cv_prog_compiler_static_works_CXX
=no
20068 save_LDFLAGS
="$LDFLAGS"
20069 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20070 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20071 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20072 # The linker can only warn and ignore the option if not recognized
20073 # So say no if there are warnings
20074 if test -s conftest.err
; then
20075 # Append any errors to the config.log.
20076 cat conftest.err
1>&5
20077 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20078 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20079 if diff conftest.exp conftest.er2
>/dev
/null
; then
20080 lt_cv_prog_compiler_static_works_CXX
=yes
20083 lt_cv_prog_compiler_static_works_CXX
=yes
20087 LDFLAGS
="$save_LDFLAGS"
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20091 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20093 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20096 lt_prog_compiler_static_CXX
=
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20103 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20104 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20105 $as_echo_n "(cached) " >&6
20107 lt_cv_prog_compiler_c_o_CXX
=no
20108 $RM -r conftest
2>/dev
/null
20112 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20114 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20115 # Insert the option either (1) after the last *FLAGS variable, or
20116 # (2) before a word containing "conftest.", or (3) at the end.
20117 # Note that $ac_compile itself does not contain backslashes and begins
20118 # with a dollar sign (not a hyphen), so the echo should work correctly.
20119 lt_compile
=`echo "$ac_compile" | $SED \
20120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20122 -e 's:$: $lt_compiler_flag:'`
20123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20124 (eval "$lt_compile" 2>out
/conftest.err
)
20126 cat out
/conftest.err
>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20130 # The compiler can only warn and ignore the option if not recognized
20131 # So say no if there are warnings
20132 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20133 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20134 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20135 lt_cv_prog_compiler_c_o_CXX
=yes
20140 # SGI C++ compiler will create directory out/ii_files/ for
20141 # template instantiation
20142 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20143 $RM out
/* && rmdir out
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20150 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20156 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20157 $as_echo_n "(cached) " >&6
20159 lt_cv_prog_compiler_c_o_CXX
=no
20160 $RM -r conftest
2>/dev
/null
20164 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20166 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20167 # Insert the option either (1) after the last *FLAGS variable, or
20168 # (2) before a word containing "conftest.", or (3) at the end.
20169 # Note that $ac_compile itself does not contain backslashes and begins
20170 # with a dollar sign (not a hyphen), so the echo should work correctly.
20171 lt_compile
=`echo "$ac_compile" | $SED \
20172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20174 -e 's:$: $lt_compiler_flag:'`
20175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20176 (eval "$lt_compile" 2>out
/conftest.err
)
20178 cat out
/conftest.err
>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20182 # The compiler can only warn and ignore the option if not recognized
20183 # So say no if there are warnings
20184 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20185 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20186 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20187 lt_cv_prog_compiler_c_o_CXX
=yes
20192 # SGI C++ compiler will create directory out/ii_files/ for
20193 # template instantiation
20194 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20195 $RM out
/* && rmdir out
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20202 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20207 hard_links
="nottested"
20208 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20209 # do not overwrite the value of need_locks provided by the user
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20211 $as_echo_n "checking if we can lock with hard links... " >&6; }
20214 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20216 ln conftest.a conftest.b
2>&5 || hard_links
=no
20217 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20219 $as_echo "$hard_links" >&6; }
20220 if test "$hard_links" = no
; then
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20222 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20232 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20234 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20237 # If we're using GNU nm, then we don't want the "-C" option.
20238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20239 # Also, AIX nm treats weak defined symbols like other global defined
20240 # symbols, whereas GNU nm marks them as "W".
20241 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20242 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'
20244 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'
20248 export_symbols_cmds_CXX
="$ltdll_cmds"
20250 cygwin
* | mingw
* | cegcc
*)
20251 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'
20254 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20257 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20260 $as_echo "$ld_shlibs_CXX" >&6; }
20261 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20263 with_gnu_ld_CXX
=$with_gnu_ld
20271 # Do we need to explicitly link libc?
20273 case "x$archive_cmds_need_lc_CXX" in
20275 # Assume -lc should be added
20276 archive_cmds_need_lc_CXX
=yes
20278 if test "$enable_shared" = yes && test "$GCC" = yes; then
20279 case $archive_cmds_CXX in
20281 # FIXME: we may have to deal with multi-command sequences.
20284 # Test whether the compiler implicitly links with -lc since on some
20285 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20286 # to ld, don't add -lc before -lgcc.
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20288 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20289 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20293 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20296 (eval $ac_compile) 2>&5
20298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20299 test $ac_status = 0; } 2>conftest.err
; then
20302 libobjs
=conftest.
$ac_objext
20304 wl
=$lt_prog_compiler_wl_CXX
20305 pic_flag
=$lt_prog_compiler_pic_CXX
20311 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20312 allow_undefined_flag_CXX
=
20313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20314 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20317 test $ac_status = 0; }
20319 lt_cv_archive_cmds_need_lc_CXX
=no
20321 lt_cv_archive_cmds_need_lc_CXX
=yes
20323 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20325 cat conftest.err
1>&5
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20331 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20332 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20403 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20405 library_names_spec
=
20406 libname_spec
='lib$name'
20410 postuninstall_cmds
=
20414 shlibpath_overrides_runpath
=unknown
20416 dynamic_linker
="$host_os ld.so"
20417 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20418 need_lib_prefix
=unknown
20419 hardcode_into_libs
=no
20421 # when you set need_version to no, make sure it does not cause -set_version
20422 # flags to be left without arguments
20423 need_version
=unknown
20428 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20429 shlibpath_var
=LIBPATH
20431 # AIX 3 has no versioning support, so we append a major version to the name.
20432 soname_spec
='${libname}${release}${shared_ext}$major'
20439 hardcode_into_libs
=yes
20440 if test "$host_cpu" = ia64
; then
20441 # AIX 5 supports IA64
20442 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20443 shlibpath_var
=LD_LIBRARY_PATH
20445 # With GCC up to 2.95.x, collect2 would create an import file
20446 # for dependence libraries. The import file would start with
20447 # the line `#! .'. This would cause the generated library to
20448 # depend on `.', always an invalid library. This was fixed in
20449 # development snapshots of GCC prior to 3.0.
20451 aix4 | aix4.
[01] | aix4.
[01].
*)
20452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20454 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20457 can_build_shared
=no
20461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20462 # soname into executable. Probably we can add versioning support to
20463 # collect2, so additional links can be useful in future.
20464 if test "$aix_use_runtimelinking" = yes; then
20465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20466 # instead of lib<name>.a to let people know that these are not
20467 # typical AIX shared libraries.
20468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20470 # We preserve .a as extension for shared libraries through AIX4.2
20471 # and later when we are not doing run time linking.
20472 library_names_spec
='${libname}${release}.a $libname.a'
20473 soname_spec
='${libname}${release}${shared_ext}$major'
20475 shlibpath_var
=LIBPATH
20482 # Since July 2007 AmigaOS4 officially supports .so libraries.
20483 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 library_names_spec
='$libname.ixlibrary $libname.a'
20488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20489 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'
20495 library_names_spec
='${libname}${shared_ext}'
20496 dynamic_linker
="$host_os ld.so"
20497 shlibpath_var
=LIBRARY_PATH
20503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504 soname_spec
='${libname}${release}${shared_ext}$major'
20505 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20506 shlibpath_var
=LD_LIBRARY_PATH
20507 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20508 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20509 # the default ld.so.conf also contains /usr/contrib/lib and
20510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20511 # libtool to hard-code these into programs
20514 cygwin
* | mingw
* | pw32
* | cegcc
*)
20515 version_type
=windows
20520 case $GCC,$host_os in
20521 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20522 library_names_spec
='$libname.dll.a'
20523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20524 postinstall_cmds
='base_file=`basename \${file}`~
20525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20526 dldir=$destdir/`dirname \$dlpath`~
20527 test -d \$dldir || mkdir -p \$dldir~
20528 $install_prog $dir/$dlname \$dldir/$dlname~
20529 chmod a+x \$dldir/$dlname~
20530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20533 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20534 dlpath=$dir/\$dldll~
20536 shlibpath_overrides_runpath
=yes
20540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20541 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545 # MinGW DLLs use traditional 'lib' prefix
20546 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20549 # pw32 DLLs use 'pw' prefix rather than 'lib'
20550 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20556 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20559 dynamic_linker
='Win32 ld.exe'
20560 # FIXME: first we should search . and the directory the executable is in
20564 darwin
* | rhapsody
*)
20565 dynamic_linker
="$host_os dyld"
20566 version_type
=darwin
20569 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20570 soname_spec
='${libname}${release}${major}$shared_ext'
20571 shlibpath_overrides_runpath
=yes
20572 shlibpath_var
=DYLD_LIBRARY_PATH
20573 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20575 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20583 soname_spec
='${libname}${release}${shared_ext}$major'
20584 shlibpath_var
=LD_LIBRARY_PATH
20587 freebsd
* | dragonfly
*)
20588 # DragonFly does not have aout. When/if they implement a new
20589 # versioning mechanism, adjust this.
20590 if test -x /usr
/bin
/objformat
; then
20591 objformat
=`/usr/bin/objformat`
20594 freebsd
[23].
*) objformat
=aout
;;
20595 *) objformat
=elf
;;
20598 version_type
=freebsd-
$objformat
20599 case $version_type in
20601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20606 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20610 shlibpath_var
=LD_LIBRARY_PATH
20613 shlibpath_overrides_runpath
=yes
20615 freebsd3.
[01]* | freebsdelf3.
[01]*)
20616 shlibpath_overrides_runpath
=yes
20617 hardcode_into_libs
=yes
20619 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20620 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20621 shlibpath_overrides_runpath
=no
20622 hardcode_into_libs
=yes
20624 *) # from 4.6 on, and DragonFly
20625 shlibpath_overrides_runpath
=yes
20626 hardcode_into_libs
=yes
20635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20636 soname_spec
='${libname}${release}${shared_ext}$major'
20637 shlibpath_var
=LD_LIBRARY_PATH
20638 hardcode_into_libs
=yes
20645 dynamic_linker
="$host_os runtime_loader"
20646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20647 soname_spec
='${libname}${release}${shared_ext}$major'
20648 shlibpath_var
=LIBRARY_PATH
20649 shlibpath_overrides_runpath
=yes
20650 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20651 hardcode_into_libs
=yes
20654 hpux9
* | hpux10
* | hpux11
*)
20655 # Give a soname corresponding to the major version so that dld.sl refuses to
20656 # link against other versions.
20663 hardcode_into_libs
=yes
20664 dynamic_linker
="$host_os dld.so"
20665 shlibpath_var
=LD_LIBRARY_PATH
20666 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20667 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 soname_spec
='${libname}${release}${shared_ext}$major'
20669 if test "X$HPUX_IA64_MODE" = X32
; then
20670 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20672 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20674 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20678 hardcode_into_libs
=yes
20679 dynamic_linker
="$host_os dld.sl"
20680 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20681 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683 soname_spec
='${libname}${release}${shared_ext}$major'
20684 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20685 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20689 dynamic_linker
="$host_os dld.sl"
20690 shlibpath_var
=SHLIB_PATH
20691 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec
='${libname}${release}${shared_ext}$major'
20696 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20697 postinstall_cmds
='chmod 555 $lib'
20698 # or fails outright, so override atomically:
20699 install_override_mode
=555
20706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20707 soname_spec
='${libname}${release}${shared_ext}$major'
20708 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20709 shlibpath_var
=LD_LIBRARY_PATH
20710 shlibpath_overrides_runpath
=no
20711 hardcode_into_libs
=yes
20714 irix5
* | irix6
* | nonstopux
*)
20716 nonstopux
*) version_type
=nonstopux
;;
20718 if test "$lt_cv_prog_gnu_ld" = yes; then
20726 soname_spec
='${libname}${release}${shared_ext}$major'
20727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20729 irix5
* | nonstopux
*)
20730 libsuff
= shlibsuff
=
20733 case $LD in # libtool.m4 will add one of these switches to LD
20734 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20735 libsuff
= shlibsuff
= libmagic
=32-bit;;
20736 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20737 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20738 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20739 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20740 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20744 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20745 shlibpath_overrides_runpath
=no
20746 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20747 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20748 hardcode_into_libs
=yes
20751 # No shared lib support for Linux oldld, aout, or coff.
20752 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20756 # This must be Linux ELF.
20757 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 soname_spec
='${libname}${release}${shared_ext}$major'
20763 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20764 shlibpath_var
=LD_LIBRARY_PATH
20765 shlibpath_overrides_runpath
=no
20767 # Some binutils ld are patched to set DT_RUNPATH
20768 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20769 $as_echo_n "(cached) " >&6
20771 lt_cv_shlibpath_overrides_runpath
=no
20772 save_LDFLAGS
=$LDFLAGS
20773 save_libdir
=$libdir
20774 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20775 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h. */
20787 if ac_fn_cxx_try_link
"$LINENO"; then :
20788 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20789 lt_cv_shlibpath_overrides_runpath
=yes
20792 rm -f core conftest.err conftest.
$ac_objext \
20793 conftest
$ac_exeext conftest.
$ac_ext
20794 LDFLAGS
=$save_LDFLAGS
20795 libdir
=$save_libdir
20799 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20801 # This implies no fast_install, which is unacceptable.
20802 # Some rework will be needed to allow for fast_install
20803 # before this can be enabled.
20804 hardcode_into_libs
=yes
20806 # Append ld.so.conf contents to the search path
20807 if test -f /etc
/ld.so.conf
; then
20808 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' ' '`
20809 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20812 # We used to test for /lib/ld.so.1 and disable shared libraries on
20813 # powerpc, because MkLinux only supported shared libraries with the
20814 # GNU dynamic linker. Since this was broken with cross compilers,
20815 # most powerpc-linux boxes support dynamic linking these days and
20816 # people can always --disable-shared, the test was removed, and we
20817 # assume the GNU/Linux dynamic linker is in use.
20818 dynamic_linker
='GNU/Linux ld.so'
20825 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20827 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20828 dynamic_linker
='NetBSD (a.out) ld.so'
20830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20831 soname_spec
='${libname}${release}${shared_ext}$major'
20832 dynamic_linker
='NetBSD ld.elf_so'
20834 shlibpath_var
=LD_LIBRARY_PATH
20835 shlibpath_overrides_runpath
=yes
20836 hardcode_into_libs
=yes
20841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 shlibpath_var
=LD_LIBRARY_PATH
20843 shlibpath_overrides_runpath
=yes
20850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec
='${libname}${release}${shared_ext}$major'
20852 shlibpath_var
=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath
=no
20854 hardcode_into_libs
=yes
20855 dynamic_linker
='ldqnx.so'
20860 sys_lib_dlsearch_path_spec
="/usr/lib"
20862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20864 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20865 *) need_version
=no
;;
20867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20868 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20869 shlibpath_var
=LD_LIBRARY_PATH
20870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20872 openbsd2.
[89] | openbsd2.
[89].
*)
20873 shlibpath_overrides_runpath
=no
20876 shlibpath_overrides_runpath
=yes
20880 shlibpath_overrides_runpath
=yes
20885 libname_spec
='$name'
20888 library_names_spec
='$libname${shared_ext} $libname.a'
20889 dynamic_linker
='OS/2 ld.exe'
20890 shlibpath_var
=LIBPATH
20893 osf3
* | osf4
* | osf5
*)
20897 soname_spec
='${libname}${release}${shared_ext}$major'
20898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899 shlibpath_var
=LD_LIBRARY_PATH
20900 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20901 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20913 soname_spec
='${libname}${release}${shared_ext}$major'
20914 shlibpath_var
=LD_LIBRARY_PATH
20915 shlibpath_overrides_runpath
=yes
20916 hardcode_into_libs
=yes
20917 # ldd complains unless libraries are executable
20918 postinstall_cmds
='chmod +x $lib'
20923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20924 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20925 shlibpath_var
=LD_LIBRARY_PATH
20926 shlibpath_overrides_runpath
=yes
20927 if test "$with_gnu_ld" = yes; then
20935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20936 soname_spec
='${libname}${release}${shared_ext}$major'
20937 shlibpath_var
=LD_LIBRARY_PATH
20938 case $host_vendor in
20940 shlibpath_overrides_runpath
=no
20942 runpath_var
=LD_RUN_PATH
20950 shlibpath_overrides_runpath
=no
20951 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20957 if test -d /usr
/nec
;then
20959 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20960 soname_spec
='$libname${shared_ext}.$major'
20961 shlibpath_var
=LD_LIBRARY_PATH
20965 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20966 version_type
=freebsd-elf
20969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20970 soname_spec
='${libname}${release}${shared_ext}$major'
20971 shlibpath_var
=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath
=yes
20973 hardcode_into_libs
=yes
20974 if test "$with_gnu_ld" = yes; then
20975 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20977 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20980 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20984 sys_lib_dlsearch_path_spec
='/usr/lib'
20988 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993 shlibpath_var
=LD_LIBRARY_PATH
20994 shlibpath_overrides_runpath
=no
20995 hardcode_into_libs
=yes
21000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21001 soname_spec
='${libname}${release}${shared_ext}$major'
21002 shlibpath_var
=LD_LIBRARY_PATH
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21010 $as_echo "$dynamic_linker" >&6; }
21011 test "$dynamic_linker" = no
&& can_build_shared
=no
21013 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21014 if test "$GCC" = yes; then
21015 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21018 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21019 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21021 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21022 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21063 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21064 hardcode_action_CXX
=
21065 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21066 test -n "$runpath_var_CXX" ||
21067 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21069 # We can hardcode non-existent directories.
21070 if test "$hardcode_direct_CXX" != no
&&
21071 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21072 # have to relink, otherwise we might link with an installed library
21073 # when we should be linking with a yet-to-be-installed one
21074 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21075 test "$hardcode_minus_L_CXX" != no
; then
21076 # Linking always hardcodes the temporary library directory.
21077 hardcode_action_CXX
=relink
21079 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21080 hardcode_action_CXX
=immediate
21083 # We cannot hardcode anything, or else we can only hardcode existing
21085 hardcode_action_CXX
=unsupported
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21088 $as_echo "$hardcode_action_CXX" >&6; }
21090 if test "$hardcode_action_CXX" = relink ||
21091 test "$inherit_rpath_CXX" = yes; then
21092 # Fast installation is not supported
21093 enable_fast_install
=no
21094 elif test "$shlibpath_overrides_runpath" = yes ||
21095 test "$enable_shared" = no
; then
21096 # Fast installation is not necessary
21097 enable_fast_install
=needless
21106 fi # test -n "$compiler"
21112 with_gnu_ld
=$lt_save_with_gnu_ld
21113 lt_cv_path_LDCXX
=$lt_cv_path_LD
21114 lt_cv_path_LD
=$lt_save_path_LD
21115 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21116 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21117 fi # test "$_lt_caught_CXX_error" != yes
21120 ac_cpp
='$CPP $CPPFLAGS'
21121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21140 # Only expand once:
21146 # Identify the assembler which will work hand-in-glove with the newly
21147 # built GCC, so that we can examine its features. This is the assembler
21148 # which will be driven by the driver program.
21150 # If build != host, and we aren't building gas in-tree, we identify a
21151 # build->target assembler and hope that it will have the same features
21152 # as the host->target assembler we'll be using.
21153 gcc_cv_gas_major_version
=
21154 gcc_cv_gas_minor_version
=
21155 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21157 if test "${gcc_cv_as+set}" = set; then :
21161 if test -x "$DEFAULT_ASSEMBLER"; then
21162 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21163 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21164 && test -f ..
/gas
/Makefile \
21165 && test x
$build = x
$host; then
21166 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21167 elif test -x as
$build_exeext; then
21168 # Build using assembler in the current directory.
21169 gcc_cv_as
=.
/as
$build_exeext
21170 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21171 gcc_cv_as
="$AS_FOR_TARGET"
21173 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21174 set dummy
$AS_FOR_TARGET; ac_word
=$2
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21176 $as_echo_n "checking for $ac_word... " >&6; }
21177 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21178 $as_echo_n "(cached) " >&6
21182 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21186 for as_dir
in $PATH
21189 test -z "$as_dir" && as_dir
=.
21190 for ac_exec_ext
in '' $ac_executable_extensions; do
21191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21192 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21203 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21204 if test -n "$gcc_cv_as"; then
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21206 $as_echo "$gcc_cv_as" >&6; }
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21209 $as_echo "no" >&6; }
21216 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21218 case "$ORIGINAL_AS_FOR_TARGET" in
21219 .
/as | .
/as
$build_exeext) ;;
21220 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21225 $as_echo_n "checking what assembler to use... " >&6; }
21226 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21227 # Single tree build which includes gas. We want to prefer it
21228 # over whatever linker top-level may have detected, since
21229 # we'll use what we're building after installation anyway.
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21231 $as_echo "newly built gas" >&6; }
21233 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21234 for f
in $gcc_cv_as_bfd_srcdir/configure \
21235 $gcc_cv_as_gas_srcdir/configure \
21236 $gcc_cv_as_gas_srcdir/configure.
in \
21237 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21238 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21239 if test x
$gcc_cv_gas_version != x
; then
21243 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21244 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21245 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21246 case $gcc_cv_gas_patch_version in
21247 "") gcc_cv_gas_patch_version
="0" ;;
21249 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21250 + $gcc_cv_gas_minor_version \) \* 1000 \
21251 + $gcc_cv_gas_patch_version`
21253 in_tree_gas_is_elf
=no
21254 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21255 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21256 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21258 in_tree_gas_is_elf
=yes
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21262 $as_echo "$gcc_cv_as" >&6; }
21266 # Identify the linker which will work hand-in-glove with the newly
21267 # built GCC, so that we can examine its features. This is the linker
21268 # which will be driven by the driver program.
21270 # If build != host, and we aren't building gas in-tree, we identify a
21271 # build->target linker and hope that it will have the same features
21272 # as the host->target linker we'll be using.
21273 gcc_cv_gld_major_version
=
21274 gcc_cv_gld_minor_version
=
21275 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21276 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21278 if test "${gcc_cv_ld+set}" = set; then :
21282 if test -x "$DEFAULT_LINKER"; then
21283 gcc_cv_ld
="$DEFAULT_LINKER"
21284 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21285 && test -f ..
/ld
/Makefile \
21286 && test x
$build = x
$host; then
21287 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21288 elif test -x collect-ld
$build_exeext; then
21289 # Build using linker in the current directory.
21290 gcc_cv_ld
=.
/collect-ld
$build_exeext
21291 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21292 gcc_cv_ld
="$LD_FOR_TARGET"
21294 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21295 set dummy
$LD_FOR_TARGET; ac_word
=$2
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21297 $as_echo_n "checking for $ac_word... " >&6; }
21298 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21299 $as_echo_n "(cached) " >&6
21303 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21307 for as_dir
in $PATH
21310 test -z "$as_dir" && as_dir
=.
21311 for ac_exec_ext
in '' $ac_executable_extensions; do
21312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21313 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21324 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21325 if test -n "$gcc_cv_ld"; then
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21327 $as_echo "$gcc_cv_ld" >&6; }
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21330 $as_echo "no" >&6; }
21337 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21338 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21340 # Check whether --with-plugin-ld was given.
21341 if test "${with_plugin_ld+set}" = set; then :
21342 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21343 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21344 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21350 cat >>confdefs.h
<<_ACEOF
21351 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21355 # Check to see if we are using gold instead of ld
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21357 $as_echo_n "checking whether we are using gold... " >&6; }
21359 if test x
$gcc_cv_ld != x
; then
21360 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21361 |
grep "GNU gold" > /dev
/null
; then
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21366 $as_echo "$ld_is_gold" >&6; }
21368 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21370 case "$ORIGINAL_LD_FOR_TARGET" in
21371 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21372 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21377 $as_echo_n "checking what linker to use... " >&6; }
21378 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21379 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21380 # Single tree build which includes ld. We want to prefer it
21381 # over whatever linker top-level may have detected, since
21382 # we'll use what we're building after installation anyway.
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21384 $as_echo "newly built ld" >&6; }
21386 in_tree_ld_is_elf
=no
21387 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21388 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21389 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21390 in_tree_ld_is_elf
=yes
21391 elif test "$ld_is_gold" = yes; then
21392 in_tree_ld_is_elf
=yes
21394 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
21396 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21397 if test x
$gcc_cv_gld_version != x
; then
21401 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21402 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21405 $as_echo "$gcc_cv_ld" >&6; }
21409 # Figure out what nm we will be using.
21410 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21411 if test "${gcc_cv_nm+set}" = set; then :
21415 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21416 && test -f ..
/binutils
/Makefile \
21417 && test x
$build = x
$host; then
21418 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21419 elif test -x nm
$build_exeext; then
21420 gcc_cv_nm
=.
/nm
$build_exeext
21421 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21422 gcc_cv_nm
="$NM_FOR_TARGET"
21424 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21425 set dummy
$NM_FOR_TARGET; ac_word
=$2
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21427 $as_echo_n "checking for $ac_word... " >&6; }
21428 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21429 $as_echo_n "(cached) " >&6
21433 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21437 for as_dir
in $PATH
21440 test -z "$as_dir" && as_dir
=.
21441 for ac_exec_ext
in '' $ac_executable_extensions; do
21442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21443 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21454 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21455 if test -n "$gcc_cv_nm"; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21457 $as_echo "$gcc_cv_nm" >&6; }
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21460 $as_echo "no" >&6; }
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21468 $as_echo_n "checking what nm to use... " >&6; }
21469 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21470 # Single tree build which includes binutils.
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21472 $as_echo "newly built nm" >&6; }
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21476 $as_echo "$gcc_cv_nm" >&6; }
21480 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21482 case "$ORIGINAL_NM_FOR_TARGET" in
21483 .
/nm | .
/nm
$build_exeext) ;;
21484 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21489 # Figure out what objdump we will be using.
21490 if test "${gcc_cv_objdump+set}" = set; then :
21494 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21495 && test -f ..
/binutils
/Makefile \
21496 && test x
$build = x
$host; then
21497 # Single tree build which includes binutils.
21498 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21499 elif test -x objdump
$build_exeext; then
21500 gcc_cv_objdump
=.
/objdump
$build_exeext
21501 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21502 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21504 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21505 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21507 $as_echo_n "checking for $ac_word... " >&6; }
21508 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21509 $as_echo_n "(cached) " >&6
21511 case $gcc_cv_objdump in
21513 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21517 for as_dir
in $PATH
21520 test -z "$as_dir" && as_dir
=.
21521 for ac_exec_ext
in '' $ac_executable_extensions; do
21522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21523 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21534 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21535 if test -n "$gcc_cv_objdump"; then
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21537 $as_echo "$gcc_cv_objdump" >&6; }
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21540 $as_echo "no" >&6; }
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21548 $as_echo_n "checking what objdump to use... " >&6; }
21549 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21550 # Single tree build which includes binutils.
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21552 $as_echo "newly built objdump" >&6; }
21553 elif test x
$gcc_cv_objdump = x
; then
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21555 $as_echo "not found" >&6; }
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21558 $as_echo "$gcc_cv_objdump" >&6; }
21561 # Figure out what readelf we will be using.
21562 if test "${gcc_cv_readelf+set}" = set; then :
21566 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21567 && test -f ..
/binutils
/Makefile \
21568 && test x
$build = x
$host; then
21569 # Single tree build which includes binutils.
21570 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21571 elif test -x readelf
$build_exeext; then
21572 gcc_cv_readelf
=.
/readelf
$build_exeext
21574 # Extract the first word of "readelf", so it can be a program name with args.
21575 set dummy readelf
; ac_word
=$2
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21577 $as_echo_n "checking for $ac_word... " >&6; }
21578 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21579 $as_echo_n "(cached) " >&6
21581 case $gcc_cv_readelf in
21583 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21587 for as_dir
in $PATH
21590 test -z "$as_dir" && as_dir
=.
21591 for ac_exec_ext
in '' $ac_executable_extensions; do
21592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21593 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21604 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21605 if test -n "$gcc_cv_readelf"; then
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21607 $as_echo "$gcc_cv_readelf" >&6; }
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21610 $as_echo "no" >&6; }
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21618 $as_echo_n "checking what readelf to use... " >&6; }
21619 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21620 # Single tree build which includes binutils.
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21622 $as_echo "newly built readelf" >&6; }
21623 elif test x
$gcc_cv_readelf = x
; then
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21625 $as_echo "not found" >&6; }
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21628 $as_echo "$gcc_cv_readelf" >&6; }
21631 # Figure out what assembler alignment features are present.
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21633 $as_echo_n "checking assembler flags... " >&6; }
21634 if test "${gcc_cv_as_flags+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21638 i
[34567]86-*-linux*)
21639 gcc_cv_as_flags
="--32"
21641 powerpc
*-*-darwin*)
21642 gcc_cv_as_flags
="-arch ppc"
21645 gcc_cv_as_flags
=" "
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21650 $as_echo "$gcc_cv_as_flags" >&6; }
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21653 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21654 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21655 $as_echo_n "(cached) " >&6
21657 gcc_cv_as_balign_and_p2align
=no
21658 if test $in_tree_gas = yes; then
21659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21660 then gcc_cv_as_balign_and_p2align
=yes
21662 elif test x
$gcc_cv_as != x
; then
21663 $as_echo '.balign 4
21664 .p2align 2' > conftest.s
21665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21667 (eval $ac_try) 2>&5
21669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21670 test $ac_status = 0; }; }
21672 gcc_cv_as_balign_and_p2align
=yes
21674 echo "configure: failed program was" >&5
21677 rm -f conftest.o conftest.s
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21681 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21682 if test $gcc_cv_as_balign_and_p2align = yes; then
21684 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21689 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21690 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21691 $as_echo_n "(cached) " >&6
21693 gcc_cv_as_max_skip_p2align
=no
21694 if test $in_tree_gas = yes; then
21695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21696 then gcc_cv_as_max_skip_p2align
=yes
21698 elif test x
$gcc_cv_as != x
; then
21699 $as_echo '.p2align 4,,7' > conftest.s
21700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21702 (eval $ac_try) 2>&5
21704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21705 test $ac_status = 0; }; }
21707 gcc_cv_as_max_skip_p2align
=yes
21709 echo "configure: failed program was" >&5
21712 rm -f conftest.o conftest.s
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21716 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21717 if test $gcc_cv_as_max_skip_p2align = yes; then
21719 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21724 $as_echo_n "checking assembler for .literal16... " >&6; }
21725 if test "${gcc_cv_as_literal16+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21728 gcc_cv_as_literal16
=no
21729 if test $in_tree_gas = yes; then
21730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21731 then gcc_cv_as_literal16
=yes
21733 elif test x
$gcc_cv_as != x
; then
21734 $as_echo '.literal16' > conftest.s
21735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21737 (eval $ac_try) 2>&5
21739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21740 test $ac_status = 0; }; }
21742 gcc_cv_as_literal16
=yes
21744 echo "configure: failed program was" >&5
21747 rm -f conftest.o conftest.s
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21751 $as_echo "$gcc_cv_as_literal16" >&6; }
21752 if test $gcc_cv_as_literal16 = yes; then
21754 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21759 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21760 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21761 $as_echo_n "(cached) " >&6
21763 gcc_cv_as_subsection_m1
=no
21764 if test $in_tree_gas = yes; then
21765 if test $in_tree_gas_is_elf = yes \
21766 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21767 then gcc_cv_as_subsection_m1
=yes
21769 elif test x
$gcc_cv_as != x
; then
21770 $as_echo 'conftest_label1: .word 0
21772 conftest_label2: .word 0
21773 .previous' > conftest.s
21774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21776 (eval $ac_try) 2>&5
21778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21779 test $ac_status = 0; }; }
21781 if test x
$gcc_cv_nm != x
; then
21782 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21783 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21784 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21786 else gcc_cv_as_subsection_m1
=yes
21788 rm -f conftest.nm1 conftest.nm2
21791 echo "configure: failed program was" >&5
21794 rm -f conftest.o conftest.s
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21798 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21799 if test $gcc_cv_as_subsection_m1 = yes; then
21801 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21806 $as_echo_n "checking assembler for .weak... " >&6; }
21807 if test "${gcc_cv_as_weak+set}" = set; then :
21808 $as_echo_n "(cached) " >&6
21811 if test $in_tree_gas = yes; then
21812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21813 then gcc_cv_as_weak
=yes
21815 elif test x
$gcc_cv_as != x
; then
21816 $as_echo ' .weak foobar' > conftest.s
21817 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21819 (eval $ac_try) 2>&5
21821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21822 test $ac_status = 0; }; }
21826 echo "configure: failed program was" >&5
21829 rm -f conftest.o conftest.s
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21833 $as_echo "$gcc_cv_as_weak" >&6; }
21834 if test $gcc_cv_as_weak = yes; then
21836 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21841 $as_echo_n "checking assembler for .weakref... " >&6; }
21842 if test "${gcc_cv_as_weakref+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21845 gcc_cv_as_weakref
=no
21846 if test $in_tree_gas = yes; then
21847 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21848 then gcc_cv_as_weakref
=yes
21850 elif test x
$gcc_cv_as != x
; then
21851 $as_echo ' .weakref foobar, barfnot' > conftest.s
21852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21854 (eval $ac_try) 2>&5
21856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857 test $ac_status = 0; }; }
21859 gcc_cv_as_weakref
=yes
21861 echo "configure: failed program was" >&5
21864 rm -f conftest.o conftest.s
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21868 $as_echo "$gcc_cv_as_weakref" >&6; }
21869 if test $gcc_cv_as_weakref = yes; then
21871 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21876 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21877 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21878 $as_echo_n "(cached) " >&6
21880 gcc_cv_as_nsubspa_comdat
=no
21881 if test $in_tree_gas = yes; then
21882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21883 then gcc_cv_as_nsubspa_comdat
=yes
21885 elif test x
$gcc_cv_as != x
; then
21886 $as_echo ' .SPACE $TEXT$
21887 .NSUBSPA $CODE$,COMDAT' > conftest.s
21888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21895 gcc_cv_as_nsubspa_comdat
=yes
21897 echo "configure: failed program was" >&5
21900 rm -f conftest.o conftest.s
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21904 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21905 if test $gcc_cv_as_nsubspa_comdat = yes; then
21907 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21911 # .hidden needs to be supported in both the assembler and the linker,
21912 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21913 # This is irritatingly difficult to feature test for; we have to check the
21914 # date string after the version number. If we've got an in-tree
21915 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21917 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21919 $as_echo_n "checking assembler for .hidden... " >&6; }
21920 if test "${gcc_cv_as_hidden+set}" = set; then :
21921 $as_echo_n "(cached) " >&6
21923 gcc_cv_as_hidden
=no
21924 if test $in_tree_gas = yes; then
21925 if test $in_tree_gas_is_elf = yes \
21926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21927 then gcc_cv_as_hidden
=yes
21929 elif test x
$gcc_cv_as != x
; then
21930 $as_echo ' .hidden foobar
21931 foobar:' > conftest.s
21932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21934 (eval $ac_try) 2>&5
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }; }
21940 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21941 # STV_HIDDEN, so disable .hidden support if so.
21942 case "${target}" in
21943 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
21944 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21945 cat > conftest.s
<<EOF
21950 .set default,hidden
21952 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21953 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21954 grep '\.hidden default' > /dev
/null
; then
21955 gcc_cv_as_hidden
=no
21957 gcc_cv_as_hidden
=yes
21960 # Assume bug is present if objdump is missing.
21961 gcc_cv_as_hidden
=no
21965 gcc_cv_as_hidden
=yes
21969 echo "configure: failed program was" >&5
21972 rm -f conftest.o conftest.s
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21976 $as_echo "$gcc_cv_as_hidden" >&6; }
21978 case "${target}" in
21980 # Darwin as has some visibility support, though with a different syntax.
21981 gcc_cv_as_hidden
=yes
21985 # gnu_indirect_function type is an extension proposed at
21986 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21987 # selection of function implementation
21988 # Check whether --enable-gnu-indirect-function was given.
21989 if test "${enable_gnu_indirect_function+set}" = set; then :
21990 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21992 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21993 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21996 enable_gnu_indirect_function
="$default_gnu_indirect_function"
21999 if test x
$enable_gnu_indirect_function = xyes
; then
22001 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22005 if test $in_tree_ld != yes ; then
22006 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22007 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22008 if test x
"$ld_is_gold" = xyes
; then
22009 # GNU gold --version looks like this:
22011 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22013 # We extract the binutils version which is more familiar and specific
22014 # than the gold version.
22015 ld_vers
=`echo $ld_ver | sed -n \
22016 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22018 # GNU ld --version looks like this:
22020 # GNU ld (GNU Binutils) 2.21.51.20110225
22021 ld_vers
=`echo $ld_ver | sed -n \
22022 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22024 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'`
22025 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22026 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22027 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22029 case "${target}" in
22031 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22034 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22035 # /usr/ccs/bin/ld has been configured.
22036 ld_ver
=`$gcc_cv_ld -V 2>&1`
22037 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22038 ld_vers
=`echo $ld_ver | sed -n \
22039 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22040 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22041 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22049 $as_echo_n "checking linker for .hidden support... " >&6; }
22050 if test "${gcc_cv_ld_hidden+set}" = set; then :
22051 $as_echo_n "(cached) " >&6
22053 if test $in_tree_ld = yes ; then
22054 gcc_cv_ld_hidden
=no
22055 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 \
22056 && test $in_tree_ld_is_elf = yes; then
22057 gcc_cv_ld_hidden
=yes
22060 gcc_cv_ld_hidden
=yes
22061 if test x
"$ld_is_gold" = xyes
; then
22063 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22064 if test 0"$ld_date" -lt 20020404; then
22065 if test -n "$ld_date"; then
22066 # If there was date string, but was earlier than 2002-04-04, fail
22067 gcc_cv_ld_hidden
=no
22068 elif test -z "$ld_vers"; then
22069 # If there was no date string nor ld version number, something is wrong
22070 gcc_cv_ld_hidden
=no
22072 test -z "$ld_vers_patch" && ld_vers_patch
=0
22073 if test "$ld_vers_major" -lt 2; then
22074 gcc_cv_ld_hidden
=no
22075 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22076 gcc_cv_ld_hidden
="no"
22077 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22078 gcc_cv_ld_hidden
=no
22083 case "${target}" in
22085 # Darwin ld has some visibility support.
22086 gcc_cv_ld_hidden
=yes
22088 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22089 gcc_cv_ld_hidden
=yes
22091 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22092 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22093 # .symbolic was only added in Solaris 9 12/02.
22094 gcc_cv_ld_hidden
=yes
22097 gcc_cv_ld_hidden
=no
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22104 $as_echo "$gcc_cv_ld_hidden" >&6; }
22105 libgcc_visibility
=no
22108 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22109 libgcc_visibility
=yes
22111 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22116 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22117 gcc_cv_ld_ro_rw_mix
=unknown
22118 if test $in_tree_ld = yes ; then
22119 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 \
22120 && test $in_tree_ld_is_elf = yes; then
22121 gcc_cv_ld_ro_rw_mix
=read-write
22123 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22124 echo '.section myfoosect, "a"' > conftest1.s
22125 echo '.section myfoosect, "aw"' > conftest2.s
22126 echo '.byte 1' >> conftest2.s
22127 echo '.section myfoosect, "a"' > conftest3.s
22128 echo '.byte 0' >> conftest3.s
22129 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22130 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22131 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22132 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22133 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22134 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22135 | sed -e '/myfoosect/!d' -e N`
22136 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22137 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22138 gcc_cv_ld_ro_rw_mix
=read-only
22140 gcc_cv_ld_ro_rw_mix
=read-write
22144 rm -f conftest.
* conftest
[123].
*
22146 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22148 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22152 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22154 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22155 case "${target}" in
22158 # Solaris 2 ld -V output looks like this for a regular version:
22160 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22162 # but test versions add stuff at the end:
22164 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22166 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22167 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22168 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22169 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22170 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22171 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22177 # Check whether --enable-initfini-array was given.
22178 if test "${enable_initfini_array+set}" = set; then :
22179 enableval
=$enable_initfini_array;
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22183 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22184 if test "${gcc_cv_initfini_array+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22187 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22188 case "${target}" in
22190 if test "$cross_compiling" = yes; then :
22191 gcc_cv_initfini_array
=no
22193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h. */
22197 #error Not an ELF OS
22199 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22200 if it can be used. */
22202 int main (void) { return x; }
22203 int foo (void) { x = 0; }
22204 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22207 if ac_fn_c_try_run
"$LINENO"; then :
22208 gcc_cv_initfini_array
=yes
22210 gcc_cv_initfini_array
=no
22212 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22213 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22217 gcc_cv_initfini_array
=no
22218 if test $in_tree_ld = yes ; then
22219 if test "$gcc_cv_gld_major_version" -eq 2 \
22220 -a "$gcc_cv_gld_minor_version" -ge 22 \
22221 -o "$gcc_cv_gld_major_version" -gt 2 \
22222 && test $in_tree_ld_is_elf = yes; then
22223 gcc_cv_initfini_array
=yes
22225 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22226 cat > conftest.s
<<\EOF
22227 .section .dtors
,"a",%progbits
22229 .byte
'A', 'A', 'A', 'A'
22230 .section .ctors
,"a",%progbits
22232 .byte
'B', 'B', 'B', 'B'
22233 .section .fini_array
.65530,"a",%progbits
22235 .byte
'C', 'C', 'C', 'C'
22236 .section .init_array
.65530,"a",%progbits
22238 .byte
'D', 'D', 'D', 'D'
22239 .section .dtors
.64528,"a",%progbits
22241 .byte
'E', 'E', 'E', 'E'
22242 .section .ctors
.64528,"a",%progbits
22244 .byte
'F', 'F', 'F', 'F'
22245 .section .fini_array
.01005,"a",%progbits
22247 .byte
'G', 'G', 'G', 'G'
22248 .section .init_array
.01005,"a",%progbits
22250 .byte
'H', 'H', 'H', 'H'
22255 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22256 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22257 && $gcc_cv_objdump -s -j .init_array conftest \
22258 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22259 && $gcc_cv_objdump -s -j .fini_array conftest \
22260 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22261 gcc_cv_initfini_array
=yes
22263 rm -f conftest conftest.
*
22265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22269 # error Not an ELF OS
22271 #include <stdlib.h>
22272 #if defined __GLIBC_PREREQ
22273 # if __GLIBC_PREREQ (2, 4)
22275 # error GLIBC 2.4 required
22278 # if defined __sun__ && defined __svr4__
22279 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22281 # error The C library not known to support .init_array/.fini_array
22286 if ac_fn_c_try_cpp
"$LINENO"; then :
22289 gcc_cv_initfini_array
=no
22291 rm -f conftest.err conftest.
$ac_ext;;
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22295 $as_echo_n "checking cross compile... guessing... " >&6; }
22296 gcc_cv_initfini_array
=no
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22300 $as_echo "$gcc_cv_initfini_array" >&6; }
22301 enable_initfini_array
=$gcc_cv_initfini_array
22305 if test $enable_initfini_array = yes; then
22307 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22311 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22313 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22314 if test "${gcc_cv_as_leb128+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22317 gcc_cv_as_leb128
=no
22318 if test $in_tree_gas = yes; then
22319 if test $in_tree_gas_is_elf = yes \
22320 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22321 then gcc_cv_as_leb128
=yes
22323 elif test x
$gcc_cv_as != x
; then
22330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22332 (eval $ac_try) 2>&5
22334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22335 test $ac_status = 0; }; }
22337 # GAS versions before 2.11 do not support uleb128,
22338 # despite appearing to.
22339 # ??? There exists an elf-specific test that will crash
22340 # the assembler. Perhaps it's better to figure out whether
22341 # arbitrary sections are supported and try the test.
22342 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22343 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22344 as_vers
=`echo $as_ver | sed -n \
22345 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22346 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22347 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22348 if test $as_major -eq 2 && test $as_minor -lt 11
22350 else gcc_cv_as_leb128
=yes
22354 echo "configure: failed program was" >&5
22357 rm -f conftest.o conftest.s
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22361 $as_echo "$gcc_cv_as_leb128" >&6; }
22362 if test $gcc_cv_as_leb128 = yes; then
22364 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22368 # Check if we have assembler support for unwind directives.
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22370 $as_echo_n "checking assembler for cfi directives... " >&6; }
22371 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22372 $as_echo_n "(cached) " >&6
22374 gcc_cv_as_cfi_directive
=no
22375 if test x
$gcc_cv_as != x
; then
22381 .cfi_escape 1, 2, 3, 4, 5
22382 .cfi_endproc' > conftest.s
22383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22385 (eval $ac_try) 2>&5
22387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22388 test $ac_status = 0; }; }
22392 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22393 # read-only and read-write sections, we need to make sure that the
22394 # assembler used emits read-write .eh_frame sections.
22395 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22396 if test "x$gcc_cv_objdump" != x
; then
22397 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22398 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22399 gcc_cv_as_cfi_directive
=no
22402 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22403 # On Solaris/x86, make sure that GCC and gas agree on using
22404 # read-only .eh_frame sections for 64-bit.
22405 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22406 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22407 sed -e /.eh_frame
/!d
-e N | \
22408 grep READONLY
> /dev
/null
; then
22409 gcc_cv_as_cfi_directive
=yes
22411 gcc_cv_as_cfi_directive
=no
22415 gcc_cv_as_cfi_directive
=yes
22420 # no objdump, err on the side of caution
22421 gcc_cv_as_cfi_directive
=no
22424 gcc_cv_as_cfi_directive
=yes
22428 gcc_cv_as_cfi_directive
=yes
22432 echo "configure: failed program was" >&5
22435 rm -f conftest.o conftest.s
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22439 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22441 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22443 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22444 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22445 $as_echo_n "(cached) " >&6
22447 gcc_cv_as_cfi_advance_working
=no
22448 if test x
$gcc_cv_as != x
; then
22451 .cfi_adjust_cfa_offset 64
22453 .cfi_adjust_cfa_offset 128
22454 .cfi_endproc' > conftest.s
22455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22457 (eval $ac_try) 2>&5
22459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22460 test $ac_status = 0; }; }
22463 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22464 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22465 gcc_cv_as_cfi_advance_working
=yes
22469 echo "configure: failed program was" >&5
22472 rm -f conftest.o conftest.s
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22476 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22479 # no objdump, err on the side of caution
22480 gcc_cv_as_cfi_advance_working
=no
22484 cat >>confdefs.h
<<_ACEOF
22485 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22486 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22492 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22493 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22496 gcc_cv_as_cfi_personality_directive
=no
22497 if test x
$gcc_cv_as != x
; then
22500 .cfi_personality 0, symbol
22501 .cfi_endproc' > conftest.s
22502 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; }
22509 gcc_cv_as_cfi_personality_directive
=yes
22511 echo "configure: failed program was" >&5
22514 rm -f conftest.o conftest.s
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22518 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22521 cat >>confdefs.h
<<_ACEOF
22522 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22523 then echo 1; else echo 0; fi`
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22528 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22529 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22530 $as_echo_n "(cached) " >&6
22532 gcc_cv_as_cfi_sections_directive
=no
22533 if test x
$gcc_cv_as != x
; then
22535 .cfi_sections .debug_frame, .eh_frame
22537 .cfi_endproc' > conftest.s
22538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; }
22546 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22547 # Need to check that we generated the correct relocation for the
22548 # .debug_frame section. This was fixed for binutils 2.21.
22549 gcc_cv_as_cfi_sections_directive
=no
22550 if test "x$gcc_cv_objdump" != x
; then
22551 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22552 grep secrel
> /dev
/null
; then
22553 gcc_cv_as_cfi_sections_directive
=yes
22558 gcc_cv_as_cfi_sections_directive
=yes
22562 echo "configure: failed program was" >&5
22565 rm -f conftest.o conftest.s
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22569 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22573 cat >>confdefs.h
<<_ACEOF
22574 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22575 then echo 1; else echo 0; fi`
22579 # GAS versions up to and including 2.11.0 may mis-optimize
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22582 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22583 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22584 $as_echo_n "(cached) " >&6
22586 gcc_cv_as_eh_frame
=no
22587 if test $in_tree_gas = yes; then
22588 if test $in_tree_gas_is_elf = yes \
22589 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22590 then gcc_cv_as_eh_frame
=yes
22592 elif test x
$gcc_cv_as != x
; then
22599 .section .eh_frame,"aw",@progbits
22601 .4byte .LECIE1-.LSCIE1
22615 .4byte .LEFDE1-.LASFDE1
22617 .4byte .LASFDE1-__FRAME_BEGIN__
22624 .LEFDE1:' > conftest.s
22625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22627 (eval $ac_try) 2>&5
22629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22630 test $ac_status = 0; }; }
22632 cat > conftest.lit
<<EOF
22633 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22634 0010 01000000 12000000 18000000 00000000 ................
22635 0020 08000000 04080000 0044 .........D
22637 cat > conftest.big
<<EOF
22638 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22639 0010 00000001 00000012 00000018 00000000 ................
22640 0020 00000008 04000000 0844 .........D
22642 # If the assembler didn't choke, and we can objdump,
22643 # and we got the correct data, then succeed.
22644 # The text in the here-document typically retains its unix-style line
22645 # endings, while the output of objdump will use host line endings.
22646 # Therefore, use diff -b for the comparisons.
22647 if test x
$gcc_cv_objdump != x \
22648 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22649 |
tail -3 > conftest.got \
22650 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22651 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22653 gcc_cv_as_eh_frame
=yes
22654 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22656 (eval $ac_try) 2>&5
22658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22659 test $ac_status = 0; }; }; then
22660 gcc_cv_as_eh_frame
=buggy
22662 # Uh oh, what do we do now?
22663 gcc_cv_as_eh_frame
=no
22666 echo "configure: failed program was" >&5
22669 rm -f conftest.o conftest.s
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22673 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22676 if test $gcc_cv_as_eh_frame = buggy
; then
22678 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22683 $as_echo_n "checking assembler for section merging support... " >&6; }
22684 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22685 $as_echo_n "(cached) " >&6
22687 gcc_cv_as_shf_merge
=no
22688 if test $in_tree_gas = yes; then
22689 if test $in_tree_gas_is_elf = yes \
22690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22691 then gcc_cv_as_shf_merge
=yes
22693 elif test x
$gcc_cv_as != x
; then
22694 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22697 (eval $ac_try) 2>&5
22699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22700 test $ac_status = 0; }; }
22702 gcc_cv_as_shf_merge
=yes
22704 echo "configure: failed program was" >&5
22707 rm -f conftest.o conftest.s
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22711 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22713 if test $gcc_cv_as_shf_merge = no
; then
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22715 $as_echo_n "checking assembler for section merging support... " >&6; }
22716 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22719 gcc_cv_as_shf_merge
=no
22720 if test $in_tree_gas = yes; then
22721 if test $in_tree_gas_is_elf = yes \
22722 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22723 then gcc_cv_as_shf_merge
=yes
22725 elif test x
$gcc_cv_as != x
; then
22726 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22729 (eval $ac_try) 2>&5
22731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22732 test $ac_status = 0; }; }
22734 gcc_cv_as_shf_merge
=yes
22736 echo "configure: failed program was" >&5
22739 rm -f conftest.o conftest.s
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22743 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22747 cat >>confdefs.h
<<_ACEOF
22748 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22753 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22754 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22755 $as_echo_n "(cached) " >&6
22757 gcc_cv_as_comdat_group
=no
22758 if test $in_tree_gas = yes; then
22759 if test $in_tree_gas_is_elf = yes \
22760 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22761 then gcc_cv_as_comdat_group
=yes
22763 elif test x
$gcc_cv_as != x
; then
22764 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22772 gcc_cv_as_comdat_group
=yes
22774 echo "configure: failed program was" >&5
22777 rm -f conftest.o conftest.s
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22781 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22783 if test $gcc_cv_as_comdat_group = yes; then
22784 gcc_cv_as_comdat_group_percent
=no
22785 gcc_cv_as_comdat_group_group
=no
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22788 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22789 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22790 $as_echo_n "(cached) " >&6
22792 gcc_cv_as_comdat_group_percent
=no
22793 if test $in_tree_gas = yes; then
22794 if test $in_tree_gas_is_elf = yes \
22795 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22796 then gcc_cv_as_comdat_group_percent
=yes
22798 elif test x
$gcc_cv_as != x
; then
22799 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22802 (eval $ac_try) 2>&5
22804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22805 test $ac_status = 0; }; }
22807 gcc_cv_as_comdat_group_percent
=yes
22809 echo "configure: failed program was" >&5
22812 rm -f conftest.o conftest.s
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22816 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22818 if test $gcc_cv_as_comdat_group_percent = yes; then
22819 gcc_cv_as_comdat_group_group
=no
22821 case "${target}" in
22822 # Sun as uses a completely different syntax.
22824 case "${target}" in
22825 sparc
*-*-solaris2*)
22827 .group foo,".text%foo",#comdat
22828 .section ".text%foo", #alloc,#execinstr,#progbits
22833 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22835 .group foo,.text%foo,#comdat
22836 .section .text%foo, "ax", @progbits
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22843 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22844 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22845 $as_echo_n "(cached) " >&6
22847 gcc_cv_as_comdat_group_group
=no
22848 if test x
$gcc_cv_as != x
; then
22849 $as_echo "$conftest_s" > conftest.s
22850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22852 (eval $ac_try) 2>&5
22854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22855 test $ac_status = 0; }; }
22857 gcc_cv_as_comdat_group_group
=yes
22859 echo "configure: failed program was" >&5
22862 rm -f conftest.o conftest.s
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22866 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22872 if test x
"$ld_is_gold" = xyes
; then
22874 elif test $in_tree_ld = yes ; then
22876 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 \
22877 && test $in_tree_ld_is_elf = yes; then
22880 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22882 if test 0"$ld_date" -lt 20050308; then
22883 if test -n "$ld_date"; then
22884 # If there was date string, but was earlier than 2005-03-08, fail
22886 elif test "$ld_vers_major" -lt 2; then
22888 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22893 case "${target}" in
22894 *-*-solaris2.1
[1-9]*)
22896 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22897 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22900 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22901 # least ld version 1.2267.
22902 if test "$ld_vers_major" -gt 1; then
22904 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22906 elif test "$ld_vers_minor" -ge 2267; then
22911 # Assume linkers other than GNU ld don't support COMDAT group.
22916 # Allow overriding the automatic COMDAT group tests above.
22917 # Check whether --enable-comdat was given.
22918 if test "${enable_comdat+set}" = set; then :
22919 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22922 if test $comdat_group = no
; then
22923 gcc_cv_as_comdat_group
=no
22924 gcc_cv_as_comdat_group_percent
=no
22925 gcc_cv_as_comdat_group_group
=no
22928 cat >>confdefs.h
<<_ACEOF
22929 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22930 || test $gcc_cv_as_comdat_group_percent = yes \
22931 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22936 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22937 if test "${gcc_cv_as_discriminator+set}" = set; then :
22938 $as_echo_n "(cached) " >&6
22940 gcc_cv_as_discriminator
=no
22941 if test $in_tree_gas = yes; then
22942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22943 then gcc_cv_as_discriminator
=yes
22945 elif test x
$gcc_cv_as != x
; then
22948 .loc 1 1 0 discriminator 1' > conftest.s
22949 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22951 (eval $ac_try) 2>&5
22953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22954 test $ac_status = 0; }; }
22956 gcc_cv_as_discriminator
=yes
22958 echo "configure: failed program was" >&5
22961 rm -f conftest.o conftest.s
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22965 $as_echo "$gcc_cv_as_discriminator" >&6; }
22966 if test $gcc_cv_as_discriminator = yes; then
22968 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22972 # Thread-local storage - the check is heavily parameterized.
22980 .section ".tdata","awT",@progbits
22983 ldq $27,__tls_get_addr($29) !literal!1
22984 lda $16,foo($29) !tlsgd!1
22985 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22986 ldq $27,__tls_get_addr($29) !literal!2
22987 lda $16,foo($29) !tlsldm!2
22988 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22989 ldq $1,foo($29) !gotdtprel
22990 ldah $2,foo($29) !dtprelhi
22991 lda $3,foo($2) !dtprello
22992 lda $4,foo($29) !dtprel
22993 ldq $1,foo($29) !gottprel
22994 ldah $2,foo($29) !tprelhi
22995 lda $3,foo($2) !tprello
22996 lda $4,foo($29) !tprel'
22999 tls_as_opt
=--fatal-warnings
23001 cris-
*-*|crisv32-
*-*)
23003 .section ".tdata","awT",@progbits
23010 tls_as_opt
=--fatal-warnings
23014 .section ".tdata","awT",@progbits
23017 call #gettlsoff(x)'
23026 .section ".tdata","awT",@progbits
23030 addil LT%foo-$tls_gdidx$,gp
23031 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23034 addil LT%foo-$tls_ldidx$,gp
23036 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23037 addil LR%foo-$tls_dtpoff$,%ret0
23038 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23040 addil LT%foo-$tls_ieoff$,gp
23041 ldw RT%foo-$tls_ieoff$(%r1),%t2
23044 addil LR%foo-$tls_leoff$,%t1
23045 ldo RR%foo-$tls_leoff$(%r1),%t2'
23048 tls_as_opt
=--fatal-warnings
23052 .section ".tdata","awT",%progbits
23055 .word foo(gottpoff)
23063 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23065 i
[34567]86-*-solaris2.
*)
23067 tga_func
=___tls_get_addr
23069 x86_64-
*-solaris2.1
[0-9]*)
23071 tga_func
=__tls_get_addr
23077 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23079 .section .tdata,"awt",@progbits'
23083 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23087 .section ".tdata","awT",@progbits'
23090 tls_as_opt
="--fatal-warnings"
23092 conftest_s
="$conftest_s
23096 leal foo@tlsgd(,%ebx,1), %eax
23097 leal foo@tlsldm(%ebx), %eax
23098 leal foo@dtpoff(%eax), %edx
23099 movl foo@gottpoff(%ebx), %eax
23100 subl foo@gottpoff(%ebx), %eax
23101 addl foo@gotntpoff(%ebx), %eax
23102 movl foo@indntpoff, %eax
23103 movl \$foo@tpoff, %eax
23104 subl \$foo@tpoff, %eax
23105 leal foo@ntpoff(%ecx), %eax"
23109 .section ".tdata","awT",@progbits
23113 leaq foo@TLSGD(%rip), %rdi
23114 leaq foo@TLSLD(%rip), %rdi
23115 leaq foo@DTPOFF(%rax), %rdx
23116 movq foo@GOTTPOFF(%rip), %rax
23117 movq $foo@TPOFF, %rax'
23120 tls_as_opt
=--fatal-warnings
23124 .section ".tdata","awT",@progbits
23127 addl r16 = @ltoff(@dtpmod(foo#)), gp
23128 addl r17 = @ltoff(@dtprel(foo#)), gp
23129 addl r18 = @ltoff(@tprel(foo#)), gp
23130 addl r19 = @dtprel(foo#), gp
23131 adds r21 = @dtprel(foo#), r13
23132 movl r23 = @dtprel(foo#)
23133 addl r20 = @tprel(foo#), gp
23134 adds r22 = @tprel(foo#), r13
23135 movl r24 = @tprel(foo#)'
23138 tls_as_opt
=--fatal-warnings
23142 .section .tdata,"awT",@progbits
23146 addiu $4, $28, %tlsgd(x)
23147 addiu $4, $28, %tlsldm(x)
23148 lui $4, %dtprel_hi(x)
23149 addiu $4, $4, %dtprel_lo(x)
23150 lw $4, %gottprel(x)($28)
23151 lui $4, %tprel_hi(x)
23152 addiu $4, $4, %tprel_lo(x)'
23155 tls_as_opt
='-32 --fatal-warnings'
23159 .section .tdata,"awT",@progbits
23164 move.l x@TLSGD(%a5),%a0
23165 move.l x@TLSLDM(%a5),%a0
23166 move.l x@TLSLDO(%a5),%a0
23167 move.l x@TLSIE(%a5),%a0
23168 move.l x@TLSLE(%a5),%a0'
23171 tls_as_opt
='--fatal-warnings'
23175 .section ".tdata","awT",@progbits
23183 addi 3,31,ld0@got@tlsgd
23185 addi 3,31,x1@got@tlsld
23188 addis 9,3,x2@dtprel@ha
23189 addi 9,9,x2@dtprel@l
23190 lwz 9,x3@got@tprel(31)
23193 addis 9,2,x2@tprel@ha
23194 addi 9,9,x2@tprel@l'
23197 tls_as_opt
="-a32 --fatal-warnings"
23201 .section ".tdata","awT",@progbits
23209 addi 3,2,ld0@got@tlsgd
23215 addi 3,2,x1@got@tlsld
23221 addis 9,3,x2@dtprel@ha
23222 addi 9,9,x2@dtprel@l
23225 ld 9,x3@got@dtprel(2)
23231 tls_as_opt
="-a64 --fatal-warnings"
23235 .section ".tdata","awT",@progbits
23242 .long foo@GOTNTPOFF
23243 .long foo@INDNTPOFF
23244 l %r1,foo@GOTNTPOFF(%r12)
23245 l %r1,0(%r1):tls_load:foo
23246 bas %r14,0(%r1,%r13):tls_gdcall:foo
23247 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23250 tls_as_opt
="-m31 --fatal-warnings"
23254 .section ".tdata","awT",@progbits
23261 .quad foo@GOTNTPOFF
23262 lg %r1,foo@GOTNTPOFF(%r12)
23263 larl %r1,foo@INDNTPOFF
23264 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23265 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23268 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23270 sh-
*-* | sh
[34]-*-*)
23272 .section ".tdata","awT",@progbits
23282 tls_as_opt
=--fatal-warnings
23286 sparc
*-sun-solaris2.
*)
23288 tga_func
=__tls_get_addr
23294 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23296 .section ".tdata",#alloc,#write,#tls'
23301 .section ".tdata","awT",@progbits'
23304 tls_as_opt
="-32 --fatal-warnings"
23306 conftest_s
="$conftest_s
23309 sethi %tgd_hi22(foo), %o0
23310 add %o0, %tgd_lo10(foo), %o1
23311 add %l7, %o1, %o0, %tgd_add(foo)
23312 call __tls_get_addr, %tgd_call(foo)
23313 sethi %tldm_hi22(foo), %l1
23314 add %l1, %tldm_lo10(foo), %l2
23315 add %l7, %l2, %o0, %tldm_add(foo)
23316 call __tls_get_addr, %tldm_call(foo)
23317 sethi %tldo_hix22(foo), %l3
23318 xor %l3, %tldo_lox10(foo), %l4
23319 add %o0, %l4, %l5, %tldo_add(foo)
23320 sethi %tie_hi22(foo), %o3
23321 add %o3, %tie_lo10(foo), %o3
23322 ld [%l7 + %o3], %o2, %tie_ld(foo)
23323 add %g7, %o2, %o4, %tie_add(foo)
23324 sethi %tle_hix22(foo), %l1
23325 xor %l1, %tle_lox10(foo), %o5
23326 ld [%g7 + %o5], %o1"
23330 .section ".tdata","awT",@progbits
23333 addli r0, zero, tls_gd(foo)
23334 auli r0, zero, tls_gd_ha16(foo)
23335 addli r0, r0, tls_gd_lo16(foo)
23337 addli r0, zero, tls_ie(foo)
23338 auli r0, r0, tls_ie_ha16(foo)
23339 addli r0, r0, tls_ie_lo16(foo)'
23342 tls_as_opt
="--fatal-warnings"
23346 .section ".tdata","awT",@progbits
23349 shl16insli r0, zero, hw0_last_tls_gd(foo)
23350 shl16insli r0, zero, hw1_last_tls_gd(foo)
23351 shl16insli r0, r0, hw0_tls_gd(foo)
23353 shl16insli r0, zero, hw1_last_tls_ie(foo)
23354 shl16insli r0, r0, hw0_tls_ie(foo)'
23357 tls_as_opt
="--fatal-warnings"
23361 .section ".tdata","awT",@progbits
23364 movi a8, foo@TLSFUNC
23365 movi a10, foo@TLSARG
23366 callx8.tls a8, foo@TLSCALL'
23372 if test "x$enable_tls" = xno
; then
23373 : # TLS explicitly disabled.
23374 elif test "x$enable_tls" = xyes
; then
23375 set_have_as_tls
=yes # TLS explicitly enabled.
23376 elif test -z "$tls_first_major"; then
23377 : # If we don't have a check, assume no support.
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23380 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23381 if test "${gcc_cv_as_tls+set}" = set; then :
23382 $as_echo_n "(cached) " >&6
23385 if test $in_tree_gas = yes; then
23386 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23387 then gcc_cv_as_tls
=yes
23389 elif test x
$gcc_cv_as != x
; then
23390 $as_echo "$conftest_s" > conftest.s
23391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23393 (eval $ac_try) 2>&5
23395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23396 test $ac_status = 0; }; }
23400 echo "configure: failed program was" >&5
23403 rm -f conftest.o conftest.s
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23407 $as_echo "$gcc_cv_as_tls" >&6; }
23408 if test $gcc_cv_as_tls = yes; then
23409 set_have_as_tls
=yes
23413 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23414 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23415 # Sun style that Sun ld and GCC don't support any longer.
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23418 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23420 # Check ld and ld.so.1 TLS support.
23421 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23422 # Assume all interesting versions of GNU ld have TLS support.
23423 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23427 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23429 min_tls_ld_vers_minor
=374
23431 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23432 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23433 min_tls_ld_vers_minor
=343
23436 if test "$ld_vers_major" -gt 1 || \
23437 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23444 $as_echo "$ld_tls_support" >&6; }
23447 save_LDFLAGS
="$LDFLAGS"
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23452 $as_echo_n "checking library containing $tga_func... " >&6; }
23453 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23454 # (32-bit x86) only lived in libthread, so check for that. Keep
23455 # set_have_as_tls if found, disable if not.
23456 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23458 $as_echo_n "checking for library containing $tga_func... " >&6; }
23459 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23460 $as_echo_n "(cached) " >&6
23462 ac_func_search_save_LIBS
=$LIBS
23463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23464 /* end confdefs.h. */
23466 /* Override any GCC internal prototype to avoid an error.
23467 Use char because int might match the return type of a GCC
23468 builtin and then its argument prototype would still apply. */
23476 return $tga_func ();
23481 for ac_lib
in '' thread
; do
23482 if test -z "$ac_lib"; then
23483 ac_res
="none required"
23486 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23488 if ac_fn_c_try_link
"$LINENO"; then :
23489 eval "$as_ac_Search=\$ac_res"
23491 rm -f core conftest.err conftest.
$ac_objext \
23493 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23497 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23500 eval "$as_ac_Search=no"
23502 rm conftest.
$ac_ext
23503 LIBS
=$ac_func_search_save_LIBS
23505 eval ac_res
=\$
$as_ac_Search
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23507 $as_echo "$ac_res" >&6; }
23508 eval ac_res
=\$
$as_ac_Search
23509 if test "$ac_res" != no
; then :
23510 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23516 # Clear LIBS if we cannot support TLS.
23517 if test $set_have_as_tls = no
; then
23520 # Always define LIB_TLS_SPEC, even without TLS support.
23522 cat >>confdefs.h
<<_ACEOF
23523 #define LIB_TLS_SPEC "$LIBS"
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23527 $as_echo "$LIBS" >&6; }
23530 LDFLAGS
="$save_LDFLAGS"
23533 if test $set_have_as_tls = yes ; then
23535 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23539 # Target-specific assembler checks.
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23542 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23543 gcc_cv_ld_static_dynamic
=no
23544 gcc_cv_ld_static_option
='-Bstatic'
23545 gcc_cv_ld_dynamic_option
='-Bdynamic'
23546 if test $in_tree_ld = yes ; then
23547 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
23548 gcc_cv_ld_static_dynamic
=yes
23550 elif test x
$gcc_cv_ld != x
; then
23551 # Check if linker supports -Bstatic/-Bdynamic option
23552 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23553 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23554 gcc_cv_ld_static_dynamic
=yes
23557 # HP-UX ld uses -a flags to select between shared and archive.
23559 if test x
"$gnu_ld" = xno
; then
23560 gcc_cv_ld_static_dynamic
=yes
23561 gcc_cv_ld_static_option
="-aarchive_shared"
23562 gcc_cv_ld_dynamic_option
="-adefault"
23565 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23567 gcc_cv_ld_static_dynamic
=yes
23572 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23574 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23577 cat >>confdefs.h
<<_ACEOF
23578 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23582 cat >>confdefs.h
<<_ACEOF
23583 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23588 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23590 if test x
"$demangler_in_ld" = xyes
; then
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23592 $as_echo_n "checking linker --demangle support... " >&6; }
23593 gcc_cv_ld_demangle
=no
23594 if test $in_tree_ld = yes; then
23595 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 \
23596 gcc_cv_ld_demangle
=yes
23598 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23599 # Check if the GNU linker supports --demangle option
23600 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23601 gcc_cv_ld_demangle
=yes
23604 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23606 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23610 $as_echo "$gcc_cv_ld_demangle" >&6; }
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23614 $as_echo_n "checking linker plugin support... " >&6; }
23615 gcc_cv_lto_plugin
=0
23616 if test -f liblto_plugin.la
; then
23617 save_ld_ver
="$ld_ver"
23618 save_ld_vers_major
="$ld_vers_major"
23619 save_ld_vers_minor
="$ld_vers_minor"
23620 save_ld_is_gold
="$ld_is_gold"
23624 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23626 # FIXME: ld_is_gold?
23627 ld_vers_major
="$gcc_cv_gld_major_version"
23628 ld_vers_minor
="$gcc_cv_gld_minor_version"
23630 # Determine plugin linker version.
23631 # FIXME: Partial duplicate from above, generalize.
23632 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23633 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23634 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23636 ld_vers
=`echo $ld_ver | sed -n \
23637 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23639 ld_vers
=`echo $ld_ver | sed -n \
23640 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23642 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23643 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23647 # Determine plugin support.
23648 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23649 # Require GNU ld or gold 2.21+ for plugin support by default.
23650 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23651 gcc_cv_lto_plugin
=2
23652 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23653 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23654 gcc_cv_lto_plugin
=1
23658 ld_ver
="$save_ld_ver"
23659 ld_vers_major
="$save_ld_vers_major"
23660 ld_vers_minor
="$save_ld_vers_minor"
23661 ld_is_gold
="$save_ld_is_gold"
23664 cat >>confdefs.h
<<_ACEOF
23665 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23669 $as_echo "$gcc_cv_lto_plugin" >&6; }
23672 # All TARGET_ABI_OSF targets.
23673 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23675 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23676 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23677 $as_echo_n "(cached) " >&6
23679 gcc_cv_as_alpha_explicit_relocs
=no
23680 if test $in_tree_gas = yes; then
23681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23682 then gcc_cv_as_alpha_explicit_relocs
=yes
23684 elif test x
$gcc_cv_as != x
; then
23685 $as_echo ' .set nomacro
23687 extbl $3, $2, $3 !lituse_bytoff!1
23688 ldq $2, a($29) !literal!1
23689 ldq $4, b($29) !literal!2
23690 ldq_u $3, 0($2) !lituse_base!1
23691 ldq $27, f($29) !literal!5
23692 jsr $26, ($27), f !lituse_jsr!5
23693 ldah $29, 0($26) !gpdisp!3
23694 lda $0, c($29) !gprel
23695 ldah $1, d($29) !gprelhigh
23696 lda $1, d($1) !gprellow
23697 lda $29, 0($29) !gpdisp!3' > conftest.s
23698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23700 (eval $ac_try) 2>&5
23702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23703 test $ac_status = 0; }; }
23705 gcc_cv_as_alpha_explicit_relocs
=yes
23707 echo "configure: failed program was" >&5
23710 rm -f conftest.o conftest.s
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23714 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23715 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23717 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23721 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23722 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23723 $as_echo_n "(cached) " >&6
23725 gcc_cv_as_alpha_jsrdirect_relocs
=no
23726 if test $in_tree_gas = yes; then
23727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23728 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23730 elif test x
$gcc_cv_as != x
; then
23731 $as_echo ' .set nomacro
23733 ldq $27, a($29) !literal!1
23734 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23742 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23744 echo "configure: failed program was" >&5
23747 rm -f conftest.o conftest.s
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23751 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23752 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23754 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23761 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23762 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23763 $as_echo_n "(cached) " >&6
23765 gcc_cv_as_cris_no_mul_bug
=no
23766 if test $in_tree_gas = yes; then
23767 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23768 then gcc_cv_as_cris_no_mul_bug
=yes
23770 elif test x
$gcc_cv_as != x
; then
23771 $as_echo '.text' > conftest.s
23772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23774 (eval $ac_try) 2>&5
23776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23777 test $ac_status = 0; }; }
23779 gcc_cv_as_cris_no_mul_bug
=yes
23781 echo "configure: failed program was" >&5
23784 rm -f conftest.o conftest.s
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23788 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23789 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23791 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23798 $as_echo_n "checking assembler for .register... " >&6; }
23799 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23800 $as_echo_n "(cached) " >&6
23802 gcc_cv_as_sparc_register_op
=no
23803 if test x
$gcc_cv_as != x
; then
23804 $as_echo '.register %g2, #scratch' > conftest.s
23805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23807 (eval $ac_try) 2>&5
23809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23810 test $ac_status = 0; }; }
23812 gcc_cv_as_sparc_register_op
=yes
23814 echo "configure: failed program was" >&5
23817 rm -f conftest.o conftest.s
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23821 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23822 if test $gcc_cv_as_sparc_register_op = yes; then
23824 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23829 $as_echo_n "checking assembler for -relax option... " >&6; }
23830 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23831 $as_echo_n "(cached) " >&6
23833 gcc_cv_as_sparc_relax
=no
23834 if test x
$gcc_cv_as != x
; then
23835 $as_echo '.text' > conftest.s
23836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23838 (eval $ac_try) 2>&5
23840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23841 test $ac_status = 0; }; }
23843 gcc_cv_as_sparc_relax
=yes
23845 echo "configure: failed program was" >&5
23848 rm -f conftest.o conftest.s
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23852 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23853 if test $gcc_cv_as_sparc_relax = yes; then
23855 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23860 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23861 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23864 gcc_cv_as_sparc_gotdata_op
=no
23865 if test x
$gcc_cv_as != x
; then
23871 sethi %gdop_hix22(foo), %g1
23872 xor %g1, %gdop_lox10(foo), %g1
23873 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23874 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23876 (eval $ac_try) 2>&5
23878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23879 test $ac_status = 0; }; }
23881 if test x
$gcc_cv_ld != x \
23882 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23883 if test x
$gcc_cv_objdump != x
; then
23884 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23885 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23886 gcc_cv_as_sparc_gotdata_op
=no
23888 gcc_cv_as_sparc_gotdata_op
=yes
23894 echo "configure: failed program was" >&5
23897 rm -f conftest.o conftest.s
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23901 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23902 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23904 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23909 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23910 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23911 $as_echo_n "(cached) " >&6
23913 gcc_cv_as_sparc_ua_pcrel
=no
23914 if test x
$gcc_cv_as != x
; then
23921 .uaword %r_disp32(foo)' > conftest.s
23922 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23924 (eval $ac_try) 2>&5
23926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23927 test $ac_status = 0; }; }
23929 if test x
$gcc_cv_ld != x \
23930 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23931 gcc_cv_as_sparc_ua_pcrel
=yes
23935 echo "configure: failed program was" >&5
23938 rm -f conftest.o conftest.s
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23942 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23943 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23945 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23949 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23950 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23951 $as_echo_n "(cached) " >&6
23953 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23954 if test x
$gcc_cv_as != x
; then
23958 .uaword %r_disp32(foo)
23959 .byte 0x32, 0x33, 0x34
23963 .skip 4' > conftest.s
23964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23966 (eval $ac_try) 2>&5
23968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23969 test $ac_status = 0; }; }
23971 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23972 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23973 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23974 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23975 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23976 |
grep 'DISP32' > /dev
/null
2>&1; then
23979 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23984 echo "configure: failed program was" >&5
23987 rm -f conftest.o conftest.s
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23991 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23992 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23994 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23998 fi # unaligned pcrel relocs
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24001 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24002 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24005 gcc_cv_as_sparc_offsetable_lo10
=no
24006 if test x
$gcc_cv_as != x
; then
24008 or %g1, %lo(ab) + 12, %g1
24009 or %g1, %lo(ab + 12), %g1' > conftest.s
24010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24017 if test x
$gcc_cv_objdump != x \
24018 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24019 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24020 gcc_cv_as_sparc_offsetable_lo10
=yes
24023 echo "configure: failed program was" >&5
24026 rm -f conftest.o conftest.s
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24030 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24031 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24033 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24038 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24039 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24040 $as_echo_n "(cached) " >&6
24042 gcc_cv_as_sparc_fmaf
=no
24043 if test x
$gcc_cv_as != x
; then
24045 .register %g2, #scratch
24046 .register %g3, #scratch
24048 fmaddd %f0, %f2, %f4, %f6
24049 addxccc %g1, %g2, %g3
24050 fsrl32 %f2, %f4, %f8
24051 fnaddd %f10, %f12, %f14' > conftest.s
24052 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24054 (eval $ac_try) 2>&5
24056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24057 test $ac_status = 0; }; }
24059 gcc_cv_as_sparc_fmaf
=yes
24061 echo "configure: failed program was" >&5
24064 rm -f conftest.o conftest.s
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24068 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24069 if test $gcc_cv_as_sparc_fmaf = yes; then
24071 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24076 i
[34567]86-*-* | x86_64-
*-*)
24079 # Full C++ conformance when using a shared libstdc++-v3 requires some
24080 # support from the Cygwin DLL, which in more recent versions exports
24081 # wrappers to aid in interposing and redirecting operators new, delete,
24082 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24083 # are configuring for a version of Cygwin that exports the wrappers.
24084 if test x
$host = x
$target; then
24085 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24086 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24087 gcc_ac_cygwin_dll_wrappers
=yes
24089 gcc_ac_cygwin_dll_wrappers
=no
24093 # Can't check presence of libc functions during cross-compile, so
24094 # we just have to assume we're building for an up-to-date target.
24095 gcc_ac_cygwin_dll_wrappers
=yes
24098 cat >>confdefs.h
<<_ACEOF
24099 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24104 cygwin
* | pe | mingw32
* | interix
*)
24105 # Recent binutils allows the three-operand form of ".comm" on PE. This
24106 # definition is used unconditionally to initialise the default state of
24107 # the target option variable that governs usage of the feature.
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24109 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24110 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24111 $as_echo_n "(cached) " >&6
24113 gcc_cv_as_comm_has_align
=no
24114 if test $in_tree_gas = yes; then
24115 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24116 then gcc_cv_as_comm_has_align
=yes
24118 elif test x
$gcc_cv_as != x
; then
24119 $as_echo '.comm foo,1,32' > conftest.s
24120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24122 (eval $ac_try) 2>&5
24124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24125 test $ac_status = 0; }; }
24127 gcc_cv_as_comm_has_align
=yes
24129 echo "configure: failed program was" >&5
24132 rm -f conftest.o conftest.s
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24136 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24139 cat >>confdefs.h
<<_ACEOF
24140 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24143 # Used for DWARF 2 in PE
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24145 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24146 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24149 gcc_cv_as_ix86_pe_secrel32
=no
24150 if test $in_tree_gas = yes; then
24151 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24152 then gcc_cv_as_ix86_pe_secrel32
=yes
24154 elif test x
$gcc_cv_as != x
; then
24158 .secrel32 foo' > conftest.s
24159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24161 (eval $ac_try) 2>&5
24163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24164 test $ac_status = 0; }; }
24166 if test x
$gcc_cv_ld != x \
24167 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24168 gcc_cv_as_ix86_pe_secrel32
=yes
24172 echo "configure: failed program was" >&5
24175 rm -f conftest.o conftest.s
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24179 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24180 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24182 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24185 # Test if the assembler supports the extended form of the .section
24186 # directive that specifies section alignment. LTO support uses this,
24187 # but normally only after installation, so we warn but don't fail the
24188 # configure if LTO is enabled but the assembler does not support it.
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24190 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24191 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24194 gcc_cv_as_section_has_align
=no
24195 if test $in_tree_gas = yes; then
24196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24197 then gcc_cv_as_section_has_align
=yes
24199 elif test x
$gcc_cv_as != x
; then
24200 $as_echo '.section lto_test,"dr0"' > conftest.s
24201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; }
24208 gcc_cv_as_section_has_align
=yes
24210 echo "configure: failed program was" >&5
24213 rm -f conftest.o conftest.s
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24217 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24219 if test x
$gcc_cv_as_section_has_align != xyes
; then
24220 case ",$enable_languages," in
24222 { $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
24223 $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;}
24227 # Test if the assembler supports the section flag 'e' for specifying
24228 # an excluded section.
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24230 $as_echo_n "checking assembler for .section with e... " >&6; }
24231 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24232 $as_echo_n "(cached) " >&6
24234 gcc_cv_as_section_has_e
=no
24235 if test $in_tree_gas = yes; then
24236 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24237 then gcc_cv_as_section_has_e
=yes
24239 elif test x
$gcc_cv_as != x
; then
24240 $as_echo '.section foo1,"e"
24241 .byte 0,0,0,0' > conftest.s
24242 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24244 (eval $ac_try) 2>&5
24246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24247 test $ac_status = 0; }; }
24249 gcc_cv_as_section_has_e
=yes
24251 echo "configure: failed program was" >&5
24254 rm -f conftest.o conftest.s
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24258 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24261 cat >>confdefs.h
<<_ACEOF
24262 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24269 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24270 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24273 gcc_cv_as_ix86_filds
=no
24274 if test x
$gcc_cv_as != x
; then
24275 $as_echo 'filds mem; fists mem' > conftest.s
24276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24278 (eval $ac_try) 2>&5
24280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24281 test $ac_status = 0; }; }
24283 gcc_cv_as_ix86_filds
=yes
24285 echo "configure: failed program was" >&5
24288 rm -f conftest.o conftest.s
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24292 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24293 if test $gcc_cv_as_ix86_filds = yes; then
24295 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24300 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24301 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24302 $as_echo_n "(cached) " >&6
24304 gcc_cv_as_ix86_fildq
=no
24305 if test x
$gcc_cv_as != x
; then
24306 $as_echo 'fildq mem; fistpq mem' > conftest.s
24307 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24309 (eval $ac_try) 2>&5
24311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24312 test $ac_status = 0; }; }
24314 gcc_cv_as_ix86_fildq
=yes
24316 echo "configure: failed program was" >&5
24319 rm -f conftest.o conftest.s
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24323 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24324 if test $gcc_cv_as_ix86_fildq = yes; then
24326 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24331 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24332 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24333 $as_echo_n "(cached) " >&6
24335 gcc_cv_as_ix86_cmov_sun_syntax
=no
24336 if test x
$gcc_cv_as != x
; then
24337 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24340 (eval $ac_try) 2>&5
24342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24343 test $ac_status = 0; }; }
24345 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24347 echo "configure: failed program was" >&5
24350 rm -f conftest.o conftest.s
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24354 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24355 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24357 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24362 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24363 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24364 $as_echo_n "(cached) " >&6
24366 gcc_cv_as_ix86_ffreep
=no
24367 if test x
$gcc_cv_as != x
; then
24368 $as_echo 'ffreep %st(1)' > conftest.s
24369 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24371 (eval $ac_try) 2>&5
24373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24374 test $ac_status = 0; }; }
24376 gcc_cv_as_ix86_ffreep
=yes
24378 echo "configure: failed program was" >&5
24381 rm -f conftest.o conftest.s
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24385 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24386 if test $gcc_cv_as_ix86_ffreep = yes; then
24388 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24393 $as_echo_n "checking assembler for .quad directive... " >&6; }
24394 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24397 gcc_cv_as_ix86_quad
=no
24398 if test x
$gcc_cv_as != x
; then
24399 $as_echo '.quad 0' > conftest.s
24400 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24402 (eval $ac_try) 2>&5
24404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24405 test $ac_status = 0; }; }
24407 gcc_cv_as_ix86_quad
=yes
24409 echo "configure: failed program was" >&5
24412 rm -f conftest.o conftest.s
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24416 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24417 if test $gcc_cv_as_ix86_quad = yes; then
24419 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24424 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24425 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24426 $as_echo_n "(cached) " >&6
24428 gcc_cv_as_ix86_sahf
=no
24429 if test x
$gcc_cv_as != x
; then
24432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24434 (eval $ac_try) 2>&5
24436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24437 test $ac_status = 0; }; }
24439 gcc_cv_as_ix86_sahf
=yes
24441 echo "configure: failed program was" >&5
24444 rm -f conftest.o conftest.s
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24448 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24449 if test $gcc_cv_as_ix86_sahf = yes; then
24451 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24456 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24457 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24458 $as_echo_n "(cached) " >&6
24460 gcc_cv_as_ix86_hle
=no
24461 if test x
$gcc_cv_as != x
; then
24462 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24470 gcc_cv_as_ix86_hle
=yes
24472 echo "configure: failed program was" >&5
24475 rm -f conftest.o conftest.s
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24479 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24480 if test $gcc_cv_as_ix86_hle = yes; then
24482 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24487 $as_echo_n "checking assembler for swap suffix... " >&6; }
24488 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gcc_cv_as_ix86_swap
=no
24492 if test x
$gcc_cv_as != x
; then
24493 $as_echo 'movl.s %esp, %ebp' > conftest.s
24494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24501 gcc_cv_as_ix86_swap
=yes
24503 echo "configure: failed program was" >&5
24506 rm -f conftest.o conftest.s
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24510 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24511 if test $gcc_cv_as_ix86_swap = yes; then
24513 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24518 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24519 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24520 $as_echo_n "(cached) " >&6
24522 gcc_cv_as_ix86_diff_sect_delta
=no
24523 if test x
$gcc_cv_as != x
; then
24524 $as_echo '.section .rodata
24530 .L2: nop' > conftest.s
24531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24533 (eval $ac_try) 2>&5
24535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24536 test $ac_status = 0; }; }
24538 gcc_cv_as_ix86_diff_sect_delta
=yes
24540 echo "configure: failed program was" >&5
24543 rm -f conftest.o conftest.s
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24547 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24548 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24550 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24554 # These two are used unconditionally by i386.[ch]; it is to be defined
24555 # to 1 if the feature is present, 0 otherwise.
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24557 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24558 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24559 $as_echo_n "(cached) " >&6
24561 gcc_cv_as_ix86_gotoff_in_data
=no
24562 if test $in_tree_gas = yes; then
24563 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24564 then gcc_cv_as_ix86_gotoff_in_data
=yes
24566 elif test x
$gcc_cv_as != x
; then
24571 .long .L0@GOTOFF' > conftest.s
24572 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24574 (eval $ac_try) 2>&5
24576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577 test $ac_status = 0; }; }
24579 gcc_cv_as_ix86_gotoff_in_data
=yes
24581 echo "configure: failed program was" >&5
24584 rm -f conftest.o conftest.s
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24588 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24591 cat >>confdefs.h
<<_ACEOF
24592 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24597 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24598 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 gcc_cv_as_ix86_rep_lock_prefix
=no
24602 if test x
$gcc_cv_as != x
; then
24603 $as_echo 'rep movsl
24608 lock addl %edi, (%eax,%esi)
24609 lock orl $0, (%esp)' > conftest.s
24610 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24612 (eval $ac_try) 2>&5
24614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24615 test $ac_status = 0; }; }
24617 gcc_cv_as_ix86_rep_lock_prefix
=yes
24619 echo "configure: failed program was" >&5
24622 rm -f conftest.o conftest.s
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24626 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24627 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24629 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24634 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24635 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24636 $as_echo_n "(cached) " >&6
24638 gcc_cv_as_ix86_tlsgdplt
=no
24639 if test x
$gcc_cv_as != x
; then
24640 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24643 (eval $ac_try) 2>&5
24645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24646 test $ac_status = 0; }; }
24648 if test x
$gcc_cv_ld != x \
24649 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24650 gcc_cv_as_ix86_tlsgdplt
=yes
24654 echo "configure: failed program was" >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24661 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24662 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24664 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24669 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24670 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24671 $as_echo_n "(cached) " >&6
24673 gcc_cv_as_ix86_tlsldmplt
=no
24674 if test x
$gcc_cv_as != x
; then
24676 call tls_ld@tlsldmplt' > conftest.s
24677 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24679 (eval $ac_try) 2>&5
24681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682 test $ac_status = 0; }; }
24684 if test x
$gcc_cv_ld != x \
24685 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24686 gcc_cv_as_ix86_tlsldmplt
=yes
24690 echo "configure: failed program was" >&5
24693 rm -f conftest.o conftest.s
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24697 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24698 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24700 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24708 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24709 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24712 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24713 if test $in_tree_gas = yes; then
24714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24715 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24717 elif test x
$gcc_cv_as != x
; then
24719 addl r15 = @ltoffx(x#), gp
24721 ld8.mov r16 = [r15], x#' > conftest.s
24722 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24724 (eval $ac_try) 2>&5
24726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24727 test $ac_status = 0; }; }
24729 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24731 echo "configure: failed program was" >&5
24734 rm -f conftest.o conftest.s
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24738 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24739 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24741 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24749 *-*-aix*) conftest_s
=' .machine "pwr5"
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24754 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24755 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24756 $as_echo_n "(cached) " >&6
24758 gcc_cv_as_machine_directive
=no
24759 if test x
$gcc_cv_as != x
; then
24760 $as_echo ' .machine ppc7400' > conftest.s
24761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24763 (eval $ac_try) 2>&5
24765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24766 test $ac_status = 0; }; }
24768 gcc_cv_as_machine_directive
=yes
24770 echo "configure: failed program was" >&5
24773 rm -f conftest.o conftest.s
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24777 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24779 if test x
$gcc_cv_as_machine_directive != xyes
; then
24780 echo "*** This target requires an assembler supporting \".machine\"" >&2
24781 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24782 test x
$build = x
$target && exit 1
24786 *) conftest_s
=' .machine power4
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24792 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24793 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24796 gcc_cv_as_powerpc_mfcrf
=no
24797 if test $in_tree_gas = yes; then
24798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24799 then gcc_cv_as_powerpc_mfcrf
=yes
24801 elif test x
$gcc_cv_as != x
; then
24802 $as_echo "$conftest_s" > conftest.s
24803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24810 gcc_cv_as_powerpc_mfcrf
=yes
24812 echo "configure: failed program was" >&5
24815 rm -f conftest.o conftest.s
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24819 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24820 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24822 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24827 *-*-aix*) conftest_s
=' .machine "pwr5"
24830 *) conftest_s
=' .machine power5
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24836 $as_echo_n "checking assembler for popcntb support... " >&6; }
24837 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24838 $as_echo_n "(cached) " >&6
24840 gcc_cv_as_powerpc_popcntb
=no
24841 if test $in_tree_gas = yes; then
24842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24843 then gcc_cv_as_powerpc_popcntb
=yes
24845 elif test x
$gcc_cv_as != x
; then
24846 $as_echo "$conftest_s" > conftest.s
24847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849 (eval $ac_try) 2>&5
24851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852 test $ac_status = 0; }; }
24854 gcc_cv_as_powerpc_popcntb
=yes
24856 echo "configure: failed program was" >&5
24859 rm -f conftest.o conftest.s
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24863 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24864 if test $gcc_cv_as_powerpc_popcntb = yes; then
24866 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24871 *-*-aix*) conftest_s
=' .machine "pwr5x"
24874 *) conftest_s
=' .machine power5
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24880 $as_echo_n "checking assembler for fp round support... " >&6; }
24881 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24882 $as_echo_n "(cached) " >&6
24884 gcc_cv_as_powerpc_fprnd
=no
24885 if test $in_tree_gas = yes; then
24886 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24887 then gcc_cv_as_powerpc_fprnd
=yes
24889 elif test x
$gcc_cv_as != x
; then
24890 $as_echo "$conftest_s" > conftest.s
24891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24893 (eval $ac_try) 2>&5
24895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896 test $ac_status = 0; }; }
24898 gcc_cv_as_powerpc_fprnd
=yes
24900 echo "configure: failed program was" >&5
24903 rm -f conftest.o conftest.s
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24907 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24908 if test $gcc_cv_as_powerpc_fprnd = yes; then
24910 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24915 *-*-aix*) conftest_s
=' .machine "pwr6"
24918 *) conftest_s
=' .machine power6
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24924 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24925 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24926 $as_echo_n "(cached) " >&6
24928 gcc_cv_as_powerpc_mfpgpr
=no
24929 if test $in_tree_gas = yes; then
24930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24931 then gcc_cv_as_powerpc_mfpgpr
=yes
24933 elif test x
$gcc_cv_as != x
; then
24934 $as_echo "$conftest_s" > conftest.s
24935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24942 gcc_cv_as_powerpc_mfpgpr
=yes
24944 echo "configure: failed program was" >&5
24947 rm -f conftest.o conftest.s
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24951 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24952 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24954 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24959 *-*-aix*) conftest_s
=' .csect .text[PR]
24961 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24965 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24966 *) conftest_s
=' .text
24968 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24972 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24973 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24974 $as_echo_n "(cached) " >&6
24976 gcc_cv_as_powerpc_rel16
=no
24977 if test $in_tree_gas = yes; then
24978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24979 then gcc_cv_as_powerpc_rel16
=yes
24981 elif test x
$gcc_cv_as != x
; then
24982 $as_echo "$conftest_s" > conftest.s
24983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24985 (eval $ac_try) 2>&5
24987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24988 test $ac_status = 0; }; }
24990 gcc_cv_as_powerpc_rel16
=yes
24992 echo "configure: failed program was" >&5
24995 rm -f conftest.o conftest.s
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24999 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25000 if test $gcc_cv_as_powerpc_rel16 = yes; then
25002 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25007 *-*-aix*) conftest_s
=' .machine "pwr6"
25010 *) conftest_s
=' .machine power6
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25016 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25017 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25020 gcc_cv_as_powerpc_cmpb
=no
25021 if test $in_tree_gas = yes; then
25022 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25023 then gcc_cv_as_powerpc_cmpb
=yes
25025 elif test x
$gcc_cv_as != x
; then
25026 $as_echo "$conftest_s" > conftest.s
25027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25029 (eval $ac_try) 2>&5
25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25032 test $ac_status = 0; }; }
25034 gcc_cv_as_powerpc_cmpb
=yes
25036 echo "configure: failed program was" >&5
25039 rm -f conftest.o conftest.s
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25043 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25044 if test $gcc_cv_as_powerpc_cmpb = yes; then
25046 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25051 *-*-aix*) conftest_s
=' .machine "pwr6"
25054 *) conftest_s
=' .machine power6
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25060 $as_echo_n "checking assembler for decimal float support... " >&6; }
25061 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25062 $as_echo_n "(cached) " >&6
25064 gcc_cv_as_powerpc_dfp
=no
25065 if test $in_tree_gas = yes; then
25066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25067 then gcc_cv_as_powerpc_dfp
=yes
25069 elif test x
$gcc_cv_as != x
; then
25070 $as_echo "$conftest_s" > conftest.s
25071 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25073 (eval $ac_try) 2>&5
25075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25076 test $ac_status = 0; }; }
25078 gcc_cv_as_powerpc_dfp
=yes
25080 echo "configure: failed program was" >&5
25083 rm -f conftest.o conftest.s
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25087 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25088 if test $gcc_cv_as_powerpc_dfp = yes; then
25090 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25095 *-*-aix*) conftest_s
=' .machine "pwr7"
25098 *) conftest_s
=' .machine power7
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25104 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25105 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25106 $as_echo_n "(cached) " >&6
25108 gcc_cv_as_powerpc_vsx
=no
25109 if test $in_tree_gas = yes; then
25110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25111 then gcc_cv_as_powerpc_vsx
=yes
25113 elif test x
$gcc_cv_as != x
; then
25114 $as_echo "$conftest_s" > conftest.s
25115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25117 (eval $ac_try) 2>&5
25119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25120 test $ac_status = 0; }; }
25122 gcc_cv_as_powerpc_vsx
=yes
25124 echo "configure: failed program was" >&5
25127 rm -f conftest.o conftest.s
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25131 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25132 if test $gcc_cv_as_powerpc_vsx = yes; then
25134 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25139 *-*-aix*) conftest_s
=' .machine "pwr7"
25142 *) conftest_s
=' .machine power7
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25148 $as_echo_n "checking assembler for popcntd support... " >&6; }
25149 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25150 $as_echo_n "(cached) " >&6
25152 gcc_cv_as_powerpc_popcntd
=no
25153 if test $in_tree_gas = yes; then
25154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25155 then gcc_cv_as_powerpc_popcntd
=yes
25157 elif test x
$gcc_cv_as != x
; then
25158 $as_echo "$conftest_s" > conftest.s
25159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25161 (eval $ac_try) 2>&5
25163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25164 test $ac_status = 0; }; }
25166 gcc_cv_as_powerpc_popcntd
=yes
25168 echo "configure: failed program was" >&5
25171 rm -f conftest.o conftest.s
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25175 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25176 if test $gcc_cv_as_powerpc_popcntd = yes; then
25178 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25183 *-*-aix*) conftest_s
=' .csect .text[PR]
25185 *) conftest_s
=' .text
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25190 $as_echo_n "checking assembler for lwsync support... " >&6; }
25191 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25192 $as_echo_n "(cached) " >&6
25194 gcc_cv_as_powerpc_lwsync
=no
25195 if test $in_tree_gas = yes; then
25196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25197 then gcc_cv_as_powerpc_lwsync
=yes
25199 elif test x
$gcc_cv_as != x
; then
25200 $as_echo "$conftest_s" > conftest.s
25201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203 (eval $ac_try) 2>&5
25205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206 test $ac_status = 0; }; }
25208 gcc_cv_as_powerpc_lwsync
=yes
25210 echo "configure: failed program was" >&5
25213 rm -f conftest.o conftest.s
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25217 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25218 if test $gcc_cv_as_powerpc_lwsync = yes; then
25220 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25225 *-*-aix*) conftest_s
=' .machine "476"
25228 *) conftest_s
=' .machine "476"
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25234 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25235 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25238 gcc_cv_as_powerpc_dci
=no
25239 if test $in_tree_gas = yes; then
25240 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25241 then gcc_cv_as_powerpc_dci
=yes
25243 elif test x
$gcc_cv_as != x
; then
25244 $as_echo "$conftest_s" > conftest.s
25245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25252 gcc_cv_as_powerpc_dci
=yes
25254 echo "configure: failed program was" >&5
25257 rm -f conftest.o conftest.s
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25261 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25262 if test $gcc_cv_as_powerpc_dci = yes; then
25264 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25269 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25270 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25273 gcc_cv_as_powerpc_gnu_attribute
=no
25274 if test $in_tree_gas = yes; then
25275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25276 then gcc_cv_as_powerpc_gnu_attribute
=yes
25278 elif test x
$gcc_cv_as != x
; then
25279 $as_echo '.gnu_attribute 4,1' > conftest.s
25280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282 (eval $ac_try) 2>&5
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; }
25287 gcc_cv_as_powerpc_gnu_attribute
=yes
25289 echo "configure: failed program was" >&5
25292 rm -f conftest.o conftest.s
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25296 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25297 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25299 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25304 $as_echo_n "checking assembler for tls marker support... " >&6; }
25305 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25308 gcc_cv_as_powerpc_tls_markers
=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25311 then gcc_cv_as_powerpc_tls_markers
=yes
25313 elif test x
$gcc_cv_as != x
; then
25314 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25322 gcc_cv_as_powerpc_tls_markers
=yes
25324 echo "configure: failed program was" >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25331 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25332 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25334 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25341 $as_echo_n "checking assembler for .ref support... " >&6; }
25342 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25343 $as_echo_n "(cached) " >&6
25345 gcc_cv_as_aix_ref
=no
25346 if test $in_tree_gas = yes; then
25347 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25350 elif test x
$gcc_cv_as != x
; then
25351 $as_echo ' .csect stuff[rw]
25357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25364 gcc_cv_as_aix_ref
=yes
25366 echo "configure: failed program was" >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25373 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25374 if test $gcc_cv_as_aix_ref = yes; then
25376 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25385 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25386 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25389 gcc_cv_as_mips_explicit_relocs
=no
25390 if test $in_tree_gas = yes; then
25391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25392 then gcc_cv_as_mips_explicit_relocs
=yes
25394 elif test x
$gcc_cv_as != x
; then
25395 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25403 gcc_cv_as_mips_explicit_relocs
=yes
25405 echo "configure: failed program was" >&5
25408 rm -f conftest.o conftest.s
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25412 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25413 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25414 if test x
$target_cpu_default = x
25415 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25416 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25420 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25421 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25424 gcc_cv_as_mips_no_shared
=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25427 then gcc_cv_as_mips_no_shared
=yes
25429 elif test x
$gcc_cv_as != x
; then
25430 $as_echo 'nop' > conftest.s
25431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25438 gcc_cv_as_mips_no_shared
=yes
25440 echo "configure: failed program was" >&5
25443 rm -f conftest.o conftest.s
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25447 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25448 if test $gcc_cv_as_mips_no_shared = yes; then
25450 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25455 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25456 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25459 gcc_cv_as_mips_gnu_attribute
=no
25460 if test $in_tree_gas = yes; then
25461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25462 then gcc_cv_as_mips_gnu_attribute
=yes
25464 elif test x
$gcc_cv_as != x
; then
25465 $as_echo '.gnu_attribute 4,1' > conftest.s
25466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25468 (eval $ac_try) 2>&5
25470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25471 test $ac_status = 0; }; }
25473 gcc_cv_as_mips_gnu_attribute
=yes
25475 echo "configure: failed program was" >&5
25478 rm -f conftest.o conftest.s
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25482 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25483 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25485 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25490 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25491 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25494 gcc_cv_as_mips_dtprelword
=no
25495 if test $in_tree_gas = yes; then
25496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25497 then gcc_cv_as_mips_dtprelword
=yes
25499 elif test x
$gcc_cv_as != x
; then
25500 $as_echo '.section .tdata,"awT",@progbits
25504 .dtprelword x+0x8000' > conftest.s
25505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25507 (eval $ac_try) 2>&5
25509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25510 test $ac_status = 0; }; }
25512 gcc_cv_as_mips_dtprelword
=yes
25514 echo "configure: failed program was" >&5
25517 rm -f conftest.o conftest.s
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25521 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25522 if test $gcc_cv_as_mips_dtprelword = yes; then
25524 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25529 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25530 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25531 $as_echo_n "(cached) " >&6
25533 gcc_cv_as_mips_dspr1_mult
=no
25534 if test x
$gcc_cv_as != x
; then
25535 $as_echo ' .set mips32r2
25543 multu $ac3,$4,$5' > conftest.s
25544 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25546 (eval $ac_try) 2>&5
25548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25549 test $ac_status = 0; }; }
25551 gcc_cv_as_mips_dspr1_mult
=yes
25553 echo "configure: failed program was" >&5
25556 rm -f conftest.o conftest.s
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25560 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25561 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25563 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25568 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25569 gcc_cv_as_ld_jalr_reloc
=no
25570 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25571 if test $in_tree_ld = yes ; then
25572 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 \
25573 && test $in_tree_ld_is_elf = yes; then
25574 gcc_cv_as_ld_jalr_reloc
=yes
25576 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25577 echo ' .ent x' > conftest.s
25578 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25579 echo ' ld $25,%call16(y)($28)' >> conftest.s
25580 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25581 echo '1: jalr $25' >> conftest.s
25582 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25583 echo '1: jalr $25' >> conftest.s
25584 echo ' .end x' >> conftest.s
25585 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25586 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25587 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25588 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25589 gcc_cv_as_ld_jalr_reloc
=yes
25595 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25596 if test x
$target_cpu_default = x
; then
25597 target_cpu_default
=MASK_RELAX_PIC_CALLS
25599 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25603 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25606 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25607 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25610 gcc_cv_ld_mips_personality_relaxation
=no
25611 if test $in_tree_ld = yes ; then
25612 if test "$gcc_cv_gld_major_version" -eq 2 \
25613 -a "$gcc_cv_gld_minor_version" -ge 21 \
25614 -o "$gcc_cv_gld_major_version" -gt 2; then
25615 gcc_cv_ld_mips_personality_relaxation
=yes
25617 elif test x
$gcc_cv_as != x \
25618 -a x
$gcc_cv_ld != x \
25619 -a x
$gcc_cv_readelf != x
; then
25620 cat > conftest.s
<<EOF
25622 .cfi_personality 0x80,indirect_ptr
25629 .section .data,"aw",@progbits
25633 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25634 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25635 if $gcc_cv_readelf -d conftest
2>&1 \
25636 |
grep TEXTREL
> /dev
/null
2>&1; then
25638 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25639 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25642 gcc_cv_ld_mips_personality_relaxation
=yes
25646 rm -f conftest.s conftest.o conftest
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25649 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25650 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25652 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25658 # Mips and HP-UX need the GNU assembler.
25659 # Linux on IA64 might be able to use the Intel assembler.
25662 mips
*-*-* |
*-*-hpux* )
25663 if test x
$gas_flag = xyes \
25664 ||
test x
"$host" != x
"$build" \
25665 ||
test ! -x "$gcc_cv_as" \
25666 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25669 echo "*** This configuration requires the GNU assembler" >&2
25675 # ??? Not all targets support dwarf2 debug_line, even within a version
25676 # of gas. Moreover, we need to emit a valid instruction to trigger any
25677 # info to the output file. So, as supported targets are added to gas 2.11,
25678 # add some instruction here to (also) show we expect this might work.
25679 # ??? Once 2.11 is released, probably need to add first known working
25680 # version to the per-target configury.
25681 case "$cpu_type" in
25682 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25683 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25693 if test x
"$insn" != x
; then
25695 .file 1 \"conftest.s\"
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25699 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25700 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25703 gcc_cv_as_dwarf2_debug_line
=no
25704 if test $in_tree_gas = yes; then
25705 if test $in_tree_gas_is_elf = yes \
25706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25707 then gcc_cv_as_dwarf2_debug_line
=yes
25709 elif test x
$gcc_cv_as != x
; then
25710 $as_echo "$conftest_s" > conftest.s
25711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713 (eval $ac_try) 2>&5
25715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716 test $ac_status = 0; }; }
25718 if test x
$gcc_cv_objdump != x \
25719 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25720 |
grep debug_line
> /dev
/null
2>&1; then
25721 gcc_cv_as_dwarf2_debug_line
=yes
25724 echo "configure: failed program was" >&5
25727 rm -f conftest.o conftest.s
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25731 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25734 # The .debug_line file table must be in the exact order that
25735 # we specified the files, since these indices are also used
25736 # by DW_AT_decl_file. Approximate this test by testing if
25737 # the assembler bitches if the same index is assigned twice.
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25739 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25740 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25743 gcc_cv_as_dwarf2_file_buggy
=no
25744 if test x
$gcc_cv_as != x
; then
25745 $as_echo ' .file 1 "foo.s"
25746 .file 1 "bar.s"' > conftest.s
25747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25754 gcc_cv_as_dwarf2_file_buggy
=yes
25756 echo "configure: failed program was" >&5
25759 rm -f conftest.o conftest.s
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25763 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25766 if test $gcc_cv_as_dwarf2_debug_line = yes \
25767 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25769 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25774 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25775 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25776 $as_echo_n "(cached) " >&6
25778 gcc_cv_as_gdwarf2_flag
=no
25779 if test $in_tree_gas = yes; then
25780 if test $in_tree_gas_is_elf = yes \
25781 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25782 then gcc_cv_as_gdwarf2_flag
=yes
25784 elif test x
$gcc_cv_as != x
; then
25785 $as_echo "$insn" > conftest.s
25786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25788 (eval $ac_try) 2>&5
25790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791 test $ac_status = 0; }; }
25793 gcc_cv_as_gdwarf2_flag
=yes
25795 echo "configure: failed program was" >&5
25798 rm -f conftest.o conftest.s
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25802 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25803 if test $gcc_cv_as_gdwarf2_flag = yes; then
25805 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25810 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25811 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25812 $as_echo_n "(cached) " >&6
25814 gcc_cv_as_gstabs_flag
=no
25815 if test $in_tree_gas = yes; then
25816 if test $in_tree_gas_is_elf = yes \
25817 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25818 then gcc_cv_as_gstabs_flag
=yes
25820 elif test x
$gcc_cv_as != x
; then
25821 $as_echo "$insn" > conftest.s
25822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25824 (eval $ac_try) 2>&5
25826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25827 test $ac_status = 0; }; }
25829 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25830 # and warns about it, but still exits successfully. So check for
25832 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25839 else gcc_cv_as_gstabs_flag
=yes
25842 echo "configure: failed program was" >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25849 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25850 if test $gcc_cv_as_gstabs_flag = yes; then
25852 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25857 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25858 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25861 gcc_cv_as_debug_prefix_map_flag
=no
25862 if test $in_tree_gas = yes; then
25863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25864 then gcc_cv_as_debug_prefix_map_flag
=yes
25866 elif test x
$gcc_cv_as != x
; then
25867 $as_echo "$insn" > conftest.s
25868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25870 (eval $ac_try) 2>&5
25872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25873 test $ac_status = 0; }; }
25875 gcc_cv_as_debug_prefix_map_flag
=yes
25877 echo "configure: failed program was" >&5
25880 rm -f conftest.o conftest.s
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25884 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25885 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25887 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25893 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25894 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25895 $as_echo_n "(cached) " >&6
25897 gcc_cv_as_lcomm_with_alignment
=no
25898 if test x
$gcc_cv_as != x
; then
25899 $as_echo '.lcomm bar,4,16' > conftest.s
25900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25902 (eval $ac_try) 2>&5
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; }
25907 gcc_cv_as_lcomm_with_alignment
=yes
25909 echo "configure: failed program was" >&5
25912 rm -f conftest.o conftest.s
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25916 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25917 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25919 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25923 # Check whether --enable-gnu-unique-object was given.
25924 if test "${enable_gnu_unique_object+set}" = set; then :
25925 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25927 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25928 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25932 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25933 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25934 $as_echo_n "(cached) " >&6
25936 gcc_cv_as_gnu_unique_object
=no
25937 if test $in_tree_gas = yes; then
25938 if test $in_tree_gas_is_elf = yes \
25939 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25940 then gcc_cv_as_gnu_unique_object
=yes
25942 elif test x
$gcc_cv_as != x
; then
25943 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
25944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946 (eval $ac_try) 2>&5
25948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949 test $ac_status = 0; }; }
25951 gcc_cv_as_gnu_unique_object
=yes
25953 echo "configure: failed program was" >&5
25956 rm -f conftest.o conftest.s
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25960 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25961 if test $gcc_cv_as_gnu_unique_object = yes; then
25962 # We need to unquote above to to use the definition from config.gcc.
25963 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25964 if test x
$host = x
$build -a x
$host = x
$target &&
25965 ldd
--version 2>/dev
/null
&&
25966 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25967 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25968 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25969 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25970 if test "$glibcnum" -ge 2011 ; then
25971 enable_gnu_unique_object
=yes
25977 if test x
$enable_gnu_unique_object = xyes
; then
25979 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25984 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25985 if test "${gcc_cv_as_line_zero+set}" = set; then :
25986 $as_echo_n "(cached) " >&6
25988 gcc_cv_as_line_zero
=no
25989 if test $in_tree_gas = yes; then
25990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25991 then gcc_cv_as_line_zero
=yes
25993 elif test "x$gcc_cv_as" != x
; then
25994 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25995 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25997 (eval $ac_try) 2>&5
25999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26000 test $ac_status = 0; }; } &&
26001 test "x`cat conftest.out`" = x
26003 gcc_cv_as_line_zero
=yes
26005 echo "configure: failed program was" >&5
26007 echo "configure: error output was" >&5
26008 cat conftest.out
>&5
26010 rm -f conftest.o conftest.s conftest.out
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26014 $as_echo "$gcc_cv_as_line_zero" >&6; }
26015 if test "x$gcc_cv_as_line_zero" = xyes
; then
26017 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26022 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26023 gcc_cv_ld_eh_frame_hdr
=no
26024 if test $in_tree_ld = yes ; then
26025 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 \
26026 && test $in_tree_ld_is_elf = yes; then
26027 gcc_cv_ld_eh_frame_hdr
=yes
26029 elif test x
$gcc_cv_ld != x
; then
26030 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26031 # Check if linker supports --eh-frame-hdr option
26032 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26033 gcc_cv_ld_eh_frame_hdr
=yes
26038 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26039 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26040 gcc_cv_ld_eh_frame_hdr
=yes
26047 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26049 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26053 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26056 $as_echo_n "checking linker position independent executable support... " >&6; }
26058 if test $in_tree_ld = yes ; then
26059 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 \
26060 && test $in_tree_ld_is_elf = yes; then
26063 elif test x
$gcc_cv_ld != x
; then
26064 # Check if linker supports -pie option
26065 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26069 if test x
"$gcc_cv_ld_pie" = xyes
; then
26071 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26075 $as_echo "$gcc_cv_ld_pie" >&6; }
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26078 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26079 gcc_cv_ld_eh_gc_sections
=no
26080 if test $in_tree_ld = yes ; then
26081 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 \
26082 && test $in_tree_ld_is_elf = yes; then
26083 gcc_cv_ld_eh_gc_sections
=yes
26085 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26086 cat > conftest.s
<<EOF
26089 .type _start, @function
26092 .size _start, .-_start
26093 .section .text.foo,"ax",@progbits
26094 .type foo, @function
26098 .section .gcc_except_table.foo,"a",@progbits
26101 .section .eh_frame,"a",@progbits
26104 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26105 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26106 |
grep "gc-sections option ignored" > /dev
/null
; then
26107 gcc_cv_ld_eh_gc_sections
=no
26108 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26109 |
grep gcc_except_table
> /dev
/null
; then
26110 gcc_cv_ld_eh_gc_sections
=yes
26111 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26112 if test x
$gcc_cv_as_comdat_group != xyes
; then
26113 gcc_cv_ld_eh_gc_sections
=no
26114 cat > conftest.s
<<EOF
26117 .type _start, @function
26120 .size _start, .-_start
26121 .section .gnu.linkonce.t.foo,"ax",@progbits
26122 .type foo, @function
26126 .section .gcc_except_table.foo,"a",@progbits
26129 .section .eh_frame,"a",@progbits
26132 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26133 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26134 |
grep "gc-sections option ignored" > /dev
/null
; then
26135 gcc_cv_ld_eh_gc_sections
=no
26136 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26137 |
grep gcc_except_table
> /dev
/null
; then
26138 gcc_cv_ld_eh_gc_sections
=yes
26144 rm -f conftest.s conftest.o conftest
26148 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26149 gcc_cv_ld_eh_gc_sections
=no
26152 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26154 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26158 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26161 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26162 gcc_cv_ld_eh_gc_sections_bug
=no
26163 if test $in_tree_ld = yes ; then
26164 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 \
26165 && test $in_tree_ld_is_elf = yes; then
26166 gcc_cv_ld_eh_gc_sections_bug
=yes
26168 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
26169 gcc_cv_ld_eh_gc_sections_bug
=yes
26170 cat > conftest.s
<<EOF
26173 .type _start, @function
26176 .size _start, .-_start
26177 .section .text.startup.foo,"ax",@progbits
26178 .type foo, @function
26182 .section .gcc_except_table.foo,"a",@progbits
26185 .section .eh_frame,"a",@progbits
26188 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26189 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26190 |
grep "gc-sections option ignored" > /dev
/null
; then
26192 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26193 |
grep gcc_except_table
> /dev
/null
; then
26194 gcc_cv_ld_eh_gc_sections_bug
=no
26197 rm -f conftest.s conftest.o conftest
26199 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26201 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26205 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26212 $as_echo_n "checking linker --as-needed support... " >&6; }
26213 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26214 $as_echo_n "(cached) " >&6
26216 gcc_cv_ld_as_needed
=no
26217 if test $in_tree_ld = yes ; then
26218 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 \
26219 && test $in_tree_ld_is_elf = yes; then
26220 gcc_cv_ld_as_needed
=yes
26222 elif test x
$gcc_cv_ld != x
; then
26223 # Check if linker supports --as-needed and --no-as-needed options
26224 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26225 gcc_cv_ld_as_needed
=yes
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26231 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26232 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26234 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26238 case "$target:$tm_file" in
26239 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26242 emul_name
="-melf64ppc"
26245 emul_name
="-melf64ppc_fbsd"
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26249 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26250 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26251 $as_echo_n "(cached) " >&6
26253 gcc_cv_ld_no_dot_syms
=no
26254 if test $in_tree_ld = yes ; then
26255 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
26256 gcc_cv_ld_no_dot_syms
=yes
26258 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26259 cat > conftest1.s
<<EOF
26263 cat > conftest2.s
<<EOF
26264 .section ".opd","aw"
26267 .type foo,@function
26269 .quad .LEfoo,.TOC.@tocbase,0
26275 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26276 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26277 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26278 gcc_cv_ld_no_dot_syms
=yes
26280 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26285 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26286 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26288 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26293 $as_echo_n "checking linker large toc support... " >&6; }
26294 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26295 $as_echo_n "(cached) " >&6
26297 gcc_cv_ld_large_toc
=no
26298 if test $in_tree_ld = yes ; then
26299 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
26300 gcc_cv_ld_large_toc
=yes
26302 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26303 cat > conftest.s
<<EOF
26304 .section ".tbss","awT",@nobits
26310 addis 9,13,ie0@got@tprel@ha
26311 ld 9,ie0@got@tprel@l(9)
26313 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26314 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26315 gcc_cv_ld_large_toc
=yes
26317 rm -f conftest conftest.o conftest.s
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26322 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26323 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26325 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26332 $as_echo_n "checking linker --build-id support... " >&6; }
26333 if test "${gcc_cv_ld_buildid+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26336 gcc_cv_ld_buildid
=no
26337 if test $in_tree_ld = yes ; then
26338 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26339 "$gcc_cv_gld_minor_version" -ge 18 -o \
26340 "$gcc_cv_gld_major_version" -gt 2 \
26341 && test $in_tree_ld_is_elf = yes; then
26342 gcc_cv_ld_buildid
=yes
26344 elif test x
$gcc_cv_ld != x
; then
26345 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26346 gcc_cv_ld_buildid
=yes
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26351 $as_echo "$gcc_cv_ld_buildid" >&6; }
26352 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26354 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26358 # Check whether --enable-linker-build-id was given.
26359 if test "${enable_linker_build_id+set}" = set; then :
26360 enableval
=$enable_linker_build_id;
26362 enable_linker_build_id
=no
26366 if test x
"$enable_linker_build_id" = xyes
; then
26367 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26369 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26373 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26377 # In binutils 2.21, GNU ld gained support for new emulations fully
26378 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26380 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26381 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26382 $as_echo_n "(cached) " >&6
26384 gcc_cv_ld_sol2_emulation
=no
26385 if test $in_tree_ld = yes ; then
26386 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26387 "$gcc_cv_gld_minor_version" -ge 21 -o \
26388 "$gcc_cv_gld_major_version" -gt 2 \
26389 && test $in_tree_ld_is_elf = yes; then
26390 gcc_cv_ld_sol2_emulation
=yes
26392 elif test x
$gcc_cv_ld != x
; then
26393 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26394 grep _sol2
> /dev
/null
; then
26395 gcc_cv_ld_sol2_emulation
=yes
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26400 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26401 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26403 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26408 $as_echo_n "checking linker --sysroot support... " >&6; }
26409 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26412 gcc_cv_ld_sysroot
=no
26413 if test $in_tree_ld = yes ; then
26414 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
26415 gcc_cv_ld_sysroot
=yes
26417 elif test x
$gcc_cv_ld != x
; then
26418 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26419 gcc_cv_ld_sysroot
=yes
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26424 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26425 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26427 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26431 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26432 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26433 && test "$prefix" != "NONE"; then
26435 cat >>confdefs.h
<<_ACEOF
26436 #define PREFIX_INCLUDE_DIR "$prefix/include"
26441 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26442 if test "x$with_headers" != x
; then
26443 target_header_dir
=$with_headers
26444 elif test "x$with_sysroot" = x
; then
26445 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26446 elif test "x$with_build_sysroot" != "x"; then
26447 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26448 elif test "x$with_sysroot" = xyes
; then
26449 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26451 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26454 target_header_dir
=${native_system_header_dir}
26457 # Test for stack protector support in target C library.
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26459 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26460 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26461 $as_echo_n "(cached) " >&6
26463 gcc_cv_libc_provides_ssp
=no
26465 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26466 # glibc 2.4 and later provides __stack_chk_fail and
26467 # either __stack_chk_guard, or TLS access to stack guard canary.
26468 if test -f $target_header_dir/features.h \
26469 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26470 $target_header_dir/features.h
> /dev
/null
; then
26471 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26472 $target_header_dir/features.h
> /dev
/null
; then
26473 gcc_cv_libc_provides_ssp
=yes
26474 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26475 $target_header_dir/features.h
> /dev
/null \
26476 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26477 $target_header_dir/features.h
> /dev
/null
; then
26478 gcc_cv_libc_provides_ssp
=yes
26479 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26480 $target_header_dir/features.h
> /dev
/null
&& \
26481 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26482 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26483 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26484 gcc_cv_libc_provides_ssp
=yes
26486 # all versions of Bionic support stack protector
26487 elif test -f $target_header_dir/sys
/cdefs.h \
26488 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26489 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26490 gcc_cv_libc_provides_ssp
=yes
26494 # Avoid complicated tests (see
26495 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26496 # simply assert that glibc does provide this, which is true for all
26497 # realistically usable GNU/Hurd configurations.
26498 gcc_cv_libc_provides_ssp
=yes;;
26499 *-*-darwin* |
*-*-freebsd*)
26500 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26501 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26502 gcc_cv_libc_provides_ssp
=yes
26504 echo "no __stack_chk_fail on this target"
26508 *) gcc_cv_libc_provides_ssp
=no
;;
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26512 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26514 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26516 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26520 # Test for <sys/sdt.h> on the target.
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26523 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26525 if test -f $target_header_dir/sys
/sdt.h
; then
26528 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26532 $as_echo "$have_sys_sdt_h" >&6; }
26534 # Check if TFmode long double should be used by default or not.
26535 # Some glibc targets used DFmode long double, but with glibc 2.4
26536 # and later they can use TFmode.
26538 powerpc
*-*-linux* | \
26539 sparc
*-*-linux* | \
26543 # Check whether --with-long-double-128 was given.
26544 if test "${with_long_double_128+set}" = set; then :
26545 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26547 gcc_cv_target_ldbl128
=no
26548 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26549 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26550 && gcc_cv_target_ldbl128
=yes
26556 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26558 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26563 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26564 gcc_cv_target_dl_iterate_phdr
=unknown
26566 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26567 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26568 # libdl there, both complicating its use and breaking compatibility
26569 # between Solaris 10 updates.
26570 *-*-solaris2.1
[1-9]*)
26571 # <link.h> needs both a dl_iterate_phdr declaration and support for
26572 # compilation with largefile support.
26573 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26574 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26575 gcc_cv_target_dl_iterate_phdr
=yes
26577 gcc_cv_target_dl_iterate_phdr
=no
26582 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26584 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26588 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26590 # Find out what GC implementation we want, or may, use.
26592 # Check whether --with-gc was given.
26593 if test "${with_gc+set}" = set; then :
26594 withval
=$with_gc; case "$withval" in
26601 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26605 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26613 echo "Using $GGC for garbage collection."
26615 # Libraries to use on the host. This will normally be set by the top
26616 # level Makefile. Here we simply capture the value for our Makefile.
26617 if test -z "${HOST_LIBS+set}"; then
26622 # Use the system's zlib library.
26624 zlibinc
="-I\$(srcdir)/../zlib"
26626 # Check whether --with-system-zlib was given.
26627 if test "${with_system_zlib+set}" = set; then :
26628 withval
=$with_system_zlib; zlibdir
=
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26638 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26639 # Check whether --enable-maintainer-mode was given.
26640 if test "${enable_maintainer_mode+set}" = set; then :
26641 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26648 $as_echo "$maintainer_mode" >&6; }
26650 if test "$maintainer_mode" = "yes"; then
26660 # Make empty files to contain the specs and options for each language.
26661 # Then add #include lines to for a compiler that has specs and/or options.
26667 # These (without "all_") are set in each config-lang.in.
26668 # `language' must be a single word so is spelled singularly.
26671 all_outputs
='Makefile'
26672 # List of language makefile fragments.
26673 all_lang_makefrags
=
26674 # Additional files for gengtype
26675 all_gtfiles
="$target_gtfiles"
26677 # These are the languages that are set in --enable-languages,
26678 # and are available in the GCC tree.
26679 all_selected_languages
=
26681 # Add the language fragments.
26682 # Languages are added via two mechanisms. Some information must be
26683 # recorded in makefile variables, these are defined in config-lang.in.
26684 # We accumulate them and plug them into the main Makefile.
26685 # The other mechanism is a set of hooks for each of the main targets
26686 # like `clean', `install', etc.
26688 language_hooks
="Make-hooks"
26690 for lang
in ${srcdir}/*/config-lang.
in
26692 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26694 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26695 if test "x$lang_alias" = x
26697 echo "$lang doesn't set \$language." 1>&2
26700 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26701 subdirs
="$subdirs $subdir"
26703 # $gcc_subdir is where the gcc integration files are to be found
26704 # for a language, both for internal compiler purposes (compiler
26705 # sources implementing front-end to GCC tree converters), and for
26706 # build infrastructure purposes (Make-lang.in, etc.)
26708 # This will be <subdir> (relative to $srcdir) if a line like
26709 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26710 # is found in <langdir>/config-lang.in, and will remain <langdir>
26713 # Except for the language alias (fetched above), the regular
26714 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26715 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26716 # only this and the language alias.
26718 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26719 if [ "$gcc_subdir" = "" ]; then
26720 gcc_subdir
="$subdir"
26723 case ",$enable_languages," in
26725 all_selected_languages
="$all_selected_languages $lang_alias"
26726 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26727 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26738 .
${srcdir}/$gcc_subdir/config-lang.
in
26739 if test "x$language" = x
26741 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26746 case ",$enable_languages," in
26747 *,$lang_alias,*) ;;
26749 for i
in $subdir_requires; do
26750 test -f "${srcdir}/$i/config-lang.in" && continue
26758 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26759 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26760 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26761 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26763 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26764 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26766 all_languages
="$all_languages $language"
26767 all_compilers
="$all_compilers $compilers"
26768 all_outputs
="$all_outputs $outputs"
26769 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26770 case ",$enable_languages," in
26773 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26783 for language
in $all_selected_languages
26785 check_languages
="$check_languages check-$language"
26788 # We link each language in with a set of hooks, reached indirectly via
26789 # lang.${target}. Only do so for selected languages.
26793 target_list
="all.cross start.encap rest.encap tags \
26794 install-common install-man install-info install-pdf install-html dvi \
26795 pdf html uninstall info man srcextra srcman srcinfo \
26796 mostlyclean clean distclean maintainer-clean install-plugin"
26798 for t
in $target_list
26801 for lang
in $all_selected_languages
26805 echo "lang.$t: $x" >> Make-hooks
26809 # Option include files
26812 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26813 option_includes
="option-includes.mk"
26822 echo "dir ." > .gdbinit
26823 echo "dir ${srcdir}" >> .gdbinit
26824 if test x
$gdb_needs_out_file_path = xyes
26826 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26828 if test "x$subdirs" != x
; then
26831 echo "dir ${srcdir}/$s" >> .gdbinit
26834 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26836 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26840 # Find a directory in which to install a shared libgcc.
26842 # Check whether --enable-version-specific-runtime-libs was given.
26843 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26844 enableval
=$enable_version_specific_runtime_libs;
26848 # Substitute configuration variables
26912 if test x
${build} = x
${host} ; then
26913 if test x
${host} = x
${target} ; then
26914 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26916 echo "Links are now set up to build a cross-compiler" 1>&2
26917 echo " from ${host} to ${target}." 1>&2
26920 if test x
${host} = x
${target} ; then
26921 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26922 echo " for ${target}." 1>&2
26924 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26925 echo " from ${host} to ${target}." 1>&2
26937 if test "x${CLOOGLIBS}" != "x" ; then
26939 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26943 # Check for plugin support
26944 # Check whether --enable-plugin was given.
26945 if test "${enable_plugin+set}" = set; then :
26946 enableval
=$enable_plugin; enable_plugin
=$enableval
26948 enable_plugin
=yes; default_plugin
=yes
26956 if test x
$build = x
$host; then
26957 export_sym_check
="nm${exeext} -g"
26958 elif test x
$host = x
$target; then
26959 export_sym_check
="$gcc_cv_nm -g"
26965 if test x
$build = x
$host; then
26966 export_sym_check
="objdump${exeext} -T"
26967 elif test x
$host = x
$target; then
26968 export_sym_check
="$gcc_cv_objdump -T"
26975 if test x
"$enable_plugin" = x
"yes"; then
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26978 $as_echo_n "checking for exported symbols... " >&6; }
26979 if test "x$export_sym_check" != x
; then
26980 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26981 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26982 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26983 : # No need to use a flag
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26985 $as_echo "yes" >&6; }
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26988 $as_echo "yes" >&6; }
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26990 $as_echo_n "checking for -rdynamic... " >&6; }
26991 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26992 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26993 plugin_rdynamic
=yes
26994 pluginlibs
="-rdynamic"
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27000 $as_echo "$plugin_rdynamic" >&6; }
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27004 $as_echo "unable to check" >&6; }
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27010 $as_echo_n "checking for library containing dlopen... " >&6; }
27011 if test "${ac_cv_search_dlopen+set}" = set; then :
27012 $as_echo_n "(cached) " >&6
27014 ac_func_search_save_LIBS
=$LIBS
27015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27016 /* end confdefs.h. */
27018 /* Override any GCC internal prototype to avoid an error.
27019 Use char because int might match the return type of a GCC
27020 builtin and then its argument prototype would still apply. */
27033 for ac_lib
in '' dl
; do
27034 if test -z "$ac_lib"; then
27035 ac_res
="none required"
27038 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27040 if ac_fn_c_try_link
"$LINENO"; then :
27041 ac_cv_search_dlopen
=$ac_res
27043 rm -f core conftest.err conftest.
$ac_objext \
27045 if test "${ac_cv_search_dlopen+set}" = set; then :
27049 if test "${ac_cv_search_dlopen+set}" = set; then :
27052 ac_cv_search_dlopen
=no
27054 rm conftest.
$ac_ext
27055 LIBS
=$ac_func_search_save_LIBS
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27058 $as_echo "$ac_cv_search_dlopen" >&6; }
27059 ac_res
=$ac_cv_search_dlopen
27060 if test "$ac_res" != no
; then :
27061 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27065 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27066 pluginlibs
="$pluginlibs -ldl"
27070 # Check that we can build shared objects with -fPIC -shared
27071 saved_LDFLAGS
="$LDFLAGS"
27072 saved_CFLAGS
="$CFLAGS"
27075 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27076 CFLAGS
="$CFLAGS -fPIC"
27077 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27080 CFLAGS
="$CFLAGS -fPIC"
27081 LDFLAGS
="$LDFLAGS -fPIC -shared"
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27085 $as_echo_n "checking for -fPIC -shared... " >&6; }
27086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27087 /* end confdefs.h. */
27097 if ac_fn_c_try_link
"$LINENO"; then :
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27099 $as_echo "yes" >&6; }; have_pic_shared
=yes
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27102 $as_echo "no" >&6; }; have_pic_shared
=no
27104 rm -f core conftest.err conftest.
$ac_objext \
27105 conftest
$ac_exeext conftest.
$ac_ext
27106 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27110 LDFLAGS
="$saved_LDFLAGS"
27111 CFLAGS
="$saved_CFLAGS"
27113 # If plugin support had been requested but not available, fail.
27114 if test x
"$enable_plugin" = x
"no" ; then
27115 if test x
"$default_plugin" != x
"yes"; then
27117 Building GCC with plugin support requires a host that supports
27118 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27125 if test x
"$enable_plugin" = x
"yes"; then
27127 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27132 # Check whether --enable-libquadmath-support was given.
27133 if test "${enable_libquadmath_support+set}" = set; then :
27134 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27136 ENABLE_LIBQUADMATH_SUPPORT
=yes
27139 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27141 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27146 # Specify what hash style to use by default.
27148 # Check whether --with-linker-hash-style was given.
27149 if test "${with_linker_hash_style+set}" = set; then :
27150 withval
=$with_linker_hash_style; case x
"$withval" in
27152 LINKER_HASH_STYLE
=sysv
27155 LINKER_HASH_STYLE
=gnu
27158 LINKER_HASH_STYLE
=both
27161 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27165 LINKER_HASH_STYLE
=''
27168 if test x
"${LINKER_HASH_STYLE}" != x
; then
27170 cat >>confdefs.h
<<_ACEOF
27171 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27176 # Configure the subdirectories
27177 # AC_CONFIG_SUBDIRS($subdirs)
27179 # Create the Makefile
27180 # and configure language subdirectories
27181 ac_config_files
="$ac_config_files $all_outputs"
27184 ac_config_commands
="$ac_config_commands default"
27186 cat >confcache
<<\_ACEOF
27187 # This file is a shell script that caches the results of configure
27188 # tests run on this system so they can be shared between configure
27189 # scripts and configure runs, see configure's option --config-cache.
27190 # It is not useful on other systems. If it contains results you don't
27191 # want to keep, you may remove or edit it.
27193 # config.status only pays attention to the cache file if you give it
27194 # the --recheck option to rerun configure.
27196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27198 # following values.
27202 # The following way of writing the cache mishandles newlines in values,
27203 # but we know of no workaround that is simple, portable, and efficient.
27204 # So, we kill variables containing newlines.
27205 # Ultrix sh set writes to stderr and can't be redirected directly,
27206 # and sets the high bit in the cache file unless we assign to the vars.
27208 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27209 eval ac_val
=\$
$ac_var
27213 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27217 _ | IFS | as_nl
) ;; #(
27218 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27219 *) { eval $ac_var=; unset $ac_var;} ;;
27225 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27226 *${as_nl}ac_space
=\
*)
27227 # `set' does not quote correctly, so add quotes: double-quote
27228 # substitution turns \\\\ into \\, and sed turns \\ into \.
27231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27234 # `set' quotes correctly as required by POSIX, so do not add quotes.
27235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27248 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27249 if test -w "$cache_file"; then
27250 test "x$cache_file" != "x/dev/null" &&
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27252 $as_echo "$as_me: updating cache $cache_file" >&6;}
27253 cat confcache
>$cache_file
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27256 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27261 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27262 # Let make expand exec_prefix.
27263 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27265 DEFS
=-DHAVE_CONFIG_H
27269 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27270 # 1. Remove the extension, and $U if already installed.
27271 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27272 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27273 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27274 # will be set to the directory where LIBOBJS objects are built.
27275 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27276 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27278 LIBOBJS
=$ac_libobjs
27280 LTLIBOBJS
=$ac_ltlibobjs
27285 : ${CONFIG_STATUS=./config.status}
27287 ac_clean_files_save
=$ac_clean_files
27288 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27292 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27294 # Generated by $as_me.
27295 # Run this file to recreate the current configuration.
27296 # Compiler output produced by configure, useful for debugging
27297 # configure, is in config.log if it exists.
27300 ac_cs_recheck=false
27303 SHELL=\${CONFIG_SHELL-$SHELL}
27306 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27307 ## -------------------- ##
27308 ## M4sh Initialization. ##
27309 ## -------------------- ##
27311 # Be more Bourne compatible
27312 DUALCASE
=1; export DUALCASE
# for MKS sh
27313 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27316 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27317 # is contrary to our usage. Disable this feature.
27318 alias -g '${1+"$@"}'='"$@"'
27319 setopt NO_GLOB_SUBST
27321 case `(set -o) 2>/dev/null` in #(
27333 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27334 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27336 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27337 # Prefer a ksh shell builtin over an external printf program on Solaris,
27338 # but without wasting forks for bash or zsh.
27339 if test -z "$BASH_VERSION$ZSH_VERSION" \
27340 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27341 as_echo='print
-r --'
27342 as_echo_n='print
-rn --'
27343 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27344 as_echo='printf %s
\n'
27345 as_echo_n='printf %s
'
27347 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27348 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27349 as_echo_n='/usr
/ucb
/echo -n'
27351 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27352 as_echo_n_body='eval
27356 expr "X$arg" : "X\\(.*\\)$as_nl";
27357 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27359 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27361 export as_echo_n_body
27362 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27364 export as_echo_body
27365 as_echo='sh
-c $as_echo_body as_echo
'
27368 # The user is always right.
27369 if test "${PATH_SEPARATOR+set}" != set; then
27371 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27372 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27379 # We need space, tab and new line, in precisely that order. Quoting is
27380 # there to prevent editors from complaining about space-tab.
27381 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27382 # splitting by setting IFS to empty value.)
27385 # Find who we are. Look in the path if we contain no directory separator.
27387 *[\\/]* ) as_myself=$0 ;;
27388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27389 for as_dir in $PATH
27392 test -z "$as_dir" && as_dir=.
27393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27399 # We did not find ourselves, most probably we were run as `sh COMMAND'
27400 # in which case we are not to be found in the path.
27401 if test "x$as_myself" = x
; then
27404 if test ! -f "$as_myself"; then
27405 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27409 # Unset variables that we do not need and which cause bugs (e.g. in
27410 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27411 # suppresses any "Segmentation fault" message there. '((' could
27412 # trigger a bug in pdksh 5.2.14.
27413 for as_var
in BASH_ENV ENV MAIL MAILPATH
27414 do eval test x\
${$as_var+set} = xset \
27415 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27428 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27431 # as_fn_error ERROR [LINENO LOG_FD]
27432 # ---------------------------------
27433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27435 # script with status $?, using 1 if that was 0.
27438 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27440 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27441 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27443 $as_echo "$as_me: error: $1" >&2
27444 as_fn_exit
$as_status
27448 # as_fn_set_status STATUS
27449 # -----------------------
27450 # Set $? to STATUS, without forking.
27451 as_fn_set_status
()
27454 } # as_fn_set_status
27456 # as_fn_exit STATUS
27457 # -----------------
27458 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27462 as_fn_set_status
$1
27468 # Portably unset VAR.
27471 { eval $1=; unset $1;}
27473 as_unset
=as_fn_unset
27474 # as_fn_append VAR VALUE
27475 # ----------------------
27476 # Append the text in VALUE to the end of the definition contained in VAR. Take
27477 # advantage of any shell optimizations that allow amortized linear growth over
27478 # repeated appends, instead of the typical quadratic growth present in naive
27480 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27481 eval 'as_fn_append ()
27492 # as_fn_arith ARG...
27493 # ------------------
27494 # Perform arithmetic evaluation on the ARGs, and store the result in the
27495 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27496 # must be portable across $(()) and expr.
27497 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27498 eval 'as_fn_arith ()
27505 as_val
=`expr "$@" || test $? -eq 1`
27510 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27511 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27517 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27518 as_basename
=basename
27523 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27529 as_me
=`$as_basename -- "$0" ||
27530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27531 X"$0" : 'X\(//\)$' \| \
27532 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27534 sed '/^.*\/\([^/][^/]*\)\/*$/{
27548 # Avoid depending upon Character Ranges.
27549 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27550 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27551 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27552 as_cr_digits
='0123456789'
27553 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27555 ECHO_C
= ECHO_N
= ECHO_T
=
27556 case `echo -n x` in #(((((
27558 case `echo 'xy\c'` in
27559 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27561 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27568 rm -f conf$$ conf$$.exe conf$$.
file
27569 if test -d conf$$.dir
; then
27570 rm -f conf$$.dir
/conf$$.
file
27573 mkdir conf$$.dir
2>/dev
/null
27575 if (echo >conf$$.
file) 2>/dev
/null
; then
27576 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27578 # ... but there are two gotchas:
27579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27581 # In both cases, we have to default to `cp -p'.
27582 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27584 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27592 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27593 rmdir conf$$.dir
2>/dev
/null
27598 # Create "$as_dir" as a directory, including parents if necessary.
27603 -*) as_dir
=.
/$as_dir;;
27605 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27609 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27610 *) as_qdir
=$as_dir;;
27612 as_dirs
="'$as_qdir' $as_dirs"
27613 as_dir
=`$as_dirname -- "$as_dir" ||
27614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27615 X"$as_dir" : 'X\(//\)[^/]' \| \
27616 X"$as_dir" : 'X\(//\)$' \| \
27617 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27618 $as_echo X"$as_dir" |
27619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27623 /^X\(\/\/\)[^/].*/{
27636 test -d "$as_dir" && break
27638 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27639 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27643 if mkdir
-p .
2>/dev
/null
; then
27644 as_mkdir_p
='mkdir -p "$as_dir"'
27646 test -d .
/-p && rmdir .
/-p
27650 if test -x / >/dev
/null
2>&1; then
27651 as_test_x
='test -x'
27653 if ls -dL / >/dev
/null
2>&1; then
27660 if test -d "$1"; then
27666 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27667 ???[sx]*):;;*)false;;esac;fi
27671 as_executable_p
=$as_test_x
27673 # Sed expression to map a string onto a valid CPP name.
27674 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27676 # Sed expression to map a string onto a valid variable name.
27677 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27681 ## ----------------------------------- ##
27682 ## Main body of $CONFIG_STATUS script. ##
27683 ## ----------------------------------- ##
27685 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27688 # Save the log message, to keep $0 and so on meaningful, and to
27689 # report actual input values of CONFIG_FILES etc. instead of their
27690 # values after options handling.
27692 This file was extended by $as_me, which was
27693 generated by GNU Autoconf 2.64. Invocation command line was
27695 CONFIG_FILES = $CONFIG_FILES
27696 CONFIG_HEADERS = $CONFIG_HEADERS
27697 CONFIG_LINKS = $CONFIG_LINKS
27698 CONFIG_COMMANDS = $CONFIG_COMMANDS
27701 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27706 case $ac_config_files in *"
27707 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27710 case $ac_config_headers in *"
27711 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27716 # Files that config.status was made for.
27717 config_files="$ac_config_files"
27718 config_headers="$ac_config_headers"
27719 config_commands="$ac_config_commands"
27723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27725 \`$as_me' instantiates files and other configuration actions
27726 from templates according to the current configuration. Unless the files
27727 and actions are specified as TAGs, all are instantiated by default.
27729 Usage: $0 [OPTION]... [TAG]...
27731 -h, --help print this help, then exit
27732 -V, --version print version number and configuration settings, then exit
27733 -q, --quiet, --silent
27734 do not print progress messages
27735 -d, --debug don't remove temporary files
27736 --recheck update $as_me by reconfiguring in the same conditions
27737 --file=FILE[:TEMPLATE]
27738 instantiate the configuration file FILE
27739 --header=FILE[:TEMPLATE]
27740 instantiate the configuration header FILE
27742 Configuration files:
27745 Configuration headers:
27748 Configuration commands:
27751 Report bugs to the package provider."
27754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27757 configured by $0, generated by GNU Autoconf 2.64,
27758 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27760 Copyright (C) 2009 Free Software Foundation, Inc.
27761 This config.status script is free software; the Free Software Foundation
27762 gives unlimited permission to copy, distribute and modify it."
27767 test -n "\$AWK" || AWK=awk
27770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27771 # The default lists apply if the user does not specify any file.
27777 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27778 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27789 # Handling of the options.
27790 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27792 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27793 $as_echo "$ac_cs_version"; exit ;;
27794 --debug |
--debu |
--deb |
--de |
--d |
-d )
27796 --file |
--fil |
--fi |
--f )
27799 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27801 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27802 ac_need_defaults
=false
;;
27803 --header |
--heade |
--head |
--hea )
27806 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27808 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27809 ac_need_defaults
=false
;;
27811 # Conflict between --help and --header
27812 as_fn_error
"ambiguous option: \`$1'
27813 Try \`$0 --help' for more information.";;
27814 --help |
--hel |
-h )
27815 $as_echo "$ac_cs_usage"; exit ;;
27816 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27817 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27820 # This is an error.
27821 -*) as_fn_error
"unrecognized option: \`$1'
27822 Try \`$0 --help' for more information." ;;
27824 *) as_fn_append ac_config_targets
" $1"
27825 ac_need_defaults
=false
;;
27831 ac_configure_extra_args
=
27833 if $ac_cs_silent; then
27835 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27840 if \$ac_cs_recheck; then
27841 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27843 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27844 CONFIG_SHELL='$SHELL'
27845 export CONFIG_SHELL
27850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27855 ## Running $as_me. ##
27861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27871 # Handling of arguments.
27872 for ac_config_target
in $ac_config_targets
27874 case $ac_config_target in
27875 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27876 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27877 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27878 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27879 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27880 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27882 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27887 # If the user did not use the arguments to specify the items to instantiate,
27888 # then the envvar interface is used. Set only those that are not.
27889 # We use the long form for the default assignment because of an extremely
27890 # bizarre bug on SunOS 4.1.3.
27891 if $ac_need_defaults; then
27892 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27893 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27894 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27897 # Have a temporary directory for convenience. Make it in the build tree
27898 # simply because there is no reason against having it here, and in addition,
27899 # creating and moving files from /tmp can sometimes cause problems.
27900 # Hook for its removal unless debugging.
27901 # Note that there is a small window in which the directory will not be cleaned:
27902 # after its creation but before its name has been assigned to `$tmp'.
27906 trap 'exit_status=$?
27907 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27909 trap 'as_fn_exit 1' 1 2 13 15
27911 # Create a (secure) tmp directory for tmp files.
27914 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27915 test -n "$tmp" && test -d "$tmp"
27918 tmp
=.
/conf$$
-$RANDOM
27919 (umask 077 && mkdir
"$tmp")
27920 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27922 # Set up the scripts for CONFIG_FILES section.
27923 # No need to generate them if there are no CONFIG_FILES.
27924 # This happens for instance with `./config.status config.h'.
27925 if test -n "$CONFIG_FILES"; then
27927 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27928 ac_cs_awk_getline
=:
27929 ac_cs_awk_pipe_init
=
27930 ac_cs_awk_read_file
='
27931 while ((getline aline < (F[key])) > 0)
27934 ac_cs_awk_pipe_fini
=
27936 ac_cs_awk_getline
=false
27937 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27938 ac_cs_awk_read_file
='
27940 print "cat " F[key] " &&"
27941 '$ac_cs_awk_pipe_init
27942 # The final `:' finishes the AND list.
27943 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27945 ac_cr
=`echo X | tr X '\015'`
27946 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27947 # But we know of no other shell where ac_cr would be empty at this
27948 # point, so we can use a bashism as a fallback.
27949 if test "x$ac_cr" = x
; then
27950 eval ac_cr
=\$
\'\\r
\'
27952 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27956 ac_cs_awk_cr
=$ac_cr
27959 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27962 # Create commands to substitute file output variables.
27964 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27965 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27966 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27969 } >conf$
$files.sh
&&
27970 . .
/conf$
$files.sh ||
27971 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27972 rm -f conf$
$files.sh
27975 echo "cat >conf$$subs.awk <<_ACEOF" &&
27976 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27978 } >conf$$subs.sh ||
27979 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27980 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27982 for ac_last_try in false false false false false :; do
27983 . ./conf$$subs.sh ||
27984 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27986 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27987 if test $ac_delim_n = $ac_delim_num; then
27989 elif $ac_last_try; then
27990 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27992 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27995 rm -f conf$$subs.sh
27997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27998 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28002 s/^/S["/; s
/!.
*/"]=/
28012 s/\(.\{148\}\).*/\1/
28014 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28019 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28026 s/\(.\{148\}\).*/\1/
28028 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28032 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28037 ' <conf$$subs.awk | sed '
28042 ' >>$CONFIG_STATUS || ac_write_fail=1
28043 rm -f conf$$subs.awk
28044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28046 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28047 for (key in S) S_is_set[key] = 1
28049 \$ac_cs_awk_pipe_init
28053 nfields = split(line, field, "@
")
28055 len = length(field[1])
28056 for (i = 2; i < nfields; i++) {
28058 keylen = length(key)
28059 if (S_is_set[key]) {
28061 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28062 len += length(value) + length(field[++i])
28067 if (nfields == 3 && !substed) {
28069 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28070 \$ac_cs_awk_read_file
28076 \$ac_cs_awk_pipe_fini
28079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28080 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28081 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28084 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28085 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28088 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28089 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28090 # trailing colons and then remove the whole line if VPATH becomes empty
28091 # (actually we leave an empty line to preserve line numbers).
28092 if test "x
$srcdir" = x.; then
28093 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28094 s/:*\$(srcdir):*/:/
28095 s/:*\${srcdir}:*/:/
28097 s/^\([^=]*=[ ]*\):*/\1/
28103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28104 fi # test -n "$CONFIG_FILES"
28106 # Set up the scripts for CONFIG_HEADERS section.
28107 # No need to generate them if there are no CONFIG_HEADERS.
28108 # This happens for instance with `./config.status Makefile'.
28109 if test -n "$CONFIG_HEADERS"; then
28110 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28114 # Transform confdefs.h into an awk script `defines.awk', embedded as
28115 # here-document in config.status, that substitutes the proper values into
28116 # config.h.in to produce config.h.
28118 # Create a delimiter string that does not exist in confdefs.h, to ease
28119 # handling of long lines.
28121 for ac_last_try in false false :; do
28122 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28123 if test -z "$ac_t"; then
28125 elif $ac_last_try; then
28126 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28128 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28132 # For the awk script, D is an array of macro values keyed by name,
28133 # likewise P contains macro parameters if any. Preserve backslash
28134 # newline sequences.
28136 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28138 s/.\{148\}/&'"$ac_delim"'/g
28141 s/^[ ]*#[ ]*define[ ][ ]*/ /
28148 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28150 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28155 D["\
1"]=" \
3\\\\\\n
"\\/p
28157 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28162 s/.\{148\}/&'"$ac_delim"'/g
28167 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28170 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28172 ' <confdefs.h | sed '
28173 s/'"$ac_delim"'/"\\\
28174 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28177 for (key in D) D_is_set[key] = 1
28180 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28182 split(line, arg, " ")
28183 if (arg[1] == "#") {
28187 defundef
= substr
(arg
[1], 2)
28190 split(mac1
, mac2
, "(") #)
28192 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28193 if (D_is_set
[macro
]) {
28194 # Preserve the white space surrounding the "#".
28195 print prefix
"define", macro P
[macro
] D
[macro
]
28198 # Replace #undef with comments. This is necessary, for example,
28199 # in the case of _POSIX_SOURCE, which is predefined and required
28200 # on some systems where configure will not decide to define it.
28201 if (defundef
== "undef") {
28202 print
"/*", prefix defundef
, macro
, "*/"
28210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28211 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28212 fi # test -n "$CONFIG_HEADERS"
28215 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28220 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28222 case $ac_mode$ac_tag in
28224 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28225 :[FH
]-) ac_tag
=-:-;;
28226 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28243 -) ac_f
="$tmp/stdin";;
28244 *) # Look for the file first in the build tree, then in the source tree
28245 # (if the path is not absolute). The absolute path cannot be DOS-style,
28246 # because $ac_f cannot contain `:'.
28250 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28252 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28254 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28255 as_fn_append ac_file_inputs
" '$ac_f'"
28258 # Let's still pretend it is `configure' which instantiates (i.e., don't
28259 # use $as_me), people would be surprised to read:
28260 # /* config.h. Generated by config.status. */
28261 configure_input
='Generated from '`
28262 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28264 if test x
"$ac_file" != x-
; then
28265 configure_input
="$ac_file. $configure_input"
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28267 $as_echo "$as_me: creating $ac_file" >&6;}
28269 # Neutralize special characters interpreted by sed in replacement strings.
28270 case $configure_input in #(
28271 *\
&* |
*\|
* |
*\\* )
28272 ac_sed_conf_input
=`$as_echo "$configure_input" |
28273 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28274 *) ac_sed_conf_input
=$configure_input;;
28278 *:-:* |
*:-) cat >"$tmp/stdin" \
28279 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28284 ac_dir
=`$as_dirname -- "$ac_file" ||
28285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28286 X"$ac_file" : 'X\(//\)[^/]' \| \
28287 X"$ac_file" : 'X\(//\)$' \| \
28288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28289 $as_echo X"$ac_file" |
28290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28294 /^X\(\/\/\)[^/].*/{
28307 as_dir
="$ac_dir"; as_fn_mkdir_p
28311 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28313 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28314 # A ".." for each directory in $ac_dir_suffix.
28315 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28316 case $ac_top_builddir_sub in
28317 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28318 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28321 ac_abs_top_builddir
=$ac_pwd
28322 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28323 # for backward compatibility:
28324 ac_top_builddir
=$ac_top_build_prefix
28327 .
) # We are building in place.
28329 ac_top_srcdir
=$ac_top_builddir_sub
28330 ac_abs_top_srcdir
=$ac_pwd ;;
28331 [\\/]* | ?
:[\\/]* ) # Absolute name.
28332 ac_srcdir
=$srcdir$ac_dir_suffix;
28333 ac_top_srcdir
=$srcdir
28334 ac_abs_top_srcdir
=$srcdir ;;
28335 *) # Relative name.
28336 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28337 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28338 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28340 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28352 # If the template does not know about datarootdir, expand it.
28353 # FIXME: This hack should be removed a few years after 2.60.
28354 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28366 *datarootdir
*) ac_datarootdir_seen
=yes;;
28367 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28372 ac_datarootdir_hack='
28373 s&@datadir@&$datadir&g
28374 s&@docdir@&$docdir&g
28375 s&@infodir@&$infodir&g
28376 s&@localedir@&$localedir&g
28377 s&@mandir@&$mandir&g
28378 s&\\\${datarootdir}&$datarootdir&g' ;;
28382 # Neutralize VPATH when `$srcdir' = `.'.
28383 # Shell code in configure.ac might set extrasub.
28384 # FIXME: do we really want to maintain this feature?
28385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28386 ac_sed_extra="$ac_vpsub
28389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28391 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28392 s|@configure_input@|
$ac_sed_conf_input|
;t t
28393 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28394 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28395 s
&@srcdir@
&$ac_srcdir&;t t
28396 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28397 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28398 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28399 s
&@builddir@
&$ac_builddir&;t t
28400 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28401 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28402 $ac_datarootdir_hack
28404 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28405 if $ac_cs_awk_getline; then
28406 $AWK -f "$tmp/subs.
awk"
28408 $AWK -f "$tmp/subs.
awk" | $SHELL
28410 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28412 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28413 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28416 which seems to be undefined. Please make sure it is defined." >&5
28417 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28418 which seems to be undefined. Please make sure it is defined." >&2;}
28422 -) cat "$tmp/out" && rm -f "$tmp/out";;
28423 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28425 || as_fn_error "could not create $ac_file" "$LINENO" 5
28431 if test x"$ac_file" != x-; then
28433 $as_echo "/* $configure_input */" \
28434 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28435 } >"$tmp/config.h" \
28436 || as_fn_error "could not create $ac_file" "$LINENO" 5
28437 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28439 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28442 mv "$tmp/config.h" "$ac_file" \
28443 || as_fn_error "could not create $ac_file" "$LINENO" 5
28446 $as_echo "/* $configure_input */" \
28447 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28448 || as_fn_error "could not create -" "$LINENO" 5
28452 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28453 $as_echo "$as_me: executing $ac_file commands" >&6;}
28458 case $ac_file$ac_mode in
28459 "as":F) chmod +x as ;;
28460 "collect-ld":F) chmod +x collect-ld ;;
28461 "nm":F) chmod +x nm ;;
28463 case ${CONFIG_HEADERS} in
28464 *auto-host.h:config.in*)
28467 # Make sure all the subdirs exist.
28468 for d in $subdirs doc build common c-family
28470 test -d $d || mkdir $d
28480 ac_clean_files=$ac_clean_files_save
28482 test $ac_write_fail = 0 ||
28483 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28486 # configure is writing to config.log, and then calls config.status.
28487 # config.status does its own redirection, appending to config.log.
28488 # Unfortunately, on DOS this fails, as config.log is still kept open
28489 # by configure, so config.status won't be able to
write to it
; its
28490 # output is simply discarded. So we exec the FD to /dev/null,
28491 # effectively closing config.log, so it can be properly (re)opened and
28492 # appended to by config.status. When coming back to configure, we
28493 # need to make the FD available again.
28494 if test "$no_create" != yes; then
28496 ac_config_status_args
=
28497 test "$silent" = yes &&
28498 ac_config_status_args
="$ac_config_status_args --quiet"
28500 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28502 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28503 # would make configure fail if this is the last instruction.
28504 $ac_cs_success || as_fn_exit $?
28506 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28508 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}