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
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
771 ENABLE_BUILD_WITH_CXX
774 valgrind_path_defines
846 program_transform_name
857 ac_subst_files
='language_hooks'
859 enable_option_checking
864 enable_generated_files_in_srcdir
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
899 enable_leading_mingw64_underscores
902 enable_win32_registry
909 enable_gnu_unique_object
910 enable_linker_build_id
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
919 ac_precious_vars
='build_alias
942 # Initialize some variables set by options.
944 ac_init_version
=false
945 ac_unrecognized_opts
=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name
=s
,x
,x
,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir
='${exec_prefix}/bin'
971 sbindir
='${exec_prefix}/sbin'
972 libexecdir
='${exec_prefix}/libexec'
973 datarootdir
='${prefix}/share'
974 datadir
='${datarootdir}'
975 sysconfdir
='${prefix}/etc'
976 sharedstatedir
='${prefix}/com'
977 localstatedir
='${prefix}/var'
978 includedir
='${prefix}/include'
979 oldincludedir
='/usr/include'
980 docdir
='${datarootdir}/doc/${PACKAGE}'
981 infodir
='${datarootdir}/info'
986 libdir
='${exec_prefix}/lib'
987 localedir
='${datarootdir}/locale'
988 mandir
='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\
$ac_option
1002 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1014 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1015 bindir
=$ac_optarg ;;
1017 -build |
--build |
--buil |
--bui |
--bu)
1018 ac_prev
=build_alias
;;
1019 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1020 build_alias
=$ac_optarg ;;
1022 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1023 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1024 ac_prev
=cache_file
;;
1025 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1026 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1027 cache_file
=$ac_optarg ;;
1029 --config-cache |
-C)
1030 cache_file
=config.cache
;;
1032 -datadir |
--datadir |
--datadi |
--datad)
1034 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1035 datadir
=$ac_optarg ;;
1037 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1038 |
--dataroo |
--dataro |
--datar)
1039 ac_prev
=datarootdir
;;
1040 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1041 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1042 datarootdir
=$ac_optarg ;;
1044 -disable-* |
--disable-*)
1045 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1048 as_fn_error
"invalid feature name: $ac_useropt"
1049 ac_useropt_orig
=$ac_useropt
1050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_
$ac_useropt"
1055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep
=', ';;
1058 eval enable_
$ac_useropt=no
;;
1060 -docdir |
--docdir |
--docdi |
--doc |
--do)
1062 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1063 docdir
=$ac_optarg ;;
1065 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1067 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1068 dvidir
=$ac_optarg ;;
1070 -enable-* |
--enable-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error
"invalid feature name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_
$ac_useropt"
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval enable_
$ac_useropt=\
$ac_optarg ;;
1086 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1087 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1088 |
--exec |
--exe |
--ex)
1089 ac_prev
=exec_prefix
;;
1090 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1091 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1092 |
--exec=* |
--exe=* |
--ex=*)
1093 exec_prefix
=$ac_optarg ;;
1095 -gas |
--gas |
--ga |
--g)
1096 # Obsolete; use --with-gas.
1099 -help |
--help |
--hel |
--he |
-h)
1100 ac_init_help
=long
;;
1101 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1102 ac_init_help
=recursive
;;
1103 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1104 ac_init_help
=short
;;
1106 -host |
--host |
--hos |
--ho)
1107 ac_prev
=host_alias
;;
1108 -host=* |
--host=* |
--hos=* |
--ho=*)
1109 host_alias
=$ac_optarg ;;
1111 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1113 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1115 htmldir
=$ac_optarg ;;
1117 -includedir |
--includedir |
--includedi |
--included |
--include \
1118 |
--includ |
--inclu |
--incl |
--inc)
1119 ac_prev
=includedir
;;
1120 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1121 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1122 includedir
=$ac_optarg ;;
1124 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1126 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1127 infodir
=$ac_optarg ;;
1129 -libdir |
--libdir |
--libdi |
--libd)
1131 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1132 libdir
=$ac_optarg ;;
1134 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1135 |
--libexe |
--libex |
--libe)
1136 ac_prev
=libexecdir
;;
1137 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1138 |
--libexe=* |
--libex=* |
--libe=*)
1139 libexecdir
=$ac_optarg ;;
1141 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1142 ac_prev
=localedir
;;
1143 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1144 localedir
=$ac_optarg ;;
1146 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1147 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1148 ac_prev
=localstatedir
;;
1149 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1150 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1151 localstatedir
=$ac_optarg ;;
1153 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1155 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1156 mandir
=$ac_optarg ;;
1158 -nfp |
--nfp |
--nf)
1159 # Obsolete; use --without-fp.
1162 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1163 |
--no-cr |
--no-c |
-n)
1166 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1167 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1170 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1171 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1172 |
--oldin |
--oldi |
--old |
--ol |
--o)
1173 ac_prev
=oldincludedir
;;
1174 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1175 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1176 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1177 oldincludedir
=$ac_optarg ;;
1179 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1181 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1182 prefix
=$ac_optarg ;;
1184 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1185 |
--program-pre |
--program-pr |
--program-p)
1186 ac_prev
=program_prefix
;;
1187 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1188 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1189 program_prefix
=$ac_optarg ;;
1191 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1192 |
--program-suf |
--program-su |
--program-s)
1193 ac_prev
=program_suffix
;;
1194 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1195 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1196 program_suffix
=$ac_optarg ;;
1198 -program-transform-name |
--program-transform-name \
1199 |
--program-transform-nam |
--program-transform-na \
1200 |
--program-transform-n |
--program-transform- \
1201 |
--program-transform |
--program-transfor \
1202 |
--program-transfo |
--program-transf \
1203 |
--program-trans |
--program-tran \
1204 |
--progr-tra |
--program-tr |
--program-t)
1205 ac_prev
=program_transform_name
;;
1206 -program-transform-name=* |
--program-transform-name=* \
1207 |
--program-transform-nam=* |
--program-transform-na=* \
1208 |
--program-transform-n=* |
--program-transform-=* \
1209 |
--program-transform=* |
--program-transfor=* \
1210 |
--program-transfo=* |
--program-transf=* \
1211 |
--program-trans=* |
--program-tran=* \
1212 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1213 program_transform_name
=$ac_optarg ;;
1215 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1217 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1218 pdfdir
=$ac_optarg ;;
1220 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1222 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1225 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1226 |
-silent |
--silent |
--silen |
--sile |
--sil)
1229 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1231 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1233 sbindir
=$ac_optarg ;;
1235 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1236 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1237 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1239 ac_prev
=sharedstatedir
;;
1240 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1241 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1242 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1244 sharedstatedir
=$ac_optarg ;;
1246 -site |
--site |
--sit)
1248 -site=* |
--site=* |
--sit=*)
1251 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1253 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1254 srcdir
=$ac_optarg ;;
1256 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1257 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1258 ac_prev
=sysconfdir
;;
1259 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1260 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1261 sysconfdir
=$ac_optarg ;;
1263 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1264 ac_prev
=target_alias
;;
1265 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1266 target_alias
=$ac_optarg ;;
1268 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1271 -version |
--version |
--versio |
--versi |
--vers |
-V)
1272 ac_init_version
=: ;;
1275 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1278 as_fn_error
"invalid package name: $ac_useropt"
1279 ac_useropt_orig
=$ac_useropt
1280 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep
=', ';;
1288 eval with_
$ac_useropt=\
$ac_optarg ;;
1290 -without-* |
--without-*)
1291 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1294 as_fn_error
"invalid package name: $ac_useropt"
1295 ac_useropt_orig
=$ac_useropt
1296 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep
=', ';;
1304 eval with_
$ac_useropt=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) as_fn_error
"unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1329 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1333 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error
"missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val
=\$
$ac_var
1369 # Remove trailing slashes.
1372 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\
$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$
]* | ?
:[\\/]* ) continue;;
1378 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1380 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target
=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x
; then
1392 if test "x$build_alias" = x
; then
1393 cross_compiling
=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1404 test "$silent" = yes && exec 6>/dev
/null
1407 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di
=`ls -di .` &&
1409 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error
"working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error
"pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted
=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir
=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted
=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1451 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var
in $ac_precious_vars; do
1468 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1470 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1544 --build=BUILD configure
for building on BUILD
[guessed
]
1545 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1546 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1550 if test -n "$ac_init_help"; then
1555 --disable-option-checking ignore unrecognized
--enable/--with options
1556 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1557 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files
in source dir
1560 intended
for creating
source tarballs
for users
1561 without texinfo bison or flex.
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking=LIST
1564 enable expensive run-time checks. With LIST
,
1565 enable only specific categories of checks.
1566 Categories are
: yes,no
,all
,none
,release.
1567 Flags are
: 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.
1571 Use to measure compiler performance and locate
1572 unused parts of the compiler. With LEVEL, specify
1573 optimization. Values are opt, noopt,
1575 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid
'
1581 or 'dpd
' choses which decimal floating point format
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads enable thread usage for target GCC
1585 --enable-threads=LIB use LIB thread package for target GCC
1586 --enable-tls enable or disable generation of tls code
1587 overriding the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with
1589 the GNU Objective-C runtime
1590 --disable-shared don
't provide a shared libgcc
1591 --enable-intermodule build the compiler in one step
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-initfini-array use .init_array/.fini_array sections
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 Enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1602 --disable-win32-registry
1603 disable lookup of installation paths in the
1604 Registry on Windows hosts
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-comdat enable COMDAT group support
1615 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1617 --enable-linker-build-id
1618 compiler will always pass --build-id to linker
1619 --enable-maintainer-mode
1620 enable make rules and dependencies not useful
1621 (and sometimes confusing) to the casual installer
1622 --enable-version-specific-runtime-libs
1623 specify that runtime libraries should be
1624 installed in a compiler-specific directory
1625 --enable-plugin enable plugin support
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-build-libsubdir=DIR Directory where to find libraries for build system
1631 --with-local-prefix=DIR specifies directory to put local include
1632 --with-gxx-include-dir=DIR
1633 specifies directory to put g++ header files
1634 --with-cpp-install-dir=DIR
1635 install the user visible C preprocessor in DIR
1636 (relative to PREFIX) as well as PREFIX/bin
1637 --with-gnu-ld arrange to work with GNU ld.
1638 --with-ld arrange to use the specified ld (full pathname)
1639 --with-demangler-in-ld try to use demangler in GNU ld.
1640 --with-gnu-as arrange to work with GNU as
1641 --with-as arrange to use the specified as (full pathname)
1642 --with-stabs arrange to use stabs instead of host debug format
1643 --with-dwarf2 force the default debug format to be DWARF 2
1644 --with-build-sysroot=sysroot
1645 use sysroot as the system root during the build
1646 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1647 --with-specs=SPECS add SPECS to driver command-line processing
1648 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1649 --with-bugurl=URL Direct users to URL to report a bug
1650 --with-multilib-list Select multilibs (SH only)
1651 --with-gnu-ld assume the C compiler uses GNU ld default=no
1652 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1653 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1654 --with-system-libunwind use installed libunwind
1655 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1657 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1658 --with-plugin-ld=[ARG
] specify the plugin linker
1659 --with-long-double-128 Use
128-bit long double by default.
1660 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1662 --with-system-zlib use installed libz
1663 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1665 Some influential environment variables
:
1666 CC C compiler
command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1669 nonstandard directory
<lib dir
>
1670 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1671 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1672 you have headers
in a nonstandard directory
<include dir
>
1673 CXX C
++ compiler
command
1674 CXXFLAGS C
++ compiler flags
1676 CXXCPP C
++ preprocessor
1677 GMPLIBS How to link GMP
1678 GMPINC How to
find GMP include files
1679 PPLLIBS How to link PPL
1680 PPLINC How to
find PPL include files
1681 CLOOGLIBS How to link CLOOG
1682 CLOOGINC How to
find CLOOG include files
1683 LIBELFLIBS How to link libelf
1684 LIBELFINC How to
find libelf include files
1686 Use these variables to override the choices made by
`configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1689 Report bugs to the package provider.
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1719 .) # We are building in place.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1753 generated by GNU Autoconf 2.64
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1776 *) ac_try_echo
=$ac_try;;
1778 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1782 if test -s conftest.err
; then
1783 grep -v '^ *+' conftest.err
>conftest.er1
1784 cat conftest.er1
>&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.
$ac_objext; then :
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.
$ac_ext >&5
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1802 } # ac_fn_c_try_compile
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 rm -f conftest.
$ac_objext
1811 if { { ac_try
="$ac_compile"
1813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_cxx_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 } # ac_fn_cxx_try_compile
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1851 *) ac_try_echo
=$ac_try;;
1853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 if test -s conftest.err
; then
1858 grep -v '^ *+' conftest.err
>conftest.er1
1859 cat conftest.er1
>&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } >/dev
/null
&& {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.
$ac_ext >&5
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1884 ac_fn_c_check_header_mongrel
()
1886 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1887 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1905 if ac_fn_c_try_compile
"$LINENO"; then :
1906 ac_header_compiler
=yes
1908 ac_header_compiler
=no
1910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 if ac_fn_c_try_cpp
"$LINENO"; then :
1922 ac_header_preproc
=yes
1924 ac_header_preproc
=no
1926 rm -f conftest.err conftest.
$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1956 eval "$3=\$ac_header_compiler"
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1964 } # ac_fn_c_check_header_mongrel
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1972 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1973 if { { ac_try
="$ac_link"
1975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>&5
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984 { { case "(($ac_try" in
1985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1986 *) ac_try_echo
=$ac_try;;
1988 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_try") 2>&5
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; }; }; then :
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.
$ac_ext >&5
2000 ac_retval
=$ac_status
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile
()
2014 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2025 if ac_fn_c_try_compile
"$LINENO"; then :
2030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2037 } # ac_fn_c_check_header_compile
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2044 ac_fn_c_compute_int
()
2046 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2047 if test "$cross_compiling" = yes; then
2048 # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2062 if ac_fn_c_try_compile
"$LINENO"; then :
2065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 if ac_fn_c_try_compile
"$LINENO"; then :
2079 ac_hi
=$ac_mid; break
2081 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2082 if test $ac_lo -le $ac_mid; then
2086 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) < 0)];
2104 if ac_fn_c_try_compile
"$LINENO"; then :
2107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 if ac_fn_c_try_compile
"$LINENO"; then :
2121 ac_lo
=$ac_mid; break
2123 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2124 if test $ac_mid -le $ac_hi; then
2128 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 if ac_fn_c_try_compile
"$LINENO"; then :
2157 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2177 FILE *f = fopen ("conftest.val", "w");
2182 long int i = longval ();
2185 fprintf (f, "%ld", i);
2189 unsigned long int i = ulongval ();
2192 fprintf (f, "%lu", i);
2194 /* Do not output a trailing newline, as this causes \r\n confusion
2195 on some platforms. */
2196 return ferror (f) || fclose (f) != 0;
2202 if ac_fn_c_try_run
"$LINENO"; then :
2203 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2215 } # ac_fn_c_compute_int
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type
()
2223 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2242 if ac_fn_c_try_compile
"$LINENO"; then :
2243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile
"$LINENO"; then :
2260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2269 } # ac_fn_c_check_type
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2275 ac_fn_c_find_intX_t
()
2277 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2284 for ac_type
in int
$2_t 'int' 'long int' \
2285 'long long int' 'short int' 'signed char'; do
2286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $ac_includes_default
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2299 if ac_fn_c_try_compile
"$LINENO"; then :
2300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $ac_includes_default
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2314 if ac_fn_c_try_compile
"$LINENO"; then :
2321 eval "$3=\$ac_type" ;;
2324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2328 if test "x$as_val" = x
""no
; then :
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2340 } # ac_fn_c_find_intX_t
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2347 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2348 rm -f conftest.
$ac_objext conftest
$ac_exeext
2349 if { { ac_try
="$ac_link"
2351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356 (eval "$ac_link") 2>conftest.err
2358 if test -s conftest.err; then
2359 grep -v '^ *+' conftest.err >conftest.er1
2360 cat conftest.er1 >&5
2361 mv -f conftest.er1 conftest.err
2363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364 test $ac_status = 0; } && {
2365 test -z "$ac_c_werror_flag" ||
2366 test ! -s conftest.err
2367 } && test -s conftest$ac_exeext && {
2368 test "$cross_compiling" = yes ||
2369 $as_test_x conftest$ac_exeext
2373 $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380 # interfere with the next link command; also delete a directory that is
2381 # left behind by Apple's compiler. We do this before executing the actions.
2382 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_try_link
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2392 ac_fn_c_find_uintX_t ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2401 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2416 if ac_fn_c_try_compile "$LINENO"; then :
2421 eval "$3=\$ac_type" ;;
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 if test "x$as_val" = x""no; then :
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 } # ac_fn_c_find_uintX_t
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2460 rm -f conftest.err conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_check_header_preproc
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2484 #define $2 innocuous_$2
2486 /* System header to define __stub macros and hopefully few prototypes,
2487 which can conflict with char $2 (); below.
2488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489 <limits.h> exists even on freestanding compilers. */
2492 # include <limits.h>
2494 # include <assert.h>
2499 /* Override any GCC internal prototype to avoid an error.
2500 Use char because int might match the return type of a GCC
2501 builtin and then its argument prototype would still apply. */
2506 /* The GNU C library defines this for functions which it implements
2507 to always fail with ENOSYS. Some functions are actually named
2508 something starting with __ and the normal name is an alias. */
2509 #if defined __stub_$2 || defined __stub___$2
2521 if ac_fn_c_try_link "$LINENO"; then :
2526 rm -f core conftest.err conftest.$ac_objext \
2527 conftest$ac_exeext conftest.$ac_ext
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2534 } # ac_fn_c_check_func
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 if { { ac_try="$ac_cpp conftest.$ac_ext"
2544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2545 *) ac_try_echo
=$ac_try;;
2547 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2551 if test -s conftest.err
; then
2552 grep -v '^ *+' conftest.err
>conftest.er1
2553 cat conftest.er1
>&5
2554 mv -f conftest.er1 conftest.err
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } >/dev
/null
&& {
2558 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559 test ! -s conftest.err
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.
$ac_ext >&5
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2571 } # ac_fn_cxx_try_cpp
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link
()
2578 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2579 rm -f conftest.
$ac_objext conftest
$ac_exeext
2580 if { { ac_try
="$ac_link"
2582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_cxx_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 $as_test_x conftest$ac_exeext
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64. Invocation command line was
2635 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2636 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2637 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2638 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2639 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2641 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2642 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2644 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2645 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2646 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2647 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2648 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2649 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2650 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 $as_echo "PATH: $as_dir"
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2683 ac_must_keep_next=false
2689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691 | -silent | --silent | --silen | --sile | --sil)
2694 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2697 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2699 as_fn_append ac_configure_args1 " '$ac_arg'"
2700 if test $ac_must_keep_next = true; then
2701 ac_must_keep_next=false # Got value, back to normal.
2704 *=* | --config-cache | -C | -disable-* | --disable-* \
2705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707 | -with-* | --with-* | -without-* | --without-* | --x)
2708 case "$ac_configure_args0 " in
2709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2712 -* ) ac_must_keep_next=true ;;
2715 as_fn_append ac_configure_args " '$ac_arg'"
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log. We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729 # Save into config.log some information that might help in debugging.
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2739 # The following way of writing the cache mishandles newlines in values,
2741 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2742 eval ac_val=\$$ac_var
2746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2750 _ | IFS | as_nl) ;; #(
2751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752 *) { eval $ac_var=; unset $ac_var;} ;;
2757 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2758 *${as_nl}ac_space=\ *)
2760 "s/'\''/'\''\\\\'\'''\''/g;
2761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2777 for ac_var in $ac_subst_vars
2779 eval ac_val=\$$ac_var
2781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2783 $as_echo "$ac_var='\''$ac_val'\''"
2787 if test -n "$ac_subst_files"; then
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2794 for ac_var in $ac_subst_files
2796 eval ac_val=\$$ac_var
2798 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 $as_echo "$ac_var='\''$ac_val'\''"
2805 if test -s confdefs.h; then
2815 test "$ac_signal" != 0 &&
2816 $as_echo "$as_me: caught signal $ac_signal"
2817 $as_echo "$as_me: exit $exit_status"
2819 rm -f core *.core core.conftest.* &&
2820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2823 for ac_signal in 1 2 13 15; do
2824 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2831 $as_echo "/* confdefs.h */" > confdefs.h
2833 # Predefined preprocessor variables.
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2864 if test -n "$CONFIG_SITE"; then
2865 ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867 ac_site_file1=$prefix/share/config.site
2868 ac_site_file2=$prefix/etc/config.site
2870 ac_site_file1=$ac_default_prefix/share/config.site
2871 ac_site_file2=$ac_default_prefix/etc/config.site
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2875 test "x$ac_site_file" = xNONE && continue
2876 if test -r "$ac_site_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879 sed 's/^/| /' "$ac_site_file" >&5
2884 if test -r "$cache_file"; then
2885 # Some versions of bash will fail to source /dev/null (special
2886 # files actually), so we avoid doing that.
2887 if test -f "$cache_file"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892 *) . "./$cache_file";;
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2901 # Check that the precious variables saved in the cache have kept the same
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906 eval ac_new_set=\$ac_env_${ac_var}_set
2907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908 eval ac_new_val=\$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2912 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2916 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w=`echo x
$ac_old_val`
2923 ac_new_val_w=`echo x
$ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2927 ac_cache_corrupted=:
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\$ac_old_val
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2934 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2942 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2943 *) ac_arg=$ac_var=$ac_new_val ;;
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2951 if $ac_cache_corrupted; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2976 gcc_version=`cat $srcdir/BASE-VER
`
2978 # Determine the host, build, and target systems
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981 for ac_t in install-sh install.sh shtool; do
2982 if test -f "$ac_dir/$ac_t"; then
2984 ac_install_sh="$ac_aux_dir/$ac_t -c"
2989 if test -z "$ac_aux_dir"; then
2990 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3011 ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3027 ac_save_IFS=$IFS; IFS='-'
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3037 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
3045 if test "x$host_alias" = x; then
3046 ac_cv_host=$ac_cv_build
3048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3060 ac_save_IFS=$IFS; IFS='-'
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3070 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3078 if test "x$target_alias" = x; then
3079 ac_cv_target=$ac_cv_host
3081 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3103 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109 test "$program_prefix$program_suffix$program_transform_name" = \
3111 program_prefix=${target_alias}-
3113 # Determine the noncanonical target name, for directory use.
3114 case ${build_alias} in
3115 "") build_noncanonical=${build} ;;
3116 *) build_noncanonical=${build_alias} ;;
3119 case ${host_alias} in
3120 "") host_noncanonical=${build_noncanonical} ;;
3121 *) host_noncanonical=${host_alias} ;;
3124 case ${target_alias} in
3125 "") target_noncanonical=${host_noncanonical} ;;
3126 *) target_noncanonical=${target_alias} ;;
3132 # Determine the target- and build-specific subdirectories
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148 withval=$with_build_libsubdir; build_libsubdir="$withval"
3150 build_libsubdir="$build_subdir"
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155 || test -d $srcdir/../host-${host_noncanonical}; then
3156 host_subdir="host-${host_noncanonical}"
3161 target_subdir=${target_noncanonical}
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s
,x
,x
', remove it if useless.
3172 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188 library_path_setting="contains current directory"
3191 library_path_setting="ok"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again.
" "$LINENO" 5
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214 gcc_exec_prefix_setting="contains current directory
"
3217 gcc_exec_prefix_setting="ok
"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok
"; then
3224 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3233 # Specify the local prefix
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238 withval=$with_local_prefix; case "${withval}" in
3239 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3241 *) local_prefix=$with_local_prefix ;;
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248 local_prefix=/usr/local
3251 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir
=
3255 # Specify the g++ header file directory
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259 withval
=$with_gxx_include_dir; case "${withval}" in
3260 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3262 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x
${gcc_gxx_include_dir} = x
; then
3269 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3270 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3272 libstdcxx_incdir
='include/c++/$(version)'
3273 if test x
$host != x
$target; then
3274 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3276 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3284 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x
$withval != xno
; then
3286 cpp_install_dir
=$withval
3291 # We would like to our source tree to be readonly. However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299 # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3303 generated_files_in_srcdir
=no
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3310 if test "$generated_files_in_srcdir" = "yes"; then
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3331 # With pre-defined ld
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3338 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3339 if test ! -x "$DEFAULT_LINKER"; then
3340 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3345 cat >>confdefs.h
<<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3351 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3353 cat >>confdefs.h
<<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3361 if test x
"$gnu_ld_flag" = x
"no"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3373 # With demangler in GNU ld
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3403 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3404 if test ! -x "$DEFAULT_ASSEMBLER"; then
3405 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3410 cat >>confdefs.h
<<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3416 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3418 cat >>confdefs.h
<<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3426 if test x
"$gas_flag" = x
"no"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3451 # Find the native compiler
3453 ac_cpp
='$CPP $CPPFLAGS'
3454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC
="$CC" # Let the user override the test.
3468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir
=.
3473 for ac_exec_ext
in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_CC"; then
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc
; ac_word
=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC
="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_CC" = x
; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned
=yes ;;
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC
="$CC" # Let the user override the test.
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 for ac_exec_ext
in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc
; ac_word
=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC
="$CC" # Let the user override the test.
3602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir
=.
3607 for ac_exec_ext
in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected
=yes
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy
$ac_cv_prog_CC
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3630 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog
in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC
="$CC" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CC" && break
3690 if test -z "$CC"; then
3692 for ac_prog
in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy
$ac_prog; ac_word
=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir
=.
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC
="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CC" && break
3734 if test "x$ac_ct_CC" = x
; then
3737 case $cross_compiling:$ac_tool_warned in
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned
=yes ;;
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error
"no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3759 for ac_option
in --version -v -V -qversion; do
3760 { { ac_try
="$ac_compiler $ac_option >&5"
3762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 if test -s conftest.err; then
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3774 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 for ac_file in $ac_files
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813 if { { ac_try="$ac_link_default"
3815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3816 *) ac_try_echo
=$ac_try;;
3818 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3829 for ac_file
in $ac_files ''
3831 test -f "$ac_file" ||
continue
3833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3836 # We found the default executable, but exeext='' is most
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3842 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3854 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status
77
3868 as_fn_error
"C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3871 ac_exeext
=$ac_cv_exeext
3873 # Check that the compiler produces executables we can run. If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879 if { ac_try
='./$ac_file'
3880 { { case "(($ac_try" in
3881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_try") 2>&5
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; }; then
3892 if test "$cross_compiling" = maybe; then
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_error "cannot run C compiled programs.
3898 If you meant to cross compile
, use \
`--host'.
3899 See \`config.log
' for more details." "$LINENO" 5; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3929 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3932 for ac_file
in conftest.exe conftest conftest.
*; do
3933 test -f "$ac_file" ||
continue
3935 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3936 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3947 rm -f conftest
$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3951 rm -f conftest.
$ac_ext
3952 EXEEXT
=$ac_cv_exeext
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try
="$ac_compile"
3973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files
: cannot compile
3997 See \
`config.log' for more details." "$LINENO" 5; }
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4062 if ac_fn_c_try_compile "$LINENO"; then :
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4114 if test "$GCC" = yes; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_cv_prog_cc_c89=no
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4147 s = g (p, va_arg (v,int));
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 rm -f conftest.$ac_ext
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 if test "x$CC" != xcc; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227 $as_echo_n "(cached) " >&6
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4245 if { { case "(($ac_try" in
4246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4247 *) ac_try_echo
=$ac_try;;
4249 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; } &&
4255 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; };
4266 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267 if test "x$CC" != xcc; then
4268 # Test first that cc exists at all.
4269 if { ac_try='cc -c conftest.$ac_ext >&5'
4270 { { case "(($ac_try" in
4271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4272 *) ac_try_echo
=$ac_try;;
4274 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_try") 2>&5
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }; }; then
4280 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 if { { case "(($ac_try" in
4283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4294 *) ac_try_echo
=$ac_try;;
4296 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4306 # cc exists but doesn't like -o.
4307 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4312 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4314 rm -f core conftest
*
4317 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir
=`cd $ac_aux_dir && pwd`
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4334 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337 # Losing compiler, so override with the script.
4338 # FIXME: It is wrong to rewrite CC.
4339 # But if we don't then we get into trouble of one sort or another.
4340 # A longer-term fix would be to have automake use am__CC in this case,
4341 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342 CC
="$am_aux_dir/compile $CC"
4347 ac_cpp
='$CXXCPP $CPPFLAGS'
4348 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352 if test -n "$CCC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$CXX"; then
4366 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir
=.
4373 for ac_exec_ext
in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 if test -n "$CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$CXX" && break
4398 if test -z "$CXX"; then
4400 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy
$ac_prog; ac_word
=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$ac_ct_CXX"; then
4410 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir
=.
4417 for ac_exec_ext
in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$ac_ct_CXX" && break
4442 if test "x$ac_ct_CXX" = x
; then
4445 case $cross_compiling:$ac_tool_warned in
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned
=yes ;;
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4461 for ac_option
in --version -v -V -qversion; do
4462 { { ac_try
="$ac_compiler $ac_option >&5"
4464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471 if test -s conftest.err; then
4473 ... rest of stderr output deleted ...
4474 10q' conftest.err >conftest.er1
4475 cat conftest.er1 >&5
4476 rm -f conftest.er1 conftest.err
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525 ac_cxx_werror_flag=yes
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 ac_cv_prog_cxx_g=yes
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583 CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585 if test "$GXX" = yes; then
4591 if test "$GXX" = yes; then
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 if test -n "$GNATBIND"; then
4615 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646 ac_ct_GNATBIND=$GNATBIND
4647 # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$ac_ct_GNATBIND"; then
4655 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4683 if test "x$ac_ct_GNATBIND" = x; then
4686 case $cross_compiling:$ac_tool_warned in
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4692 GNATBIND=$ac_ct_GNATBIND
4695 GNATBIND="$ac_cv_prog_GNATBIND"
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 if test -n "$GNATMAKE"; then
4707 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738 ac_ct_GNATMAKE=$GNATMAKE
4739 # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -n "$ac_ct_GNATMAKE"; then
4747 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4775 if test "x$ac_ct_GNATMAKE" = x; then
4778 case $cross_compiling:$ac_tool_warned in
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4784 GNATMAKE=$ac_ct_GNATMAKE
4787 GNATMAKE="$ac_cv_prog_GNATMAKE"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4795 cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file. So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809 acx_cv_cc_gcc_supports_ada=yes
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4825 NO_MINUS_C_MINUS_O=yes
4827 OUTPUT_OPTION='-o $@'
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4835 */prev-gcc/xgcc*) ;;
4836 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4856 if test -z "$CPP"; then
4857 if test "${ac_cv_prog_CPP+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 # Double quotes because CPP needs to be expanded
4861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4864 for ac_c_preproc_warn_flag in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # include <limits.h>
4877 # include <assert.h>
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4884 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: success on invalid input.
4899 # Passes both tests.
4903 rm -f conftest.err conftest.$ac_ext
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.
$ac_ext
4908 if $ac_preproc_ok; then :
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4923 for ac_c_preproc_warn_flag
in '' yes
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4934 # include <limits.h>
4936 # include <assert.h>
4940 if ac_fn_c_try_cpp
"$LINENO"; then :
4943 # Broken: fails on valid input.
4946 rm -f conftest.err conftest.
$ac_ext
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4954 if ac_fn_c_try_cpp
"$LINENO"; then :
4955 # Broken: success on invalid input.
4958 # Passes both tests.
4962 rm -f conftest.err conftest.
$ac_ext
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.
$ac_ext
4967 if $ac_preproc_ok; then :
4970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4977 ac_cpp
='$CPP $CPPFLAGS'
4978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -z "$GREP"; then
4989 ac_path_GREP_found
=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4992 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4995 test -z "$as_dir" && as_dir
=.
4996 for ac_prog
in grep ggrep
; do
4997 for ac_exec_ext
in '' $ac_executable_extensions; do
4998 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001 # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5004 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5007 $as_echo_n 0123456789 >"conftest.in"
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'GREP' >> "conftest.nl"
5014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5015 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5016 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_GREP
="$ac_path_GREP"
5020 ac_path_GREP_max
=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5025 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5028 $ac_path_GREP_found && break 3
5033 if test -z "$ac_cv_path_GREP"; then
5034 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 ac_cv_path_GREP
=$GREP
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043 GREP
="$ac_cv_path_GREP"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5051 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5052 then ac_cv_path_EGREP
="$GREP -E"
5054 if test -z "$EGREP"; then
5055 ac_path_EGREP_found
=false
5056 # Loop through the user's path and test for each of PROGNAME-LIST
5057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5058 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5061 test -z "$as_dir" && as_dir
=.
5062 for ac_prog
in egrep; do
5063 for ac_exec_ext
in '' $ac_executable_extensions; do
5064 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067 # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5070 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5073 $as_echo_n 0123456789 >"conftest.in"
5076 cat "conftest.in" "conftest.in" >"conftest.tmp"
5077 mv "conftest.tmp" "conftest.in"
5078 cp "conftest.in" "conftest.nl"
5079 $as_echo 'EGREP' >> "conftest.nl"
5080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5081 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5082 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084 # Best one so far, save it but keep looking for a better one
5085 ac_cv_path_EGREP
="$ac_path_EGREP"
5086 ac_path_EGREP_max
=$ac_count
5088 # 10*(2^10) chars as input seems more than enough
5089 test $ac_count -gt 10 && break
5091 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5094 $ac_path_EGREP_found && break 3
5099 if test -z "$ac_cv_path_EGREP"; then
5100 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5103 ac_cv_path_EGREP
=$EGREP
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110 EGREP
="$ac_cv_path_EGREP"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5133 if ac_fn_c_try_compile
"$LINENO"; then :
5134 ac_cv_header_stdc
=yes
5136 ac_cv_header_stdc
=no
5138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5140 if test $ac_cv_header_stdc = yes; then
5141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 $EGREP "memchr" >/dev
/null
2>&1; then :
5151 ac_cv_header_stdc
=no
5157 if test $ac_cv_header_stdc = yes; then
5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "free" >/dev
/null
2>&1; then :
5168 ac_cv_header_stdc
=no
5174 if test $ac_cv_header_stdc = yes; then
5175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176 if test "$cross_compiling" = yes; then :
5179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187 # define ISLOWER(c) \
5188 (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5206 if ac_fn_c_try_run
"$LINENO"; then :
5209 ac_cv_header_stdc
=no
5211 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5212 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5227 inttypes.h stdint.h unistd.h
5229 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5232 eval as_val
=\$
$as_ac_Header
5233 if test "x$as_val" = x
""yes; then :
5234 cat >>confdefs.h
<<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5252 if test "$MINIX" = yes; then
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5273 # define __EXTENSIONS__ 1
5274 $ac_includes_default
5283 if ac_fn_c_try_compile
"$LINENO"; then :
5284 ac_cv_safe_to_define___extensions__
=yes
5286 ac_cv_safe_to_define___extensions__
=no
5288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292 test $ac_cv_safe_to_define___extensions__ = yes &&
5293 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5295 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5297 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5301 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5305 ac_cpp
='$CPP $CPPFLAGS'
5306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 # Double quotes because CPP needs to be expanded
5320 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5323 for ac_c_preproc_warn_flag
in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 # include <limits.h>
5336 # include <assert.h>
5340 if ac_fn_c_try_cpp
"$LINENO"; then :
5343 # Broken: fails on valid input.
5346 rm -f conftest.err conftest.
$ac_ext
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5354 if ac_fn_c_try_cpp
"$LINENO"; then :
5355 # Broken: success on invalid input.
5358 # Passes both tests.
5362 rm -f conftest.err conftest.
$ac_ext
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.
$ac_ext
5367 if $ac_preproc_ok; then :
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5382 for ac_c_preproc_warn_flag
in '' yes
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 # include <limits.h>
5395 # include <assert.h>
5399 if ac_fn_c_try_cpp
"$LINENO"; then :
5402 # Broken: fails on valid input.
5405 rm -f conftest.err conftest.
$ac_ext
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5413 if ac_fn_c_try_cpp
"$LINENO"; then :
5414 # Broken: success on invalid input.
5417 # Passes both tests.
5421 rm -f conftest.err conftest.
$ac_ext
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.
$ac_ext
5426 if $ac_preproc_ok; then :
5429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5436 ac_cpp
='$CPP $CPPFLAGS'
5437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5447 for ac_kw
in inline __inline__ __inline
; do
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5457 if ac_fn_c_try_compile
"$LINENO"; then :
5458 ac_cv_c_inline
=$ac_kw
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5461 test "$ac_cv_c_inline" != no
&& break
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5468 case $ac_cv_c_inline in
5471 case $ac_cv_c_inline in
5473 *) ac_val
=$ac_cv_c_inline;;
5475 cat >>confdefs.h
<<_ACEOF
5477 #define inline $ac_val
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5494 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5497 if test "$ac_cv_type_void_p" = yes; then
5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status
77
5501 as_fn_error
"cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5504 ac_cv_sizeof_void_p
=0
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5514 cat >>confdefs.h
<<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5531 if test "$ac_cv_type_short" = yes; then
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status
77
5535 as_fn_error
"cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5538 ac_cv_sizeof_short
=0
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5548 cat >>confdefs.h
<<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5562 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5565 if test "$ac_cv_type_int" = yes; then
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status
77
5569 as_fn_error
"cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5582 cat >>confdefs.h
<<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5599 if test "$ac_cv_type_long" = yes; then
5600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status
77
5603 as_fn_error
"cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5616 cat >>confdefs.h
<<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5621 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x
""yes; then :
5624 cat >>confdefs.h
<<_ACEOF
5625 #define HAVE_LONG_LONG 1
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5640 if test "$ac_cv_type_long_long" = yes; then
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status
77
5644 as_fn_error
"cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5647 ac_cv_sizeof_long_long
=0
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5657 cat >>confdefs.h
<<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5664 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x
""yes; then :
5667 cat >>confdefs.h
<<_ACEOF
5668 #define HAVE___INT64 1
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5680 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5683 if test "$ac_cv_type___int64" = yes; then
5684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status
77
5687 as_fn_error
"cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5690 ac_cv_sizeof___int64
=0
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5700 cat >>confdefs.h
<<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5707 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5708 case $ac_cv_c_int8_t in #(
5712 cat >>confdefs.h
<<_ACEOF
5713 #define int8_t $ac_cv_c_int8_t
5718 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5719 case $ac_cv_c_int16_t in #(
5723 cat >>confdefs.h
<<_ACEOF
5724 #define int16_t $ac_cv_c_int16_t
5729 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5730 case $ac_cv_c_int32_t in #(
5734 cat >>confdefs.h
<<_ACEOF
5735 #define int32_t $ac_cv_c_int32_t
5740 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5741 case $ac_cv_c_int64_t in #(
5745 cat >>confdefs.h
<<_ACEOF
5746 #define int64_t $ac_cv_c_int64_t
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5753 $as_echo_n "checking for long long int... " >&6; }
5754 if test "${ac_cv_type_long_long_int+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5760 /* For now, do not test the preprocessor; as of 2007 there are too many
5761 implementations with broken preprocessors. Perhaps this can
5762 be revisited in 2012. In the meantime, code should not expect
5763 #if to work with literals wider than 32 bits. */
5764 /* Test literals. */
5765 long long int ll = 9223372036854775807ll;
5766 long long int nll = -9223372036854775807LL;
5767 unsigned long long int ull = 18446744073709551615ULL;
5768 /* Test constant expressions. */
5769 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5771 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5777 /* Test availability of runtime routines for shift and division. */
5778 long long int llmax = 9223372036854775807ll;
5779 unsigned long long int ullmax = 18446744073709551615ull;
5780 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5781 | (llmax / ll) | (llmax % ll)
5782 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5783 | (ullmax / ull) | (ullmax % ull));
5789 if ac_fn_c_try_link
"$LINENO"; then :
5790 if test "$cross_compiling" = yes; then :
5791 ac_cv_type_long_long_int
=yes
5793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5798 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5799 # define LLONG_MAX (HALF - 1 + HALF)
5804 long long int n = 1;
5808 long long int m = n << i;
5811 if (LLONG_MAX / 2 < m)
5819 if ac_fn_c_try_run
"$LINENO"; then :
5820 ac_cv_type_long_long_int
=yes
5822 ac_cv_type_long_long_int
=no
5824 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5825 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5829 ac_cv_type_long_long_int
=no
5831 rm -f core conftest.err conftest.
$ac_objext \
5832 conftest
$ac_exeext conftest.
$ac_ext
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5835 $as_echo "$ac_cv_type_long_long_int" >&6; }
5836 if test $ac_cv_type_long_long_int = yes; then
5838 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5844 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5845 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5847 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5850 test $ac_cv_type_long_long_int = yes \
5851 && ac_type
='long long int' \
5852 || ac_type
='long int'
5854 cat >>confdefs.h
<<_ACEOF
5855 #define intmax_t $ac_type
5862 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5863 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5865 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5868 for ac_type
in 'int' 'long int' 'long long int'; do
5869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 $ac_includes_default
5875 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5882 if ac_fn_c_try_compile
"$LINENO"; then :
5884 cat >>confdefs.h
<<_ACEOF
5885 #define intptr_t $ac_type
5890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5891 test -z "$ac_type" && break
5896 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5897 case $ac_cv_c_uint8_t in #(
5901 $as_echo "#define _UINT8_T 1" >>confdefs.h
5904 cat >>confdefs.h
<<_ACEOF
5905 #define uint8_t $ac_cv_c_uint8_t
5910 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5911 case $ac_cv_c_uint16_t in #(
5916 cat >>confdefs.h
<<_ACEOF
5917 #define uint16_t $ac_cv_c_uint16_t
5922 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5923 case $ac_cv_c_uint32_t in #(
5927 $as_echo "#define _UINT32_T 1" >>confdefs.h
5930 cat >>confdefs.h
<<_ACEOF
5931 #define uint32_t $ac_cv_c_uint32_t
5936 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5937 case $ac_cv_c_uint64_t in #(
5941 $as_echo "#define _UINT64_T 1" >>confdefs.h
5944 cat >>confdefs.h
<<_ACEOF
5945 #define uint64_t $ac_cv_c_uint64_t
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5952 $as_echo_n "checking for unsigned long long int... " >&6; }
5953 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5959 /* For now, do not test the preprocessor; as of 2007 there are too many
5960 implementations with broken preprocessors. Perhaps this can
5961 be revisited in 2012. In the meantime, code should not expect
5962 #if to work with literals wider than 32 bits. */
5963 /* Test literals. */
5964 long long int ll = 9223372036854775807ll;
5965 long long int nll = -9223372036854775807LL;
5966 unsigned long long int ull = 18446744073709551615ULL;
5967 /* Test constant expressions. */
5968 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5970 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5976 /* Test availability of runtime routines for shift and division. */
5977 long long int llmax = 9223372036854775807ll;
5978 unsigned long long int ullmax = 18446744073709551615ull;
5979 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5980 | (llmax / ll) | (llmax % ll)
5981 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5982 | (ullmax / ull) | (ullmax % ull));
5988 if ac_fn_c_try_link
"$LINENO"; then :
5989 ac_cv_type_unsigned_long_long_int
=yes
5991 ac_cv_type_unsigned_long_long_int
=no
5993 rm -f core conftest.err conftest.
$ac_objext \
5994 conftest
$ac_exeext conftest.
$ac_ext
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5998 if test $ac_cv_type_unsigned_long_long_int = yes; then
6000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6006 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6009 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6012 test $ac_cv_type_unsigned_long_long_int = yes \
6013 && ac_type
='unsigned long long int' \
6014 || ac_type
='unsigned long int'
6016 cat >>confdefs.h
<<_ACEOF
6017 #define uintmax_t $ac_type
6024 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6027 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6030 for ac_type
in 'unsigned int' 'unsigned long int' \
6031 'unsigned long long int'; do
6032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 $ac_includes_default
6038 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6045 if ac_fn_c_try_compile
"$LINENO"; then :
6047 cat >>confdefs.h
<<_ACEOF
6048 #define uintptr_t $ac_type
6053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6054 test -z "$ac_type" && break
6072 # ---------------------
6073 # Warnings and checking
6074 # ---------------------
6076 # Check $CC warning features (if it's GCC).
6077 # We want to use -pedantic, but we don't want warnings about
6080 # * overlong strings
6081 # So, we only use -pedantic if we can disable those warnings.
6084 save_CFLAGS
="$CFLAGS"
6085 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6086 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6089 $as_echo_n "checking whether $CC supports $option... " >&6; }
6090 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6091 $as_echo_n "(cached) " >&6
6094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6105 if ac_fn_c_try_compile
"$LINENO"; then :
6106 eval "$as_acx_Woption=yes"
6108 eval "$as_acx_Woption=no"
6110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 eval ac_res
=\$
$as_acx_Woption
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6115 $as_echo "$ac_res" >&6; }
6116 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6117 loose_warn
="$loose_warn${loose_warn:+ }$option"
6120 CFLAGS
="$save_CFLAGS"
6123 save_CFLAGS
="$CFLAGS"
6124 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6125 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6128 $as_echo_n "checking whether $CC supports $option... " >&6; }
6129 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6130 $as_echo_n "(cached) " >&6
6133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6144 if ac_fn_c_try_compile
"$LINENO"; then :
6145 eval "$as_acx_Woption=yes"
6147 eval "$as_acx_Woption=no"
6149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 eval ac_res
=\$
$as_acx_Woption
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6154 $as_echo "$ac_res" >&6; }
6155 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6156 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6159 CFLAGS
="$save_CFLAGS"
6162 save_CFLAGS
="$CFLAGS"
6163 for option
in -Wmissing-format-attribute; do
6164 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6167 $as_echo_n "checking whether $CC supports $option... " >&6; }
6168 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6169 $as_echo_n "(cached) " >&6
6172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6183 if ac_fn_c_try_compile
"$LINENO"; then :
6184 eval "$as_acx_Woption=yes"
6186 eval "$as_acx_Woption=no"
6188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6191 eval ac_res
=\$
$as_acx_Woption
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6193 $as_echo "$ac_res" >&6; }
6194 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6195 strict_warn
="$strict_warn${strict_warn:+ }$option"
6198 CFLAGS
="$save_CFLAGS"
6201 save_CFLAGS
="$CFLAGS"
6202 for option
in -Wold-style-definition -Wc++-compat; do
6203 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208 $as_echo_n "(cached) " >&6
6211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6222 if ac_fn_c_try_compile
"$LINENO"; then :
6223 eval "$as_acx_Woption=yes"
6225 eval "$as_acx_Woption=no"
6227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6230 eval ac_res
=\$
$as_acx_Woption
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6237 CFLAGS
="$save_CFLAGS"
6239 if test "$GCC" = yes; then :
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6241 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6242 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 save_CFLAGS
="$CFLAGS"
6246 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6258 if ac_fn_c_try_compile
"$LINENO"; then :
6259 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6261 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 CFLAGS
="$save_CFLAGS"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6267 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6268 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6269 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6274 # Check whether --enable-werror-always was given.
6275 if test "${enable_werror_always+set}" = set; then :
6276 enableval
=$enable_werror_always;
6278 enable_werror_always
=no
6281 if test $enable_werror_always = yes; then :
6282 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6287 # The above macros do nothing if the compiler is not GCC. However, the
6288 # Makefile has more goo to add other flags, so these variables are used
6289 # to enable warnings only for GCC.
6292 if test "x$GCC" = "xyes"; then
6293 warn_cflags
='$(GCC_WARN_CFLAGS)'
6294 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6299 # Enable expensive internal checks
6301 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6305 # Check whether --enable-checking was given.
6306 if test "${enable_checking+set}" = set; then :
6307 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6310 # Determine the default checks.
6311 if test x
$is_release = x
; then
6312 ac_checking_flags
=yes
6314 ac_checking_flags
=release
6318 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6319 for check
in release
$ac_checking_flags
6322 # these set all the flags to specific states
6323 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6324 ac_fold_checking
= ; ac_gc_checking
=1 ;
6325 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6326 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6327 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6328 ac_types_checking
=1 ;;
6329 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6330 ac_fold_checking
= ; ac_gc_checking
= ;
6331 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6332 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6333 ac_tree_checking
= ; ac_valgrind_checking
= ;
6334 ac_types_checking
= ;;
6335 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6336 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6337 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6338 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6339 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6340 ac_types_checking
=1 ;;
6341 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6342 ac_fold_checking
= ; ac_gc_checking
= ;
6343 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6344 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6345 ac_tree_checking
= ; ac_valgrind_checking
= ;
6346 ac_types_checking
= ;;
6347 # these enable particular checks
6348 assert
) ac_assert_checking
=1 ;;
6349 df
) ac_df_checking
=1 ;;
6350 fold) ac_fold_checking
=1 ;;
6351 gc
) ac_gc_checking
=1 ;;
6352 gcac
) ac_gc_always_collect
=1 ;;
6353 gimple
) ac_gimple_checking
=1 ;;
6354 misc
) ac_checking
=1 ;;
6355 rtl
) ac_rtl_checking
=1 ;;
6356 rtlflag
) ac_rtlflag_checking
=1 ;;
6357 runtime
) ac_runtime_checking
=1 ;;
6358 tree
) ac_tree_checking
=1 ;;
6359 types
) ac_types_checking
=1 ;;
6360 valgrind
) ac_valgrind_checking
=1 ;;
6361 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6367 if test x
$ac_checking != x
; then
6369 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6371 nocommon_flag
=-fno-common
6374 if test x
$ac_df_checking != x
; then
6376 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6379 if test x
$ac_assert_checking != x
; then
6381 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6384 if test x
$ac_gimple_checking != x
; then
6386 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6390 if test x
$ac_runtime_checking != x
; then
6392 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6395 if test x
$ac_tree_checking != x
; then
6397 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6399 TREEBROWSER
=tree-browser.o
6401 if test x
$ac_types_checking != x
; then
6403 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6407 if test x
$ac_rtl_checking != x
; then
6409 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6412 if test x
$ac_rtlflag_checking != x
; then
6414 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6417 if test x
$ac_gc_checking != x
; then
6419 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6422 if test x
$ac_gc_always_collect != x
; then
6424 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6427 if test x
$ac_fold_checking != x
; then
6429 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6432 valgrind_path_defines
=
6435 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6444 if test x
$ac_valgrind_checking != x
; then
6445 # It is certainly possible that there's valgrind but no valgrind.h.
6446 # GCC relies on making annotations so we must have both.
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6448 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <valgrind/memcheck.h>
6452 #ifndef VALGRIND_DISCARD
6453 #error VALGRIND_DISCARD not defined
6456 if ac_fn_c_try_cpp
"$LINENO"; then :
6457 gcc_cv_header_valgrind_memcheck_h
=yes
6459 gcc_cv_header_valgrind_memcheck_h
=no
6461 rm -f conftest.err conftest.
$ac_ext
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6463 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6465 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <memcheck.h>
6469 #ifndef VALGRIND_DISCARD
6470 #error VALGRIND_DISCARD not defined
6473 if ac_fn_c_try_cpp
"$LINENO"; then :
6474 gcc_cv_header_memcheck_h
=yes
6476 gcc_cv_header_memcheck_h
=no
6478 rm -f conftest.err conftest.
$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6480 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6482 # Prepare PATH_SEPARATOR.
6483 # The user is always right.
6484 if test "${PATH_SEPARATOR+set}" != set; then
6485 echo "#! /bin/sh" >conf$$.sh
6486 echo "exit 0" >>conf$$.sh
6488 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6496 # Find out how to test for executable files. Don't use a zero-byte file,
6497 # as systems may use methods other than mode bits to determine executability.
6498 cat >conf$$.
file <<_ASEOF
6502 chmod +x conf$$.
file
6503 if test -x conf$$.
file >/dev
/null
2>&1; then
6504 ac_executable_p
="test -x"
6506 ac_executable_p
="test -f"
6510 # Extract the first word of "valgrind", so it can be a program name with args.
6511 set dummy valgrind
; ac_word
=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6517 case "$valgrind_path" in
6519 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6522 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6523 for ac_dir
in $PATH; do
6525 test -z "$ac_dir" && ac_dir
=.
6526 for ac_exec_ext
in '' $ac_executable_extensions; do
6527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6528 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6529 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6539 valgrind_path
="$ac_cv_path_valgrind_path"
6540 if test -n "$valgrind_path"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6542 $as_echo "$valgrind_path" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$valgrind_path" = "x" \
6549 ||
(test $have_valgrind_h = no \
6550 && test $gcc_cv_header_memcheck_h = no \
6551 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6552 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6554 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6555 valgrind_command
="$valgrind_path -q"
6557 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6559 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6561 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6564 if test $gcc_cv_header_memcheck_h = yes; then
6566 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6573 # Enable code coverage collection
6574 # Check whether --enable-coverage was given.
6575 if test "${enable_coverage+set}" = set; then :
6576 enableval
=$enable_coverage; case "${enableval}" in
6578 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6581 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6584 # a.k.a. --disable-coverage
6588 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6597 # Check whether --enable-gather-detailed-mem-stats was given.
6598 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6599 enableval
=$enable_gather_detailed_mem_stats;
6601 enable_gather_detailed_mem_stats
=no
6604 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6606 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6610 # -------------------------------
6611 # Miscenalleous configure options
6612 # -------------------------------
6614 # See if we are building gcc with C++.
6615 # Check whether --enable-build-with-cxx was given.
6616 if test "${enable_build_with_cxx+set}" = set; then :
6617 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6619 ENABLE_BUILD_WITH_CXX
=no
6626 # Check whether --with-stabs was given.
6627 if test "${with_stabs+set}" = set; then :
6628 withval
=$with_stabs; stabs
="$with_stabs"
6634 # Determine whether or not multilibs are enabled.
6635 # Check whether --enable-multilib was given.
6636 if test "${enable_multilib+set}" = set; then :
6637 enableval
=$enable_multilib;
6644 # Enable __cxa_atexit for C++.
6645 # Check whether --enable-__cxa_atexit was given.
6646 if test "${enable___cxa_atexit+set}" = set; then :
6647 enableval
=$enable___cxa_atexit;
6651 # Enable C extension for decimal float if target supports it.
6653 # Check whether --enable-decimal-float was given.
6654 if test "${enable_decimal_float+set}" = set; then :
6655 enableval
=$enable_decimal_float;
6656 case $enable_decimal_float in
6657 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6658 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6659 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6665 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6666 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6668 enable_decimal_float
=yes
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6672 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6673 enable_decimal_float
=no
6680 # x86's use BID format instead of DPD
6681 case x
$enable_decimal_float in
6684 i?
86*-*-* | x86_64
*-*-*)
6685 enable_decimal_float
=bid
6688 enable_decimal_float
=dpd
6691 default_decimal_float
=$enable_decimal_float
6694 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6695 # dependency on libdecnumber.
6696 default_decimal_float
=dpd
6703 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6705 cat >>confdefs.h
<<_ACEOF
6706 #define ENABLE_DECIMAL_FLOAT $dfp
6710 # Use default_decimal_float for dependency.
6711 enable_decimal_float
=$default_decimal_float
6713 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6715 cat >>confdefs.h
<<_ACEOF
6716 #define ENABLE_DECIMAL_BID_FORMAT $bid
6720 # Enable C extension for fixed-point arithmetic.
6721 # Check whether --enable-fixed-point was given.
6722 if test "${enable_fixed_point+set}" = set; then :
6723 enableval
=$enable_fixed_point;
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6732 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6733 enable_fixed_point
=no
6736 enable_fixed_point
=yes
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6742 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6743 enable_fixed_point
=no
6751 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6753 cat >>confdefs.h
<<_ACEOF
6754 #define ENABLE_FIXED_POINT $fixedpoint
6759 # Pass with no value to take the default
6760 # Pass with a value to specify a thread package
6761 # Check whether --enable-threads was given.
6762 if test "${enable_threads+set}" = set; then :
6763 enableval
=$enable_threads;
6769 # Check whether --enable-tls was given.
6770 if test "${enable_tls+set}" = set; then :
6771 enableval
=$enable_tls;
6774 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6775 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6783 # Check whether --enable-objc-gc was given.
6784 if test "${enable_objc_gc+set}" = set; then :
6785 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6796 # Check whether --with-dwarf2 was given.
6797 if test "${with_dwarf2+set}" = set; then :
6798 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6804 # Check whether --enable-shared was given.
6805 if test "${enable_shared+set}" = set; then :
6806 enableval
=$enable_shared;
6807 case $enable_shared in
6811 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6812 for pkg
in $enableval; do
6813 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6828 # Check whether --with-build-sysroot was given.
6829 if test "${with_build_sysroot+set}" = set; then :
6830 withval
=$with_build_sysroot;
6835 # Check whether --with-sysroot was given.
6836 if test "${with_sysroot+set}" = set; then :
6837 withval
=$with_sysroot;
6838 case ${with_sysroot} in
6839 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6840 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6843 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6844 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6846 if test "x$prefix" = xNONE
; then
6847 test_prefix
=/usr
/local
6851 if test "x$exec_prefix" = xNONE
; then
6852 test_exec_prefix
=$test_prefix
6854 test_exec_prefix
=$exec_prefix
6856 case ${TARGET_SYSTEM_ROOT} in
6857 "${test_prefix}"|
"${test_prefix}/"*|\
6858 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6859 '${prefix}'|
'${prefix}/'*|\
6860 '${exec_prefix}'|
'${exec_prefix}/'*)
6861 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6862 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6869 TARGET_SYSTEM_ROOT_DEFINE
=
6870 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6879 # Check whether --with-specs was given.
6880 if test "${with_specs+set}" = set; then :
6881 withval
=$with_specs; CONFIGURE_SPECS
=$withval
6889 # Build with intermodule optimisations
6890 # Check whether --enable-intermodule was given.
6891 if test "${enable_intermodule+set}" = set; then :
6892 enableval
=$enable_intermodule; case ${enable_intermodule} in
6893 yes) onestep
="-onestep";;
6904 # Check whether --with-pkgversion was given.
6905 if test "${with_pkgversion+set}" = set; then :
6906 withval
=$with_pkgversion; case "$withval" in
6907 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6909 *) PKGVERSION
="($withval) " ;;
6920 # Check whether --with-bugurl was given.
6921 if test "${with_bugurl+set}" = set; then :
6922 withval
=$with_bugurl; case "$withval" in
6923 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6926 *) BUGURL
="$withval"
6930 BUGURL
="http://gcc.gnu.org/bugs.html"
6940 REPORT_BUGS_TO
="<$BUGURL>"
6941 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6948 # Sanity check enable_languages in case someone does not run the toplevel
6949 # configure # script.
6950 # Check whether --enable-languages was given.
6951 if test "${enable_languages+set}" = set; then :
6952 enableval
=$enable_languages; case ,${enable_languages}, in
6954 # go safe -- we cannot be much sure without the toplevel
6956 # analysis of which target libs are present and usable
6960 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6965 enable_languages
=c
,${enable_languages}
6974 # Check whether --with-multilib-list was given.
6975 if test "${with_multilib_list+set}" = set; then :
6976 withval
=$with_multilib_list; :
6978 with_multilib_list
=default
6982 # -------------------------
6983 # Checks for other programs
6984 # -------------------------
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6989 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6990 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6991 $as_echo_n "(cached) " >&6
6993 cat >conftest.
make <<\_ACEOF
6996 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7001 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7003 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7007 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7009 $as_echo "yes" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 SET_MAKE
="MAKE=${MAKE-make}"
7018 # Find some useful tools
7019 for ac_prog
in gawk mawk nawk
awk
7021 # Extract the first word of "$ac_prog", so it can be a program name with args.
7022 set dummy
$ac_prog; ac_word
=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if test "${ac_cv_prog_AWK+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7028 if test -n "$AWK"; then
7029 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir
=.
7036 for ac_exec_ext
in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_AWK
="$ac_prog"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 if test -n "$AWK"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7051 $as_echo "$AWK" >&6; }
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7058 test -n "$AWK" && break
7061 # We need awk to create options.c and options.h.
7062 # Bail out if it's missing.
7064 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7068 $as_echo_n "checking whether ln -s works... " >&6; }
7069 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7070 $as_echo_n "(cached) " >&6
7072 rm -f conftestdata_t
7073 echo >conftestdata_f
7074 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7076 gcc_cv_prog_LN_S
="ln -s"
7078 if ln conftestdata_f conftestdata_t
2>/dev
/null
7082 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7084 gcc_cv_prog_LN_S
="cp -p"
7090 rm -f conftestdata_f conftestdata_t
7093 LN_S
="$gcc_cv_prog_LN_S"
7094 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 $as_echo "yes" >&6; }
7098 if test "$gcc_cv_prog_LN_S" = "ln"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7100 $as_echo "no, using ln" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7103 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7108 $as_echo_n "checking whether ln works... " >&6; }
7109 if test "${acx_cv_prog_LN+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7112 rm -f conftestdata_t
7113 echo >conftestdata_f
7114 if ln conftestdata_f conftestdata_t
2>/dev
/null
7120 rm -f conftestdata_f conftestdata_t
7123 if test $acx_cv_prog_LN = no
; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7126 $as_echo "no, using $LN" >&6; }
7128 LN
="$acx_cv_prog_LN"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7130 $as_echo "yes" >&6; }
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7135 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7141 if test -n "$RANLIB"; then
7142 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir
=.
7149 for ac_exec_ext
in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 RANLIB
=$ac_cv_prog_RANLIB
7162 if test -n "$RANLIB"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7164 $as_echo "$RANLIB" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7172 if test -z "$ac_cv_prog_RANLIB"; then
7173 ac_ct_RANLIB
=$RANLIB
7174 # Extract the first word of "ranlib", so it can be a program name with args.
7175 set dummy ranlib
; ac_word
=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7181 if test -n "$ac_ct_RANLIB"; then
7182 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir
=.
7189 for ac_exec_ext
in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7202 if test -n "$ac_ct_RANLIB"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7204 $as_echo "$ac_ct_RANLIB" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7210 if test "x$ac_ct_RANLIB" = x
; then
7213 case $cross_compiling:$ac_tool_warned in
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned
=yes ;;
7219 RANLIB
=$ac_ct_RANLIB
7222 RANLIB
="$ac_cv_prog_RANLIB"
7227 # By default, the Darwin ranlib will not treat common symbols as
7228 # definitions when building the archive table of contents. Other
7229 # ranlibs do that; pass an option to the Darwin ranlib that makes
7230 # it behave similarly.
7238 # Find a good install program. We prefer a C program (faster),
7239 # so one script is as good as another. But avoid the broken or
7240 # incompatible versions:
7241 # SysV /etc/install, /usr/sbin/install
7242 # SunOS /usr/etc/install
7243 # IRIX /sbin/install
7245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7247 # ./install, which can be erroneously created by make from ./install.sh.
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7249 $as_echo_n "checking for a BSD compatible install... " >&6; }
7250 if test -z "$INSTALL"; then
7251 if test "${ac_cv_path_install+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7254 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7255 for ac_dir
in $PATH; do
7256 # Account for people who put trailing slashes in PATH elements.
7258 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7260 # OSF1 and SCO ODT 3.0 have their own names for install.
7261 for ac_prog
in ginstall scoinst
install; do
7262 if test -f $ac_dir/$ac_prog; then
7263 if test $ac_prog = install &&
7264 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7265 # AIX install. It has an incompatible calling convention.
7266 # OSF/1 installbsd also uses dspmsg, but is usable.
7269 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7280 if test "${ac_cv_path_install+set}" = set; then
7281 INSTALL
="$ac_cv_path_install"
7283 # As a last resort, use the slow shell script. We don't cache a
7284 # path for INSTALL within a source directory, because that will
7285 # break other packages using the cache if that directory is
7286 # removed, or if the path is relative.
7287 INSTALL
="$ac_install_sh"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7291 $as_echo "$INSTALL" >&6; }
7293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7294 # It thinks the first close brace ends the variable substitution.
7295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7297 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7300 # See if cmp has --ignore-initial.
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7302 $as_echo_n "checking for cmp's capabilities... " >&6; }
7303 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7308 gcc_cv_prog_cmp_skip
=slowcompare
7309 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7310 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7313 gcc_cv_prog_cmp_skip
=gnucompare
7316 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7317 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7318 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7321 gcc_cv_prog_cmp_skip
=fastcompare
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7329 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7330 make_compare_target
=$gcc_cv_prog_cmp_skip
7334 # See if we have the mktemp command.
7335 # Extract the first word of "mktemp", so it can be a program name with args.
7336 set dummy mktemp
; ac_word
=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7342 if test -n "$have_mktemp_command"; then
7343 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir
=.
7350 for ac_exec_ext
in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_have_mktemp_command
="yes"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7363 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7364 if test -n "$have_mktemp_command"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7366 $as_echo "$have_mktemp_command" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7374 # See if makeinfo has been installed and is modern enough
7375 # that we can use it.
7377 # Extract the first word of "makeinfo", so it can be a program name with args.
7378 set dummy makeinfo
; ac_word
=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7382 $as_echo_n "(cached) " >&6
7384 if test -n "$MAKEINFO"; then
7385 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir
=.
7392 for ac_exec_ext
in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_MAKEINFO
="makeinfo"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 MAKEINFO
=$ac_cv_prog_MAKEINFO
7405 if test -n "$MAKEINFO"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7407 $as_echo "$MAKEINFO" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7414 if test -n "$MAKEINFO"; then
7415 # Found it, now check the version.
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7417 $as_echo_n "checking for modern makeinfo... " >&6; }
7418 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7421 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7422 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7424 case $ac_prog_version in
7425 '') gcc_cv_prog_makeinfo_modern
=no
;;
7426 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7427 *) gcc_cv_prog_makeinfo_modern
=no
;;
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7432 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7434 gcc_cv_prog_makeinfo_modern
=no
7436 if test $gcc_cv_prog_makeinfo_modern = no
; then
7437 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7440 if test $gcc_cv_prog_makeinfo_modern = no
; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7442 *** Makeinfo is missing or too old.
7443 *** Info documentation will not be built." >&5
7444 $as_echo "$as_me: WARNING:
7445 *** Makeinfo is missing or too old.
7446 *** Info documentation will not be built." >&2;}
7453 # Is pod2man recent enough to regenerate manpages?
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7455 $as_echo_n "checking for recent Pod::Man... " >&6; }
7456 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7458 $as_echo "yes" >&6; }
7459 GENERATED_MANPAGES
=generated-manpages
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7467 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7472 # Extract the first word of "$ac_prog", so it can be a program name with args.
7473 set dummy
$ac_prog; ac_word
=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if test "${ac_cv_prog_FLEX+set}" = set; then :
7477 $as_echo_n "(cached) " >&6
7479 if test -n "$FLEX"; then
7480 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir
=.
7487 for ac_exec_ext
in '' $ac_executable_extensions; do
7488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489 ac_cv_prog_FLEX
="$ac_prog"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 FLEX
=$ac_cv_prog_FLEX
7500 if test -n "$FLEX"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7502 $as_echo "$FLEX" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7509 test -n "$FLEX" && break
7511 test -n "$FLEX" || FLEX
="$MISSING flex"
7515 for ac_prog
in bison
7517 # Extract the first word of "$ac_prog", so it can be a program name with args.
7518 set dummy
$ac_prog; ac_word
=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_prog_BISON+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 if test -n "$BISON"; then
7525 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir
=.
7532 for ac_exec_ext
in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_prog_BISON
="$ac_prog"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 BISON
=$ac_cv_prog_BISON
7545 if test -n "$BISON"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7547 $as_echo "$BISON" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7554 test -n "$BISON" && break
7556 test -n "$BISON" || BISON
="$MISSING bison"
7559 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7560 # check for build == host before using them.
7563 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7564 && test -d ..
/binutils
; then
7565 NM
='${objdir}/../binutils/nm-new'
7567 # Extract the first word of "nm", so it can be a program name with args.
7568 set dummy nm
; ac_word
=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if test "${ac_cv_prog_NM+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7574 if test -n "$NM"; then
7575 ac_cv_prog_NM
="$NM" # Let the user override the test.
7577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir
=.
7582 for ac_exec_ext
in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7596 if test -n "$NM"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7598 $as_echo "$NM" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7608 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7609 && test -d ..
/binutils
; then
7610 AR
='${objdir}/../binutils/ar'
7612 # Extract the first word of "ar", so it can be a program name with args.
7613 set dummy
ar; ac_word
=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_AR+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$AR"; then
7620 ac_cv_prog_AR
="$AR" # Let the user override the test.
7622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir
=.
7627 for ac_exec_ext
in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7641 if test -n "$AR"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7643 $as_echo "$AR" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7653 # --------------------
7654 # Checks for C headers
7655 # --------------------
7657 # Need to reject headers which give warnings, so that the -Werror bootstrap
7658 # works later. *sigh* This needs to come before all header checks.
7660 ac_c_preproc_warn_flag
=yes
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7663 $as_echo_n "checking for ANSI C header files... " >&6; }
7664 if test "${ac_cv_header_stdc+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7682 if ac_fn_c_try_compile
"$LINENO"; then :
7683 ac_cv_header_stdc
=yes
7685 ac_cv_header_stdc
=no
7687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7689 if test $ac_cv_header_stdc = yes; then
7690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "memchr" >/dev
/null
2>&1; then :
7700 ac_cv_header_stdc
=no
7706 if test $ac_cv_header_stdc = yes; then
7707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7714 $EGREP "free" >/dev
/null
2>&1; then :
7717 ac_cv_header_stdc
=no
7723 if test $ac_cv_header_stdc = yes; then
7724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7725 if test "$cross_compiling" = yes; then :
7728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7732 #if ((' ' & 0x0FF) == 0x020)
7733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7736 # define ISLOWER(c) \
7737 (('a' <= (c) && (c) <= 'i') \
7738 || ('j' <= (c) && (c) <= 'r') \
7739 || ('s' <= (c) && (c) <= 'z'))
7740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7748 for (i = 0; i < 256; i++)
7749 if (XOR (islower (i), ISLOWER (i))
7750 || toupper (i) != TOUPPER (i))
7755 if ac_fn_c_try_run
"$LINENO"; then :
7758 ac_cv_header_stdc
=no
7760 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7761 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7767 $as_echo "$ac_cv_header_stdc" >&6; }
7768 if test $ac_cv_header_stdc = yes; then
7770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7775 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7776 if test "${ac_cv_header_time+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 #include <sys/types.h>
7782 #include <sys/time.h>
7788 if ((struct tm *) 0)
7794 if ac_fn_c_try_compile
"$LINENO"; then :
7795 ac_cv_header_time
=yes
7797 ac_cv_header_time
=no
7799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7802 $as_echo "$ac_cv_header_time" >&6; }
7803 if test $ac_cv_header_time = yes; then
7805 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7810 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7811 if test "${gcc_cv_header_string+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7817 #include <strings.h>
7826 if ac_fn_c_try_compile
"$LINENO"; then :
7827 gcc_cv_header_string
=yes
7829 gcc_cv_header_string
=no
7831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7834 $as_echo "$gcc_cv_header_string" >&6; }
7835 if test $gcc_cv_header_string = yes; then
7837 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7842 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7843 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #include <sys/types.h>
7849 #include <sys/wait.h>
7851 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7854 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7862 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7867 if ac_fn_c_try_compile
"$LINENO"; then :
7868 ac_cv_header_sys_wait_h
=yes
7870 ac_cv_header_sys_wait_h
=no
7872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7875 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7876 if test $ac_cv_header_sys_wait_h = yes; then
7878 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7882 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7883 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7884 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7885 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7887 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7888 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7889 eval as_val
=\$
$as_ac_Header
7890 if test "x$as_val" = x
""yes; then :
7891 cat >>confdefs.h
<<_ACEOF
7892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7899 # Check for thread headers.
7900 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7901 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7907 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7908 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7915 # These tests can't be done till we know if we have limits.h.
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7917 $as_echo_n "checking for CHAR_BIT... " >&6; }
7918 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #ifdef HAVE_LIMITS_H
7930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7931 $EGREP "found" >/dev
/null
2>&1; then :
7932 gcc_cv_decl_char_bit
=yes
7934 gcc_cv_decl_char_bit
=no
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7941 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7942 if test $gcc_cv_decl_char_bit = no
; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7944 $as_echo_n "checking number of bits in a byte... " >&6; }
7945 if test "${gcc_cv_c_nbby+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7950 while test $i -lt 65; do
7951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7958 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7959 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7965 if ac_fn_c_try_compile
"$LINENO"; then :
7966 gcc_cv_c_nbby
=$i; break
7968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7971 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7975 $as_echo "$gcc_cv_c_nbby" >&6; }
7976 if test $gcc_cv_c_nbby = failed
; then
7977 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7980 cat >>confdefs.h
<<_ACEOF
7981 #define CHAR_BIT $gcc_cv_c_nbby
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7987 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7988 if test "${ac_cv_c_bigendian+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7991 ac_cv_c_bigendian
=unknown
7992 # See if we're dealing with a universal compiler.
7993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 #ifndef __APPLE_CC__
7996 not a universal capable compiler
8001 if ac_fn_c_try_compile
"$LINENO"; then :
8003 # Check for potential -arch flags. It is not universal unless
8004 # there are at least two -arch flags with different values.
8007 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8008 if test -n "$ac_prev"; then
8010 i?
86 | x86_64 | ppc | ppc64
)
8011 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8014 ac_cv_c_bigendian
=universal
8020 elif test "x$ac_word" = "x-arch"; then
8025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8026 if test $ac_cv_c_bigendian = unknown
; then
8027 # See if sys/param.h defines the BYTE_ORDER macro.
8028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <sys/types.h>
8031 #include <sys/param.h>
8036 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8037 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8046 if ac_fn_c_try_compile
"$LINENO"; then :
8047 # It does; now see whether it defined to BIG_ENDIAN or not.
8048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #include <sys/types.h>
8051 #include <sys/param.h>
8056 #if BYTE_ORDER != BIG_ENDIAN
8064 if ac_fn_c_try_compile
"$LINENO"; then :
8065 ac_cv_c_bigendian
=yes
8067 ac_cv_c_bigendian
=no
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8073 if test $ac_cv_c_bigendian = unknown
; then
8074 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8082 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8090 if ac_fn_c_try_compile
"$LINENO"; then :
8091 # It does; now see whether it defined to _BIG_ENDIAN or not.
8092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8107 if ac_fn_c_try_compile
"$LINENO"; then :
8108 ac_cv_c_bigendian
=yes
8110 ac_cv_c_bigendian
=no
8112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8116 if test $ac_cv_c_bigendian = unknown
; then
8117 # Compile a test program.
8118 if test "$cross_compiling" = yes; then :
8119 # Try to guess by grepping values from an object file.
8120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122 short int ascii_mm[] =
8123 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8124 short int ascii_ii[] =
8125 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8126 int use_ascii (int i) {
8127 return ascii_mm[i] + ascii_ii[i];
8129 short int ebcdic_ii[] =
8130 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8131 short int ebcdic_mm[] =
8132 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8133 int use_ebcdic (int i) {
8134 return ebcdic_mm[i] + ebcdic_ii[i];
8141 return use_ascii (foo) == use_ebcdic (foo);
8146 if ac_fn_c_try_compile
"$LINENO"; then :
8147 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8148 ac_cv_c_bigendian
=yes
8150 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8151 if test "$ac_cv_c_bigendian" = unknown
; then
8152 ac_cv_c_bigendian
=no
8154 # finding both strings is unlikely to happen, but who knows?
8155 ac_cv_c_bigendian
=unknown
8159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 $ac_includes_default
8168 /* Are we little or big endian? From Harbison&Steele. */
8172 char c[sizeof (long int)];
8175 return u.c[sizeof (long int) - 1] == 1;
8181 if ac_fn_c_try_run
"$LINENO"; then :
8182 ac_cv_c_bigendian
=no
8184 ac_cv_c_bigendian
=yes
8186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8193 $as_echo "$ac_cv_c_bigendian" >&6; }
8194 case $ac_cv_c_bigendian in #(
8196 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8202 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8206 as_fn_error
"unknown endianness
8207 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8216 # These libraries may be used by collect2.
8217 # We may need a special search path to get them linked.
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8219 $as_echo_n "checking for collect2 libraries... " >&6; }
8220 if test "${gcc_cv_collect2_libs+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8224 for libs
in '' -lld -lmld \
8225 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8226 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8232 /* Override any GCC internal prototype to avoid an error.
8233 Use char because int might match the return type of a GCC
8234 builtin and then its argument prototype would still apply. */
8247 if ac_fn_c_try_link
"$LINENO"; then :
8248 gcc_cv_collect2_libs
="$libs"; break
8250 rm -f core conftest.err conftest.
$ac_objext \
8251 conftest
$ac_exeext conftest.
$ac_ext
8254 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8257 $as_echo "$gcc_cv_collect2_libs" >&6; }
8258 case $gcc_cv_collect2_libs in
8260 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8264 # When building Ada code on Alpha, we need exc_resume which is usually in
8265 # -lexc. So test for it.
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8269 $as_echo_n "checking for library containing exc_resume... " >&6; }
8270 if test "${ac_cv_search_exc_resume+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8273 ac_func_search_save_LIBS
=$LIBS
8274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8277 /* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
8287 return exc_resume ();
8292 for ac_lib
in '' exc
; do
8293 if test -z "$ac_lib"; then
8294 ac_res
="none required"
8297 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8299 if ac_fn_c_try_link
"$LINENO"; then :
8300 ac_cv_search_exc_resume
=$ac_res
8302 rm -f core conftest.err conftest.
$ac_objext \
8304 if test "${ac_cv_search_exc_resume+set}" = set; then :
8308 if test "${ac_cv_search_exc_resume+set}" = set; then :
8311 ac_cv_search_exc_resume
=no
8314 LIBS
=$ac_func_search_save_LIBS
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8317 $as_echo "$ac_cv_search_exc_resume" >&6; }
8318 ac_res
=$ac_cv_search_exc_resume
8319 if test "$ac_res" != no
; then :
8320 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8328 # Some systems put ldexp and frexp in libm instead of libc; assume
8329 # they're both in the same place. jcf-dump needs them.
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8333 $as_echo_n "checking for library containing ldexp... " >&6; }
8334 if test "${ac_cv_search_ldexp+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8337 ac_func_search_save_LIBS
=$LIBS
8338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8341 /* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
8356 for ac_lib
in '' m
; do
8357 if test -z "$ac_lib"; then
8358 ac_res
="none required"
8361 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8363 if ac_fn_c_try_link
"$LINENO"; then :
8364 ac_cv_search_ldexp
=$ac_res
8366 rm -f core conftest.err conftest.
$ac_objext \
8368 if test "${ac_cv_search_ldexp+set}" = set; then :
8372 if test "${ac_cv_search_ldexp+set}" = set; then :
8375 ac_cv_search_ldexp
=no
8378 LIBS
=$ac_func_search_save_LIBS
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8381 $as_echo "$ac_cv_search_ldexp" >&6; }
8382 ac_res
=$ac_cv_search_ldexp
8383 if test "$ac_res" != no
; then :
8384 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8392 # Use <inttypes.h> only if it exists,
8393 # doesn't clash with <sys/types.h>, and declares intmax_t.
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8395 $as_echo_n "checking for inttypes.h... " >&6; }
8396 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 #include <sys/types.h>
8402 #include <inttypes.h>
8411 if ac_fn_c_try_compile
"$LINENO"; then :
8412 gcc_cv_header_inttypes_h
=yes
8414 gcc_cv_header_inttypes_h
=no
8416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8420 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8421 if test $gcc_cv_header_inttypes_h = yes; then
8423 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8429 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8430 sysconf strsignal getrusage nl_langinfo \
8431 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8432 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
8434 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8435 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8436 eval as_val
=\$
$as_ac_var
8437 if test "x$as_val" = x
""yes; then :
8438 cat >>confdefs.h
<<_ACEOF
8439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446 save_CPPFLAGS
="$CPPFLAGS"
8448 LIBS
="$LIBS $LIBELFLIBS"
8449 for ac_func
in elf_getshdrstrndx
8451 ac_fn_c_check_func
"$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8452 if test "x$ac_cv_func_elf_getshdrstrndx" = x
""yes; then :
8453 cat >>confdefs.h
<<_ACEOF
8454 #define HAVE_ELF_GETSHDRSTRNDX 1
8458 for ac_func
in elf_getshstrndx
8460 ac_fn_c_check_func
"$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8461 if test "x$ac_cv_func_elf_getshstrndx" = x
""yes; then :
8462 cat >>confdefs.h
<<_ACEOF
8463 #define HAVE_ELF_GETSHSTRNDX 1
8465 if test "$cross_compiling" = yes; then :
8466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8468 as_fn_error
"cannot run test program while cross compiling
8469 See \`config.log' for more details." "$LINENO" 5; }
8471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8477 return elf_getshstrndx (NULL, 0) == 0;
8480 if ac_fn_c_try_run
"$LINENO"; then :
8482 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8485 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8486 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8497 CPPFLAGS
="$save_CPPFLAGS"
8499 if test x
$ac_cv_func_mbstowcs = xyes
; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8501 $as_echo_n "checking whether mbstowcs works... " >&6; }
8502 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8505 if test "$cross_compiling" = yes; then :
8506 gcc_cv_func_mbstowcs_works
=yes
8508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8517 if ac_fn_c_try_run
"$LINENO"; then :
8518 gcc_cv_func_mbstowcs_works
=yes
8520 gcc_cv_func_mbstowcs_works
=no
8522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8528 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8529 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8531 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8536 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8537 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8541 cat >>confdefs.h
<<_ACEOF
8547 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8548 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8552 cat >>confdefs.h
<<_ACEOF
8553 #define caddr_t char *
8560 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8561 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8562 gcc_header_sys_mman_h
=yes
8564 gcc_header_sys_mman_h
=no
8567 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8568 if test "x$ac_cv_func_mmap" = x
""yes; then :
8574 if test "$gcc_header_sys_mman_h" != yes \
8575 ||
test "$gcc_func_mmap" != yes; then
8576 gcc_cv_func_mmap_file
=no
8577 gcc_cv_func_mmap_dev_zero
=no
8578 gcc_cv_func_mmap_anon
=no
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8581 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8582 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8585 # Add a system to this blacklist if
8586 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8587 # memory area containing the same data that you'd get if you applied
8588 # read() to the same fd. The only system known to have a problem here
8589 # is VMS, where text files have record structure.
8592 gcc_cv_func_mmap_file
=no
;;
8594 gcc_cv_func_mmap_file
=yes;;
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8598 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8600 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8601 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8604 # Add a system to this blacklist if it has mmap() but /dev/zero
8605 # does not exist, or if mmapping /dev/zero does not give anonymous
8606 # zeroed pages with both the following properties:
8607 # 1. If you map N consecutive pages in with one call, and then
8608 # unmap any subset of those pages, the pages that were not
8609 # explicitly unmapped remain accessible.
8610 # 2. If you map two adjacent blocks of memory and then unmap them
8611 # both at once, they must both go away.
8612 # Systems known to be in this category are Windows (all variants),
8615 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8616 gcc_cv_func_mmap_dev_zero
=no
;;
8618 gcc_cv_func_mmap_dev_zero
=yes;;
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8622 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8624 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8626 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8627 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8633 #include <sys/mman.h>
8636 #ifndef MAP_ANONYMOUS
8637 #define MAP_ANONYMOUS MAP_ANON
8643 int n = MAP_ANONYMOUS;
8648 if ac_fn_c_try_compile
"$LINENO"; then :
8649 gcc_cv_decl_map_anon
=yes
8651 gcc_cv_decl_map_anon
=no
8653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8656 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8658 if test $gcc_cv_decl_map_anon = no
; then
8659 gcc_cv_func_mmap_anon
=no
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8662 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8663 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8666 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8667 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8668 # doesn't give anonymous zeroed pages with the same properties listed
8669 # above for use of /dev/zero.
8670 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8672 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8673 gcc_cv_func_mmap_anon
=no
;;
8675 gcc_cv_func_mmap_anon
=yes;;
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8679 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8683 if test $gcc_cv_func_mmap_file = yes; then
8685 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8688 if test $gcc_cv_func_mmap_dev_zero = yes; then
8690 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8693 if test $gcc_cv_func_mmap_anon = yes; then
8695 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8702 # Under VMS, vfork works very differently than on Unix. The standard test
8703 # won't work, and it isn't easily adaptable. It makes more sense to
8705 ac_cv_func_vfork_works
=yes
8708 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8709 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8713 cat >>confdefs.h
<<_ACEOF
8719 for ac_header
in vfork.h
8721 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8722 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8723 cat >>confdefs.h
<<_ACEOF
8724 #define HAVE_VFORK_H 1
8730 for ac_func
in fork vfork
8732 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8733 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8734 eval as_val
=\$
$as_ac_var
8735 if test "x$as_val" = x
""yes; then :
8736 cat >>confdefs.h
<<_ACEOF
8737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8743 if test "x$ac_cv_func_fork" = xyes
; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8745 $as_echo_n "checking for working fork... " >&6; }
8746 if test "${ac_cv_func_fork_works+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8749 if test "$cross_compiling" = yes; then :
8750 ac_cv_func_fork_works
=cross
8752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 $ac_includes_default
8759 /* By Ruediger Kuhlmann. */
8766 if ac_fn_c_try_run
"$LINENO"; then :
8767 ac_cv_func_fork_works
=yes
8769 ac_cv_func_fork_works
=no
8771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8777 $as_echo "$ac_cv_func_fork_works" >&6; }
8780 ac_cv_func_fork_works
=$ac_cv_func_fork
8782 if test "x$ac_cv_func_fork_works" = xcross
; then
8784 *-*-amigaos* |
*-*-msdosdjgpp*)
8785 # Override, as these systems have only a dummy fork() stub
8786 ac_cv_func_fork_works
=no
8789 ac_cv_func_fork_works
=yes
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8793 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8795 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8796 if test "x$ac_cv_func_vfork" = xyes
; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8798 $as_echo_n "checking for working vfork... " >&6; }
8799 if test "${ac_cv_func_vfork_works+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8802 if test "$cross_compiling" = yes; then :
8803 ac_cv_func_vfork_works
=cross
8805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 /* Thanks to Paul Eggert for this test. */
8808 $ac_includes_default
8809 #include <sys/wait.h>
8813 /* On some sparc systems, changes by the child to local and incoming
8814 argument registers are propagated back to the parent. The compiler
8815 is told about this with #include <vfork.h>, but some compilers
8816 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8817 static variable whose address is put into a register that is
8818 clobbered by the vfork. */
8821 sparc_address_test (int arg)
8823 sparc_address_test (arg) int arg;
8844 pid_t parent = getpid ();
8847 sparc_address_test (0);
8852 /* Here is another test for sparc vfork register problems. This
8853 test uses lots of local variables, at least as many local
8854 variables as main has allocated so far including compiler
8855 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8856 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8857 reuse the register of parent for one of the local variables,
8858 since it will think that parent can't possibly be used any more
8859 in this routine. Assigning to the local variable will thus
8860 munge parent in the parent process. */
8862 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8863 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8864 /* Convince the compiler that p..p7 are live; otherwise, it might
8865 use the same hardware register for all 8 local variables. */
8866 if (p != p1 || p != p2 || p != p3 || p != p4
8867 || p != p5 || p != p6 || p != p7)
8870 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8871 from child file descriptors. If the child closes a descriptor
8872 before it execs or exits, this munges the parent's descriptor
8873 as well. Test for this by closing stdout in the child. */
8874 _exit(close(fileno(stdout)) != 0);
8879 while (wait(&status) != child)
8882 /* Was there some problem with vforking? */
8885 /* Did the child fail? (This shouldn't happen.) */
8888 /* Did the vfork/compiler bug occur? */
8889 || parent != getpid()
8891 /* Did the file descriptor bug occur? */
8892 || fstat(fileno(stdout), &st) != 0
8897 if ac_fn_c_try_run
"$LINENO"; then :
8898 ac_cv_func_vfork_works
=yes
8900 ac_cv_func_vfork_works
=no
8902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8908 $as_echo "$ac_cv_func_vfork_works" >&6; }
8911 if test "x$ac_cv_func_fork_works" = xcross
; then
8912 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8914 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8917 if test "x$ac_cv_func_vfork_works" = xyes
; then
8919 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8923 $as_echo "#define vfork fork" >>confdefs.h
8926 if test "x$ac_cv_func_fork_works" = xyes
; then
8928 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8934 if test "X$prefix" = "XNONE"; then
8935 acl_final_prefix
="$ac_default_prefix"
8937 acl_final_prefix
="$prefix"
8939 if test "X$exec_prefix" = "XNONE"; then
8940 acl_final_exec_prefix
='${prefix}'
8942 acl_final_exec_prefix
="$exec_prefix"
8944 acl_save_prefix
="$prefix"
8945 prefix
="$acl_final_prefix"
8946 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8947 prefix
="$acl_save_prefix"
8950 # Check whether --with-gnu-ld was given.
8951 if test "${with_gnu_ld+set}" = set; then :
8952 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8957 # Prepare PATH_SEPARATOR.
8958 # The user is always right.
8959 if test "${PATH_SEPARATOR+set}" != set; then
8960 echo "#! /bin/sh" >conf$$.sh
8961 echo "exit 0" >>conf$$.sh
8963 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8971 if test "$GCC" = yes; then
8972 # Check if gcc -print-prog-name=ld gives a path.
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8974 $as_echo_n "checking for ld used by GCC... " >&6; }
8977 # gcc leaves a trailing carriage return which upsets mingw
8978 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8980 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8983 # Accept absolute paths.
8984 [\\/]* |
[A-Za-z
]:[\\/]*)
8985 re_direlt
='/[^/][^/]*/\.\./'
8986 # Canonicalize the path of ld
8987 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8988 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8989 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8991 test -z "$LD" && LD
="$ac_prog"
8994 # If it fails, then pretend we aren't using GCC.
8998 # If it is relative, then search for the first ld in PATH.
9002 elif test "$with_gnu_ld" = yes; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9004 $as_echo_n "checking for GNU ld... " >&6; }
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9007 $as_echo_n "checking for non-GNU ld... " >&6; }
9009 if test "${acl_cv_path_LD+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9012 if test -z "$LD"; then
9013 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9014 for ac_dir
in $PATH; do
9015 test -z "$ac_dir" && ac_dir
=.
9016 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9017 acl_cv_path_LD
="$ac_dir/$ac_prog"
9018 # Check to see if the program is GNU ld. I'd rather use --version,
9019 # but apparently some GNU ld's only accept -v.
9020 # Break only if it was the GNU/non-GNU ld that we prefer.
9021 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9022 test "$with_gnu_ld" != no
&& break
9024 test "$with_gnu_ld" != yes && break
9030 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9034 LD
="$acl_cv_path_LD"
9035 if test -n "$LD"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9037 $as_echo "$LD" >&6; }
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9042 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9044 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9045 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9048 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9049 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9050 acl_cv_prog_gnu_ld
=yes
9052 acl_cv_prog_gnu_ld
=no
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9056 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9057 with_gnu_ld
=$acl_cv_prog_gnu_ld
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9062 $as_echo_n "checking for shared library run path origin... " >&6; }
9063 if test "${acl_cv_rpath+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9067 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9068 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9075 $as_echo "$acl_cv_rpath" >&6; }
9077 libext
="$acl_cv_libext"
9078 shlibext
="$acl_cv_shlibext"
9079 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9080 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9081 hardcode_direct
="$acl_cv_hardcode_direct"
9082 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9083 # Check whether --enable-rpath was given.
9084 if test "${enable_rpath+set}" = set; then :
9085 enableval
=$enable_rpath; :
9099 acl_save_prefix
="$prefix"
9100 prefix
="$acl_final_prefix"
9101 acl_save_exec_prefix
="$exec_prefix"
9102 exec_prefix
="$acl_final_exec_prefix"
9104 eval additional_includedir
=\"$includedir\"
9105 eval additional_libdir
=\"$libdir\"
9107 exec_prefix
="$acl_save_exec_prefix"
9108 prefix
="$acl_save_prefix"
9111 # Check whether --with-libiconv-prefix was given.
9112 if test "${with_libiconv_prefix+set}" = set; then :
9113 withval
=$with_libiconv_prefix;
9114 if test "X$withval" = "Xno"; then
9117 if test "X$withval" = "X"; then
9119 acl_save_prefix
="$prefix"
9120 prefix
="$acl_final_prefix"
9121 acl_save_exec_prefix
="$exec_prefix"
9122 exec_prefix
="$acl_final_exec_prefix"
9124 eval additional_includedir
=\"$includedir\"
9125 eval additional_libdir
=\"$libdir\"
9127 exec_prefix
="$acl_save_exec_prefix"
9128 prefix
="$acl_save_prefix"
9131 additional_includedir
="$withval/include"
9132 additional_libdir
="$withval/lib"
9143 names_already_handled
=
9144 names_next_round
='iconv '
9145 while test -n "$names_next_round"; do
9146 names_this_round
="$names_next_round"
9148 for name
in $names_this_round; do
9150 for n
in $names_already_handled; do
9151 if test "$n" = "$name"; then
9156 if test -z "$already_handled"; then
9157 names_already_handled
="$names_already_handled $name"
9158 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9159 eval value
=\"\
$HAVE_LIB$uppername\"
9160 if test -n "$value"; then
9161 if test "$value" = yes; then
9162 eval value
=\"\
$LIB$uppername\"
9163 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9164 eval value
=\"\
$LTLIB$uppername\"
9165 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9174 if test $use_additional = yes; then
9175 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9176 found_dir
="$additional_libdir"
9177 found_so
="$additional_libdir/lib$name.$shlibext"
9178 if test -f "$additional_libdir/lib$name.la"; then
9179 found_la
="$additional_libdir/lib$name.la"
9182 if test -f "$additional_libdir/lib$name.$libext"; then
9183 found_dir
="$additional_libdir"
9184 found_a
="$additional_libdir/lib$name.$libext"
9185 if test -f "$additional_libdir/lib$name.la"; then
9186 found_la
="$additional_libdir/lib$name.la"
9191 if test "X$found_dir" = "X"; then
9192 for x
in $LDFLAGS $LTLIBICONV; do
9194 acl_save_prefix
="$prefix"
9195 prefix
="$acl_final_prefix"
9196 acl_save_exec_prefix
="$exec_prefix"
9197 exec_prefix
="$acl_final_exec_prefix"
9199 exec_prefix
="$acl_save_exec_prefix"
9200 prefix
="$acl_save_prefix"
9204 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9205 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9207 found_so
="$dir/lib$name.$shlibext"
9208 if test -f "$dir/lib$name.la"; then
9209 found_la
="$dir/lib$name.la"
9212 if test -f "$dir/lib$name.$libext"; then
9214 found_a
="$dir/lib$name.$libext"
9215 if test -f "$dir/lib$name.la"; then
9216 found_la
="$dir/lib$name.la"
9222 if test "X$found_dir" != "X"; then
9227 if test "X$found_dir" != "X"; then
9228 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9229 if test "X$found_so" != "X"; then
9230 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9231 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9234 for x
in $ltrpathdirs; do
9235 if test "X$x" = "X$found_dir"; then
9240 if test -z "$haveit"; then
9241 ltrpathdirs
="$ltrpathdirs $found_dir"
9243 if test "$hardcode_direct" = yes; then
9244 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9246 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9247 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9249 for x
in $rpathdirs; do
9250 if test "X$x" = "X$found_dir"; then
9255 if test -z "$haveit"; then
9256 rpathdirs
="$rpathdirs $found_dir"
9260 for x
in $LDFLAGS $LIBICONV; do
9262 acl_save_prefix
="$prefix"
9263 prefix
="$acl_final_prefix"
9264 acl_save_exec_prefix
="$exec_prefix"
9265 exec_prefix
="$acl_final_exec_prefix"
9267 exec_prefix
="$acl_save_exec_prefix"
9268 prefix
="$acl_save_prefix"
9270 if test "X$x" = "X-L$found_dir"; then
9275 if test -z "$haveit"; then
9276 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9278 if test "$hardcode_minus_L" != no
; then
9279 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9281 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9287 if test "X$found_a" != "X"; then
9288 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9290 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9293 additional_includedir
=
9294 case "$found_dir" in
9296 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9297 additional_includedir
="$basedir/include"
9300 if test "X$additional_includedir" != "X"; then
9301 if test "X$additional_includedir" != "X/usr/include"; then
9303 if test "X$additional_includedir" = "X/usr/local/include"; then
9304 if test -n "$GCC"; then
9306 linux
*) haveit
=yes;;
9310 if test -z "$haveit"; then
9311 for x
in $CPPFLAGS $INCICONV; do
9313 acl_save_prefix
="$prefix"
9314 prefix
="$acl_final_prefix"
9315 acl_save_exec_prefix
="$exec_prefix"
9316 exec_prefix
="$acl_final_exec_prefix"
9318 exec_prefix
="$acl_save_exec_prefix"
9319 prefix
="$acl_save_prefix"
9321 if test "X$x" = "X-I$additional_includedir"; then
9326 if test -z "$haveit"; then
9327 if test -d "$additional_includedir"; then
9328 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9334 if test -n "$found_la"; then
9335 save_libdir
="$libdir"
9337 */* |
*\\*) .
"$found_la" ;;
9338 *) .
"./$found_la" ;;
9340 libdir
="$save_libdir"
9341 for dep
in $dependency_libs; do
9344 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9345 if test "X$additional_libdir" != "X/usr/lib"; then
9347 if test "X$additional_libdir" = "X/usr/local/lib"; then
9348 if test -n "$GCC"; then
9350 linux
*) haveit
=yes;;
9354 if test -z "$haveit"; then
9356 for x
in $LDFLAGS $LIBICONV; do
9358 acl_save_prefix
="$prefix"
9359 prefix
="$acl_final_prefix"
9360 acl_save_exec_prefix
="$exec_prefix"
9361 exec_prefix
="$acl_final_exec_prefix"
9363 exec_prefix
="$acl_save_exec_prefix"
9364 prefix
="$acl_save_prefix"
9366 if test "X$x" = "X-L$additional_libdir"; then
9371 if test -z "$haveit"; then
9372 if test -d "$additional_libdir"; then
9373 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9377 for x
in $LDFLAGS $LTLIBICONV; do
9379 acl_save_prefix
="$prefix"
9380 prefix
="$acl_final_prefix"
9381 acl_save_exec_prefix
="$exec_prefix"
9382 exec_prefix
="$acl_final_exec_prefix"
9384 exec_prefix
="$acl_save_exec_prefix"
9385 prefix
="$acl_save_prefix"
9387 if test "X$x" = "X-L$additional_libdir"; then
9392 if test -z "$haveit"; then
9393 if test -d "$additional_libdir"; then
9394 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9401 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9402 if test "$enable_rpath" != no
; then
9404 for x
in $rpathdirs; do
9405 if test "X$x" = "X$dir"; then
9410 if test -z "$haveit"; then
9411 rpathdirs
="$rpathdirs $dir"
9414 for x
in $ltrpathdirs; do
9415 if test "X$x" = "X$dir"; then
9420 if test -z "$haveit"; then
9421 ltrpathdirs
="$ltrpathdirs $dir"
9426 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9429 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9432 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9433 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9439 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9440 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9446 if test "X$rpathdirs" != "X"; then
9447 if test -n "$hardcode_libdir_separator"; then
9449 for found_dir
in $rpathdirs; do
9450 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9452 acl_save_libdir
="$libdir"
9454 eval flag
=\"$hardcode_libdir_flag_spec\"
9455 libdir
="$acl_save_libdir"
9456 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9458 for found_dir
in $rpathdirs; do
9459 acl_save_libdir
="$libdir"
9461 eval flag
=\"$hardcode_libdir_flag_spec\"
9462 libdir
="$acl_save_libdir"
9463 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9467 if test "X$ltrpathdirs" != "X"; then
9468 for found_dir
in $ltrpathdirs; do
9469 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9479 am_save_CPPFLAGS
="$CPPFLAGS"
9481 for element
in $INCICONV; do
9483 for x
in $CPPFLAGS; do
9485 acl_save_prefix
="$prefix"
9486 prefix
="$acl_final_prefix"
9487 acl_save_exec_prefix
="$exec_prefix"
9488 exec_prefix
="$acl_final_exec_prefix"
9490 exec_prefix
="$acl_save_exec_prefix"
9491 prefix
="$acl_save_prefix"
9493 if test "X$x" = "X$element"; then
9498 if test -z "$haveit"; then
9499 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9505 $as_echo_n "checking for iconv... " >&6; }
9506 if test "${am_cv_func_iconv+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9510 am_cv_func_iconv
="no, consider installing GNU libiconv"
9512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9519 iconv_t cd = iconv_open("","");
9520 iconv(cd,NULL,NULL,NULL,NULL);
9526 if ac_fn_c_try_link
"$LINENO"; then :
9527 am_cv_func_iconv
=yes
9529 rm -f core conftest.err conftest.
$ac_objext \
9530 conftest
$ac_exeext conftest.
$ac_ext
9531 if test "$am_cv_func_iconv" != yes; then
9532 am_save_LIBS
="$LIBS"
9533 LIBS
="$LIBS $LIBICONV"
9534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9541 iconv_t cd = iconv_open("","");
9542 iconv(cd,NULL,NULL,NULL,NULL);
9548 if ac_fn_c_try_link
"$LINENO"; then :
9550 am_cv_func_iconv
=yes
9552 rm -f core conftest.err conftest.
$ac_objext \
9553 conftest
$ac_exeext conftest.
$ac_ext
9554 LIBS
="$am_save_LIBS"
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9559 $as_echo "$am_cv_func_iconv" >&6; }
9560 if test "$am_cv_func_iconv" = yes; then
9562 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9565 if test "$am_cv_lib_iconv" = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9567 $as_echo_n "checking how to link with libiconv... " >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9569 $as_echo "$LIBICONV" >&6; }
9571 CPPFLAGS
="$am_save_CPPFLAGS"
9578 if test "$am_cv_func_iconv" = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9580 $as_echo_n "checking for iconv declaration... " >&6; }
9581 if test "${am_cv_proto_iconv+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9594 #if defined(__STDC__) || defined(__cplusplus)
9595 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9608 if ac_fn_c_try_compile
"$LINENO"; then :
9609 am_cv_proto_iconv_arg1
=""
9611 am_cv_proto_iconv_arg1
="const"
9613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9614 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);"
9617 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9619 }$am_cv_proto_iconv" >&5
9621 }$am_cv_proto_iconv" >&6; }
9623 cat >>confdefs.h
<<_ACEOF
9624 #define ICONV_CONST $am_cv_proto_iconv_arg1
9629 # Until we have in-tree GNU iconv:
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9635 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9636 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9637 $as_echo_n "(cached) " >&6
9639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9650 if ac_fn_c_try_link
"$LINENO"; then :
9651 am_cv_val_LC_MESSAGES
=yes
9653 am_cv_val_LC_MESSAGES
=no
9655 rm -f core conftest.err conftest.
$ac_objext \
9656 conftest
$ac_exeext conftest.
$ac_ext
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9659 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9660 if test $am_cv_val_LC_MESSAGES = yes; then
9662 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9669 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9670 if test "${am_cv_langinfo_codeset+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #include <langinfo.h>
9679 char* cs = nl_langinfo(CODESET);
9684 if ac_fn_c_try_link
"$LINENO"; then :
9685 am_cv_langinfo_codeset
=yes
9687 am_cv_langinfo_codeset
=no
9689 rm -f core conftest.err conftest.
$ac_objext \
9690 conftest
$ac_exeext conftest.
$ac_ext
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9694 $as_echo "$am_cv_langinfo_codeset" >&6; }
9695 if test $am_cv_langinfo_codeset = yes; then
9697 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9702 # We will need to find libiberty.h and ansidecl.h
9703 saved_CFLAGS
="$CFLAGS"
9704 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9705 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9706 strsignal strstr strverscmp \
9707 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9708 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9710 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9712 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9713 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9714 $as_echo_n "(cached) " >&6
9716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9719 #define $ac_tr_decl 1
9721 #include "ansidecl.h"
9728 char *(*pfn) = (char *(*)) $ac_func ;
9734 if ac_fn_c_try_compile
"$LINENO"; then :
9735 eval "gcc_cv_have_decl_$ac_func=yes"
9737 eval "gcc_cv_have_decl_$ac_func=no"
9739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9744 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9745 #define $ac_tr_decl 1
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9751 #define $ac_tr_decl 0
9759 for ac_func
in getrlimit setrlimit getrusage
9761 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9763 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9764 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9765 $as_echo_n "(cached) " >&6
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9770 #define $ac_tr_decl 1
9772 #include "ansidecl.h"
9774 #ifdef HAVE_SYS_RESOURCE_H
9775 #include <sys/resource.h>
9783 char *(*pfn) = (char *(*)) $ac_func ;
9789 if ac_fn_c_try_compile
"$LINENO"; then :
9790 eval "gcc_cv_have_decl_$ac_func=yes"
9792 eval "gcc_cv_have_decl_$ac_func=no"
9794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9797 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9799 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9800 #define $ac_tr_decl 1
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9806 #define $ac_tr_decl 0
9814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9817 #include "ansidecl.h"
9819 #ifdef HAVE_SYS_RESOURCE_H
9820 #include <sys/resource.h>
9831 if ac_fn_c_try_compile
"$LINENO"; then :
9835 $as_echo "#define rlim_t long" >>confdefs.h
9838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9840 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9841 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9842 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9843 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9844 for ac_func
in ldgetname
9846 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9848 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9849 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9850 $as_echo_n "(cached) " >&6
9852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9855 #define $ac_tr_decl 1
9857 #include "ansidecl.h"
9870 char *(*pfn) = (char *(*)) $ac_func ;
9876 if ac_fn_c_try_compile
"$LINENO"; then :
9877 eval "gcc_cv_have_decl_$ac_func=yes"
9879 eval "gcc_cv_have_decl_$ac_func=no"
9881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9884 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9886 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9887 #define $ac_tr_decl 1
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9893 #define $ac_tr_decl 0
9901 for ac_func
in times
9903 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9905 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9906 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9907 $as_echo_n "(cached) " >&6
9909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9912 #define $ac_tr_decl 1
9914 #include "ansidecl.h"
9916 #ifdef HAVE_SYS_TIMES_H
9917 #include <sys/times.h>
9925 char *(*pfn) = (char *(*)) $ac_func ;
9931 if ac_fn_c_try_compile
"$LINENO"; then :
9932 eval "gcc_cv_have_decl_$ac_func=yes"
9934 eval "gcc_cv_have_decl_$ac_func=no"
9936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9939 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9942 #define $ac_tr_decl 1
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9948 #define $ac_tr_decl 0
9956 for ac_func
in sigaltstack
9958 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9960 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9961 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9962 $as_echo_n "(cached) " >&6
9964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9967 #define $ac_tr_decl 1
9969 #include "ansidecl.h"
9978 char *(*pfn) = (char *(*)) $ac_func ;
9984 if ac_fn_c_try_compile
"$LINENO"; then :
9985 eval "gcc_cv_have_decl_$ac_func=yes"
9987 eval "gcc_cv_have_decl_$ac_func=no"
9989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9992 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9994 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9995 #define $ac_tr_decl 1
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10001 #define $ac_tr_decl 0
10009 # More time-related stuff.
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10011 $as_echo_n "checking for struct tms... " >&6; }
10012 if test "${ac_cv_struct_tms+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10019 #include "ansidecl.h"
10020 #include "system.h"
10021 #ifdef HAVE_SYS_TIMES_H
10022 #include <sys/times.h>
10033 if ac_fn_c_try_compile
"$LINENO"; then :
10034 ac_cv_struct_tms
=yes
10036 ac_cv_struct_tms
=no
10038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10041 $as_echo "$ac_cv_struct_tms" >&6; }
10042 if test $ac_cv_struct_tms = yes; then
10044 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10048 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10049 # revisit after autoconf 2.50.
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10051 $as_echo_n "checking for clock_t... " >&6; }
10052 if test "${gcc_cv_type_clock_t+set}" = set; then :
10053 $as_echo_n "(cached) " >&6
10056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10059 #include "ansidecl.h"
10060 #include "system.h"
10070 if ac_fn_c_try_compile
"$LINENO"; then :
10071 gcc_cv_type_clock_t
=yes
10073 gcc_cv_type_clock_t
=no
10075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10078 $as_echo "$gcc_cv_type_clock_t" >&6; }
10079 if test $gcc_cv_type_clock_t = yes; then
10081 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10085 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10086 CFLAGS
="$saved_CFLAGS"
10088 # Check whether --enable-initfini-array was given.
10089 if test "${enable_initfini_array+set}" = set; then :
10090 enableval
=$enable_initfini_array;
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10094 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10095 if test "${gcc_cv_initfini_array+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10098 if test "$cross_compiling" = yes; then :
10099 gcc_cv_initfini_array
=no
10101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10105 int main (void) { return x; }
10106 int foo (void) { x = 0; }
10107 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10109 if ac_fn_c_try_run
"$LINENO"; then :
10110 gcc_cv_initfini_array
=yes
10112 gcc_cv_initfini_array
=no
10114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10115 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10120 $as_echo "$gcc_cv_initfini_array" >&6; }
10121 enable_initfini_array
=$gcc_cv_initfini_array
10125 if test $enable_initfini_array = yes; then
10127 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10131 # mkdir takes a single argument on some systems.
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10133 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10134 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10140 #include <sys/types.h>
10141 #ifdef HAVE_SYS_STAT_H
10142 # include <sys/stat.h>
10144 #ifdef HAVE_UNISTD_H
10145 # include <unistd.h>
10147 #ifdef HAVE_DIRECT_H
10148 # include <direct.h>
10158 if ac_fn_c_try_compile
"$LINENO"; then :
10159 gcc_cv_mkdir_takes_one_arg
=no
10161 gcc_cv_mkdir_takes_one_arg
=yes
10163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10166 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10167 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10169 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10180 # With Setjmp/Longjmp based exception handling.
10181 # Check whether --enable-sjlj-exceptions was given.
10182 if test "${enable_sjlj_exceptions+set}" = set; then :
10183 enableval
=$enable_sjlj_exceptions; case $target in
10185 if test $enableval != yes; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10187 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10192 force_sjlj_exceptions
=yes
10196 force_sjlj_exceptions
=yes
10200 force_sjlj_exceptions
=no
10205 if test $force_sjlj_exceptions = yes; then
10206 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10208 cat >>confdefs.h
<<_ACEOF
10209 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10214 # For platforms with the unwind ABI which includes an unwind library,
10215 # libunwind, we can choose to use the system libunwind.
10216 # config.gcc also contains tests of with_system_libunwind.
10219 # Check whether --with-system-libunwind was given.
10220 if test "${with_system_libunwind+set}" = set; then :
10221 withval
=$with_system_libunwind;
10224 # If system-libunwind was not specifically set, pick a default setting.
10225 if test x
$with_system_libunwind = x
; then
10227 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10228 *) with_system_libunwind
=no
;;
10231 # Based on system-libunwind and target, do we have ipinfo?
10232 if test x
$with_system_libunwind = xyes
; then
10234 ia64-
*-*) have_unwind_getipinfo
=no
;;
10235 *) have_unwind_getipinfo
=yes ;;
10238 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10241 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10242 *) have_unwind_getipinfo
=yes ;;
10247 if test x
$have_unwind_getipinfo = xyes
; then
10249 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10254 # --------------------------------------------------------
10255 # Build, host, and target specific configuration fragments
10256 # --------------------------------------------------------
10258 # Collect build-machine-specific information.
10259 .
${srcdir}/config.build
10261 # Collect host-machine-specific information.
10262 .
${srcdir}/config.
host
10266 # Collect target-machine-specific information.
10267 .
${srcdir}/config.gcc
10269 extra_objs
="${host_extra_objs} ${extra_objs}"
10270 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10272 # Default the target-machine variables that were not explicitly set.
10273 if test x
"$tm_file" = x
10274 then tm_file
=$cpu_type/$cpu_type.h
; fi
10276 if test x
"$extra_headers" = x
10277 then extra_headers
=; fi
10279 if test x
$md_file = x
10280 then md_file
=$cpu_type/$cpu_type.md
; fi
10282 if test x
$out_file = x
10283 then out_file
=$cpu_type/$cpu_type.c
; fi
10285 if test x
"$tmake_file" = x
10286 then tmake_file
=$cpu_type/t-
$cpu_type
10289 if test x
"$dwarf2" = xyes
10290 then tm_file
="$tm_file tm-dwarf2.h"
10293 # Say what files are being used for the output code and MD file.
10294 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10295 echo "Using \`$srcdir/config/$md_file' as machine description file."
10297 # If any of the xm_file variables contain nonexistent files, warn
10298 # about them and drop them.
10301 for x
in $build_xm_file; do
10302 if test -f $srcdir/config
/$x
10304 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10305 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10308 build_xm_file
="$bx"
10311 for x
in $host_xm_file; do
10312 if test -f $srcdir/config
/$x
10314 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10315 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10321 for x
in $xm_file; do
10322 if test -f $srcdir/config
/$x
10324 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10325 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10331 for f
in $tm_file; do
10334 if test $count = ax
; then
10335 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10337 echo "Using the following target machine macro files:"
10338 for f
in $tm_file; do
10339 echo " $srcdir/config/$f"
10343 if test x
$need_64bit_hwint = xyes
; then
10345 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10349 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10351 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10356 for f
in $host_xm_file; do
10359 if test $count = a
; then
10361 elif test $count = ax
; then
10362 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10364 echo "Using the following host machine macro files:"
10365 for f
in $host_xm_file; do
10366 echo " $srcdir/config/$f"
10369 echo "Using ${out_host_hook_obj} for host machine hooks."
10371 if test "$host_xm_file" != "$build_xm_file"; then
10373 for f
in $build_xm_file; do
10376 if test $count = a
; then
10378 elif test $count = ax
; then
10379 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10381 echo "Using the following build machine macro files:"
10382 for f
in $build_xm_file; do
10383 echo " $srcdir/config/$f"
10389 powerpc
*-*-darwin*)
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10391 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10392 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
10395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10398 #include <sys/cdefs.h>
10399 #include <sys/signal.h>
10400 #include <ucontext.h>
10401 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10404 if ac_fn_c_try_compile
"$LINENO"; then :
10405 gcc_cv_mcontext_underscores
=no
10407 gcc_cv_mcontext_underscores
=yes
10409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10412 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10413 if test $gcc_cv_mcontext_underscores = yes; then
10415 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10425 # Check if a valid thread package
10426 case ${enable_threads} in
10429 target_thread_file
='single'
10433 target_thread_file
='single'
10435 aix | dce | gnat | irix | posix | posix95 | rtems | \
10436 single | solaris | vxworks | win32 | mipssde
)
10437 target_thread_file
=${enable_threads}
10440 echo "${enable_threads} is an unknown thread package" 1>&2
10445 if test x
${thread_file} = x
; then
10446 # No thread file set by target-specific clauses in config.gcc,
10447 # so use file chosen by default logic above
10448 thread_file
=${target_thread_file}
10451 # Make gthr-default.h if we have a thread file.
10453 if test $thread_file != single
; then
10454 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10455 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10456 rm -f gthr-default.h-t
10458 mv -f gthr-default.h-t gthr-default.h
10460 gthread_flags
=-DHAVE_GTHR_DEFAULT
10469 if test x
$enable___cxa_atexit = xyes || \
10470 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10471 if test x
$host = x
$target; then
10473 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10474 # keyed to flag_use_cxa_atexit
10479 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10480 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10483 echo "__cxa_atexit can't be enabled on this target"
10489 # We can't check for __cxa_atexit when building a cross, so assume
10493 if test x
$use_cxa_atexit = xyes
; then
10495 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10500 # Look for a file containing extra machine modes.
10501 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10502 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10505 cat >>confdefs.h
<<_ACEOF
10506 #define EXTRA_MODES_FILE "config/$extra_modes"
10511 # Convert extra_options into a form suitable for Makefile use.
10513 for f
in $extra_options; do
10514 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10518 # auto-host.h is the file containing items generated by autoconf and is
10519 # the first file included by config.h.
10520 # If host=build, it is correct to have bconfig include auto-host.h
10521 # as well. If host!=build, we are in error and need to do more
10522 # work to find out the build config parameters.
10523 if test x
$host = x
$build
10525 build_auto
=auto-host.h
10527 # We create a subdir, then run autoconf in the subdir.
10528 # To prevent recursion we set host and build for the new
10529 # invocation of configure to the build for this invocation
10536 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10537 *) realsrcdir
=..
/${srcdir};;
10539 saved_CFLAGS
="${CFLAGS}"
10540 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10541 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10542 ${realsrcdir}/configure \
10543 --enable-languages=${enable_languages-all} \
10544 --target=$target_alias --host=$build_alias --build=$build_alias
10545 CFLAGS
="${saved_CFLAGS}"
10547 # We just finished tests for the build machine, so rename
10548 # the file auto-build.h in the gcc directory.
10549 mv auto-host.h ..
/auto-build.h
10552 build_auto
=auto-build.h
10556 tm_file
="${tm_file} defaults.h"
10557 tm_p_file
="${tm_p_file} tm-preds.h"
10558 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10559 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10560 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10561 # put this back in temporarily.
10562 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10568 # Compile in configure arguments.
10569 if test -f configargs.h
; then
10570 # Being re-configured.
10571 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10572 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10574 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10577 # Double all backslashes and backslash all quotes to turn
10578 # gcc_config_arguments into a C string.
10579 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10580 $gcc_config_arguments
10582 gcc_config_arguments_str
=`cat conftest.out`
10585 cat > configargs.h
<<EOF
10586 /* Generated automatically. */
10587 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10588 static const char thread_model[] = "$thread_file";
10590 static const struct {
10591 const char *name, *value;
10592 } configure_default_options[] = $configure_default_options;
10595 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10596 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10597 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10598 if test -f $srcdir/REVISION
; then
10599 gcc_REVISION
=`cat $srcdir/REVISION`
10603 cat > plugin-version.h
<<EOF
10604 #include "configargs.h"
10606 static char basever[] = "$gcc_BASEVER";
10607 static char datestamp[] = "$gcc_DATESTAMP";
10608 static char devphase[] = "$gcc_DEVPHASE";
10609 static char revision[] = "$gcc_REVISION";
10611 /* FIXME plugins: We should make the version information more precise.
10612 One way to do is to add a checksum. */
10614 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10615 devphase, revision,
10616 configuration_arguments};
10619 # Internationalization
10620 # If we haven't got the data from the intl directory,
10621 # assume NLS is disabled.
10630 if test -f ..
/intl
/config.intl
; then
10631 . ..
/intl
/config.intl
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10634 $as_echo_n "checking whether NLS is requested... " >&6; }
10635 if test x
"$USE_NLS" != xyes
; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10640 $as_echo "yes" >&6; }
10642 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10646 $as_echo_n "checking for catalogs to be installed... " >&6; }
10647 # Look for .po and .gmo files in the source directory.
10650 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10651 # If there aren't any .gmo files the shell will give us the
10652 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10654 case "$cat" in *\
**)
10657 # The quadruple backslash is collapsed to a double backslash
10658 # by the backticks, then collapsed again by the double quotes,
10659 # leaving us with one backslash in the sed expression (right
10660 # before the dot that mustn't act as a wildcard).
10661 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10662 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10663 # The user is allowed to set LINGUAS to a list of languages to
10664 # install catalogs for. If it's empty that means "all of them."
10665 if test "x$LINGUAS" = x
; then
10666 CATALOGS
="$CATALOGS $cat"
10667 XLINGUAS
="$XLINGUAS $lang"
10669 case "$LINGUAS" in *$lang*)
10670 CATALOGS
="$CATALOGS $cat"
10671 XLINGUAS
="$XLINGUAS $lang"
10676 LINGUAS
="$XLINGUAS"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10678 $as_echo "$LINGUAS" >&6; }
10691 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10692 # -liconv on the link line twice.
10693 case "$LIBINTL" in *$LIBICONV*)
10697 # Check whether --enable-secureplt was given.
10698 if test "${enable_secureplt+set}" = set; then :
10699 enableval
=$enable_secureplt;
10703 # Check whether --enable-leading-mingw64-underscores was given.
10704 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10705 enableval
=$enable_leading_mingw64_underscores;
10708 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
10710 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10714 # Check whether --enable-cld was given.
10715 if test "${enable_cld+set}" = set; then :
10716 enableval
=$enable_cld;
10722 # Check whether --enable-frame-pointer was given.
10723 if test "${enable_frame_pointer+set}" = set; then :
10724 enableval
=$enable_frame_pointer;
10728 linux
* | darwin
[8912]*)
10729 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10731 enable_frame_pointer
=no
10734 enable_frame_pointer
=yes
10741 # Windows32 Registry support for specifying GCC installation paths.
10742 # Check whether --enable-win32-registry was given.
10743 if test "${enable_win32_registry+set}" = set; then :
10744 enableval
=$enable_win32_registry;
10749 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10750 if test "x$enable_win32_registry" != xno
; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10752 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10754 $as_echo_n "(cached) " >&6
10756 ac_func_search_save_LIBS
=$LIBS
10757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10766 char RegOpenKeyExA ();
10770 return RegOpenKeyExA ();
10775 for ac_lib
in '' advapi32
; do
10776 if test -z "$ac_lib"; then
10777 ac_res
="none required"
10780 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10782 if ac_fn_c_try_link
"$LINENO"; then :
10783 ac_cv_search_RegOpenKeyExA
=$ac_res
10785 rm -f core conftest.err conftest.
$ac_objext \
10787 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10791 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10794 ac_cv_search_RegOpenKeyExA
=no
10796 rm conftest.
$ac_ext
10797 LIBS
=$ac_func_search_save_LIBS
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10800 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10801 ac_res
=$ac_cv_search_RegOpenKeyExA
10802 if test "$ac_res" != no
; then :
10803 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10806 enable_win32_registry
=no
10811 if test "x$enable_win32_registry" != xno
; then
10813 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10816 if test "x$enable_win32_registry" != xyes \
10817 && test "x$enable_win32_registry" != x
; then
10819 cat >>confdefs.h
<<_ACEOF
10820 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10828 # Get an absolute path to the GCC top-level source directory
10829 holddir
=`${PWDCMD-pwd}`
10831 topdir
=`${PWDCMD-pwd}`
10834 # Conditionalize the makefile for this host machine.
10836 for f
in ${host_xmake_file}
10838 if test -f ${srcdir}/config
/$f
10840 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10844 # Conditionalize the makefile for this target machine.
10846 for f
in ${tmake_file}
10848 if test -f ${srcdir}/config
/$f
10850 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10853 tmake_file
="${tmake_file_}"
10855 out_object_file
=`basename $out_file .c`.o
10857 tm_file_list
="options.h"
10858 tm_include_list
="options.h insn-constants.h"
10859 for f
in $tm_file; do
10862 f
=`echo $f | sed 's/^..//'`
10863 tm_file_list
="${tm_file_list} $f"
10864 tm_include_list
="${tm_include_list} $f"
10867 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10868 tm_include_list
="${tm_include_list} $f"
10871 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10872 tm_include_list
="${tm_include_list} config/$f"
10879 for f
in $tm_p_file; do
10882 tm_p_file_list
="${tm_p_file_list} $f"
10883 tm_p_include_list
="${tm_p_include_list} $f"
10886 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10887 tm_p_include_list
="${tm_p_include_list} config/$f"
10893 for f
in $xm_file; do
10896 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10897 xm_include_list
="${xm_include_list} $f"
10900 xm_file_list
="${xm_file_list} $f"
10901 xm_include_list
="${xm_include_list} $f"
10904 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10905 xm_include_list
="${xm_include_list} config/$f"
10911 host_xm_include_list
=
10912 for f
in $host_xm_file; do
10915 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10916 host_xm_include_list
="${host_xm_include_list} $f"
10919 host_xm_file_list
="${host_xm_file_list} $f"
10920 host_xm_include_list
="${host_xm_include_list} $f"
10923 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10924 host_xm_include_list
="${host_xm_include_list} config/$f"
10929 build_xm_file_list
=
10930 for f
in $build_xm_file; do
10933 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10934 build_xm_include_list
="${build_xm_include_list} $f"
10936 auto-build.h | auto-host.h
)
10937 build_xm_file_list
="${build_xm_file_list} $f"
10938 build_xm_include_list
="${build_xm_include_list} $f"
10941 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10942 build_xm_include_list
="${build_xm_include_list} config/$f"
10947 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10948 # cross-compiler which does not use the native headers and libraries.
10949 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10952 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10954 if test "x$with_build_sysroot" != x
; then
10955 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10957 # This value is used, even on a native system, because
10958 # CROSS_SYSTEM_HEADER_DIR is just
10959 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10960 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10963 if test x
$host != x
$target
10965 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10967 SYSTEM_HEADER_DIR
=$build_system_header_dir
10968 case "$host","$target" in
10969 # Darwin crosses can use the host system's libraries and headers,
10970 # because of the fat library support. Of course, it must be the
10971 # same version of Darwin on both sides. Allow the user to
10972 # just say --target=foo-darwin without a version number to mean
10973 # "the version on this system".
10974 *-*-darwin*,*-*-darwin*)
10975 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10976 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10977 if test $hostos = $targetos -o $targetos = darwin
; then
10979 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10984 i?
86-*-*,x86_64-
*-* \
10985 | powerpc
*-*-*,powerpc64
*-*-*)
10986 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10988 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10989 SYSTEM_HEADER_DIR
=$build_system_header_dir
10992 # If this is a cross-compiler that does not
10993 # have its own set of headers then define
10996 # If this is using newlib, without having the headers available now,
10997 # then define inhibit_libc in LIBGCC2_CFLAGS.
10998 # This prevents libgcc2 from containing any code which requires libc
11000 : ${inhibit_libc=false}
11001 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11002 test x
$with_newlib = xyes
; } &&
11003 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11008 # When building gcc with a cross-compiler, we need to adjust things so
11009 # that the generator programs are still built with the native compiler.
11010 # Also, we cannot run fixincludes.
11012 # These are the normal (build=host) settings:
11013 CC_FOR_BUILD
='$(CC)'
11014 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11015 BUILD_LDFLAGS
='$(LDFLAGS)'
11016 STMP_FIXINC
=stmp-fixinc
11018 # And these apply if build != host, or we are generating coverage data
11019 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11021 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11022 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11025 # Expand extra_headers to include complete path.
11026 # This substitutes for lots of t-* files.
11027 extra_headers_list
=
11028 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11029 for file in ${extra_headers} ; do
11030 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11033 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11034 if test x
"$use_gcc_tgmath" = xyes
11035 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11038 # Define collect2 in Makefile.
11039 case $host_can_use_collect2 in
11041 *) collect2
='collect2$(exeext)' ;;
11045 # Add a definition of USE_COLLECT2 if system wants one.
11046 case $use_collect2 in
11047 no
) use_collect2
= ;;
11050 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11051 xm_defines
="${xm_defines} USE_COLLECT2"
11052 case $host_can_use_collect2 in
11054 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11060 # ---------------------------
11061 # Assembler & linker features
11062 # ---------------------------
11064 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11065 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11066 # However when ld-new is first executed from the build tree, libtool will
11067 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11068 # to the build tree. While doing this we need to use the previous-stage
11069 # linker, or we have an infinite loop. The presence of a shell script as
11070 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11071 # the gcc/collect-ld script. So we need to know how libtool works, or
11072 # exec-tool will fail.
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11083 macro_version
='2.2.7a'
11084 macro_revision
='1.3134'
11098 ltmain
="$ac_aux_dir/ltmain.sh"
11100 # Backslashify metacharacters that are still active within
11101 # double-quoted strings.
11102 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11104 # Same as above, but do not quote variable references.
11105 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11107 # Sed substitution to delay expansion of an escaped shell variable in a
11108 # double_quote_subst'ed string.
11109 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11111 # Sed substitution to delay expansion of an escaped single quote.
11112 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11114 # Sed substitution to avoid accidental globbing in evaled expressions
11115 no_glob_subst
='s/\*/\\\*/g'
11117 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11122 $as_echo_n "checking how to print strings... " >&6; }
11123 # Test print first, because it will be a builtin if present.
11124 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11130 # Use this function as a fallback that always works.
11131 func_fallback_echo ()
11133 eval 'cat <<_LTECHO_EOF
11137 ECHO='func_fallback_echo
'
11140 # func_echo_all arg...
11141 # Invoke $ECHO with all args, space-separated.
11148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11149 $as_echo "printf" >&6; } ;;
11150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11151 $as_echo "print -r" >&6; } ;;
11152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11153 $as_echo "cat" >&6; } ;;
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11171 if test "${ac_cv_path_SED+set}" = set; then :
11172 $as_echo_n "(cached) " >&6
11174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11175 for ac_i in 1 2 3 4 5 6 7; do
11176 ac_script="$ac_script$as_nl$ac_script"
11178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11179 { ac_script=; unset ac_script;}
11180 if test -z "$SED"; then
11181 ac_path_SED_found=false
11182 # Loop through the user's path and
test for each of PROGNAME-LIST
11183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11184 for as_dir
in $PATH
11187 test -z "$as_dir" && as_dir
=.
11188 for ac_prog
in sed gsed
; do
11189 for ac_exec_ext
in '' $ac_executable_extensions; do
11190 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11191 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11192 # Check for GNU ac_path_SED and select it if it is found.
11193 # Check for GNU $ac_path_SED
11194 case `"$ac_path_SED" --version 2>&1` in
11196 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11199 $as_echo_n 0123456789 >"conftest.in"
11202 cat "conftest.in" "conftest.in" >"conftest.tmp"
11203 mv "conftest.tmp" "conftest.in"
11204 cp "conftest.in" "conftest.nl"
11205 $as_echo '' >> "conftest.nl"
11206 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11207 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11208 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11209 if test $ac_count -gt ${ac_path_SED_max-0}; then
11210 # Best one so far, save it but keep looking for a better one
11211 ac_cv_path_SED
="$ac_path_SED"
11212 ac_path_SED_max
=$ac_count
11214 # 10*(2^10) chars as input seems more than enough
11215 test $ac_count -gt 10 && break
11217 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11220 $ac_path_SED_found && break 3
11225 if test -z "$ac_cv_path_SED"; then
11226 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11229 ac_cv_path_SED
=$SED
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11234 $as_echo "$ac_cv_path_SED" >&6; }
11235 SED
="$ac_cv_path_SED"
11238 test -z "$SED" && SED
=sed
11239 Xsed
="$SED -e 1s/^X//"
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11252 $as_echo_n "checking for fgrep... " >&6; }
11253 if test "${ac_cv_path_FGREP+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11256 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11257 then ac_cv_path_FGREP
="$GREP -F"
11259 if test -z "$FGREP"; then
11260 ac_path_FGREP_found
=false
11261 # Loop through the user's path and test for each of PROGNAME-LIST
11262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11263 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11266 test -z "$as_dir" && as_dir
=.
11267 for ac_prog
in fgrep
; do
11268 for ac_exec_ext
in '' $ac_executable_extensions; do
11269 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11270 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11271 # Check for GNU ac_path_FGREP and select it if it is found.
11272 # Check for GNU $ac_path_FGREP
11273 case `"$ac_path_FGREP" --version 2>&1` in
11275 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11278 $as_echo_n 0123456789 >"conftest.in"
11281 cat "conftest.in" "conftest.in" >"conftest.tmp"
11282 mv "conftest.tmp" "conftest.in"
11283 cp "conftest.in" "conftest.nl"
11284 $as_echo 'FGREP' >> "conftest.nl"
11285 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11286 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11287 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11288 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11289 # Best one so far, save it but keep looking for a better one
11290 ac_cv_path_FGREP
="$ac_path_FGREP"
11291 ac_path_FGREP_max
=$ac_count
11293 # 10*(2^10) chars as input seems more than enough
11294 test $ac_count -gt 10 && break
11296 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11299 $ac_path_FGREP_found && break 3
11304 if test -z "$ac_cv_path_FGREP"; then
11305 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11308 ac_cv_path_FGREP
=$FGREP
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11314 $as_echo "$ac_cv_path_FGREP" >&6; }
11315 FGREP
="$ac_cv_path_FGREP"
11318 test -z "$GREP" && GREP
=grep
11338 # Check whether --with-gnu-ld was given.
11339 if test "${with_gnu_ld+set}" = set; then :
11340 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11346 if test "$GCC" = yes; then
11347 # Check if gcc -print-prog-name=ld gives a path.
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11349 $as_echo_n "checking for ld used by $CC... " >&6; }
11352 # gcc leaves a trailing carriage return which upsets mingw
11353 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11355 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11358 # Accept absolute paths.
11360 re_direlt
='/[^/][^/]*/\.\./'
11361 # Canonicalize the pathname of ld
11362 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11363 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11364 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11366 test -z "$LD" && LD
="$ac_prog"
11369 # If it fails, then pretend we aren't using GCC.
11373 # If it is relative, then search for the first ld in PATH.
11374 with_gnu_ld
=unknown
11377 elif test "$with_gnu_ld" = yes; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11379 $as_echo_n "checking for GNU ld... " >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11382 $as_echo_n "checking for non-GNU ld... " >&6; }
11384 if test "${lt_cv_path_LD+set}" = set; then :
11385 $as_echo_n "(cached) " >&6
11387 if test -z "$LD"; then
11388 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11389 for ac_dir
in $PATH; do
11391 test -z "$ac_dir" && ac_dir
=.
11392 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11393 lt_cv_path_LD
="$ac_dir/$ac_prog"
11394 # Check to see if the program is GNU ld. I'd rather use --version,
11395 # but apparently some variants of GNU ld only accept -v.
11396 # Break only if it was the GNU/non-GNU ld that we prefer.
11397 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11398 *GNU
* |
*'with BFD'*)
11399 test "$with_gnu_ld" != no
&& break
11402 test "$with_gnu_ld" != yes && break
11409 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11413 LD
="$lt_cv_path_LD"
11414 if test -n "$LD"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11416 $as_echo "$LD" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11421 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11423 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11424 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
11427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11428 case `$LD -v 2>&1 </dev/null` in
11429 *GNU
* |
*'with BFD'*)
11430 lt_cv_prog_gnu_ld
=yes
11433 lt_cv_prog_gnu_ld
=no
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11438 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11439 with_gnu_ld
=$lt_cv_prog_gnu_ld
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11450 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11451 if test "${lt_cv_path_NM+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11454 if test -n "$NM"; then
11455 # Let the user override the test.
11456 lt_cv_path_NM
="$NM"
11458 lt_nm_to_check
="${ac_tool_prefix}nm"
11459 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11460 lt_nm_to_check
="$lt_nm_to_check nm"
11462 for lt_tmp_nm
in $lt_nm_to_check; do
11463 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11464 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11466 test -z "$ac_dir" && ac_dir
=.
11467 tmp_nm
="$ac_dir/$lt_tmp_nm"
11468 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11469 # Check to see if the nm accepts a BSD-compat flag.
11470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11471 # nm: unknown option "B" ignored
11472 # Tru64's nm complains that /dev/null is an invalid object file
11473 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11474 */dev
/null
* |
*'Invalid file or object type'*)
11475 lt_cv_path_NM
="$tmp_nm -B"
11479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11481 lt_cv_path_NM
="$tmp_nm -p"
11485 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11486 continue # so that we can try to find one that supports BSD flags
11495 : ${lt_cv_path_NM=no}
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11499 $as_echo "$lt_cv_path_NM" >&6; }
11500 if test "$lt_cv_path_NM" != "no"; then
11501 NM
="$lt_cv_path_NM"
11503 # Didn't find any BSD compatible name lister, look for dumpbin.
11504 if test -n "$DUMPBIN"; then :
11505 # Let the user override the test.
11507 if test -n "$ac_tool_prefix"; then
11508 for ac_prog
in dumpbin
"link -dump"
11510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11511 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 if test -n "$DUMPBIN"; then
11518 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11521 for as_dir
in $PATH
11524 test -z "$as_dir" && as_dir
=.
11525 for ac_exec_ext
in '' $ac_executable_extensions; do
11526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11527 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 DUMPBIN
=$ac_cv_prog_DUMPBIN
11538 if test -n "$DUMPBIN"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11540 $as_echo "$DUMPBIN" >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11547 test -n "$DUMPBIN" && break
11550 if test -z "$DUMPBIN"; then
11551 ac_ct_DUMPBIN
=$DUMPBIN
11552 for ac_prog
in dumpbin
"link -dump"
11554 # Extract the first word of "$ac_prog", so it can be a program name with args.
11555 set dummy
$ac_prog; ac_word
=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11561 if test -n "$ac_ct_DUMPBIN"; then
11562 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11565 for as_dir
in $PATH
11568 test -z "$as_dir" && as_dir
=.
11569 for ac_exec_ext
in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11582 if test -n "$ac_ct_DUMPBIN"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11584 $as_echo "$ac_ct_DUMPBIN" >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11591 test -n "$ac_ct_DUMPBIN" && break
11594 if test "x$ac_ct_DUMPBIN" = x
; then
11597 case $cross_compiling:$ac_tool_warned in
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11601 ac_tool_warned
=yes ;;
11603 DUMPBIN
=$ac_ct_DUMPBIN
11607 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11609 DUMPBIN
="$DUMPBIN -symbols"
11617 if test "$DUMPBIN" != ":"; then
11621 test -z "$NM" && NM
=nm
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11629 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11630 if test "${lt_cv_nm_interface+set}" = set; then :
11631 $as_echo_n "(cached) " >&6
11633 lt_cv_nm_interface
="BSD nm"
11634 echo "int some_variable = 0;" > conftest.
$ac_ext
11635 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11636 (eval "$ac_compile" 2>conftest.err
)
11637 cat conftest.err
>&5
11638 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11639 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11640 cat conftest.err
>&5
11641 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11642 cat conftest.out
>&5
11643 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11644 lt_cv_nm_interface
="MS dumpbin"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11649 $as_echo "$lt_cv_nm_interface" >&6; }
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11652 $as_echo_n "checking whether ln -s works... " >&6; }
11654 if test "$LN_S" = "ln -s"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656 $as_echo "yes" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11659 $as_echo "no, using $LN_S" >&6; }
11662 # find the maximum length of command line arguments
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11664 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11665 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11673 # On DJGPP, this test can blow up pretty badly due to problems in libc
11674 # (any single argument exceeding 2000 bytes causes a buffer overrun
11675 # during glob expansion). Even if it were fixed, the result of this
11676 # check would be larger than it should be.
11677 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11681 # Under GNU Hurd, this test is not required because there is
11682 # no limit to the length of command line arguments.
11683 # Libtool will interpret -1 as no limit whatsoever
11684 lt_cv_sys_max_cmd_len
=-1;
11687 cygwin
* | mingw
* | cegcc
*)
11688 # On Win9x/ME, this test blows up -- it succeeds, but takes
11689 # about 5 minutes as the teststring grows exponentially.
11690 # Worse, since 9x/ME are not pre-emptively multitasking,
11691 # you end up with a "frozen" computer, even though with patience
11692 # the test eventually succeeds (with a max line length of 256k).
11693 # Instead, let's just punt: use the minimum linelength reported by
11694 # all of the supported platforms: 8192 (on NT/2K/XP).
11695 lt_cv_sys_max_cmd_len
=8192;
11699 # On MiNT this can take a long time and run out of memory.
11700 lt_cv_sys_max_cmd_len
=8192;
11704 # On AmigaOS with pdksh, this test takes hours, literally.
11705 # So we just punt and use a minimum line length of 8192.
11706 lt_cv_sys_max_cmd_len
=8192;
11709 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11710 # This has been around since 386BSD, at least. Likely further.
11711 if test -x /sbin
/sysctl
; then
11712 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11713 elif test -x /usr
/sbin
/sysctl
; then
11714 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11716 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11718 # And add a safety zone
11719 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11720 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11724 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11725 lt_cv_sys_max_cmd_len
=196608
11729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11731 # nice to cause kernel panics so lets avoid the loop below.
11732 # First set a reasonable default.
11733 lt_cv_sys_max_cmd_len
=16384
11735 if test -x /sbin
/sysconfig
; then
11736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11737 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11742 lt_cv_sys_max_cmd_len
=102400
11744 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11745 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11746 if test -n "$kargmax"; then
11747 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11749 lt_cv_sys_max_cmd_len
=32768
11753 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11754 if test -n "$lt_cv_sys_max_cmd_len"; then
11755 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11756 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11758 # Make teststring a little bigger before we do anything with it.
11759 # a 1K string should be a reasonable start.
11760 for i
in 1 2 3 4 5 6 7 8 ; do
11761 teststring
=$teststring$teststring
11763 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11764 # If test is not a shell built-in, we'll probably end up computing a
11765 # maximum length that is only half of the actual maximum length, but
11767 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11768 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11769 test $i != 17 # 1/2 MB should be enough
11772 teststring
=$teststring$teststring
11774 # Only check the string length outside the loop.
11775 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11777 # Add a significant safety factor because C++ compilers can tack on
11778 # massive amounts of additional arguments before passing them to the
11779 # linker. It appears as though 1/2 is a usable value.
11780 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11787 if test -n $lt_cv_sys_max_cmd_len ; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11789 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11792 $as_echo "none" >&6; }
11794 max_cmd_len
=$lt_cv_sys_max_cmd_len
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11806 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11807 # Try some XSI features
11809 ( _lt_dummy
="a/b/c"
11810 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11812 && eval 'test $(( 1 + 1 )) -eq 2 \
11813 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11816 $as_echo "$xsi_shell" >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11820 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11822 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11824 && lt_shell_append=yes
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11826 $as_echo "$lt_shell_append" >&6; }
11829 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11839 # test EBCDIC or ASCII
11840 case `echo X|tr X '\101'` in
11841 A) # ASCII based system
11842 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11843 lt_SP2NL='tr \040 \012'
11844 lt_NL2SP='tr \015\012 \040\040'
11846 *) # EBCDIC based system
11847 lt_SP2NL='tr \100 \n'
11848 lt_NL2SP='tr \r\n \100\100'
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11861 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11862 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11863 $as_echo_n "(cached
) " >&6
11865 lt_cv_ld_reload_flag='-r'
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11868 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11869 reload_flag=$lt_cv_ld_reload_flag
11870 case $reload_flag in
11872 *) reload_flag=" $reload_flag" ;;
11874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11877 if test "$GCC" = yes; then
11878 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11880 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11893 if test -n "$ac_tool_prefix"; then
11894 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11895 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11897 $as_echo_n "checking
for $ac_word...
" >&6; }
11898 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11899 $as_echo_n "(cached
) " >&6
11901 if test -n "$OBJDUMP"; then
11902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11921 OBJDUMP=$ac_cv_prog_OBJDUMP
11922 if test -n "$OBJDUMP"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11924 $as_echo "$OBJDUMP" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11927 $as_echo "no
" >&6; }
11932 if test -z "$ac_cv_prog_OBJDUMP"; then
11933 ac_ct_OBJDUMP=$OBJDUMP
11934 # Extract the first word of "objdump
", so it can be a program name with args.
11935 set dummy objdump; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11937 $as_echo_n "checking
for $ac_word...
" >&6; }
11938 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11939 $as_echo_n "(cached
) " >&6
11941 if test -n "$ac_ct_OBJDUMP"; then
11942 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945 for as_dir in $PATH
11948 test -z "$as_dir" && as_dir=.
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11951 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11952 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11961 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11962 if test -n "$ac_ct_OBJDUMP"; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11964 $as_echo "$ac_ct_OBJDUMP" >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11967 $as_echo "no
" >&6; }
11970 if test "x
$ac_ct_OBJDUMP" = x; then
11973 case $cross_compiling:$ac_tool_warned in
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11976 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11977 ac_tool_warned=yes ;;
11979 OBJDUMP=$ac_ct_OBJDUMP
11982 OBJDUMP="$ac_cv_prog_OBJDUMP"
11985 test -z "$OBJDUMP" && OBJDUMP=objdump
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11996 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11997 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11998 $as_echo_n "(cached
) " >&6
12000 lt_cv_file_magic_cmd='$MAGIC_CMD'
12001 lt_cv_file_magic_test_file=
12002 lt_cv_deplibs_check_method='unknown'
12003 # Need to set the preceding variable on all platforms that support
12004 # interlibrary dependencies.
12005 # 'none' -- dependencies not supported.
12006 # `unknown' -- same as none, but documents that we really don't know.
12007 # 'pass_all' -- all dependencies passed with no checks.
12008 # 'test_compile' -- check by making test program.
12009 # 'file_magic [[regex]]' -- check by looking for files in library path
12010 # which responds to the $file_magic_cmd with a given extended regex.
12011 # If you have `file' or equivalent on your system and you're not sure
12012 # whether `pass_all' will *always* work, you probably want this one.
12016 lt_cv_deplibs_check_method=pass_all
12020 lt_cv_deplibs_check_method=pass_all
12024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12025 lt_cv_file_magic_cmd='/usr/bin/file -L'
12026 lt_cv_file_magic_test_file=/shlib/libc.so
12030 # func_win32_libid is a shell function defined in ltmain.sh
12031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12032 lt_cv_file_magic_cmd='func_win32_libid'
12036 # Base MSYS/MinGW do not provide the 'file' command needed by
12037 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12038 # unless we find 'file', for example because we are cross-compiling.
12039 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12040 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12042 lt_cv_file_magic_cmd='func_win32_libid'
12044 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12045 lt_cv_file_magic_cmd='$OBJDUMP -f'
12050 # use the weaker test based on 'objdump'. See mingw*.
12051 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12052 lt_cv_file_magic_cmd='$OBJDUMP -f'
12055 darwin* | rhapsody*)
12056 lt_cv_deplibs_check_method=pass_all
12059 freebsd* | dragonfly*)
12060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12063 # Not sure whether the presence of OpenBSD here was a mistake.
12064 # Let's accept both of them until this is cleared up.
12065 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12066 lt_cv_file_magic_cmd=/usr/bin/file
12067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12071 lt_cv_deplibs_check_method=pass_all
12076 lt_cv_deplibs_check_method=pass_all
12080 lt_cv_deplibs_check_method=pass_all
12083 hpux10.20* | hpux11*)
12084 lt_cv_file_magic_cmd=/usr/bin/file
12087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12091 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]'
12092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12106 irix5* | irix6* | nonstopux*)
12108 *-32|*"-32 ") libmagic=32-bit;;
12109 *-n32|*"-n32 ") libmagic=N32;;
12110 *-64|*"-64 ") libmagic=64-bit;;
12111 *) libmagic=never-match;;
12113 lt_cv_deplibs_check_method=pass_all
12116 # This must be Linux ELF.
12117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12118 lt_cv_deplibs_check_method=pass_all
12122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12131 lt_cv_file_magic_cmd=/usr/bin/file
12132 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12136 lt_cv_deplibs_check_method=pass_all
12140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12147 osf3* | osf4* | osf5*)
12148 lt_cv_deplibs_check_method=pass_all
12152 lt_cv_deplibs_check_method=pass_all
12156 lt_cv_deplibs_check_method=pass_all
12159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12160 lt_cv_deplibs_check_method=pass_all
12164 case $host_vendor in
12166 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]'
12167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12170 lt_cv_deplibs_check_method=pass_all
12173 lt_cv_file_magic_cmd='/bin/file'
12174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12177 lt_cv_file_magic_cmd='/bin/file'
12178 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12179 lt_cv_file_magic_test_file=/lib/libc.so
12182 lt_cv_deplibs_check_method=pass_all
12185 lt_cv_deplibs_check_method=pass_all
12191 lt_cv_deplibs_check_method=pass_all
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12197 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12198 file_magic_cmd=$lt_cv_file_magic_cmd
12199 deplibs_check_method=$lt_cv_deplibs_check_method
12200 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12213 if test -n "$ac_tool_prefix"; then
12214 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12215 set dummy ${ac_tool_prefix}ar; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12217 $as_echo_n "checking
for $ac_word...
" >&6; }
12218 if test "${ac_cv_prog_AR+set}" = set; then :
12219 $as_echo_n "(cached
) " >&6
12221 if test -n "$AR"; then
12222 ac_cv_prog_AR="$AR" # Let the user override the test.
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231 ac_cv_prog_AR="${ac_tool_prefix}ar"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12242 if test -n "$AR"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12244 $as_echo "$AR" >&6; }
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12247 $as_echo "no
" >&6; }
12252 if test -z "$ac_cv_prog_AR"; then
12254 # Extract the first word of "ar", so it can be a program name with args.
12255 set dummy ar; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12257 $as_echo_n "checking
for $ac_word...
" >&6; }
12258 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12259 $as_echo_n "(cached
) " >&6
12261 if test -n "$ac_ct_AR"; then
12262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271 ac_cv_prog_ac_ct_AR="ar"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12282 if test -n "$ac_ct_AR"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12284 $as_echo "$ac_ct_AR" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12287 $as_echo "no
" >&6; }
12290 if test "x
$ac_ct_AR" = x; then
12293 case $cross_compiling:$ac_tool_warned in
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12296 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12297 ac_tool_warned=yes ;;
12302 AR="$ac_cv_prog_AR"
12305 test -z "$AR" && AR=ar
12306 test -z "$AR_FLAGS" && AR_FLAGS=cru
12318 if test -n "$ac_tool_prefix"; then
12319 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12320 set dummy ${ac_tool_prefix}strip; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12322 $as_echo_n "checking
for $ac_word...
" >&6; }
12323 if test "${ac_cv_prog_STRIP+set}" = set; then :
12324 $as_echo_n "(cached
) " >&6
12326 if test -n "$STRIP"; then
12327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12346 STRIP=$ac_cv_prog_STRIP
12347 if test -n "$STRIP"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12349 $as_echo "$STRIP" >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12352 $as_echo "no
" >&6; }
12357 if test -z "$ac_cv_prog_STRIP"; then
12359 # Extract the first word of "strip
", so it can be a program name with args.
12360 set dummy strip; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12362 $as_echo_n "checking
for $ac_word...
" >&6; }
12363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12364 $as_echo_n "(cached
) " >&6
12366 if test -n "$ac_ct_STRIP"; then
12367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376 ac_cv_prog_ac_ct_STRIP="strip
"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12387 if test -n "$ac_ct_STRIP"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12389 $as_echo "$ac_ct_STRIP" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12392 $as_echo "no
" >&6; }
12395 if test "x
$ac_ct_STRIP" = x; then
12398 case $cross_compiling:$ac_tool_warned in
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12401 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12402 ac_tool_warned=yes ;;
12407 STRIP="$ac_cv_prog_STRIP"
12410 test -z "$STRIP" && STRIP=:
12417 if test -n "$ac_tool_prefix"; then
12418 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12421 $as_echo_n "checking
for $ac_word...
" >&6; }
12422 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12423 $as_echo_n "(cached
) " >&6
12425 if test -n "$RANLIB"; then
12426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12445 RANLIB=$ac_cv_prog_RANLIB
12446 if test -n "$RANLIB"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12448 $as_echo "$RANLIB" >&6; }
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12451 $as_echo "no
" >&6; }
12456 if test -z "$ac_cv_prog_RANLIB"; then
12457 ac_ct_RANLIB=$RANLIB
12458 # Extract the first word of "ranlib
", so it can be a program name with args.
12459 set dummy ranlib; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12461 $as_echo_n "checking
for $ac_word...
" >&6; }
12462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12463 $as_echo_n "(cached
) " >&6
12465 if test -n "$ac_ct_RANLIB"; then
12466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12486 if test -n "$ac_ct_RANLIB"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12488 $as_echo "$ac_ct_RANLIB" >&6; }
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12491 $as_echo "no
" >&6; }
12494 if test "x
$ac_ct_RANLIB" = x; then
12497 case $cross_compiling:$ac_tool_warned in
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12500 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12501 ac_tool_warned=yes ;;
12503 RANLIB=$ac_ct_RANLIB
12506 RANLIB="$ac_cv_prog_RANLIB"
12509 test -z "$RANLIB" && RANLIB=:
12516 # Determine commands to create old-style static archives.
12517 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12518 old_postinstall_cmds='chmod 644 $oldlib'
12519 old_postuninstall_cmds=
12521 if test -n "$RANLIB"; then
12524 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12527 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12530 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12535 lock_old_archive_extraction=yes ;;
12537 lock_old_archive_extraction=no ;;
12578 # If no C compiler was specified, use CC.
12581 # If no C compiler flags were specified, use CFLAGS.
12582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12584 # Allow CC to be a program name with arguments.
12588 # Check for command to grab the raw symbol name followed by C symbol from nm.
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12590 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12591 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12592 $as_echo_n "(cached
) " >&6
12595 # These are sane defaults that work on at least a few old systems.
12596 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12598 # Character class describing NM global symbol codes.
12599 symcode='[BCDEGRST]'
12601 # Regexp to match symbols that can be accessed directly from C.
12602 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12604 # Define system-specific variables.
12609 cygwin* | mingw* | pw32* | cegcc*)
12610 symcode='[ABCDGISTW]'
12613 if test "$host_cpu" = ia64; then
12614 symcode='[ABCDEGRST]'
12617 irix* | nonstopux*)
12618 symcode='[BCDEGRST]'
12621 symcode='[BCDEGQRST]'
12632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12640 # If we're using GNU nm, then use its standard symbol codes.
12641 case `$NM -V 2>&1` in
12642 *GNU* | *'with BFD'*)
12643 symcode='[ABCDGIRSTW]' ;;
12646 # Transform an extracted symbol line into a proper C declaration.
12647 # Some systems (esp. on ia64) link data and code symbols differently,
12648 # so use this general approach.
12649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12651 # Transform an extracted symbol line into symbol name and symbol address
12652 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12653 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'"
12655 # Handle CRLF in mingw tool chain
12659 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12663 # Try without a prefix underscore, then with it.
12664 for ac_symprfx in "" "_
"; do
12666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12667 symxfrm="\\1 $ac_symprfx\\2 \\2"
12669 # Write the raw and C identifiers.
12670 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12671 # Fake it for dumpbin and say T for any non-static function
12672 # and D for any global variable.
12673 # Also find C++ and __fastcall symbols from MSVC++,
12674 # which start with @ or ?.
12675 lt_cv_sys_global_symbol_pipe="$AWK '"\
12676 " {last_section=section; section=\$ 3};"\
12677 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12678 " \$ 0!~/External *\|/{next};"\
12679 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12680 " {if(hide[section]) next};"\
12681 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12682 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12683 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12684 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12685 " ' prfx
=^
$ac_symprfx"
12687 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12690 # Check to see that the pipe works correctly.
12694 cat > conftest.$ac_ext <<_LT_EOF
12699 void nm_test_func(void);
12700 void nm_test_func(void){}
12704 int main(){nm_test_var='a';nm_test_func();return(0);}
12707 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12708 (eval $ac_compile) 2>&5
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12711 test $ac_status = 0; }; then
12712 # Now try to grab the symbols.
12714 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12715 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12717 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12718 test $ac_status = 0; } && test -s "$nlist"; then
12719 # Try sorting and uniquifying the output.
12720 if sort "$nlist" | uniq > "$nlist"T; then
12721 mv -f "$nlist"T "$nlist"
12726 # Make sure that we snagged all the symbols we need.
12727 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12728 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12729 cat <<_LT_EOF > conftest.$ac_ext
12735 # Now generate the symbol file.
12736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12738 cat <<_LT_EOF >> conftest.$ac_ext
12740 /* The mapping between symbol names and symbols. */
12745 lt__PROGRAM__LTX_preloaded_symbols[] =
12747 { "@PROGRAM@
", (void *) 0 },
12749 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12750 cat <<\_LT_EOF >> conftest.$ac_ext
12754 /* This works around a problem in FreeBSD linker */
12755 #ifdef FREEBSD_WORKAROUND
12756 static const void *lt_preloaded_setup() {
12757 return lt__PROGRAM__LTX_preloaded_symbols;
12765 # Now try linking the two files.
12766 mv conftest.$ac_objext conftstm.$ac_objext
12767 lt_save_LIBS="$LIBS"
12768 lt_save_CFLAGS="$CFLAGS"
12769 LIBS="conftstm.
$ac_objext"
12770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12771 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12772 (eval $ac_link) 2>&5
12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12775 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12778 LIBS="$lt_save_LIBS"
12779 CFLAGS="$lt_save_CFLAGS"
12781 echo "cannot
find nm_test_func
in $nlist" >&5
12784 echo "cannot
find nm_test_var
in $nlist" >&5
12787 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12790 echo "$progname: failed program was
:" >&5
12791 cat conftest.$ac_ext >&5
12793 rm -rf conftest* conftst*
12795 # Do not use the global_symbol_pipe unless it works.
12796 if test "$pipe_works" = yes; then
12799 lt_cv_sys_global_symbol_pipe=
12805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12806 lt_cv_sys_global_symbol_to_cdecl=
12808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12810 $as_echo "failed
" >&6; }
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12813 $as_echo "ok
" >&6; }
12837 # Check whether --enable-libtool-lock was given.
12838 if test "${enable_libtool_lock+set}" = set; then :
12839 enableval=$enable_libtool_lock;
12842 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12844 # Some flags need to be propagated to the compiler or linker for good
12848 # Find out which ABI we are using.
12849 echo 'int i;' > conftest.$ac_ext
12850 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12851 (eval $ac_compile) 2>&5
12853 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12854 test $ac_status = 0; }; then
12855 case `/usr/bin/file conftest.$ac_objext` in
12857 HPUX_IA64_MODE="32"
12860 HPUX_IA64_MODE="64"
12867 # Find out which ABI we are using.
12868 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
12869 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870 (eval $ac_compile) 2>&5
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12873 test $ac_status = 0; }; then
12874 if test "$lt_cv_prog_gnu_ld" = yes; then
12875 case `/usr/bin/file conftest.$ac_objext` in
12877 LD="${LD-ld} -melf32bsmip"
12880 LD="${LD-ld} -melf32bmipn32"
12883 LD="${LD-ld} -melf64bmip"
12887 case `/usr/bin/file conftest.$ac_objext` in
12903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12905 # Find out which ABI we are using.
12906 echo 'int i;' > conftest.$ac_ext
12907 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12908 (eval $ac_compile) 2>&5
12910 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12911 test $ac_status = 0; }; then
12912 case `/usr/bin/file conftest.o` in
12915 x86_64-*kfreebsd*-gnu)
12916 LD="${LD-ld} -m elf_i386_fbsd
"
12919 LD="${LD-ld} -m elf_i386
"
12921 ppc64-*linux*|powerpc64-*linux*)
12922 LD="${LD-ld} -m elf32ppclinux
"
12925 LD="${LD-ld} -m elf_s390
"
12928 LD="${LD-ld} -m elf32_sparc
"
12934 x86_64-*kfreebsd*-gnu)
12935 LD="${LD-ld} -m elf_x86_64_fbsd
"
12938 LD="${LD-ld} -m elf_x86_64
"
12940 ppc*-*linux*|powerpc*-*linux*)
12941 LD="${LD-ld} -m elf64ppc
"
12943 s390*-*linux*|s390*-*tpf*)
12944 LD="${LD-ld} -m elf64_s390
"
12947 LD="${LD-ld} -m elf64_sparc
"
12957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12958 SAVE_CFLAGS="$CFLAGS"
12959 CFLAGS="$CFLAGS -belf"
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12961 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12962 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12963 $as_echo_n "(cached
) " >&6
12966 ac_cpp='$CPP $CPPFLAGS'
12967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12982 if ac_fn_c_try_link "$LINENO"; then :
12983 lt_cv_cc_needs_belf=yes
12985 lt_cv_cc_needs_belf=no
12987 rm -f core conftest.err conftest.$ac_objext \
12988 conftest$ac_exeext conftest.$ac_ext
12990 ac_cpp='$CPP $CPPFLAGS'
12991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12998 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13000 CFLAGS="$SAVE_CFLAGS"
13004 # Find out which ABI we are using.
13005 echo 'int i;' > conftest.$ac_ext
13006 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13007 (eval $ac_compile) 2>&5
13009 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13010 test $ac_status = 0; }; then
13011 case `/usr/bin/file conftest.o` in
13013 case $lt_cv_prog_gnu_ld in
13014 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13028 need_locks="$enable_libtool_lock"
13032 rhapsody* | darwin*)
13033 if test -n "$ac_tool_prefix"; then
13034 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13035 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13037 $as_echo_n "checking
for $ac_word...
" >&6; }
13038 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13039 $as_echo_n "(cached
) " >&6
13041 if test -n "$DSYMUTIL"; then
13042 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13061 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13062 if test -n "$DSYMUTIL"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13064 $as_echo "$DSYMUTIL" >&6; }
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13067 $as_echo "no
" >&6; }
13072 if test -z "$ac_cv_prog_DSYMUTIL"; then
13073 ac_ct_DSYMUTIL=$DSYMUTIL
13074 # Extract the first word of "dsymutil
", so it can be a program name with args.
13075 set dummy dsymutil; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13077 $as_echo_n "checking
for $ac_word...
" >&6; }
13078 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13079 $as_echo_n "(cached
) " >&6
13081 if test -n "$ac_ct_DSYMUTIL"; then
13082 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13091 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13092 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13101 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13102 if test -n "$ac_ct_DSYMUTIL"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13107 $as_echo "no
" >&6; }
13110 if test "x
$ac_ct_DSYMUTIL" = x; then
13113 case $cross_compiling:$ac_tool_warned in
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13116 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13117 ac_tool_warned=yes ;;
13119 DSYMUTIL=$ac_ct_DSYMUTIL
13122 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13125 if test -n "$ac_tool_prefix"; then
13126 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13129 $as_echo_n "checking
for $ac_word...
" >&6; }
13130 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13131 $as_echo_n "(cached
) " >&6
13133 if test -n "$NMEDIT"; then
13134 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13153 NMEDIT=$ac_cv_prog_NMEDIT
13154 if test -n "$NMEDIT"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13156 $as_echo "$NMEDIT" >&6; }
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13159 $as_echo "no
" >&6; }
13164 if test -z "$ac_cv_prog_NMEDIT"; then
13165 ac_ct_NMEDIT=$NMEDIT
13166 # Extract the first word of "nmedit
", so it can be a program name with args.
13167 set dummy nmedit; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13169 $as_echo_n "checking
for $ac_word...
" >&6; }
13170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13171 $as_echo_n "(cached
) " >&6
13173 if test -n "$ac_ct_NMEDIT"; then
13174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13180 test -z "$as_dir" && as_dir=.
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13184 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13194 if test -n "$ac_ct_NMEDIT"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13196 $as_echo "$ac_ct_NMEDIT" >&6; }
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13199 $as_echo "no
" >&6; }
13202 if test "x
$ac_ct_NMEDIT" = x; then
13205 case $cross_compiling:$ac_tool_warned in
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13208 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13209 ac_tool_warned=yes ;;
13211 NMEDIT=$ac_ct_NMEDIT
13214 NMEDIT="$ac_cv_prog_NMEDIT"
13217 if test -n "$ac_tool_prefix"; then
13218 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13219 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13221 $as_echo_n "checking
for $ac_word...
" >&6; }
13222 if test "${ac_cv_prog_LIPO+set}" = set; then :
13223 $as_echo_n "(cached
) " >&6
13225 if test -n "$LIPO"; then
13226 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13245 LIPO=$ac_cv_prog_LIPO
13246 if test -n "$LIPO"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13248 $as_echo "$LIPO" >&6; }
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13251 $as_echo "no
" >&6; }
13256 if test -z "$ac_cv_prog_LIPO"; then
13258 # Extract the first word of "lipo
", so it can be a program name with args.
13259 set dummy lipo; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13261 $as_echo_n "checking
for $ac_word...
" >&6; }
13262 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13263 $as_echo_n "(cached
) " >&6
13265 if test -n "$ac_ct_LIPO"; then
13266 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_ac_ct_LIPO="lipo
"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13286 if test -n "$ac_ct_LIPO"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13288 $as_echo "$ac_ct_LIPO" >&6; }
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13291 $as_echo "no
" >&6; }
13294 if test "x
$ac_ct_LIPO" = x; then
13297 case $cross_compiling:$ac_tool_warned in
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13300 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13301 ac_tool_warned=yes ;;
13306 LIPO="$ac_cv_prog_LIPO"
13309 if test -n "$ac_tool_prefix"; then
13310 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13311 set dummy ${ac_tool_prefix}otool; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13313 $as_echo_n "checking
for $ac_word...
" >&6; }
13314 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13315 $as_echo_n "(cached
) " >&6
13317 if test -n "$OTOOL"; then
13318 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13337 OTOOL=$ac_cv_prog_OTOOL
13338 if test -n "$OTOOL"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13340 $as_echo "$OTOOL" >&6; }
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13343 $as_echo "no
" >&6; }
13348 if test -z "$ac_cv_prog_OTOOL"; then
13350 # Extract the first word of "otool
", so it can be a program name with args.
13351 set dummy otool; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13353 $as_echo_n "checking
for $ac_word...
" >&6; }
13354 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13355 $as_echo_n "(cached
) " >&6
13357 if test -n "$ac_ct_OTOOL"; then
13358 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13367 ac_cv_prog_ac_ct_OTOOL="otool
"
13368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13377 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13378 if test -n "$ac_ct_OTOOL"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13380 $as_echo "$ac_ct_OTOOL" >&6; }
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13383 $as_echo "no
" >&6; }
13386 if test "x
$ac_ct_OTOOL" = x; then
13389 case $cross_compiling:$ac_tool_warned in
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13392 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13393 ac_tool_warned=yes ;;
13398 OTOOL="$ac_cv_prog_OTOOL"
13401 if test -n "$ac_tool_prefix"; then
13402 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13403 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13405 $as_echo_n "checking
for $ac_word...
" >&6; }
13406 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13407 $as_echo_n "(cached
) " >&6
13409 if test -n "$OTOOL64"; then
13410 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13429 OTOOL64=$ac_cv_prog_OTOOL64
13430 if test -n "$OTOOL64"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13432 $as_echo "$OTOOL64" >&6; }
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13435 $as_echo "no
" >&6; }
13440 if test -z "$ac_cv_prog_OTOOL64"; then
13441 ac_ct_OTOOL64=$OTOOL64
13442 # Extract the first word of "otool64
", so it can be a program name with args.
13443 set dummy otool64; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13445 $as_echo_n "checking
for $ac_word...
" >&6; }
13446 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13447 $as_echo_n "(cached
) " >&6
13449 if test -n "$ac_ct_OTOOL64"; then
13450 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13459 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13470 if test -n "$ac_ct_OTOOL64"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13472 $as_echo "$ac_ct_OTOOL64" >&6; }
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13475 $as_echo "no
" >&6; }
13478 if test "x
$ac_ct_OTOOL64" = x; then
13481 case $cross_compiling:$ac_tool_warned in
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13484 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13485 ac_tool_warned=yes ;;
13487 OTOOL64=$ac_ct_OTOOL64
13490 OTOOL64="$ac_cv_prog_OTOOL64"
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13520 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13521 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13522 $as_echo_n "(cached
) " >&6
13524 lt_cv_apple_cc_single_mod=no
13525 if test -z "${LT_MULTI_MODULE}"; then
13526 # By default we will add the -single_module flag. You can override
13527 # by either setting the environment variable LT_MULTI_MODULE
13528 # non-empty at configure time, or by adding -multi_module to the
13530 rm -rf libconftest.dylib*
13531 echo "int foo
(void
){return 1;}" > conftest.c
13532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13533 -dynamiclib -Wl,-single_module conftest.c
" >&5
13534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13535 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13537 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13538 lt_cv_apple_cc_single_mod=yes
13540 cat conftest.err >&5
13542 rm -rf libconftest.dylib*
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13549 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13550 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13551 $as_echo_n "(cached
) " >&6
13553 lt_cv_ld_exported_symbols_list=no
13554 save_LDFLAGS=$LDFLAGS
13555 echo "_main
" > conftest.sym
13556 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 lt_cv_ld_exported_symbols_list=yes
13571 lt_cv_ld_exported_symbols_list=no
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 LDFLAGS="$save_LDFLAGS"
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13581 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13582 if test "${lt_cv_ld_force_load+set}" = set; then :
13583 $as_echo_n "(cached
) " >&6
13585 lt_cv_ld_force_load=no
13586 cat > conftest.c << _LT_EOF
13587 int forced_loaded() { return 2;}
13589 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13590 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13591 echo "$AR cru libconftest.a conftest.o
" >&5
13592 $AR cru libconftest.a conftest.o 2>&5
13593 cat > conftest.c << _LT_EOF
13594 int main() { return 0;}
13596 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13597 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13599 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13600 lt_cv_ld_force_load=yes
13602 cat conftest.err >&5
13604 rm -f conftest.err libconftest.a conftest conftest.c
13605 rm -rf conftest.dSYM
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13609 $as_echo "$lt_cv_ld_force_load" >&6; }
13611 rhapsody* | darwin1.[012])
13612 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13614 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13615 darwin*) # darwin 5.x on
13616 # if running on 10.5 or later, the deployment target defaults
13617 # to the OS version, if on x86, and 10.4, the deployment
13618 # target defaults to 10.4. Don't you love it?
13619 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13620 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13621 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13623 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13625 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13629 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13630 _lt_dar_single_mod='$single_module'
13632 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13633 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13635 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13637 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13638 _lt_dsymutil='~$DSYMUTIL $lib || :'
13645 for ac_header in dlfcn.h
13647 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13648 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_DLFCN_H 1
13668 enable_win32_dll=no
13671 # Check whether --enable-shared was given.
13672 if test "${enable_shared+set}" = set; then :
13673 enableval=$enable_shared; p=${PACKAGE-default}
13675 yes) enable_shared=yes ;;
13676 no) enable_shared=no ;;
13679 # Look at the argument we got. We use all the common list separators.
13680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13681 for pkg in $enableval; do
13683 if test "X
$pkg" = "X
$p"; then
13702 # Check whether --enable-static was given.
13703 if test "${enable_static+set}" = set; then :
13704 enableval=$enable_static; p=${PACKAGE-default}
13706 yes) enable_static=yes ;;
13707 no) enable_static=no ;;
13710 # Look at the argument we got. We use all the common list separators.
13711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13712 for pkg in $enableval; do
13714 if test "X
$pkg" = "X
$p"; then
13734 # Check whether --with-pic was given.
13735 if test "${with_pic+set}" = set; then :
13736 withval=$with_pic; pic_mode="$withval"
13742 test -z "$pic_mode" && pic_mode=default
13750 # Check whether --enable-fast-install was given.
13751 if test "${enable_fast_install+set}" = set; then :
13752 enableval=$enable_fast_install; p=${PACKAGE-default}
13754 yes) enable_fast_install=yes ;;
13755 no) enable_fast_install=no ;;
13757 enable_fast_install=no
13758 # Look at the argument we got. We use all the common list separators.
13759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13760 for pkg in $enableval; do
13762 if test "X
$pkg" = "X
$p"; then
13763 enable_fast_install=yes
13770 enable_fast_install=yes
13783 # This can be used to rebuild libtool when needed
13784 LIBTOOL_DEPS="$ltmain"
13786 # Always use our own libtool.
13787 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13814 test -z "$LN_S" && LN_S="ln -s"
13829 if test -n "${ZSH_VERSION+set}" ; then
13830 setopt NO_GLOB_SUBST
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13834 $as_echo_n "checking
for objdir...
" >&6; }
13835 if test "${lt_cv_objdir+set}" = set; then :
13836 $as_echo_n "(cached
) " >&6
13838 rm -f .libs 2>/dev/null
13839 mkdir .libs 2>/dev/null
13840 if test -d .libs; then
13843 # MS-DOS does not allow filenames that begin with a dot.
13846 rmdir .libs 2>/dev/null
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13849 $as_echo "$lt_cv_objdir" >&6; }
13850 objdir=$lt_cv_objdir
13856 cat >>confdefs.h <<_ACEOF
13857 #define LT_OBJDIR "$lt_cv_objdir/"
13865 # AIX sometimes has problems with the GCC collect2 program. For some
13866 # reason, if we set the COLLECT_NAMES environment variable, the problems
13867 # vanish in a puff of smoke.
13868 if test "X
${COLLECT_NAMES+set}" != Xset; then
13870 export COLLECT_NAMES
13875 # Global variables:
13877 can_build_shared=yes
13879 # All known linkers require a `.a' archive for static linking (except MSVC,
13880 # which needs '.lib').
13883 with_gnu_ld="$lt_cv_prog_gnu_ld"
13886 old_CFLAGS="$CFLAGS"
13888 # Set sane defaults for various variables
13889 test -z "$CC" && CC=cc
13890 test -z "$LTCC" && LTCC=$CC
13891 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13892 test -z "$LD" && LD=ld
13893 test -z "$ac_objext" && ac_objext=o
13895 for cc_temp in $compiler""; do
13897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13903 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
13906 # Only perform the check for file, if the check method requires it
13907 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13908 case $deplibs_check_method in
13910 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
13912 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
13913 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13914 $as_echo_n "(cached
) " >&6
13918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13921 lt_save_MAGIC_CMD="$MAGIC_CMD"
13922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13923 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13924 for ac_dir in $ac_dummy; do
13926 test -z "$ac_dir" && ac_dir=.
13927 if test -f $ac_dir/${ac_tool_prefix}file; then
13928 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13929 if test -n "$file_magic_test_file"; then
13930 case $deplibs_check_method in
13932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13935 $EGREP "$file_magic_regex" > /dev/null; then
13940 *** Warning: the command libtool uses to detect shared libraries,
13941 *** $file_magic_cmd, produces output that libtool cannot recognize.
13942 *** The result is that libtool may fail to recognize shared libraries
13943 *** as such. This will affect the creation of libtool libraries that
13944 *** depend on shared libraries, but programs linked with such libtool
13945 *** libraries will work regardless of this problem. Nevertheless, you
13946 *** may want to report the problem to your system manager and/or to
13947 *** bug-libtool@gnu.org
13957 MAGIC_CMD="$lt_save_MAGIC_CMD"
13962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13963 if test -n "$MAGIC_CMD"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13965 $as_echo "$MAGIC_CMD" >&6; }
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13968 $as_echo "no
" >&6; }
13975 if test -z "$lt_cv_path_MAGIC_CMD"; then
13976 if test -n "$ac_tool_prefix"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
13978 $as_echo_n "checking
for file...
" >&6; }
13979 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13980 $as_echo_n "(cached
) " >&6
13984 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13987 lt_save_MAGIC_CMD="$MAGIC_CMD"
13988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13989 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13990 for ac_dir in $ac_dummy; do
13992 test -z "$ac_dir" && ac_dir=.
13993 if test -f $ac_dir/file; then
13994 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13995 if test -n "$file_magic_test_file"; then
13996 case $deplibs_check_method in
13998 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14000 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14001 $EGREP "$file_magic_regex" > /dev/null; then
14006 *** Warning: the command libtool uses to detect shared libraries,
14007 *** $file_magic_cmd, produces output that libtool cannot recognize.
14008 *** The result is that libtool may fail to recognize shared libraries
14009 *** as such. This will affect the creation of libtool libraries that
14010 *** depend on shared libraries, but programs linked with such libtool
14011 *** libraries will work regardless of this problem. Nevertheless, you
14012 *** may want to report the problem to your system manager and/or to
14013 *** bug-libtool@gnu.org
14023 MAGIC_CMD="$lt_save_MAGIC_CMD"
14028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14029 if test -n "$MAGIC_CMD"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14031 $as_echo "$MAGIC_CMD" >&6; }
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14034 $as_echo "no
" >&6; }
14047 # Use C for the default configuration in the libtool script
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14057 # Source file extension for C test sources.
14060 # Object file extension for compiled C test sources.
14064 # Code to be used in simple compile tests
14065 lt_simple_compile_test_code="int some_variable
= 0;"
14067 # Code to be used in simple link tests
14068 lt_simple_link_test_code='int main(){return(0);}'
14076 # If no C compiler was specified, use CC.
14079 # If no C compiler flags were specified, use CFLAGS.
14080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14082 # Allow CC to be a program name with arguments.
14085 # Save the default compiler, since it gets overwritten when the other
14086 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14087 compiler_DEFAULT=$CC
14089 # save warnings/boilerplate of simple test code
14090 ac_outfile=conftest.$ac_objext
14091 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14092 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_compiler_boilerplate=`cat conftest.err`
14096 ac_outfile=conftest.$ac_objext
14097 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14098 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14099 _lt_linker_boilerplate=`cat conftest.err`
14104 ## There is no encapsulation within the following macros, do not change
14105 ## the running order or otherwise move them around unless you know exactly
14106 ## what you are doing...
14107 if test -n "$compiler"; then
14109 lt_prog_compiler_no_builtin_flag=
14111 if test "$GCC" = yes; then
14112 case $cc_basename in
14114 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14116 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14120 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14121 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14122 $as_echo_n "(cached
) " >&6
14124 lt_cv_prog_compiler_rtti_exceptions=no
14125 ac_outfile=conftest.$ac_objext
14126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14127 lt_compiler_flag="-fno-rtti -fno-exceptions"
14128 # Insert the option either (1) after the last *FLAGS variable, or
14129 # (2) before a word containing "conftest.
", or (3) at the end.
14130 # Note that $ac_compile itself does not contain backslashes and begins
14131 # with a dollar sign (not a hyphen), so the echo should work correctly.
14132 # The option is referenced via a variable to avoid confusing sed.
14133 lt_compile=`echo "$ac_compile" | $SED \
14134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136 -e 's:$: $lt_compiler_flag:'`
14137 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14138 (eval "$lt_compile" 2>conftest.err)
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14142 if (exit $ac_status) && test -s "$ac_outfile"; then
14143 # The compiler can only warn and ignore the option if not recognized
14144 # So say no if there are warnings other than the usual output.
14145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14148 lt_cv_prog_compiler_rtti_exceptions=yes
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14155 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14157 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14158 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14170 lt_prog_compiler_wl=
14171 lt_prog_compiler_pic=
14172 lt_prog_compiler_static=
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14175 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14177 if test "$GCC" = yes; then
14178 lt_prog_compiler_wl='-Wl,'
14179 lt_prog_compiler_static='-static'
14183 # All AIX code is PIC.
14184 if test "$host_cpu" = ia64; then
14185 # AIX 5 now supports IA64 processor
14186 lt_prog_compiler_static='-Bstatic'
14193 # see comment about AmigaOS4 .so support
14194 lt_prog_compiler_pic='-fPIC'
14197 # FIXME: we need at least 68020 code to build shared libraries, but
14198 # adding the `-m68020' flag to GCC prevents building anything better,
14200 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14205 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14206 # PIC is the default for these OSes.
14209 mingw* | cygwin* | pw32* | os2* | cegcc*)
14210 # This hack is so that the source file can tell whether it is being
14211 # built for inclusion in a dll (and should export symbols for example).
14212 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14213 # (--disable-auto-import) libraries
14214 lt_prog_compiler_pic='-DDLL_EXPORT'
14217 darwin* | rhapsody*)
14218 # PIC is the default on this platform
14219 # Common symbols not allowed in MH_DYLIB files
14220 lt_prog_compiler_pic='-fno-common'
14224 # PIC is the default for Haiku.
14225 # The "-static" flag exists, but is broken.
14226 lt_prog_compiler_static=
14230 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14231 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14232 # sets the default TLS model and affects inlining.
14238 lt_prog_compiler_pic='-fPIC'
14244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14245 # Instead, we relocate shared libraries at runtime.
14249 # Just because we use GCC doesn't mean we suddenly get shared libraries
14250 # on systems that don't support them.
14251 lt_prog_compiler_can_build_shared=no
14256 # QNX uses GNU C++, but need to define -shared option too, otherwise
14257 # it will coredump.
14258 lt_prog_compiler_pic='-fPIC -shared'
14262 if test -d /usr/nec; then
14263 lt_prog_compiler_pic=-Kconform_pic
14268 lt_prog_compiler_pic='-fPIC'
14272 case $cc_basename in
14273 nvcc*) # Cuda Compiler Driver 2.2
14274 lt_prog_compiler_wl='-Xlinker '
14275 lt_prog_compiler_pic='-Xcompiler -fPIC'
14279 # PORTME Check for flag to pass linker flags through the system compiler.
14282 lt_prog_compiler_wl='-Wl,'
14283 if test "$host_cpu" = ia64; then
14284 # AIX 5 now supports IA64 processor
14285 lt_prog_compiler_static='-Bstatic'
14287 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14291 mingw* | cygwin* | pw32* | os2* | cegcc*)
14292 # This hack is so that the source file can tell whether it is being
14293 # built for inclusion in a dll (and should export symbols for example).
14294 lt_prog_compiler_pic='-DDLL_EXPORT'
14297 hpux9* | hpux10* | hpux11*)
14298 lt_prog_compiler_wl='-Wl,'
14299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14300 # not for PA HP-UX.
14306 lt_prog_compiler_pic='+Z'
14309 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14310 lt_prog_compiler_static='${wl}-a ${wl}archive'
14313 irix5* | irix6* | nonstopux*)
14314 lt_prog_compiler_wl='-Wl,'
14315 # PIC (with -KPIC) is the default.
14316 lt_prog_compiler_static='-non_shared'
14319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14320 case $cc_basename in
14321 # old Intel for x86_64 which still supported -KPIC.
14323 lt_prog_compiler_wl='-Wl,'
14324 lt_prog_compiler_pic='-KPIC'
14325 lt_prog_compiler_static='-static'
14327 # icc used to be incompatible with GCC.
14328 # ICC 10 doesn't accept -KPIC any more.
14330 lt_prog_compiler_wl='-Wl,'
14331 lt_prog_compiler_pic='-fPIC'
14332 lt_prog_compiler_static='-static'
14334 # Lahey Fortran 8.1.
14336 lt_prog_compiler_wl='-Wl,'
14337 lt_prog_compiler_pic='--shared'
14338 lt_prog_compiler_static='--static'
14340 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14341 # Portland Group compilers (*not* the Pentium gcc compiler,
14342 # which looks to be a dead project)
14343 lt_prog_compiler_wl='-Wl,'
14344 lt_prog_compiler_pic='-fpic'
14345 lt_prog_compiler_static='-Bstatic'
14348 lt_prog_compiler_wl='-Wl,'
14349 # All Alpha code is PIC.
14350 lt_prog_compiler_static='-non_shared'
14352 xl* | bgxl* | bgf* | mpixl*)
14353 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14354 lt_prog_compiler_wl='-Wl,'
14355 lt_prog_compiler_pic='-qpic'
14356 lt_prog_compiler_static='-qstaticlink'
14359 case `$CC -V 2>&1 | sed 5q` in
14360 *Sun\ F* | *Sun*Fortran*)
14361 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14362 lt_prog_compiler_pic='-KPIC'
14363 lt_prog_compiler_static='-Bstatic'
14364 lt_prog_compiler_wl=''
14368 lt_prog_compiler_pic='-KPIC'
14369 lt_prog_compiler_static='-Bstatic'
14370 lt_prog_compiler_wl='-Wl,'
14378 lt_prog_compiler_pic='-KPIC'
14379 lt_prog_compiler_static='-Bstatic'
14383 # QNX uses GNU C++, but need to define -shared option too, otherwise
14384 # it will coredump.
14385 lt_prog_compiler_pic='-fPIC -shared'
14388 osf3* | osf4* | osf5*)
14389 lt_prog_compiler_wl='-Wl,'
14390 # All OSF/1 code is PIC.
14391 lt_prog_compiler_static='-non_shared'
14395 lt_prog_compiler_static='-non_shared'
14399 lt_prog_compiler_pic='-KPIC'
14400 lt_prog_compiler_static='-Bstatic'
14401 case $cc_basename in
14402 f77* | f90* | f95*)
14403 lt_prog_compiler_wl='-Qoption ld ';;
14405 lt_prog_compiler_wl='-Wl,';;
14410 lt_prog_compiler_wl='-Qoption ld '
14411 lt_prog_compiler_pic='-PIC'
14412 lt_prog_compiler_static='-Bstatic'
14415 sysv4 | sysv4.2uw2* | sysv4.3*)
14416 lt_prog_compiler_wl='-Wl,'
14417 lt_prog_compiler_pic='-KPIC'
14418 lt_prog_compiler_static='-Bstatic'
14422 if test -d /usr/nec ;then
14423 lt_prog_compiler_pic='-Kconform_pic'
14424 lt_prog_compiler_static='-Bstatic'
14428 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14429 lt_prog_compiler_wl='-Wl,'
14430 lt_prog_compiler_pic='-KPIC'
14431 lt_prog_compiler_static='-Bstatic'
14435 lt_prog_compiler_wl='-Wl,'
14436 lt_prog_compiler_can_build_shared=no
14440 lt_prog_compiler_pic='-pic'
14441 lt_prog_compiler_static='-Bstatic'
14445 lt_prog_compiler_can_build_shared=no
14451 # For platforms which do not support PIC, -DPIC is meaningless:
14453 lt_prog_compiler_pic=
14456 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14460 $as_echo "$lt_prog_compiler_pic" >&6; }
14468 # Check to make sure the PIC flag actually works.
14470 if test -n "$lt_prog_compiler_pic"; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14472 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14473 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14474 $as_echo_n "(cached
) " >&6
14476 lt_cv_prog_compiler_pic_works=no
14477 ac_outfile=conftest.$ac_objext
14478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14479 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14480 # Insert the option either (1) after the last *FLAGS variable, or
14481 # (2) before a word containing "conftest.
", or (3) at the end.
14482 # Note that $ac_compile itself does not contain backslashes and begins
14483 # with a dollar sign (not a hyphen), so the echo should work correctly.
14484 # The option is referenced via a variable to avoid confusing sed.
14485 lt_compile=`echo "$ac_compile" | $SED \
14486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14488 -e 's:$: $lt_compiler_flag:'`
14489 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14490 (eval "$lt_compile" 2>conftest.err)
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14494 if (exit $ac_status) && test -s "$ac_outfile"; then
14495 # The compiler can only warn and ignore the option if not recognized
14496 # So say no if there are warnings other than the usual output.
14497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14500 lt_cv_prog_compiler_pic_works=yes
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14507 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14509 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14510 case $lt_prog_compiler_pic in
14512 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14515 lt_prog_compiler_pic=
14516 lt_prog_compiler_can_build_shared=no
14527 # Check to make sure the static flag actually works.
14529 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14531 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14532 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14533 $as_echo_n "(cached
) " >&6
14535 lt_cv_prog_compiler_static_works=no
14536 save_LDFLAGS="$LDFLAGS"
14537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14540 # The linker can only warn and ignore the option if not recognized
14541 # So say no if there are warnings
14542 if test -s conftest.err; then
14543 # Append any errors to the config.log.
14544 cat conftest.err 1>&5
14545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14547 if diff conftest.exp conftest.er2 >/dev/null; then
14548 lt_cv_prog_compiler_static_works=yes
14551 lt_cv_prog_compiler_static_works=yes
14555 LDFLAGS="$save_LDFLAGS"
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14559 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14561 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14564 lt_prog_compiler_static=
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14574 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14575 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14576 $as_echo_n "(cached
) " >&6
14578 lt_cv_prog_compiler_c_o=no
14579 $RM -r conftest 2>/dev/null
14583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14585 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14586 # Insert the option either (1) after the last *FLAGS variable, or
14587 # (2) before a word containing "conftest.
", or (3) at the end.
14588 # Note that $ac_compile itself does not contain backslashes and begins
14589 # with a dollar sign (not a hyphen), so the echo should work correctly.
14590 lt_compile=`echo "$ac_compile" | $SED \
14591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14593 -e 's:$: $lt_compiler_flag:'`
14594 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14595 (eval "$lt_compile" 2>out/conftest.err)
14597 cat out/conftest.err >&5
14598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14601 # The compiler can only warn and ignore the option if not recognized
14602 # So say no if there are warnings
14603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14606 lt_cv_prog_compiler_c_o=yes
14611 # SGI C++ compiler will create directory out/ii_files/ for
14612 # template instantiation
14613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14614 $RM out/* && rmdir out
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14621 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14629 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14630 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14631 $as_echo_n "(cached
) " >&6
14633 lt_cv_prog_compiler_c_o=no
14634 $RM -r conftest 2>/dev/null
14638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14640 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14641 # Insert the option either (1) after the last *FLAGS variable, or
14642 # (2) before a word containing "conftest.
", or (3) at the end.
14643 # Note that $ac_compile itself does not contain backslashes and begins
14644 # with a dollar sign (not a hyphen), so the echo should work correctly.
14645 lt_compile=`echo "$ac_compile" | $SED \
14646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14648 -e 's:$: $lt_compiler_flag:'`
14649 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14650 (eval "$lt_compile" 2>out/conftest.err)
14652 cat out/conftest.err >&5
14653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14654 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14656 # The compiler can only warn and ignore the option if not recognized
14657 # So say no if there are warnings
14658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14661 lt_cv_prog_compiler_c_o=yes
14666 # SGI C++ compiler will create directory out/ii_files/ for
14667 # template instantiation
14668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14669 $RM out/* && rmdir out
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14676 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14681 hard_links="nottested
"
14682 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14683 # do not overwrite the value of need_locks provided by the user
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14685 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14690 ln conftest.a conftest.b 2>&5 || hard_links=no
14691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14693 $as_echo "$hard_links" >&6; }
14694 if test "$hard_links" = no; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14696 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14709 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14712 allow_undefined_flag=
14713 always_export_symbols=no
14715 archive_expsym_cmds=
14716 compiler_needs_object=no
14717 enable_shared_with_static_runtimes=no
14718 export_dynamic_flag_spec=
14719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14720 hardcode_automatic=no
14722 hardcode_direct_absolute=no
14723 hardcode_libdir_flag_spec=
14724 hardcode_libdir_flag_spec_ld=
14725 hardcode_libdir_separator=
14726 hardcode_minus_L=no
14727 hardcode_shlibpath_var=unsupported
14729 link_all_deplibs=unknown
14731 module_expsym_cmds=
14732 old_archive_from_new_cmds=
14733 old_archive_from_expsyms_cmds=
14734 thread_safe_flag_spec=
14735 whole_archive_flag_spec=
14736 # include_expsyms should be a list of space-separated symbols to be *always*
14737 # included in the symbol list
14739 # exclude_expsyms can be an extended regexp of symbols to exclude
14740 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14741 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14742 # as well as any symbol that contains `d'.
14743 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14744 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14745 # platforms (ab)use it in PIC code, but their linkers get confused if
14746 # the symbol is explicitly referenced. Since portable code cannot
14747 # rely on this symbol name, it's probably fine to never include it in
14748 # preloaded symbol tables.
14749 # Exclude shared library initialization/finalization symbols.
14750 extract_expsyms_cmds=
14753 cygwin* | mingw* | pw32* | cegcc*)
14754 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14755 # When not using gcc, we currently assume that we are using
14756 # Microsoft Visual C++.
14757 if test "$GCC" != yes; then
14762 # we just hope/assume this is gcc and not c89 (= MSVC++)
14772 # On some targets, GNU ld is compatible enough with the native linker
14773 # that we're better off using the native interface for both.
14774 lt_use_gnu_ld_interface=no
14775 if test "$with_gnu_ld" = yes; then
14778 # The AIX port of GNU ld has always aspired to compatibility
14779 # with the native linker. However, as the warning in the GNU ld
14780 # block says, versions before 2.19.5* couldn't really create working
14781 # shared libraries, regardless of the interface used.
14782 case `$LD -v 2>&1` in
14783 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14784 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14785 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14787 lt_use_gnu_ld_interface=yes
14792 lt_use_gnu_ld_interface=yes
14797 if test "$lt_use_gnu_ld_interface" = yes; then
14798 # If archive_cmds runs LD, not CC, wlarc should be empty
14801 # Set some defaults for GNU ld with shared library support. These
14802 # are reset later if shared libraries are not supported. Putting them
14803 # here allows them to be overridden if necessary.
14804 runpath_var=LD_RUN_PATH
14805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14806 export_dynamic_flag_spec='${wl}--export-dynamic'
14807 # ancient GNU ld didn't support --whole-archive et. al.
14808 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14809 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14811 whole_archive_flag_spec=
14813 supports_anon_versioning=no
14814 case `$LD -v 2>&1` in
14815 *GNU\ gold*) supports_anon_versioning=yes ;;
14816 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14819 *\ 2.11.*) ;; # other 2.11 versions
14820 *) supports_anon_versioning=yes ;;
14823 # See if GNU ld supports shared libraries.
14826 # On AIX/PPC, the GNU linker is very broken
14827 if test "$host_cpu" != ia64; then
14831 *** Warning: the GNU linker, at least up to release 2.19, is reported
14832 *** to be unable to reliably create shared libraries on AIX.
14833 *** Therefore, libtool is disabling shared libraries support. If you
14834 *** really care for shared libraries, you may want to install binutils
14835 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14836 *** You will then need to restart the configuration process.
14845 # see comment about AmigaOS4 .so support
14846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14847 archive_expsym_cmds=''
14850 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)'
14851 hardcode_libdir_flag_spec
='-L$libdir'
14852 hardcode_minus_L
=yes
14858 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14859 allow_undefined_flag
=unsupported
14860 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14861 # support --undefined. This deserves some investigation. FIXME
14862 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14868 cygwin
* | mingw
* | pw32
* | cegcc
*)
14869 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14870 # as there is no search path for DLLs.
14871 hardcode_libdir_flag_spec
='-L$libdir'
14872 export_dynamic_flag_spec
='${wl}--export-all-symbols'
14873 allow_undefined_flag
=unsupported
14874 always_export_symbols
=no
14875 enable_shared_with_static_runtimes
=yes
14876 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14878 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14879 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14880 # If the export-symbols file already is a .def file (1st line
14881 # is EXPORTS), use it as is; otherwise, prepend...
14882 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14883 cp $export_symbols $output_objdir/$soname.def;
14885 echo EXPORTS > $output_objdir/$soname.def;
14886 cat $export_symbols >> $output_objdir/$soname.def;
14888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14895 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896 link_all_deplibs
=yes
14901 hardcode_shlibpath_var
=no
14902 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14903 export_dynamic_flag_spec
='${wl}-E'
14904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14905 # Instead, shared libraries are loaded at an image base (0x10000000 by
14906 # default) and relocated if they conflict, which is a slow very memory
14907 # consuming and fragmenting process. To avoid this, we pick a random,
14908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14909 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14910 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14911 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'
14914 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14916 if test "$host_os" = linux-dietlibc
; then
14917 case $cc_basename in
14918 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14921 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14922 && test "$tmp_diet" = no
14925 tmp_sharedflag
='-shared'
14926 case $cc_basename,$host_cpu in
14927 pgcc
*) # Portland Group C compiler
14928 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'
14929 tmp_addflag
=' $pic_flag'
14931 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
14932 # Portland Group f77 and f90 compilers
14933 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'
14934 tmp_addflag
=' $pic_flag -Mnomain' ;;
14935 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14936 tmp_addflag
=' -i_dynamic' ;;
14937 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14938 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14939 ifc
* | ifort
*) # Intel Fortran compiler
14940 tmp_addflag
=' -nofor_main' ;;
14941 lf95
*) # Lahey Fortran 8.1
14942 whole_archive_flag_spec
=
14943 tmp_sharedflag
='--shared' ;;
14944 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14945 tmp_sharedflag
='-qmkshrobj'
14947 nvcc
*) # Cuda Compiler Driver 2.2
14948 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'
14949 compiler_needs_object
=yes
14952 case `$CC -V 2>&1 | sed 5q` in
14953 *Sun\ C
*) # Sun C 5.9
14954 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'
14955 compiler_needs_object
=yes
14956 tmp_sharedflag
='-G' ;;
14957 *Sun\ F
*) # Sun Fortran 8.3
14958 tmp_sharedflag
='-G' ;;
14960 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14962 if test "x$supports_anon_versioning" = xyes
; then
14963 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14964 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14965 echo "local: *; };" >> $output_objdir/$libname.ver~
14966 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14969 case $cc_basename in
14970 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
14971 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14972 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14973 hardcode_libdir_flag_spec
=
14974 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14975 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14976 if test "x$supports_anon_versioning" = xyes
; then
14977 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14979 echo "local: *; };" >> $output_objdir/$libname.ver~
14980 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14990 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14991 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14994 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14995 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15000 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15004 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15005 *** create shared libraries on Solaris systems. Therefore, libtool
15006 *** is disabling shared libraries support. We urge you to upgrade GNU
15007 *** binutils to release 2.9.1 or newer. Another option is to modify
15008 *** your PATH or compiler configuration so that the native linker is
15009 *** used, and then restart.
15012 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15013 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15020 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15021 case `$LD -v 2>&1` in
15022 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15026 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15027 *** reliably create shared libraries on SCO systems. Therefore, libtool
15028 *** is disabling shared libraries support. We urge you to upgrade GNU
15029 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15030 *** your PATH or compiler configuration so that the native linker is
15031 *** used, and then restart.
15036 # For security reasons, it is highly recommended that you always
15037 # use absolute paths for naming shared libraries, and exclude the
15038 # DT_RUNPATH tag from executables and libraries. But doing so
15039 # requires that you compile everything twice, which is a pain.
15040 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15041 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15042 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15052 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15054 hardcode_direct
=yes
15055 hardcode_shlibpath_var
=no
15059 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15060 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15068 if test "$ld_shlibs" = no
; then
15070 hardcode_libdir_flag_spec
=
15071 export_dynamic_flag_spec
=
15072 whole_archive_flag_spec
=
15075 # PORTME fill in a description of your system's linker (not GNU ld)
15078 allow_undefined_flag
=unsupported
15079 always_export_symbols
=yes
15080 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'
15081 # Note: this linker hardcodes the directories in LIBPATH if there
15082 # are no directories specified by -L.
15083 hardcode_minus_L
=yes
15084 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15085 # Neither direct hardcoding nor static linking is supported with a
15087 hardcode_direct
=unsupported
15092 if test "$host_cpu" = ia64
; then
15093 # On IA64, the linker does run time linking by default, so we don't
15094 # have to do anything special.
15095 aix_use_runtimelinking
=no
15096 exp_sym_flag
='-Bexport'
15099 # If we're using GNU nm, then we don't want the "-C" option.
15100 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15101 # Also, AIX nm treats weak defined symbols like other global
15102 # defined symbols, whereas GNU nm marks them as "W".
15103 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15104 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'
15106 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'
15108 aix_use_runtimelinking
=no
15110 # Test if we are trying to use run time linking or normal
15111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15112 # need to do runtime linking.
15113 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15114 for ld_flag
in $LDFLAGS; do
15115 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15116 aix_use_runtimelinking
=yes
15123 exp_sym_flag
='-bexport'
15124 no_entry_flag
='-bnoentry'
15127 # When large executables or shared objects are built, AIX ld can
15128 # have problems creating the table of contents. If linking a library
15129 # or program results in "error TOC overflow" add -mminimal-toc to
15130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15134 hardcode_direct
=yes
15135 hardcode_direct_absolute
=yes
15136 hardcode_libdir_separator
=':'
15137 link_all_deplibs
=yes
15138 file_list_spec
='${wl}-f,'
15140 if test "$GCC" = yes; then
15141 case $host_os in aix4.
[012]|aix4.
[012].
*)
15142 # We only want to do this on AIX 4.2 and lower, the check
15143 # below for broken collect2 doesn't work under 4.3+
15144 collect2name
=`${CC} -print-prog-name=collect2`
15145 if test -f "$collect2name" &&
15146 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15148 # We have reworked collect2
15151 # We have old collect2
15152 hardcode_direct
=unsupported
15153 # It fails to find uninstalled libraries when the uninstalled
15154 # path is not listed in the libpath. Setting hardcode_minus_L
15155 # to unsupported forces relinking
15156 hardcode_minus_L
=yes
15157 hardcode_libdir_flag_spec
='-L$libdir'
15158 hardcode_libdir_separator
=
15162 shared_flag
='-shared'
15163 if test "$aix_use_runtimelinking" = yes; then
15164 shared_flag
="$shared_flag "'${wl}-G'
15168 if test "$host_cpu" = ia64
; then
15169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170 # chokes on -Wl,-G. The following line is correct:
15173 if test "$aix_use_runtimelinking" = yes; then
15174 shared_flag
='${wl}-G'
15176 shared_flag
='${wl}-bM:SRE'
15181 export_dynamic_flag_spec
='${wl}-bexpall'
15182 # It seems that -bexpall does not export symbols beginning with
15183 # underscore (_), so it is better to generate a list of symbols to export.
15184 always_export_symbols
=yes
15185 if test "$aix_use_runtimelinking" = yes; then
15186 # Warning - without using the other runtime loading flags (-brtl),
15187 # -berok will link without error, but may produce a broken library.
15188 allow_undefined_flag
='-berok'
15189 # Determine the default libpath from the value encoded in an
15190 # empty executable.
15191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15202 if ac_fn_c_try_link
"$LINENO"; then :
15204 lt_aix_libpath_sed
='
15205 /Import File Strings/,/^$/ {
15211 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15212 # Check for a 64-bit object if we didn't find anything.
15213 if test -z "$aix_libpath"; then
15214 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15217 rm -f core conftest.err conftest.
$ac_objext \
15218 conftest
$ac_exeext conftest.
$ac_ext
15219 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15221 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15222 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"
15224 if test "$host_cpu" = ia64
; then
15225 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15226 allow_undefined_flag
="-z nodefs"
15227 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"
15229 # Determine the default libpath from the value encoded in an
15230 # empty executable.
15231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15242 if ac_fn_c_try_link
"$LINENO"; then :
15244 lt_aix_libpath_sed
='
15245 /Import File Strings/,/^$/ {
15251 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15252 # Check for a 64-bit object if we didn't find anything.
15253 if test -z "$aix_libpath"; then
15254 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15257 rm -f core conftest.err conftest.
$ac_objext \
15258 conftest
$ac_exeext conftest.
$ac_ext
15259 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15261 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15262 # Warning - without using the other run time loading flags,
15263 # -berok will link without error, but may produce a broken library.
15264 no_undefined_flag
=' ${wl}-bernotok'
15265 allow_undefined_flag
=' ${wl}-berok'
15266 if test "$with_gnu_ld" = yes; then
15267 # We only use this code for GNU lds that support --whole-archive.
15268 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15270 # Exported symbols can be pulled into shared objects from archives
15271 whole_archive_flag_spec
='$convenience'
15273 archive_cmds_need_lc
=yes
15274 # This is similar to how AIX traditionally builds its shared libraries.
15275 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'
15283 # see comment about AmigaOS4 .so support
15284 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285 archive_expsym_cmds
=''
15288 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)'
15289 hardcode_libdir_flag_spec
='-L$libdir'
15290 hardcode_minus_L
=yes
15296 export_dynamic_flag_spec
=-rdynamic
15299 cygwin
* | mingw
* | pw32
* | cegcc
*)
15300 # When not using gcc, we currently assume that we are using
15301 # Microsoft Visual C++.
15302 # hardcode_libdir_flag_spec is actually meaningless, as there is
15303 # no search path for DLLs.
15304 hardcode_libdir_flag_spec
=' '
15305 allow_undefined_flag
=unsupported
15306 # Tell ltmain to make .lib files, not .a files.
15308 # Tell ltmain to make .dll files, not .so files.
15310 # FIXME: Setting linknames here is a bad hack.
15311 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15312 # The linker will automatically build a .lib file if we build a DLL.
15313 old_archive_from_new_cmds
='true'
15314 # FIXME: Should let the user specify the lib program.
15315 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15316 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15317 enable_shared_with_static_runtimes
=yes
15320 darwin
* | rhapsody
*)
15323 archive_cmds_need_lc
=no
15325 hardcode_automatic
=yes
15326 hardcode_shlibpath_var
=unsupported
15327 if test "$lt_cv_ld_force_load" = "yes"; then
15328 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\"`'
15330 whole_archive_flag_spec
=''
15332 link_all_deplibs
=yes
15333 allow_undefined_flag
="$_lt_dar_allow_undefined"
15334 case $cc_basename in
15335 ifort
*) _lt_dar_can_shared
=yes ;;
15336 *) _lt_dar_can_shared
=$GCC ;;
15338 if test "$_lt_dar_can_shared" = "yes"; then
15339 output_verbose_link_cmd
=func_echo_all
15340 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15341 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15342 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}"
15343 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}"
15352 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353 hardcode_libdir_flag_spec
='-L$libdir'
15354 hardcode_shlibpath_var
=no
15361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15362 # support. Future versions do this automatically, but an explicit c++rt0.o
15363 # does not break anything, and helps significantly (at the cost of a little
15366 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15367 hardcode_libdir_flag_spec
='-R$libdir'
15368 hardcode_direct
=yes
15369 hardcode_shlibpath_var
=no
15372 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15374 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15375 hardcode_direct
=yes
15376 hardcode_minus_L
=yes
15377 hardcode_shlibpath_var
=no
15380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15381 freebsd
* | dragonfly
*)
15382 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15383 hardcode_libdir_flag_spec
='-R$libdir'
15384 hardcode_direct
=yes
15385 hardcode_shlibpath_var
=no
15389 if test "$GCC" = yes; then
15390 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'
15392 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'
15394 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15395 hardcode_libdir_separator
=:
15396 hardcode_direct
=yes
15398 # hardcode_minus_L: Not really in the search PATH,
15399 # but as the default location of the library.
15400 hardcode_minus_L
=yes
15401 export_dynamic_flag_spec
='${wl}-E'
15405 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15406 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15408 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15410 if test "$with_gnu_ld" = no
; then
15411 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15412 hardcode_libdir_flag_spec_ld
='+b $libdir'
15413 hardcode_libdir_separator
=:
15414 hardcode_direct
=yes
15415 hardcode_direct_absolute
=yes
15416 export_dynamic_flag_spec
='${wl}-E'
15417 # hardcode_minus_L: Not really in the search PATH,
15418 # but as the default location of the library.
15419 hardcode_minus_L
=yes
15424 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15427 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15430 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15433 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15439 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15446 # Older versions of the 11.00 compiler do not understand -b yet
15447 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15449 $as_echo_n "checking if $CC understands -b... " >&6; }
15450 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15451 $as_echo_n "(cached) " >&6
15453 lt_cv_prog_compiler__b
=no
15454 save_LDFLAGS
="$LDFLAGS"
15455 LDFLAGS
="$LDFLAGS -b"
15456 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15457 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15458 # The linker can only warn and ignore the option if not recognized
15459 # So say no if there are warnings
15460 if test -s conftest.err
; then
15461 # Append any errors to the config.log.
15462 cat conftest.err
1>&5
15463 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15464 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15465 if diff conftest.exp conftest.er2
>/dev
/null
; then
15466 lt_cv_prog_compiler__b
=yes
15469 lt_cv_prog_compiler__b
=yes
15473 LDFLAGS
="$save_LDFLAGS"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15477 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15479 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15480 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15482 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15488 if test "$with_gnu_ld" = no
; then
15489 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15490 hardcode_libdir_separator
=:
15495 hardcode_shlibpath_var
=no
15498 hardcode_direct
=yes
15499 hardcode_direct_absolute
=yes
15500 export_dynamic_flag_spec
='${wl}-E'
15502 # hardcode_minus_L: Not really in the search PATH,
15503 # but as the default location of the library.
15504 hardcode_minus_L
=yes
15510 irix5
* | irix6
* | nonstopux
*)
15511 if test "$GCC" = yes; then
15512 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'
15513 # Try to use the -exported_symbol ld option, if it does not
15514 # work, assume that -exports_file does not work either and
15515 # implicitly export all symbols.
15516 save_LDFLAGS
="$LDFLAGS"
15517 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15522 if ac_fn_c_try_link
"$LINENO"; then :
15523 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'
15526 rm -f core conftest.err conftest.
$ac_objext \
15527 conftest
$ac_exeext conftest.
$ac_ext
15528 LDFLAGS
="$save_LDFLAGS"
15530 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'
15531 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'
15533 archive_cmds_need_lc
='no'
15534 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15535 hardcode_libdir_separator
=:
15537 link_all_deplibs
=yes
15541 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15542 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15544 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15546 hardcode_libdir_flag_spec
='-R$libdir'
15547 hardcode_direct
=yes
15548 hardcode_shlibpath_var
=no
15552 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_direct
=yes
15554 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15555 hardcode_libdir_separator
=:
15556 hardcode_shlibpath_var
=no
15563 if test -f /usr
/libexec
/ld.so
; then
15564 hardcode_direct
=yes
15565 hardcode_shlibpath_var
=no
15566 hardcode_direct_absolute
=yes
15567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15568 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15569 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15570 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15571 export_dynamic_flag_spec
='${wl}-E'
15574 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15575 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_libdir_flag_spec
='-R$libdir'
15579 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15590 hardcode_libdir_flag_spec
='-L$libdir'
15591 hardcode_minus_L
=yes
15592 allow_undefined_flag
=unsupported
15593 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'
15594 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15598 if test "$GCC" = yes; then
15599 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15600 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'
15602 allow_undefined_flag
=' -expect_unresolved \*'
15603 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'
15605 archive_cmds_need_lc
='no'
15606 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15607 hardcode_libdir_separator
=:
15610 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15611 if test "$GCC" = yes; then
15612 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15613 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'
15614 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15616 allow_undefined_flag
=' -expect_unresolved \*'
15617 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'
15618 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~
15619 $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'
15621 # Both c and cxx compiler support -rpath directly
15622 hardcode_libdir_flag_spec
='-rpath $libdir'
15624 archive_cmds_need_lc
='no'
15625 hardcode_libdir_separator
=:
15629 no_undefined_flag
=' -z defs'
15630 if test "$GCC" = yes; then
15632 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15634 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15636 case `$CC -V 2>&1` in
15639 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15640 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15645 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15646 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15647 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15651 hardcode_libdir_flag_spec
='-R$libdir'
15652 hardcode_shlibpath_var
=no
15654 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15656 # The compiler driver will combine and reorder linker options,
15657 # but understands `-z linker_flag'. GCC discards it without `$wl',
15658 # but is careful enough not to reorder.
15659 # Supported since Solaris 2.6 (maybe 2.5.1?)
15660 if test "$GCC" = yes; then
15661 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15663 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15667 link_all_deplibs
=yes
15671 if test "x$host_vendor" = xsequent
; then
15672 # Use $CC to link under sequent, because it throws in some extra .o
15673 # files that make .init and .fini sections work.
15674 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15676 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_libdir_flag_spec
='-L$libdir'
15679 hardcode_direct
=yes
15680 hardcode_minus_L
=yes
15681 hardcode_shlibpath_var
=no
15685 case $host_vendor in
15687 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688 hardcode_direct
=yes # is this really true???
15691 ## LD is ld it makes a PLAMLIB
15692 ## CC just makes a GrossModule.
15693 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15694 reload_cmds
='$CC -r -o $output$reload_objs'
15698 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15702 runpath_var
='LD_RUN_PATH'
15703 hardcode_shlibpath_var
=no
15707 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_shlibpath_var
=no
15709 export_dynamic_flag_spec
='-Bexport'
15713 if test -d /usr
/nec
; then
15714 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_shlibpath_var
=no
15716 runpath_var
=LD_RUN_PATH
15717 hardcode_runpath_var
=yes
15722 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15723 no_undefined_flag
='${wl}-z,text'
15724 archive_cmds_need_lc
=no
15725 hardcode_shlibpath_var
=no
15726 runpath_var
='LD_RUN_PATH'
15728 if test "$GCC" = yes; then
15729 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15737 sysv5
* | sco3.2v5
* | sco5v6
*)
15738 # Note: We can NOT use -z defs as we might desire, because we do not
15739 # link with -lc, and that would cause any symbols used from libc to
15740 # always be unresolved, which means just about no library would
15741 # ever link correctly. If we're not using GNU ld we use -z text
15742 # though, which does catch some bad symbols but isn't as heavy-handed
15744 no_undefined_flag
='${wl}-z,text'
15745 allow_undefined_flag
='${wl}-z,nodefs'
15746 archive_cmds_need_lc
=no
15747 hardcode_shlibpath_var
=no
15748 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15749 hardcode_libdir_separator
=':'
15750 link_all_deplibs
=yes
15751 export_dynamic_flag_spec
='${wl}-Bexport'
15752 runpath_var
='LD_RUN_PATH'
15754 if test "$GCC" = yes; then
15755 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15764 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_libdir_flag_spec
='-L$libdir'
15766 hardcode_shlibpath_var
=no
15774 if test x
$host_vendor = xsni
; then
15776 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15777 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15784 $as_echo "$ld_shlibs" >&6; }
15785 test "$ld_shlibs" = no
&& can_build_shared
=no
15787 with_gnu_ld
=$with_gnu_ld
15804 # Do we need to explicitly link libc?
15806 case "x$archive_cmds_need_lc" in
15808 # Assume -lc should be added
15809 archive_cmds_need_lc
=yes
15811 if test "$enable_shared" = yes && test "$GCC" = yes; then
15812 case $archive_cmds in
15814 # FIXME: we may have to deal with multi-command sequences.
15817 # Test whether the compiler implicitly links with -lc since on some
15818 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15819 # to ld, don't add -lc before -lgcc.
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15821 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15822 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15823 $as_echo_n "(cached) " >&6
15826 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15829 (eval $ac_compile) 2>&5
15831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15832 test $ac_status = 0; } 2>conftest.err
; then
15835 libobjs
=conftest.
$ac_objext
15837 wl
=$lt_prog_compiler_wl
15838 pic_flag
=$lt_prog_compiler_pic
15844 lt_save_allow_undefined_flag
=$allow_undefined_flag
15845 allow_undefined_flag
=
15846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15847 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15850 test $ac_status = 0; }
15852 lt_cv_archive_cmds_need_lc
=no
15854 lt_cv_archive_cmds_need_lc
=yes
15856 allow_undefined_flag
=$lt_save_allow_undefined_flag
15858 cat conftest.err
1>&5
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15864 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15865 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16029 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16031 if test "$GCC" = yes; then
16033 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16034 *) lt_awk_arg
="/^libraries:/" ;;
16037 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16038 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16040 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16041 case $lt_search_path_spec in
16043 # if the path contains ";" then we assume it to be the separator
16044 # otherwise default to the standard path separator (i.e. ":") - it is
16045 # assumed that no part of a normal pathname contains ";" but that should
16046 # okay in the real world where ";" in dirpaths is itself problematic.
16047 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16050 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16053 # Ok, now we have the path, separated by spaces, we can step through it
16054 # and add multilib dir if necessary.
16055 lt_tmp_lt_search_path_spec
=
16056 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16057 for lt_sys_path
in $lt_search_path_spec; do
16058 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16059 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16061 test -d "$lt_sys_path" && \
16062 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16065 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16066 BEGIN {RS=" "; FS="/|\n";} {
16069 for (lt_i = NF; lt_i > 0; lt_i--) {
16070 if ($lt_i != "" && $lt_i != ".") {
16071 if ($lt_i == "..") {
16074 if (lt_count == 0) {
16075 lt_foo="/" $lt_i lt_foo;
16082 if (lt_foo != "") { lt_freq[lt_foo]++; }
16083 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16085 # AWK program above erroneously prepends '/' to C:/dos/paths
16088 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16089 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16091 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16093 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16095 library_names_spec
=
16096 libname_spec
='lib$name'
16100 postuninstall_cmds
=
16104 shlibpath_overrides_runpath
=unknown
16106 dynamic_linker
="$host_os ld.so"
16107 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16108 need_lib_prefix
=unknown
16109 hardcode_into_libs
=no
16111 # when you set need_version to no, make sure it does not cause -set_version
16112 # flags to be left without arguments
16113 need_version
=unknown
16118 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16119 shlibpath_var
=LIBPATH
16121 # AIX 3 has no versioning support, so we append a major version to the name.
16122 soname_spec
='${libname}${release}${shared_ext}$major'
16129 hardcode_into_libs
=yes
16130 if test "$host_cpu" = ia64
; then
16131 # AIX 5 supports IA64
16132 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16133 shlibpath_var
=LD_LIBRARY_PATH
16135 # With GCC up to 2.95.x, collect2 would create an import file
16136 # for dependence libraries. The import file would start with
16137 # the line `#! .'. This would cause the generated library to
16138 # depend on `.', always an invalid library. This was fixed in
16139 # development snapshots of GCC prior to 3.0.
16141 aix4 | aix4.
[01] | aix4.
[01].
*)
16142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16144 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16147 can_build_shared
=no
16151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16152 # soname into executable. Probably we can add versioning support to
16153 # collect2, so additional links can be useful in future.
16154 if test "$aix_use_runtimelinking" = yes; then
16155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16156 # instead of lib<name>.a to let people know that these are not
16157 # typical AIX shared libraries.
16158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160 # We preserve .a as extension for shared libraries through AIX4.2
16161 # and later when we are not doing run time linking.
16162 library_names_spec
='${libname}${release}.a $libname.a'
16163 soname_spec
='${libname}${release}${shared_ext}$major'
16165 shlibpath_var
=LIBPATH
16172 # Since July 2007 AmigaOS4 officially supports .so libraries.
16173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16177 library_names_spec
='$libname.ixlibrary $libname.a'
16178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16179 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'
16185 library_names_spec
='${libname}${shared_ext}'
16186 dynamic_linker
="$host_os ld.so"
16187 shlibpath_var
=LIBRARY_PATH
16193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194 soname_spec
='${libname}${release}${shared_ext}$major'
16195 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16196 shlibpath_var
=LD_LIBRARY_PATH
16197 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16198 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16199 # the default ld.so.conf also contains /usr/contrib/lib and
16200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16201 # libtool to hard-code these into programs
16204 cygwin
* | mingw
* | pw32
* | cegcc
*)
16205 version_type
=windows
16210 case $GCC,$host_os in
16211 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16212 library_names_spec
='$libname.dll.a'
16213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16214 postinstall_cmds
='base_file=`basename \${file}`~
16215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16216 dldir=$destdir/`dirname \$dlpath`~
16217 test -d \$dldir || mkdir -p \$dldir~
16218 $install_prog $dir/$dlname \$dldir/$dlname~
16219 chmod a+x \$dldir/$dlname~
16220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16223 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16224 dlpath=$dir/\$dldll~
16226 shlibpath_overrides_runpath
=yes
16230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16231 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16233 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16236 # MinGW DLLs use traditional 'lib' prefix
16237 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16240 # pw32 DLLs use 'pw' prefix rather than 'lib'
16241 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16247 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16250 dynamic_linker
='Win32 ld.exe'
16251 # FIXME: first we should search . and the directory the executable is in
16255 darwin
* | rhapsody
*)
16256 dynamic_linker
="$host_os dyld"
16257 version_type
=darwin
16260 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16261 soname_spec
='${libname}${release}${major}$shared_ext'
16262 shlibpath_overrides_runpath
=yes
16263 shlibpath_var
=DYLD_LIBRARY_PATH
16264 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16266 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16267 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16275 soname_spec
='${libname}${release}${shared_ext}$major'
16276 shlibpath_var
=LD_LIBRARY_PATH
16283 freebsd
* | dragonfly
*)
16284 # DragonFly does not have aout. When/if they implement a new
16285 # versioning mechanism, adjust this.
16286 if test -x /usr
/bin
/objformat
; then
16287 objformat
=`/usr/bin/objformat`
16290 freebsd
[123]*) objformat
=aout
;;
16291 *) objformat
=elf
;;
16294 version_type
=freebsd-
$objformat
16295 case $version_type in
16297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16302 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16306 shlibpath_var
=LD_LIBRARY_PATH
16309 shlibpath_overrides_runpath
=yes
16311 freebsd3.
[01]* | freebsdelf3.
[01]*)
16312 shlibpath_overrides_runpath
=yes
16313 hardcode_into_libs
=yes
16315 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16316 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16317 shlibpath_overrides_runpath
=no
16318 hardcode_into_libs
=yes
16320 *) # from 4.6 on, and DragonFly
16321 shlibpath_overrides_runpath
=yes
16322 hardcode_into_libs
=yes
16331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16332 soname_spec
='${libname}${release}${shared_ext}$major'
16333 shlibpath_var
=LD_LIBRARY_PATH
16334 hardcode_into_libs
=yes
16341 dynamic_linker
="$host_os runtime_loader"
16342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16343 soname_spec
='${libname}${release}${shared_ext}$major'
16344 shlibpath_var
=LIBRARY_PATH
16345 shlibpath_overrides_runpath
=yes
16346 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16347 hardcode_into_libs
=yes
16350 hpux9
* | hpux10
* | hpux11
*)
16351 # Give a soname corresponding to the major version so that dld.sl refuses to
16352 # link against other versions.
16359 hardcode_into_libs
=yes
16360 dynamic_linker
="$host_os dld.so"
16361 shlibpath_var
=LD_LIBRARY_PATH
16362 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16364 soname_spec
='${libname}${release}${shared_ext}$major'
16365 if test "X$HPUX_IA64_MODE" = X32
; then
16366 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16368 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16370 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16374 hardcode_into_libs
=yes
16375 dynamic_linker
="$host_os dld.sl"
16376 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16377 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 soname_spec
='${libname}${release}${shared_ext}$major'
16380 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16381 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16385 dynamic_linker
="$host_os dld.sl"
16386 shlibpath_var
=SHLIB_PATH
16387 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 soname_spec
='${libname}${release}${shared_ext}$major'
16392 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16393 postinstall_cmds
='chmod 555 $lib'
16394 # or fails outright, so override atomically:
16395 install_override_mode
=555
16402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16403 soname_spec
='${libname}${release}${shared_ext}$major'
16404 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16405 shlibpath_var
=LD_LIBRARY_PATH
16406 shlibpath_overrides_runpath
=no
16407 hardcode_into_libs
=yes
16410 irix5
* | irix6
* | nonstopux
*)
16412 nonstopux
*) version_type
=nonstopux
;;
16414 if test "$lt_cv_prog_gnu_ld" = yes; then
16422 soname_spec
='${libname}${release}${shared_ext}$major'
16423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16425 irix5
* | nonstopux
*)
16426 libsuff
= shlibsuff
=
16429 case $LD in # libtool.m4 will add one of these switches to LD
16430 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16431 libsuff
= shlibsuff
= libmagic
=32-bit;;
16432 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16433 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16434 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16435 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16436 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16440 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16441 shlibpath_overrides_runpath
=no
16442 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16443 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16444 hardcode_into_libs
=yes
16447 # No shared lib support for Linux oldld, aout, or coff.
16448 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16452 # This must be Linux ELF.
16453 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458 soname_spec
='${libname}${release}${shared_ext}$major'
16459 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16460 shlibpath_var
=LD_LIBRARY_PATH
16461 shlibpath_overrides_runpath
=no
16463 # Some binutils ld are patched to set DT_RUNPATH
16464 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
16467 lt_cv_shlibpath_overrides_runpath
=no
16468 save_LDFLAGS
=$LDFLAGS
16469 save_libdir
=$libdir
16470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16483 if ac_fn_c_try_link
"$LINENO"; then :
16484 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16485 lt_cv_shlibpath_overrides_runpath
=yes
16488 rm -f core conftest.err conftest.
$ac_objext \
16489 conftest
$ac_exeext conftest.
$ac_ext
16490 LDFLAGS
=$save_LDFLAGS
16491 libdir
=$save_libdir
16495 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16497 # This implies no fast_install, which is unacceptable.
16498 # Some rework will be needed to allow for fast_install
16499 # before this can be enabled.
16500 hardcode_into_libs
=yes
16502 # Append ld.so.conf contents to the search path
16503 if test -f /etc
/ld.so.conf
; then
16504 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' ' '`
16505 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16508 # We used to test for /lib/ld.so.1 and disable shared libraries on
16509 # powerpc, because MkLinux only supported shared libraries with the
16510 # GNU dynamic linker. Since this was broken with cross compilers,
16511 # most powerpc-linux boxes support dynamic linking these days and
16512 # people can always --disable-shared, the test was removed, and we
16513 # assume the GNU/Linux dynamic linker is in use.
16514 dynamic_linker
='GNU/Linux ld.so'
16521 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16523 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16524 dynamic_linker
='NetBSD (a.out) ld.so'
16526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527 soname_spec
='${libname}${release}${shared_ext}$major'
16528 dynamic_linker
='NetBSD ld.elf_so'
16530 shlibpath_var
=LD_LIBRARY_PATH
16531 shlibpath_overrides_runpath
=yes
16532 hardcode_into_libs
=yes
16537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538 shlibpath_var
=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath
=yes
16546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547 soname_spec
='${libname}${release}${shared_ext}$major'
16548 shlibpath_var
=LD_LIBRARY_PATH
16549 shlibpath_overrides_runpath
=no
16550 hardcode_into_libs
=yes
16551 dynamic_linker
='ldqnx.so'
16556 sys_lib_dlsearch_path_spec
="/usr/lib"
16558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16560 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16561 *) need_version
=no
;;
16563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16564 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16565 shlibpath_var
=LD_LIBRARY_PATH
16566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16568 openbsd2.
[89] | openbsd2.
[89].
*)
16569 shlibpath_overrides_runpath
=no
16572 shlibpath_overrides_runpath
=yes
16576 shlibpath_overrides_runpath
=yes
16581 libname_spec
='$name'
16584 library_names_spec
='$libname${shared_ext} $libname.a'
16585 dynamic_linker
='OS/2 ld.exe'
16586 shlibpath_var
=LIBPATH
16589 osf3
* | osf4
* | osf5
*)
16593 soname_spec
='${libname}${release}${shared_ext}$major'
16594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595 shlibpath_var
=LD_LIBRARY_PATH
16596 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16597 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609 soname_spec
='${libname}${release}${shared_ext}$major'
16610 shlibpath_var
=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath
=yes
16612 hardcode_into_libs
=yes
16613 # ldd complains unless libraries are executable
16614 postinstall_cmds
='chmod +x $lib'
16619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16620 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16621 shlibpath_var
=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath
=yes
16623 if test "$with_gnu_ld" = yes; then
16631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec
='${libname}${release}${shared_ext}$major'
16633 shlibpath_var
=LD_LIBRARY_PATH
16634 case $host_vendor in
16636 shlibpath_overrides_runpath
=no
16638 runpath_var
=LD_RUN_PATH
16646 shlibpath_overrides_runpath
=no
16647 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16653 if test -d /usr
/nec
;then
16655 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16656 soname_spec
='$libname${shared_ext}.$major'
16657 shlibpath_var
=LD_LIBRARY_PATH
16661 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16662 version_type
=freebsd-elf
16665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16666 soname_spec
='${libname}${release}${shared_ext}$major'
16667 shlibpath_var
=LD_LIBRARY_PATH
16668 shlibpath_overrides_runpath
=yes
16669 hardcode_into_libs
=yes
16670 if test "$with_gnu_ld" = yes; then
16671 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16673 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16676 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16680 sys_lib_dlsearch_path_spec
='/usr/lib'
16684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689 shlibpath_var
=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath
=no
16691 hardcode_into_libs
=yes
16696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 soname_spec
='${libname}${release}${shared_ext}$major'
16698 shlibpath_var
=LD_LIBRARY_PATH
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16706 $as_echo "$dynamic_linker" >&6; }
16707 test "$dynamic_linker" = no
&& can_build_shared
=no
16709 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16710 if test "$GCC" = yes; then
16711 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16714 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16715 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16717 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16718 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16813 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16815 if test -n "$hardcode_libdir_flag_spec" ||
16816 test -n "$runpath_var" ||
16817 test "X$hardcode_automatic" = "Xyes" ; then
16819 # We can hardcode non-existent directories.
16820 if test "$hardcode_direct" != no
&&
16821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16822 # have to relink, otherwise we might link with an installed library
16823 # when we should be linking with a yet-to-be-installed one
16824 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16825 test "$hardcode_minus_L" != no
; then
16826 # Linking always hardcodes the temporary library directory.
16827 hardcode_action
=relink
16829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16830 hardcode_action
=immediate
16833 # We cannot hardcode anything, or else we can only hardcode existing
16835 hardcode_action
=unsupported
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16838 $as_echo "$hardcode_action" >&6; }
16840 if test "$hardcode_action" = relink ||
16841 test "$inherit_rpath" = yes; then
16842 # Fast installation is not supported
16843 enable_fast_install
=no
16844 elif test "$shlibpath_overrides_runpath" = yes ||
16845 test "$enable_shared" = no
; then
16846 # Fast installation is not necessary
16847 enable_fast_install
=needless
16855 if test "x$enable_dlopen" != xyes
; then
16856 enable_dlopen
=unknown
16857 enable_dlopen_self
=unknown
16858 enable_dlopen_self_static
=unknown
16865 lt_cv_dlopen
="load_add_on"
16867 lt_cv_dlopen_self
=yes
16870 mingw
* | pw32
* | cegcc
*)
16871 lt_cv_dlopen
="LoadLibrary"
16876 lt_cv_dlopen
="dlopen"
16881 # if libdl is installed we need to link against it
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16883 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16884 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16885 $as_echo_n "(cached) " >&6
16887 ac_check_lib_save_LIBS
=$LIBS
16889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16892 /* Override any GCC internal prototype to avoid an error.
16893 Use char because int might match the return type of a GCC
16894 builtin and then its argument prototype would still apply. */
16907 if ac_fn_c_try_link
"$LINENO"; then :
16908 ac_cv_lib_dl_dlopen
=yes
16910 ac_cv_lib_dl_dlopen
=no
16912 rm -f core conftest.err conftest.
$ac_objext \
16913 conftest
$ac_exeext conftest.
$ac_ext
16914 LIBS
=$ac_check_lib_save_LIBS
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16917 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16918 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16919 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16922 lt_cv_dlopen
="dyld"
16924 lt_cv_dlopen_self
=yes
16931 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16932 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16933 lt_cv_dlopen
="shl_load"
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16936 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16937 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16938 $as_echo_n "(cached) " >&6
16940 ac_check_lib_save_LIBS
=$LIBS
16942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16955 return shl_load ();
16960 if ac_fn_c_try_link
"$LINENO"; then :
16961 ac_cv_lib_dld_shl_load
=yes
16963 ac_cv_lib_dld_shl_load
=no
16965 rm -f core conftest.err conftest.
$ac_objext \
16966 conftest
$ac_exeext conftest.
$ac_ext
16967 LIBS
=$ac_check_lib_save_LIBS
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16970 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16971 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16972 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16974 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16975 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16976 lt_cv_dlopen
="dlopen"
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16980 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16983 ac_check_lib_save_LIBS
=$LIBS
16985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16988 /* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
17003 if ac_fn_c_try_link
"$LINENO"; then :
17004 ac_cv_lib_dl_dlopen
=yes
17006 ac_cv_lib_dl_dlopen
=no
17008 rm -f core conftest.err conftest.
$ac_objext \
17009 conftest
$ac_exeext conftest.
$ac_ext
17010 LIBS
=$ac_check_lib_save_LIBS
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17013 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17014 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17015 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17018 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17020 $as_echo_n "(cached) " >&6
17022 ac_check_lib_save_LIBS
=$LIBS
17023 LIBS
="-lsvld $LIBS"
17024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17027 /* Override any GCC internal prototype to avoid an error.
17028 Use char because int might match the return type of a GCC
17029 builtin and then its argument prototype would still apply. */
17042 if ac_fn_c_try_link
"$LINENO"; then :
17043 ac_cv_lib_svld_dlopen
=yes
17045 ac_cv_lib_svld_dlopen
=no
17047 rm -f core conftest.err conftest.
$ac_objext \
17048 conftest
$ac_exeext conftest.
$ac_ext
17049 LIBS
=$ac_check_lib_save_LIBS
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17052 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17053 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17054 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17057 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17059 $as_echo_n "(cached) " >&6
17061 ac_check_lib_save_LIBS
=$LIBS
17063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17066 /* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17076 return dld_link ();
17081 if ac_fn_c_try_link
"$LINENO"; then :
17082 ac_cv_lib_dld_dld_link
=yes
17084 ac_cv_lib_dld_dld_link
=no
17086 rm -f core conftest.err conftest.
$ac_objext \
17087 conftest
$ac_exeext conftest.
$ac_ext
17088 LIBS
=$ac_check_lib_save_LIBS
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17091 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17092 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17093 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17114 if test "x$lt_cv_dlopen" != xno
; then
17120 case $lt_cv_dlopen in
17122 save_CPPFLAGS
="$CPPFLAGS"
17123 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17125 save_LDFLAGS
="$LDFLAGS"
17126 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17129 LIBS
="$lt_cv_dlopen_libs $LIBS"
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17132 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17133 if test "${lt_cv_dlopen_self+set}" = set; then :
17134 $as_echo_n "(cached) " >&6
17136 if test "$cross_compiling" = yes; then :
17137 lt_cv_dlopen_self
=cross
17139 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17140 lt_status
=$lt_dlunknown
17141 cat > conftest.
$ac_ext <<_LT_EOF
17142 #line 17142 "configure"
17143 #include "confdefs.h"
17152 # define LT_DLGLOBAL RTLD_GLOBAL
17155 # define LT_DLGLOBAL DL_GLOBAL
17157 # define LT_DLGLOBAL 0
17161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17162 find out it does not work in some platform. */
17163 #ifndef LT_DLLAZY_OR_NOW
17165 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17168 # define LT_DLLAZY_OR_NOW DL_LAZY
17171 # define LT_DLLAZY_OR_NOW RTLD_NOW
17174 # define LT_DLLAZY_OR_NOW DL_NOW
17176 # define LT_DLLAZY_OR_NOW 0
17183 /* When -fvisbility=hidden is used, assume the code has been annotated
17184 correspondingly for the symbols needed. */
17185 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17186 void fnord () __attribute__((visibility("default")));
17189 void fnord () { int i=42; }
17192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17193 int status = $lt_dlunknown;
17197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17201 else puts (dlerror ());
17203 /* dlclose (self); */
17211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17212 (eval $ac_link) 2>&5
17214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17215 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17216 (.
/conftest
; exit; ) >&5 2>/dev
/null
17218 case x
$lt_status in
17219 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17220 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17221 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17224 # compilation failed
17225 lt_cv_dlopen_self
=no
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17233 $as_echo "$lt_cv_dlopen_self" >&6; }
17235 if test "x$lt_cv_dlopen_self" = xyes
; then
17236 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17238 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17239 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17240 $as_echo_n "(cached) " >&6
17242 if test "$cross_compiling" = yes; then :
17243 lt_cv_dlopen_self_static
=cross
17245 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17246 lt_status
=$lt_dlunknown
17247 cat > conftest.
$ac_ext <<_LT_EOF
17248 #line 17248 "configure"
17249 #include "confdefs.h"
17258 # define LT_DLGLOBAL RTLD_GLOBAL
17261 # define LT_DLGLOBAL DL_GLOBAL
17263 # define LT_DLGLOBAL 0
17267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17268 find out it does not work in some platform. */
17269 #ifndef LT_DLLAZY_OR_NOW
17271 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17274 # define LT_DLLAZY_OR_NOW DL_LAZY
17277 # define LT_DLLAZY_OR_NOW RTLD_NOW
17280 # define LT_DLLAZY_OR_NOW DL_NOW
17282 # define LT_DLLAZY_OR_NOW 0
17289 /* When -fvisbility=hidden is used, assume the code has been annotated
17290 correspondingly for the symbols needed. */
17291 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17292 void fnord () __attribute__((visibility("default")));
17295 void fnord () { int i=42; }
17298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17299 int status = $lt_dlunknown;
17303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17306 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17307 else puts (dlerror ());
17309 /* dlclose (self); */
17317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17318 (eval $ac_link) 2>&5
17320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17321 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17322 (.
/conftest
; exit; ) >&5 2>/dev
/null
17324 case x
$lt_status in
17325 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17326 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17327 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17330 # compilation failed
17331 lt_cv_dlopen_self_static
=no
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17339 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17342 CPPFLAGS
="$save_CPPFLAGS"
17343 LDFLAGS
="$save_LDFLAGS"
17348 case $lt_cv_dlopen_self in
17349 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17350 *) enable_dlopen_self
=unknown
;;
17353 case $lt_cv_dlopen_self_static in
17354 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17355 *) enable_dlopen_self_static
=unknown
;;
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17378 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17379 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17380 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17381 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17383 $as_echo "yes" >&6; }
17385 # FIXME - insert some real tests, host_os isn't really good enough
17388 if test -n "$STRIP" ; then
17389 striplib
="$STRIP -x"
17390 old_striplib
="$STRIP -S"
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17392 $as_echo "yes" >&6; }
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17400 $as_echo "no" >&6; }
17416 # Report which library types will actually be built
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17418 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17420 $as_echo "$can_build_shared" >&6; }
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17423 $as_echo_n "checking whether to build shared libraries... " >&6; }
17424 test "$can_build_shared" = "no" && enable_shared
=no
17426 # On AIX, shared libraries and static libraries use the same namespace, and
17427 # are all built from PIC.
17430 test "$enable_shared" = yes && enable_static
=no
17431 if test -n "$RANLIB"; then
17432 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17433 postinstall_cmds
='$RANLIB $lib'
17438 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17439 test "$enable_shared" = yes && enable_static
=no
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17444 $as_echo "$enable_shared" >&6; }
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17447 $as_echo_n "checking whether to build static libraries... " >&6; }
17448 # Make sure either enable_shared or enable_static is yes.
17449 test "$enable_shared" = yes || enable_static
=yes
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17451 $as_echo "$enable_static" >&6; }
17458 ac_cpp
='$CPP $CPPFLAGS'
17459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17465 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17466 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17467 (test "X$CXX" != "Xg++"))) ; then
17469 ac_cpp
='$CXXCPP $CPPFLAGS'
17470 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17471 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17472 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17474 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17475 if test -z "$CXXCPP"; then
17476 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17477 $as_echo_n "(cached) " >&6
17479 # Double quotes because CXXCPP needs to be expanded
17480 for CXXCPP
in "$CXX -E" "/lib/cpp"
17482 ac_preproc_ok
=false
17483 for ac_cxx_preproc_warn_flag
in '' yes
17485 # Use a header file that comes with gcc, so configuring glibc
17486 # with a fresh cross-compiler works.
17487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17488 # <limits.h> exists even on freestanding compilers.
17489 # On the NeXT, cc -E runs the code through the compiler's parser,
17490 # not just through cpp. "Syntax error" is here to catch this case.
17491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17494 # include <limits.h>
17496 # include <assert.h>
17500 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17503 # Broken: fails on valid input.
17506 rm -f conftest.err conftest.
$ac_ext
17508 # OK, works on sane cases. Now check whether nonexistent headers
17509 # can be detected and how.
17510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17512 #include <ac_nonexistent.h>
17514 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17515 # Broken: success on invalid input.
17518 # Passes both tests.
17522 rm -f conftest.err conftest.
$ac_ext
17525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17526 rm -f conftest.err conftest.
$ac_ext
17527 if $ac_preproc_ok; then :
17532 ac_cv_prog_CXXCPP
=$CXXCPP
17535 CXXCPP
=$ac_cv_prog_CXXCPP
17537 ac_cv_prog_CXXCPP
=$CXXCPP
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17540 $as_echo "$CXXCPP" >&6; }
17541 ac_preproc_ok
=false
17542 for ac_cxx_preproc_warn_flag
in '' yes
17544 # Use a header file that comes with gcc, so configuring glibc
17545 # with a fresh cross-compiler works.
17546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 # <limits.h> exists even on freestanding compilers.
17548 # On the NeXT, cc -E runs the code through the compiler's parser,
17549 # not just through cpp. "Syntax error" is here to catch this case.
17550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17553 # include <limits.h>
17555 # include <assert.h>
17559 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17562 # Broken: fails on valid input.
17565 rm -f conftest.err conftest.
$ac_ext
17567 # OK, works on sane cases. Now check whether nonexistent headers
17568 # can be detected and how.
17569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571 #include <ac_nonexistent.h>
17573 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17574 # Broken: success on invalid input.
17577 # Passes both tests.
17581 rm -f conftest.err conftest.
$ac_ext
17584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17585 rm -f conftest.err conftest.
$ac_ext
17586 if $ac_preproc_ok; then :
17589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17591 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17592 See \`config.log' for more details." "$LINENO" 5; }
17596 ac_cpp
='$CPP $CPPFLAGS'
17597 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17602 _lt_caught_CXX_error
=yes
17606 ac_cpp
='$CXXCPP $CPPFLAGS'
17607 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17611 archive_cmds_need_lc_CXX
=no
17612 allow_undefined_flag_CXX
=
17613 always_export_symbols_CXX
=no
17614 archive_expsym_cmds_CXX
=
17615 compiler_needs_object_CXX
=no
17616 export_dynamic_flag_spec_CXX
=
17617 hardcode_direct_CXX
=no
17618 hardcode_direct_absolute_CXX
=no
17619 hardcode_libdir_flag_spec_CXX
=
17620 hardcode_libdir_flag_spec_ld_CXX
=
17621 hardcode_libdir_separator_CXX
=
17622 hardcode_minus_L_CXX
=no
17623 hardcode_shlibpath_var_CXX
=unsupported
17624 hardcode_automatic_CXX
=no
17625 inherit_rpath_CXX
=no
17627 module_expsym_cmds_CXX
=
17628 link_all_deplibs_CXX
=unknown
17629 old_archive_cmds_CXX
=$old_archive_cmds
17630 reload_flag_CXX
=$reload_flag
17631 reload_cmds_CXX
=$reload_cmds
17632 no_undefined_flag_CXX
=
17633 whole_archive_flag_spec_CXX
=
17634 enable_shared_with_static_runtimes_CXX
=no
17636 # Source file extension for C++ test sources.
17639 # Object file extension for compiled C++ test sources.
17643 # No sense in running all these tests if we already determined that
17644 # the CXX compiler isn't working. Some variables (like enable_shared)
17645 # are currently assumed to apply to all compilers on this platform,
17646 # and will be corrupted by setting them based on a non-working compiler.
17647 if test "$_lt_caught_CXX_error" != yes; then
17648 # Code to be used in simple compile tests
17649 lt_simple_compile_test_code
="int some_variable = 0;"
17651 # Code to be used in simple link tests
17652 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17654 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17661 # If no C compiler was specified, use CC.
17664 # If no C compiler flags were specified, use CFLAGS.
17665 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17667 # Allow CC to be a program name with arguments.
17671 # save warnings/boilerplate of simple test code
17672 ac_outfile
=conftest.
$ac_objext
17673 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17674 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17675 _lt_compiler_boilerplate
=`cat conftest.err`
17678 ac_outfile
=conftest.
$ac_objext
17679 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17680 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17681 _lt_linker_boilerplate
=`cat conftest.err`
17685 # Allow CC to be a program name with arguments.
17690 lt_save_with_gnu_ld
=$with_gnu_ld
17691 lt_save_path_LD
=$lt_cv_path_LD
17692 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17693 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17695 $as_unset lt_cv_prog_gnu_ld
17697 if test -n "${lt_cv_path_LDCXX+set}"; then
17698 lt_cv_path_LD
=$lt_cv_path_LDCXX
17700 $as_unset lt_cv_path_LD
17702 test -z "${LDCXX+set}" || LD
=$LDCXX
17706 for cc_temp
in $compiler""; do
17708 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17709 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17714 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17717 if test -n "$compiler"; then
17718 # We don't want -fno-exception when compiling C++ code, so set the
17719 # no_builtin_flag separately
17720 if test "$GXX" = yes; then
17721 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17723 lt_prog_compiler_no_builtin_flag_CXX
=
17726 if test "$GXX" = yes; then
17727 # Set up default GNU C++ configuration
17731 # Check whether --with-gnu-ld was given.
17732 if test "${with_gnu_ld+set}" = set; then :
17733 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17739 if test "$GCC" = yes; then
17740 # Check if gcc -print-prog-name=ld gives a path.
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17742 $as_echo_n "checking for ld used by $CC... " >&6; }
17745 # gcc leaves a trailing carriage return which upsets mingw
17746 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17748 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17751 # Accept absolute paths.
17753 re_direlt
='/[^/][^/]*/\.\./'
17754 # Canonicalize the pathname of ld
17755 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17756 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17757 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17759 test -z "$LD" && LD
="$ac_prog"
17762 # If it fails, then pretend we aren't using GCC.
17766 # If it is relative, then search for the first ld in PATH.
17767 with_gnu_ld
=unknown
17770 elif test "$with_gnu_ld" = yes; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17772 $as_echo_n "checking for GNU ld... " >&6; }
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17775 $as_echo_n "checking for non-GNU ld... " >&6; }
17777 if test "${lt_cv_path_LD+set}" = set; then :
17778 $as_echo_n "(cached) " >&6
17780 if test -z "$LD"; then
17781 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17782 for ac_dir
in $PATH; do
17784 test -z "$ac_dir" && ac_dir
=.
17785 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17786 lt_cv_path_LD
="$ac_dir/$ac_prog"
17787 # Check to see if the program is GNU ld. I'd rather use --version,
17788 # but apparently some variants of GNU ld only accept -v.
17789 # Break only if it was the GNU/non-GNU ld that we prefer.
17790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17791 *GNU
* |
*'with BFD'*)
17792 test "$with_gnu_ld" != no
&& break
17795 test "$with_gnu_ld" != yes && break
17802 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17806 LD
="$lt_cv_path_LD"
17807 if test -n "$LD"; then
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17809 $as_echo "$LD" >&6; }
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17812 $as_echo "no" >&6; }
17814 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17817 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17820 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17821 case `$LD -v 2>&1 </dev/null` in
17822 *GNU
* |
*'with BFD'*)
17823 lt_cv_prog_gnu_ld
=yes
17826 lt_cv_prog_gnu_ld
=no
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17832 with_gnu_ld
=$lt_cv_prog_gnu_ld
17840 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17841 # archiving commands below assume that GNU ld is being used.
17842 if test "$with_gnu_ld" = yes; then
17843 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17844 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'
17846 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17847 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17849 # If archive_cmds runs LD, not CC, wlarc should be empty
17850 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17851 # investigate it a little bit more. (MM)
17854 # ancient GNU ld didn't support --whole-archive et. al.
17855 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17856 $GREP 'no-whole-archive' > /dev
/null
; then
17857 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17859 whole_archive_flag_spec_CXX
=
17865 # A generic and very simple default shared library creation
17866 # command for GNU C++ for the case where it uses the native
17867 # linker, instead of GNU ld. If possible, this setting should
17868 # overridden to take advantage of the native linker features on
17869 # the platform it is being used on.
17870 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17873 # Commands to make compiler produce verbose output that lists
17874 # what "hidden" libraries, object files and flags are used when
17875 # linking a shared library.
17876 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17884 # PORTME: fill in a description of your system's C++ link characteristics
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17890 # FIXME: insert proper C++ library support
17894 if test "$host_cpu" = ia64
; then
17895 # On IA64, the linker does run time linking by default, so we don't
17896 # have to do anything special.
17897 aix_use_runtimelinking
=no
17898 exp_sym_flag
='-Bexport'
17901 aix_use_runtimelinking
=no
17903 # Test if we are trying to use run time linking or normal
17904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17905 # need to do runtime linking.
17906 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17907 for ld_flag
in $LDFLAGS; do
17910 aix_use_runtimelinking
=yes
17918 exp_sym_flag
='-bexport'
17919 no_entry_flag
='-bnoentry'
17922 # When large executables or shared objects are built, AIX ld can
17923 # have problems creating the table of contents. If linking a library
17924 # or program results in "error TOC overflow" add -mminimal-toc to
17925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17928 archive_cmds_CXX
=''
17929 hardcode_direct_CXX
=yes
17930 hardcode_direct_absolute_CXX
=yes
17931 hardcode_libdir_separator_CXX
=':'
17932 link_all_deplibs_CXX
=yes
17933 file_list_spec_CXX
='${wl}-f,'
17935 if test "$GXX" = yes; then
17936 case $host_os in aix4.
[012]|aix4.
[012].
*)
17937 # We only want to do this on AIX 4.2 and lower, the check
17938 # below for broken collect2 doesn't work under 4.3+
17939 collect2name
=`${CC} -print-prog-name=collect2`
17940 if test -f "$collect2name" &&
17941 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17943 # We have reworked collect2
17946 # We have old collect2
17947 hardcode_direct_CXX
=unsupported
17948 # It fails to find uninstalled libraries when the uninstalled
17949 # path is not listed in the libpath. Setting hardcode_minus_L
17950 # to unsupported forces relinking
17951 hardcode_minus_L_CXX
=yes
17952 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17953 hardcode_libdir_separator_CXX
=
17956 shared_flag
='-shared'
17957 if test "$aix_use_runtimelinking" = yes; then
17958 shared_flag
="$shared_flag "'${wl}-G'
17962 if test "$host_cpu" = ia64
; then
17963 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17964 # chokes on -Wl,-G. The following line is correct:
17967 if test "$aix_use_runtimelinking" = yes; then
17968 shared_flag
='${wl}-G'
17970 shared_flag
='${wl}-bM:SRE'
17975 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17976 # It seems that -bexpall does not export symbols beginning with
17977 # underscore (_), so it is better to generate a list of symbols to
17979 always_export_symbols_CXX
=yes
17980 if test "$aix_use_runtimelinking" = yes; then
17981 # Warning - without using the other runtime loading flags (-brtl),
17982 # -berok will link without error, but may produce a broken library.
17983 allow_undefined_flag_CXX
='-berok'
17984 # Determine the default libpath from the value encoded in an empty
17986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17997 if ac_fn_cxx_try_link
"$LINENO"; then :
17999 lt_aix_libpath_sed
='
18000 /Import File Strings/,/^$/ {
18006 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18007 # Check for a 64-bit object if we didn't find anything.
18008 if test -z "$aix_libpath"; then
18009 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18012 rm -f core conftest.err conftest.
$ac_objext \
18013 conftest
$ac_exeext conftest.
$ac_ext
18014 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18016 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18018 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"
18020 if test "$host_cpu" = ia64
; then
18021 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18022 allow_undefined_flag_CXX
="-z nodefs"
18023 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"
18025 # Determine the default libpath from the value encoded in an
18026 # empty executable.
18027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18038 if ac_fn_cxx_try_link
"$LINENO"; then :
18040 lt_aix_libpath_sed
='
18041 /Import File Strings/,/^$/ {
18047 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18048 # Check for a 64-bit object if we didn't find anything.
18049 if test -z "$aix_libpath"; then
18050 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18053 rm -f core conftest.err conftest.
$ac_objext \
18054 conftest
$ac_exeext conftest.
$ac_ext
18055 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18057 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18058 # Warning - without using the other run time loading flags,
18059 # -berok will link without error, but may produce a broken library.
18060 no_undefined_flag_CXX
=' ${wl}-bernotok'
18061 allow_undefined_flag_CXX
=' ${wl}-berok'
18062 if test "$with_gnu_ld" = yes; then
18063 # We only use this code for GNU lds that support --whole-archive.
18064 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18066 # Exported symbols can be pulled into shared objects from archives
18067 whole_archive_flag_spec_CXX
='$convenience'
18069 archive_cmds_need_lc_CXX
=yes
18070 # This is similar to how AIX traditionally builds its shared
18072 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'
18078 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18079 allow_undefined_flag_CXX
=unsupported
18080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18081 # support --undefined. This deserves some investigation. FIXME
18082 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18089 case $cc_basename in
18091 # FIXME: insert proper C++ library support
18097 cygwin
* | mingw
* | pw32
* | cegcc
*)
18098 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18099 # as there is no search path for DLLs.
18100 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18101 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18102 allow_undefined_flag_CXX
=unsupported
18103 always_export_symbols_CXX
=no
18104 enable_shared_with_static_runtimes_CXX
=yes
18106 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18107 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'
18108 # If the export-symbols file already is a .def file (1st line
18109 # is EXPORTS), use it as is; otherwise, prepend...
18110 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18111 cp $export_symbols $output_objdir/$soname.def;
18113 echo EXPORTS > $output_objdir/$soname.def;
18114 cat $export_symbols >> $output_objdir/$soname.def;
18116 $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'
18121 darwin
* | rhapsody
*)
18124 archive_cmds_need_lc_CXX
=no
18125 hardcode_direct_CXX
=no
18126 hardcode_automatic_CXX
=yes
18127 hardcode_shlibpath_var_CXX
=unsupported
18128 if test "$lt_cv_ld_force_load" = "yes"; then
18129 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\"`'
18131 whole_archive_flag_spec_CXX
=''
18133 link_all_deplibs_CXX
=yes
18134 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18135 case $cc_basename in
18136 ifort
*) _lt_dar_can_shared
=yes ;;
18137 *) _lt_dar_can_shared
=$GCC ;;
18139 if test "$_lt_dar_can_shared" = "yes"; then
18140 output_verbose_link_cmd
=func_echo_all
18141 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}"
18142 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18143 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}"
18144 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}"
18145 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18146 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}"
18147 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}"
18157 case $cc_basename in
18159 # FIXME: insert proper C++ library support
18163 # Green Hills C++ Compiler
18164 # FIXME: insert proper C++ library support
18168 # FIXME: insert proper C++ library support
18175 # C++ shared libraries reported to be fairly broken before
18181 archive_cmds_need_lc_CXX
=no
18184 freebsd
* | dragonfly
*)
18185 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18194 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18195 link_all_deplibs_CXX
=yes
18199 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18200 hardcode_libdir_separator_CXX
=:
18201 export_dynamic_flag_spec_CXX
='${wl}-E'
18202 hardcode_direct_CXX
=yes
18203 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18204 # but as the default
18205 # location of the library.
18207 case $cc_basename in
18209 # FIXME: insert proper C++ library support
18213 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'
18214 # Commands to make compiler produce verbose output that lists
18215 # what "hidden" libraries, object files and flags are used when
18216 # linking a shared library.
18218 # There doesn't appear to be a way to prevent this compiler from
18219 # explicitly linking system object files so we need to strip them
18220 # from the output so that they don't get included in the library
18222 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"'
18225 if test "$GXX" = yes; then
18226 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'
18228 # FIXME: insert proper C++ library support
18236 if test $with_gnu_ld = no
; then
18237 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18238 hardcode_libdir_separator_CXX
=:
18244 export_dynamic_flag_spec_CXX
='${wl}-E'
18250 hardcode_direct_CXX
=no
18251 hardcode_shlibpath_var_CXX
=no
18254 hardcode_direct_CXX
=yes
18255 hardcode_direct_absolute_CXX
=yes
18256 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18257 # but as the default
18258 # location of the library.
18262 case $cc_basename in
18264 # FIXME: insert proper C++ library support
18270 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18273 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18276 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18279 # Commands to make compiler produce verbose output that lists
18280 # what "hidden" libraries, object files and flags are used when
18281 # linking a shared library.
18283 # There doesn't appear to be a way to prevent this compiler from
18284 # explicitly linking system object files so we need to strip them
18285 # from the output so that they don't get included in the library
18287 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"'
18290 if test "$GXX" = yes; then
18291 if test $with_gnu_ld = no
; then
18294 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18297 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18300 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'
18305 # FIXME: insert proper C++ library support
18313 hardcode_direct_CXX
=no
18314 hardcode_shlibpath_var_CXX
=no
18315 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18316 export_dynamic_flag_spec_CXX
='${wl}-E'
18317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18318 # Instead, shared libraries are loaded at an image base (0x10000000 by
18319 # default) and relocated if they conflict, which is a slow very memory
18320 # consuming and fragmenting process. To avoid this, we pick a random,
18321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18323 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'
18324 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'
18327 case $cc_basename in
18330 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'
18332 # Archives containing C++ object files must be created using
18333 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18334 # necessary to make sure instantiated templates are included
18336 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18339 if test "$GXX" = yes; then
18340 if test "$with_gnu_ld" = no
; then
18341 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'
18343 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'
18346 link_all_deplibs_CXX
=yes
18349 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18350 hardcode_libdir_separator_CXX
=:
18351 inherit_rpath_CXX
=yes
18354 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18355 case $cc_basename in
18357 # Kuck and Associates, Inc. (KAI) C++ Compiler
18359 # KCC will only create a shared library if the output file
18360 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18361 # to its proper name (with version) after linking.
18362 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'
18363 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'
18364 # Commands to make compiler produce verbose output that lists
18365 # what "hidden" libraries, object files and flags are used when
18366 # linking a shared library.
18368 # There doesn't appear to be a way to prevent this compiler from
18369 # explicitly linking system object files so we need to strip them
18370 # from the output so that they don't get included in the library
18372 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"'
18374 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18375 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18377 # Archives containing C++ object files must be created using
18378 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18379 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18384 # version 8.0 and above of icpc choke on multiply defined symbols
18385 # if we add $predep_objects and $postdep_objects, however 7.1 and
18386 # earlier do not add the objects themselves.
18387 case `$CC -V 2>&1` in
18389 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18390 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'
18392 *) # Version 8.0 or newer
18395 ia64
*) tmp_idyn
=' -i_dynamic';;
18397 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18398 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'
18401 archive_cmds_need_lc_CXX
=no
18402 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18403 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18404 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18407 # Portland Group C++ compiler
18409 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18410 prelink_cmds_CXX
='tpldir=Template.dir~
18412 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18413 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18414 old_archive_cmds_CXX
='tpldir=Template.dir~
18416 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18417 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18419 archive_cmds_CXX
='tpldir=Template.dir~
18421 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18422 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18423 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18425 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18426 $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'
18428 *) # Version 6 and above use weak symbols
18429 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18430 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'
18434 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18435 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18436 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'
18440 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18441 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'
18443 runpath_var
=LD_RUN_PATH
18444 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18445 hardcode_libdir_separator_CXX
=:
18447 # Commands to make compiler produce verbose output that lists
18448 # what "hidden" libraries, object files and flags are used when
18449 # linking a shared library.
18451 # There doesn't appear to be a way to prevent this compiler from
18452 # explicitly linking system object files so we need to strip them
18453 # from the output so that they don't get included in the library
18455 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'
18457 xl
* | mpixl
* | bgxl
*)
18458 # IBM XL 8.0 on PPC, with GNU ld
18459 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18460 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18461 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18462 if test "x$supports_anon_versioning" = xyes
; then
18463 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18465 echo "local: *; };" >> $output_objdir/$libname.ver~
18466 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18470 case `$CC -V 2>&1 | sed 5q` in
18473 no_undefined_flag_CXX
=' -zdefs'
18474 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18475 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'
18476 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18477 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'
18478 compiler_needs_object_CXX
=yes
18480 # Not sure whether something based on
18481 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18483 output_verbose_link_cmd
='func_echo_all'
18485 # Archives containing C++ object files must be created using
18486 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18487 # necessary to make sure instantiated templates are included
18489 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18497 # FIXME: insert proper C++ library support
18502 # FIXME: insert proper C++ library support
18507 case $cc_basename in
18509 # FIXME: insert proper C++ library support
18513 # FIXME: insert proper C++ library support
18520 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18521 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18523 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18524 hardcode_direct_CXX
=yes
18525 hardcode_shlibpath_var_CXX
=no
18527 # Workaround some broken pre-1.5 toolchains
18528 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18536 # C++ shared libraries are fairly broken
18541 if test -f /usr
/libexec
/ld.so
; then
18542 hardcode_direct_CXX
=yes
18543 hardcode_shlibpath_var_CXX
=no
18544 hardcode_direct_absolute_CXX
=yes
18545 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18546 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18548 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18549 export_dynamic_flag_spec_CXX
='${wl}-E'
18550 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18552 output_verbose_link_cmd
=func_echo_all
18558 osf3
* | osf4
* | osf5
*)
18559 case $cc_basename in
18561 # Kuck and Associates, Inc. (KAI) C++ Compiler
18563 # KCC will only create a shared library if the output file
18564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18565 # to its proper name (with version) after linking.
18566 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'
18568 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18569 hardcode_libdir_separator_CXX
=:
18571 # Archives containing C++ object files must be created using
18572 # the KAI C++ compiler.
18574 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18575 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18579 # Rational C++ 2.4.1
18580 # FIXME: insert proper C++ library support
18586 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18587 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'
18588 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18591 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18592 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'
18593 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18594 echo "-hidden">> $lib.exp~
18595 $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~
18597 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18601 hardcode_libdir_separator_CXX
=:
18603 # Commands to make compiler produce verbose output that lists
18604 # what "hidden" libraries, object files and flags are used when
18605 # linking a shared library.
18607 # There doesn't appear to be a way to prevent this compiler from
18608 # explicitly linking system object files so we need to strip them
18609 # from the output so that they don't get included in the library
18611 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"'
18614 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18615 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18618 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'
18621 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'
18625 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18626 hardcode_libdir_separator_CXX
=:
18628 # Commands to make compiler produce verbose output that lists
18629 # what "hidden" libraries, object files and flags are used when
18630 # linking a shared library.
18631 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18634 # FIXME: insert proper C++ library support
18642 # FIXME: insert proper C++ library support
18647 case $cc_basename in
18650 # FIXME: insert proper C++ library support
18655 # FIXME: insert proper C++ library support
18659 # FIXME: insert proper C++ library support
18666 case $cc_basename in
18668 # Sun C++ 4.2, 5.x and Centerline C++
18669 archive_cmds_need_lc_CXX
=yes
18670 no_undefined_flag_CXX
=' -zdefs'
18671 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18672 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18673 $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'
18675 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18676 hardcode_shlibpath_var_CXX
=no
18678 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18680 # The compiler driver will combine and reorder linker options,
18681 # but understands `-z linker_flag'.
18682 # Supported since Solaris 2.6 (maybe 2.5.1?)
18683 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18686 link_all_deplibs_CXX
=yes
18688 output_verbose_link_cmd
='func_echo_all'
18690 # Archives containing C++ object files must be created using
18691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18692 # necessary to make sure instantiated templates are included
18694 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18697 # Green Hills C++ Compiler
18698 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18700 # The C++ compiler must be used to create the archive.
18701 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18704 # GNU C++ compiler with Solaris linker
18705 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18706 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18707 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18708 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18709 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18710 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18712 # Commands to make compiler produce verbose output that lists
18713 # what "hidden" libraries, object files and flags are used when
18714 # linking a shared library.
18715 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18717 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18719 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18720 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18721 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18723 # Commands to make compiler produce verbose output that lists
18724 # what "hidden" libraries, object files and flags are used when
18725 # linking a shared library.
18726 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18729 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18731 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18733 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18741 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18742 no_undefined_flag_CXX
='${wl}-z,text'
18743 archive_cmds_need_lc_CXX
=no
18744 hardcode_shlibpath_var_CXX
=no
18745 runpath_var
='LD_RUN_PATH'
18747 case $cc_basename in
18749 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18753 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18754 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 sysv5
* | sco3.2v5
* | sco5v6
*)
18760 # Note: We can NOT use -z defs as we might desire, because we do not
18761 # link with -lc, and that would cause any symbols used from libc to
18762 # always be unresolved, which means just about no library would
18763 # ever link correctly. If we're not using GNU ld we use -z text
18764 # though, which does catch some bad symbols but isn't as heavy-handed
18766 no_undefined_flag_CXX
='${wl}-z,text'
18767 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18768 archive_cmds_need_lc_CXX
=no
18769 hardcode_shlibpath_var_CXX
=no
18770 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18771 hardcode_libdir_separator_CXX
=':'
18772 link_all_deplibs_CXX
=yes
18773 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18774 runpath_var
='LD_RUN_PATH'
18776 case $cc_basename in
18778 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18779 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18780 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18781 '"$old_archive_cmds_CXX"
18782 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18783 '"$reload_cmds_CXX"
18786 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18793 case $cc_basename in
18795 # NonStop-UX NCC 3.20
18796 # FIXME: insert proper C++ library support
18800 # FIXME: insert proper C++ library support
18807 # FIXME: insert proper C++ library support
18812 # FIXME: insert proper C++ library support
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18818 $as_echo "$ld_shlibs_CXX" >&6; }
18819 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18825 ## There is no encapsulation within the following macros, do not change
18826 ## the running order or otherwise move them around unless you know exactly
18827 ## what you are doing...
18828 # Dependencies to place before and after the object being linked:
18829 predep_objects_CXX
=
18830 postdep_objects_CXX
=
18833 compiler_lib_search_path_CXX
=
18835 cat > conftest.
$ac_ext <<_LT_EOF
18839 Foo (void) { a = 0; }
18845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18846 (eval $ac_compile) 2>&5
18848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18849 test $ac_status = 0; }; then
18850 # Parse the compiler output and extract the necessary
18851 # objects, libraries and library flags.
18853 # Sentinel used to keep track of whether or not we are before
18854 # the conftest object file.
18855 pre_test_object_deps_done
=no
18857 for p
in `eval "$output_verbose_link_cmd"`; do
18861 # Some compilers place space between "-{L,R}" and the path.
18862 # Remove the space.
18863 if test $p = "-L" ||
18864 test $p = "-R"; then
18871 if test "$pre_test_object_deps_done" = no
; then
18874 # Internal compiler library paths should come after those
18875 # provided the user. The postdeps already come after the
18876 # user supplied libs so there is no need to process them.
18877 if test -z "$compiler_lib_search_path_CXX"; then
18878 compiler_lib_search_path_CXX
="${prev}${p}"
18880 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18883 # The "-l" case would never come before the object being
18884 # linked, so don't bother handling this case.
18887 if test -z "$postdeps_CXX"; then
18888 postdeps_CXX
="${prev}${p}"
18890 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18896 # This assumes that the test object file only shows up
18897 # once in the compiler output.
18898 if test "$p" = "conftest.$objext"; then
18899 pre_test_object_deps_done
=yes
18903 if test "$pre_test_object_deps_done" = no
; then
18904 if test -z "$predep_objects_CXX"; then
18905 predep_objects_CXX
="$p"
18907 predep_objects_CXX
="$predep_objects_CXX $p"
18910 if test -z "$postdep_objects_CXX"; then
18911 postdep_objects_CXX
="$p"
18913 postdep_objects_CXX
="$postdep_objects_CXX $p"
18918 *) ;; # Ignore the rest.
18926 echo "libtool.m4: error: problem compiling CXX test program"
18929 $RM -f confest.
$objext
18931 # PORTME: override above test on systems where it is broken
18934 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18935 # hack all around it, let's just trust "g++" to DTRT.
18936 predep_objects_CXX
=
18937 postdep_objects_CXX
=
18942 case `$CC -V 2>&1 | sed 5q` in
18946 # The more standards-conforming stlport4 library is
18947 # incompatible with the Cstd library. Avoid specifying
18948 # it if it's in CXXFLAGS. Ignore libCrun as
18949 # -library=stlport4 depends on it.
18950 case " $CXX $CXXFLAGS " in
18951 *" -library=stlport4 "*)
18952 solaris_use_stlport4
=yes
18956 if test "$solaris_use_stlport4" != yes; then
18957 postdeps_CXX
='-library=Cstd -library=Crun'
18964 case $cc_basename in
18966 # The more standards-conforming stlport4 library is
18967 # incompatible with the Cstd library. Avoid specifying
18968 # it if it's in CXXFLAGS. Ignore libCrun as
18969 # -library=stlport4 depends on it.
18970 case " $CXX $CXXFLAGS " in
18971 *" -library=stlport4 "*)
18972 solaris_use_stlport4
=yes
18976 # Adding this requires a known-good setup of shared libraries for
18977 # Sun compiler versions before 5.6, else PIC objects from an old
18978 # archive will be linked into the output, leading to subtle bugs.
18979 if test "$solaris_use_stlport4" != yes; then
18980 postdeps_CXX
='-library=Cstd -library=Crun'
18988 case " $postdeps_CXX " in
18989 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18991 compiler_lib_search_dirs_CXX
=
18992 if test -n "${compiler_lib_search_path_CXX}"; then
18993 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19026 lt_prog_compiler_wl_CXX
=
19027 lt_prog_compiler_pic_CXX
=
19028 lt_prog_compiler_static_CXX
=
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19033 # C++ specific cases for pic, static, wl, etc.
19034 if test "$GXX" = yes; then
19035 lt_prog_compiler_wl_CXX
='-Wl,'
19036 lt_prog_compiler_static_CXX
='-static'
19040 # All AIX code is PIC.
19041 if test "$host_cpu" = ia64
; then
19042 # AIX 5 now supports IA64 processor
19043 lt_prog_compiler_static_CXX
='-Bstatic'
19050 # see comment about AmigaOS4 .so support
19051 lt_prog_compiler_pic_CXX
='-fPIC'
19054 # FIXME: we need at least 68020 code to build shared libraries, but
19055 # adding the `-m68020' flag to GCC prevents building anything better,
19057 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19062 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19063 # PIC is the default for these OSes.
19065 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19066 # This hack is so that the source file can tell whether it is being
19067 # built for inclusion in a dll (and should export symbols for example).
19068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19069 # (--disable-auto-import) libraries
19070 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19072 darwin
* | rhapsody
*)
19073 # PIC is the default on this platform
19074 # Common symbols not allowed in MH_DYLIB files
19075 lt_prog_compiler_pic_CXX
='-fno-common'
19078 # DJGPP does not support shared libraries at all
19079 lt_prog_compiler_pic_CXX
=
19082 # PIC is the default for Haiku.
19083 # The "-static" flag exists, but is broken.
19084 lt_prog_compiler_static_CXX
=
19087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19088 # Instead, we relocate shared libraries at runtime.
19091 if test -d /usr
/nec
; then
19092 lt_prog_compiler_pic_CXX
=-Kconform_pic
19096 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19097 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19098 # sets the default TLS model and affects inlining.
19103 lt_prog_compiler_pic_CXX
='-fPIC'
19108 # QNX uses GNU C++, but need to define -shared option too, otherwise
19109 # it will coredump.
19110 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19113 lt_prog_compiler_pic_CXX
='-fPIC'
19119 # All AIX code is PIC.
19120 if test "$host_cpu" = ia64
; then
19121 # AIX 5 now supports IA64 processor
19122 lt_prog_compiler_static_CXX
='-Bstatic'
19124 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19128 case $cc_basename in
19130 # Green Hills C++ Compiler
19131 # _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"
19136 case $cc_basename in
19138 lt_prog_compiler_pic_CXX
='-KPIC'
19141 # Green Hills C++ Compiler
19142 lt_prog_compiler_pic_CXX
='-pic'
19148 freebsd
* | dragonfly
*)
19149 # FreeBSD uses GNU C++
19151 hpux9
* | hpux10
* | hpux11
*)
19152 case $cc_basename in
19154 lt_prog_compiler_wl_CXX
='-Wl,'
19155 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19156 if test "$host_cpu" != ia64
; then
19157 lt_prog_compiler_pic_CXX
='+Z'
19161 lt_prog_compiler_wl_CXX
='-Wl,'
19162 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19168 lt_prog_compiler_pic_CXX
='+Z'
19177 # This is c89, which is MS Visual C++ (no shared libs)
19178 # Anyone wants to do a port?
19180 irix5
* | irix6
* | nonstopux
*)
19181 case $cc_basename in
19183 lt_prog_compiler_wl_CXX
='-Wl,'
19184 lt_prog_compiler_static_CXX
='-non_shared'
19185 # CC pic flag -KPIC is the default.
19191 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19192 case $cc_basename in
19195 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19196 lt_prog_compiler_pic_CXX
='-fPIC'
19199 # old Intel C++ for x86_64 which still supported -KPIC.
19200 lt_prog_compiler_wl_CXX
='-Wl,'
19201 lt_prog_compiler_pic_CXX
='-KPIC'
19202 lt_prog_compiler_static_CXX
='-static'
19205 # Intel C++, used to be incompatible with GCC.
19206 # ICC 10 doesn't accept -KPIC any more.
19207 lt_prog_compiler_wl_CXX
='-Wl,'
19208 lt_prog_compiler_pic_CXX
='-fPIC'
19209 lt_prog_compiler_static_CXX
='-static'
19212 # Portland Group C++ compiler
19213 lt_prog_compiler_wl_CXX
='-Wl,'
19214 lt_prog_compiler_pic_CXX
='-fpic'
19215 lt_prog_compiler_static_CXX
='-Bstatic'
19219 # Make sure the PIC flag is empty. It appears that all Alpha
19220 # Linux and Compaq Tru64 Unix objects are PIC.
19221 lt_prog_compiler_pic_CXX
=
19222 lt_prog_compiler_static_CXX
='-non_shared'
19224 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19225 # IBM XL 8.0, 9.0 on PPC and BlueGene
19226 lt_prog_compiler_wl_CXX
='-Wl,'
19227 lt_prog_compiler_pic_CXX
='-qpic'
19228 lt_prog_compiler_static_CXX
='-qstaticlink'
19231 case `$CC -V 2>&1 | sed 5q` in
19234 lt_prog_compiler_pic_CXX
='-KPIC'
19235 lt_prog_compiler_static_CXX
='-Bstatic'
19236 lt_prog_compiler_wl_CXX
='-Qoption ld '
19247 case $cc_basename in
19249 lt_prog_compiler_pic_CXX
='-W c,exportall'
19258 # QNX uses GNU C++, but need to define -shared option too, otherwise
19259 # it will coredump.
19260 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19262 osf3
* | osf4
* | osf5
*)
19263 case $cc_basename in
19265 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19268 # Rational C++ 2.4.1
19269 lt_prog_compiler_pic_CXX
='-pic'
19272 # Digital/Compaq C++
19273 lt_prog_compiler_wl_CXX
='-Wl,'
19274 # Make sure the PIC flag is empty. It appears that all Alpha
19275 # Linux and Compaq Tru64 Unix objects are PIC.
19276 lt_prog_compiler_pic_CXX
=
19277 lt_prog_compiler_static_CXX
='-non_shared'
19286 case $cc_basename in
19288 # Sun C++ 4.2, 5.x and Centerline C++
19289 lt_prog_compiler_pic_CXX
='-KPIC'
19290 lt_prog_compiler_static_CXX
='-Bstatic'
19291 lt_prog_compiler_wl_CXX
='-Qoption ld '
19294 # Green Hills C++ Compiler
19295 lt_prog_compiler_pic_CXX
='-PIC'
19302 case $cc_basename in
19305 lt_prog_compiler_pic_CXX
='-pic'
19306 lt_prog_compiler_static_CXX
='-Bstatic'
19310 lt_prog_compiler_pic_CXX
='-pic'
19316 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19317 case $cc_basename in
19319 lt_prog_compiler_wl_CXX
='-Wl,'
19320 lt_prog_compiler_pic_CXX
='-KPIC'
19321 lt_prog_compiler_static_CXX
='-Bstatic'
19326 case $cc_basename in
19328 # NonStop-UX NCC 3.20
19329 lt_prog_compiler_pic_CXX
='-KPIC'
19338 lt_prog_compiler_can_build_shared_CXX
=no
19344 # For platforms which do not support PIC, -DPIC is meaningless:
19346 lt_prog_compiler_pic_CXX
=
19349 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19353 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19358 # Check to make sure the PIC flag actually works.
19360 if test -n "$lt_prog_compiler_pic_CXX"; then
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19363 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19364 $as_echo_n "(cached) " >&6
19366 lt_cv_prog_compiler_pic_works_CXX
=no
19367 ac_outfile
=conftest.
$ac_objext
19368 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19369 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19370 # Insert the option either (1) after the last *FLAGS variable, or
19371 # (2) before a word containing "conftest.", or (3) at the end.
19372 # Note that $ac_compile itself does not contain backslashes and begins
19373 # with a dollar sign (not a hyphen), so the echo should work correctly.
19374 # The option is referenced via a variable to avoid confusing sed.
19375 lt_compile
=`echo "$ac_compile" | $SED \
19376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19378 -e 's:$: $lt_compiler_flag:'`
19379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19380 (eval "$lt_compile" 2>conftest.err
)
19382 cat conftest.err
>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 if (exit $ac_status) && test -s "$ac_outfile"; then
19385 # The compiler can only warn and ignore the option if not recognized
19386 # So say no if there are warnings other than the usual output.
19387 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19388 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19389 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19390 lt_cv_prog_compiler_pic_works_CXX
=yes
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19397 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19399 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19400 case $lt_prog_compiler_pic_CXX in
19402 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19405 lt_prog_compiler_pic_CXX
=
19406 lt_prog_compiler_can_build_shared_CXX
=no
19414 # Check to make sure the static flag actually works.
19416 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19418 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19419 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19420 $as_echo_n "(cached) " >&6
19422 lt_cv_prog_compiler_static_works_CXX
=no
19423 save_LDFLAGS
="$LDFLAGS"
19424 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19425 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19426 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19427 # The linker can only warn and ignore the option if not recognized
19428 # So say no if there are warnings
19429 if test -s conftest.err
; then
19430 # Append any errors to the config.log.
19431 cat conftest.err
1>&5
19432 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19433 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19434 if diff conftest.exp conftest.er2
>/dev
/null
; then
19435 lt_cv_prog_compiler_static_works_CXX
=yes
19438 lt_cv_prog_compiler_static_works_CXX
=yes
19442 LDFLAGS
="$save_LDFLAGS"
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19446 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19448 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19451 lt_prog_compiler_static_CXX
=
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19459 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19460 $as_echo_n "(cached) " >&6
19462 lt_cv_prog_compiler_c_o_CXX
=no
19463 $RM -r conftest
2>/dev
/null
19467 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19469 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19470 # Insert the option either (1) after the last *FLAGS variable, or
19471 # (2) before a word containing "conftest.", or (3) at the end.
19472 # Note that $ac_compile itself does not contain backslashes and begins
19473 # with a dollar sign (not a hyphen), so the echo should work correctly.
19474 lt_compile
=`echo "$ac_compile" | $SED \
19475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19477 -e 's:$: $lt_compiler_flag:'`
19478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19479 (eval "$lt_compile" 2>out
/conftest.err
)
19481 cat out
/conftest.err
>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19485 # The compiler can only warn and ignore the option if not recognized
19486 # So say no if there are warnings
19487 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19488 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19489 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19490 lt_cv_prog_compiler_c_o_CXX
=yes
19495 # SGI C++ compiler will create directory out/ii_files/ for
19496 # template instantiation
19497 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19498 $RM out
/* && rmdir out
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19510 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19511 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19512 $as_echo_n "(cached) " >&6
19514 lt_cv_prog_compiler_c_o_CXX
=no
19515 $RM -r conftest
2>/dev
/null
19519 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19521 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 lt_compile
=`echo "$ac_compile" | $SED \
19527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19529 -e 's:$: $lt_compiler_flag:'`
19530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19531 (eval "$lt_compile" 2>out
/conftest.err
)
19533 cat out
/conftest.err
>&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19537 # The compiler can only warn and ignore the option if not recognized
19538 # So say no if there are warnings
19539 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19540 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19541 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19542 lt_cv_prog_compiler_c_o_CXX
=yes
19547 # SGI C++ compiler will create directory out/ii_files/ for
19548 # template instantiation
19549 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19550 $RM out
/* && rmdir out
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19557 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19562 hard_links
="nottested"
19563 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19564 # do not overwrite the value of need_locks provided by the user
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19566 $as_echo_n "checking if we can lock with hard links... " >&6; }
19569 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19571 ln conftest.a conftest.b
2>&5 || hard_links
=no
19572 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19574 $as_echo "$hard_links" >&6; }
19575 if test "$hard_links" = no
; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19577 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19587 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19589 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19592 # If we're using GNU nm, then we don't want the "-C" option.
19593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19594 # Also, AIX nm treats weak defined symbols like other global defined
19595 # symbols, whereas GNU nm marks them as "W".
19596 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19597 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'
19599 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'
19603 export_symbols_cmds_CXX
="$ltdll_cmds"
19605 cygwin
* | mingw
* | cegcc
*)
19606 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'
19609 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19612 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19615 $as_echo "$ld_shlibs_CXX" >&6; }
19616 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19618 with_gnu_ld_CXX
=$with_gnu_ld
19626 # Do we need to explicitly link libc?
19628 case "x$archive_cmds_need_lc_CXX" in
19630 # Assume -lc should be added
19631 archive_cmds_need_lc_CXX
=yes
19633 if test "$enable_shared" = yes && test "$GCC" = yes; then
19634 case $archive_cmds_CXX in
19636 # FIXME: we may have to deal with multi-command sequences.
19639 # Test whether the compiler implicitly links with -lc since on some
19640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19641 # to ld, don't add -lc before -lgcc.
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19643 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19644 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19645 $as_echo_n "(cached) " >&6
19648 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19651 (eval $ac_compile) 2>&5
19653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19654 test $ac_status = 0; } 2>conftest.err
; then
19657 libobjs
=conftest.
$ac_objext
19659 wl
=$lt_prog_compiler_wl_CXX
19660 pic_flag
=$lt_prog_compiler_pic_CXX
19666 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19667 allow_undefined_flag_CXX
=
19668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19669 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19672 test $ac_status = 0; }
19674 lt_cv_archive_cmds_need_lc_CXX
=no
19676 lt_cv_archive_cmds_need_lc_CXX
=yes
19678 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19680 cat conftest.err
1>&5
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19686 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19687 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19760 library_names_spec
=
19761 libname_spec
='lib$name'
19765 postuninstall_cmds
=
19769 shlibpath_overrides_runpath
=unknown
19771 dynamic_linker
="$host_os ld.so"
19772 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19773 need_lib_prefix
=unknown
19774 hardcode_into_libs
=no
19776 # when you set need_version to no, make sure it does not cause -set_version
19777 # flags to be left without arguments
19778 need_version
=unknown
19783 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19784 shlibpath_var
=LIBPATH
19786 # AIX 3 has no versioning support, so we append a major version to the name.
19787 soname_spec
='${libname}${release}${shared_ext}$major'
19794 hardcode_into_libs
=yes
19795 if test "$host_cpu" = ia64
; then
19796 # AIX 5 supports IA64
19797 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19798 shlibpath_var
=LD_LIBRARY_PATH
19800 # With GCC up to 2.95.x, collect2 would create an import file
19801 # for dependence libraries. The import file would start with
19802 # the line `#! .'. This would cause the generated library to
19803 # depend on `.', always an invalid library. This was fixed in
19804 # development snapshots of GCC prior to 3.0.
19806 aix4 | aix4.
[01] | aix4.
[01].
*)
19807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19812 can_build_shared
=no
19816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19817 # soname into executable. Probably we can add versioning support to
19818 # collect2, so additional links can be useful in future.
19819 if test "$aix_use_runtimelinking" = yes; then
19820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19821 # instead of lib<name>.a to let people know that these are not
19822 # typical AIX shared libraries.
19823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 # We preserve .a as extension for shared libraries through AIX4.2
19826 # and later when we are not doing run time linking.
19827 library_names_spec
='${libname}${release}.a $libname.a'
19828 soname_spec
='${libname}${release}${shared_ext}$major'
19830 shlibpath_var
=LIBPATH
19837 # Since July 2007 AmigaOS4 officially supports .so libraries.
19838 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19839 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19842 library_names_spec
='$libname.ixlibrary $libname.a'
19843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19844 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'
19850 library_names_spec
='${libname}${shared_ext}'
19851 dynamic_linker
="$host_os ld.so"
19852 shlibpath_var
=LIBRARY_PATH
19858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19859 soname_spec
='${libname}${release}${shared_ext}$major'
19860 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19861 shlibpath_var
=LD_LIBRARY_PATH
19862 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19863 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19864 # the default ld.so.conf also contains /usr/contrib/lib and
19865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19866 # libtool to hard-code these into programs
19869 cygwin
* | mingw
* | pw32
* | cegcc
*)
19870 version_type
=windows
19875 case $GCC,$host_os in
19876 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19877 library_names_spec
='$libname.dll.a'
19878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19879 postinstall_cmds
='base_file=`basename \${file}`~
19880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19881 dldir=$destdir/`dirname \$dlpath`~
19882 test -d \$dldir || mkdir -p \$dldir~
19883 $install_prog $dir/$dlname \$dldir/$dlname~
19884 chmod a+x \$dldir/$dlname~
19885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19888 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19889 dlpath=$dir/\$dldll~
19891 shlibpath_overrides_runpath
=yes
19895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19896 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19900 # MinGW DLLs use traditional 'lib' prefix
19901 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19904 # pw32 DLLs use 'pw' prefix rather than 'lib'
19905 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19911 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19914 dynamic_linker
='Win32 ld.exe'
19915 # FIXME: first we should search . and the directory the executable is in
19919 darwin
* | rhapsody
*)
19920 dynamic_linker
="$host_os dyld"
19921 version_type
=darwin
19924 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19925 soname_spec
='${libname}${release}${major}$shared_ext'
19926 shlibpath_overrides_runpath
=yes
19927 shlibpath_var
=DYLD_LIBRARY_PATH
19928 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19930 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19937 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19938 soname_spec
='${libname}${release}${shared_ext}$major'
19939 shlibpath_var
=LD_LIBRARY_PATH
19946 freebsd
* | dragonfly
*)
19947 # DragonFly does not have aout. When/if they implement a new
19948 # versioning mechanism, adjust this.
19949 if test -x /usr
/bin
/objformat
; then
19950 objformat
=`/usr/bin/objformat`
19953 freebsd
[123]*) objformat
=aout
;;
19954 *) objformat
=elf
;;
19957 version_type
=freebsd-
$objformat
19958 case $version_type in
19960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19965 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19969 shlibpath_var
=LD_LIBRARY_PATH
19972 shlibpath_overrides_runpath
=yes
19974 freebsd3.
[01]* | freebsdelf3.
[01]*)
19975 shlibpath_overrides_runpath
=yes
19976 hardcode_into_libs
=yes
19978 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19979 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19980 shlibpath_overrides_runpath
=no
19981 hardcode_into_libs
=yes
19983 *) # from 4.6 on, and DragonFly
19984 shlibpath_overrides_runpath
=yes
19985 hardcode_into_libs
=yes
19994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19995 soname_spec
='${libname}${release}${shared_ext}$major'
19996 shlibpath_var
=LD_LIBRARY_PATH
19997 hardcode_into_libs
=yes
20004 dynamic_linker
="$host_os runtime_loader"
20005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20006 soname_spec
='${libname}${release}${shared_ext}$major'
20007 shlibpath_var
=LIBRARY_PATH
20008 shlibpath_overrides_runpath
=yes
20009 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20010 hardcode_into_libs
=yes
20013 hpux9
* | hpux10
* | hpux11
*)
20014 # Give a soname corresponding to the major version so that dld.sl refuses to
20015 # link against other versions.
20022 hardcode_into_libs
=yes
20023 dynamic_linker
="$host_os dld.so"
20024 shlibpath_var
=LD_LIBRARY_PATH
20025 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027 soname_spec
='${libname}${release}${shared_ext}$major'
20028 if test "X$HPUX_IA64_MODE" = X32
; then
20029 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20031 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20033 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20037 hardcode_into_libs
=yes
20038 dynamic_linker
="$host_os dld.sl"
20039 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20040 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042 soname_spec
='${libname}${release}${shared_ext}$major'
20043 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20044 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20048 dynamic_linker
="$host_os dld.sl"
20049 shlibpath_var
=SHLIB_PATH
20050 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052 soname_spec
='${libname}${release}${shared_ext}$major'
20055 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20056 postinstall_cmds
='chmod 555 $lib'
20057 # or fails outright, so override atomically:
20058 install_override_mode
=555
20065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20066 soname_spec
='${libname}${release}${shared_ext}$major'
20067 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20068 shlibpath_var
=LD_LIBRARY_PATH
20069 shlibpath_overrides_runpath
=no
20070 hardcode_into_libs
=yes
20073 irix5
* | irix6
* | nonstopux
*)
20075 nonstopux
*) version_type
=nonstopux
;;
20077 if test "$lt_cv_prog_gnu_ld" = yes; then
20085 soname_spec
='${libname}${release}${shared_ext}$major'
20086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20088 irix5
* | nonstopux
*)
20089 libsuff
= shlibsuff
=
20092 case $LD in # libtool.m4 will add one of these switches to LD
20093 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20094 libsuff
= shlibsuff
= libmagic
=32-bit;;
20095 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20096 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20097 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20098 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20099 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20103 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20104 shlibpath_overrides_runpath
=no
20105 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20106 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20107 hardcode_into_libs
=yes
20110 # No shared lib support for Linux oldld, aout, or coff.
20111 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20115 # This must be Linux ELF.
20116 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20121 soname_spec
='${libname}${release}${shared_ext}$major'
20122 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20123 shlibpath_var
=LD_LIBRARY_PATH
20124 shlibpath_overrides_runpath
=no
20126 # Some binutils ld are patched to set DT_RUNPATH
20127 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20128 $as_echo_n "(cached) " >&6
20130 lt_cv_shlibpath_overrides_runpath
=no
20131 save_LDFLAGS
=$LDFLAGS
20132 save_libdir
=$libdir
20133 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20134 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20136 /* end confdefs.h. */
20146 if ac_fn_cxx_try_link
"$LINENO"; then :
20147 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20148 lt_cv_shlibpath_overrides_runpath
=yes
20151 rm -f core conftest.err conftest.
$ac_objext \
20152 conftest
$ac_exeext conftest.
$ac_ext
20153 LDFLAGS
=$save_LDFLAGS
20154 libdir
=$save_libdir
20158 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20160 # This implies no fast_install, which is unacceptable.
20161 # Some rework will be needed to allow for fast_install
20162 # before this can be enabled.
20163 hardcode_into_libs
=yes
20165 # Append ld.so.conf contents to the search path
20166 if test -f /etc
/ld.so.conf
; then
20167 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' ' '`
20168 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20171 # We used to test for /lib/ld.so.1 and disable shared libraries on
20172 # powerpc, because MkLinux only supported shared libraries with the
20173 # GNU dynamic linker. Since this was broken with cross compilers,
20174 # most powerpc-linux boxes support dynamic linking these days and
20175 # people can always --disable-shared, the test was removed, and we
20176 # assume the GNU/Linux dynamic linker is in use.
20177 dynamic_linker
='GNU/Linux ld.so'
20184 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20186 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20187 dynamic_linker
='NetBSD (a.out) ld.so'
20189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20190 soname_spec
='${libname}${release}${shared_ext}$major'
20191 dynamic_linker
='NetBSD ld.elf_so'
20193 shlibpath_var
=LD_LIBRARY_PATH
20194 shlibpath_overrides_runpath
=yes
20195 hardcode_into_libs
=yes
20200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201 shlibpath_var
=LD_LIBRARY_PATH
20202 shlibpath_overrides_runpath
=yes
20209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 soname_spec
='${libname}${release}${shared_ext}$major'
20211 shlibpath_var
=LD_LIBRARY_PATH
20212 shlibpath_overrides_runpath
=no
20213 hardcode_into_libs
=yes
20214 dynamic_linker
='ldqnx.so'
20219 sys_lib_dlsearch_path_spec
="/usr/lib"
20221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20223 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20224 *) need_version
=no
;;
20226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20227 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20228 shlibpath_var
=LD_LIBRARY_PATH
20229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20231 openbsd2.
[89] | openbsd2.
[89].
*)
20232 shlibpath_overrides_runpath
=no
20235 shlibpath_overrides_runpath
=yes
20239 shlibpath_overrides_runpath
=yes
20244 libname_spec
='$name'
20247 library_names_spec
='$libname${shared_ext} $libname.a'
20248 dynamic_linker
='OS/2 ld.exe'
20249 shlibpath_var
=LIBPATH
20252 osf3
* | osf4
* | osf5
*)
20256 soname_spec
='${libname}${release}${shared_ext}$major'
20257 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 shlibpath_var
=LD_LIBRARY_PATH
20259 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20260 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20272 soname_spec
='${libname}${release}${shared_ext}$major'
20273 shlibpath_var
=LD_LIBRARY_PATH
20274 shlibpath_overrides_runpath
=yes
20275 hardcode_into_libs
=yes
20276 # ldd complains unless libraries are executable
20277 postinstall_cmds
='chmod +x $lib'
20282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20283 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20284 shlibpath_var
=LD_LIBRARY_PATH
20285 shlibpath_overrides_runpath
=yes
20286 if test "$with_gnu_ld" = yes; then
20294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20295 soname_spec
='${libname}${release}${shared_ext}$major'
20296 shlibpath_var
=LD_LIBRARY_PATH
20297 case $host_vendor in
20299 shlibpath_overrides_runpath
=no
20301 runpath_var
=LD_RUN_PATH
20309 shlibpath_overrides_runpath
=no
20310 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20316 if test -d /usr
/nec
;then
20318 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20319 soname_spec
='$libname${shared_ext}.$major'
20320 shlibpath_var
=LD_LIBRARY_PATH
20324 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20325 version_type
=freebsd-elf
20328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20329 soname_spec
='${libname}${release}${shared_ext}$major'
20330 shlibpath_var
=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath
=yes
20332 hardcode_into_libs
=yes
20333 if test "$with_gnu_ld" = yes; then
20334 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20336 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20339 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20343 sys_lib_dlsearch_path_spec
='/usr/lib'
20347 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20352 shlibpath_var
=LD_LIBRARY_PATH
20353 shlibpath_overrides_runpath
=no
20354 hardcode_into_libs
=yes
20359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360 soname_spec
='${libname}${release}${shared_ext}$major'
20361 shlibpath_var
=LD_LIBRARY_PATH
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20369 $as_echo "$dynamic_linker" >&6; }
20370 test "$dynamic_linker" = no
&& can_build_shared
=no
20372 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20373 if test "$GCC" = yes; then
20374 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20377 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20378 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20380 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20381 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20422 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20423 hardcode_action_CXX
=
20424 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20425 test -n "$runpath_var_CXX" ||
20426 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20428 # We can hardcode non-existent directories.
20429 if test "$hardcode_direct_CXX" != no
&&
20430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20431 # have to relink, otherwise we might link with an installed library
20432 # when we should be linking with a yet-to-be-installed one
20433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20434 test "$hardcode_minus_L_CXX" != no
; then
20435 # Linking always hardcodes the temporary library directory.
20436 hardcode_action_CXX
=relink
20438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20439 hardcode_action_CXX
=immediate
20442 # We cannot hardcode anything, or else we can only hardcode existing
20444 hardcode_action_CXX
=unsupported
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20447 $as_echo "$hardcode_action_CXX" >&6; }
20449 if test "$hardcode_action_CXX" = relink ||
20450 test "$inherit_rpath_CXX" = yes; then
20451 # Fast installation is not supported
20452 enable_fast_install
=no
20453 elif test "$shlibpath_overrides_runpath" = yes ||
20454 test "$enable_shared" = no
; then
20455 # Fast installation is not necessary
20456 enable_fast_install
=needless
20465 fi # test -n "$compiler"
20471 with_gnu_ld
=$lt_save_with_gnu_ld
20472 lt_cv_path_LDCXX
=$lt_cv_path_LD
20473 lt_cv_path_LD
=$lt_save_path_LD
20474 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20475 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20476 fi # test "$_lt_caught_CXX_error" != yes
20479 ac_cpp
='$CPP $CPPFLAGS'
20480 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20499 # Only expand once:
20505 # Identify the assembler which will work hand-in-glove with the newly
20506 # built GCC, so that we can examine its features. This is the assembler
20507 # which will be driven by the driver program.
20509 # If build != host, and we aren't building gas in-tree, we identify a
20510 # build->target assembler and hope that it will have the same features
20511 # as the host->target assembler we'll be using.
20512 gcc_cv_gas_major_version
=
20513 gcc_cv_gas_minor_version
=
20514 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20516 if test "${gcc_cv_as+set}" = set; then :
20520 if test -x "$DEFAULT_ASSEMBLER"; then
20521 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20522 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20523 && test -f ..
/gas
/Makefile \
20524 && test x
$build = x
$host; then
20525 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20526 elif test -x as
$build_exeext; then
20527 # Build using assembler in the current directory.
20528 gcc_cv_as
=.
/as
$build_exeext
20529 elif test -x $AS_FOR_TARGET; then
20530 gcc_cv_as
="$AS_FOR_TARGET"
20532 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20533 set dummy
$AS_FOR_TARGET; ac_word
=$2
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20535 $as_echo_n "checking for $ac_word... " >&6; }
20536 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20537 $as_echo_n "(cached) " >&6
20541 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20545 for as_dir
in $PATH
20548 test -z "$as_dir" && as_dir
=.
20549 for ac_exec_ext
in '' $ac_executable_extensions; do
20550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20551 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20562 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20563 if test -n "$gcc_cv_as"; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20565 $as_echo "$gcc_cv_as" >&6; }
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20568 $as_echo "no" >&6; }
20575 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20577 case "$ORIGINAL_AS_FOR_TARGET" in
20578 .
/as | .
/as
$build_exeext) ;;
20579 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20584 $as_echo_n "checking what assembler to use... " >&6; }
20585 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20586 # Single tree build which includes gas. We want to prefer it
20587 # over whatever linker top-level may have detected, since
20588 # we'll use what we're building after installation anyway.
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20590 $as_echo "newly built gas" >&6; }
20592 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20593 for f
in $gcc_cv_as_bfd_srcdir/configure \
20594 $gcc_cv_as_gas_srcdir/configure \
20595 $gcc_cv_as_gas_srcdir/configure.
in \
20596 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20597 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20598 if test x
$gcc_cv_gas_version != x
; then
20602 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20603 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20604 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20605 case $gcc_cv_gas_patch_version in
20606 "") gcc_cv_gas_patch_version
="0" ;;
20608 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20609 + $gcc_cv_gas_minor_version \) \* 1000 \
20610 + $gcc_cv_gas_patch_version`
20612 in_tree_gas_is_elf
=no
20613 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20614 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20615 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20617 in_tree_gas_is_elf
=yes
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20621 $as_echo "$gcc_cv_as" >&6; }
20625 # Identify the linker which will work hand-in-glove with the newly
20626 # built GCC, so that we can examine its features. This is the linker
20627 # which will be driven by the driver program.
20629 # If build != host, and we aren't building gas in-tree, we identify a
20630 # build->target linker and hope that it will have the same features
20631 # as the host->target linker we'll be using.
20632 gcc_cv_gld_major_version
=
20633 gcc_cv_gld_minor_version
=
20634 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20635 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20637 if test "${gcc_cv_ld+set}" = set; then :
20641 if test -x "$DEFAULT_LINKER"; then
20642 gcc_cv_ld
="$DEFAULT_LINKER"
20643 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20644 && test -f ..
/ld
/Makefile \
20645 && test x
$build = x
$host; then
20646 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20647 elif test -x collect-ld
$build_exeext; then
20648 # Build using linker in the current directory.
20649 gcc_cv_ld
=.
/collect-ld
$build_exeext
20650 elif test -x $LD_FOR_TARGET; then
20651 gcc_cv_ld
="$LD_FOR_TARGET"
20653 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20654 set dummy
$LD_FOR_TARGET; ac_word
=$2
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20656 $as_echo_n "checking for $ac_word... " >&6; }
20657 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20658 $as_echo_n "(cached) " >&6
20662 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20666 for as_dir
in $PATH
20669 test -z "$as_dir" && as_dir
=.
20670 for ac_exec_ext
in '' $ac_executable_extensions; do
20671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20672 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20683 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20684 if test -n "$gcc_cv_ld"; then
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20686 $as_echo "$gcc_cv_ld" >&6; }
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20689 $as_echo "no" >&6; }
20696 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20697 PLUGIN_LD
=`basename $gcc_cv_ld`
20699 # Check whether --with-plugin-ld was given.
20700 if test "${with_plugin_ld+set}" = set; then :
20701 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20702 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20703 PLUGIN_LD
="$withval"
20709 cat >>confdefs.h
<<_ACEOF
20710 #define PLUGIN_LD "$PLUGIN_LD"
20714 # Check to see if we are using gold instead of ld
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20716 $as_echo_n "checking whether we are using gold... " >&6; }
20718 if test x
$gcc_cv_ld != x
; then
20719 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
20720 |
grep "GNU gold" > /dev
/null
; then
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20725 $as_echo "$ld_is_gold" >&6; }
20727 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20729 case "$ORIGINAL_LD_FOR_TARGET" in
20730 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20731 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20736 $as_echo_n "checking what linker to use... " >&6; }
20737 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20738 # Single tree build which includes ld. We want to prefer it
20739 # over whatever linker top-level may have detected, since
20740 # we'll use what we're building after installation anyway.
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20742 $as_echo "newly built ld" >&6; }
20744 in_tree_ld_is_elf
=no
20745 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20746 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20747 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20748 in_tree_ld_is_elf
=yes
20750 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
20752 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20753 if test x
$gcc_cv_gld_version != x
; then
20757 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20758 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20761 $as_echo "$gcc_cv_ld" >&6; }
20765 # Figure out what nm we will be using.
20766 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20767 if test "${gcc_cv_nm+set}" = set; then :
20771 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20772 && test -f ..
/binutils
/Makefile \
20773 && test x
$build = x
$host; then
20774 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20775 elif test -x nm
$build_exeext; then
20776 gcc_cv_nm
=.
/nm
$build_exeext
20777 elif test -x $NM_FOR_TARGET; then
20778 gcc_cv_nm
="$NM_FOR_TARGET"
20780 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20781 set dummy
$NM_FOR_TARGET; ac_word
=$2
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20783 $as_echo_n "checking for $ac_word... " >&6; }
20784 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20785 $as_echo_n "(cached) " >&6
20789 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20793 for as_dir
in $PATH
20796 test -z "$as_dir" && as_dir
=.
20797 for ac_exec_ext
in '' $ac_executable_extensions; do
20798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20799 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20810 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20811 if test -n "$gcc_cv_nm"; then
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20813 $as_echo "$gcc_cv_nm" >&6; }
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20816 $as_echo "no" >&6; }
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20824 $as_echo_n "checking what nm to use... " >&6; }
20825 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20826 # Single tree build which includes binutils.
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20828 $as_echo "newly built nm" >&6; }
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20832 $as_echo "$gcc_cv_nm" >&6; }
20836 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20838 case "$ORIGINAL_NM_FOR_TARGET" in
20839 .
/nm | .
/nm
$build_exeext) ;;
20840 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20845 # Figure out what objdump we will be using.
20846 if test "${gcc_cv_objdump+set}" = set; then :
20850 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20851 && test -f ..
/binutils
/Makefile \
20852 && test x
$build = x
$host; then
20853 # Single tree build which includes binutils.
20854 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20855 elif test -x objdump
$build_exeext; then
20856 gcc_cv_objdump
=.
/objdump
$build_exeext
20857 elif test -x $OBJDUMP_FOR_TARGET; then
20858 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20860 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20861 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20863 $as_echo_n "checking for $ac_word... " >&6; }
20864 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20865 $as_echo_n "(cached) " >&6
20867 case $gcc_cv_objdump in
20869 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20873 for as_dir
in $PATH
20876 test -z "$as_dir" && as_dir
=.
20877 for ac_exec_ext
in '' $ac_executable_extensions; do
20878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20879 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20890 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20891 if test -n "$gcc_cv_objdump"; then
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20893 $as_echo "$gcc_cv_objdump" >&6; }
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20896 $as_echo "no" >&6; }
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20904 $as_echo_n "checking what objdump to use... " >&6; }
20905 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20906 # Single tree build which includes binutils.
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20908 $as_echo "newly built objdump" >&6; }
20909 elif test x
$gcc_cv_objdump = x
; then
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20911 $as_echo "not found" >&6; }
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20914 $as_echo "$gcc_cv_objdump" >&6; }
20917 # Figure out what readelf we will be using.
20918 if test "${gcc_cv_readelf+set}" = set; then :
20922 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20923 && test -f ..
/binutils
/Makefile \
20924 && test x
$build = x
$host; then
20925 # Single tree build which includes binutils.
20926 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20927 elif test -x readelf
$build_exeext; then
20928 gcc_cv_readelf
=.
/readelf
$build_exeext
20930 # Extract the first word of "readelf", so it can be a program name with args.
20931 set dummy readelf
; ac_word
=$2
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20933 $as_echo_n "checking for $ac_word... " >&6; }
20934 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20935 $as_echo_n "(cached) " >&6
20937 case $gcc_cv_readelf in
20939 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20943 for as_dir
in $PATH
20946 test -z "$as_dir" && as_dir
=.
20947 for ac_exec_ext
in '' $ac_executable_extensions; do
20948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20949 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20960 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20961 if test -n "$gcc_cv_readelf"; then
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20963 $as_echo "$gcc_cv_readelf" >&6; }
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20966 $as_echo "no" >&6; }
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20974 $as_echo_n "checking what readelf to use... " >&6; }
20975 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20976 # Single tree build which includes binutils.
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20978 $as_echo "newly built readelf" >&6; }
20979 elif test x
$gcc_cv_readelf = x
; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20981 $as_echo "not found" >&6; }
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20984 $as_echo "$gcc_cv_readelf" >&6; }
20987 # Figure out what assembler alignment features are present.
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20989 $as_echo_n "checking assembler flags... " >&6; }
20990 if test "${gcc_cv_as_flags+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20994 i
[34567]86-*-linux*)
20995 gcc_cv_as_flags
="--32"
20998 gcc_cv_as_flags
=" "
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21003 $as_echo "$gcc_cv_as_flags" >&6; }
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21006 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21007 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21008 $as_echo_n "(cached) " >&6
21010 gcc_cv_as_balign_and_p2align
=no
21011 if test $in_tree_gas = yes; then
21012 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21013 then gcc_cv_as_balign_and_p2align
=yes
21015 elif test x
$gcc_cv_as != x
; then
21017 .p2align 2' > conftest.s
21018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21020 (eval $ac_try) 2>&5
21022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21023 test $ac_status = 0; }; }
21025 gcc_cv_as_balign_and_p2align
=yes
21027 echo "configure: failed program was" >&5
21030 rm -f conftest.o conftest.s
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21034 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21035 if test $gcc_cv_as_balign_and_p2align = yes; then
21037 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21042 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21043 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21044 $as_echo_n "(cached) " >&6
21046 gcc_cv_as_max_skip_p2align
=no
21047 if test $in_tree_gas = yes; then
21048 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21049 then gcc_cv_as_max_skip_p2align
=yes
21051 elif test x
$gcc_cv_as != x
; then
21052 echo '.p2align 4,,7' > conftest.s
21053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21055 (eval $ac_try) 2>&5
21057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21058 test $ac_status = 0; }; }
21060 gcc_cv_as_max_skip_p2align
=yes
21062 echo "configure: failed program was" >&5
21065 rm -f conftest.o conftest.s
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21069 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21070 if test $gcc_cv_as_max_skip_p2align = yes; then
21072 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21077 $as_echo_n "checking assembler for .literal16... " >&6; }
21078 if test "${gcc_cv_as_literal16+set}" = set; then :
21079 $as_echo_n "(cached) " >&6
21081 gcc_cv_as_literal16
=no
21082 if test $in_tree_gas = yes; then
21083 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21084 then gcc_cv_as_literal16
=yes
21086 elif test x
$gcc_cv_as != x
; then
21087 echo '.literal16' > conftest.s
21088 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21090 (eval $ac_try) 2>&5
21092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21093 test $ac_status = 0; }; }
21095 gcc_cv_as_literal16
=yes
21097 echo "configure: failed program was" >&5
21100 rm -f conftest.o conftest.s
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21104 $as_echo "$gcc_cv_as_literal16" >&6; }
21105 if test $gcc_cv_as_literal16 = yes; then
21107 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21112 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21113 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21116 gcc_cv_as_subsection_m1
=no
21117 if test $in_tree_gas = yes; then
21118 if test $in_tree_gas_is_elf = yes \
21119 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21120 then gcc_cv_as_subsection_m1
=yes
21122 elif test x
$gcc_cv_as != x
; then
21123 echo 'conftest_label1: .word 0
21125 conftest_label2: .word 0
21126 .previous' > conftest.s
21127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21129 (eval $ac_try) 2>&5
21131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21132 test $ac_status = 0; }; }
21134 if test x
$gcc_cv_nm != x
; then
21135 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21136 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21137 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21139 else gcc_cv_as_subsection_m1
=yes
21141 rm -f conftest.nm1 conftest.nm2
21144 echo "configure: failed program was" >&5
21147 rm -f conftest.o conftest.s
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21151 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21152 if test $gcc_cv_as_subsection_m1 = yes; then
21154 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21159 $as_echo_n "checking assembler for .weak... " >&6; }
21160 if test "${gcc_cv_as_weak+set}" = set; then :
21161 $as_echo_n "(cached) " >&6
21164 if test $in_tree_gas = yes; then
21165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21166 then gcc_cv_as_weak
=yes
21168 elif test x
$gcc_cv_as != x
; then
21169 echo ' .weak foobar' > conftest.s
21170 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21172 (eval $ac_try) 2>&5
21174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21175 test $ac_status = 0; }; }
21179 echo "configure: failed program was" >&5
21182 rm -f conftest.o conftest.s
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21186 $as_echo "$gcc_cv_as_weak" >&6; }
21187 if test $gcc_cv_as_weak = yes; then
21189 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21194 $as_echo_n "checking assembler for .weakref... " >&6; }
21195 if test "${gcc_cv_as_weakref+set}" = set; then :
21196 $as_echo_n "(cached) " >&6
21198 gcc_cv_as_weakref
=no
21199 if test $in_tree_gas = yes; then
21200 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21201 then gcc_cv_as_weakref
=yes
21203 elif test x
$gcc_cv_as != x
; then
21204 echo ' .weakref foobar, barfnot' > conftest.s
21205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21207 (eval $ac_try) 2>&5
21209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21210 test $ac_status = 0; }; }
21212 gcc_cv_as_weakref
=yes
21214 echo "configure: failed program was" >&5
21217 rm -f conftest.o conftest.s
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21221 $as_echo "$gcc_cv_as_weakref" >&6; }
21222 if test $gcc_cv_as_weakref = yes; then
21224 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21229 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21230 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21231 $as_echo_n "(cached) " >&6
21233 gcc_cv_as_nsubspa_comdat
=no
21234 if test $in_tree_gas = yes; then
21235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21236 then gcc_cv_as_nsubspa_comdat
=yes
21238 elif test x
$gcc_cv_as != x
; then
21239 echo ' .SPACE $TEXT$
21240 .NSUBSPA $CODE$,COMDAT' > conftest.s
21241 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21243 (eval $ac_try) 2>&5
21245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21246 test $ac_status = 0; }; }
21248 gcc_cv_as_nsubspa_comdat
=yes
21250 echo "configure: failed program was" >&5
21253 rm -f conftest.o conftest.s
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21257 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21258 if test $gcc_cv_as_nsubspa_comdat = yes; then
21260 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21264 # .hidden needs to be supported in both the assembler and the linker,
21265 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21266 # This is irritatingly difficult to feature test for; we have to check the
21267 # date string after the version number. If we've got an in-tree
21268 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21270 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21272 $as_echo_n "checking assembler for .hidden... " >&6; }
21273 if test "${gcc_cv_as_hidden+set}" = set; then :
21274 $as_echo_n "(cached) " >&6
21276 gcc_cv_as_hidden
=no
21277 if test $in_tree_gas = yes; then
21278 if test $in_tree_gas_is_elf = yes \
21279 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21280 then gcc_cv_as_hidden
=yes
21282 elif test x
$gcc_cv_as != x
; then
21283 echo ' .hidden foobar
21284 foobar:' > conftest.s
21285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21287 (eval $ac_try) 2>&5
21289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21290 test $ac_status = 0; }; }
21293 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21294 # STV_HIDDEN, so disable .hidden support if so.
21295 case "${target}" in
21297 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21298 cat > conftest.s
<<EOF
21303 .set default,hidden
21305 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21306 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21307 grep '\.hidden default' > /dev
/null
; then
21308 gcc_cv_as_hidden
=no
21310 gcc_cv_as_hidden
=yes
21313 # Assume bug is present if objdump is missing.
21314 gcc_cv_as_hidden
=no
21318 gcc_cv_as_hidden
=yes
21322 echo "configure: failed program was" >&5
21325 rm -f conftest.o conftest.s
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21329 $as_echo "$gcc_cv_as_hidden" >&6; }
21332 # gnu_indirect_function type is an extension proposed at
21333 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21334 # selection of function implementation
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_indirect_function" >&5
21336 $as_echo_n "checking assembler for gnu_indirect_function... " >&6; }
21337 if test "${gcc_cv_as_indirect_function+set}" = set; then :
21338 $as_echo_n "(cached) " >&6
21340 gcc_cv_as_indirect_function
=no
21341 if test $in_tree_gas = yes; then
21342 if test $in_tree_gas_is_elf = yes \
21343 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
21344 then gcc_cv_as_indirect_function
=yes
21346 elif test x
$gcc_cv_as != x
; then
21347 echo ' .type Foo, @gnu_indirect_function
21349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21351 (eval $ac_try) 2>&5
21353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21354 test $ac_status = 0; }; }
21356 gcc_cv_as_indirect_function
=yes
21358 echo "configure: failed program was" >&5
21361 rm -f conftest.o conftest.s
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_indirect_function" >&5
21365 $as_echo "$gcc_cv_as_indirect_function" >&6; }
21368 if test $gcc_cv_as_indirect_function = yes ; then
21370 $as_echo "#define HAVE_GAS_INDIRECT_FUNCTION 1" >>confdefs.h
21374 if test $in_tree_ld != yes ; then
21375 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21376 if test x
"$ld_is_gold" = xyes
; then
21377 gcc_cv_ld_hidden
=yes
21378 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21379 ld_vers
=`echo $ld_ver | sed -n \
21380 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21381 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'`
21382 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21383 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21384 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21386 case "${target}" in
21389 # Solaris 2 ld -V output looks like this for a regular version:
21391 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21393 # but test versions add stuff at the end:
21395 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21397 ld_ver
=`$gcc_cv_ld -V 2>&1`
21398 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21399 ld_vers
=`echo $ld_ver | sed -n \
21400 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21401 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21402 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21410 $as_echo_n "checking linker for .hidden support... " >&6; }
21411 if test "${gcc_cv_ld_hidden+set}" = set; then :
21412 $as_echo_n "(cached) " >&6
21414 if test $in_tree_ld = yes ; then
21415 gcc_cv_ld_hidden
=no
21416 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 \
21417 && test $in_tree_ld_is_elf = yes; then
21418 gcc_cv_ld_hidden
=yes
21421 gcc_cv_ld_hidden
=yes
21422 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21423 if test 0"$ld_date" -lt 20020404; then
21424 if test -n "$ld_date"; then
21425 # If there was date string, but was earlier than 2002-04-04, fail
21426 gcc_cv_ld_hidden
=no
21427 elif test -z "$ld_vers"; then
21428 # If there was no date string nor ld version number, something is wrong
21429 gcc_cv_ld_hidden
=no
21431 test -z "$ld_vers_patch" && ld_vers_patch
=0
21432 if test "$ld_vers_major" -lt 2; then
21433 gcc_cv_ld_hidden
=no
21434 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21435 gcc_cv_ld_hidden
="no"
21436 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21437 gcc_cv_ld_hidden
=no
21442 case "${target}" in
21443 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21444 gcc_cv_ld_hidden
=yes
21446 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21447 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21448 # .symbolic was only added in Solaris 9 12/02.
21449 gcc_cv_ld_hidden
=yes
21452 gcc_cv_ld_hidden
=no
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21459 $as_echo "$gcc_cv_ld_hidden" >&6; }
21460 libgcc_visibility
=no
21463 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21464 libgcc_visibility
=yes
21466 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21471 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21472 gcc_cv_ld_ro_rw_mix
=unknown
21473 if test $in_tree_ld = yes ; then
21474 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 \
21475 && test $in_tree_ld_is_elf = yes; then
21476 gcc_cv_ld_ro_rw_mix
=read-write
21478 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21479 echo '.section myfoosect, "a"' > conftest1.s
21480 echo '.section myfoosect, "aw"' > conftest2.s
21481 echo '.byte 1' >> conftest2.s
21482 echo '.section myfoosect, "a"' > conftest3.s
21483 echo '.byte 0' >> conftest3.s
21484 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21485 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21486 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21487 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21488 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21489 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21490 | sed -e '/myfoosect/!d' -e N`
21491 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21492 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21493 gcc_cv_ld_ro_rw_mix
=read-only
21495 gcc_cv_ld_ro_rw_mix
=read-write
21499 rm -f conftest.
* conftest
[123].
*
21501 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21503 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21507 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21509 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21511 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21512 if test "${gcc_cv_as_leb128+set}" = set; then :
21513 $as_echo_n "(cached) " >&6
21515 gcc_cv_as_leb128
=no
21516 if test $in_tree_gas = yes; then
21517 if test $in_tree_gas_is_elf = yes \
21518 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21519 then gcc_cv_as_leb128
=yes
21521 elif test x
$gcc_cv_as != x
; then
21528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21530 (eval $ac_try) 2>&5
21532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21533 test $ac_status = 0; }; }
21535 # GAS versions before 2.11 do not support uleb128,
21536 # despite appearing to.
21537 # ??? There exists an elf-specific test that will crash
21538 # the assembler. Perhaps it's better to figure out whether
21539 # arbitrary sections are supported and try the test.
21540 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21541 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21542 as_vers
=`echo $as_ver | sed -n \
21543 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21544 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21545 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21546 if test $as_major -eq 2 && test $as_minor -lt 11
21548 else gcc_cv_as_leb128
=yes
21552 echo "configure: failed program was" >&5
21555 rm -f conftest.o conftest.s
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21559 $as_echo "$gcc_cv_as_leb128" >&6; }
21560 if test $gcc_cv_as_leb128 = yes; then
21562 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21566 # Check if we have assembler support for unwind directives.
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21568 $as_echo_n "checking assembler for cfi directives... " >&6; }
21569 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21570 $as_echo_n "(cached) " >&6
21572 gcc_cv_as_cfi_directive
=no
21573 if test x
$gcc_cv_as != x
; then
21579 .cfi_escape 1, 2, 3, 4, 5
21580 .cfi_endproc' > conftest.s
21581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21583 (eval $ac_try) 2>&5
21585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586 test $ac_status = 0; }; }
21590 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21591 # read-only and read-write sections, we need to make sure that the
21592 # assembler used emits read-write .eh_frame sections.
21593 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21594 if test "x$gcc_cv_objdump" != x
; then
21595 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21596 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21597 gcc_cv_as_cfi_directive
=no
21600 i?
86-*-solaris2.1
[0-9]*)
21601 # On Solaris/x86, make sure that GCC and gas agree on using
21602 # read-only .eh_frame sections for 64-bit.
21603 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21604 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21605 sed -e /.eh_frame
/!d
-e N | \
21606 grep READONLY
> /dev
/null
; then
21607 gcc_cv_as_cfi_directive
=yes
21609 gcc_cv_as_cfi_directive
=no
21613 gcc_cv_as_cfi_directive
=yes
21618 # no objdump, err on the side of caution
21619 gcc_cv_as_cfi_directive
=no
21622 gcc_cv_as_cfi_directive
=yes
21626 gcc_cv_as_cfi_directive
=yes
21630 echo "configure: failed program was" >&5
21633 rm -f conftest.o conftest.s
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21637 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21639 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21641 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21642 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21643 $as_echo_n "(cached) " >&6
21645 gcc_cv_as_cfi_advance_working
=no
21646 if test x
$gcc_cv_as != x
; then
21649 .cfi_adjust_cfa_offset 64
21651 .cfi_adjust_cfa_offset 128
21652 .cfi_endproc' > conftest.s
21653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21655 (eval $ac_try) 2>&5
21657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21658 test $ac_status = 0; }; }
21661 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
21662 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21663 gcc_cv_as_cfi_advance_working
=yes
21667 echo "configure: failed program was" >&5
21670 rm -f conftest.o conftest.s
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21674 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21677 # no objdump, err on the side of caution
21678 gcc_cv_as_cfi_advance_working
=no
21681 cat >>confdefs.h
<<_ACEOF
21682 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21683 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21688 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21689 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21692 gcc_cv_as_cfi_personality_directive
=no
21693 if test x
$gcc_cv_as != x
; then
21696 .cfi_personality 0, symbol
21697 .cfi_endproc' > conftest.s
21698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21700 (eval $ac_try) 2>&5
21702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21703 test $ac_status = 0; }; }
21705 gcc_cv_as_cfi_personality_directive
=yes
21707 echo "configure: failed program was" >&5
21710 rm -f conftest.o conftest.s
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21714 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21717 cat >>confdefs.h
<<_ACEOF
21718 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21719 then echo 1; else echo 0; fi`
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21724 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21725 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21728 gcc_cv_as_cfi_sections_directive
=no
21729 if test x
$gcc_cv_as != x
; then
21731 .cfi_sections .debug_frame, .eh_frame
21733 .cfi_endproc' > conftest.s
21734 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21736 (eval $ac_try) 2>&5
21738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21739 test $ac_status = 0; }; }
21742 win32 | pe | cygwin
* | mingw32
* | uwin
*)
21743 # Need to check that we generated the correct relocation for the
21744 # .debug_frame section. This was fixed for binutils 2.21.
21745 gcc_cv_as_cfi_sections_directive
=no
21746 if test "x$gcc_cv_objdump" != x
; then
21747 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
21748 grep secrel
> /dev
/null
; then
21749 gcc_cv_as_cfi_sections_directive
=yes
21754 gcc_cv_as_cfi_sections_directive
=yes
21758 echo "configure: failed program was" >&5
21761 rm -f conftest.o conftest.s
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21765 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21768 cat >>confdefs.h
<<_ACEOF
21769 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21770 then echo 1; else echo 0; fi`
21774 # GAS versions up to and including 2.11.0 may mis-optimize
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21777 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21778 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21781 gcc_cv_as_eh_frame
=no
21782 if test $in_tree_gas = yes; then
21783 if test $in_tree_gas_is_elf = yes \
21784 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21785 then gcc_cv_as_eh_frame
=yes
21787 elif test x
$gcc_cv_as != x
; then
21794 .section .eh_frame,"aw",@progbits
21796 .4byte .LECIE1-.LSCIE1
21810 .4byte .LEFDE1-.LASFDE1
21812 .4byte .LASFDE1-__FRAME_BEGIN__
21819 .LEFDE1:' > conftest.s
21820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21822 (eval $ac_try) 2>&5
21824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21825 test $ac_status = 0; }; }
21827 cat > conftest.lit
<<EOF
21828 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21829 0010 01000000 12000000 18000000 00000000 ................
21830 0020 08000000 04080000 0044 .........D
21832 cat > conftest.big
<<EOF
21833 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21834 0010 00000001 00000012 00000018 00000000 ................
21835 0020 00000008 04000000 0844 .........D
21837 # If the assembler didn't choke, and we can objdump,
21838 # and we got the correct data, then succeed.
21839 # The text in the here-document typically retains its unix-style line
21840 # endings, while the output of objdump will use host line endings.
21841 # Therefore, use diff -b for the comparisons.
21842 if test x
$gcc_cv_objdump != x \
21843 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21844 |
tail -3 > conftest.got \
21845 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21846 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21848 gcc_cv_as_eh_frame
=yes
21849 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21851 (eval $ac_try) 2>&5
21853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854 test $ac_status = 0; }; }; then
21855 gcc_cv_as_eh_frame
=buggy
21857 # Uh oh, what do we do now?
21858 gcc_cv_as_eh_frame
=no
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_eh_frame" >&5
21868 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21871 if test $gcc_cv_as_eh_frame = buggy
; then
21873 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21878 $as_echo_n "checking assembler for section merging support... " >&6; }
21879 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21882 gcc_cv_as_shf_merge
=no
21883 if test $in_tree_gas = yes; then
21884 if test $in_tree_gas_is_elf = yes \
21885 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21886 then gcc_cv_as_shf_merge
=yes
21888 elif test x
$gcc_cv_as != x
; then
21889 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21892 (eval $ac_try) 2>&5
21894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21895 test $ac_status = 0; }; }
21897 gcc_cv_as_shf_merge
=yes
21899 echo "configure: failed program was" >&5
21902 rm -f conftest.o conftest.s
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21906 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21908 if test $gcc_cv_as_shf_merge = no
; then
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21910 $as_echo_n "checking assembler for section merging support... " >&6; }
21911 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21912 $as_echo_n "(cached) " >&6
21914 gcc_cv_as_shf_merge
=no
21915 if test $in_tree_gas = yes; then
21916 if test $in_tree_gas_is_elf = yes \
21917 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21918 then gcc_cv_as_shf_merge
=yes
21920 elif test x
$gcc_cv_as != x
; then
21921 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21922 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21924 (eval $ac_try) 2>&5
21926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927 test $ac_status = 0; }; }
21929 gcc_cv_as_shf_merge
=yes
21931 echo "configure: failed program was" >&5
21934 rm -f conftest.o conftest.s
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21938 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21942 cat >>confdefs.h
<<_ACEOF
21943 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21948 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21949 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21950 $as_echo_n "(cached) " >&6
21952 gcc_cv_as_comdat_group
=no
21953 if test $in_tree_gas = yes; then
21954 if test $in_tree_gas_is_elf = yes \
21955 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21956 then gcc_cv_as_comdat_group
=yes
21958 elif test x
$gcc_cv_as != x
; then
21959 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21962 (eval $ac_try) 2>&5
21964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21965 test $ac_status = 0; }; }
21967 gcc_cv_as_comdat_group
=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_comdat_group" >&5
21976 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21978 if test $gcc_cv_as_comdat_group = yes; then
21979 gcc_cv_as_comdat_group_percent
=no
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21982 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21983 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21986 gcc_cv_as_comdat_group_percent
=no
21987 if test $in_tree_gas = yes; then
21988 if test $in_tree_gas_is_elf = yes \
21989 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21990 then gcc_cv_as_comdat_group_percent
=yes
21992 elif test x
$gcc_cv_as != x
; then
21993 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21996 (eval $ac_try) 2>&5
21998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21999 test $ac_status = 0; }; }
22001 gcc_cv_as_comdat_group_percent
=yes
22003 echo "configure: failed program was" >&5
22006 rm -f conftest.o conftest.s
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22010 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22013 if test x
"$ld_is_gold" = xyes
; then
22015 elif test $in_tree_ld = yes ; then
22017 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 \
22018 && test $in_tree_ld_is_elf = yes; then
22021 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22023 if test 0"$ld_date" -lt 20050308; then
22024 if test -n "$ld_date"; then
22025 # If there was date string, but was earlier than 2005-03-08, fail
22027 elif test "$ld_vers_major" -lt 2; then
22029 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22034 case "${target}" in
22035 *-*-solaris2.1
[1-9]*)
22036 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22037 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22040 # FIXME: Maybe need to refine later when COMDAT group support with
22041 # Sun as is implemented.
22042 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
22049 # Assume linkers other than GNU ld don't support COMDAT group.
22054 # Allow overriding the automatic COMDAT group tests above.
22055 # Check whether --enable-comdat was given.
22056 if test "${enable_comdat+set}" = set; then :
22057 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22060 if test $comdat_group = no
; then
22061 gcc_cv_as_comdat_group
=no
22062 gcc_cv_as_comdat_group_percent
=no
22065 cat >>confdefs.h
<<_ACEOF
22066 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22071 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22072 if test "${gcc_cv_as_discriminator+set}" = set; then :
22073 $as_echo_n "(cached) " >&6
22075 gcc_cv_as_discriminator
=no
22076 if test $in_tree_gas = yes; then
22077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22078 then gcc_cv_as_discriminator
=yes
22080 elif test x
$gcc_cv_as != x
; then
22083 .loc 1 1 0 discriminator 1' > conftest.s
22084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22086 (eval $ac_try) 2>&5
22088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22089 test $ac_status = 0; }; }
22091 gcc_cv_as_discriminator
=yes
22093 echo "configure: failed program was" >&5
22096 rm -f conftest.o conftest.s
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22100 $as_echo "$gcc_cv_as_discriminator" >&6; }
22101 if test $gcc_cv_as_discriminator = yes; then
22103 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22107 # Thread-local storage - the check is heavily parameterized.
22115 .section ".tdata","awT",@progbits
22118 ldq $27,__tls_get_addr($29) !literal!1
22119 lda $16,foo($29) !tlsgd!1
22120 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22121 ldq $27,__tls_get_addr($29) !literal!2
22122 lda $16,foo($29) !tlsldm!2
22123 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22124 ldq $1,foo($29) !gotdtprel
22125 ldah $2,foo($29) !dtprelhi
22126 lda $3,foo($2) !dtprello
22127 lda $4,foo($29) !dtprel
22128 ldq $1,foo($29) !gottprel
22129 ldah $2,foo($29) !tprelhi
22130 lda $3,foo($2) !tprello
22131 lda $4,foo($29) !tprel'
22134 tls_as_opt
=--fatal-warnings
22136 cris-
*-*|crisv32-
*-*)
22138 .section ".tdata","awT",@progbits
22145 tls_as_opt
=--fatal-warnings
22149 .section ".tdata","awT",@progbits
22152 call #gettlsoff(x)'
22161 .section ".tdata","awT",@progbits
22165 addil LT%foo-$tls_gdidx$,gp
22166 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22169 addil LT%foo-$tls_ldidx$,gp
22171 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22172 addil LR%foo-$tls_dtpoff$,%ret0
22173 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22175 addil LT%foo-$tls_ieoff$,gp
22176 ldw RT%foo-$tls_ieoff$(%r1),%t2
22179 addil LR%foo-$tls_leoff$,%t1
22180 ldo RR%foo-$tls_leoff$(%r1),%t2'
22183 tls_as_opt
=--fatal-warnings
22187 .section ".tdata","awT",%progbits
22190 .word foo(gottpoff)
22200 i
[34567]86-*-solaris2.
*)
22202 tga_func
=___tls_get_addr
22208 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22210 .section .tdata,"awt",@progbits'
22214 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22218 .section ".tdata","awT",@progbits'
22221 tls_as_opt
="--fatal-warnings"
22223 conftest_s
="$conftest_s
22227 leal foo@tlsgd(,%ebx,1), %eax
22228 leal foo@tlsldm(%ebx), %eax
22229 leal foo@dtpoff(%eax), %edx
22230 movl foo@gottpoff(%ebx), %eax
22231 subl foo@gottpoff(%ebx), %eax
22232 addl foo@gotntpoff(%ebx), %eax
22233 movl foo@indntpoff, %eax
22234 movl \$foo@tpoff, %eax
22235 subl \$foo@tpoff, %eax
22236 leal foo@ntpoff(%ecx), %eax"
22240 .section ".tdata","awT",@progbits
22244 leaq foo@TLSGD(%rip), %rdi
22245 leaq foo@TLSLD(%rip), %rdi
22246 leaq foo@DTPOFF(%rax), %rdx
22247 movq foo@GOTTPOFF(%rip), %rax
22248 movq $foo@TPOFF, %rax'
22251 tls_as_opt
=--fatal-warnings
22255 .section ".tdata","awT",@progbits
22258 addl r16 = @ltoff(@dtpmod(foo#)), gp
22259 addl r17 = @ltoff(@dtprel(foo#)), gp
22260 addl r18 = @ltoff(@tprel(foo#)), gp
22261 addl r19 = @dtprel(foo#), gp
22262 adds r21 = @dtprel(foo#), r13
22263 movl r23 = @dtprel(foo#)
22264 addl r20 = @tprel(foo#), gp
22265 adds r22 = @tprel(foo#), r13
22266 movl r24 = @tprel(foo#)'
22269 tls_as_opt
=--fatal-warnings
22273 .section .tdata,"awT",@progbits
22277 addiu $4, $28, %tlsgd(x)
22278 addiu $4, $28, %tlsldm(x)
22279 lui $4, %dtprel_hi(x)
22280 addiu $4, $4, %dtprel_lo(x)
22281 lw $4, %gottprel(x)($28)
22282 lui $4, %tprel_hi(x)
22283 addiu $4, $4, %tprel_lo(x)'
22286 tls_as_opt
='-32 --fatal-warnings'
22290 .section .tdata,"awT",@progbits
22295 move.l x@TLSGD(%a5),%a0
22296 move.l x@TLSLDM(%a5),%a0
22297 move.l x@TLSLDO(%a5),%a0
22298 move.l x@TLSIE(%a5),%a0
22299 move.l x@TLSLE(%a5),%a0'
22302 tls_as_opt
='--fatal-warnings'
22306 .section ".tdata","awT",@progbits
22314 addi 3,31,ld0@got@tlsgd
22316 addi 3,31,x1@got@tlsld
22319 addis 9,3,x2@dtprel@ha
22320 addi 9,9,x2@dtprel@l
22321 lwz 9,x3@got@tprel(31)
22324 addis 9,2,x2@tprel@ha
22325 addi 9,9,x2@tprel@l'
22328 tls_as_opt
="-a32 --fatal-warnings"
22332 .section ".tdata","awT",@progbits
22340 addi 3,2,ld0@got@tlsgd
22346 addi 3,2,x1@got@tlsld
22352 addis 9,3,x2@dtprel@ha
22353 addi 9,9,x2@dtprel@l
22356 ld 9,x3@got@dtprel(2)
22362 tls_as_opt
="-a64 --fatal-warnings"
22366 .section ".tdata","awT",@progbits
22373 .long foo@GOTNTPOFF
22374 .long foo@INDNTPOFF
22375 l %r1,foo@GOTNTPOFF(%r12)
22376 l %r1,0(%r1):tls_load:foo
22377 bas %r14,0(%r1,%r13):tls_gdcall:foo
22378 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22381 tls_as_opt
="-m31 --fatal-warnings"
22385 .section ".tdata","awT",@progbits
22392 .quad foo@GOTNTPOFF
22393 lg %r1,foo@GOTNTPOFF(%r12)
22394 larl %r1,foo@INDNTPOFF
22395 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22396 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22399 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22401 sh-
*-* | sh
[34]-*-*)
22403 .section ".tdata","awT",@progbits
22413 tls_as_opt
=--fatal-warnings
22417 sparc
*-sun-solaris2.
*)
22419 tga_func
=__tls_get_addr
22425 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22427 .section ".tdata",#alloc,#write,#tls'
22432 .section ".tdata","awT",@progbits'
22435 tls_as_opt
="-32 --fatal-warnings"
22437 conftest_s
="$conftest_s
22440 sethi %tgd_hi22(foo), %o0
22441 add %o0, %tgd_lo10(foo), %o1
22442 add %l7, %o1, %o0, %tgd_add(foo)
22443 call __tls_get_addr, %tgd_call(foo)
22444 sethi %tldm_hi22(foo), %l1
22445 add %l1, %tldm_lo10(foo), %l2
22446 add %l7, %l2, %o0, %tldm_add(foo)
22447 call __tls_get_addr, %tldm_call(foo)
22448 sethi %tldo_hix22(foo), %l3
22449 xor %l3, %tldo_lox10(foo), %l4
22450 add %o0, %l4, %l5, %tldo_add(foo)
22451 sethi %tie_hi22(foo), %o3
22452 add %o3, %tie_lo10(foo), %o3
22453 ld [%l7 + %o3], %o2, %tie_ld(foo)
22454 add %g7, %o2, %o4, %tie_add(foo)
22455 sethi %tle_hix22(foo), %l1
22456 xor %l1, %tle_lox10(foo), %o5
22457 ld [%g7 + %o5], %o1"
22461 .section ".tdata","awT",@progbits
22464 movi a8, foo@TLSFUNC
22465 movi a10, foo@TLSARG
22466 callx8.tls a8, foo@TLSCALL'
22472 if test "x$enable_tls" = xno
; then
22473 : # TLS explicitly disabled.
22474 elif test "x$enable_tls" = xyes
; then
22475 set_have_as_tls
=yes # TLS explicitly enabled.
22476 elif test -z "$tls_first_major"; then
22477 : # If we don't have a check, assume no support.
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22480 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22481 if test "${gcc_cv_as_tls+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22485 if test $in_tree_gas = yes; then
22486 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22487 then gcc_cv_as_tls
=yes
22489 elif test x
$gcc_cv_as != x
; then
22490 echo "$conftest_s" > conftest.s
22491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22493 (eval $ac_try) 2>&5
22495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496 test $ac_status = 0; }; }
22500 echo "configure: failed program was" >&5
22503 rm -f conftest.o conftest.s
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22507 $as_echo "$gcc_cv_as_tls" >&6; }
22508 if test $gcc_cv_as_tls = yes; then
22509 set_have_as_tls
=yes
22513 # TLS was introduced in the Solaris 9 FCS release and backported to
22514 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22515 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22516 # ld and GCC don't support any longer.
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22519 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22521 # Check ld and ld.so.1 TLS support.
22522 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22523 # Assume all interesting versions of GNU ld have TLS support.
22524 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22528 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22530 min_tls_ld_vers_minor
=280
22532 # Solaris 8/SPARC ld has TLS support since version 1.272.
22533 sparc
*-*-solaris2.8
)
22534 min_tls_ld_vers_minor
=272
22536 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22538 min_tls_ld_vers_minor
=374
22540 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22541 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
22542 min_tls_ld_vers_minor
=343
22545 if test "$ls_vers_major" -gt 1 || \
22546 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22553 $as_echo "$ld_tls_support" >&6; }
22556 save_LDFLAGS
="$LDFLAGS"
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22561 $as_echo_n "checking alternate thread library... " >&6; }
22563 # TLS support was backported to Solaris 8 patches, but only lives in
22564 # the alternate thread library which became the default in Solaris 9.
22565 # We want to always use that, irrespective of TLS support.
22567 # Take multilib subdir into account. There's no spec to handle
22568 # this. The 64 symlink exists since Solaris 8.
22569 lwp_dir
=/usr
/lib
/lwp
22570 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22571 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
22578 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22580 cat >>confdefs.h
<<_ACEOF
22581 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22585 $as_echo "$lwp_dir" >&6; }
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22588 $as_echo_n "checking library containing $tga_func... " >&6; }
22589 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22590 # (32-bit x86) only lived in libthread, so check for that. Keep
22591 # set_have_as_tls if found, disable if not.
22592 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22594 $as_echo_n "checking for library containing $tga_func... " >&6; }
22595 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22596 $as_echo_n "(cached) " >&6
22598 ac_func_search_save_LIBS
=$LIBS
22599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h. */
22602 /* Override any GCC internal prototype to avoid an error.
22603 Use char because int might match the return type of a GCC
22604 builtin and then its argument prototype would still apply. */
22612 return $tga_func ();
22617 for ac_lib
in '' thread
; do
22618 if test -z "$ac_lib"; then
22619 ac_res
="none required"
22622 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22624 if ac_fn_c_try_link
"$LINENO"; then :
22625 eval "$as_ac_Search=\$ac_res"
22627 rm -f core conftest.err conftest.
$ac_objext \
22629 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22633 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22636 eval "$as_ac_Search=no"
22638 rm conftest.
$ac_ext
22639 LIBS
=$ac_func_search_save_LIBS
22641 eval ac_res
=\$
$as_ac_Search
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22643 $as_echo "$ac_res" >&6; }
22644 eval ac_res
=\$
$as_ac_Search
22645 if test "$ac_res" != no
; then :
22646 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22652 # Clear LIBS if we cannot support TLS.
22653 if test $set_have_as_tls = no
; then
22656 # Always define LIB_TLS_SPEC, even without TLS support.
22658 cat >>confdefs.h
<<_ACEOF
22659 #define LIB_TLS_SPEC "$LIBS"
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22663 $as_echo "$LIBS" >&6; }
22666 LDFLAGS
="$save_LDFLAGS"
22669 if test $set_have_as_tls = yes ; then
22671 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22675 # Target-specific assembler checks.
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22678 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22679 gcc_cv_ld_static_dynamic
=no
22680 if test $in_tree_ld = yes ; then
22681 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
22682 gcc_cv_ld_static_dynamic
=yes
22684 elif test x
$gcc_cv_ld != x
; then
22685 # Check if linker supports -Bstatic/-Bdynamic option
22686 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22687 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22688 gcc_cv_ld_static_dynamic
=yes
22691 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22693 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22697 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22699 if test x
"$demangler_in_ld" = xyes
; then
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22701 $as_echo_n "checking linker --demangle support... " >&6; }
22702 gcc_cv_ld_demangle
=no
22703 if test $in_tree_ld = yes; then
22704 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 \
22705 gcc_cv_ld_demangle
=yes
22707 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22708 # Check if the GNU linker supports --demangle option
22709 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22710 gcc_cv_ld_demangle
=yes
22713 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22715 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22719 $as_echo "$gcc_cv_ld_demangle" >&6; }
22723 # All TARGET_ABI_OSF targets.
22724 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22726 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22727 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22728 $as_echo_n "(cached) " >&6
22730 gcc_cv_as_alpha_explicit_relocs
=no
22731 if test $in_tree_gas = yes; then
22732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22733 then gcc_cv_as_alpha_explicit_relocs
=yes
22735 elif test x
$gcc_cv_as != x
; then
22736 echo ' .set nomacro
22738 extbl $3, $2, $3 !lituse_bytoff!1
22739 ldq $2, a($29) !literal!1
22740 ldq $4, b($29) !literal!2
22741 ldq_u $3, 0($2) !lituse_base!1
22742 ldq $27, f($29) !literal!5
22743 jsr $26, ($27), f !lituse_jsr!5
22744 ldah $29, 0($26) !gpdisp!3
22745 lda $0, c($29) !gprel
22746 ldah $1, d($29) !gprelhigh
22747 lda $1, d($1) !gprellow
22748 lda $29, 0($29) !gpdisp!3' > conftest.s
22749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; }
22756 gcc_cv_as_alpha_explicit_relocs
=yes
22758 echo "configure: failed program was" >&5
22761 rm -f conftest.o conftest.s
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22765 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22766 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22768 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22772 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22773 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22774 $as_echo_n "(cached) " >&6
22776 gcc_cv_as_alpha_jsrdirect_relocs
=no
22777 if test $in_tree_gas = yes; then
22778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22779 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22781 elif test x
$gcc_cv_as != x
; then
22782 echo ' .set nomacro
22784 ldq $27, a($29) !literal!1
22785 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22788 (eval $ac_try) 2>&5
22790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22791 test $ac_status = 0; }; }
22793 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22795 echo "configure: failed program was" >&5
22798 rm -f conftest.o conftest.s
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22802 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22803 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22805 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22812 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22813 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22816 gcc_cv_as_cris_no_mul_bug
=no
22817 if test $in_tree_gas = yes; then
22818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22819 then gcc_cv_as_cris_no_mul_bug
=yes
22821 elif test x
$gcc_cv_as != x
; then
22822 echo '.text' > conftest.s
22823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22825 (eval $ac_try) 2>&5
22827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22828 test $ac_status = 0; }; }
22830 gcc_cv_as_cris_no_mul_bug
=yes
22832 echo "configure: failed program was" >&5
22835 rm -f conftest.o conftest.s
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22839 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22840 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22842 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22849 $as_echo_n "checking assembler for .register... " >&6; }
22850 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22853 gcc_cv_as_sparc_register_op
=no
22854 if test x
$gcc_cv_as != x
; then
22855 echo '.register %g2, #scratch' > conftest.s
22856 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }
22863 gcc_cv_as_sparc_register_op
=yes
22865 echo "configure: failed program was" >&5
22868 rm -f conftest.o conftest.s
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22872 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22873 if test $gcc_cv_as_sparc_register_op = yes; then
22875 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22880 $as_echo_n "checking assembler for -relax option... " >&6; }
22881 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22882 $as_echo_n "(cached) " >&6
22884 gcc_cv_as_sparc_relax
=no
22885 if test x
$gcc_cv_as != x
; then
22886 echo '.text' > conftest.s
22887 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22889 (eval $ac_try) 2>&5
22891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22892 test $ac_status = 0; }; }
22894 gcc_cv_as_sparc_relax
=yes
22896 echo "configure: failed program was" >&5
22899 rm -f conftest.o conftest.s
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22903 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22904 if test $gcc_cv_as_sparc_relax = yes; then
22906 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22911 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22912 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22915 gcc_cv_as_sparc_gotdata_op
=no
22916 if test x
$gcc_cv_as != x
; then
22921 sethi %gdop_hix22(foo), %g1
22922 xor %g1, %gdop_lox10(foo), %g1
22923 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }
22931 if test x
$gcc_cv_ld != x \
22932 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22933 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
22934 if test x
$gcc_cv_objdump != x
; then
22935 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
22936 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
22937 gcc_cv_as_sparc_gotdata_op
=no
22939 gcc_cv_as_sparc_gotdata_op
=yes
22943 gcc_cv_as_sparc_gotdata_op
=yes
22948 echo "configure: failed program was" >&5
22951 rm -f conftest.o conftest.s
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22955 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22956 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22958 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22963 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22964 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22967 gcc_cv_as_sparc_ua_pcrel
=no
22968 if test x
$gcc_cv_as != x
; then
22975 .uaword %r_disp32(foo)' > conftest.s
22976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22978 (eval $ac_try) 2>&5
22980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22981 test $ac_status = 0; }; }
22983 if test x
$gcc_cv_ld != x \
22984 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22985 gcc_cv_as_sparc_ua_pcrel
=yes
22989 echo "configure: failed program was" >&5
22992 rm -f conftest.o conftest.s
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22996 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22997 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22999 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23003 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23004 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23007 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23008 if test x
$gcc_cv_as != x
; then
23012 .uaword %r_disp32(foo)
23013 .byte 0x32, 0x33, 0x34
23017 .skip 4' > conftest.s
23018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23020 (eval $ac_try) 2>&5
23022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023 test $ac_status = 0; }; }
23025 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23026 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23027 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23028 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23029 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23030 |
grep 'DISP32' > /dev
/null
2>&1; then
23033 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23038 echo "configure: failed program was" >&5
23041 rm -f conftest.o conftest.s
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23045 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23046 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23048 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23052 fi # unaligned pcrel relocs
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23055 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23056 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23057 $as_echo_n "(cached) " >&6
23059 gcc_cv_as_sparc_offsetable_lo10
=no
23060 if test x
$gcc_cv_as != x
; then
23062 or %g1, %lo(ab) + 12, %g1
23063 or %g1, %lo(ab + 12), %g1' > conftest.s
23064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23066 (eval $ac_try) 2>&5
23068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23069 test $ac_status = 0; }; }
23071 if test x
$gcc_cv_objdump != x \
23072 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23073 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23074 gcc_cv_as_sparc_offsetable_lo10
=yes
23077 echo "configure: failed program was" >&5
23080 rm -f conftest.o conftest.s
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23084 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23085 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23087 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23092 i
[34567]86-*-* | x86_64-
*-*)
23095 # Full C++ conformance when using a shared libstdc++-v3 requires some
23096 # support from the Cygwin DLL, which in more recent versions exports
23097 # wrappers to aid in interposing and redirecting operators new, delete,
23098 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23099 # are configuring for a version of Cygwin that exports the wrappers.
23100 if test x
$host = x
$target; then
23101 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23102 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23103 gcc_ac_cygwin_dll_wrappers
=yes
23105 gcc_ac_cygwin_dll_wrappers
=no
23109 # Can't check presence of libc functions during cross-compile, so
23110 # we just have to assume we're building for an up-to-date target.
23111 gcc_ac_cygwin_dll_wrappers
=yes
23114 cat >>confdefs.h
<<_ACEOF
23115 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23120 cygwin
* | pe | mingw32
*)
23121 # Recent binutils allows the three-operand form of ".comm" on PE. This
23122 # definition is used unconditionally to initialise the default state of
23123 # the target option variable that governs usage of the feature.
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23125 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23126 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
23129 gcc_cv_as_comm_has_align
=no
23130 if test $in_tree_gas = yes; then
23131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23132 then gcc_cv_as_comm_has_align
=yes
23134 elif test x
$gcc_cv_as != x
; then
23135 echo '.comm foo,1,32' > conftest.s
23136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23143 gcc_cv_as_comm_has_align
=yes
23145 echo "configure: failed program was" >&5
23148 rm -f conftest.o conftest.s
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23152 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23155 cat >>confdefs.h
<<_ACEOF
23156 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23159 # Used for DWARF 2 in PE
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23161 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23162 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23163 $as_echo_n "(cached) " >&6
23165 gcc_cv_as_ix86_pe_secrel32
=no
23166 if test $in_tree_gas = yes; then
23167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23168 then gcc_cv_as_ix86_pe_secrel32
=yes
23170 elif test x
$gcc_cv_as != x
; then
23174 .secrel32 foo' > conftest.s
23175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23177 (eval $ac_try) 2>&5
23179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23180 test $ac_status = 0; }; }
23182 if test x
$gcc_cv_ld != x \
23183 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
23184 gcc_cv_as_ix86_pe_secrel32
=yes
23188 echo "configure: failed program was" >&5
23191 rm -f conftest.o conftest.s
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23195 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23196 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23198 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23201 # Test if the assembler supports the extended form of the .section
23202 # directive that specifies section alignment. LTO support uses this,
23203 # but normally only after installation, so we warn but don't fail the
23204 # configure if LTO is enabled but the assembler does not support it.
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23206 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23207 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23208 $as_echo_n "(cached) " >&6
23210 gcc_cv_as_section_has_align
=no
23211 if test $in_tree_gas = yes; then
23212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23213 then gcc_cv_as_section_has_align
=yes
23215 elif test x
$gcc_cv_as != x
; then
23216 echo '.section lto_test,"dr0"' > conftest.s
23217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; }
23224 gcc_cv_as_section_has_align
=yes
23226 echo "configure: failed program was" >&5
23229 rm -f conftest.o conftest.s
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23233 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23235 if test x
$gcc_cv_as_section_has_align != xyes
; then
23236 case ",$enable_languages," in
23238 { $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
23239 $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;}
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23247 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23248 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23249 $as_echo_n "(cached) " >&6
23251 gcc_cv_as_ix86_filds
=no
23252 if test x
$gcc_cv_as != x
; then
23253 echo 'filds mem; fists mem' > conftest.s
23254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23256 (eval $ac_try) 2>&5
23258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23259 test $ac_status = 0; }; }
23261 gcc_cv_as_ix86_filds
=yes
23263 echo "configure: failed program was" >&5
23266 rm -f conftest.o conftest.s
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23270 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23271 if test $gcc_cv_as_ix86_filds = yes; then
23273 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23278 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23279 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23280 $as_echo_n "(cached) " >&6
23282 gcc_cv_as_ix86_fildq
=no
23283 if test x
$gcc_cv_as != x
; then
23284 echo 'fildq mem; fistpq mem' > conftest.s
23285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23287 (eval $ac_try) 2>&5
23289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23290 test $ac_status = 0; }; }
23292 gcc_cv_as_ix86_fildq
=yes
23294 echo "configure: failed program was" >&5
23297 rm -f conftest.o conftest.s
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23301 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23302 if test $gcc_cv_as_ix86_fildq = yes; then
23304 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23309 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23310 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23311 $as_echo_n "(cached) " >&6
23313 gcc_cv_as_ix86_cmov_sun_syntax
=no
23314 if test x
$gcc_cv_as != x
; then
23315 echo 'cmovl.l %edx, %eax' > conftest.s
23316 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318 (eval $ac_try) 2>&5
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }; }
23323 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23325 echo "configure: failed program was" >&5
23328 rm -f conftest.o conftest.s
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23332 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23333 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23335 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23340 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23341 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23342 $as_echo_n "(cached) " >&6
23344 gcc_cv_as_ix86_ffreep
=no
23345 if test x
$gcc_cv_as != x
; then
23346 echo 'ffreep %st(1)' > conftest.s
23347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349 (eval $ac_try) 2>&5
23351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352 test $ac_status = 0; }; }
23354 gcc_cv_as_ix86_ffreep
=yes
23356 echo "configure: failed program was" >&5
23359 rm -f conftest.o conftest.s
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23363 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23364 if test $gcc_cv_as_ix86_ffreep = yes; then
23366 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23371 $as_echo_n "checking assembler for .quad directive... " >&6; }
23372 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23375 gcc_cv_as_ix86_quad
=no
23376 if test x
$gcc_cv_as != x
; then
23377 echo '.quad 0' > conftest.s
23378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; }
23385 gcc_cv_as_ix86_quad
=yes
23387 echo "configure: failed program was" >&5
23390 rm -f conftest.o conftest.s
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23394 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23395 if test $gcc_cv_as_ix86_quad = yes; then
23397 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23402 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23403 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23404 $as_echo_n "(cached) " >&6
23406 gcc_cv_as_ix86_sahf
=no
23407 if test x
$gcc_cv_as != x
; then
23410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23412 (eval $ac_try) 2>&5
23414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23415 test $ac_status = 0; }; }
23417 gcc_cv_as_ix86_sahf
=yes
23419 echo "configure: failed program was" >&5
23422 rm -f conftest.o conftest.s
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23426 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23427 if test $gcc_cv_as_ix86_sahf = yes; then
23429 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23434 $as_echo_n "checking assembler for swap suffix... " >&6; }
23435 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23436 $as_echo_n "(cached) " >&6
23438 gcc_cv_as_ix86_swap
=no
23439 if test x
$gcc_cv_as != x
; then
23440 echo 'movl.s %esp, %ebp' > conftest.s
23441 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23443 (eval $ac_try) 2>&5
23445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446 test $ac_status = 0; }; }
23448 gcc_cv_as_ix86_swap
=yes
23450 echo "configure: failed program was" >&5
23453 rm -f conftest.o conftest.s
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23457 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23458 if test $gcc_cv_as_ix86_swap = yes; then
23460 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23465 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23466 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23467 $as_echo_n "(cached) " >&6
23469 gcc_cv_as_ix86_diff_sect_delta
=no
23470 if test x
$gcc_cv_as != x
; then
23471 echo '.section .rodata
23477 .L2: nop' > conftest.s
23478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480 (eval $ac_try) 2>&5
23482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483 test $ac_status = 0; }; }
23485 gcc_cv_as_ix86_diff_sect_delta
=yes
23487 echo "configure: failed program was" >&5
23490 rm -f conftest.o conftest.s
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23494 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23495 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23497 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23501 # These two are used unconditionally by i386.[ch]; it is to be defined
23502 # to 1 if the feature is present, 0 otherwise.
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23504 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23505 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23506 $as_echo_n "(cached) " >&6
23508 gcc_cv_as_ix86_gotoff_in_data
=no
23509 if test $in_tree_gas = yes; then
23510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23511 then gcc_cv_as_ix86_gotoff_in_data
=yes
23513 elif test x
$gcc_cv_as != x
; then
23518 .long .L0@GOTOFF' > conftest.s
23519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23521 (eval $ac_try) 2>&5
23523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524 test $ac_status = 0; }; }
23526 gcc_cv_as_ix86_gotoff_in_data
=yes
23528 echo "configure: failed program was" >&5
23531 rm -f conftest.o conftest.s
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23535 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23538 cat >>confdefs.h
<<_ACEOF
23539 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23544 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23545 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23546 $as_echo_n "(cached) " >&6
23548 gcc_cv_as_ix86_rep_lock_prefix
=no
23549 if test x
$gcc_cv_as != x
; then
23551 lock addl %edi, (%eax,%esi)
23552 lock orl $0, (%esp)' > conftest.s
23553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23555 (eval $ac_try) 2>&5
23557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23558 test $ac_status = 0; }; }
23560 gcc_cv_as_ix86_rep_lock_prefix
=yes
23562 echo "configure: failed program was" >&5
23565 rm -f conftest.o conftest.s
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23569 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23570 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23572 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23580 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23581 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23582 $as_echo_n "(cached) " >&6
23584 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23585 if test $in_tree_gas = yes; then
23586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23587 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23589 elif test x
$gcc_cv_as != x
; then
23591 addl r15 = @ltoffx(x#), gp
23593 ld8.mov r16 = [r15], x#' > conftest.s
23594 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23596 (eval $ac_try) 2>&5
23598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23599 test $ac_status = 0; }; }
23601 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23603 echo "configure: failed program was" >&5
23606 rm -f conftest.o conftest.s
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23610 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23611 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23613 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23621 *-*-aix*) conftest_s
=' .machine "pwr5"
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23626 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23627 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23628 $as_echo_n "(cached) " >&6
23630 gcc_cv_as_machine_directive
=no
23631 if test x
$gcc_cv_as != x
; then
23632 echo ' .machine ppc7400' > conftest.s
23633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23635 (eval $ac_try) 2>&5
23637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23638 test $ac_status = 0; }; }
23640 gcc_cv_as_machine_directive
=yes
23642 echo "configure: failed program was" >&5
23645 rm -f conftest.o conftest.s
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23649 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23651 if test x
$gcc_cv_as_machine_directive != xyes
; then
23652 echo "*** This target requires an assembler supporting \".machine\"" >&2
23653 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23654 test x
$build = x
$target && exit 1
23658 *) conftest_s
=' .machine power4
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23664 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23665 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23666 $as_echo_n "(cached) " >&6
23668 gcc_cv_as_powerpc_mfcrf
=no
23669 if test $in_tree_gas = yes; then
23670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23671 then gcc_cv_as_powerpc_mfcrf
=yes
23673 elif test x
$gcc_cv_as != x
; then
23674 echo "$conftest_s" > conftest.s
23675 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23677 (eval $ac_try) 2>&5
23679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23680 test $ac_status = 0; }; }
23682 gcc_cv_as_powerpc_mfcrf
=yes
23684 echo "configure: failed program was" >&5
23687 rm -f conftest.o conftest.s
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23691 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23692 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23694 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23699 *-*-aix*) conftest_s
=' .machine "pwr5"
23702 *) conftest_s
=' .machine power5
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23708 $as_echo_n "checking assembler for popcntb support... " >&6; }
23709 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23710 $as_echo_n "(cached) " >&6
23712 gcc_cv_as_powerpc_popcntb
=no
23713 if test $in_tree_gas = yes; then
23714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23715 then gcc_cv_as_powerpc_popcntb
=yes
23717 elif test x
$gcc_cv_as != x
; then
23718 echo "$conftest_s" > conftest.s
23719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23721 (eval $ac_try) 2>&5
23723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724 test $ac_status = 0; }; }
23726 gcc_cv_as_powerpc_popcntb
=yes
23728 echo "configure: failed program was" >&5
23731 rm -f conftest.o conftest.s
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23735 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23736 if test $gcc_cv_as_powerpc_popcntb = yes; then
23738 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23743 *-*-aix*) conftest_s
=' .machine "pwr5x"
23746 *) conftest_s
=' .machine power5
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23752 $as_echo_n "checking assembler for fp round support... " >&6; }
23753 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23754 $as_echo_n "(cached) " >&6
23756 gcc_cv_as_powerpc_fprnd
=no
23757 if test $in_tree_gas = yes; then
23758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23759 then gcc_cv_as_powerpc_fprnd
=yes
23761 elif test x
$gcc_cv_as != x
; then
23762 echo "$conftest_s" > conftest.s
23763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23765 (eval $ac_try) 2>&5
23767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23768 test $ac_status = 0; }; }
23770 gcc_cv_as_powerpc_fprnd
=yes
23772 echo "configure: failed program was" >&5
23775 rm -f conftest.o conftest.s
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23779 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23780 if test $gcc_cv_as_powerpc_fprnd = yes; then
23782 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23787 *-*-aix*) conftest_s
=' .machine "pwr6"
23790 *) conftest_s
=' .machine power6
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23796 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23797 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23800 gcc_cv_as_powerpc_mfpgpr
=no
23801 if test $in_tree_gas = yes; then
23802 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23803 then gcc_cv_as_powerpc_mfpgpr
=yes
23805 elif test x
$gcc_cv_as != x
; then
23806 echo "$conftest_s" > conftest.s
23807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23814 gcc_cv_as_powerpc_mfpgpr
=yes
23816 echo "configure: failed program was" >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23823 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23824 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23826 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23831 *-*-aix*) conftest_s
=' .csect .text[PR]
23833 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23837 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23838 *) conftest_s
=' .text
23840 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23844 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23845 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23846 $as_echo_n "(cached) " >&6
23848 gcc_cv_as_powerpc_rel16
=no
23849 if test $in_tree_gas = yes; then
23850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23851 then gcc_cv_as_powerpc_rel16
=yes
23853 elif test x
$gcc_cv_as != x
; then
23854 echo "$conftest_s" > conftest.s
23855 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23857 (eval $ac_try) 2>&5
23859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23860 test $ac_status = 0; }; }
23862 gcc_cv_as_powerpc_rel16
=yes
23864 echo "configure: failed program was" >&5
23867 rm -f conftest.o conftest.s
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23871 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23872 if test $gcc_cv_as_powerpc_rel16 = yes; then
23874 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23879 *-*-aix*) conftest_s
=' .machine "pwr6"
23882 *) conftest_s
=' .machine power6
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23888 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23889 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23890 $as_echo_n "(cached) " >&6
23892 gcc_cv_as_powerpc_cmpb
=no
23893 if test $in_tree_gas = yes; then
23894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23895 then gcc_cv_as_powerpc_cmpb
=yes
23897 elif test x
$gcc_cv_as != x
; then
23898 echo "$conftest_s" > conftest.s
23899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23901 (eval $ac_try) 2>&5
23903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23904 test $ac_status = 0; }; }
23906 gcc_cv_as_powerpc_cmpb
=yes
23908 echo "configure: failed program was" >&5
23911 rm -f conftest.o conftest.s
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23915 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23916 if test $gcc_cv_as_powerpc_cmpb = yes; then
23918 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23923 *-*-aix*) conftest_s
=' .machine "pwr6"
23926 *) conftest_s
=' .machine power6
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23932 $as_echo_n "checking assembler for decimal float support... " >&6; }
23933 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23936 gcc_cv_as_powerpc_dfp
=no
23937 if test $in_tree_gas = yes; then
23938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23939 then gcc_cv_as_powerpc_dfp
=yes
23941 elif test x
$gcc_cv_as != x
; then
23942 echo "$conftest_s" > conftest.s
23943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23945 (eval $ac_try) 2>&5
23947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23948 test $ac_status = 0; }; }
23950 gcc_cv_as_powerpc_dfp
=yes
23952 echo "configure: failed program was" >&5
23955 rm -f conftest.o conftest.s
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23959 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23960 if test $gcc_cv_as_powerpc_dfp = yes; then
23962 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23967 *-*-aix*) conftest_s
=' .machine "pwr7"
23970 *) conftest_s
=' .machine power7
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23976 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23977 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23978 $as_echo_n "(cached) " >&6
23980 gcc_cv_as_powerpc_vsx
=no
23981 if test $in_tree_gas = yes; then
23982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23983 then gcc_cv_as_powerpc_vsx
=yes
23985 elif test x
$gcc_cv_as != x
; then
23986 echo "$conftest_s" > conftest.s
23987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23989 (eval $ac_try) 2>&5
23991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23992 test $ac_status = 0; }; }
23994 gcc_cv_as_powerpc_vsx
=yes
23996 echo "configure: failed program was" >&5
23999 rm -f conftest.o conftest.s
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24003 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24004 if test $gcc_cv_as_powerpc_vsx = yes; then
24006 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24011 *-*-aix*) conftest_s
=' .machine "pwr7"
24014 *) conftest_s
=' .machine power7
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24020 $as_echo_n "checking assembler for popcntd support... " >&6; }
24021 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24022 $as_echo_n "(cached) " >&6
24024 gcc_cv_as_powerpc_popcntd
=no
24025 if test $in_tree_gas = yes; then
24026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24027 then gcc_cv_as_powerpc_popcntd
=yes
24029 elif test x
$gcc_cv_as != x
; then
24030 echo "$conftest_s" > conftest.s
24031 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24033 (eval $ac_try) 2>&5
24035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24036 test $ac_status = 0; }; }
24038 gcc_cv_as_powerpc_popcntd
=yes
24040 echo "configure: failed program was" >&5
24043 rm -f conftest.o conftest.s
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24047 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24048 if test $gcc_cv_as_powerpc_popcntd = yes; then
24050 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24055 *-*-aix*) conftest_s
=' .csect .text[PR]
24057 *) conftest_s
=' .text
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24062 $as_echo_n "checking assembler for lwsync support... " >&6; }
24063 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24064 $as_echo_n "(cached) " >&6
24066 gcc_cv_as_powerpc_lwsync
=no
24067 if test $in_tree_gas = yes; then
24068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24069 then gcc_cv_as_powerpc_lwsync
=yes
24071 elif test x
$gcc_cv_as != x
; then
24072 echo "$conftest_s" > conftest.s
24073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24075 (eval $ac_try) 2>&5
24077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24078 test $ac_status = 0; }; }
24080 gcc_cv_as_powerpc_lwsync
=yes
24082 echo "configure: failed program was" >&5
24085 rm -f conftest.o conftest.s
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24089 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24090 if test $gcc_cv_as_powerpc_lwsync = yes; then
24092 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24097 *-*-aix*) conftest_s
=' .machine "476"
24100 *) conftest_s
=' .machine "476"
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24106 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24107 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24108 $as_echo_n "(cached) " >&6
24110 gcc_cv_as_powerpc_dci
=no
24111 if test $in_tree_gas = yes; then
24112 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24113 then gcc_cv_as_powerpc_dci
=yes
24115 elif test x
$gcc_cv_as != x
; then
24116 echo "$conftest_s" > conftest.s
24117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24119 (eval $ac_try) 2>&5
24121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24122 test $ac_status = 0; }; }
24124 gcc_cv_as_powerpc_dci
=yes
24126 echo "configure: failed program was" >&5
24129 rm -f conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24133 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24134 if test $gcc_cv_as_powerpc_dci = yes; then
24136 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24141 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24142 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24143 $as_echo_n "(cached) " >&6
24145 gcc_cv_as_powerpc_gnu_attribute
=no
24146 if test $in_tree_gas = yes; then
24147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24148 then gcc_cv_as_powerpc_gnu_attribute
=yes
24150 elif test x
$gcc_cv_as != x
; then
24151 echo '.gnu_attribute 4,1' > conftest.s
24152 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154 (eval $ac_try) 2>&5
24156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157 test $ac_status = 0; }; }
24159 gcc_cv_as_powerpc_gnu_attribute
=yes
24161 echo "configure: failed program was" >&5
24164 rm -f conftest.o conftest.s
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24168 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24169 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24171 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24176 $as_echo_n "checking assembler for tls marker support... " >&6; }
24177 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24178 $as_echo_n "(cached) " >&6
24180 gcc_cv_as_powerpc_tls_markers
=no
24181 if test $in_tree_gas = yes; then
24182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24183 then gcc_cv_as_powerpc_tls_markers
=yes
24185 elif test x
$gcc_cv_as != x
; then
24186 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189 (eval $ac_try) 2>&5
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }; }
24194 gcc_cv_as_powerpc_tls_markers
=yes
24196 echo "configure: failed program was" >&5
24199 rm -f conftest.o conftest.s
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24203 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24204 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24206 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24213 $as_echo_n "checking assembler for .ref support... " >&6; }
24214 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24215 $as_echo_n "(cached) " >&6
24217 gcc_cv_as_aix_ref
=no
24218 if test $in_tree_gas = yes; then
24219 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24222 elif test x
$gcc_cv_as != x
; then
24223 echo ' .csect stuff[rw]
24229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24231 (eval $ac_try) 2>&5
24233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24234 test $ac_status = 0; }; }
24236 gcc_cv_as_aix_ref
=yes
24238 echo "configure: failed program was" >&5
24241 rm -f conftest.o conftest.s
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24245 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24246 if test $gcc_cv_as_aix_ref = yes; then
24248 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24257 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24258 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24259 $as_echo_n "(cached) " >&6
24261 gcc_cv_as_mips_explicit_relocs
=no
24262 if test $in_tree_gas = yes; then
24263 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24264 then gcc_cv_as_mips_explicit_relocs
=yes
24266 elif test x
$gcc_cv_as != x
; then
24267 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24268 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24270 (eval $ac_try) 2>&5
24272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24273 test $ac_status = 0; }; }
24275 gcc_cv_as_mips_explicit_relocs
=yes
24277 echo "configure: failed program was" >&5
24280 rm -f conftest.o conftest.s
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24284 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24285 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24286 if test x
$target_cpu_default = x
24287 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24288 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24292 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24293 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24294 $as_echo_n "(cached) " >&6
24296 gcc_cv_as_mips_no_shared
=no
24297 if test $in_tree_gas = yes; then
24298 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24299 then gcc_cv_as_mips_no_shared
=yes
24301 elif test x
$gcc_cv_as != x
; then
24302 echo 'nop' > conftest.s
24303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }
24310 gcc_cv_as_mips_no_shared
=yes
24312 echo "configure: failed program was" >&5
24315 rm -f conftest.o conftest.s
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24319 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24320 if test $gcc_cv_as_mips_no_shared = yes; then
24322 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24327 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24328 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24329 $as_echo_n "(cached) " >&6
24331 gcc_cv_as_mips_gnu_attribute
=no
24332 if test $in_tree_gas = yes; then
24333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24334 then gcc_cv_as_mips_gnu_attribute
=yes
24336 elif test x
$gcc_cv_as != x
; then
24337 echo '.gnu_attribute 4,1' > 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_mips_gnu_attribute
=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_mips_gnu_attribute" >&5
24354 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24355 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24357 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24362 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24363 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24364 $as_echo_n "(cached) " >&6
24366 gcc_cv_as_mips_dtprelword
=no
24367 if test $in_tree_gas = yes; then
24368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24369 then gcc_cv_as_mips_dtprelword
=yes
24371 elif test x
$gcc_cv_as != x
; then
24372 echo '.section .tdata,"awT",@progbits
24376 .dtprelword x+0x8000' > conftest.s
24377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379 (eval $ac_try) 2>&5
24381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382 test $ac_status = 0; }; }
24384 gcc_cv_as_mips_dtprelword
=yes
24386 echo "configure: failed program was" >&5
24389 rm -f conftest.o conftest.s
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24393 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24394 if test $gcc_cv_as_mips_dtprelword = yes; then
24396 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24401 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24402 gcc_cv_as_ld_jalr_reloc
=no
24403 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24404 if test $in_tree_ld = yes ; then
24405 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 \
24406 && test $in_tree_ld_is_elf = yes; then
24407 gcc_cv_as_ld_jalr_reloc
=yes
24409 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24410 echo ' .ent x' > conftest.s
24411 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24412 echo ' ld $25,%call16(y)($28)' >> conftest.s
24413 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24414 echo '1: jalr $25' >> conftest.s
24415 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24416 echo '1: jalr $25' >> conftest.s
24417 echo ' .end x' >> conftest.s
24418 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24419 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24420 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
24421 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
24422 gcc_cv_as_ld_jalr_reloc
=yes
24428 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24429 if test x
$target_cpu_default = x
; then
24430 target_cpu_default
=MASK_RELAX_PIC_CALLS
24432 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24436 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24439 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24440 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24441 $as_echo_n "(cached) " >&6
24443 gcc_cv_ld_mips_personality_relaxation
=no
24444 if test $in_tree_ld = yes ; then
24445 if test "$gcc_cv_gld_major_version" -eq 2 \
24446 -a "$gcc_cv_gld_minor_version" -ge 21 \
24447 -o "$gcc_cv_gld_major_version" -gt 2; then
24448 gcc_cv_ld_mips_personality_relaxation
=yes
24450 elif test x
$gcc_cv_as != x \
24451 -a x
$gcc_cv_ld != x \
24452 -a x
$gcc_cv_readelf != x
; then
24453 cat > conftest.s
<<EOF
24455 .cfi_personality 0x80,indirect_ptr
24462 .section .data,"aw",@progbits
24466 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24467 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24468 if $gcc_cv_readelf -d conftest
2>&1 \
24469 |
grep TEXTREL
> /dev
/null
2>&1; then
24471 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24472 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24475 gcc_cv_ld_mips_personality_relaxation
=yes
24479 rm -f conftest.s conftest.o conftest
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24482 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24483 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24485 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24491 # Mips and HP-UX need the GNU assembler.
24492 # Linux on IA64 might be able to use the Intel assembler.
24495 mips
*-*-* |
*-*-hpux* )
24496 if test x
$gas_flag = xyes \
24497 ||
test x
"$host" != x
"$build" \
24498 ||
test ! -x "$gcc_cv_as" \
24499 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24502 echo "*** This configuration requires the GNU assembler" >&2
24508 # ??? Not all targets support dwarf2 debug_line, even within a version
24509 # of gas. Moreover, we need to emit a valid instruction to trigger any
24510 # info to the output file. So, as supported targets are added to gas 2.11,
24511 # add some instruction here to (also) show we expect this might work.
24512 # ??? Once 2.11 is released, probably need to add first known working
24513 # version to the per-target configury.
24515 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
24516 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
24517 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
24518 | spu-
*-* | fido
*-*-* | m32c-
*-*)
24521 ia64
*-*-* | s390
*-*-*)
24528 if test x
"$insn" != x
; then
24530 .file 1 \"conftest.s\"
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24534 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24535 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24538 gcc_cv_as_dwarf2_debug_line
=no
24539 if test $in_tree_gas = yes; then
24540 if test $in_tree_gas_is_elf = yes \
24541 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24542 then gcc_cv_as_dwarf2_debug_line
=yes
24544 elif test x
$gcc_cv_as != x
; then
24545 echo "$conftest_s" > conftest.s
24546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24553 if test x
$gcc_cv_objdump != x \
24554 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24555 |
grep debug_line
> /dev
/null
2>&1; then
24556 gcc_cv_as_dwarf2_debug_line
=yes
24559 echo "configure: failed program was" >&5
24562 rm -f conftest.o conftest.s
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24566 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24569 # The .debug_line file table must be in the exact order that
24570 # we specified the files, since these indices are also used
24571 # by DW_AT_decl_file. Approximate this test by testing if
24572 # the assembler bitches if the same index is assigned twice.
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24574 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24575 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24576 $as_echo_n "(cached) " >&6
24578 gcc_cv_as_dwarf2_file_buggy
=no
24579 if test x
$gcc_cv_as != x
; then
24580 echo ' .file 1 "foo.s"
24581 .file 1 "bar.s"' > conftest.s
24582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24584 (eval $ac_try) 2>&5
24586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24587 test $ac_status = 0; }; }
24589 gcc_cv_as_dwarf2_file_buggy
=yes
24591 echo "configure: failed program was" >&5
24594 rm -f conftest.o conftest.s
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24598 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24601 if test $gcc_cv_as_dwarf2_debug_line = yes \
24602 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24604 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24609 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24610 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24611 $as_echo_n "(cached) " >&6
24613 gcc_cv_as_gdwarf2_flag
=no
24614 if test $in_tree_gas = yes; then
24615 if test $in_tree_gas_is_elf = yes \
24616 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24617 then gcc_cv_as_gdwarf2_flag
=yes
24619 elif test x
$gcc_cv_as != x
; then
24620 echo "$insn" > conftest.s
24621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623 (eval $ac_try) 2>&5
24625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626 test $ac_status = 0; }; }
24628 gcc_cv_as_gdwarf2_flag
=yes
24630 echo "configure: failed program was" >&5
24633 rm -f conftest.o conftest.s
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24637 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24638 if test $gcc_cv_as_gdwarf2_flag = yes; then
24640 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24645 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24646 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24647 $as_echo_n "(cached) " >&6
24649 gcc_cv_as_gstabs_flag
=no
24650 if test $in_tree_gas = yes; then
24651 if test $in_tree_gas_is_elf = yes \
24652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24653 then gcc_cv_as_gstabs_flag
=yes
24655 elif test x
$gcc_cv_as != x
; then
24656 echo "$insn" > conftest.s
24657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24659 (eval $ac_try) 2>&5
24661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24662 test $ac_status = 0; }; }
24664 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24665 # and warns about it, but still exits successfully. So check for
24667 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669 (eval $ac_try) 2>&5
24671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672 test $ac_status = 0; }; }
24674 else gcc_cv_as_gstabs_flag
=yes
24677 echo "configure: failed program was" >&5
24680 rm -f conftest.o conftest.s
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24684 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24685 if test $gcc_cv_as_gstabs_flag = yes; then
24687 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24692 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24693 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24694 $as_echo_n "(cached) " >&6
24696 gcc_cv_as_debug_prefix_map_flag
=no
24697 if test $in_tree_gas = yes; then
24698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24699 then gcc_cv_as_debug_prefix_map_flag
=yes
24701 elif test x
$gcc_cv_as != x
; then
24702 echo "$insn" > conftest.s
24703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24705 (eval $ac_try) 2>&5
24707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24708 test $ac_status = 0; }; }
24710 gcc_cv_as_debug_prefix_map_flag
=yes
24712 echo "configure: failed program was" >&5
24715 rm -f conftest.o conftest.s
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24719 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24720 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24722 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24728 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24729 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24732 gcc_cv_as_lcomm_with_alignment
=no
24733 if test x
$gcc_cv_as != x
; then
24734 echo '.lcomm bar,4,16' > conftest.s
24735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24737 (eval $ac_try) 2>&5
24739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24740 test $ac_status = 0; }; }
24742 gcc_cv_as_lcomm_with_alignment
=yes
24744 echo "configure: failed program was" >&5
24747 rm -f conftest.o conftest.s
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24751 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24752 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24754 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24758 # Check whether --enable-gnu-unique-object was given.
24759 if test "${enable_gnu_unique_object+set}" = set; then :
24760 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24762 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24763 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24767 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24768 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24769 $as_echo_n "(cached) " >&6
24771 gcc_cv_as_gnu_unique_object
=no
24772 if test $in_tree_gas = yes; then
24773 if test $in_tree_gas_is_elf = yes \
24774 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24775 then gcc_cv_as_gnu_unique_object
=yes
24777 elif test x
$gcc_cv_as != x
; then
24778 echo '.type foo, @gnu_unique_object' > conftest.s
24779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24786 gcc_cv_as_gnu_unique_object
=yes
24788 echo "configure: failed program was" >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24795 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24796 if test $gcc_cv_as_gnu_unique_object = yes; then
24797 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24798 if test x
$host = x
$build -a x
$host = x
$target &&
24799 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24800 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24801 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24802 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24803 if test "$glibcnum" -ge 2011 ; then
24804 enable_gnu_unique_object
=yes
24810 if test x
$enable_gnu_unique_object = xyes
; then
24812 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24817 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24818 if test "${gcc_cv_as_line_zero+set}" = set; then :
24819 $as_echo_n "(cached) " >&6
24821 gcc_cv_as_line_zero
=no
24822 if test $in_tree_gas = yes; then
24823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24824 then gcc_cv_as_line_zero
=yes
24826 elif test "x$gcc_cv_as" != x
; then
24827 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24828 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; } &&
24834 test "x`cat conftest.out`" = x
24836 gcc_cv_as_line_zero
=yes
24838 echo "configure: failed program was" >&5
24840 echo "configure: error output was" >&5
24841 cat conftest.out
>&5
24843 rm -f conftest.o conftest.s conftest.out
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24847 $as_echo "$gcc_cv_as_line_zero" >&6; }
24848 if test "x$gcc_cv_as_line_zero" = xyes
; then
24850 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24855 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24856 gcc_cv_ld_eh_frame_hdr
=no
24857 if test $in_tree_ld = yes ; then
24858 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 \
24859 && test $in_tree_ld_is_elf = yes; then
24860 gcc_cv_ld_eh_frame_hdr
=yes
24862 elif test x
$gcc_cv_ld != x
; then
24863 # Check if linker supports --eh-frame-hdr option
24864 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24865 gcc_cv_ld_eh_frame_hdr
=yes
24869 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24871 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24875 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24878 $as_echo_n "checking linker position independent executable support... " >&6; }
24880 if test $in_tree_ld = yes ; then
24881 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 \
24882 && test $in_tree_ld_is_elf = yes; then
24885 elif test x
$gcc_cv_ld != x
; then
24886 # Check if linker supports -pie option
24887 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24891 if test x
"$gcc_cv_ld_pie" = xyes
; then
24893 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24897 $as_echo "$gcc_cv_ld_pie" >&6; }
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24900 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24901 gcc_cv_ld_eh_gc_sections
=no
24902 if test $in_tree_ld = yes ; then
24903 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 \
24904 && test $in_tree_ld_is_elf = yes; then
24905 gcc_cv_ld_eh_gc_sections
=yes
24907 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24908 cat > conftest.s
<<EOF
24911 .type _start, @function
24914 .size _start, .-_start
24915 .section .text.foo,"ax",@progbits
24916 .type foo, @function
24920 .section .gcc_except_table.foo,"a",@progbits
24923 .section .eh_frame,"a",@progbits
24926 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24927 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24928 |
grep "gc-sections option ignored" > /dev
/null
; then
24929 gcc_cv_ld_eh_gc_sections
=no
24930 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24931 |
grep gcc_except_table
> /dev
/null
; then
24932 gcc_cv_ld_eh_gc_sections
=yes
24933 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24934 if test x
$gcc_cv_as_comdat_group != xyes
; then
24935 gcc_cv_ld_eh_gc_sections
=no
24936 cat > conftest.s
<<EOF
24939 .type _start, @function
24942 .size _start, .-_start
24943 .section .gnu.linkonce.t.foo,"ax",@progbits
24944 .type foo, @function
24948 .section .gcc_except_table.foo,"a",@progbits
24951 .section .eh_frame,"a",@progbits
24954 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24955 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24956 |
grep "gc-sections option ignored" > /dev
/null
; then
24957 gcc_cv_ld_eh_gc_sections
=no
24958 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24959 |
grep gcc_except_table
> /dev
/null
; then
24960 gcc_cv_ld_eh_gc_sections
=yes
24966 rm -f conftest.s conftest.o conftest
24970 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24971 gcc_cv_ld_eh_gc_sections
=no
24974 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24976 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24980 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24987 $as_echo_n "checking linker --as-needed support... " >&6; }
24988 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24989 $as_echo_n "(cached) " >&6
24991 gcc_cv_ld_as_needed
=no
24992 if test $in_tree_ld = yes ; then
24993 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 \
24994 && test $in_tree_ld_is_elf = yes; then
24995 gcc_cv_ld_as_needed
=yes
24997 elif test x
$gcc_cv_ld != x
; then
24998 # Check if linker supports --as-needed and --no-as-needed options
24999 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
25000 gcc_cv_ld_as_needed
=yes
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25006 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25007 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
25009 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25013 case "$target:$tm_file" in
25014 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25016 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25017 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25020 gcc_cv_ld_no_dot_syms
=no
25021 if test $in_tree_ld = yes ; then
25022 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
25023 gcc_cv_ld_no_dot_syms
=yes
25025 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25026 cat > conftest1.s
<<EOF
25030 cat > conftest2.s
<<EOF
25031 .section ".opd","aw"
25034 .type foo,@function
25036 .quad .LEfoo,.TOC.@tocbase,0
25042 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
25043 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
25044 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
25045 gcc_cv_ld_no_dot_syms
=yes
25047 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25052 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25053 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
25055 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25060 $as_echo_n "checking linker large toc support... " >&6; }
25061 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25062 $as_echo_n "(cached) " >&6
25064 gcc_cv_ld_large_toc
=no
25065 if test $in_tree_ld = yes ; then
25066 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
25067 gcc_cv_ld_large_toc
=yes
25069 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25070 cat > conftest.s
<<EOF
25071 .section ".tbss","awT",@nobits
25077 addis 9,13,ie0@got@tprel@ha
25078 ld 9,ie0@got@tprel@l(9)
25080 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
25081 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
25082 gcc_cv_ld_large_toc
=yes
25084 rm -f conftest conftest.o conftest.s
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25089 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25090 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
25092 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25099 $as_echo_n "checking linker --build-id support... " >&6; }
25100 if test "${gcc_cv_ld_buildid+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25103 gcc_cv_ld_buildid
=no
25104 if test $in_tree_ld = yes ; then
25105 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25106 "$gcc_cv_gld_minor_version" -ge 18 -o \
25107 "$gcc_cv_gld_major_version" -gt 2 \
25108 && test $in_tree_ld_is_elf = yes; then
25109 gcc_cv_ld_buildid
=yes
25111 elif test x
$gcc_cv_ld != x
; then
25112 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
25113 gcc_cv_ld_buildid
=yes
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25118 $as_echo "$gcc_cv_ld_buildid" >&6; }
25119 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25121 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25125 # Check whether --enable-linker-build-id was given.
25126 if test "${enable_linker_build_id+set}" = set; then :
25127 enableval
=$enable_linker_build_id;
25129 enable_linker_build_id
=no
25133 if test x
"$enable_linker_build_id" = xyes
; then
25134 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25136 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25140 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25144 # In binutils 2.21, GNU ld gained support for new emulations fully
25145 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25147 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25148 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25149 $as_echo_n "(cached) " >&6
25151 gcc_cv_ld_sol2_emulation
=no
25152 if test $in_tree_ld = yes ; then
25153 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25154 "$gcc_cv_gld_minor_version" -ge 21 -o \
25155 "$gcc_cv_gld_major_version" -gt 2 \
25156 && test $in_tree_ld_is_elf = yes; then
25157 gcc_cv_ld_sol2_emulation
=yes
25159 elif test x
$gcc_cv_ld != x
; then
25160 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
25161 grep _sol2
> /dev
/null
; then
25162 gcc_cv_ld_sol2_emulation
=yes
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25167 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25168 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
25170 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25175 $as_echo_n "checking linker --sysroot support... " >&6; }
25176 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25179 gcc_cv_ld_sysroot
=no
25180 if test $in_tree_ld = yes ; then
25181 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
25182 gcc_cv_ld_sysroot
=yes
25184 elif test x
$gcc_cv_ld != x
; then
25185 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
25186 gcc_cv_ld_sysroot
=yes
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25191 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25192 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
25194 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25198 if test x
$with_sysroot = x
&& test x
$host = x
$target \
25199 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25200 && test "$prefix" != "NONE"; then
25202 cat >>confdefs.h
<<_ACEOF
25203 #define PREFIX_INCLUDE_DIR "$prefix/include"
25208 # Test for stack protector support in target C library.
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25210 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25211 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25214 gcc_cv_libc_provides_ssp
=no
25216 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
25217 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25218 if test "x$with_headers" != x
; then
25219 glibc_header_dir
=$with_headers
25220 elif test "x$with_sysroot" = x
; then
25221 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25222 elif test "x$with_build_sysroot" != "x"; then
25223 glibc_header_dir
="${with_build_sysroot}/usr/include"
25224 elif test "x$with_sysroot" = xyes
; then
25225 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25227 glibc_header_dir
="${with_sysroot}/usr/include"
25230 glibc_header_dir
=/usr
/include
25232 # glibc 2.4 and later provides __stack_chk_fail and
25233 # either __stack_chk_guard, or TLS access to stack guard canary.
25234 if test -f $glibc_header_dir/features.h \
25235 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25236 $glibc_header_dir/features.h
> /dev
/null
; then
25237 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25238 $glibc_header_dir/features.h
> /dev
/null
; then
25239 gcc_cv_libc_provides_ssp
=yes
25240 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25241 $glibc_header_dir/features.h
> /dev
/null \
25242 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25243 $glibc_header_dir/features.h
> /dev
/null
; then
25244 gcc_cv_libc_provides_ssp
=yes
25245 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25246 $glibc_header_dir/features.h
> /dev
/null
&& \
25247 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
25248 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25249 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
25250 gcc_cv_libc_provides_ssp
=yes
25255 # Avoid complicated tests (see
25256 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25257 # simply assert that glibc does provide this, which is true for all
25258 # realistically usable GNU/Hurd configurations.
25259 gcc_cv_libc_provides_ssp
=yes;;
25260 *-*-darwin* |
*-*-freebsd*)
25261 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25262 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
25263 gcc_cv_libc_provides_ssp
=yes
25265 echo "no __stack_chk_fail on this target"
25269 *) gcc_cv_libc_provides_ssp
=no
;;
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25273 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25275 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
25277 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25281 # Check if TFmode long double should be used by default or not.
25282 # Some glibc targets used DFmode long double, but with glibc 2.4
25283 # and later they can use TFmode.
25285 powerpc
*-*-linux* | \
25286 powerpc
*-*-gnu* | \
25287 sparc
*-*-linux* | \
25291 # Check whether --with-long-double-128 was given.
25292 if test "${with_long_double_128+set}" = set; then :
25293 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
25295 gcc_cv_target_ldbl128
=no
25296 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25297 if test "x$with_sysroot" = x
; then
25298 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25299 elif test "x$with_build_sysroot" != "x"; then
25300 glibc_header_dir
="${with_build_sysroot}/usr/include"
25301 elif test "x$with_sysroot" = xyes
; then
25302 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25304 glibc_header_dir
="${with_sysroot}/usr/include"
25307 glibc_header_dir
=/usr
/include
25309 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25310 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
25311 && gcc_cv_target_ldbl128
=yes
25317 if test x
$gcc_cv_target_ldbl128 = xyes
; then
25319 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25323 # Find out what GC implementation we want, or may, use.
25325 # Check whether --with-gc was given.
25326 if test "${with_gc+set}" = set; then :
25327 withval
=$with_gc; case "$withval" in
25334 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25338 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
25346 echo "Using $GGC for garbage collection."
25348 # Libraries to use on the host. This will normally be set by the top
25349 # level Makefile. Here we simply capture the value for our Makefile.
25350 if test -z "${HOST_LIBS+set}"; then
25355 # Use the system's zlib library.
25357 zlibinc
="-I\$(srcdir)/../zlib"
25359 # Check whether --with-system-zlib was given.
25360 if test "${with_system_zlib+set}" = set; then :
25361 withval
=$with_system_zlib; zlibdir
=
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25371 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25372 # Check whether --enable-maintainer-mode was given.
25373 if test "${enable_maintainer_mode+set}" = set; then :
25374 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25381 $as_echo "$maintainer_mode" >&6; }
25383 if test "$maintainer_mode" = "yes"; then
25393 # Make empty files to contain the specs and options for each language.
25394 # Then add #include lines to for a compiler that has specs and/or options.
25400 # These (without "all_") are set in each config-lang.in.
25401 # `language' must be a single word so is spelled singularly.
25404 all_outputs
='Makefile gccbug'
25405 # List of language makefile fragments.
25406 all_lang_makefrags
=
25407 # Additional files for gengtype
25408 all_gtfiles
="$target_gtfiles"
25410 # These are the languages that are set in --enable-languages,
25411 # and are available in the GCC tree.
25412 all_selected_languages
=
25414 # Add the language fragments.
25415 # Languages are added via two mechanisms. Some information must be
25416 # recorded in makefile variables, these are defined in config-lang.in.
25417 # We accumulate them and plug them into the main Makefile.
25418 # The other mechanism is a set of hooks for each of the main targets
25419 # like `clean', `install', etc.
25421 language_hooks
="Make-hooks"
25423 for lang
in ${srcdir}/*/config-lang.
in
25425 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25427 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25428 if test "x$lang_alias" = x
25430 echo "$lang doesn't set \$language." 1>&2
25433 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25434 subdirs
="$subdirs $subdir"
25436 # $gcc_subdir is where the gcc integration files are to be found
25437 # for a language, both for internal compiler purposes (compiler
25438 # sources implementing front-end to GCC tree converters), and for
25439 # build infrastructure purposes (Make-lang.in, etc.)
25441 # This will be <subdir> (relative to $srcdir) if a line like
25442 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25443 # is found in <langdir>/config-lang.in, and will remain <langdir>
25446 # Except for the language alias (fetched above), the regular
25447 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25448 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25449 # only this and the language alias.
25451 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25452 if [ "$gcc_subdir" = "" ]; then
25453 gcc_subdir
="$subdir"
25456 case ",$enable_languages," in
25458 all_selected_languages
="$all_selected_languages $lang_alias"
25459 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
25460 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25471 .
${srcdir}/$gcc_subdir/config-lang.
in
25472 if test "x$language" = x
25474 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25479 case ",$enable_languages," in
25480 *,$lang_alias,*) ;;
25482 for i
in $subdir_requires; do
25483 test -f "${srcdir}/$i/config-lang.in" && continue
25491 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25492 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25493 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25495 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25496 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25498 all_languages
="$all_languages $language"
25499 all_compilers
="$all_compilers $compilers"
25500 all_outputs
="$all_outputs $outputs"
25501 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25502 case ",$enable_languages," in
25505 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25509 # LTO needs to speak the platform's object file format, and has a
25510 # number of implementations of the required binary file access APIs.
25511 # ELF is the most common, and default. We only link libelf if ELF
25512 # is indeed the selected format.
25513 LTO_BINARY_READER
=${lto_binary_reader}
25514 LTO_USE_LIBELF
=-lelf
25515 if test "x$lto_binary_reader" != "xlto-elf" ; then
25525 # Pick up gtfiles for c
25527 .
${srcdir}/c-config-lang.
in
25528 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25531 for language
in $all_selected_languages
25533 check_languages
="$check_languages check-$language"
25536 # We link each language in with a set of hooks, reached indirectly via
25537 # lang.${target}. Only do so for selected languages.
25541 target_list
="all.cross start.encap rest.encap tags \
25542 install-common install-man install-info install-pdf install-html dvi \
25543 pdf html uninstall info man srcextra srcman srcinfo \
25544 mostlyclean clean distclean maintainer-clean install-plugin"
25546 for t
in $target_list
25549 for lang
in $all_selected_languages
25553 echo "lang.$t: $x" >> Make-hooks
25562 echo "dir ." > .gdbinit
25563 echo "dir ${srcdir}" >> .gdbinit
25564 if test x
$gdb_needs_out_file_path = xyes
25566 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25568 if test "x$subdirs" != x
; then
25571 echo "dir ${srcdir}/$s" >> .gdbinit
25574 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25576 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25580 # Find a directory in which to install a shared libgcc.
25582 # Check whether --enable-version-specific-runtime-libs was given.
25583 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25584 enableval
=$enable_version_specific_runtime_libs;
25589 # Check whether --with-slibdir was given.
25590 if test "${with_slibdir+set}" = set; then :
25591 withval
=$with_slibdir; slibdir
="$with_slibdir"
25593 if test "${enable_version_specific_runtime_libs+set}" = set; then
25594 slibdir
='$(libsubdir)'
25595 elif test "$host" != "$target"; then
25596 slibdir
='$(build_tooldir)/lib'
25598 slibdir
='$(libdir)'
25604 # Substitute configuration variables
25668 if test x
${build} = x
${host} ; then
25669 if test x
${host} = x
${target} ; then
25670 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25672 echo "Links are now set up to build a cross-compiler" 1>&2
25673 echo " from ${host} to ${target}." 1>&2
25676 if test x
${host} = x
${target} ; then
25677 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25678 echo " for ${target}." 1>&2
25680 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25681 echo " from ${host} to ${target}." 1>&2
25693 if test "x${CLOOGLIBS}" != "x" ; then
25695 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25701 if test "x${LIBELFLIBS}" != "x" ; then
25703 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25707 # Check for plugin support
25708 # Check whether --enable-plugin was given.
25709 if test "${enable_plugin+set}" = set; then :
25710 enableval
=$enable_plugin; enable_plugin
=$enableval
25712 enable_plugin
=yes; default_plugin
=yes
25720 if test x
$build = x
$host; then
25721 export_sym_check
="nm${exeext} -g"
25722 elif x
$host = x
$target; then
25723 export_sym_check
="$gcc_cv_nm -g"
25729 if test x
$build = x
$host; then
25730 export_sym_check
="objdump${exeext} -T"
25731 elif x
$host = x
$target; then
25732 export_sym_check
="$gcc_cv_objdump -T"
25739 if test x
"$enable_plugin" = x
"yes"; then
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25742 $as_echo_n "checking for exported symbols... " >&6; }
25743 if test "x$export_sym_check" != x
; then
25744 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25745 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25746 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25747 : # No need to use a flag
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25752 $as_echo "yes" >&6; }
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25754 $as_echo_n "checking for -rdynamic... " >&6; }
25755 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25756 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25757 plugin_rdynamic
=yes
25758 pluginlibs
="-rdynamic"
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25764 $as_echo "$plugin_rdynamic" >&6; }
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25768 $as_echo "unable to check" >&6; }
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25774 $as_echo_n "checking for library containing dlopen... " >&6; }
25775 if test "${ac_cv_search_dlopen+set}" = set; then :
25776 $as_echo_n "(cached) " >&6
25778 ac_func_search_save_LIBS
=$LIBS
25779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25780 /* end confdefs.h. */
25782 /* Override any GCC internal prototype to avoid an error.
25783 Use char because int might match the return type of a GCC
25784 builtin and then its argument prototype would still apply. */
25797 for ac_lib
in '' dl
; do
25798 if test -z "$ac_lib"; then
25799 ac_res
="none required"
25802 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25804 if ac_fn_c_try_link
"$LINENO"; then :
25805 ac_cv_search_dlopen
=$ac_res
25807 rm -f core conftest.err conftest.
$ac_objext \
25809 if test "${ac_cv_search_dlopen+set}" = set; then :
25813 if test "${ac_cv_search_dlopen+set}" = set; then :
25816 ac_cv_search_dlopen
=no
25818 rm conftest.
$ac_ext
25819 LIBS
=$ac_func_search_save_LIBS
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25822 $as_echo "$ac_cv_search_dlopen" >&6; }
25823 ac_res
=$ac_cv_search_dlopen
25824 if test "$ac_res" != no
; then :
25825 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25829 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25830 pluginlibs
="$pluginlibs -ldl"
25834 # Check that we can build shared objects with -fPIC -shared
25835 saved_LDFLAGS
="$LDFLAGS"
25838 LDFLAGS
="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25841 LDFLAGS
="$LDFLAGS -fPIC -shared"
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25845 $as_echo_n "checking for -fPIC -shared... " >&6; }
25846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25847 /* end confdefs.h. */
25857 if ac_fn_c_try_link
"$LINENO"; then :
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25859 $as_echo "yes" >&6; }; have_pic_shared
=yes
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25862 $as_echo "no" >&6; }; have_pic_shared
=no
25864 rm -f core conftest.err conftest.
$ac_objext \
25865 conftest
$ac_exeext conftest.
$ac_ext
25866 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25870 LDFLAGS
="$saved_LDFLAGS"
25872 # If plugin support had been requested but not available, fail.
25873 if test x
"$enable_plugin" = x
"no" ; then
25874 if test x
"$default_plugin" != x
"yes"; then
25876 Building GCC with plugin support requires a host that supports
25877 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25884 if test x
"$enable_plugin" = x
"yes"; then
25886 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25890 # Configure the subdirectories
25891 # AC_CONFIG_SUBDIRS($subdirs)
25893 # Create the Makefile
25894 # and configure language subdirectories
25895 ac_config_files
="$ac_config_files $all_outputs"
25898 ac_config_commands
="$ac_config_commands default"
25900 cat >confcache
<<\_ACEOF
25901 # This file is a shell script that caches the results of configure
25902 # tests run on this system so they can be shared between configure
25903 # scripts and configure runs, see configure's option --config-cache.
25904 # It is not useful on other systems. If it contains results you don't
25905 # want to keep, you may remove or edit it.
25907 # config.status only pays attention to the cache file if you give it
25908 # the --recheck option to rerun configure.
25910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25912 # following values.
25916 # The following way of writing the cache mishandles newlines in values,
25917 # but we know of no workaround that is simple, portable, and efficient.
25918 # So, we kill variables containing newlines.
25919 # Ultrix sh set writes to stderr and can't be redirected directly,
25920 # and sets the high bit in the cache file unless we assign to the vars.
25922 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25923 eval ac_val
=\$
$ac_var
25927 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25931 _ | IFS | as_nl
) ;; #(
25932 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25933 *) { eval $ac_var=; unset $ac_var;} ;;
25939 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25940 *${as_nl}ac_space
=\
*)
25941 # `set' does not quote correctly, so add quotes: double-quote
25942 # substitution turns \\\\ into \\, and sed turns \\ into \.
25945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25948 # `set' quotes correctly as required by POSIX, so do not add quotes.
25949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25958 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25960 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25962 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25963 if test -w "$cache_file"; then
25964 test "x$cache_file" != "x/dev/null" &&
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25966 $as_echo "$as_me: updating cache $cache_file" >&6;}
25967 cat confcache
>$cache_file
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25975 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25976 # Let make expand exec_prefix.
25977 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25979 DEFS
=-DHAVE_CONFIG_H
25983 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25984 # 1. Remove the extension, and $U if already installed.
25985 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25986 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25987 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25988 # will be set to the directory where LIBOBJS objects are built.
25989 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25990 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25992 LIBOBJS
=$ac_libobjs
25994 LTLIBOBJS
=$ac_ltlibobjs
25999 : ${CONFIG_STATUS=./config.status}
26001 ac_clean_files_save
=$ac_clean_files
26002 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26006 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26008 # Generated by $as_me.
26009 # Run this file to recreate the current configuration.
26010 # Compiler output produced by configure, useful for debugging
26011 # configure, is in config.log if it exists.
26014 ac_cs_recheck=false
26017 SHELL=\${CONFIG_SHELL-$SHELL}
26020 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26021 ## -------------------- ##
26022 ## M4sh Initialization. ##
26023 ## -------------------- ##
26025 # Be more Bourne compatible
26026 DUALCASE
=1; export DUALCASE
# for MKS sh
26027 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26030 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26031 # is contrary to our usage. Disable this feature.
26032 alias -g '${1+"$@"}'='"$@"'
26033 setopt NO_GLOB_SUBST
26035 case `(set -o) 2>/dev/null` in #(
26047 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26048 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26051 # Prefer a ksh shell builtin over an external printf program on Solaris,
26052 # but without wasting forks for bash or zsh.
26053 if test -z "$BASH_VERSION$ZSH_VERSION" \
26054 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26055 as_echo='print
-r --'
26056 as_echo_n='print
-rn --'
26057 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26058 as_echo='printf %s
\n'
26059 as_echo_n='printf %s
'
26061 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26062 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26063 as_echo_n='/usr
/ucb
/echo -n'
26065 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26066 as_echo_n_body='eval
26070 expr "X$arg" : "X\\(.*\\)$as_nl";
26071 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26073 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26075 export as_echo_n_body
26076 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26078 export as_echo_body
26079 as_echo='sh
-c $as_echo_body as_echo
'
26082 # The user is always right.
26083 if test "${PATH_SEPARATOR+set}" != set; then
26085 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26086 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26093 # We need space, tab and new line, in precisely that order. Quoting is
26094 # there to prevent editors from complaining about space-tab.
26095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26096 # splitting by setting IFS to empty value.)
26099 # Find who we are. Look in the path if we contain no directory separator.
26101 *[\\/]* ) as_myself=$0 ;;
26102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26103 for as_dir in $PATH
26106 test -z "$as_dir" && as_dir=.
26107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26113 # We did not find ourselves, most probably we were run as `sh COMMAND'
26114 # in which case we are not to be found in the path.
26115 if test "x$as_myself" = x
; then
26118 if test ! -f "$as_myself"; then
26119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26123 # Unset variables that we do not need and which cause bugs (e.g. in
26124 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26125 # suppresses any "Segmentation fault" message there. '((' could
26126 # trigger a bug in pdksh 5.2.14.
26127 for as_var
in BASH_ENV ENV MAIL MAILPATH
26128 do eval test x\
${$as_var+set} = xset \
26129 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26142 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26145 # as_fn_error ERROR [LINENO LOG_FD]
26146 # ---------------------------------
26147 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26148 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26149 # script with status $?, using 1 if that was 0.
26152 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26154 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26155 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26157 $as_echo "$as_me: error: $1" >&2
26158 as_fn_exit
$as_status
26162 # as_fn_set_status STATUS
26163 # -----------------------
26164 # Set $? to STATUS, without forking.
26165 as_fn_set_status
()
26168 } # as_fn_set_status
26170 # as_fn_exit STATUS
26171 # -----------------
26172 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26176 as_fn_set_status
$1
26182 # Portably unset VAR.
26185 { eval $1=; unset $1;}
26187 as_unset
=as_fn_unset
26188 # as_fn_append VAR VALUE
26189 # ----------------------
26190 # Append the text in VALUE to the end of the definition contained in VAR. Take
26191 # advantage of any shell optimizations that allow amortized linear growth over
26192 # repeated appends, instead of the typical quadratic growth present in naive
26194 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26195 eval 'as_fn_append ()
26206 # as_fn_arith ARG...
26207 # ------------------
26208 # Perform arithmetic evaluation on the ARGs, and store the result in the
26209 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26210 # must be portable across $(()) and expr.
26211 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26212 eval 'as_fn_arith ()
26219 as_val
=`expr "$@" || test $? -eq 1`
26224 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26225 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26231 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26232 as_basename
=basename
26237 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26243 as_me
=`$as_basename -- "$0" ||
26244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26245 X"$0" : 'X\(//\)$' \| \
26246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26248 sed '/^.*\/\([^/][^/]*\)\/*$/{
26262 # Avoid depending upon Character Ranges.
26263 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26264 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26265 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26266 as_cr_digits
='0123456789'
26267 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26269 ECHO_C
= ECHO_N
= ECHO_T
=
26270 case `echo -n x` in #(((((
26272 case `echo 'xy\c'` in
26273 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26275 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26282 rm -f conf$$ conf$$.exe conf$$.
file
26283 if test -d conf$$.dir
; then
26284 rm -f conf$$.dir
/conf$$.
file
26287 mkdir conf$$.dir
2>/dev
/null
26289 if (echo >conf$$.
file) 2>/dev
/null
; then
26290 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26292 # ... but there are two gotchas:
26293 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26294 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26295 # In both cases, we have to default to `cp -p'.
26296 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26298 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26306 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26307 rmdir conf$$.dir
2>/dev
/null
26312 # Create "$as_dir" as a directory, including parents if necessary.
26317 -*) as_dir
=.
/$as_dir;;
26319 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26323 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26324 *) as_qdir
=$as_dir;;
26326 as_dirs
="'$as_qdir' $as_dirs"
26327 as_dir
=`$as_dirname -- "$as_dir" ||
26328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26329 X"$as_dir" : 'X\(//\)[^/]' \| \
26330 X"$as_dir" : 'X\(//\)$' \| \
26331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26332 $as_echo X"$as_dir" |
26333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26337 /^X\(\/\/\)[^/].*/{
26350 test -d "$as_dir" && break
26352 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26353 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26357 if mkdir
-p .
2>/dev
/null
; then
26358 as_mkdir_p
='mkdir -p "$as_dir"'
26360 test -d .
/-p && rmdir .
/-p
26364 if test -x / >/dev
/null
2>&1; then
26365 as_test_x
='test -x'
26367 if ls -dL / >/dev
/null
2>&1; then
26374 if test -d "$1"; then
26380 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26381 ???[sx]*):;;*)false;;esac;fi
26385 as_executable_p
=$as_test_x
26387 # Sed expression to map a string onto a valid CPP name.
26388 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26390 # Sed expression to map a string onto a valid variable name.
26391 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26395 ## ----------------------------------- ##
26396 ## Main body of $CONFIG_STATUS script. ##
26397 ## ----------------------------------- ##
26399 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26402 # Save the log message, to keep $0 and so on meaningful, and to
26403 # report actual input values of CONFIG_FILES etc. instead of their
26404 # values after options handling.
26406 This file was extended by $as_me, which was
26407 generated by GNU Autoconf 2.64. Invocation command line was
26409 CONFIG_FILES = $CONFIG_FILES
26410 CONFIG_HEADERS = $CONFIG_HEADERS
26411 CONFIG_LINKS = $CONFIG_LINKS
26412 CONFIG_COMMANDS = $CONFIG_COMMANDS
26415 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26420 case $ac_config_files in *"
26421 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26424 case $ac_config_headers in *"
26425 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26430 # Files that config.status was made for.
26431 config_files="$ac_config_files"
26432 config_headers="$ac_config_headers"
26433 config_commands="$ac_config_commands"
26437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26439 \`$as_me' instantiates files and other configuration actions
26440 from templates according to the current configuration. Unless the files
26441 and actions are specified as TAGs, all are instantiated by default.
26443 Usage: $0 [OPTION]... [TAG]...
26445 -h, --help print this help, then exit
26446 -V, --version print version number and configuration settings, then exit
26447 -q, --quiet, --silent
26448 do not print progress messages
26449 -d, --debug don't remove temporary files
26450 --recheck update $as_me by reconfiguring in the same conditions
26451 --file=FILE[:TEMPLATE]
26452 instantiate the configuration file FILE
26453 --header=FILE[:TEMPLATE]
26454 instantiate the configuration header FILE
26456 Configuration files:
26459 Configuration headers:
26462 Configuration commands:
26465 Report bugs to the package provider."
26468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26471 configured by $0, generated by GNU Autoconf 2.64,
26472 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26474 Copyright (C) 2009 Free Software Foundation, Inc.
26475 This config.status script is free software; the Free Software Foundation
26476 gives unlimited permission to copy, distribute and modify it."
26481 test -n "\$AWK" || AWK=awk
26484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26485 # The default lists apply if the user does not specify any file.
26491 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26492 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26503 # Handling of the options.
26504 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26506 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26507 $as_echo "$ac_cs_version"; exit ;;
26508 --debug |
--debu |
--deb |
--de |
--d |
-d )
26510 --file |
--fil |
--fi |
--f )
26513 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26515 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26516 ac_need_defaults
=false
;;
26517 --header |
--heade |
--head |
--hea )
26520 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26522 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26523 ac_need_defaults
=false
;;
26525 # Conflict between --help and --header
26526 as_fn_error
"ambiguous option: \`$1'
26527 Try \`$0 --help' for more information.";;
26528 --help |
--hel |
-h )
26529 $as_echo "$ac_cs_usage"; exit ;;
26530 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26531 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26534 # This is an error.
26535 -*) as_fn_error
"unrecognized option: \`$1'
26536 Try \`$0 --help' for more information." ;;
26538 *) as_fn_append ac_config_targets
" $1"
26539 ac_need_defaults
=false
;;
26545 ac_configure_extra_args
=
26547 if $ac_cs_silent; then
26549 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26554 if \$ac_cs_recheck; then
26555 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26557 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26558 CONFIG_SHELL='$SHELL'
26559 export CONFIG_SHELL
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26568 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26569 ## Running $as_me. ##
26575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26585 # Handling of arguments.
26586 for ac_config_target
in $ac_config_targets
26588 case $ac_config_target in
26589 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26590 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26591 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26592 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26593 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26594 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26596 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26601 # If the user did not use the arguments to specify the items to instantiate,
26602 # then the envvar interface is used. Set only those that are not.
26603 # We use the long form for the default assignment because of an extremely
26604 # bizarre bug on SunOS 4.1.3.
26605 if $ac_need_defaults; then
26606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26611 # Have a temporary directory for convenience. Make it in the build tree
26612 # simply because there is no reason against having it here, and in addition,
26613 # creating and moving files from /tmp can sometimes cause problems.
26614 # Hook for its removal unless debugging.
26615 # Note that there is a small window in which the directory will not be cleaned:
26616 # after its creation but before its name has been assigned to `$tmp'.
26620 trap 'exit_status=$?
26621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26623 trap 'as_fn_exit 1' 1 2 13 15
26625 # Create a (secure) tmp directory for tmp files.
26628 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26629 test -n "$tmp" && test -d "$tmp"
26632 tmp
=.
/conf$$
-$RANDOM
26633 (umask 077 && mkdir
"$tmp")
26634 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26636 # Set up the scripts for CONFIG_FILES section.
26637 # No need to generate them if there are no CONFIG_FILES.
26638 # This happens for instance with `./config.status config.h'.
26639 if test -n "$CONFIG_FILES"; then
26641 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26642 ac_cs_awk_getline
=:
26643 ac_cs_awk_pipe_init
=
26644 ac_cs_awk_read_file
='
26645 while ((getline aline < (F[key])) > 0)
26648 ac_cs_awk_pipe_fini
=
26650 ac_cs_awk_getline
=false
26651 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26652 ac_cs_awk_read_file
='
26654 print "cat " F[key] " &&"
26655 '$ac_cs_awk_pipe_init
26656 # The final `:' finishes the AND list.
26657 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26659 ac_cr
=`echo X | tr X '\015'`
26660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26661 # But we know of no other shell where ac_cr would be empty at this
26662 # point, so we can use a bashism as a fallback.
26663 if test "x$ac_cr" = x
; then
26664 eval ac_cr
=\$
\'\\r
\'
26666 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26670 ac_cs_awk_cr
=$ac_cr
26673 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26676 # Create commands to substitute file output variables.
26678 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26679 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26680 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26683 } >conf$
$files.sh
&&
26684 . .
/conf$
$files.sh ||
26685 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26686 rm -f conf$
$files.sh
26689 echo "cat >conf$$subs.awk <<_ACEOF" &&
26690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26692 } >conf$$subs.sh ||
26693 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26694 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26696 for ac_last_try in false false false false false :; do
26697 . ./conf$$subs.sh ||
26698 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26700 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26701 if test $ac_delim_n = $ac_delim_num; then
26703 elif $ac_last_try; then
26704 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26706 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26709 rm -f conf$$subs.sh
26711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26712 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26716 s/^/S["/; s
/!.
*/"]=/
26726 s/\(.\{148\}\).*/\1/
26728 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26733 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26740 s/\(.\{148\}\).*/\1/
26742 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26746 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26751 ' <conf$$subs.awk | sed '
26756 ' >>$CONFIG_STATUS || ac_write_fail=1
26757 rm -f conf$$subs.awk
26758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26760 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26761 for (key in S) S_is_set[key] = 1
26763 \$ac_cs_awk_pipe_init
26767 nfields = split(line, field, "@
")
26769 len = length(field[1])
26770 for (i = 2; i < nfields; i++) {
26772 keylen = length(key)
26773 if (S_is_set[key]) {
26775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26776 len += length(value) + length(field[++i])
26781 if (nfields == 3 && !substed) {
26783 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26784 \$ac_cs_awk_read_file
26790 \$ac_cs_awk_pipe_fini
26793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26794 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26795 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26798 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26799 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26802 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26803 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26804 # trailing colons and then remove the whole line if VPATH becomes empty
26805 # (actually we leave an empty line to preserve line numbers).
26806 if test "x
$srcdir" = x.; then
26807 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26808 s/:*\$(srcdir):*/:/
26809 s/:*\${srcdir}:*/:/
26811 s/^\([^=]*=[ ]*\):*/\1/
26817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26818 fi # test -n "$CONFIG_FILES"
26820 # Set up the scripts for CONFIG_HEADERS section.
26821 # No need to generate them if there are no CONFIG_HEADERS.
26822 # This happens for instance with `./config.status Makefile'.
26823 if test -n "$CONFIG_HEADERS"; then
26824 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26828 # Transform confdefs.h into an awk script `defines.awk', embedded as
26829 # here-document in config.status, that substitutes the proper values into
26830 # config.h.in to produce config.h.
26832 # Create a delimiter string that does not exist in confdefs.h, to ease
26833 # handling of long lines.
26835 for ac_last_try in false false :; do
26836 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26837 if test -z "$ac_t"; then
26839 elif $ac_last_try; then
26840 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26842 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26846 # For the awk script, D is an array of macro values keyed by name,
26847 # likewise P contains macro parameters if any. Preserve backslash
26848 # newline sequences.
26850 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26852 s/.\{148\}/&'"$ac_delim"'/g
26855 s/^[ ]*#[ ]*define[ ][ ]*/ /
26862 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26864 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26869 D["\
1"]=" \
3\\\\\\n
"\\/p
26871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26876 s/.\{148\}/&'"$ac_delim"'/g
26881 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26884 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26886 ' <confdefs.h | sed '
26887 s/'"$ac_delim"'/"\\\
26888 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26891 for (key in D) D_is_set[key] = 1
26894 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26896 split(line, arg, " ")
26897 if (arg[1] == "#") {
26901 defundef
= substr
(arg
[1], 2)
26904 split(mac1
, mac2
, "(") #)
26906 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26907 if (D_is_set
[macro
]) {
26908 # Preserve the white space surrounding the "#".
26909 print prefix
"define", macro P
[macro
] D
[macro
]
26912 # Replace #undef with comments. This is necessary, for example,
26913 # in the case of _POSIX_SOURCE, which is predefined and required
26914 # on some systems where configure will not decide to define it.
26915 if (defundef
== "undef") {
26916 print
"/*", prefix defundef
, macro
, "*/"
26924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26925 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26926 fi # test -n "$CONFIG_HEADERS"
26929 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26934 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26936 case $ac_mode$ac_tag in
26938 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26939 :[FH
]-) ac_tag
=-:-;;
26940 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26957 -) ac_f
="$tmp/stdin";;
26958 *) # Look for the file first in the build tree, then in the source tree
26959 # (if the path is not absolute). The absolute path cannot be DOS-style,
26960 # because $ac_f cannot contain `:'.
26964 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26966 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26968 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26969 as_fn_append ac_file_inputs
" '$ac_f'"
26972 # Let's still pretend it is `configure' which instantiates (i.e., don't
26973 # use $as_me), people would be surprised to read:
26974 # /* config.h. Generated by config.status. */
26975 configure_input
='Generated from '`
26976 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26978 if test x
"$ac_file" != x-
; then
26979 configure_input
="$ac_file. $configure_input"
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26981 $as_echo "$as_me: creating $ac_file" >&6;}
26983 # Neutralize special characters interpreted by sed in replacement strings.
26984 case $configure_input in #(
26985 *\
&* |
*\|
* |
*\\* )
26986 ac_sed_conf_input
=`$as_echo "$configure_input" |
26987 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26988 *) ac_sed_conf_input
=$configure_input;;
26992 *:-:* |
*:-) cat >"$tmp/stdin" \
26993 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26998 ac_dir
=`$as_dirname -- "$ac_file" ||
26999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27000 X"$ac_file" : 'X\(//\)[^/]' \| \
27001 X"$ac_file" : 'X\(//\)$' \| \
27002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27003 $as_echo X"$ac_file" |
27004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27008 /^X\(\/\/\)[^/].*/{
27021 as_dir
="$ac_dir"; as_fn_mkdir_p
27025 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27027 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27028 # A ".." for each directory in $ac_dir_suffix.
27029 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27030 case $ac_top_builddir_sub in
27031 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27032 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27035 ac_abs_top_builddir
=$ac_pwd
27036 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27037 # for backward compatibility:
27038 ac_top_builddir
=$ac_top_build_prefix
27041 .
) # We are building in place.
27043 ac_top_srcdir
=$ac_top_builddir_sub
27044 ac_abs_top_srcdir
=$ac_pwd ;;
27045 [\\/]* | ?
:[\\/]* ) # Absolute name.
27046 ac_srcdir
=$srcdir$ac_dir_suffix;
27047 ac_top_srcdir
=$srcdir
27048 ac_abs_top_srcdir
=$srcdir ;;
27049 *) # Relative name.
27050 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27051 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27052 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27054 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27066 # If the template does not know about datarootdir, expand it.
27067 # FIXME: This hack should be removed a few years after 2.60.
27068 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27080 *datarootdir
*) ac_datarootdir_seen
=yes;;
27081 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27083 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27086 ac_datarootdir_hack='
27087 s&@datadir@&$datadir&g
27088 s&@docdir@&$docdir&g
27089 s&@infodir@&$infodir&g
27090 s&@localedir@&$localedir&g
27091 s&@mandir@&$mandir&g
27092 s&\\\${datarootdir}&$datarootdir&g' ;;
27096 # Neutralize VPATH when `$srcdir' = `.'.
27097 # Shell code in configure.ac might set extrasub.
27098 # FIXME: do we really want to maintain this feature?
27099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27100 ac_sed_extra="$ac_vpsub
27103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27105 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27106 s|@configure_input@|
$ac_sed_conf_input|
;t t
27107 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27108 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27109 s
&@srcdir@
&$ac_srcdir&;t t
27110 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27111 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27112 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27113 s
&@builddir@
&$ac_builddir&;t t
27114 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27115 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27116 $ac_datarootdir_hack
27118 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27119 if $ac_cs_awk_getline; then
27120 $AWK -f "$tmp/subs.
awk"
27122 $AWK -f "$tmp/subs.
awk" | $SHELL
27124 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27126 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27127 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27128 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27130 which seems to be undefined. Please make sure it is defined." >&5
27131 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27132 which seems to be undefined. Please make sure it is defined." >&2;}
27136 -) cat "$tmp/out" && rm -f "$tmp/out";;
27137 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27139 || as_fn_error "could not create $ac_file" "$LINENO" 5
27145 if test x"$ac_file" != x-; then
27147 $as_echo "/* $configure_input */" \
27148 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27149 } >"$tmp/config.h" \
27150 || as_fn_error "could not create $ac_file" "$LINENO" 5
27151 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27153 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27156 mv "$tmp/config.h" "$ac_file" \
27157 || as_fn_error "could not create $ac_file" "$LINENO" 5
27160 $as_echo "/* $configure_input */" \
27161 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27162 || as_fn_error "could not create -" "$LINENO" 5
27166 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27167 $as_echo "$as_me: executing $ac_file commands" >&6;}
27172 case $ac_file$ac_mode in
27173 "as":F) chmod +x as ;;
27174 "collect-ld":F) chmod +x collect-ld ;;
27175 "nm":F) chmod +x nm ;;
27177 case ${CONFIG_HEADERS} in
27178 *auto-host.h:config.in*)
27181 # Make sure all the subdirs exist.
27182 for d in $subdirs doc build c-family
27184 test -d $d || mkdir $d
27194 ac_clean_files=$ac_clean_files_save
27196 test $ac_write_fail = 0 ||
27197 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27200 # configure is writing to config.log, and then calls config.status.
27201 # config.status does its own redirection, appending to config.log.
27202 # Unfortunately, on DOS this fails, as config.log is still kept open
27203 # by configure, so config.status won't be able to
write to it
; its
27204 # output is simply discarded. So we exec the FD to /dev/null,
27205 # effectively closing config.log, so it can be properly (re)opened and
27206 # appended to by config.status. When coming back to configure, we
27207 # need to make the FD available again.
27208 if test "$no_create" != yes; then
27210 ac_config_status_args
=
27211 test "$silent" = yes &&
27212 ac_config_status_args
="$ac_config_status_args --quiet"
27214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27217 # would make configure fail if this is the last instruction.
27218 $ac_cs_success || as_fn_exit $?
27220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}