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
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
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
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
771 SYSROOT_CFLAGS_FOR_TARGET
781 valgrind_path_defines
854 program_transform_name
865 ac_subst_files
='option_includes
868 enable_option_checking
873 enable_generated_files_in_srcdir
880 enable_build_format_warnings
884 enable_gather_detailed_mem_stats
896 with_native_system_header_dir
906 enable_sjlj_exceptions
908 enable_leading_mingw64_underscores
911 enable_win32_registry
919 enable_gnu_indirect_function
920 enable_initfini_array
923 enable_gnu_unique_object
924 enable_linker_build_id
928 enable_maintainer_mode
930 enable_version_specific_runtime_libs
933 enable_libquadmath_support
934 with_linker_hash_style
936 ac_precious_vars
='build_alias
957 # Initialize some variables set by options.
959 ac_init_version
=false
960 ac_unrecognized_opts
=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
971 program_transform_name
=s
,x
,x
,
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir
='${exec_prefix}/bin'
986 sbindir
='${exec_prefix}/sbin'
987 libexecdir
='${exec_prefix}/libexec'
988 datarootdir
='${prefix}/share'
989 datadir
='${datarootdir}'
990 sysconfdir
='${prefix}/etc'
991 sharedstatedir
='${prefix}/com'
992 localstatedir
='${prefix}/var'
993 includedir
='${prefix}/include'
994 oldincludedir
='/usr/include'
995 docdir
='${datarootdir}/doc/${PACKAGE}'
996 infodir
='${datarootdir}/info'
1001 libdir
='${exec_prefix}/lib'
1002 localedir
='${datarootdir}/locale'
1003 mandir
='${datarootdir}/man'
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\
$ac_option
1017 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1027 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1029 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1030 bindir
=$ac_optarg ;;
1032 -build |
--build |
--buil |
--bui |
--bu)
1033 ac_prev
=build_alias
;;
1034 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1035 build_alias
=$ac_optarg ;;
1037 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1038 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1039 ac_prev
=cache_file
;;
1040 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1041 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1042 cache_file
=$ac_optarg ;;
1044 --config-cache |
-C)
1045 cache_file
=config.cache
;;
1047 -datadir |
--datadir |
--datadi |
--datad)
1049 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1050 datadir
=$ac_optarg ;;
1052 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1053 |
--dataroo |
--dataro |
--datar)
1054 ac_prev
=datarootdir
;;
1055 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1056 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1057 datarootdir
=$ac_optarg ;;
1059 -disable-* |
--disable-*)
1060 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1063 as_fn_error
"invalid feature name: $ac_useropt"
1064 ac_useropt_orig
=$ac_useropt
1065 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_
$ac_useropt"
1070 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep
=', ';;
1073 eval enable_
$ac_useropt=no
;;
1075 -docdir |
--docdir |
--docdi |
--doc |
--do)
1077 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1078 docdir
=$ac_optarg ;;
1080 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1082 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1083 dvidir
=$ac_optarg ;;
1085 -enable-* |
--enable-*)
1086 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1089 as_fn_error
"invalid feature name: $ac_useropt"
1090 ac_useropt_orig
=$ac_useropt
1091 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_
$ac_useropt"
1096 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep
=', ';;
1099 eval enable_
$ac_useropt=\
$ac_optarg ;;
1101 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1102 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1103 |
--exec |
--exe |
--ex)
1104 ac_prev
=exec_prefix
;;
1105 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1106 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1107 |
--exec=* |
--exe=* |
--ex=*)
1108 exec_prefix
=$ac_optarg ;;
1110 -gas |
--gas |
--ga |
--g)
1111 # Obsolete; use --with-gas.
1114 -help |
--help |
--hel |
--he |
-h)
1115 ac_init_help
=long
;;
1116 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1117 ac_init_help
=recursive
;;
1118 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1119 ac_init_help
=short
;;
1121 -host |
--host |
--hos |
--ho)
1122 ac_prev
=host_alias
;;
1123 -host=* |
--host=* |
--hos=* |
--ho=*)
1124 host_alias
=$ac_optarg ;;
1126 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1128 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1130 htmldir
=$ac_optarg ;;
1132 -includedir |
--includedir |
--includedi |
--included |
--include \
1133 |
--includ |
--inclu |
--incl |
--inc)
1134 ac_prev
=includedir
;;
1135 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1136 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1137 includedir
=$ac_optarg ;;
1139 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1141 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1142 infodir
=$ac_optarg ;;
1144 -libdir |
--libdir |
--libdi |
--libd)
1146 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1147 libdir
=$ac_optarg ;;
1149 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1150 |
--libexe |
--libex |
--libe)
1151 ac_prev
=libexecdir
;;
1152 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1153 |
--libexe=* |
--libex=* |
--libe=*)
1154 libexecdir
=$ac_optarg ;;
1156 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1157 ac_prev
=localedir
;;
1158 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1159 localedir
=$ac_optarg ;;
1161 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1162 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1163 ac_prev
=localstatedir
;;
1164 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1165 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1166 localstatedir
=$ac_optarg ;;
1168 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1170 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1171 mandir
=$ac_optarg ;;
1173 -nfp |
--nfp |
--nf)
1174 # Obsolete; use --without-fp.
1177 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1178 |
--no-cr |
--no-c |
-n)
1181 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1182 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1185 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1186 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1187 |
--oldin |
--oldi |
--old |
--ol |
--o)
1188 ac_prev
=oldincludedir
;;
1189 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1190 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1191 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1192 oldincludedir
=$ac_optarg ;;
1194 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1196 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1197 prefix
=$ac_optarg ;;
1199 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1200 |
--program-pre |
--program-pr |
--program-p)
1201 ac_prev
=program_prefix
;;
1202 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1203 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1204 program_prefix
=$ac_optarg ;;
1206 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1207 |
--program-suf |
--program-su |
--program-s)
1208 ac_prev
=program_suffix
;;
1209 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1210 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1211 program_suffix
=$ac_optarg ;;
1213 -program-transform-name |
--program-transform-name \
1214 |
--program-transform-nam |
--program-transform-na \
1215 |
--program-transform-n |
--program-transform- \
1216 |
--program-transform |
--program-transfor \
1217 |
--program-transfo |
--program-transf \
1218 |
--program-trans |
--program-tran \
1219 |
--progr-tra |
--program-tr |
--program-t)
1220 ac_prev
=program_transform_name
;;
1221 -program-transform-name=* |
--program-transform-name=* \
1222 |
--program-transform-nam=* |
--program-transform-na=* \
1223 |
--program-transform-n=* |
--program-transform-=* \
1224 |
--program-transform=* |
--program-transfor=* \
1225 |
--program-transfo=* |
--program-transf=* \
1226 |
--program-trans=* |
--program-tran=* \
1227 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1228 program_transform_name
=$ac_optarg ;;
1230 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1232 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1233 pdfdir
=$ac_optarg ;;
1235 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1237 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1240 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1241 |
-silent |
--silent |
--silen |
--sile |
--sil)
1244 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1246 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1248 sbindir
=$ac_optarg ;;
1250 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1251 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1252 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1254 ac_prev
=sharedstatedir
;;
1255 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1256 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1257 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1259 sharedstatedir
=$ac_optarg ;;
1261 -site |
--site |
--sit)
1263 -site=* |
--site=* |
--sit=*)
1266 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1268 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1269 srcdir
=$ac_optarg ;;
1271 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1272 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1273 ac_prev
=sysconfdir
;;
1274 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1275 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1276 sysconfdir
=$ac_optarg ;;
1278 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1279 ac_prev
=target_alias
;;
1280 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1281 target_alias
=$ac_optarg ;;
1283 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1286 -version |
--version |
--versio |
--versi |
--vers |
-V)
1287 ac_init_version
=: ;;
1290 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1293 as_fn_error
"invalid package name: $ac_useropt"
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=\
$ac_optarg ;;
1305 -without-* |
--without-*)
1306 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1309 as_fn_error
"invalid package name: $ac_useropt"
1310 ac_useropt_orig
=$ac_useropt
1311 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1316 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep
=', ';;
1319 eval with_
$ac_useropt=no
;;
1322 # Obsolete; use --with-x.
1325 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1326 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1327 ac_prev
=x_includes
;;
1328 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1329 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1330 x_includes
=$ac_optarg ;;
1332 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1333 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1334 ac_prev
=x_libraries
;;
1335 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1336 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1337 x_libraries
=$ac_optarg ;;
1339 -*) as_fn_error
"unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information."
1344 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1348 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1350 eval $ac_envvar=\
$ac_optarg
1351 export $ac_envvar ;;
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1364 if test -n "$ac_prev"; then
1365 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error
"missing argument to $ac_option"
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1372 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 # Check all directory arguments for consistency.
1378 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1383 eval ac_val
=\$
$ac_var
1384 # Remove trailing slashes.
1387 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\
$ac_val;;
1390 # Be sure to have absolute directory names.
1392 [\\/$
]* | ?
:[\\/]* ) continue;;
1393 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1395 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1403 target
=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x
; then
1407 if test "x$build_alias" = x
; then
1408 cross_compiling
=maybe
1409 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410 If a cross compiler is detected then cross compile mode will be used." >&2
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1419 test "$silent" = yes && exec 6>/dev
/null
1422 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di
=`ls -di .` &&
1424 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error
"working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error
"pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted
=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir
=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted
=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1466 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var
in $ac_precious_vars; do
1483 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1485 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1559 --build=BUILD configure
for building on BUILD
[guessed
]
1560 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1561 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1565 if test -n "$ac_init_help"; then
1570 --disable-option-checking ignore unrecognized
--enable/--with options
1571 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1572 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1573 --enable-generated-files-in-srcdir
1574 put copies of generated files
in source dir intended
1575 for creating
source tarballs
for users without
1576 texinfo bison or flex
1577 --disable-largefile omit support
for large files
1578 --disable-build-format-warnings
1579 don
't use -Wformat while building GCC
1580 --enable-werror-always enable -Werror despite compiler version
1581 --enable-checking[=LIST]
1582 enable expensive run-time checks. With LIST, enable
1583 only specific categories of checks. Categories are:
1584 yes,no,all,none,release. Flags are:
1585 assert,df,fold,gc,gcac,gimple,misc,
1586 rtlflag,rtl,runtime,tree,valgrind,types
1587 --enable-coverage[=LEVEL]
1588 enable compiler's code coverage collection. Use to
1589 measure compiler performance and
locate unused parts
1590 of the compiler. With LEVEL
, specify optimization.
1591 Values are opt
, noopt
, default is noopt
1592 --enable-gather-detailed-mem-stats
1593 enable detailed memory allocation stats gathering
1594 --enable-multilib enable library support
for multiple ABIs
1595 --enable-multiarch enable support
for multiarch paths
1596 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1597 --enable-decimal-float={no
,yes,bid
,dpd
}
1598 enable decimal float extension to C. Selecting
'bid'
1599 or
'dpd' choses
which decimal floating point format
1601 --enable-fixed-point enable fixed-point arithmetic extension to C
1602 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1604 --enable-tls enable or disable generation of tls code overriding
1605 the assembler check
for tls support
1606 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1607 GNU Objective-C runtime
1608 --disable-shared don't provide a shared libgcc
1609 --enable-languages=LIST specify
which front-ends to build
1610 --disable-rpath do not hardcode runtime library paths
1611 --enable-sjlj-exceptions
1612 arrange to use setjmp
/longjmp exception handling
1613 --enable-secureplt enable -msecure-plt by default
for PowerPC
1614 --enable-leading-mingw64-underscores
1615 enable leading underscores on
64 bit mingw targets
1616 --enable-cld enable -mcld by default
for 32bit x86
1617 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1619 --disable-win32-registry
1620 disable lookup of installation paths
in the Registry
1622 --enable-win32-registry enable registry lookup
(default
)
1623 --enable-win32-registry=KEY
1624 use KEY instead of GCC version as the last portion
1626 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1627 --enable-static[=PKGS
] build static libraries
[default
=yes]
1628 --enable-fast-install[=PKGS
]
1629 optimize
for fast installation
[default
=yes]
1630 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1631 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1632 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1633 --enable-gnu-indirect-function
1634 enable the use of the @gnu_indirect_function to
1636 --enable-initfini-array use .init_array
/.fini_array sections
1637 --enable-comdat enable COMDAT group support
1638 --enable-gnu-unique-object
1639 enable the use of the @gnu_unique_object ELF
1640 extension on glibc systems
1641 --enable-linker-build-id
1642 compiler will always pass
--build-id to linker
1643 --enable-maintainer-mode
1644 enable make rules and dependencies not useful
(and
1645 sometimes confusing
) to the casual installer
1646 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1647 thrashing on the build machine
1648 --enable-version-specific-runtime-libs
1649 specify that runtime libraries should be installed
1650 in a compiler-specific directory
1651 --enable-plugin enable plugin support
1652 --enable-host-shared build
host code as shared libraries
1653 --disable-libquadmath-support
1654 disable libquadmath support
for Fortran
1657 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1658 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1659 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1660 --with-local-prefix=DIR specifies directory to put
local include
1661 --with-gxx-include-dir=DIR
1662 specifies directory to put g
++ header files
1663 --with-cpp-install-dir=DIR
1664 install the user visible C preprocessor
in DIR
1665 (relative to PREFIX
) as well as PREFIX
/bin
1666 --with-gnu-ld arrange to work with GNU ld
1667 --with-ld arrange to use the specified ld
(full pathname
)
1668 --with-demangler-in-ld try to use demangler
in GNU ld
1669 --with-gnu-as arrange to work with GNU as
1670 --with-as arrange to use the specified as
(full pathname
)
1671 --with-stabs arrange to use stabs instead of
host debug format
1672 --with-dwarf2 force the default debug format to be DWARF
2
1673 --with-native-system-header-dir=dir
1674 use dir as the directory to
look for standard
1675 system header files
in. Defaults to
/usr
/include.
1676 --with-build-sysroot=sysroot
1677 use sysroot as the system root during the build
1678 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1679 --with-specs=SPECS add SPECS to driver command-line processing
1680 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1681 --with-bugurl=URL Direct users to URL to report a bug
1682 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1683 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1684 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1685 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1686 --with-pic try to use only PIC/non-PIC objects [default=use
1688 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1689 --with-plugin-ld=[ARG] specify the plugin linker
1690 --with-glibc-version=M.N
1691 assume GCC used with glibc version M.N or later
1692 --with-long-double-128 use 128-bit long double by default
1693 --with-gc={page,zone} this option is not supported anymore. It used to
1694 choose the garbage collection mechanism to use with
1696 --with-system-zlib use installed libz
1697 --with-linker-hash-style={sysv,gnu,both}
1698 specify the linker hash style
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1708 CXX C++ compiler command
1709 CXXFLAGS C++ compiler flags
1711 CXXCPP C++ preprocessor
1712 GMPLIBS How to link GMP
1713 GMPINC How to find GMP include files
1714 ISLLIBS How to link ISL
1715 ISLINC How to find ISL include files
1716 CLOOGLIBS How to link CLOOG
1717 CLOOGINC How to find CLOOG include files
1719 Use these variables to override the choices made by `configure' or to
help
1720 it to
find libraries and programs with nonstandard names
/locations.
1722 Report bugs to the package provider.
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1736 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1738 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1743 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1746 ac_abs_top_builddir
=$ac_pwd
1747 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir
=$ac_top_build_prefix
1752 .
) # We are building in place.
1754 ac_top_srcdir
=$ac_top_builddir_sub
1755 ac_abs_top_srcdir
=$ac_pwd ;;
1756 [\\/]* | ?
:[\\/]* ) # Absolute name.
1757 ac_srcdir
=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir
=$srcdir
1759 ac_abs_top_srcdir
=$srcdir ;;
1761 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1765 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1767 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1778 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1786 generated by GNU Autoconf
2.64
1788 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1789 This configure
script is free software
; the Free Software Foundation
1790 gives unlimited permission to copy
, distribute and modify it.
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile
()
1804 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1805 rm -f conftest.
$ac_objext
1806 if { { ac_try
="$ac_compile"
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 } # ac_fn_c_try_compile
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1847 *) ac_try_echo
=$ac_try;;
1849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1853 if test -s conftest.err
; then
1854 grep -v '^ *+' conftest.err
>conftest.er1
1855 cat conftest.er1
>&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.
$ac_objext; then :
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.
$ac_ext >&5
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1873 } # ac_fn_cxx_try_compile
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } >/dev/null && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1917 ac_fn_c_check_header_mongrel ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1941 ac_header_compiler=no
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1957 ac_header_preproc=no
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1989 eval "$3=\$ac_header_compiler"
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_mongrel
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2009 *) ac_try_echo
=$ac_try;;
2011 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2041 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists and can be compiled using the include files in
2044 # INCLUDES, setting the cache variable VAR accordingly.
2045 ac_fn_c_check_header_compile ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2058 if ac_fn_c_try_compile "$LINENO"; then :
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 } # ac_fn_c_check_header_compile
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2077 ac_fn_c_compute_int ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2095 if ac_fn_c_try_compile "$LINENO"; then :
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) < 0)];
2137 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2146 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=$ac_mid; break
2156 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157 if test $ac_mid -le $ac_hi; then
2161 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 # Binary search between lo and hi bounds.
2172 while test "x$ac_lo" != "x$ac_hi"; do
2173 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2202 static long int longval () { return $2; }
2203 static unsigned long int ulongval () { return $2; }
2210 FILE *f = fopen ("conftest.val", "w");
2215 long int i = longval ();
2218 fprintf (f, "%ld", i);
2222 unsigned long int i = ulongval ();
2225 fprintf (f, "%lu", i);
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2235 if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 } # ac_fn_c_compute_int
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2288 if ac_fn_c_try_compile "$LINENO"; then :
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2302 } # ac_fn_c_check_type
2304 # ac_fn_c_find_intX_t LINENO BITS VAR
2305 # -----------------------------------
2306 # Finds a signed integer type with width BITS, setting cache variable VAR
2308 ac_fn_c_find_intX_t ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2312 $as_echo_n "checking for int$2_t... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2317 for ac_type in int$2_t 'int' 'long int' \
2318 'long long int' 'short int' 'signed char'; do
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $ac_includes_default
2325 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $ac_includes_default
2339 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2340 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2347 if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$3=\$ac_type" ;;
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 if test "x$as_val" = x""no; then :
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 } # ac_fn_c_find_intX_t
2375 # ac_fn_c_try_link LINENO
2376 # -----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { { ac_try="$ac_link"
2384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2385 *) ac_try_echo
=$ac_try;;
2387 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2391 if test -s conftest.err
; then
2392 grep -v '^ *+' conftest.err
>conftest.er1
2393 cat conftest.er1
>&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest
$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 $as_test_x conftest
$ac_exeext
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.
$ac_ext >&5
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2419 } # ac_fn_c_try_link
2421 # ac_fn_c_find_uintX_t LINENO BITS VAR
2422 # ------------------------------------
2423 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2425 ac_fn_c_find_uintX_t
()
2427 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2429 $as_echo_n "checking for uint$2_t... " >&6; }
2430 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 $as_echo_n "(cached) " >&6
2434 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $ac_includes_default
2442 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2449 if ac_fn_c_try_compile
"$LINENO"; then :
2454 eval "$3=\$ac_type" ;;
2457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2459 if test "x$as_val" = x
""no
; then :
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2471 } # ac_fn_c_find_uintX_t
2473 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2474 # ----------------------------------------------
2475 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2476 ac_fn_c_check_header_preproc
()
2478 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2488 if ac_fn_c_try_cpp
"$LINENO"; then :
2493 rm -f conftest.err conftest.
$ac_ext
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2500 } # ac_fn_c_check_header_preproc
2502 # ac_fn_cxx_try_cpp LINENO
2503 # ------------------------
2504 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2505 ac_fn_cxx_try_cpp
()
2507 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2508 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } >/dev/null && {
2524 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537 } # ac_fn_cxx_try_cpp
2539 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2540 # ------------------------------------------------
2541 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2542 ac_fn_cxx_check_header_preproc ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2554 if ac_fn_cxx_try_cpp "$LINENO"; then :
2559 rm -f conftest.err conftest.$ac_ext
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566 } # ac_fn_cxx_check_header_preproc
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2577 $as_echo_n "(cached) " >&6
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2591 # include <limits.h>
2593 # include <assert.h>
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2620 if ac_fn_c_try_link "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633 } # ac_fn_c_check_func
2635 # ac_fn_cxx_try_link LINENO
2636 # -------------------------
2637 # Try to link conftest.$ac_ext, and return whether this succeeded.
2638 ac_fn_cxx_try_link ()
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 rm -f conftest.$ac_objext conftest$ac_exeext
2642 if { { ac_try="$ac_link"
2644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2645 *) ac_try_echo
=$ac_try;;
2647 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648 $as_echo "$ac_try_echo"; } >&5
2649 (eval "$ac_link") 2>conftest.err
2651 if test -s conftest.err
; then
2652 grep -v '^ *+' conftest.err
>conftest.er1
2653 cat conftest.er1
>&5
2654 mv -f conftest.er1 conftest.err
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; } && {
2658 test -z "$ac_cxx_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest
$ac_exeext && {
2661 test "$cross_compiling" = yes ||
2662 $as_test_x conftest
$ac_exeext
2666 $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.
$ac_ext >&5
2671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2673 # interfere with the next link command; also delete a directory that is
2674 # left behind by Apple's compiler. We do this before executing the actions.
2675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2679 } # ac_fn_cxx_try_link
2680 cat >config.log
<<_ACEOF
2681 This file contains any messages produced by compilers while
2682 running configure, to aid debugging if configure makes a mistake.
2684 It was created by $as_me, which was
2685 generated by GNU Autoconf 2.64. Invocation command line was
2697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir
=.
2721 $as_echo "PATH: $as_dir"
2737 # Keep a trace of the command line.
2738 # Strip out --no-create and --no-recursion so they do not pile up.
2739 # Strip out --silent because we don't want to record it for future runs.
2740 # Also quote any args containing shell meta-characters.
2741 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_must_keep_next
=false
2751 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2752 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2753 |
-silent |
--silent |
--silen |
--sile |
--sil)
2756 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2759 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2761 as_fn_append ac_configure_args1
" '$ac_arg'"
2762 if test $ac_must_keep_next = true
; then
2763 ac_must_keep_next
=false
# Got value, back to normal.
2766 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2767 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2768 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2769 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2770 case "$ac_configure_args0 " in
2771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2774 -* ) ac_must_keep_next
=true
;;
2777 as_fn_append ac_configure_args
" '$ac_arg'"
2782 { ac_configure_args0
=; unset ac_configure_args0
;}
2783 { ac_configure_args1
=; unset ac_configure_args1
;}
2785 # When interrupted or exit'd, cleanup temporary files, and complete
2786 # config.log. We remove comments because anyway the quotes in there
2787 # would cause problems or look ugly.
2788 # WARNING: Use '\'' to represent an apostrophe within the trap.
2789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2790 trap 'exit_status=$?
2791 # Save into config.log some information that might help in debugging.
2796 ## ---------------- ##
2797 ## Cache variables. ##
2798 ## ---------------- ##
2801 # The following way of writing the cache mishandles newlines in values,
2803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2804 eval ac_val=\$$ac_var
2808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2812 _ | IFS | as_nl) ;; #(
2813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2814 *) { eval $ac_var=; unset $ac_var;} ;;
2819 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2820 *${as_nl}ac_space=\ *)
2822 "s/'\''/'\''\\\\'\'''\''/g;
2823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2834 ## ----------------- ##
2835 ## Output variables. ##
2836 ## ----------------- ##
2839 for ac_var in $ac_subst_vars
2841 eval ac_val=\$$ac_var
2843 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2845 $as_echo "$ac_var='\''$ac_val'\''"
2849 if test -n "$ac_subst_files"; then
2851 ## ------------------- ##
2852 ## File substitutions. ##
2853 ## ------------------- ##
2856 for ac_var
in $ac_subst_files
2858 eval ac_val
=\$
$ac_var
2860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2862 $as_echo "$ac_var='\''$ac_val'\''"
2867 if test -s confdefs.h; then
2877 test "$ac_signal" != 0 &&
2878 $as_echo "$as_me: caught signal $ac_signal"
2879 $as_echo "$as_me: exit $exit_status"
2881 rm -f core *.core core.conftest.* &&
2882 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2885 for ac_signal
in 1 2 13 15; do
2886 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2891 rm -f -r conftest
* confdefs.h
2893 $as_echo "/* confdefs.h */" > confdefs.h
2895 # Predefined preprocessor variables.
2897 cat >>confdefs.h
<<_ACEOF
2898 #define PACKAGE_NAME "$PACKAGE_NAME"
2901 cat >>confdefs.h
<<_ACEOF
2902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2905 cat >>confdefs.h
<<_ACEOF
2906 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2909 cat >>confdefs.h
<<_ACEOF
2910 #define PACKAGE_STRING "$PACKAGE_STRING"
2913 cat >>confdefs.h
<<_ACEOF
2914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2917 cat >>confdefs.h
<<_ACEOF
2918 #define PACKAGE_URL "$PACKAGE_URL"
2922 # Let the site file select an alternate cache file if it wants to.
2923 # Prefer an explicitly selected file to automatically selected ones.
2926 if test -n "$CONFIG_SITE"; then
2927 ac_site_file1
=$CONFIG_SITE
2928 elif test "x$prefix" != xNONE
; then
2929 ac_site_file1
=$prefix/share
/config.site
2930 ac_site_file2
=$prefix/etc
/config.site
2932 ac_site_file1
=$ac_default_prefix/share
/config.site
2933 ac_site_file2
=$ac_default_prefix/etc
/config.site
2935 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2937 test "x$ac_site_file" = xNONE
&& continue
2938 if test -r "$ac_site_file"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2941 sed 's/^/| /' "$ac_site_file" >&5
2946 if test -r "$cache_file"; then
2947 # Some versions of bash will fail to source /dev/null (special
2948 # files actually), so we avoid doing that.
2949 if test -f "$cache_file"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2951 $as_echo "$as_me: loading cache $cache_file" >&6;}
2953 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2954 *) .
"./$cache_file";;
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2959 $as_echo "$as_me: creating cache $cache_file" >&6;}
2963 # Check that the precious variables saved in the cache have kept the same
2965 ac_cache_corrupted
=false
2966 for ac_var
in $ac_precious_vars; do
2967 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2968 eval ac_new_set
=\
$ac_env_${ac_var}_set
2969 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2970 eval ac_new_val
=\
$ac_env_${ac_var}_value
2971 case $ac_old_set,$ac_new_set in
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975 ac_cache_corrupted
=: ;;
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979 ac_cache_corrupted
=: ;;
2982 if test "x$ac_old_val" != "x$ac_new_val"; then
2983 # differences in whitespace do not lead to failure.
2984 ac_old_val_w
=`echo x $ac_old_val`
2985 ac_new_val_w
=`echo x $ac_new_val`
2986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989 ac_cache_corrupted
=:
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993 eval $ac_var=\
$ac_old_val
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3001 # Pass precious variables to config.status.
3002 if test "$ac_new_set" = set; then
3004 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005 *) ac_arg
=$ac_var=$ac_new_val ;;
3007 case " $ac_configure_args " in
3008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3009 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3013 if $ac_cache_corrupted; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3025 ac_cpp
='$CPP $CPPFLAGS'
3026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3035 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3038 gcc_version
=`cat $srcdir/BASE-VER`
3040 # Determine the host, build, and target systems
3042 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3043 for ac_t
in install-sh
install.sh shtool
; do
3044 if test -f "$ac_dir/$ac_t"; then
3046 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3051 if test -z "$ac_aux_dir"; then
3052 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3055 # These three variables are undocumented and unsupported,
3056 # and are intended to be withdrawn in a future Autoconf release.
3057 # They can cause serious problems if a builder's source tree is in a directory
3058 # whose full name contains unusual characters.
3059 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3060 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3061 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3064 # Make sure we can run config.sub.
3065 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3066 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069 $as_echo_n "checking build system type... " >&6; }
3070 if test "${ac_cv_build+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3073 ac_build_alias
=$build_alias
3074 test "x$ac_build_alias" = x
&&
3075 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3076 test "x$ac_build_alias" = x
&&
3077 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3078 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3079 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3083 $as_echo "$ac_cv_build" >&6; }
3084 case $ac_cv_build in
3086 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3089 ac_save_IFS
=$IFS; IFS
='-'
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3099 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if test "${ac_cv_host+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3107 if test "x$host_alias" = x
; then
3108 ac_cv_host
=$ac_cv_build
3110 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3119 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3122 ac_save_IFS
=$IFS; IFS
='-'
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3132 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3136 $as_echo_n "checking target system type... " >&6; }
3137 if test "${ac_cv_target+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3140 if test "x$target_alias" = x
; then
3141 ac_cv_target
=$ac_cv_host
3143 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3144 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3149 $as_echo "$ac_cv_target" >&6; }
3150 case $ac_cv_target in
3152 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3154 target
=$ac_cv_target
3155 ac_save_IFS
=$IFS; IFS
='-'
3161 # Remember, the first character of IFS is used to create $*,
3162 # except with old shells:
3165 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3168 # The aliases save the names the user supplied, while $host etc.
3169 # will get canonicalized.
3170 test -n "$target_alias" &&
3171 test "$program_prefix$program_suffix$program_transform_name" = \
3173 program_prefix
=${target_alias}-
3175 # Determine the noncanonical target name, for directory use.
3176 case ${build_alias} in
3177 "") build_noncanonical
=${build} ;;
3178 *) build_noncanonical
=${build_alias} ;;
3181 case ${host_alias} in
3182 "") host_noncanonical
=${build_noncanonical} ;;
3183 *) host_noncanonical
=${host_alias} ;;
3186 case ${target_alias} in
3187 "") target_noncanonical
=${host_noncanonical} ;;
3188 *) target_noncanonical
=${target_alias} ;;
3194 # Determine the target- and build-specific subdirectories
3196 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3197 # have matching libraries, they should use host libraries: Makefile.tpl
3198 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3199 # However, they still use the build modules, because the corresponding
3200 # host modules (e.g. bison) are only built for the host when bootstrap
3202 # - build_subdir is where we find build modules, and never changes.
3203 # - build_libsubdir is where we find build libraries, and can be overridden.
3205 # Prefix 'build-' so this never conflicts with target_subdir.
3206 build_subdir
="build-${build_noncanonical}"
3208 # Check whether --with-build-libsubdir was given.
3209 if test "${with_build_libsubdir+set}" = set; then :
3210 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3212 build_libsubdir
="$build_subdir"
3215 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3216 if ( test $srcdir = .
&& test -d gcc
) \
3217 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3218 host_subdir
="host-${host_noncanonical}"
3223 target_subdir
=${target_noncanonical}
3226 # Set program_transform_name
3227 test "$program_prefix" != NONE
&&
3228 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3229 # Use a double $ so make ignores it.
3230 test "$program_suffix" != NONE
&&
3231 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3232 # Double any \ or $.
3233 # By default was `s,x,x', remove it if useless.
3234 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3235 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3238 # Check for bogus environment variables.
3239 # Test if LIBRARY_PATH contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # LIBRARY_PATH contains the current directory if one of the following
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3247 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3248 case ${LIBRARY_PATH} in
3249 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3250 library_path_setting
="contains current directory"
3253 library_path_setting
="ok"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3257 $as_echo "$library_path_setting" >&6; }
3258 if test "$library_path_setting" != "ok"; then
3260 *** LIBRARY_PATH shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3265 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3266 # since this would lead to problems installing/building glibc.
3267 # GCC_EXEC_PREFIX contains the current directory if one of the following
3269 # - one of the terminals (":" and ";") is the first or last sign
3270 # - two terminals occur directly after each other
3271 # - the path contains an element with a dot in it
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3273 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3274 case ${GCC_EXEC_PREFIX} in
3275 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3276 gcc_exec_prefix_setting
="contains current directory"
3279 gcc_exec_prefix_setting
="ok"
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3283 $as_echo "$gcc_exec_prefix_setting" >&6; }
3284 if test "$gcc_exec_prefix_setting" != "ok"; then
3286 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3287 *** building gcc. Please change the environment variable
3288 *** and run configure again." "$LINENO" 5
3295 # Specify the local prefix
3298 # Check whether --with-local-prefix was given.
3299 if test "${with_local_prefix+set}" = set; then :
3300 withval
=$with_local_prefix; case "${withval}" in
3301 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3303 *) local_prefix
=$with_local_prefix ;;
3308 # Default local prefix if it is empty
3309 if test x
$local_prefix = x
; then
3310 local_prefix
=/usr
/local
3313 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3314 # passed in by the toplevel make and thus we'd get different behavior
3315 # depending on where we built the sources.
3316 gcc_gxx_include_dir
=
3317 # Specify the g++ header file directory
3319 # Check whether --with-gxx-include-dir was given.
3320 if test "${with_gxx_include_dir+set}" = set; then :
3321 withval
=$with_gxx_include_dir; case "${withval}" in
3322 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3324 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3329 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3330 if test x
${gcc_gxx_include_dir} = x
; then
3331 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3332 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3334 libstdcxx_incdir
='include/c++/$(version)'
3335 if test x
$host != x
$target; then
3336 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3338 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3342 gcc_gxx_include_dir_add_sysroot
=0
3343 if test "${with_sysroot+set}" = set; then
3344 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3345 if test "${gcc_gxx_without_sysroot}"; then
3346 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3347 gcc_gxx_include_dir_add_sysroot
=1
3352 # Check whether --with-cpp_install_dir was given.
3353 if test "${with_cpp_install_dir+set}" = set; then :
3354 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3355 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3356 elif test x
$withval != xno
; then
3357 cpp_install_dir
=$withval
3362 # We would like to our source tree to be readonly. However when releases or
3363 # pre-releases are generated, the flex/bison generated files as well as the
3364 # various formats of manuals need to be included along with the rest of the
3365 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3369 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3370 # Check whether --enable-generated-files-in-srcdir was given.
3371 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3372 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3374 generated_files_in_srcdir
=no
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3379 $as_echo "$generated_files_in_srcdir" >&6; }
3381 if test "$generated_files_in_srcdir" = "yes"; then
3388 # -------------------
3389 # Find default linker
3390 # -------------------
3394 # Check whether --with-gnu-ld was given.
3395 if test "${with_gnu_ld+set}" = set; then :
3396 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3402 # With pre-defined ld
3404 # Check whether --with-ld was given.
3405 if test "${with_ld+set}" = set; then :
3406 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3409 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3410 if test ! -x "$DEFAULT_LINKER"; then
3411 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3412 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3416 cat >>confdefs.h
<<_ACEOF
3417 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3423 $as_echo_n "checking whether a default linker was specified... " >&6; }
3424 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3425 if test x
"$gnu_ld_flag" = x
"no"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3427 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3437 # With demangler in GNU ld
3439 # Check whether --with-demangler-in-ld was given.
3440 if test "${with_demangler_in_ld+set}" = set; then :
3441 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3447 # ----------------------
3448 # Find default assembler
3449 # ----------------------
3453 # Check whether --with-gnu-as was given.
3454 if test "${with_gnu_as+set}" = set; then :
3455 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3462 # Check whether --with-as was given.
3463 if test "${with_as+set}" = set; then :
3464 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3467 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3468 if test ! -x "$DEFAULT_ASSEMBLER"; then
3469 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3470 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3474 cat >>confdefs.h
<<_ACEOF
3475 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3481 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3482 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3483 if test x
"$gas_flag" = x
"no"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3485 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3499 # If a non-executable a.out is present (e.g. created by GNU as above even if
3500 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3501 # file, even when creating an executable, so an execution test fails.
3502 # Remove possible default executable files to avoid this.
3504 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3505 # Autoconf includes it.
3506 rm -f a.out a.exe b.out
3508 # Find the native compiler
3510 ac_cpp
='$CPP $CPPFLAGS'
3511 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC
="$CC" # Let the user override the test.
3525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir
=.
3530 for ac_exec_ext
in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3553 if test -z "$ac_cv_prog_CC"; then
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc
; ac_word
=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir
=.
3570 for ac_exec_ext
in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC
="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_ct_CC" = x
; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned
=yes ;;
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC
="$CC" # Let the user override the test.
3618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3622 test -z "$as_dir" && as_dir
=.
3623 for ac_exec_ext
in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc
; ac_word
=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC
="$CC" # Let the user override the test.
3659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir
=.
3664 for ac_exec_ext
in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected
=yes
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy
$ac_cv_prog_CC
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3687 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog
in cl.exe
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_CC+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC
="$CC" # Let the user override the test.
3717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir
=.
3722 for ac_exec_ext
in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$CC" && break
3747 if test -z "$CC"; then
3749 for ac_prog
in cl.exe
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy
$ac_prog; ac_word
=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir
=.
3766 for ac_exec_ext
in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_ac_ct_CC
="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$ac_ct_CC" && break
3791 if test "x$ac_ct_CC" = x
; then
3794 case $cross_compiling:$ac_tool_warned in
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned
=yes ;;
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error
"no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details." "$LINENO" 5; }
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3816 for ac_option
in --version -v -V -qversion; do
3817 { { ac_try
="$ac_compiler $ac_option >&5"
3819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3826 if test -s conftest.err; then
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3831 rm -f conftest.er1 conftest.err
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3854 $as_echo_n "checking for C compiler default output file name... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3861 for ac_file in $ac_files
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3870 if { { ac_try="$ac_link_default"
3872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3873 *) ac_try_echo
=$ac_try;;
3875 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3886 for ac_file
in $ac_files ''
3888 test -f "$ac_file" ||
continue
3890 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3893 # We found the default executable, but exeext='' is most
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3899 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3911 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 $as_echo "$ac_file" >&6; }
3918 if test -z "$ac_file"; then :
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.
$ac_ext >&5
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 { as_fn_set_status
77
3925 as_fn_error
"C compiler cannot create executables
3926 See \`config.log' for more details." "$LINENO" 5; }; }
3928 ac_exeext
=$ac_cv_exeext
3930 # Check that the compiler produces executables we can run. If not, either
3931 # the compiler is broken, or we cross compile.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933 $as_echo_n "checking whether the C compiler works... " >&6; }
3934 # If not cross compiling, check that we can run a simple program.
3935 if test "$cross_compiling" != yes; then
3936 if { ac_try
='./$ac_file'
3937 { { case "(($ac_try" in
3938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_try") 2>&5
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; }; then
3949 if test "$cross_compiling" = maybe; then
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error "cannot run C compiled programs.
3955 If you meant to cross compile
, use \
`--host'.
3956 See \`config.log
' for more details." "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3964 ac_clean_files=$ac_clean_files_save
3965 # Check that the compiler produces executables we can run. If not, either
3966 # the compiler is broken, or we cross compile.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3968 $as_echo_n "checking whether we are cross compiling... " >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3970 $as_echo "$cross_compiling" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973 $as_echo_n "checking for suffix of executables... " >&6; }
3974 if { { ac_try="$ac_link"
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3986 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3987 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3989 for ac_file
in conftest.exe conftest conftest.
*; do
3990 test -f "$ac_file" ||
continue
3992 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3993 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4002 See \`config.log' for more details." "$LINENO" 5; }
4004 rm -f conftest
$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006 $as_echo "$ac_cv_exeext" >&6; }
4008 rm -f conftest.
$ac_ext
4009 EXEEXT
=$ac_cv_exeext
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4012 $as_echo_n "checking for suffix of object files... " >&6; }
4013 if test "${ac_cv_objext+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4027 rm -f conftest.o conftest.obj
4028 if { { ac_try
="$ac_compile"
4030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_compile") 2>&5
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 for ac_file in conftest.o conftest.obj conftest.*; do
4040 test -f "$ac_file" || continue;
4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4048 $as_echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "cannot compute suffix of object files
: cannot compile
4054 See \
`config.log' for more details." "$LINENO" 5; }
4056 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4059 $as_echo "$ac_cv_objext" >&6; }
4060 OBJEXT=$ac_cv_objext
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4064 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4081 if ac_fn_c_try_compile "$LINENO"; then :
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4092 if test $ac_compiler_gnu = yes; then
4097 ac_test_CFLAGS=${CFLAGS+set}
4098 ac_save_CFLAGS=$CFLAGS
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4101 if test "${ac_cv_prog_cc_g+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4104 ac_save_c_werror_flag=$ac_c_werror_flag
4105 ac_c_werror_flag=yes
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4134 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4150 if ac_fn_c_try_compile "$LINENO"; then :
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4161 $as_echo "$ac_cv_prog_cc_g" >&6; }
4162 if test "$ac_test_CFLAGS" = set; then
4163 CFLAGS=$ac_save_CFLAGS
4164 elif test $ac_cv_prog_cc_g = yes; then
4165 if test "$GCC" = yes; then
4171 if test "$GCC" = yes; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4179 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4182 ac_cv_prog_cc_c89=no
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4188 #include <sys/types.h>
4189 #include <sys/stat.h>
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4204 s = g (p, va_arg (v,int));
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4247 rm -f conftest.$ac_ext
4252 case "x$ac_cv_prog_cc_c89" in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 ac_cpp='$CXXCPP $CPPFLAGS'
4276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4279 if test -z "$CXX"; then
4280 if test -n "$CCC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_CXX+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -n "$CXX"; then
4294 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test -n "$CXX"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4316 $as_echo "$CXX" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4323 test -n "$CXX" && break
4326 if test -z "$CXX"; then
4328 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$ac_ct_CXX"; then
4338 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_ac_ct_CXX="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4358 if test -n "$ac_ct_CXX"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4360 $as_echo "$ac_ct_CXX" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$ac_ct_CXX" && break
4370 if test "x$ac_ct_CXX" = x; then
4373 case $cross_compiling:$ac_tool_warned in
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4385 # Provide some information about the compiler.
4386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4389 for ac_option in --version -v -V -qversion; do
4390 { { ac_try="$ac_compiler $ac_option >&5"
4392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4393 *) ac_try_echo
=$ac_try;;
4395 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4399 if test -s conftest.err
; then
4401 ... rest of stderr output deleted ...
4402 10q' conftest.err
>conftest.er1
4403 cat conftest.er1
>&5
4404 rm -f conftest.er1 conftest.err
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4411 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4429 if ac_fn_cxx_try_compile
"$LINENO"; then :
4434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4435 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4439 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4440 if test $ac_compiler_gnu = yes; then
4445 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4446 ac_save_CXXFLAGS
=$CXXFLAGS
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4448 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4449 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4452 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4453 ac_cxx_werror_flag
=yes
4456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4467 if ac_fn_cxx_try_compile
"$LINENO"; then :
4468 ac_cv_prog_cxx_g
=yes
4471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4482 if ac_fn_cxx_try_compile
"$LINENO"; then :
4485 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4498 if ac_fn_cxx_try_compile
"$LINENO"; then :
4499 ac_cv_prog_cxx_g
=yes
4501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4510 if test "$ac_test_CXXFLAGS" = set; then
4511 CXXFLAGS
=$ac_save_CXXFLAGS
4512 elif test $ac_cv_prog_cxx_g = yes; then
4513 if test "$GXX" = yes; then
4519 if test "$GXX" = yes; then
4526 ac_cpp
='$CPP $CPPFLAGS'
4527 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4536 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4542 if test -n "$GNATBIND"; then
4543 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir
=.
4550 for ac_exec_ext
in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 GNATBIND
=$ac_cv_prog_GNATBIND
4563 if test -n "$GNATBIND"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4565 $as_echo "$GNATBIND" >&6; }
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4573 if test -z "$ac_cv_prog_GNATBIND"; then
4574 ac_ct_GNATBIND
=$GNATBIND
4575 # Extract the first word of "gnatbind", so it can be a program name with args.
4576 set dummy gnatbind
; ac_word
=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4582 if test -n "$ac_ct_GNATBIND"; then
4583 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir
=.
4590 for ac_exec_ext
in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4603 if test -n "$ac_ct_GNATBIND"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4605 $as_echo "$ac_ct_GNATBIND" >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4611 if test "x$ac_ct_GNATBIND" = x
; then
4614 case $cross_compiling:$ac_tool_warned in
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned
=yes ;;
4620 GNATBIND
=$ac_ct_GNATBIND
4623 GNATBIND
="$ac_cv_prog_GNATBIND"
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4628 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$GNATMAKE"; then
4635 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir
=.
4642 for ac_exec_ext
in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 GNATMAKE
=$ac_cv_prog_GNATMAKE
4655 if test -n "$GNATMAKE"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4657 $as_echo "$GNATMAKE" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4665 if test -z "$ac_cv_prog_GNATMAKE"; then
4666 ac_ct_GNATMAKE
=$GNATMAKE
4667 # Extract the first word of "gnatmake", so it can be a program name with args.
4668 set dummy gnatmake
; ac_word
=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4674 if test -n "$ac_ct_GNATMAKE"; then
4675 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir
=.
4682 for ac_exec_ext
in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4695 if test -n "$ac_ct_GNATMAKE"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4697 $as_echo "$ac_ct_GNATMAKE" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4703 if test "x$ac_ct_GNATMAKE" = x
; then
4706 case $cross_compiling:$ac_tool_warned in
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned
=yes ;;
4712 GNATMAKE
=$ac_ct_GNATMAKE
4715 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4719 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4720 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4723 cat >conftest.adb
<<EOF
4724 procedure conftest is begin null; end conftest;
4726 acx_cv_cc_gcc_supports_ada
=no
4727 # There is a bug in old released versions of GCC which causes the
4728 # driver to exit successfully when the appropriate language module
4729 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4730 # Therefore we must check for the error message as well as an
4731 # unsuccessful exit.
4732 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4733 # given a .adb file, but produce no object file. So we must check
4734 # if an object file was really produced to guard against this.
4735 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4736 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4737 acx_cv_cc_gcc_supports_ada
=yes
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4742 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4744 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4751 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4752 # optimizations to be activated explicitly by the toplevel.
4754 */prev-gcc
/xgcc
*) ;;
4755 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4756 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4761 # Determine PICFLAG for target gnatlib.
4767 # PIC is the default on some targets or must not be used.
4769 # PIC is the default on this platform
4770 # Common symbols not allowed in MH_DYLIB files
4771 PICFLAG_FOR_TARGET
=-fno-common
4774 # PIC is the default.
4777 # PIC is the default for 64-bit PA HP-UX.
4779 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4781 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4783 i
[34567]86-*-interix[3-9]*)
4784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4785 # Instead, we relocate shared libraries at runtime.
4787 i
[34567]86-*-nto-qnx*)
4788 # QNX uses GNU C++, but need to define -shared option too, otherwise
4790 PICFLAG_FOR_TARGET
='-fPIC -shared'
4792 i
[34567]86-pc-msdosdjgpp*)
4793 # DJGPP does not support shared libraries at all.
4796 # On IA64 HP-UX, PIC is the default but the pic flag
4797 # sets the default TLS model and affects inlining.
4798 PICFLAG_FOR_TARGET
=-fPIC
4801 # PIC is the default.
4803 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4804 # All AIX code is PIC.
4807 # Some targets support both -fPIC and -fpic, but prefer the latter.
4809 i
[34567]86-*-* | x86_64-
*-*)
4810 PICFLAG_FOR_TARGET
=-fpic
4812 # FIXME: Override -fPIC default in libgcc only?
4813 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4814 PICFLAG_FOR_TARGET
=-fpic
4816 # FIXME: Simplify to sh*-*-netbsd*?
4817 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4818 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4819 PICFLAG_FOR_TARGET
=-fpic
4821 # Default to -fPIC unless specified otherwise.
4823 PICFLAG_FOR_TARGET
=-fPIC
4827 # If the user explicitly uses -fpic/-fPIC, keep that.
4828 case "${CFLAGS_FOR_TARGET}" in
4830 PICFLAG_FOR_TARGET
=-fpic
4833 PICFLAG_FOR_TARGET
=-fPIC
4839 # -------------------------
4840 # Check C compiler features
4841 # -------------------------
4845 ac_cpp
='$CPP $CPPFLAGS'
4846 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4855 if test -z "$CPP"; then
4856 if test "${ac_cv_prog_CPP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4859 # Double quotes because CPP needs to be expanded
4860 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4863 for ac_c_preproc_warn_flag
in '' yes
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4874 # include <limits.h>
4876 # include <assert.h>
4880 if ac_fn_c_try_cpp
"$LINENO"; then :
4883 # Broken: fails on valid input.
4886 rm -f conftest.err conftest.
$ac_ext
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <ac_nonexistent.h>
4894 if ac_fn_c_try_cpp
"$LINENO"; then :
4895 # Broken: success on invalid input.
4898 # Passes both tests.
4902 rm -f conftest.err conftest.
$ac_ext
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.
$ac_ext
4907 if $ac_preproc_ok; then :
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4920 $as_echo "$CPP" >&6; }
4922 for ac_c_preproc_warn_flag
in '' yes
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4933 # include <limits.h>
4935 # include <assert.h>
4939 if ac_fn_c_try_cpp
"$LINENO"; then :
4942 # Broken: fails on valid input.
4945 rm -f conftest.err conftest.
$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4953 if ac_fn_c_try_cpp
"$LINENO"; then :
4954 # Broken: success on invalid input.
4957 # Passes both tests.
4961 rm -f conftest.err conftest.
$ac_ext
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.
$ac_ext
4966 if $ac_preproc_ok; then :
4969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details." "$LINENO" 5; }
4976 ac_cpp
='$CPP $CPPFLAGS'
4977 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4984 if test "${ac_cv_path_GREP+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4987 if test -z "$GREP"; then
4988 ac_path_GREP_found
=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4991 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4994 test -z "$as_dir" && as_dir
=.
4995 for ac_prog
in grep ggrep
; do
4996 for ac_exec_ext
in '' $ac_executable_extensions; do
4997 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4999 # Check for GNU ac_path_GREP and select it if it is found.
5000 # Check for GNU $ac_path_GREP
5001 case `"$ac_path_GREP" --version 2>&1` in
5003 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5006 $as_echo_n 0123456789 >"conftest.in"
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'GREP' >> "conftest.nl"
5013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5014 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5015 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_GREP
="$ac_path_GREP"
5019 ac_path_GREP_max
=$ac_count
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5024 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5027 $ac_path_GREP_found && break 3
5032 if test -z "$ac_cv_path_GREP"; then
5033 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5036 ac_cv_path_GREP
=$GREP
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5041 $as_echo "$ac_cv_path_GREP" >&6; }
5042 GREP
="$ac_cv_path_GREP"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5046 $as_echo_n "checking for egrep... " >&6; }
5047 if test "${ac_cv_path_EGREP+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5050 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5051 then ac_cv_path_EGREP
="$GREP -E"
5053 if test -z "$EGREP"; then
5054 ac_path_EGREP_found
=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5057 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_prog
in egrep; do
5062 for ac_exec_ext
in '' $ac_executable_extensions; do
5063 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5065 # Check for GNU ac_path_EGREP and select it if it is found.
5066 # Check for GNU $ac_path_EGREP
5067 case `"$ac_path_EGREP" --version 2>&1` in
5069 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5072 $as_echo_n 0123456789 >"conftest.in"
5075 cat "conftest.in" "conftest.in" >"conftest.tmp"
5076 mv "conftest.tmp" "conftest.in"
5077 cp "conftest.in" "conftest.nl"
5078 $as_echo 'EGREP' >> "conftest.nl"
5079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5080 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5081 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5083 # Best one so far, save it but keep looking for a better one
5084 ac_cv_path_EGREP
="$ac_path_EGREP"
5085 ac_path_EGREP_max
=$ac_count
5087 # 10*(2^10) chars as input seems more than enough
5088 test $ac_count -gt 10 && break
5090 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5093 $ac_path_EGREP_found && break 3
5098 if test -z "$ac_cv_path_EGREP"; then
5099 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5102 ac_cv_path_EGREP
=$EGREP
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5108 $as_echo "$ac_cv_path_EGREP" >&6; }
5109 EGREP
="$ac_cv_path_EGREP"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5113 $as_echo_n "checking for ANSI C header files... " >&6; }
5114 if test "${ac_cv_header_stdc+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5132 if ac_fn_c_try_compile
"$LINENO"; then :
5133 ac_cv_header_stdc
=yes
5135 ac_cv_header_stdc
=no
5137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5139 if test $ac_cv_header_stdc = yes; then
5140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147 $EGREP "memchr" >/dev
/null
2>&1; then :
5150 ac_cv_header_stdc
=no
5156 if test $ac_cv_header_stdc = yes; then
5157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5164 $EGREP "free" >/dev
/null
2>&1; then :
5167 ac_cv_header_stdc
=no
5173 if test $ac_cv_header_stdc = yes; then
5174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5175 if test "$cross_compiling" = yes; then :
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5182 #if ((' ' & 0x0FF) == 0x020)
5183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 # define ISLOWER(c) \
5187 (('a' <= (c) && (c) <= 'i') \
5188 || ('j' <= (c) && (c) <= 'r') \
5189 || ('s' <= (c) && (c) <= 'z'))
5190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5198 for (i = 0; i < 256; i++)
5199 if (XOR (islower (i), ISLOWER (i))
5200 || toupper (i) != TOUPPER (i))
5205 if ac_fn_c_try_run
"$LINENO"; then :
5208 ac_cv_header_stdc
=no
5210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5211 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5217 $as_echo "$ac_cv_header_stdc" >&6; }
5218 if test $ac_cv_header_stdc = yes; then
5220 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5225 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5226 inttypes.h stdint.h unistd.h
5228 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 eval as_val
=\$
$as_ac_Header
5232 if test "x$as_val" = x
""yes; then :
5233 cat >>confdefs.h
<<_ACEOF
5234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5243 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5251 if test "$MINIX" = yes; then
5253 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5256 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5259 $as_echo "#define _MINIX 1" >>confdefs.h
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5265 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5266 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5272 # define __EXTENSIONS__ 1
5273 $ac_includes_default
5282 if ac_fn_c_try_compile
"$LINENO"; then :
5283 ac_cv_safe_to_define___extensions__
=yes
5285 ac_cv_safe_to_define___extensions__
=no
5287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5290 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5291 test $ac_cv_safe_to_define___extensions__ = yes &&
5292 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5304 ac_cpp
='$CPP $CPPFLAGS'
5305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5310 # On Suns, sometimes $CPP names a directory.
5311 if test -n "$CPP" && test -d "$CPP"; then
5314 if test -z "$CPP"; then
5315 if test "${ac_cv_prog_CPP+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5318 # Double quotes because CPP needs to be expanded
5319 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5322 for ac_c_preproc_warn_flag
in '' yes
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5333 # include <limits.h>
5335 # include <assert.h>
5339 if ac_fn_c_try_cpp
"$LINENO"; then :
5342 # Broken: fails on valid input.
5345 rm -f conftest.err conftest.
$ac_ext
5347 # OK, works on sane cases. Now check whether nonexistent headers
5348 # can be detected and how.
5349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <ac_nonexistent.h>
5353 if ac_fn_c_try_cpp
"$LINENO"; then :
5354 # Broken: success on invalid input.
5357 # Passes both tests.
5361 rm -f conftest.err conftest.
$ac_ext
5364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365 rm -f conftest.err conftest.
$ac_ext
5366 if $ac_preproc_ok; then :
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5379 $as_echo "$CPP" >&6; }
5381 for ac_c_preproc_warn_flag
in '' yes
5383 # Use a header file that comes with gcc, so configuring glibc
5384 # with a fresh cross-compiler works.
5385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 # <limits.h> exists even on freestanding compilers.
5387 # On the NeXT, cc -E runs the code through the compiler's parser,
5388 # not just through cpp. "Syntax error" is here to catch this case.
5389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5392 # include <limits.h>
5394 # include <assert.h>
5398 if ac_fn_c_try_cpp
"$LINENO"; then :
5401 # Broken: fails on valid input.
5404 rm -f conftest.err conftest.
$ac_ext
5406 # OK, works on sane cases. Now check whether nonexistent headers
5407 # can be detected and how.
5408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <ac_nonexistent.h>
5412 if ac_fn_c_try_cpp
"$LINENO"; then :
5413 # Broken: success on invalid input.
5416 # Passes both tests.
5420 rm -f conftest.err conftest.
$ac_ext
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.
$ac_ext
5425 if $ac_preproc_ok; then :
5428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5430 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." "$LINENO" 5; }
5435 ac_cpp
='$CPP $CPPFLAGS'
5436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5441 $as_echo_n "checking for inline... " >&6; }
5442 if test "${ac_cv_c_inline+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5446 for ac_kw
in inline __inline__ __inline
; do
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5451 static $ac_kw foo_t static_foo () {return 0; }
5452 $ac_kw foo_t foo () {return 0; }
5456 if ac_fn_c_try_compile
"$LINENO"; then :
5457 ac_cv_c_inline
=$ac_kw
5459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5460 test "$ac_cv_c_inline" != no
&& break
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5465 $as_echo "$ac_cv_c_inline" >&6; }
5467 case $ac_cv_c_inline in
5470 case $ac_cv_c_inline in
5472 *) ac_val
=$ac_cv_c_inline;;
5474 cat >>confdefs.h
<<_ACEOF
5476 #define inline $ac_val
5483 # Check whether --enable-largefile was given.
5484 if test "${enable_largefile+set}" = set; then :
5485 enableval
=$enable_largefile;
5488 if test "$enable_largefile" != no
; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5492 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5495 ac_cv_sys_largefile_CC
=no
5496 if test "$GCC" != yes; then
5499 # IRIX 6.2 and later do not support large files by default,
5500 # so use the C compiler's -n32 option if that helps.
5501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <sys/types.h>
5504 /* Check that off_t can represent 2**63 - 1 correctly.
5505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5506 since some C++ compilers masquerading as C compilers
5507 incorrectly reject 9223372036854775807. */
5508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5510 && LARGE_OFF_T % 2147483647 == 1)
5520 if ac_fn_c_try_compile
"$LINENO"; then :
5523 rm -f core conftest.err conftest.
$ac_objext
5525 if ac_fn_c_try_compile
"$LINENO"; then :
5526 ac_cv_sys_largefile_CC
=' -n32'; break
5528 rm -f core conftest.err conftest.
$ac_objext
5532 rm -f conftest.
$ac_ext
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5537 if test "$ac_cv_sys_largefile_CC" != no
; then
5538 CC
=$CC$ac_cv_sys_largefile_CC
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5543 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5566 if ac_fn_c_try_compile
"$LINENO"; then :
5567 ac_cv_sys_file_offset_bits
=no
; break
5569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #define _FILE_OFFSET_BITS 64
5573 #include <sys/types.h>
5574 /* Check that off_t can represent 2**63 - 1 correctly.
5575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5576 since some C++ compilers masquerading as C compilers
5577 incorrectly reject 9223372036854775807. */
5578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5580 && LARGE_OFF_T % 2147483647 == 1)
5590 if ac_fn_c_try_compile
"$LINENO"; then :
5591 ac_cv_sys_file_offset_bits
=64; break
5593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5594 ac_cv_sys_file_offset_bits
=unknown
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5600 case $ac_cv_sys_file_offset_bits in #(
5603 cat >>confdefs.h
<<_ACEOF
5604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5609 if test $ac_cv_sys_file_offset_bits = unknown
; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5612 if test "${ac_cv_sys_large_files+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5635 if ac_fn_c_try_compile
"$LINENO"; then :
5636 ac_cv_sys_large_files
=no
; break
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #define _LARGE_FILES 1
5642 #include <sys/types.h>
5643 /* Check that off_t can represent 2**63 - 1 correctly.
5644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5645 since some C++ compilers masquerading as C compilers
5646 incorrectly reject 9223372036854775807. */
5647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5649 && LARGE_OFF_T % 2147483647 == 1)
5659 if ac_fn_c_try_compile
"$LINENO"; then :
5660 ac_cv_sys_large_files
=1; break
5662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5663 ac_cv_sys_large_files
=unknown
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5668 $as_echo "$ac_cv_sys_large_files" >&6; }
5669 case $ac_cv_sys_large_files in #(
5672 cat >>confdefs.h
<<_ACEOF
5673 #define _LARGE_FILES $ac_cv_sys_large_files
5682 # sizeof(char) is 1 by definition.
5683 # The cast to long int works around a bug in the HP C Compiler
5684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5686 # This bug is HP SR number 8606223364.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5688 $as_echo_n "checking size of void *... " >&6; }
5689 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5692 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5695 if test "$ac_cv_type_void_p" = yes; then
5696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5698 { as_fn_set_status
77
5699 as_fn_error
"cannot compute sizeof (void *)
5700 See \`config.log' for more details." "$LINENO" 5; }; }
5702 ac_cv_sizeof_void_p
=0
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5708 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5712 cat >>confdefs.h
<<_ACEOF
5713 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5717 # The cast to long int works around a bug in the HP C Compiler
5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5722 $as_echo_n "checking size of short... " >&6; }
5723 if test "${ac_cv_sizeof_short+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5726 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5729 if test "$ac_cv_type_short" = yes; then
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732 { as_fn_set_status
77
5733 as_fn_error
"cannot compute sizeof (short)
5734 See \`config.log' for more details." "$LINENO" 5; }; }
5736 ac_cv_sizeof_short
=0
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5742 $as_echo "$ac_cv_sizeof_short" >&6; }
5746 cat >>confdefs.h
<<_ACEOF
5747 #define SIZEOF_SHORT $ac_cv_sizeof_short
5751 # The cast to long int works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756 $as_echo_n "checking size of int... " >&6; }
5757 if test "${ac_cv_sizeof_int+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5760 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5763 if test "$ac_cv_type_int" = yes; then
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 { as_fn_set_status
77
5767 as_fn_error
"cannot compute sizeof (int)
5768 See \`config.log' for more details." "$LINENO" 5; }; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776 $as_echo "$ac_cv_sizeof_int" >&6; }
5780 cat >>confdefs.h
<<_ACEOF
5781 #define SIZEOF_INT $ac_cv_sizeof_int
5785 # The cast to long int works around a bug in the HP C Compiler
5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788 # This bug is HP SR number 8606223364.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790 $as_echo_n "checking size of long... " >&6; }
5791 if test "${ac_cv_sizeof_long+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5794 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5797 if test "$ac_cv_type_long" = yes; then
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 { as_fn_set_status
77
5801 as_fn_error
"cannot compute sizeof (long)
5802 See \`config.log' for more details." "$LINENO" 5; }; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810 $as_echo "$ac_cv_sizeof_long" >&6; }
5814 cat >>confdefs.h
<<_ACEOF
5815 #define SIZEOF_LONG $ac_cv_sizeof_long
5819 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5820 if test "x$ac_cv_type_long_long" = x
""yes; then :
5822 cat >>confdefs.h
<<_ACEOF
5823 #define HAVE_LONG_LONG 1
5826 # The cast to long int works around a bug in the HP C Compiler
5827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5829 # This bug is HP SR number 8606223364.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5831 $as_echo_n "checking size of long long... " >&6; }
5832 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5835 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5838 if test "$ac_cv_type_long_long" = yes; then
5839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841 { as_fn_set_status
77
5842 as_fn_error
"cannot compute sizeof (long long)
5843 See \`config.log' for more details." "$LINENO" 5; }; }
5845 ac_cv_sizeof_long_long
=0
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5851 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5855 cat >>confdefs.h
<<_ACEOF
5856 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5862 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5863 if test "x$ac_cv_type___int64" = x
""yes; then :
5865 cat >>confdefs.h
<<_ACEOF
5866 #define HAVE___INT64 1
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5874 $as_echo_n "checking size of __int64... " >&6; }
5875 if test "${ac_cv_sizeof___int64+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5878 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5881 if test "$ac_cv_type___int64" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status
77
5885 as_fn_error
"cannot compute sizeof (__int64)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5888 ac_cv_sizeof___int64
=0
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5894 $as_echo "$ac_cv_sizeof___int64" >&6; }
5898 cat >>confdefs.h
<<_ACEOF
5899 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5905 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5906 case $ac_cv_c_int8_t in #(
5910 cat >>confdefs.h
<<_ACEOF
5911 #define int8_t $ac_cv_c_int8_t
5916 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5917 case $ac_cv_c_int16_t in #(
5921 cat >>confdefs.h
<<_ACEOF
5922 #define int16_t $ac_cv_c_int16_t
5927 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5928 case $ac_cv_c_int32_t in #(
5932 cat >>confdefs.h
<<_ACEOF
5933 #define int32_t $ac_cv_c_int32_t
5938 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5939 case $ac_cv_c_int64_t in #(
5943 cat >>confdefs.h
<<_ACEOF
5944 #define int64_t $ac_cv_c_int64_t
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5951 $as_echo_n "checking for long long int... " >&6; }
5952 if test "${ac_cv_type_long_long_int+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5958 /* For now, do not test the preprocessor; as of 2007 there are too many
5959 implementations with broken preprocessors. Perhaps this can
5960 be revisited in 2012. In the meantime, code should not expect
5961 #if to work with literals wider than 32 bits. */
5962 /* Test literals. */
5963 long long int ll = 9223372036854775807ll;
5964 long long int nll = -9223372036854775807LL;
5965 unsigned long long int ull = 18446744073709551615ULL;
5966 /* Test constant expressions. */
5967 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5969 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5975 /* Test availability of runtime routines for shift and division. */
5976 long long int llmax = 9223372036854775807ll;
5977 unsigned long long int ullmax = 18446744073709551615ull;
5978 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5979 | (llmax / ll) | (llmax % ll)
5980 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5981 | (ullmax / ull) | (ullmax % ull));
5987 if ac_fn_c_try_link
"$LINENO"; then :
5988 if test "$cross_compiling" = yes; then :
5989 ac_cv_type_long_long_int
=yes
5991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5996 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5997 # define LLONG_MAX (HALF - 1 + HALF)
6002 long long int n = 1;
6006 long long int m = n << i;
6009 if (LLONG_MAX / 2 < m)
6017 if ac_fn_c_try_run
"$LINENO"; then :
6018 ac_cv_type_long_long_int
=yes
6020 ac_cv_type_long_long_int
=no
6022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6023 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6027 ac_cv_type_long_long_int
=no
6029 rm -f core conftest.err conftest.
$ac_objext \
6030 conftest
$ac_exeext conftest.
$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6033 $as_echo "$ac_cv_type_long_long_int" >&6; }
6034 if test $ac_cv_type_long_long_int = yes; then
6036 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6042 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6043 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6045 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6048 test $ac_cv_type_long_long_int = yes \
6049 && ac_type
='long long int' \
6050 || ac_type
='long int'
6052 cat >>confdefs.h
<<_ACEOF
6053 #define intmax_t $ac_type
6060 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6063 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6066 for ac_type
in 'int' 'long int' 'long long int'; do
6067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 $ac_includes_default
6073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6080 if ac_fn_c_try_compile
"$LINENO"; then :
6082 cat >>confdefs.h
<<_ACEOF
6083 #define intptr_t $ac_type
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6089 test -z "$ac_type" && break
6094 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6095 case $ac_cv_c_uint8_t in #(
6099 $as_echo "#define _UINT8_T 1" >>confdefs.h
6102 cat >>confdefs.h
<<_ACEOF
6103 #define uint8_t $ac_cv_c_uint8_t
6108 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6109 case $ac_cv_c_uint16_t in #(
6114 cat >>confdefs.h
<<_ACEOF
6115 #define uint16_t $ac_cv_c_uint16_t
6120 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6121 case $ac_cv_c_uint32_t in #(
6125 $as_echo "#define _UINT32_T 1" >>confdefs.h
6128 cat >>confdefs.h
<<_ACEOF
6129 #define uint32_t $ac_cv_c_uint32_t
6134 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6135 case $ac_cv_c_uint64_t in #(
6139 $as_echo "#define _UINT64_T 1" >>confdefs.h
6142 cat >>confdefs.h
<<_ACEOF
6143 #define uint64_t $ac_cv_c_uint64_t
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6150 $as_echo_n "checking for unsigned long long int... " >&6; }
6151 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6186 if ac_fn_c_try_link
"$LINENO"; then :
6187 ac_cv_type_unsigned_long_long_int
=yes
6189 ac_cv_type_unsigned_long_long_int
=no
6191 rm -f core conftest.err conftest.
$ac_objext \
6192 conftest
$ac_exeext conftest.
$ac_ext
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6195 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6196 if test $ac_cv_type_unsigned_long_long_int = yes; then
6198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6204 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6207 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6210 test $ac_cv_type_unsigned_long_long_int = yes \
6211 && ac_type
='unsigned long long int' \
6212 || ac_type
='unsigned long int'
6214 cat >>confdefs.h
<<_ACEOF
6215 #define uintmax_t $ac_type
6222 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6225 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6228 for ac_type
in 'unsigned int' 'unsigned long int' \
6229 'unsigned long long int'; do
6230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6236 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6243 if ac_fn_c_try_compile
"$LINENO"; then :
6245 cat >>confdefs.h
<<_ACEOF
6246 #define uintptr_t $ac_type
6251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6252 test -z "$ac_type" && break
6270 # ---------------------
6271 # Warnings and checking
6272 # ---------------------
6274 # Check $CC warning features (if it's GCC).
6275 # We want to use -pedantic, but we don't want warnings about
6278 # * overlong strings
6279 # * C++11 narrowing conversions in { }
6280 # So, we only use -pedantic if we can disable those warnings.
6282 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6283 # Check whether --enable-build-format-warnings was given.
6284 if test "${enable_build_format_warnings+set}" = set; then :
6285 enableval
=$enable_build_format_warnings;
6287 enable_build_format_warnings
=yes
6290 if test $enable_build_format_warnings = no
; then :
6296 save_CFLAGS
="$CFLAGS"
6297 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6298 # Do the check with the no- prefix removed since gcc silently
6299 # accepts any -Wno-* option on purpose
6300 case $real_option in
6301 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6302 *) option
=$real_option ;;
6304 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6307 $as_echo_n "checking whether $CC supports $option... " >&6; }
6308 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6309 $as_echo_n "(cached) " >&6
6312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6323 if ac_fn_c_try_compile
"$LINENO"; then :
6324 eval "$as_acx_Woption=yes"
6326 eval "$as_acx_Woption=no"
6328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6331 eval ac_res
=\$
$as_acx_Woption
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6334 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6335 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6338 CFLAGS
="$save_CFLAGS"
6341 save_CFLAGS
="$CFLAGS"
6342 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6343 # Do the check with the no- prefix removed since gcc silently
6344 # accepts any -Wno-* option on purpose
6345 case $real_option in
6346 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6347 *) option
=$real_option ;;
6349 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6352 $as_echo_n "checking whether $CC supports $option... " >&6; }
6353 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6354 $as_echo_n "(cached) " >&6
6357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6368 if ac_fn_c_try_compile
"$LINENO"; then :
6369 eval "$as_acx_Woption=yes"
6371 eval "$as_acx_Woption=no"
6373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6376 eval ac_res
=\$
$as_acx_Woption
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6378 $as_echo "$ac_res" >&6; }
6379 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6380 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6383 CFLAGS
="$save_CFLAGS"
6386 save_CFLAGS
="$CFLAGS"
6387 for real_option
in -Wmissing-format-attribute; do
6388 # Do the check with the no- prefix removed since gcc silently
6389 # accepts any -Wno-* option on purpose
6390 case $real_option in
6391 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6392 *) option
=$real_option ;;
6394 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6397 $as_echo_n "checking whether $CC supports $option... " >&6; }
6398 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6399 $as_echo_n "(cached) " >&6
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6413 if ac_fn_c_try_compile
"$LINENO"; then :
6414 eval "$as_acx_Woption=yes"
6416 eval "$as_acx_Woption=no"
6418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6421 eval ac_res
=\$
$as_acx_Woption
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6425 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6428 CFLAGS
="$save_CFLAGS"
6430 save_CFLAGS
="$CFLAGS"
6431 for real_option
in -Woverloaded-virtual; do
6432 # Do the check with the no- prefix removed since gcc silently
6433 # accepts any -Wno-* option on purpose
6434 case $real_option in
6435 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6436 *) option
=$real_option ;;
6438 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6441 $as_echo_n "checking whether $CC supports $option... " >&6; }
6442 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6443 $as_echo_n "(cached) " >&6
6446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6457 if ac_fn_c_try_compile
"$LINENO"; then :
6458 eval "$as_acx_Woption=yes"
6460 eval "$as_acx_Woption=no"
6462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6465 eval ac_res
=\$
$as_acx_Woption
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6467 $as_echo "$ac_res" >&6; }
6468 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6469 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6472 CFLAGS
="$save_CFLAGS"
6475 save_CFLAGS
="$CFLAGS"
6476 for real_option
in -Wold-style-definition -Wc++-compat; do
6477 # Do the check with the no- prefix removed since gcc silently
6478 # accepts any -Wno-* option on purpose
6479 case $real_option in
6480 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6481 *) option
=$real_option ;;
6483 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6486 $as_echo_n "checking whether $CC supports $option... " >&6; }
6487 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6488 $as_echo_n "(cached) " >&6
6491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6502 if ac_fn_c_try_compile
"$LINENO"; then :
6503 eval "$as_acx_Woption=yes"
6505 eval "$as_acx_Woption=no"
6507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6510 eval ac_res
=\$
$as_acx_Woption
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6514 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6517 CFLAGS
="$save_CFLAGS"
6519 # Do the check with the no- prefix removed from the warning options
6520 # since gcc silently accepts any -Wno-* option on purpose
6521 if test "$GCC" = yes; then :
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6523 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6524 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6527 save_CFLAGS
="$CFLAGS"
6528 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_c_try_compile
"$LINENO"; then :
6541 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6543 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 CFLAGS
="$save_CFLAGS"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6549 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6550 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6551 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6556 # Check whether --enable-werror-always was given.
6557 if test "${enable_werror_always+set}" = set; then :
6558 enableval
=$enable_werror_always;
6560 enable_werror_always
=no
6563 if test $enable_werror_always = yes; then :
6564 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6569 # The above macros do nothing if the compiler is not GCC. However, the
6570 # Makefile has more goo to add other flags, so these variables are used
6571 # to enable warnings only for GCC.
6574 if test "x$GCC" = "xyes"; then
6575 warn_cflags
='$(GCC_WARN_CFLAGS)'
6576 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6581 # Disable exceptions and RTTI if building with g++
6583 save_CFLAGS
="$CFLAGS"
6584 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6585 # Do the check with the no- prefix removed since gcc silently
6586 # accepts any -Wno-* option on purpose
6587 case $real_option in
6588 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6589 *) option
=$real_option ;;
6591 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6594 $as_echo_n "checking whether $CC supports $option... " >&6; }
6595 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6596 $as_echo_n "(cached) " >&6
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6610 if ac_fn_c_try_compile
"$LINENO"; then :
6611 eval "$as_acx_Woption=yes"
6613 eval "$as_acx_Woption=no"
6615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 eval ac_res
=\$
$as_acx_Woption
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6620 $as_echo "$ac_res" >&6; }
6621 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6622 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6625 CFLAGS
="$save_CFLAGS"
6628 # Enable expensive internal checks
6630 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6634 # Check whether --enable-checking was given.
6635 if test "${enable_checking+set}" = set; then :
6636 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6639 # Determine the default checks.
6640 if test x
$is_release = x
; then
6641 ac_checking_flags
=yes
6643 ac_checking_flags
=release
6647 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6648 for check
in release
$ac_checking_flags
6651 # these set all the flags to specific states
6652 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6653 ac_fold_checking
= ; ac_gc_checking
=1 ;
6654 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6655 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6656 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6657 ac_types_checking
=1 ;;
6658 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6659 ac_fold_checking
= ; ac_gc_checking
= ;
6660 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6661 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6662 ac_tree_checking
= ; ac_valgrind_checking
= ;
6663 ac_types_checking
= ;;
6664 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6665 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6666 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6667 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6668 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6669 ac_types_checking
=1 ;;
6670 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6671 ac_fold_checking
= ; ac_gc_checking
= ;
6672 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6673 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6674 ac_tree_checking
= ; ac_valgrind_checking
= ;
6675 ac_types_checking
= ;;
6676 # these enable particular checks
6677 assert
) ac_assert_checking
=1 ;;
6678 df
) ac_df_checking
=1 ;;
6679 fold) ac_fold_checking
=1 ;;
6680 gc
) ac_gc_checking
=1 ;;
6681 gcac
) ac_gc_always_collect
=1 ;;
6682 gimple
) ac_gimple_checking
=1 ;;
6683 misc
) ac_checking
=1 ;;
6684 rtl
) ac_rtl_checking
=1 ;;
6685 rtlflag
) ac_rtlflag_checking
=1 ;;
6686 runtime
) ac_runtime_checking
=1 ;;
6687 tree
) ac_tree_checking
=1 ;;
6688 types
) ac_types_checking
=1 ;;
6689 valgrind
) ac_valgrind_checking
=1 ;;
6690 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6696 if test x
$ac_checking != x
; then
6698 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6700 nocommon_flag
=-fno-common
6703 if test x
$ac_df_checking != x
; then
6705 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6708 if test x
$ac_assert_checking != x
; then
6710 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6713 if test x
$ac_gimple_checking != x
; then
6715 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6719 if test x
$ac_runtime_checking != x
; then
6721 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6724 if test x
$ac_tree_checking != x
; then
6726 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6728 TREEBROWSER
=tree-browser.o
6731 if test x
$ac_types_checking != x
; then
6733 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6738 if test x
$ac_rtl_checking != x
; then
6740 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6743 if test x
$ac_rtlflag_checking != x
; then
6745 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6748 if test x
$ac_gc_checking != x
; then
6750 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6753 if test x
$ac_gc_always_collect != x
; then
6755 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6758 if test x
$ac_fold_checking != x
; then
6760 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6763 valgrind_path_defines
=
6766 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6767 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6775 if test x
$ac_valgrind_checking != x
; then
6776 # It is certainly possible that there's valgrind but no valgrind.h.
6777 # GCC relies on making annotations so we must have both.
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6779 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <valgrind/memcheck.h>
6783 #ifndef VALGRIND_DISCARD
6784 #error VALGRIND_DISCARD not defined
6787 if ac_fn_c_try_cpp
"$LINENO"; then :
6788 gcc_cv_header_valgrind_memcheck_h
=yes
6790 gcc_cv_header_valgrind_memcheck_h
=no
6792 rm -f conftest.err conftest.
$ac_ext
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6794 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6796 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #include <memcheck.h>
6800 #ifndef VALGRIND_DISCARD
6801 #error VALGRIND_DISCARD not defined
6804 if ac_fn_c_try_cpp
"$LINENO"; then :
6805 gcc_cv_header_memcheck_h
=yes
6807 gcc_cv_header_memcheck_h
=no
6809 rm -f conftest.err conftest.
$ac_ext
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6811 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6813 # Prepare PATH_SEPARATOR.
6814 # The user is always right.
6815 if test "${PATH_SEPARATOR+set}" != set; then
6816 echo "#! /bin/sh" >conf$$.sh
6817 echo "exit 0" >>conf$$.sh
6819 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6827 # Find out how to test for executable files. Don't use a zero-byte file,
6828 # as systems may use methods other than mode bits to determine executability.
6829 cat >conf$$.
file <<_ASEOF
6833 chmod +x conf$$.
file
6834 if test -x conf$$.
file >/dev
/null
2>&1; then
6835 ac_executable_p
="test -x"
6837 ac_executable_p
="test -f"
6841 # Extract the first word of "valgrind", so it can be a program name with args.
6842 set dummy valgrind
; ac_word
=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6848 case "$valgrind_path" in
6850 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6853 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6854 for ac_dir
in $PATH; do
6856 test -z "$ac_dir" && ac_dir
=.
6857 for ac_exec_ext
in '' $ac_executable_extensions; do
6858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6859 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6860 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6870 valgrind_path
="$ac_cv_path_valgrind_path"
6871 if test -n "$valgrind_path"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6873 $as_echo "$valgrind_path" >&6; }
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6879 if test "x$valgrind_path" = "x" \
6880 ||
(test $have_valgrind_h = no \
6881 && test $gcc_cv_header_memcheck_h = no \
6882 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6883 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6885 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6886 valgrind_command
="$valgrind_path -q"
6888 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6890 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6892 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6895 if test $gcc_cv_header_memcheck_h = yes; then
6897 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6904 # Enable code coverage collection
6905 # Check whether --enable-coverage was given.
6906 if test "${enable_coverage+set}" = set; then :
6907 enableval
=$enable_coverage; case "${enableval}" in
6909 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6912 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6915 # a.k.a. --disable-coverage
6919 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6928 # Check whether --enable-gather-detailed-mem-stats was given.
6929 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6930 enableval
=$enable_gather_detailed_mem_stats;
6932 enable_gather_detailed_mem_stats
=no
6935 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6937 cat >>confdefs.h
<<_ACEOF
6938 #define GATHER_STATISTICS $gather_stats
6942 # -------------------------------
6943 # Miscenalleous configure options
6944 # -------------------------------
6948 # Check whether --with-stabs was given.
6949 if test "${with_stabs+set}" = set; then :
6950 withval
=$with_stabs; stabs
="$with_stabs"
6956 # Determine whether or not multilibs are enabled.
6957 # Check whether --enable-multilib was given.
6958 if test "${enable_multilib+set}" = set; then :
6959 enableval
=$enable_multilib;
6966 # Determine whether or not multiarch is enabled.
6967 # Check whether --enable-multiarch was given.
6968 if test "${enable_multiarch+set}" = set; then :
6969 enableval
=$enable_multiarch; case "${enableval}" in
6970 yes|no|auto
) enable_multiarch
=$enableval;;
6971 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6974 enable_multiarch
=auto
6977 if test x
${enable_multiarch} = xauto
; then
6978 if test x
${with_native_system_header_dir} != x
; then
6979 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6982 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6983 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6988 $as_echo_n "checking for multiarch configuration... " >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6991 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6993 # needed for setting the multiarch name for soft-float/hard-float ABIs
6997 # Enable __cxa_atexit for C++.
6998 # Check whether --enable-__cxa_atexit was given.
6999 if test "${enable___cxa_atexit+set}" = set; then :
7000 enableval
=$enable___cxa_atexit;
7004 # Enable C extension for decimal float if target supports it.
7006 # Check whether --enable-decimal-float was given.
7007 if test "${enable_decimal_float+set}" = set; then :
7008 enableval
=$enable_decimal_float;
7009 case $enable_decimal_float in
7010 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7011 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7012 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7018 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7020 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7021 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7022 enable_decimal_float
=yes
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7026 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7027 enable_decimal_float
=no
7034 # x86's use BID format instead of DPD
7035 case x
$enable_decimal_float in
7038 i?
86*-*-* | x86_64
*-*-*)
7039 enable_decimal_float
=bid
7042 enable_decimal_float
=dpd
7045 default_decimal_float
=$enable_decimal_float
7048 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7049 # dependency on libdecnumber.
7050 default_decimal_float
=dpd
7057 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7059 cat >>confdefs.h
<<_ACEOF
7060 #define ENABLE_DECIMAL_FLOAT $dfp
7064 # Use default_decimal_float for dependency.
7065 enable_decimal_float
=$default_decimal_float
7067 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7069 cat >>confdefs.h
<<_ACEOF
7070 #define ENABLE_DECIMAL_BID_FORMAT $bid
7074 # Enable C extension for fixed-point arithmetic.
7075 # Check whether --enable-fixed-point was given.
7076 if test "${enable_fixed_point+set}" = set; then :
7077 enableval
=$enable_fixed_point;
7082 enable_fixed_point
=yes
7086 enable_fixed_point
=yes
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7090 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7091 enable_fixed_point
=no
7099 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7101 cat >>confdefs.h
<<_ACEOF
7102 #define ENABLE_FIXED_POINT $fixedpoint
7107 # Pass with no value to take the default
7108 # Pass with a value to specify a thread package
7109 # Check whether --enable-threads was given.
7110 if test "${enable_threads+set}" = set; then :
7111 enableval
=$enable_threads;
7117 # Check whether --enable-tls was given.
7118 if test "${enable_tls+set}" = set; then :
7119 enableval
=$enable_tls;
7122 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7123 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7131 # Check whether --enable-objc-gc was given.
7132 if test "${enable_objc_gc+set}" = set; then :
7133 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7144 # Check whether --with-dwarf2 was given.
7145 if test "${with_dwarf2+set}" = set; then :
7146 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7152 # Check whether --enable-shared was given.
7153 if test "${enable_shared+set}" = set; then :
7154 enableval
=$enable_shared;
7155 case $enable_shared in
7159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7160 for pkg
in $enableval; do
7161 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7176 # Check whether --with-native-system-header-dir was given.
7177 if test "${with_native_system_header_dir+set}" = set; then :
7178 withval
=$with_native_system_header_dir;
7179 case ${with_native_system_header_dir} in
7180 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7181 /* |
[A-Za-z
]:[\\/]*) ;;
7182 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7184 configured_native_system_header_dir
="${withval}"
7187 configured_native_system_header_dir
=
7192 # Check whether --with-build-sysroot was given.
7193 if test "${with_build_sysroot+set}" = set; then :
7194 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7195 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7198 SYSROOT_CFLAGS_FOR_TARGET
=
7203 if test "x$prefix" = xNONE
; then
7204 test_prefix
=/usr
/local
7208 if test "x$exec_prefix" = xNONE
; then
7209 test_exec_prefix
=$test_prefix
7211 test_exec_prefix
=$exec_prefix
7215 # Check whether --with-sysroot was given.
7216 if test "${with_sysroot+set}" = set; then :
7217 withval
=$with_sysroot;
7218 case ${with_sysroot} in
7219 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7220 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7223 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7224 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7226 case ${TARGET_SYSTEM_ROOT} in
7227 "${test_prefix}"|
"${test_prefix}/"*|\
7228 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7229 '${prefix}'|
'${prefix}/'*|\
7230 '${exec_prefix}'|
'${exec_prefix}/'*)
7231 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7232 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7239 TARGET_SYSTEM_ROOT_DEFINE
=
7240 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7249 # Check whether --with-specs was given.
7250 if test "${with_specs+set}" = set; then :
7251 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7261 # Check whether --with-pkgversion was given.
7262 if test "${with_pkgversion+set}" = set; then :
7263 withval
=$with_pkgversion; case "$withval" in
7264 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7266 *) PKGVERSION
="($withval) " ;;
7277 # Check whether --with-bugurl was given.
7278 if test "${with_bugurl+set}" = set; then :
7279 withval
=$with_bugurl; case "$withval" in
7280 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7283 *) BUGURL
="$withval"
7287 BUGURL
="http://gcc.gnu.org/bugs.html"
7297 REPORT_BUGS_TO
="<$BUGURL>"
7298 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7305 # Sanity check enable_languages in case someone does not run the toplevel
7306 # configure # script.
7307 # Check whether --enable-languages was given.
7308 if test "${enable_languages+set}" = set; then :
7309 enableval
=$enable_languages; case ,${enable_languages}, in
7311 # go safe -- we cannot be much sure without the toplevel
7313 # analysis of which target libs are present and usable
7317 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7322 enable_languages
=c
,${enable_languages}
7331 # Check whether --with-multilib-list was given.
7332 if test "${with_multilib_list+set}" = set; then :
7333 withval
=$with_multilib_list; :
7335 with_multilib_list
=default
7339 # -------------------------
7340 # Checks for other programs
7341 # -------------------------
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7346 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7347 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7348 $as_echo_n "(cached) " >&6
7350 cat >conftest.
make <<\_ACEOF
7353 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7358 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7360 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7364 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 $as_echo "yes" >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 SET_MAKE
="MAKE=${MAKE-make}"
7375 # Find some useful tools
7376 for ac_prog
in gawk mawk nawk
awk
7378 # Extract the first word of "$ac_prog", so it can be a program name with args.
7379 set dummy
$ac_prog; ac_word
=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if test "${ac_cv_prog_AWK+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7385 if test -n "$AWK"; then
7386 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir
=.
7393 for ac_exec_ext
in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_AWK
="$ac_prog"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 if test -n "$AWK"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7408 $as_echo "$AWK" >&6; }
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7415 test -n "$AWK" && break
7418 # We need awk to create options.c and options.h.
7419 # Bail out if it's missing.
7421 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7425 $as_echo_n "checking whether ln -s works... " >&6; }
7426 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7429 rm -f conftestdata_t
7430 echo >conftestdata_f
7431 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7433 gcc_cv_prog_LN_S
="ln -s"
7435 if ln conftestdata_f conftestdata_t
2>/dev
/null
7439 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7441 gcc_cv_prog_LN_S
="cp -p"
7447 rm -f conftestdata_f conftestdata_t
7450 LN_S
="$gcc_cv_prog_LN_S"
7451 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7453 $as_echo "yes" >&6; }
7455 if test "$gcc_cv_prog_LN_S" = "ln"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7457 $as_echo "no, using ln" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7460 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7465 $as_echo_n "checking whether ln works... " >&6; }
7466 if test "${acx_cv_prog_LN+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7469 rm -f conftestdata_t
7470 echo >conftestdata_f
7471 if ln conftestdata_f conftestdata_t
2>/dev
/null
7477 rm -f conftestdata_f conftestdata_t
7480 if test $acx_cv_prog_LN = no
; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7483 $as_echo "no, using $LN" >&6; }
7485 LN
="$acx_cv_prog_LN"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7492 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$RANLIB"; then
7499 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir
=.
7506 for ac_exec_ext
in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 RANLIB
=$ac_cv_prog_RANLIB
7519 if test -n "$RANLIB"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7521 $as_echo "$RANLIB" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7529 if test -z "$ac_cv_prog_RANLIB"; then
7530 ac_ct_RANLIB
=$RANLIB
7531 # Extract the first word of "ranlib", so it can be a program name with args.
7532 set dummy ranlib
; ac_word
=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7538 if test -n "$ac_ct_RANLIB"; then
7539 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir
=.
7546 for ac_exec_ext
in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7559 if test -n "$ac_ct_RANLIB"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7561 $as_echo "$ac_ct_RANLIB" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 if test "x$ac_ct_RANLIB" = x
; then
7570 case $cross_compiling:$ac_tool_warned in
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned
=yes ;;
7576 RANLIB
=$ac_ct_RANLIB
7579 RANLIB
="$ac_cv_prog_RANLIB"
7585 # Find a good install program. We prefer a C program (faster),
7586 # so one script is as good as another. But avoid the broken or
7587 # incompatible versions:
7588 # SysV /etc/install, /usr/sbin/install
7589 # SunOS /usr/etc/install
7590 # IRIX /sbin/install
7592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7594 # ./install, which can be erroneously created by make from ./install.sh.
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7596 $as_echo_n "checking for a BSD compatible install... " >&6; }
7597 if test -z "$INSTALL"; then
7598 if test "${ac_cv_path_install+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7601 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7602 for ac_dir
in $PATH; do
7603 # Account for people who put trailing slashes in PATH elements.
7605 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7607 # OSF1 and SCO ODT 3.0 have their own names for install.
7608 for ac_prog
in ginstall scoinst
install; do
7609 if test -f $ac_dir/$ac_prog; then
7610 if test $ac_prog = install &&
7611 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7612 # AIX install. It has an incompatible calling convention.
7613 # OSF/1 installbsd also uses dspmsg, but is usable.
7616 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7627 if test "${ac_cv_path_install+set}" = set; then
7628 INSTALL
="$ac_cv_path_install"
7630 # As a last resort, use the slow shell script. We don't cache a
7631 # path for INSTALL within a source directory, because that will
7632 # break other packages using the cache if that directory is
7633 # removed, or if the path is relative.
7634 INSTALL
="$ac_install_sh"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7638 $as_echo "$INSTALL" >&6; }
7640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7641 # It thinks the first close brace ends the variable substitution.
7642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7644 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7647 # See if cmp has --ignore-initial.
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7649 $as_echo_n "checking for cmp's capabilities... " >&6; }
7650 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7655 gcc_cv_prog_cmp_skip
=slowcompare
7656 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7657 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7660 gcc_cv_prog_cmp_skip
=gnucompare
7663 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7664 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7665 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7668 gcc_cv_prog_cmp_skip
=fastcompare
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7676 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7677 make_compare_target
=$gcc_cv_prog_cmp_skip
7681 # See if we have the mktemp command.
7682 # Extract the first word of "mktemp", so it can be a program name with args.
7683 set dummy mktemp
; ac_word
=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7689 if test -n "$have_mktemp_command"; then
7690 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir
=.
7697 for ac_exec_ext
in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_have_mktemp_command
="yes"
7700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7710 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7711 if test -n "$have_mktemp_command"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7713 $as_echo "$have_mktemp_command" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7721 # See if makeinfo has been installed and is modern enough
7722 # that we can use it.
7724 # Extract the first word of "makeinfo", so it can be a program name with args.
7725 set dummy makeinfo
; ac_word
=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7731 if test -n "$MAKEINFO"; then
7732 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir
=.
7739 for ac_exec_ext
in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_MAKEINFO
="makeinfo"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 MAKEINFO
=$ac_cv_prog_MAKEINFO
7752 if test -n "$MAKEINFO"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7754 $as_echo "$MAKEINFO" >&6; }
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7761 if test -n "$MAKEINFO"; then
7762 # Found it, now check the version.
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7764 $as_echo_n "checking for modern makeinfo... " >&6; }
7765 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7769 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7771 case $ac_prog_version in
7772 '') gcc_cv_prog_makeinfo_modern
=no
;;
7773 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7774 *) gcc_cv_prog_makeinfo_modern
=no
;;
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7779 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7781 gcc_cv_prog_makeinfo_modern
=no
7783 if test $gcc_cv_prog_makeinfo_modern = no
; then
7784 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7787 if test $gcc_cv_prog_makeinfo_modern = no
; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7789 *** Makeinfo is missing or too old.
7790 *** Info documentation will not be built." >&5
7791 $as_echo "$as_me: WARNING:
7792 *** Makeinfo is missing or too old.
7793 *** Info documentation will not be built." >&2;}
7800 # Is pod2man recent enough to regenerate manpages?
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7802 $as_echo_n "checking for recent Pod::Man... " >&6; }
7803 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7805 $as_echo "yes" >&6; }
7806 GENERATED_MANPAGES
=generated-manpages
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7814 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy
$ac_prog; ac_word
=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_FLEX+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7826 if test -n "$FLEX"; then
7827 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir
=.
7834 for ac_exec_ext
in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_FLEX
="$ac_prog"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 FLEX
=$ac_cv_prog_FLEX
7847 if test -n "$FLEX"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7849 $as_echo "$FLEX" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 test -n "$FLEX" && break
7858 test -n "$FLEX" || FLEX
="$MISSING flex"
7862 for ac_prog
in bison
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy
$ac_prog; ac_word
=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_BISON+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7871 if test -n "$BISON"; then
7872 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir
=.
7879 for ac_exec_ext
in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_BISON
="$ac_prog"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 BISON
=$ac_cv_prog_BISON
7892 if test -n "$BISON"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7894 $as_echo "$BISON" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7901 test -n "$BISON" && break
7903 test -n "$BISON" || BISON
="$MISSING bison"
7906 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7907 # check for build == host before using them.
7910 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7911 && test -d ..
/binutils
; then
7912 NM
='${objdir}/../binutils/nm-new'
7914 # Extract the first word of "nm", so it can be a program name with args.
7915 set dummy nm
; ac_word
=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_NM+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 if test -n "$NM"; then
7922 ac_cv_prog_NM
="$NM" # Let the user override the test.
7924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir
=.
7929 for ac_exec_ext
in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7943 if test -n "$NM"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7945 $as_echo "$NM" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7955 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7956 && test -d ..
/binutils
; then
7957 AR
='${objdir}/../binutils/ar'
7959 # Extract the first word of "ar", so it can be a program name with args.
7960 set dummy
ar; ac_word
=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_AR+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7966 if test -n "$AR"; then
7967 ac_cv_prog_AR
="$AR" # Let the user override the test.
7969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7973 test -z "$as_dir" && as_dir
=.
7974 for ac_exec_ext
in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7988 if test -n "$AR"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7990 $as_echo "$AR" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
8000 # --------------------
8001 # Checks for C headers
8002 # --------------------
8004 # Need to reject headers which give warnings, so that the -Werror bootstrap
8005 # works later. *sigh* This needs to come before all header checks.
8007 ac_c_preproc_warn_flag
=yes
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8010 $as_echo_n "checking for ANSI C header files... " >&6; }
8011 if test "${ac_cv_header_stdc+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8029 if ac_fn_c_try_compile
"$LINENO"; then :
8030 ac_cv_header_stdc
=yes
8032 ac_cv_header_stdc
=no
8034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8036 if test $ac_cv_header_stdc = yes; then
8037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "memchr" >/dev
/null
2>&1; then :
8047 ac_cv_header_stdc
=no
8053 if test $ac_cv_header_stdc = yes; then
8054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "free" >/dev
/null
2>&1; then :
8064 ac_cv_header_stdc
=no
8070 if test $ac_cv_header_stdc = yes; then
8071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8072 if test "$cross_compiling" = yes; then :
8075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8079 #if ((' ' & 0x0FF) == 0x020)
8080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8083 # define ISLOWER(c) \
8084 (('a' <= (c) && (c) <= 'i') \
8085 || ('j' <= (c) && (c) <= 'r') \
8086 || ('s' <= (c) && (c) <= 'z'))
8087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8095 for (i = 0; i < 256; i++)
8096 if (XOR (islower (i), ISLOWER (i))
8097 || toupper (i) != TOUPPER (i))
8102 if ac_fn_c_try_run
"$LINENO"; then :
8105 ac_cv_header_stdc
=no
8107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8108 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8114 $as_echo "$ac_cv_header_stdc" >&6; }
8115 if test $ac_cv_header_stdc = yes; then
8117 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8122 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8123 if test "${ac_cv_header_time+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #include <sys/types.h>
8129 #include <sys/time.h>
8135 if ((struct tm *) 0)
8141 if ac_fn_c_try_compile
"$LINENO"; then :
8142 ac_cv_header_time
=yes
8144 ac_cv_header_time
=no
8146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8149 $as_echo "$ac_cv_header_time" >&6; }
8150 if test $ac_cv_header_time = yes; then
8152 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8157 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8158 if test "${gcc_cv_header_string+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8164 #include <strings.h>
8173 if ac_fn_c_try_compile
"$LINENO"; then :
8174 gcc_cv_header_string
=yes
8176 gcc_cv_header_string
=no
8178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8181 $as_echo "$gcc_cv_header_string" >&6; }
8182 if test $gcc_cv_header_string = yes; then
8184 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8189 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8190 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/wait.h>
8198 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8201 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8214 if ac_fn_c_try_compile
"$LINENO"; then :
8215 ac_cv_header_sys_wait_h
=yes
8217 ac_cv_header_sys_wait_h
=no
8219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8222 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8223 if test $ac_cv_header_sys_wait_h = yes; then
8225 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8230 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8231 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <sys/types.h>
8237 #include <termios.h>
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "yes" >/dev
/null
2>&1; then :
8245 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8247 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8253 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8255 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8257 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8258 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 #include <sys/types.h>
8264 #include <sys/ioctl.h>
8270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8271 $EGREP "yes" >/dev
/null
2>&1; then :
8272 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8274 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8280 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8282 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8284 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8289 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8290 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8291 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8292 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8294 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8296 eval as_val
=\$
$as_ac_Header
8297 if test "x$as_val" = x
""yes; then :
8298 cat >>confdefs.h
<<_ACEOF
8299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 # Check for thread headers.
8307 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8308 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8314 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8315 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8322 # These tests can't be done till we know if we have limits.h.
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8324 $as_echo_n "checking for CHAR_BIT... " >&6; }
8325 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #ifdef HAVE_LIMITS_H
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 $EGREP "found" >/dev
/null
2>&1; then :
8339 gcc_cv_decl_char_bit
=yes
8341 gcc_cv_decl_char_bit
=no
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8348 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8349 if test $gcc_cv_decl_char_bit = no
; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8351 $as_echo_n "checking number of bits in a byte... " >&6; }
8352 if test "${gcc_cv_c_nbby+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8357 while test $i -lt 65; do
8358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8365 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8366 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8372 if ac_fn_c_try_compile
"$LINENO"; then :
8373 gcc_cv_c_nbby
=$i; break
8375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8378 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8382 $as_echo "$gcc_cv_c_nbby" >&6; }
8383 if test $gcc_cv_c_nbby = failed
; then
8384 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8387 cat >>confdefs.h
<<_ACEOF
8388 #define CHAR_BIT $gcc_cv_c_nbby
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8394 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8395 if test "${ac_cv_c_bigendian+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8398 ac_cv_c_bigendian
=unknown
8399 # See if we're dealing with a universal compiler.
8400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 #ifndef __APPLE_CC__
8403 not a universal capable compiler
8408 if ac_fn_c_try_compile
"$LINENO"; then :
8410 # Check for potential -arch flags. It is not universal unless
8411 # there are at least two -arch flags with different values.
8414 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8415 if test -n "$ac_prev"; then
8417 i?
86 | x86_64 | ppc | ppc64
)
8418 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8421 ac_cv_c_bigendian
=universal
8427 elif test "x$ac_word" = "x-arch"; then
8432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 if test $ac_cv_c_bigendian = unknown
; then
8434 # See if sys/param.h defines the BYTE_ORDER macro.
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <sys/types.h>
8438 #include <sys/param.h>
8443 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8444 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8453 if ac_fn_c_try_compile
"$LINENO"; then :
8454 # It does; now see whether it defined to BIG_ENDIAN or not.
8455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <sys/types.h>
8458 #include <sys/param.h>
8463 #if BYTE_ORDER != BIG_ENDIAN
8471 if ac_fn_c_try_compile
"$LINENO"; then :
8472 ac_cv_c_bigendian
=yes
8474 ac_cv_c_bigendian
=no
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 if test $ac_cv_c_bigendian = unknown
; then
8481 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8489 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8497 if ac_fn_c_try_compile
"$LINENO"; then :
8498 # It does; now see whether it defined to _BIG_ENDIAN or not.
8499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8514 if ac_fn_c_try_compile
"$LINENO"; then :
8515 ac_cv_c_bigendian
=yes
8517 ac_cv_c_bigendian
=no
8519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8523 if test $ac_cv_c_bigendian = unknown
; then
8524 # Compile a test program.
8525 if test "$cross_compiling" = yes; then :
8526 # Try to guess by grepping values from an object file.
8527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 short int ascii_mm[] =
8530 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8531 short int ascii_ii[] =
8532 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8533 int use_ascii (int i) {
8534 return ascii_mm[i] + ascii_ii[i];
8536 short int ebcdic_ii[] =
8537 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8538 short int ebcdic_mm[] =
8539 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8540 int use_ebcdic (int i) {
8541 return ebcdic_mm[i] + ebcdic_ii[i];
8548 return use_ascii (foo) == use_ebcdic (foo);
8553 if ac_fn_c_try_compile
"$LINENO"; then :
8554 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8555 ac_cv_c_bigendian
=yes
8557 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8558 if test "$ac_cv_c_bigendian" = unknown
; then
8559 ac_cv_c_bigendian
=no
8561 # finding both strings is unlikely to happen, but who knows?
8562 ac_cv_c_bigendian
=unknown
8566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 $ac_includes_default
8575 /* Are we little or big endian? From Harbison&Steele. */
8579 char c[sizeof (long int)];
8582 return u.c[sizeof (long int) - 1] == 1;
8588 if ac_fn_c_try_run
"$LINENO"; then :
8589 ac_cv_c_bigendian
=no
8591 ac_cv_c_bigendian
=yes
8593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8594 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8600 $as_echo "$ac_cv_c_bigendian" >&6; }
8601 case $ac_cv_c_bigendian in #(
8603 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8609 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8613 as_fn_error
"unknown endianness
8614 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8618 # ----------------------
8619 # Checks for C++ headers
8620 # ----------------------
8623 ac_cpp
='$CXXCPP $CPPFLAGS'
8624 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8628 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8629 if test -z "$CXXCPP"; then
8630 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8633 # Double quotes because CXXCPP needs to be expanded
8634 for CXXCPP
in "$CXX -E" "/lib/cpp"
8637 for ac_cxx_preproc_warn_flag
in '' yes
8639 # Use a header file that comes with gcc, so configuring glibc
8640 # with a fresh cross-compiler works.
8641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642 # <limits.h> exists even on freestanding compilers.
8643 # On the NeXT, cc -E runs the code through the compiler's parser,
8644 # not just through cpp. "Syntax error" is here to catch this case.
8645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8648 # include <limits.h>
8650 # include <assert.h>
8654 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8657 # Broken: fails on valid input.
8660 rm -f conftest.err conftest.
$ac_ext
8662 # OK, works on sane cases. Now check whether nonexistent headers
8663 # can be detected and how.
8664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #include <ac_nonexistent.h>
8668 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8669 # Broken: success on invalid input.
8672 # Passes both tests.
8676 rm -f conftest.err conftest.
$ac_ext
8679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8680 rm -f conftest.err conftest.
$ac_ext
8681 if $ac_preproc_ok; then :
8686 ac_cv_prog_CXXCPP
=$CXXCPP
8689 CXXCPP
=$ac_cv_prog_CXXCPP
8691 ac_cv_prog_CXXCPP
=$CXXCPP
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8694 $as_echo "$CXXCPP" >&6; }
8696 for ac_cxx_preproc_warn_flag
in '' yes
8698 # Use a header file that comes with gcc, so configuring glibc
8699 # with a fresh cross-compiler works.
8700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 # <limits.h> exists even on freestanding compilers.
8702 # On the NeXT, cc -E runs the code through the compiler's parser,
8703 # not just through cpp. "Syntax error" is here to catch this case.
8704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8707 # include <limits.h>
8709 # include <assert.h>
8713 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8716 # Broken: fails on valid input.
8719 rm -f conftest.err conftest.
$ac_ext
8721 # OK, works on sane cases. Now check whether nonexistent headers
8722 # can be detected and how.
8723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725 #include <ac_nonexistent.h>
8727 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8728 # Broken: success on invalid input.
8731 # Passes both tests.
8735 rm -f conftest.err conftest.
$ac_ext
8738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8739 rm -f conftest.err conftest.
$ac_ext
8740 if $ac_preproc_ok; then :
8743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8746 See \`config.log' for more details." >&5
8747 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8748 See \`config.log' for more details." >&2;}; }
8752 ac_cpp
='$CPP $CPPFLAGS'
8753 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8759 ac_cpp
='$CXXCPP $CPPFLAGS'
8760 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8767 for ac_header
in unordered_map
8769 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8770 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8771 cat >>confdefs.h
<<_ACEOF
8772 #define HAVE_UNORDERED_MAP 1
8778 for ac_header
in tr1/unordered_map
8780 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8781 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8782 cat >>confdefs.h
<<_ACEOF
8783 #define HAVE_TR1_UNORDERED_MAP 1
8789 for ac_header
in ext
/hash_map
8791 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8792 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8793 cat >>confdefs.h
<<_ACEOF
8794 #define HAVE_EXT_HASH_MAP 1
8802 ac_cpp
='$CPP $CPPFLAGS'
8803 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8809 # Dependency checking.
8813 ac_cpp
='$CXXCPP $CPPFLAGS'
8814 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8818 rm -rf .tst
2>/dev
/null
8819 mkdir .tst
2>/dev
/null
8820 if test -d .tst
; then
8825 rmdir .tst
2>/dev
/null
8827 DEPDIR
="${am__leading_dot}deps"
8829 ac_config_commands
="$ac_config_commands depdir"
8832 ac_config_commands
="$ac_config_commands gccdepdir"
8835 depcc
="$CXX" am_compiler_list
=
8837 am_depcomp
=$ac_aux_dir/depcomp
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8839 $as_echo_n "checking dependency style of $depcc... " >&6; }
8840 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8843 if test -f "$am_depcomp"; then
8844 # We make a subdir and do the tests there. Otherwise we can end up
8845 # making bogus files that we don't know about and never remove. For
8846 # instance it was reported that on HP-UX the gcc test will end up
8847 # making a dummy file named `D' -- because `-MD' means `put the output
8850 # Copy depcomp to subdir because otherwise we won't find it if we're
8851 # using a relative directory.
8852 cp "$am_depcomp" conftest.dir
8854 # We will build objects and dependencies in a subdirectory because
8855 # it helps to detect inapplicable dependency modes. For instance
8856 # both Tru64's cc and ICC support -MD to output dependencies as a
8857 # side effect of compilation, but ICC will put the dependencies in
8858 # the current directory while Tru64 will put them in the object
8862 am_cv_CXX_dependencies_compiler_type
=none
8863 if test "$am_compiler_list" = ""; then
8864 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8866 for depmode
in $am_compiler_list; do
8867 if test $depmode = none
; then break; fi
8869 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8870 # Setup a source with many dependencies, because some compilers
8871 # like to wrap large dependency lists on column 80 (with \), and
8872 # we should not choose a depcomp mode which is confused by this.
8874 # We need to recreate these files for each test, as the compiler may
8875 # overwrite some of them when testing with obscure command lines.
8876 # This happens at least with the AIX C compiler.
8878 for i
in 1 2 3 4 5 6; do
8879 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8880 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8881 # Solaris 8's {/usr,}/bin/sh.
8882 touch sub
/conftst
$i.h
8884 echo "include sub/conftest.Po" > confmf
8886 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8887 # mode. It turns out that the SunPro C++ compiler does not properly
8888 # handle `-M -o', and we need to detect this.
8889 depcmd
="depmode=$depmode \
8890 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8892 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8893 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8894 if env
$depcmd > conftest.err
2>&1 &&
8895 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8896 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8897 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8898 # icc doesn't choke on unknown options, it will just issue warnings
8899 # or remarks (even with -Werror). So we grep stderr for any message
8900 # that says an option was ignored or not supported.
8901 # When given -MP, icc 7.0 and 7.1 complain thusly:
8902 # icc: Command line warning: ignoring option '-M'; no argument required
8903 # The diagnosis changed in icc 8.0:
8904 # icc: Command line remark: option '-MP' not supported
8905 if (grep 'ignoring option' conftest.err ||
8906 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8907 am_cv_CXX_dependencies_compiler_type
=$depmode
8908 $as_echo "$as_me:$LINENO: success" >&5
8912 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8913 sed -e 's/^/| /' < conftest.err
>&5
8919 am_cv_CXX_dependencies_compiler_type
=none
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8924 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8925 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
8926 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8927 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8932 ac_cpp
='$CPP $CPPFLAGS'
8933 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8943 # These libraries may be used by collect2.
8944 # We may need a special search path to get them linked.
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8946 $as_echo_n "checking for collect2 libraries... " >&6; }
8947 if test "${gcc_cv_collect2_libs+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8951 for libs
in '' -lld -lmld \
8952 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8953 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8974 if ac_fn_c_try_link
"$LINENO"; then :
8975 gcc_cv_collect2_libs
="$libs"; break
8977 rm -f core conftest.err conftest.
$ac_objext \
8978 conftest
$ac_exeext conftest.
$ac_ext
8981 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8984 $as_echo "$gcc_cv_collect2_libs" >&6; }
8985 case $gcc_cv_collect2_libs in
8987 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8991 # When building Ada code on Alpha, we need exc_resume which is usually in
8992 # -lexc. So test for it.
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8996 $as_echo_n "checking for library containing exc_resume... " >&6; }
8997 if test "${ac_cv_search_exc_resume+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 ac_func_search_save_LIBS
=$LIBS
9001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9014 return exc_resume ();
9019 for ac_lib
in '' exc
; do
9020 if test -z "$ac_lib"; then
9021 ac_res
="none required"
9024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9026 if ac_fn_c_try_link
"$LINENO"; then :
9027 ac_cv_search_exc_resume
=$ac_res
9029 rm -f core conftest.err conftest.
$ac_objext \
9031 if test "${ac_cv_search_exc_resume+set}" = set; then :
9035 if test "${ac_cv_search_exc_resume+set}" = set; then :
9038 ac_cv_search_exc_resume
=no
9041 LIBS
=$ac_func_search_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9044 $as_echo "$ac_cv_search_exc_resume" >&6; }
9045 ac_res
=$ac_cv_search_exc_resume
9046 if test "$ac_res" != no
; then :
9047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9055 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9059 $as_echo_n "checking for library containing kstat_open... " >&6; }
9060 if test "${ac_cv_search_kstat_open+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9063 ac_func_search_save_LIBS
=$LIBS
9064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9077 return kstat_open ();
9082 for ac_lib
in '' kstat
; do
9083 if test -z "$ac_lib"; then
9084 ac_res
="none required"
9087 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9089 if ac_fn_c_try_link
"$LINENO"; then :
9090 ac_cv_search_kstat_open
=$ac_res
9092 rm -f core conftest.err conftest.
$ac_objext \
9094 if test "${ac_cv_search_kstat_open+set}" = set; then :
9098 if test "${ac_cv_search_kstat_open+set}" = set; then :
9101 ac_cv_search_kstat_open
=no
9104 LIBS
=$ac_func_search_save_LIBS
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9107 $as_echo "$ac_cv_search_kstat_open" >&6; }
9108 ac_res
=$ac_cv_search_kstat_open
9109 if test "$ac_res" != no
; then :
9110 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9114 EXTRA_GCC_LIBS
="$LIBS"
9118 # Some systems put ldexp and frexp in libm instead of libc; assume
9119 # they're both in the same place. jcf-dump needs them.
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9123 $as_echo_n "checking for library containing ldexp... " >&6; }
9124 if test "${ac_cv_search_ldexp+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9127 ac_func_search_save_LIBS
=$LIBS
9128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 /* Override any GCC internal prototype to avoid an error.
9132 Use char because int might match the return type of a GCC
9133 builtin and then its argument prototype would still apply. */
9146 for ac_lib
in '' m
; do
9147 if test -z "$ac_lib"; then
9148 ac_res
="none required"
9151 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9153 if ac_fn_c_try_link
"$LINENO"; then :
9154 ac_cv_search_ldexp
=$ac_res
9156 rm -f core conftest.err conftest.
$ac_objext \
9158 if test "${ac_cv_search_ldexp+set}" = set; then :
9162 if test "${ac_cv_search_ldexp+set}" = set; then :
9165 ac_cv_search_ldexp
=no
9168 LIBS
=$ac_func_search_save_LIBS
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9171 $as_echo "$ac_cv_search_ldexp" >&6; }
9172 ac_res
=$ac_cv_search_ldexp
9173 if test "$ac_res" != no
; then :
9174 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9182 # Use <inttypes.h> only if it exists,
9183 # doesn't clash with <sys/types.h>, and declares intmax_t.
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9185 $as_echo_n "checking for inttypes.h... " >&6; }
9186 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 #include <inttypes.h>
9201 if ac_fn_c_try_compile
"$LINENO"; then :
9202 gcc_cv_header_inttypes_h
=yes
9204 gcc_cv_header_inttypes_h
=no
9206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9210 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9211 if test $gcc_cv_header_inttypes_h = yes; then
9213 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9219 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9220 sysconf strsignal getrusage nl_langinfo \
9221 gettimeofday mbstowcs wcswidth mmap setlocale \
9222 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9224 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9225 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9226 eval as_val
=\$
$as_ac_var
9227 if test "x$as_val" = x
""yes; then :
9228 cat >>confdefs.h
<<_ACEOF
9229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9236 if test x
$ac_cv_func_mbstowcs = xyes
; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9238 $as_echo_n "checking whether mbstowcs works... " >&6; }
9239 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9242 if test "$cross_compiling" = yes; then :
9243 gcc_cv_func_mbstowcs_works
=yes
9245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9254 if ac_fn_c_try_run
"$LINENO"; then :
9255 gcc_cv_func_mbstowcs_works
=yes
9257 gcc_cv_func_mbstowcs_works
=no
9259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9265 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9266 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9268 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9273 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9274 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9278 cat >>confdefs.h
<<_ACEOF
9284 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9285 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9289 cat >>confdefs.h
<<_ACEOF
9290 #define caddr_t char *
9297 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9298 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9299 gcc_header_sys_mman_h
=yes
9301 gcc_header_sys_mman_h
=no
9304 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9305 if test "x$ac_cv_func_mmap" = x
""yes; then :
9311 if test "$gcc_header_sys_mman_h" != yes \
9312 ||
test "$gcc_func_mmap" != yes; then
9313 gcc_cv_func_mmap_file
=no
9314 gcc_cv_func_mmap_dev_zero
=no
9315 gcc_cv_func_mmap_anon
=no
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9318 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9319 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9322 # Add a system to this blacklist if
9323 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9324 # memory area containing the same data that you'd get if you applied
9325 # read() to the same fd. The only system known to have a problem here
9326 # is VMS, where text files have record structure.
9329 gcc_cv_func_mmap_file
=no
;;
9331 gcc_cv_func_mmap_file
=yes;;
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9335 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9337 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9338 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9341 # Add a system to this blacklist if it has mmap() but /dev/zero
9342 # does not exist, or if mmapping /dev/zero does not give anonymous
9343 # zeroed pages with both the following properties:
9344 # 1. If you map N consecutive pages in with one call, and then
9345 # unmap any subset of those pages, the pages that were not
9346 # explicitly unmapped remain accessible.
9347 # 2. If you map two adjacent blocks of memory and then unmap them
9348 # both at once, they must both go away.
9349 # Systems known to be in this category are Windows (all variants),
9352 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9353 gcc_cv_func_mmap_dev_zero
=no
;;
9355 gcc_cv_func_mmap_dev_zero
=yes;;
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9359 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9361 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9363 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9364 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #include <sys/types.h>
9370 #include <sys/mman.h>
9373 #ifndef MAP_ANONYMOUS
9374 #define MAP_ANONYMOUS MAP_ANON
9380 int n = MAP_ANONYMOUS;
9385 if ac_fn_c_try_compile
"$LINENO"; then :
9386 gcc_cv_decl_map_anon
=yes
9388 gcc_cv_decl_map_anon
=no
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9393 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9395 if test $gcc_cv_decl_map_anon = no
; then
9396 gcc_cv_func_mmap_anon
=no
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9399 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9400 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9403 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9404 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9405 # doesn't give anonymous zeroed pages with the same properties listed
9406 # above for use of /dev/zero.
9407 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9409 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9410 gcc_cv_func_mmap_anon
=no
;;
9412 gcc_cv_func_mmap_anon
=yes;;
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9416 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9420 if test $gcc_cv_func_mmap_file = yes; then
9422 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9425 if test $gcc_cv_func_mmap_dev_zero = yes; then
9427 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9430 if test $gcc_cv_func_mmap_anon = yes; then
9432 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9439 # Under VMS, vfork works very differently than on Unix. The standard test
9440 # won't work, and it isn't easily adaptable. It makes more sense to
9442 ac_cv_func_vfork_works
=yes
9445 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9446 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9450 cat >>confdefs.h
<<_ACEOF
9456 for ac_header
in vfork.h
9458 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9459 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9460 cat >>confdefs.h
<<_ACEOF
9461 #define HAVE_VFORK_H 1
9467 for ac_func
in fork vfork
9469 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9470 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9471 eval as_val
=\$
$as_ac_var
9472 if test "x$as_val" = x
""yes; then :
9473 cat >>confdefs.h
<<_ACEOF
9474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9480 if test "x$ac_cv_func_fork" = xyes
; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9482 $as_echo_n "checking for working fork... " >&6; }
9483 if test "${ac_cv_func_fork_works+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9486 if test "$cross_compiling" = yes; then :
9487 ac_cv_func_fork_works
=cross
9489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 $ac_includes_default
9496 /* By Ruediger Kuhlmann. */
9503 if ac_fn_c_try_run
"$LINENO"; then :
9504 ac_cv_func_fork_works
=yes
9506 ac_cv_func_fork_works
=no
9508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9514 $as_echo "$ac_cv_func_fork_works" >&6; }
9517 ac_cv_func_fork_works
=$ac_cv_func_fork
9519 if test "x$ac_cv_func_fork_works" = xcross
; then
9521 *-*-amigaos* |
*-*-msdosdjgpp*)
9522 # Override, as these systems have only a dummy fork() stub
9523 ac_cv_func_fork_works
=no
9526 ac_cv_func_fork_works
=yes
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9530 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9532 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9533 if test "x$ac_cv_func_vfork" = xyes
; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9535 $as_echo_n "checking for working vfork... " >&6; }
9536 if test "${ac_cv_func_vfork_works+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9539 if test "$cross_compiling" = yes; then :
9540 ac_cv_func_vfork_works
=cross
9542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 /* Thanks to Paul Eggert for this test. */
9545 $ac_includes_default
9546 #include <sys/wait.h>
9550 /* On some sparc systems, changes by the child to local and incoming
9551 argument registers are propagated back to the parent. The compiler
9552 is told about this with #include <vfork.h>, but some compilers
9553 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9554 static variable whose address is put into a register that is
9555 clobbered by the vfork. */
9558 sparc_address_test (int arg)
9560 sparc_address_test (arg) int arg;
9581 pid_t parent = getpid ();
9584 sparc_address_test (0);
9589 /* Here is another test for sparc vfork register problems. This
9590 test uses lots of local variables, at least as many local
9591 variables as main has allocated so far including compiler
9592 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9593 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9594 reuse the register of parent for one of the local variables,
9595 since it will think that parent can't possibly be used any more
9596 in this routine. Assigning to the local variable will thus
9597 munge parent in the parent process. */
9599 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9600 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9601 /* Convince the compiler that p..p7 are live; otherwise, it might
9602 use the same hardware register for all 8 local variables. */
9603 if (p != p1 || p != p2 || p != p3 || p != p4
9604 || p != p5 || p != p6 || p != p7)
9607 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9608 from child file descriptors. If the child closes a descriptor
9609 before it execs or exits, this munges the parent's descriptor
9610 as well. Test for this by closing stdout in the child. */
9611 _exit(close(fileno(stdout)) != 0);
9616 while (wait(&status) != child)
9619 /* Was there some problem with vforking? */
9622 /* Did the child fail? (This shouldn't happen.) */
9625 /* Did the vfork/compiler bug occur? */
9626 || parent != getpid()
9628 /* Did the file descriptor bug occur? */
9629 || fstat(fileno(stdout), &st) != 0
9634 if ac_fn_c_try_run
"$LINENO"; then :
9635 ac_cv_func_vfork_works
=yes
9637 ac_cv_func_vfork_works
=no
9639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9640 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9645 $as_echo "$ac_cv_func_vfork_works" >&6; }
9648 if test "x$ac_cv_func_fork_works" = xcross
; then
9649 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9651 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9654 if test "x$ac_cv_func_vfork_works" = xyes
; then
9656 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9660 $as_echo "#define vfork fork" >>confdefs.h
9663 if test "x$ac_cv_func_fork_works" = xyes
; then
9665 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9670 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9671 # iconv() prototype.
9673 ac_cpp
='$CXXCPP $CPPFLAGS'
9674 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9679 if test "X$prefix" = "XNONE"; then
9680 acl_final_prefix
="$ac_default_prefix"
9682 acl_final_prefix
="$prefix"
9684 if test "X$exec_prefix" = "XNONE"; then
9685 acl_final_exec_prefix
='${prefix}'
9687 acl_final_exec_prefix
="$exec_prefix"
9689 acl_save_prefix
="$prefix"
9690 prefix
="$acl_final_prefix"
9691 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9692 prefix
="$acl_save_prefix"
9695 # Check whether --with-gnu-ld was given.
9696 if test "${with_gnu_ld+set}" = set; then :
9697 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9702 # Prepare PATH_SEPARATOR.
9703 # The user is always right.
9704 if test "${PATH_SEPARATOR+set}" != set; then
9705 echo "#! /bin/sh" >conf$$.sh
9706 echo "exit 0" >>conf$$.sh
9708 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9716 if test "$GCC" = yes; then
9717 # Check if gcc -print-prog-name=ld gives a path.
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9719 $as_echo_n "checking for ld used by GCC... " >&6; }
9722 # gcc leaves a trailing carriage return which upsets mingw
9723 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9725 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9728 # Accept absolute paths.
9729 [\\/]* |
[A-Za-z
]:[\\/]*)
9730 re_direlt
='/[^/][^/]*/\.\./'
9731 # Canonicalize the path of ld
9732 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9733 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9734 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9736 test -z "$LD" && LD
="$ac_prog"
9739 # If it fails, then pretend we aren't using GCC.
9743 # If it is relative, then search for the first ld in PATH.
9747 elif test "$with_gnu_ld" = yes; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9749 $as_echo_n "checking for GNU ld... " >&6; }
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9752 $as_echo_n "checking for non-GNU ld... " >&6; }
9754 if test "${acl_cv_path_LD+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9757 if test -z "$LD"; then
9758 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9759 for ac_dir
in $PATH; do
9760 test -z "$ac_dir" && ac_dir
=.
9761 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9762 acl_cv_path_LD
="$ac_dir/$ac_prog"
9763 # Check to see if the program is GNU ld. I'd rather use --version,
9764 # but apparently some GNU ld's only accept -v.
9765 # Break only if it was the GNU/non-GNU ld that we prefer.
9766 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9767 test "$with_gnu_ld" != no
&& break
9769 test "$with_gnu_ld" != yes && break
9775 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9779 LD
="$acl_cv_path_LD"
9780 if test -n "$LD"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9782 $as_echo "$LD" >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9787 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9789 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9790 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9791 $as_echo_n "(cached) " >&6
9793 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9794 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9795 acl_cv_prog_gnu_ld
=yes
9797 acl_cv_prog_gnu_ld
=no
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9801 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9802 with_gnu_ld
=$acl_cv_prog_gnu_ld
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9807 $as_echo_n "checking for shared library run path origin... " >&6; }
9808 if test "${acl_cv_rpath+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9812 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9813 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9820 $as_echo "$acl_cv_rpath" >&6; }
9822 libext
="$acl_cv_libext"
9823 shlibext
="$acl_cv_shlibext"
9824 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9825 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9826 hardcode_direct
="$acl_cv_hardcode_direct"
9827 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9828 # Check whether --enable-rpath was given.
9829 if test "${enable_rpath+set}" = set; then :
9830 enableval
=$enable_rpath; :
9844 acl_save_prefix
="$prefix"
9845 prefix
="$acl_final_prefix"
9846 acl_save_exec_prefix
="$exec_prefix"
9847 exec_prefix
="$acl_final_exec_prefix"
9849 eval additional_includedir
=\"$includedir\"
9850 eval additional_libdir
=\"$libdir\"
9852 exec_prefix
="$acl_save_exec_prefix"
9853 prefix
="$acl_save_prefix"
9856 # Check whether --with-libiconv-prefix was given.
9857 if test "${with_libiconv_prefix+set}" = set; then :
9858 withval
=$with_libiconv_prefix;
9859 if test "X$withval" = "Xno"; then
9862 if test "X$withval" = "X"; then
9864 acl_save_prefix
="$prefix"
9865 prefix
="$acl_final_prefix"
9866 acl_save_exec_prefix
="$exec_prefix"
9867 exec_prefix
="$acl_final_exec_prefix"
9869 eval additional_includedir
=\"$includedir\"
9870 eval additional_libdir
=\"$libdir\"
9872 exec_prefix
="$acl_save_exec_prefix"
9873 prefix
="$acl_save_prefix"
9876 additional_includedir
="$withval/include"
9877 additional_libdir
="$withval/lib"
9888 names_already_handled
=
9889 names_next_round
='iconv '
9890 while test -n "$names_next_round"; do
9891 names_this_round
="$names_next_round"
9893 for name
in $names_this_round; do
9895 for n
in $names_already_handled; do
9896 if test "$n" = "$name"; then
9901 if test -z "$already_handled"; then
9902 names_already_handled
="$names_already_handled $name"
9903 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9904 eval value
=\"\
$HAVE_LIB$uppername\"
9905 if test -n "$value"; then
9906 if test "$value" = yes; then
9907 eval value
=\"\
$LIB$uppername\"
9908 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9909 eval value
=\"\
$LTLIB$uppername\"
9910 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9919 if test $use_additional = yes; then
9920 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9921 found_dir
="$additional_libdir"
9922 found_so
="$additional_libdir/lib$name.$shlibext"
9923 if test -f "$additional_libdir/lib$name.la"; then
9924 found_la
="$additional_libdir/lib$name.la"
9927 if test -f "$additional_libdir/lib$name.$libext"; then
9928 found_dir
="$additional_libdir"
9929 found_a
="$additional_libdir/lib$name.$libext"
9930 if test -f "$additional_libdir/lib$name.la"; then
9931 found_la
="$additional_libdir/lib$name.la"
9936 if test "X$found_dir" = "X"; then
9937 for x
in $LDFLAGS $LTLIBICONV; do
9939 acl_save_prefix
="$prefix"
9940 prefix
="$acl_final_prefix"
9941 acl_save_exec_prefix
="$exec_prefix"
9942 exec_prefix
="$acl_final_exec_prefix"
9944 exec_prefix
="$acl_save_exec_prefix"
9945 prefix
="$acl_save_prefix"
9949 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9950 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9952 found_so
="$dir/lib$name.$shlibext"
9953 if test -f "$dir/lib$name.la"; then
9954 found_la
="$dir/lib$name.la"
9957 if test -f "$dir/lib$name.$libext"; then
9959 found_a
="$dir/lib$name.$libext"
9960 if test -f "$dir/lib$name.la"; then
9961 found_la
="$dir/lib$name.la"
9967 if test "X$found_dir" != "X"; then
9972 if test "X$found_dir" != "X"; then
9973 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9974 if test "X$found_so" != "X"; then
9975 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9976 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9979 for x
in $ltrpathdirs; do
9980 if test "X$x" = "X$found_dir"; then
9985 if test -z "$haveit"; then
9986 ltrpathdirs
="$ltrpathdirs $found_dir"
9988 if test "$hardcode_direct" = yes; then
9989 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9991 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9992 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9994 for x
in $rpathdirs; do
9995 if test "X$x" = "X$found_dir"; then
10000 if test -z "$haveit"; then
10001 rpathdirs
="$rpathdirs $found_dir"
10005 for x
in $LDFLAGS $LIBICONV; do
10007 acl_save_prefix
="$prefix"
10008 prefix
="$acl_final_prefix"
10009 acl_save_exec_prefix
="$exec_prefix"
10010 exec_prefix
="$acl_final_exec_prefix"
10012 exec_prefix
="$acl_save_exec_prefix"
10013 prefix
="$acl_save_prefix"
10015 if test "X$x" = "X-L$found_dir"; then
10020 if test -z "$haveit"; then
10021 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10023 if test "$hardcode_minus_L" != no
; then
10024 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10026 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10032 if test "X$found_a" != "X"; then
10033 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10035 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10038 additional_includedir
=
10039 case "$found_dir" in
10041 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10042 additional_includedir
="$basedir/include"
10045 if test "X$additional_includedir" != "X"; then
10046 if test "X$additional_includedir" != "X/usr/include"; then
10048 if test "X$additional_includedir" = "X/usr/local/include"; then
10049 if test -n "$GCC"; then
10051 linux
*) haveit
=yes;;
10055 if test -z "$haveit"; then
10056 for x
in $CPPFLAGS $INCICONV; do
10058 acl_save_prefix
="$prefix"
10059 prefix
="$acl_final_prefix"
10060 acl_save_exec_prefix
="$exec_prefix"
10061 exec_prefix
="$acl_final_exec_prefix"
10063 exec_prefix
="$acl_save_exec_prefix"
10064 prefix
="$acl_save_prefix"
10066 if test "X$x" = "X-I$additional_includedir"; then
10071 if test -z "$haveit"; then
10072 if test -d "$additional_includedir"; then
10073 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10079 if test -n "$found_la"; then
10080 save_libdir
="$libdir"
10081 case "$found_la" in
10082 */* |
*\\*) .
"$found_la" ;;
10083 *) .
"./$found_la" ;;
10085 libdir
="$save_libdir"
10086 for dep
in $dependency_libs; do
10089 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10090 if test "X$additional_libdir" != "X/usr/lib"; then
10092 if test "X$additional_libdir" = "X/usr/local/lib"; then
10093 if test -n "$GCC"; then
10095 linux
*) haveit
=yes;;
10099 if test -z "$haveit"; then
10101 for x
in $LDFLAGS $LIBICONV; do
10103 acl_save_prefix
="$prefix"
10104 prefix
="$acl_final_prefix"
10105 acl_save_exec_prefix
="$exec_prefix"
10106 exec_prefix
="$acl_final_exec_prefix"
10108 exec_prefix
="$acl_save_exec_prefix"
10109 prefix
="$acl_save_prefix"
10111 if test "X$x" = "X-L$additional_libdir"; then
10116 if test -z "$haveit"; then
10117 if test -d "$additional_libdir"; then
10118 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10122 for x
in $LDFLAGS $LTLIBICONV; do
10124 acl_save_prefix
="$prefix"
10125 prefix
="$acl_final_prefix"
10126 acl_save_exec_prefix
="$exec_prefix"
10127 exec_prefix
="$acl_final_exec_prefix"
10129 exec_prefix
="$acl_save_exec_prefix"
10130 prefix
="$acl_save_prefix"
10132 if test "X$x" = "X-L$additional_libdir"; then
10137 if test -z "$haveit"; then
10138 if test -d "$additional_libdir"; then
10139 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10146 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10147 if test "$enable_rpath" != no
; then
10149 for x
in $rpathdirs; do
10150 if test "X$x" = "X$dir"; then
10155 if test -z "$haveit"; then
10156 rpathdirs
="$rpathdirs $dir"
10159 for x
in $ltrpathdirs; do
10160 if test "X$x" = "X$dir"; then
10165 if test -z "$haveit"; then
10166 ltrpathdirs
="$ltrpathdirs $dir"
10171 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10174 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10177 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10178 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10184 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10185 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10191 if test "X$rpathdirs" != "X"; then
10192 if test -n "$hardcode_libdir_separator"; then
10194 for found_dir
in $rpathdirs; do
10195 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10197 acl_save_libdir
="$libdir"
10199 eval flag
=\"$hardcode_libdir_flag_spec\"
10200 libdir
="$acl_save_libdir"
10201 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10203 for found_dir
in $rpathdirs; do
10204 acl_save_libdir
="$libdir"
10205 libdir
="$found_dir"
10206 eval flag
=\"$hardcode_libdir_flag_spec\"
10207 libdir
="$acl_save_libdir"
10208 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10212 if test "X$ltrpathdirs" != "X"; then
10213 for found_dir
in $ltrpathdirs; do
10214 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10224 am_save_CPPFLAGS
="$CPPFLAGS"
10226 for element
in $INCICONV; do
10228 for x
in $CPPFLAGS; do
10230 acl_save_prefix
="$prefix"
10231 prefix
="$acl_final_prefix"
10232 acl_save_exec_prefix
="$exec_prefix"
10233 exec_prefix
="$acl_final_exec_prefix"
10235 exec_prefix
="$acl_save_exec_prefix"
10236 prefix
="$acl_save_prefix"
10238 if test "X$x" = "X$element"; then
10243 if test -z "$haveit"; then
10244 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10250 $as_echo_n "checking for iconv... " >&6; }
10251 if test "${am_cv_func_iconv+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10255 am_cv_func_iconv
="no, consider installing GNU libiconv"
10257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 #include <stdlib.h>
10264 iconv_t cd = iconv_open("","");
10265 iconv(cd,NULL,NULL,NULL,NULL);
10271 if ac_fn_cxx_try_link
"$LINENO"; then :
10272 am_cv_func_iconv
=yes
10274 rm -f core conftest.err conftest.
$ac_objext \
10275 conftest
$ac_exeext conftest.
$ac_ext
10276 if test "$am_cv_func_iconv" != yes; then
10277 am_save_LIBS
="$LIBS"
10278 LIBS
="$LIBS $LIBICONV"
10279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 #include <stdlib.h>
10286 iconv_t cd = iconv_open("","");
10287 iconv(cd,NULL,NULL,NULL,NULL);
10293 if ac_fn_cxx_try_link
"$LINENO"; then :
10294 am_cv_lib_iconv
=yes
10295 am_cv_func_iconv
=yes
10297 rm -f core conftest.err conftest.
$ac_objext \
10298 conftest
$ac_exeext conftest.
$ac_ext
10299 LIBS
="$am_save_LIBS"
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10304 $as_echo "$am_cv_func_iconv" >&6; }
10305 if test "$am_cv_func_iconv" = yes; then
10307 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10310 if test "$am_cv_lib_iconv" = yes; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10312 $as_echo_n "checking how to link with libiconv... " >&6; }
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10314 $as_echo "$LIBICONV" >&6; }
10316 CPPFLAGS
="$am_save_CPPFLAGS"
10323 if test "$am_cv_func_iconv" = yes; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10325 $as_echo_n "checking for iconv declaration... " >&6; }
10326 if test "${am_cv_proto_iconv+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 #include <stdlib.h>
10339 #if defined(__STDC__) || defined(__cplusplus)
10340 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10353 if ac_fn_cxx_try_compile
"$LINENO"; then :
10354 am_cv_proto_iconv_arg1
=""
10356 am_cv_proto_iconv_arg1
="const"
10358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10359 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);"
10362 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10364 }$am_cv_proto_iconv" >&5
10366 }$am_cv_proto_iconv" >&6; }
10368 cat >>confdefs.h
<<_ACEOF
10369 #define ICONV_CONST $am_cv_proto_iconv_arg1
10375 ac_cpp
='$CPP $CPPFLAGS'
10376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10381 # Until we have in-tree GNU iconv:
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10387 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10388 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10389 $as_echo_n "(cached) " >&6
10391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 #include <locale.h>
10402 if ac_fn_c_try_link
"$LINENO"; then :
10403 am_cv_val_LC_MESSAGES
=yes
10405 am_cv_val_LC_MESSAGES
=no
10407 rm -f core conftest.err conftest.
$ac_objext \
10408 conftest
$ac_exeext conftest.
$ac_ext
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10411 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10412 if test $am_cv_val_LC_MESSAGES = yes; then
10414 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10421 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10422 if test "${am_cv_langinfo_codeset+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #include <langinfo.h>
10431 char* cs = nl_langinfo(CODESET);
10436 if ac_fn_c_try_link
"$LINENO"; then :
10437 am_cv_langinfo_codeset
=yes
10439 am_cv_langinfo_codeset
=no
10441 rm -f core conftest.err conftest.
$ac_objext \
10442 conftest
$ac_exeext conftest.
$ac_ext
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10446 $as_echo "$am_cv_langinfo_codeset" >&6; }
10447 if test $am_cv_langinfo_codeset = yes; then
10449 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10454 # We will need to find libiberty.h and ansidecl.h
10455 saved_CFLAGS
="$CFLAGS"
10456 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10457 saved_CXXFLAGS
="$CXXFLAGS"
10458 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10459 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10460 strsignal strstr stpcpy strverscmp \
10461 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10462 free
basename getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10464 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10466 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10467 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10468 $as_echo_n "(cached) " >&6
10470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10473 #define $ac_tr_decl 1
10475 #include "ansidecl.h"
10476 #include "system.h"
10482 char *(*pfn) = (char *(*)) $ac_func ;
10488 if ac_fn_c_try_compile
"$LINENO"; then :
10489 eval "gcc_cv_have_decl_$ac_func=yes"
10491 eval "gcc_cv_have_decl_$ac_func=no"
10493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10496 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10499 #define $ac_tr_decl 1
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10505 #define $ac_tr_decl 0
10513 for ac_func
in getrlimit setrlimit getrusage
10515 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10517 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10518 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10519 $as_echo_n "(cached) " >&6
10521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 #define $ac_tr_decl 1
10526 #include "ansidecl.h"
10527 #include "system.h"
10528 #ifdef HAVE_SYS_RESOURCE_H
10529 #include <sys/resource.h>
10537 char *(*pfn) = (char *(*)) $ac_func ;
10543 if ac_fn_c_try_compile
"$LINENO"; then :
10544 eval "gcc_cv_have_decl_$ac_func=yes"
10546 eval "gcc_cv_have_decl_$ac_func=no"
10548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10551 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10554 #define $ac_tr_decl 1
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10560 #define $ac_tr_decl 0
10568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10571 #include "ansidecl.h"
10572 #include "system.h"
10573 #ifdef HAVE_SYS_RESOURCE_H
10574 #include <sys/resource.h>
10585 if ac_fn_c_try_compile
"$LINENO"; then :
10589 $as_echo "#define rlim_t long" >>confdefs.h
10592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10594 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10595 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10596 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10597 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10598 for ac_func
in ldgetname
10600 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10603 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10604 $as_echo_n "(cached) " >&6
10606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 #define $ac_tr_decl 1
10611 #include "ansidecl.h"
10612 #include "system.h"
10613 #ifdef HAVE_LDFCN_H
10624 char *(*pfn) = (char *(*)) $ac_func ;
10630 if ac_fn_c_try_compile
"$LINENO"; then :
10631 eval "gcc_cv_have_decl_$ac_func=yes"
10633 eval "gcc_cv_have_decl_$ac_func=no"
10635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10638 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10640 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10641 #define $ac_tr_decl 1
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10647 #define $ac_tr_decl 0
10655 for ac_func
in times
10657 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10659 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10660 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10661 $as_echo_n "(cached) " >&6
10663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10666 #define $ac_tr_decl 1
10668 #include "ansidecl.h"
10669 #include "system.h"
10670 #ifdef HAVE_SYS_TIMES_H
10671 #include <sys/times.h>
10679 char *(*pfn) = (char *(*)) $ac_func ;
10685 if ac_fn_c_try_compile
"$LINENO"; then :
10686 eval "gcc_cv_have_decl_$ac_func=yes"
10688 eval "gcc_cv_have_decl_$ac_func=no"
10690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10693 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10695 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10696 #define $ac_tr_decl 1
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10702 #define $ac_tr_decl 0
10710 for ac_func
in sigaltstack
10712 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10714 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10715 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10716 $as_echo_n "(cached) " >&6
10718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 #define $ac_tr_decl 1
10723 #include "ansidecl.h"
10724 #include "system.h"
10725 #include <signal.h>
10732 char *(*pfn) = (char *(*)) $ac_func ;
10738 if ac_fn_c_try_compile
"$LINENO"; then :
10739 eval "gcc_cv_have_decl_$ac_func=yes"
10741 eval "gcc_cv_have_decl_$ac_func=no"
10743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10746 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10749 #define $ac_tr_decl 1
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10755 #define $ac_tr_decl 0
10763 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10766 ac_cpp
='$CXXCPP $CPPFLAGS'
10767 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10771 for ac_func
in madvise
10773 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10775 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10776 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10777 $as_echo_n "(cached) " >&6
10779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10782 #define $ac_tr_decl 1
10784 #include "ansidecl.h"
10785 #include "system.h"
10792 char *(*pfn) = (char *(*)) $ac_func ;
10798 if ac_fn_cxx_try_compile
"$LINENO"; then :
10799 eval "gcc_cv_have_decl_$ac_func=yes"
10801 eval "gcc_cv_have_decl_$ac_func=no"
10803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10806 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10809 #define $ac_tr_decl 1
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10815 #define $ac_tr_decl 0
10823 ac_cpp
='$CPP $CPPFLAGS'
10824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10829 # More time-related stuff.
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10831 $as_echo_n "checking for struct tms... " >&6; }
10832 if test "${ac_cv_struct_tms+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 #include "ansidecl.h"
10840 #include "system.h"
10841 #ifdef HAVE_SYS_TIMES_H
10842 #include <sys/times.h>
10853 if ac_fn_c_try_compile
"$LINENO"; then :
10854 ac_cv_struct_tms
=yes
10856 ac_cv_struct_tms
=no
10858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10861 $as_echo "$ac_cv_struct_tms" >&6; }
10862 if test $ac_cv_struct_tms = yes; then
10864 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10868 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10869 # revisit after autoconf 2.50.
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10871 $as_echo_n "checking for clock_t... " >&6; }
10872 if test "${gcc_cv_type_clock_t+set}" = set; then :
10873 $as_echo_n "(cached) " >&6
10876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 #include "ansidecl.h"
10880 #include "system.h"
10890 if ac_fn_c_try_compile
"$LINENO"; then :
10891 gcc_cv_type_clock_t
=yes
10893 gcc_cv_type_clock_t
=no
10895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10898 $as_echo "$gcc_cv_type_clock_t" >&6; }
10899 if test $gcc_cv_type_clock_t = yes; then
10901 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10905 # Check if F_SETLKW is supported by fcntl.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10907 $as_echo_n "checking for F_SETLKW... " >&6; }
10908 if test "${ac_cv_f_setlkw+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10925 return fcntl (1, F_SETLKW, &fl);
10930 if ac_fn_c_try_compile
"$LINENO"; then :
10935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10938 $as_echo "$ac_cv_f_setlkw" >&6; }
10939 if test $ac_cv_f_setlkw = yes; then
10941 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10945 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10946 CFLAGS
="$saved_CFLAGS"
10947 CXXFLAGS
="$saved_CXXFLAGS"
10949 # mkdir takes a single argument on some systems.
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10951 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10952 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10958 #include <sys/types.h>
10959 #ifdef HAVE_SYS_STAT_H
10960 # include <sys/stat.h>
10962 #ifdef HAVE_UNISTD_H
10963 # include <unistd.h>
10965 #ifdef HAVE_DIRECT_H
10966 # include <direct.h>
10976 if ac_fn_c_try_compile
"$LINENO"; then :
10977 gcc_cv_mkdir_takes_one_arg
=no
10979 gcc_cv_mkdir_takes_one_arg
=yes
10981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10984 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10985 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10987 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10998 # With Setjmp/Longjmp based exception handling.
10999 # Check whether --enable-sjlj-exceptions was given.
11000 if test "${enable_sjlj_exceptions+set}" = set; then :
11001 enableval
=$enable_sjlj_exceptions; case $target in
11003 if test $enableval != yes; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11005 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11010 force_sjlj_exceptions
=yes
11014 force_sjlj_exceptions
=yes
11018 force_sjlj_exceptions
=yes
11022 force_sjlj_exceptions
=no
11027 if test $force_sjlj_exceptions = yes; then
11028 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11030 cat >>confdefs.h
<<_ACEOF
11031 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11036 # --------------------------------------------------------
11037 # Build, host, and target specific configuration fragments
11038 # --------------------------------------------------------
11040 # Collect build-machine-specific information.
11041 .
${srcdir}/config.build
11043 # Collect host-machine-specific information.
11044 .
${srcdir}/config.
host
11048 # Collect target-machine-specific information.
11049 .
${srcdir}/config.gcc
11051 extra_objs
="${host_extra_objs} ${extra_objs}"
11052 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11054 # Default the target-machine variables that were not explicitly set.
11055 if test x
"$tm_file" = x
11056 then tm_file
=$cpu_type/$cpu_type.h
; fi
11058 if test x
"$extra_headers" = x
11059 then extra_headers
=; fi
11061 if test x
$md_file = x
11062 then md_file
=$cpu_type/$cpu_type.md
; fi
11064 if test x
$out_file = x
11065 then out_file
=$cpu_type/$cpu_type.c
; fi
11067 if test x
"$tmake_file" = x
11068 then tmake_file
=$cpu_type/t-
$cpu_type
11071 # Support --enable-initfini-array.
11072 if test x
$enable_initfini_array != xno
; then
11073 tm_file
="${tm_file} initfini-array.h"
11076 if test x
"$dwarf2" = xyes
11077 then tm_file
="$tm_file tm-dwarf2.h"
11080 # Say what files are being used for the output code and MD file.
11081 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11082 echo "Using \`$srcdir/config/$md_file' as machine description file."
11084 # If any of the xm_file variables contain nonexistent files, warn
11085 # about them and drop them.
11088 for x
in $build_xm_file; do
11089 if test -f $srcdir/config
/$x
11091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11095 build_xm_file
="$bx"
11098 for x
in $host_xm_file; do
11099 if test -f $srcdir/config
/$x
11101 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11102 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11108 for x
in $xm_file; do
11109 if test -f $srcdir/config
/$x
11111 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11112 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11118 for f
in $tm_file; do
11121 if test $count = ax
; then
11122 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11124 echo "Using the following target machine macro files:"
11125 for f
in $tm_file; do
11126 echo " $srcdir/config/$f"
11130 if test x
$need_64bit_hwint = xyes
; then
11132 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11136 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11138 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11142 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11144 cat >>confdefs.h
<<_ACEOF
11145 #define HAVE_GNU_LD $gnu_ld_bool
11149 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11151 cat >>confdefs.h
<<_ACEOF
11152 #define HAVE_GNU_AS $gnu_as_bool
11157 for f
in $host_xm_file; do
11160 if test $count = a
; then
11162 elif test $count = ax
; then
11163 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11165 echo "Using the following host machine macro files:"
11166 for f
in $host_xm_file; do
11167 echo " $srcdir/config/$f"
11170 echo "Using ${out_host_hook_obj} for host machine hooks."
11172 if test "$host_xm_file" != "$build_xm_file"; then
11174 for f
in $build_xm_file; do
11177 if test $count = a
; then
11179 elif test $count = ax
; then
11180 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11182 echo "Using the following build machine macro files:"
11183 for f
in $build_xm_file; do
11184 echo " $srcdir/config/$f"
11189 if test -n "$configured_native_system_header_dir"; then
11190 native_system_header_dir
=$configured_native_system_header_dir
11192 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11196 powerpc
*-*-darwin*)
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11198 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11199 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 #include <sys/cdefs.h>
11206 #include <sys/signal.h>
11207 #include <ucontext.h>
11208 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11211 if ac_fn_c_try_compile
"$LINENO"; then :
11212 gcc_cv_mcontext_underscores
=no
11214 gcc_cv_mcontext_underscores
=yes
11216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11219 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11220 if test $gcc_cv_mcontext_underscores = yes; then
11222 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11232 # Check if a valid thread package
11233 case ${enable_threads} in
11236 target_thread_file
='single'
11240 target_thread_file
='single'
11242 aix | dce | lynx | mipssde | posix | rtems | \
11243 single | tpf | vxworks | win32
)
11244 target_thread_file
=${enable_threads}
11247 echo "${enable_threads} is an unknown thread package" 1>&2
11252 if test x
${thread_file} = x
; then
11253 # No thread file set by target-specific clauses in config.gcc,
11254 # so use file chosen by default logic above
11255 thread_file
=${target_thread_file}
11263 if test x
$enable___cxa_atexit = xyes || \
11264 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11265 if test x
$host = x
$target; then
11267 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11268 # keyed to flag_use_cxa_atexit
11276 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11277 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11280 echo "__cxa_atexit can't be enabled on this target"
11286 # We can't check for __cxa_atexit when building a cross, so assume
11290 if test x
$use_cxa_atexit = xyes
; then
11292 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11297 # Look for a file containing extra machine modes.
11298 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11299 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11302 cat >>confdefs.h
<<_ACEOF
11303 #define EXTRA_MODES_FILE "config/$extra_modes"
11308 # Convert extra_options into a form suitable for Makefile use.
11311 for f
in $extra_options; do
11312 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11313 all_opt_files
="$all_opt_files $srcdir/config/$f"
11317 # auto-host.h is the file containing items generated by autoconf and is
11318 # the first file included by config.h.
11319 # If host=build, it is correct to have bconfig include auto-host.h
11320 # as well. If host!=build, we are in error and need to do more
11321 # work to find out the build config parameters.
11322 if test x
$host = x
$build
11324 build_auto
=auto-host.h
11326 # We create a subdir, then run autoconf in the subdir.
11327 # To prevent recursion we set host and build for the new
11328 # invocation of configure to the build for this invocation
11335 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11336 *) realsrcdir
=..
/${srcdir};;
11338 # Clearing GMPINC is necessary to prevent host headers being
11339 # used by the build compiler. Defining GENERATOR_FILE stops
11340 # system.h from including gmp.h.
11341 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11342 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11343 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11344 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11345 ${realsrcdir}/configure \
11346 --enable-languages=${enable_languages-all} \
11347 --target=$target_alias --host=$build_alias --build=$build_alias
11349 # We just finished tests for the build machine, so rename
11350 # the file auto-build.h in the gcc directory.
11351 mv auto-host.h ..
/auto-build.h
11354 build_auto
=auto-build.h
11358 tm_file
="${tm_file} defaults.h"
11359 tm_p_file
="${tm_p_file} tm-preds.h"
11360 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11361 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11362 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11363 # put this back in temporarily.
11364 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11370 # Compile in configure arguments.
11371 if test -f configargs.h
; then
11372 # Being re-configured.
11373 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11374 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11376 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11379 # Double all backslashes and backslash all quotes to turn
11380 # gcc_config_arguments into a C string.
11381 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11382 $gcc_config_arguments
11384 gcc_config_arguments_str
=`cat conftest.out`
11387 cat > configargs.h
<<EOF
11388 /* Generated automatically. */
11389 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11390 static const char thread_model[] = "$thread_file";
11392 static const struct {
11393 const char *name, *value;
11394 } configure_default_options[] = $configure_default_options;
11397 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11398 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11399 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11400 if test -f $srcdir/REVISION
; then
11401 gcc_REVISION
=`cat $srcdir/REVISION`
11405 cat > plugin-version.h
<<EOF
11406 #include "configargs.h"
11408 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11409 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11410 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11411 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11413 static char basever[] = "$gcc_BASEVER";
11414 static char datestamp[] = "$gcc_DATESTAMP";
11415 static char devphase[] = "$gcc_DEVPHASE";
11416 static char revision[] = "$gcc_REVISION";
11418 /* FIXME plugins: We should make the version information more precise.
11419 One way to do is to add a checksum. */
11421 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11422 devphase, revision,
11423 configuration_arguments};
11426 # Internationalization
11427 # If we haven't got the data from the intl directory,
11428 # assume NLS is disabled.
11437 if test -f ..
/intl
/config.intl
; then
11438 . ..
/intl
/config.intl
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11441 $as_echo_n "checking whether NLS is requested... " >&6; }
11442 if test x
"$USE_NLS" != xyes
; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447 $as_echo "yes" >&6; }
11449 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11453 $as_echo_n "checking for catalogs to be installed... " >&6; }
11454 # Look for .po and .gmo files in the source directory.
11457 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11458 # If there aren't any .gmo files the shell will give us the
11459 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11461 case "$cat" in *\
**)
11464 # The quadruple backslash is collapsed to a double backslash
11465 # by the backticks, then collapsed again by the double quotes,
11466 # leaving us with one backslash in the sed expression (right
11467 # before the dot that mustn't act as a wildcard).
11468 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11469 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11470 # The user is allowed to set LINGUAS to a list of languages to
11471 # install catalogs for. If it's empty that means "all of them."
11472 if test "x$LINGUAS" = x
; then
11473 CATALOGS
="$CATALOGS $cat"
11474 XLINGUAS
="$XLINGUAS $lang"
11476 case "$LINGUAS" in *$lang*)
11477 CATALOGS
="$CATALOGS $cat"
11478 XLINGUAS
="$XLINGUAS $lang"
11483 LINGUAS
="$XLINGUAS"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11485 $as_echo "$LINGUAS" >&6; }
11498 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11499 # -liconv on the link line twice.
11500 case "$LIBINTL" in *$LIBICONV*)
11504 # Check whether --enable-secureplt was given.
11505 if test "${enable_secureplt+set}" = set; then :
11506 enableval
=$enable_secureplt;
11510 # Check whether --enable-leading-mingw64-underscores was given.
11511 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11512 enableval
=$enable_leading_mingw64_underscores;
11515 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11517 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11521 # Check whether --enable-cld was given.
11522 if test "${enable_cld+set}" = set; then :
11523 enableval
=$enable_cld;
11529 # Check whether --enable-frame-pointer was given.
11530 if test "${enable_frame_pointer+set}" = set; then :
11531 enableval
=$enable_frame_pointer;
11535 linux
* | darwin
[8912]*)
11536 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11538 enable_frame_pointer
=no
11541 enable_frame_pointer
=yes
11548 # Windows32 Registry support for specifying GCC installation paths.
11549 # Check whether --enable-win32-registry was given.
11550 if test "${enable_win32_registry+set}" = set; then :
11551 enableval
=$enable_win32_registry;
11556 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11557 if test "x$enable_win32_registry" != xno
; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11559 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11560 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
11563 ac_func_search_save_LIBS
=$LIBS
11564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11573 char RegOpenKeyExA ();
11577 return RegOpenKeyExA ();
11582 for ac_lib
in '' advapi32
; do
11583 if test -z "$ac_lib"; then
11584 ac_res
="none required"
11587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11589 if ac_fn_c_try_link
"$LINENO"; then :
11590 ac_cv_search_RegOpenKeyExA
=$ac_res
11592 rm -f core conftest.err conftest.
$ac_objext \
11594 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11598 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11601 ac_cv_search_RegOpenKeyExA
=no
11603 rm conftest.
$ac_ext
11604 LIBS
=$ac_func_search_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11607 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11608 ac_res
=$ac_cv_search_RegOpenKeyExA
11609 if test "$ac_res" != no
; then :
11610 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11613 enable_win32_registry
=no
11618 if test "x$enable_win32_registry" != xno
; then
11620 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11623 if test "x$enable_win32_registry" != xyes \
11624 && test "x$enable_win32_registry" != x
; then
11626 cat >>confdefs.h
<<_ACEOF
11627 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11635 # Get an absolute path to the GCC top-level source directory
11636 holddir
=`${PWDCMD-pwd}`
11638 topdir
=`${PWDCMD-pwd}`
11641 # Conditionalize the makefile for this host machine.
11643 for f
in ${host_xmake_file}
11645 if test -f ${srcdir}/config
/$f
11647 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11651 # Conditionalize the makefile for this target machine.
11653 for f
in ${tmake_file}
11655 if test -f ${srcdir}/config
/$f
11657 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11660 tmake_file
="${tmake_file_}"
11662 out_object_file
=`basename $out_file .c`.o
11663 common_out_object_file
=`basename $common_out_file .c`.o
11665 tm_file_list
="options.h"
11666 tm_include_list
="options.h insn-constants.h"
11667 for f
in $tm_file; do
11670 f
=`echo $f | sed 's/^..//'`
11671 tm_file_list
="${tm_file_list} $f"
11672 tm_include_list
="${tm_include_list} $f"
11675 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11676 tm_include_list
="${tm_include_list} $f"
11679 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11680 tm_include_list
="${tm_include_list} config/$f"
11687 for f
in $tm_p_file; do
11690 tm_p_file_list
="${tm_p_file_list} $f"
11691 tm_p_include_list
="${tm_p_include_list} $f"
11694 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11695 tm_p_include_list
="${tm_p_include_list} config/$f"
11701 for f
in $xm_file; do
11704 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11705 xm_include_list
="${xm_include_list} $f"
11708 xm_file_list
="${xm_file_list} $f"
11709 xm_include_list
="${xm_include_list} $f"
11712 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11713 xm_include_list
="${xm_include_list} config/$f"
11719 host_xm_include_list
=
11720 for f
in $host_xm_file; do
11723 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11724 host_xm_include_list
="${host_xm_include_list} $f"
11727 host_xm_file_list
="${host_xm_file_list} $f"
11728 host_xm_include_list
="${host_xm_include_list} $f"
11731 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11732 host_xm_include_list
="${host_xm_include_list} config/$f"
11737 build_xm_file_list
=
11738 for f
in $build_xm_file; do
11741 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11742 build_xm_include_list
="${build_xm_include_list} $f"
11744 auto-build.h | auto-host.h
)
11745 build_xm_file_list
="${build_xm_file_list} $f"
11746 build_xm_include_list
="${build_xm_include_list} $f"
11749 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11750 build_xm_include_list
="${build_xm_include_list} config/$f"
11755 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11756 # cross-compiler which does not use the native headers and libraries.
11757 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11760 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11762 if test "x$with_build_sysroot" != x
; then
11763 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11765 # This value is used, even on a native system, because
11766 # CROSS_SYSTEM_HEADER_DIR is just
11767 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11768 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11771 if test x
$host != x
$target
11773 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11775 SYSTEM_HEADER_DIR
=$build_system_header_dir
11776 case "$host","$target" in
11777 # Darwin crosses can use the host system's libraries and headers,
11778 # because of the fat library support. Of course, it must be the
11779 # same version of Darwin on both sides. Allow the user to
11780 # just say --target=foo-darwin without a version number to mean
11781 # "the version on this system".
11782 *-*-darwin*,*-*-darwin*)
11783 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11784 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11785 if test $hostos = $targetos -o $targetos = darwin
; then
11787 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11792 i?
86-*-*,x86_64-
*-* \
11793 | powerpc
*-*-*,powerpc64
*-*-*)
11794 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11799 if test "x$with_headers" = x
; then
11806 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11807 SYSTEM_HEADER_DIR
=$build_system_header_dir
11810 # If this is a cross-compiler that does not
11811 # have its own set of headers then define
11814 # If this is using newlib, without having the headers available now,
11815 # then define inhibit_libc in LIBGCC2_CFLAGS.
11816 # This prevents libgcc2 from containing any code which requires libc
11818 : ${inhibit_libc=false}
11819 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11820 test x
$with_newlib = xyes
; } &&
11821 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11826 # When building gcc with a cross-compiler, we need to adjust things so
11827 # that the generator programs are still built with the native compiler.
11828 # Also, we cannot run fixincludes.
11830 # These are the normal (build=host) settings:
11831 CC_FOR_BUILD
='$(CC)'
11832 CXX_FOR_BUILD
='$(CXX)'
11833 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11834 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11835 BUILD_LDFLAGS
='$(LDFLAGS)'
11836 STMP_FIXINC
=stmp-fixinc
11838 # And these apply if build != host, or we are generating coverage data
11839 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11841 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11842 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11843 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11846 # Expand extra_headers to include complete path.
11847 # This substitutes for lots of t-* files.
11848 extra_headers_list
=
11849 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11850 for file in ${extra_headers} ; do
11851 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11854 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11855 if test x
"$use_gcc_tgmath" = xyes
11856 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11859 # Define collect2 in Makefile.
11860 case $host_can_use_collect2 in
11862 *) collect2
='collect2$(exeext)' ;;
11866 # Add a definition of USE_COLLECT2 if system wants one.
11867 case $use_collect2 in
11868 no
) use_collect2
= ;;
11871 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11872 xm_defines
="${xm_defines} USE_COLLECT2"
11873 case $host_can_use_collect2 in
11875 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11882 cat >>confdefs.h
<<_ACEOF
11883 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11887 # ---------------------------
11888 # Assembler & linker features
11889 # ---------------------------
11891 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11892 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11893 # However when ld-new is first executed from the build tree, libtool will
11894 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11895 # to the build tree. While doing this we need to use the previous-stage
11896 # linker, or we have an infinite loop. The presence of a shell script as
11897 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11898 # the gcc/collect-ld script. So we need to know how libtool works, or
11899 # exec-tool will fail.
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11905 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11910 macro_version
='2.2.7a'
11911 macro_revision
='1.3134'
11925 ltmain
="$ac_aux_dir/ltmain.sh"
11927 # Backslashify metacharacters that are still active within
11928 # double-quoted strings.
11929 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11931 # Same as above, but do not quote variable references.
11932 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11934 # Sed substitution to delay expansion of an escaped shell variable in a
11935 # double_quote_subst'ed string.
11936 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11938 # Sed substitution to delay expansion of an escaped single quote.
11939 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11941 # Sed substitution to avoid accidental globbing in evaled expressions
11942 no_glob_subst
='s/\*/\\\*/g'
11944 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11946 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11949 $as_echo_n "checking how to print strings... " >&6; }
11950 # Test print first, because it will be a builtin if present.
11951 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11952 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11954 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11957 # Use this function as a fallback that always works.
11958 func_fallback_echo ()
11960 eval 'cat <<_LTECHO_EOF
11964 ECHO='func_fallback_echo
'
11967 # func_echo_all arg...
11968 # Invoke $ECHO with all args, space-separated.
11975 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11976 $as_echo "printf" >&6; } ;;
11977 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11978 $as_echo "print -r" >&6; } ;;
11979 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11980 $as_echo "cat" >&6; } ;;
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11997 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11998 if test "${ac_cv_path_SED+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12001 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12002 for ac_i in 1 2 3 4 5 6 7; do
12003 ac_script="$ac_script$as_nl$ac_script"
12005 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12006 { ac_script=; unset ac_script;}
12007 if test -z "$SED"; then
12008 ac_path_SED_found=false
12009 # Loop through the user's path and
test for each of PROGNAME-LIST
12010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12011 for as_dir
in $PATH
12014 test -z "$as_dir" && as_dir
=.
12015 for ac_prog
in sed gsed
; do
12016 for ac_exec_ext
in '' $ac_executable_extensions; do
12017 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12018 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12019 # Check for GNU ac_path_SED and select it if it is found.
12020 # Check for GNU $ac_path_SED
12021 case `"$ac_path_SED" --version 2>&1` in
12023 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12026 $as_echo_n 0123456789 >"conftest.in"
12029 cat "conftest.in" "conftest.in" >"conftest.tmp"
12030 mv "conftest.tmp" "conftest.in"
12031 cp "conftest.in" "conftest.nl"
12032 $as_echo '' >> "conftest.nl"
12033 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12034 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12035 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12036 if test $ac_count -gt ${ac_path_SED_max-0}; then
12037 # Best one so far, save it but keep looking for a better one
12038 ac_cv_path_SED
="$ac_path_SED"
12039 ac_path_SED_max
=$ac_count
12041 # 10*(2^10) chars as input seems more than enough
12042 test $ac_count -gt 10 && break
12044 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12047 $ac_path_SED_found && break 3
12052 if test -z "$ac_cv_path_SED"; then
12053 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12056 ac_cv_path_SED
=$SED
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12061 $as_echo "$ac_cv_path_SED" >&6; }
12062 SED
="$ac_cv_path_SED"
12065 test -z "$SED" && SED
=sed
12066 Xsed
="$SED -e 1s/^X//"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12079 $as_echo_n "checking for fgrep... " >&6; }
12080 if test "${ac_cv_path_FGREP+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12083 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12084 then ac_cv_path_FGREP
="$GREP -F"
12086 if test -z "$FGREP"; then
12087 ac_path_FGREP_found
=false
12088 # Loop through the user's path and test for each of PROGNAME-LIST
12089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12090 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12093 test -z "$as_dir" && as_dir
=.
12094 for ac_prog
in fgrep
; do
12095 for ac_exec_ext
in '' $ac_executable_extensions; do
12096 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12097 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12098 # Check for GNU ac_path_FGREP and select it if it is found.
12099 # Check for GNU $ac_path_FGREP
12100 case `"$ac_path_FGREP" --version 2>&1` in
12102 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12105 $as_echo_n 0123456789 >"conftest.in"
12108 cat "conftest.in" "conftest.in" >"conftest.tmp"
12109 mv "conftest.tmp" "conftest.in"
12110 cp "conftest.in" "conftest.nl"
12111 $as_echo 'FGREP' >> "conftest.nl"
12112 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12113 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12114 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12115 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12116 # Best one so far, save it but keep looking for a better one
12117 ac_cv_path_FGREP
="$ac_path_FGREP"
12118 ac_path_FGREP_max
=$ac_count
12120 # 10*(2^10) chars as input seems more than enough
12121 test $ac_count -gt 10 && break
12123 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12126 $ac_path_FGREP_found && break 3
12131 if test -z "$ac_cv_path_FGREP"; then
12132 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12135 ac_cv_path_FGREP
=$FGREP
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12141 $as_echo "$ac_cv_path_FGREP" >&6; }
12142 FGREP
="$ac_cv_path_FGREP"
12145 test -z "$GREP" && GREP
=grep
12165 # Check whether --with-gnu-ld was given.
12166 if test "${with_gnu_ld+set}" = set; then :
12167 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12173 if test "$GCC" = yes; then
12174 # Check if gcc -print-prog-name=ld gives a path.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12176 $as_echo_n "checking for ld used by $CC... " >&6; }
12179 # gcc leaves a trailing carriage return which upsets mingw
12180 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12182 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12185 # Accept absolute paths.
12187 re_direlt
='/[^/][^/]*/\.\./'
12188 # Canonicalize the pathname of ld
12189 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12190 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12191 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12193 test -z "$LD" && LD
="$ac_prog"
12196 # If it fails, then pretend we aren't using GCC.
12200 # If it is relative, then search for the first ld in PATH.
12201 with_gnu_ld
=unknown
12204 elif test "$with_gnu_ld" = yes; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12206 $as_echo_n "checking for GNU ld... " >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12209 $as_echo_n "checking for non-GNU ld... " >&6; }
12211 if test "${lt_cv_path_LD+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12214 if test -z "$LD"; then
12215 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12216 for ac_dir
in $PATH; do
12218 test -z "$ac_dir" && ac_dir
=.
12219 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12220 lt_cv_path_LD
="$ac_dir/$ac_prog"
12221 # Check to see if the program is GNU ld. I'd rather use --version,
12222 # but apparently some variants of GNU ld only accept -v.
12223 # Break only if it was the GNU/non-GNU ld that we prefer.
12224 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12225 *GNU
* |
*'with BFD'*)
12226 test "$with_gnu_ld" != no
&& break
12229 test "$with_gnu_ld" != yes && break
12236 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12240 LD
="$lt_cv_path_LD"
12241 if test -n "$LD"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12243 $as_echo "$LD" >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12248 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12251 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12254 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12255 case `$LD -v 2>&1 </dev/null` in
12256 *GNU
* |
*'with BFD'*)
12257 lt_cv_prog_gnu_ld
=yes
12260 lt_cv_prog_gnu_ld
=no
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12265 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12266 with_gnu_ld
=$lt_cv_prog_gnu_ld
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12277 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12278 if test "${lt_cv_path_NM+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12281 if test -n "$NM"; then
12282 # Let the user override the test.
12283 lt_cv_path_NM
="$NM"
12285 lt_nm_to_check
="${ac_tool_prefix}nm"
12286 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12287 lt_nm_to_check
="$lt_nm_to_check nm"
12289 for lt_tmp_nm
in $lt_nm_to_check; do
12290 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12291 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12293 test -z "$ac_dir" && ac_dir
=.
12294 tmp_nm
="$ac_dir/$lt_tmp_nm"
12295 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12296 # Check to see if the nm accepts a BSD-compat flag.
12297 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12298 # nm: unknown option "B" ignored
12299 # Tru64's nm complains that /dev/null is an invalid object file
12300 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12301 */dev
/null
* |
*'Invalid file or object type'*)
12302 lt_cv_path_NM
="$tmp_nm -B"
12306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12308 lt_cv_path_NM
="$tmp_nm -p"
12312 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12313 continue # so that we can try to find one that supports BSD flags
12322 : ${lt_cv_path_NM=no}
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12326 $as_echo "$lt_cv_path_NM" >&6; }
12327 if test "$lt_cv_path_NM" != "no"; then
12328 NM
="$lt_cv_path_NM"
12330 # Didn't find any BSD compatible name lister, look for dumpbin.
12331 if test -n "$DUMPBIN"; then :
12332 # Let the user override the test.
12334 if test -n "$ac_tool_prefix"; then
12335 for ac_prog
in dumpbin
"link -dump"
12337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12338 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12344 if test -n "$DUMPBIN"; then
12345 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12348 for as_dir
in $PATH
12351 test -z "$as_dir" && as_dir
=.
12352 for ac_exec_ext
in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 DUMPBIN
=$ac_cv_prog_DUMPBIN
12365 if test -n "$DUMPBIN"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12367 $as_echo "$DUMPBIN" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12374 test -n "$DUMPBIN" && break
12377 if test -z "$DUMPBIN"; then
12378 ac_ct_DUMPBIN
=$DUMPBIN
12379 for ac_prog
in dumpbin
"link -dump"
12381 # Extract the first word of "$ac_prog", so it can be a program name with args.
12382 set dummy
$ac_prog; ac_word
=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12388 if test -n "$ac_ct_DUMPBIN"; then
12389 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12392 for as_dir
in $PATH
12395 test -z "$as_dir" && as_dir
=.
12396 for ac_exec_ext
in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12409 if test -n "$ac_ct_DUMPBIN"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12411 $as_echo "$ac_ct_DUMPBIN" >&6; }
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12418 test -n "$ac_ct_DUMPBIN" && break
12421 if test "x$ac_ct_DUMPBIN" = x
; then
12424 case $cross_compiling:$ac_tool_warned in
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12428 ac_tool_warned
=yes ;;
12430 DUMPBIN
=$ac_ct_DUMPBIN
12434 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12436 DUMPBIN
="$DUMPBIN -symbols"
12444 if test "$DUMPBIN" != ":"; then
12448 test -z "$NM" && NM
=nm
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12456 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12457 if test "${lt_cv_nm_interface+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12460 lt_cv_nm_interface
="BSD nm"
12461 echo "int some_variable = 0;" > conftest.
$ac_ext
12462 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12463 (eval "$ac_compile" 2>conftest.err
)
12464 cat conftest.err
>&5
12465 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12467 cat conftest.err
>&5
12468 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12469 cat conftest.out
>&5
12470 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12471 lt_cv_nm_interface
="MS dumpbin"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12476 $as_echo "$lt_cv_nm_interface" >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12479 $as_echo_n "checking whether ln -s works... " >&6; }
12481 if test "$LN_S" = "ln -s"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12486 $as_echo "no, using $LN_S" >&6; }
12489 # find the maximum length of command line arguments
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12491 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12492 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12500 # On DJGPP, this test can blow up pretty badly due to problems in libc
12501 # (any single argument exceeding 2000 bytes causes a buffer overrun
12502 # during glob expansion). Even if it were fixed, the result of this
12503 # check would be larger than it should be.
12504 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12508 # Under GNU Hurd, this test is not required because there is
12509 # no limit to the length of command line arguments.
12510 # Libtool will interpret -1 as no limit whatsoever
12511 lt_cv_sys_max_cmd_len
=-1;
12514 cygwin
* | mingw
* | cegcc
*)
12515 # On Win9x/ME, this test blows up -- it succeeds, but takes
12516 # about 5 minutes as the teststring grows exponentially.
12517 # Worse, since 9x/ME are not pre-emptively multitasking,
12518 # you end up with a "frozen" computer, even though with patience
12519 # the test eventually succeeds (with a max line length of 256k).
12520 # Instead, let's just punt: use the minimum linelength reported by
12521 # all of the supported platforms: 8192 (on NT/2K/XP).
12522 lt_cv_sys_max_cmd_len
=8192;
12526 # On MiNT this can take a long time and run out of memory.
12527 lt_cv_sys_max_cmd_len
=8192;
12531 # On AmigaOS with pdksh, this test takes hours, literally.
12532 # So we just punt and use a minimum line length of 8192.
12533 lt_cv_sys_max_cmd_len
=8192;
12536 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12537 # This has been around since 386BSD, at least. Likely further.
12538 if test -x /sbin
/sysctl
; then
12539 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12540 elif test -x /usr
/sbin
/sysctl
; then
12541 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12543 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12545 # And add a safety zone
12546 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12547 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12551 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12552 lt_cv_sys_max_cmd_len
=196608
12556 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12557 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12558 # nice to cause kernel panics so lets avoid the loop below.
12559 # First set a reasonable default.
12560 lt_cv_sys_max_cmd_len
=16384
12562 if test -x /sbin
/sysconfig
; then
12563 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12564 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12569 lt_cv_sys_max_cmd_len
=102400
12571 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12572 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12573 if test -n "$kargmax"; then
12574 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12576 lt_cv_sys_max_cmd_len
=32768
12580 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12581 if test -n "$lt_cv_sys_max_cmd_len"; then
12582 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12583 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12585 # Make teststring a little bigger before we do anything with it.
12586 # a 1K string should be a reasonable start.
12587 for i
in 1 2 3 4 5 6 7 8 ; do
12588 teststring
=$teststring$teststring
12590 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12591 # If test is not a shell built-in, we'll probably end up computing a
12592 # maximum length that is only half of the actual maximum length, but
12594 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12595 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12596 test $i != 17 # 1/2 MB should be enough
12599 teststring
=$teststring$teststring
12601 # Only check the string length outside the loop.
12602 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12604 # Add a significant safety factor because C++ compilers can tack on
12605 # massive amounts of additional arguments before passing them to the
12606 # linker. It appears as though 1/2 is a usable value.
12607 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12614 if test -n $lt_cv_sys_max_cmd_len ; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12616 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12619 $as_echo "none" >&6; }
12621 max_cmd_len
=$lt_cv_sys_max_cmd_len
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12633 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12634 # Try some XSI features
12636 ( _lt_dummy
="a/b/c"
12637 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12639 && eval 'test $(( 1 + 1 )) -eq 2 \
12640 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12643 $as_echo "$xsi_shell" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12647 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12649 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12651 && lt_shell_append=yes
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12653 $as_echo "$lt_shell_append" >&6; }
12656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12666 # test EBCDIC or ASCII
12667 case `echo X|tr X '\101'` in
12668 A) # ASCII based system
12669 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12670 lt_SP2NL='tr \040 \012'
12671 lt_NL2SP='tr \015\012 \040\040'
12673 *) # EBCDIC based system
12674 lt_SP2NL='tr \100 \n'
12675 lt_NL2SP='tr \r\n \100\100'
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12688 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12689 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12690 $as_echo_n "(cached
) " >&6
12692 lt_cv_ld_reload_flag='-r'
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12695 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12696 reload_flag=$lt_cv_ld_reload_flag
12697 case $reload_flag in
12699 *) reload_flag=" $reload_flag" ;;
12701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12704 if test "$GCC" = yes; then
12705 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12720 if test -n "$ac_tool_prefix"; then
12721 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12722 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12724 $as_echo_n "checking
for $ac_word...
" >&6; }
12725 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12726 $as_echo_n "(cached
) " >&6
12728 if test -n "$OBJDUMP"; then
12729 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $PATH
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12738 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12748 OBJDUMP=$ac_cv_prog_OBJDUMP
12749 if test -n "$OBJDUMP"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12751 $as_echo "$OBJDUMP" >&6; }
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12754 $as_echo "no
" >&6; }
12759 if test -z "$ac_cv_prog_OBJDUMP"; then
12760 ac_ct_OBJDUMP=$OBJDUMP
12761 # Extract the first word of "objdump
", so it can be a program name with args.
12762 set dummy objdump; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12764 $as_echo_n "checking
for $ac_word...
" >&6; }
12765 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12766 $as_echo_n "(cached
) " >&6
12768 if test -n "$ac_ct_OBJDUMP"; then
12769 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12788 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12789 if test -n "$ac_ct_OBJDUMP"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12791 $as_echo "$ac_ct_OBJDUMP" >&6; }
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12794 $as_echo "no
" >&6; }
12797 if test "x
$ac_ct_OBJDUMP" = x; then
12800 case $cross_compiling:$ac_tool_warned in
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12803 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12804 ac_tool_warned=yes ;;
12806 OBJDUMP=$ac_ct_OBJDUMP
12809 OBJDUMP="$ac_cv_prog_OBJDUMP"
12812 test -z "$OBJDUMP" && OBJDUMP=objdump
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12823 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12824 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12825 $as_echo_n "(cached
) " >&6
12827 lt_cv_file_magic_cmd='$MAGIC_CMD'
12828 lt_cv_file_magic_test_file=
12829 lt_cv_deplibs_check_method='unknown'
12830 # Need to set the preceding variable on all platforms that support
12831 # interlibrary dependencies.
12832 # 'none' -- dependencies not supported.
12833 # `unknown' -- same as none, but documents that we really don't know.
12834 # 'pass_all' -- all dependencies passed with no checks.
12835 # 'test_compile' -- check by making test program.
12836 # 'file_magic [[regex]]' -- check by looking for files in library path
12837 # which responds to the $file_magic_cmd with a given extended regex.
12838 # If you have `file' or equivalent on your system and you're not sure
12839 # whether `pass_all' will *always* work, you probably want this one.
12843 lt_cv_deplibs_check_method=pass_all
12847 lt_cv_deplibs_check_method=pass_all
12851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12852 lt_cv_file_magic_cmd='/usr/bin/file -L'
12853 lt_cv_file_magic_test_file=/shlib/libc.so
12857 # func_win32_libid is a shell function defined in ltmain.sh
12858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12859 lt_cv_file_magic_cmd='func_win32_libid'
12863 # Base MSYS/MinGW do not provide the 'file' command needed by
12864 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12865 # unless we find 'file', for example because we are cross-compiling.
12866 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12867 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12869 lt_cv_file_magic_cmd='func_win32_libid'
12871 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12872 lt_cv_file_magic_cmd='$OBJDUMP -f'
12877 # use the weaker test based on 'objdump'. See mingw*.
12878 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12879 lt_cv_file_magic_cmd='$OBJDUMP -f'
12882 darwin* | rhapsody*)
12883 lt_cv_deplibs_check_method=pass_all
12886 freebsd* | dragonfly*)
12887 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12890 # Not sure whether the presence of OpenBSD here was a mistake.
12891 # Let's accept both of them until this is cleared up.
12892 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12893 lt_cv_file_magic_cmd=/usr/bin/file
12894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12898 lt_cv_deplibs_check_method=pass_all
12903 lt_cv_deplibs_check_method=pass_all
12907 lt_cv_deplibs_check_method=pass_all
12910 hpux10.20* | hpux11*)
12911 lt_cv_file_magic_cmd=/usr/bin/file
12914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12915 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12918 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]'
12919 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12923 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12929 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12933 irix5* | irix6* | nonstopux*)
12935 *-32|*"-32 ") libmagic=32-bit;;
12936 *-n32|*"-n32 ") libmagic=N32;;
12937 *-64|*"-64 ") libmagic=64-bit;;
12938 *) libmagic=never-match;;
12940 lt_cv_deplibs_check_method=pass_all
12943 # This must be Linux ELF.
12944 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12945 lt_cv_deplibs_check_method=pass_all
12949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12958 lt_cv_file_magic_cmd=/usr/bin/file
12959 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12963 lt_cv_deplibs_check_method=pass_all
12967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12974 osf3* | osf4* | osf5*)
12975 lt_cv_deplibs_check_method=pass_all
12979 lt_cv_deplibs_check_method=pass_all
12983 lt_cv_deplibs_check_method=pass_all
12986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12987 lt_cv_deplibs_check_method=pass_all
12991 case $host_vendor in
12993 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]'
12994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12997 lt_cv_deplibs_check_method=pass_all
13000 lt_cv_file_magic_cmd='/bin/file'
13001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13004 lt_cv_file_magic_cmd='/bin/file'
13005 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13006 lt_cv_file_magic_test_file=/lib/libc.so
13009 lt_cv_deplibs_check_method=pass_all
13012 lt_cv_deplibs_check_method=pass_all
13018 lt_cv_deplibs_check_method=pass_all
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13024 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13025 file_magic_cmd=$lt_cv_file_magic_cmd
13026 deplibs_check_method=$lt_cv_deplibs_check_method
13027 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13040 if test -n "$ac_tool_prefix"; then
13041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13042 set dummy ${ac_tool_prefix}ar; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13044 $as_echo_n "checking
for $ac_word...
" >&6; }
13045 if test "${ac_cv_prog_AR+set}" = set; then :
13046 $as_echo_n "(cached
) " >&6
13048 if test -n "$AR"; then
13049 ac_cv_prog_AR="$AR" # Let the user override the test.
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058 ac_cv_prog_AR="${ac_tool_prefix}ar"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13069 if test -n "$AR"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13071 $as_echo "$AR" >&6; }
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13074 $as_echo "no
" >&6; }
13079 if test -z "$ac_cv_prog_AR"; then
13081 # Extract the first word of "ar", so it can be a program name with args.
13082 set dummy ar; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13084 $as_echo_n "checking
for $ac_word...
" >&6; }
13085 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13086 $as_echo_n "(cached
) " >&6
13088 if test -n "$ac_ct_AR"; then
13089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098 ac_cv_prog_ac_ct_AR="ar"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13109 if test -n "$ac_ct_AR"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13111 $as_echo "$ac_ct_AR" >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13114 $as_echo "no
" >&6; }
13117 if test "x
$ac_ct_AR" = x; then
13120 case $cross_compiling:$ac_tool_warned in
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13123 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13124 ac_tool_warned=yes ;;
13129 AR="$ac_cv_prog_AR"
13132 test -z "$AR" && AR=ar
13133 test -z "$AR_FLAGS" && AR_FLAGS=cru
13145 if test -n "$ac_tool_prefix"; then
13146 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13147 set dummy ${ac_tool_prefix}strip; ac_word=$2
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13149 $as_echo_n "checking
for $ac_word...
" >&6; }
13150 if test "${ac_cv_prog_STRIP+set}" = set; then :
13151 $as_echo_n "(cached
) " >&6
13153 if test -n "$STRIP"; then
13154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13163 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13173 STRIP=$ac_cv_prog_STRIP
13174 if test -n "$STRIP"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13176 $as_echo "$STRIP" >&6; }
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13179 $as_echo "no
" >&6; }
13184 if test -z "$ac_cv_prog_STRIP"; then
13186 # Extract the first word of "strip
", so it can be a program name with args.
13187 set dummy strip; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13189 $as_echo_n "checking
for $ac_word...
" >&6; }
13190 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13191 $as_echo_n "(cached
) " >&6
13193 if test -n "$ac_ct_STRIP"; then
13194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_prog_ac_ct_STRIP="strip
"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13214 if test -n "$ac_ct_STRIP"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13216 $as_echo "$ac_ct_STRIP" >&6; }
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13219 $as_echo "no
" >&6; }
13222 if test "x
$ac_ct_STRIP" = x; then
13225 case $cross_compiling:$ac_tool_warned in
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13228 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13229 ac_tool_warned=yes ;;
13234 STRIP="$ac_cv_prog_STRIP"
13237 test -z "$STRIP" && STRIP=:
13244 if test -n "$ac_tool_prefix"; then
13245 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13248 $as_echo_n "checking
for $ac_word...
" >&6; }
13249 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13250 $as_echo_n "(cached
) " >&6
13252 if test -n "$RANLIB"; then
13253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13272 RANLIB=$ac_cv_prog_RANLIB
13273 if test -n "$RANLIB"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13275 $as_echo "$RANLIB" >&6; }
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13278 $as_echo "no
" >&6; }
13283 if test -z "$ac_cv_prog_RANLIB"; then
13284 ac_ct_RANLIB=$RANLIB
13285 # Extract the first word of "ranlib
", so it can be a program name with args.
13286 set dummy ranlib; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13288 $as_echo_n "checking
for $ac_word...
" >&6; }
13289 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13290 $as_echo_n "(cached
) " >&6
13292 if test -n "$ac_ct_RANLIB"; then
13293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13313 if test -n "$ac_ct_RANLIB"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13315 $as_echo "$ac_ct_RANLIB" >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13318 $as_echo "no
" >&6; }
13321 if test "x
$ac_ct_RANLIB" = x; then
13324 case $cross_compiling:$ac_tool_warned in
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13327 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13328 ac_tool_warned=yes ;;
13330 RANLIB=$ac_ct_RANLIB
13333 RANLIB="$ac_cv_prog_RANLIB"
13336 test -z "$RANLIB" && RANLIB=:
13343 # Determine commands to create old-style static archives.
13344 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13345 old_postinstall_cmds='chmod 644 $oldlib'
13346 old_postuninstall_cmds=
13348 if test -n "$RANLIB"; then
13351 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13354 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13357 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13362 lock_old_archive_extraction=yes ;;
13364 lock_old_archive_extraction=no ;;
13405 # If no C compiler was specified, use CC.
13408 # If no C compiler flags were specified, use CFLAGS.
13409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13411 # Allow CC to be a program name with arguments.
13415 # Check for command to grab the raw symbol name followed by C symbol from nm.
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13417 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13419 $as_echo_n "(cached
) " >&6
13422 # These are sane defaults that work on at least a few old systems.
13423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13425 # Character class describing NM global symbol codes.
13426 symcode='[BCDEGRST]'
13428 # Regexp to match symbols that can be accessed directly from C.
13429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13431 # Define system-specific variables.
13436 cygwin* | mingw* | pw32* | cegcc*)
13437 symcode='[ABCDGISTW]'
13440 if test "$host_cpu" = ia64; then
13441 symcode='[ABCDEGRST]'
13444 irix* | nonstopux*)
13445 symcode='[BCDEGRST]'
13448 symcode='[BCDEGQRST]'
13459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13467 # If we're using GNU nm, then use its standard symbol codes.
13468 case `$NM -V 2>&1` in
13469 *GNU* | *'with BFD'*)
13470 symcode='[ABCDGIRSTW]' ;;
13473 # Transform an extracted symbol line into a proper C declaration.
13474 # Some systems (esp. on ia64) link data and code symbols differently,
13475 # so use this general approach.
13476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13478 # Transform an extracted symbol line into symbol name and symbol address
13479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13480 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'"
13482 # Handle CRLF in mingw tool chain
13486 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13490 # Try without a prefix underscore, then with it.
13491 for ac_symprfx in "" "_
"; do
13493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13494 symxfrm="\\1 $ac_symprfx\\2 \\2"
13496 # Write the raw and C identifiers.
13497 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13498 # Fake it for dumpbin and say T for any non-static function
13499 # and D for any global variable.
13500 # Also find C++ and __fastcall symbols from MSVC++,
13501 # which start with @ or ?.
13502 lt_cv_sys_global_symbol_pipe="$AWK '"\
13503 " {last_section=section; section=\$ 3};"\
13504 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13505 " \$ 0!~/External *\|/{next};"\
13506 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13507 " {if(hide[section]) next};"\
13508 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13509 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13510 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13511 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13512 " ' prfx
=^
$ac_symprfx"
13514 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13517 # Check to see that the pipe works correctly.
13521 cat > conftest.$ac_ext <<_LT_EOF
13526 void nm_test_func(void);
13527 void nm_test_func(void){}
13531 int main(){nm_test_var='a';nm_test_func();return(0);}
13534 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13535 (eval $ac_compile) 2>&5
13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13538 test $ac_status = 0; }; then
13539 # Now try to grab the symbols.
13541 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13542 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13544 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13545 test $ac_status = 0; } && test -s "$nlist"; then
13546 # Try sorting and uniquifying the output.
13547 if sort "$nlist" | uniq > "$nlist"T; then
13548 mv -f "$nlist"T "$nlist"
13553 # Make sure that we snagged all the symbols we need.
13554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13556 cat <<_LT_EOF > conftest.$ac_ext
13562 # Now generate the symbol file.
13563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13565 cat <<_LT_EOF >> conftest.$ac_ext
13567 /* The mapping between symbol names and symbols. */
13572 lt__PROGRAM__LTX_preloaded_symbols[] =
13574 { "@PROGRAM@
", (void *) 0 },
13576 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13577 cat <<\_LT_EOF >> conftest.$ac_ext
13581 /* This works around a problem in FreeBSD linker */
13582 #ifdef FREEBSD_WORKAROUND
13583 static const void *lt_preloaded_setup() {
13584 return lt__PROGRAM__LTX_preloaded_symbols;
13592 # Now try linking the two files.
13593 mv conftest.$ac_objext conftstm.$ac_objext
13594 lt_save_LIBS="$LIBS"
13595 lt_save_CFLAGS="$CFLAGS"
13596 LIBS="conftstm.
$ac_objext"
13597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13598 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13599 (eval $ac_link) 2>&5
13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13602 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13605 LIBS="$lt_save_LIBS"
13606 CFLAGS="$lt_save_CFLAGS"
13608 echo "cannot
find nm_test_func
in $nlist" >&5
13611 echo "cannot
find nm_test_var
in $nlist" >&5
13614 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13617 echo "$progname: failed program was
:" >&5
13618 cat conftest.$ac_ext >&5
13620 rm -rf conftest* conftst*
13622 # Do not use the global_symbol_pipe unless it works.
13623 if test "$pipe_works" = yes; then
13626 lt_cv_sys_global_symbol_pipe=
13632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13633 lt_cv_sys_global_symbol_to_cdecl=
13635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13637 $as_echo "failed
" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13640 $as_echo "ok
" >&6; }
13664 # Check whether --enable-libtool-lock was given.
13665 if test "${enable_libtool_lock+set}" = set; then :
13666 enableval=$enable_libtool_lock;
13669 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13671 # Some flags need to be propagated to the compiler or linker for good
13675 # Find out which ABI we are using.
13676 echo 'int i;' > conftest.$ac_ext
13677 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13678 (eval $ac_compile) 2>&5
13680 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13681 test $ac_status = 0; }; then
13682 case `/usr/bin/file conftest.$ac_objext` in
13684 HPUX_IA64_MODE="32"
13687 HPUX_IA64_MODE="64"
13694 # Find out which ABI we are using.
13695 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13696 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13697 (eval $ac_compile) 2>&5
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13700 test $ac_status = 0; }; then
13701 if test "$lt_cv_prog_gnu_ld" = yes; then
13702 case `/usr/bin/file conftest.$ac_objext` in
13704 LD="${LD-ld} -melf32bsmip"
13707 LD="${LD-ld} -melf32bmipn32"
13710 LD="${LD-ld} -melf64bmip"
13714 case `/usr/bin/file conftest.$ac_objext` in
13730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13731 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13732 # Find out which ABI we are using.
13733 echo 'int i;' > conftest.$ac_ext
13734 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735 (eval $ac_compile) 2>&5
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13738 test $ac_status = 0; }; then
13739 case `/usr/bin/file conftest.o` in
13742 x86_64-*kfreebsd*-gnu)
13743 LD="${LD-ld} -m elf_i386_fbsd
"
13746 case `/usr/bin/file conftest.o` in
13748 LD="${LD-ld} -m elf32_x86_64
"
13751 LD="${LD-ld} -m elf_i386
"
13755 powerpc64le-*linux*)
13756 LD="${LD-ld} -m elf32lppclinux
"
13759 LD="${LD-ld} -m elf32ppclinux
"
13762 LD="${LD-ld} -m elf_s390
"
13765 LD="${LD-ld} -m elf32_sparc
"
13771 x86_64-*kfreebsd*-gnu)
13772 LD="${LD-ld} -m elf_x86_64_fbsd
"
13775 LD="${LD-ld} -m elf_x86_64
"
13778 LD="${LD-ld} -m elf64lppc
"
13781 LD="${LD-ld} -m elf64ppc
"
13783 s390*-*linux*|s390*-*tpf*)
13784 LD="${LD-ld} -m elf64_s390
"
13787 LD="${LD-ld} -m elf64_sparc
"
13797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13798 SAVE_CFLAGS="$CFLAGS"
13799 CFLAGS="$CFLAGS -belf"
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13801 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13802 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13803 $as_echo_n "(cached
) " >&6
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 lt_cv_cc_needs_belf=yes
13825 lt_cv_cc_needs_belf=no
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13830 ac_cpp='$CPP $CPPFLAGS'
13831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13837 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13838 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13839 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13840 CFLAGS="$SAVE_CFLAGS"
13844 # Find out which ABI we are using.
13845 echo 'int i;' > conftest.$ac_ext
13846 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13847 (eval $ac_compile) 2>&5
13849 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13850 test $ac_status = 0; }; then
13851 case `/usr/bin/file conftest.o` in
13853 case $lt_cv_prog_gnu_ld in
13854 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13856 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13868 need_locks="$enable_libtool_lock"
13872 rhapsody* | darwin*)
13873 if test -n "$ac_tool_prefix"; then
13874 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13875 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13877 $as_echo_n "checking
for $ac_word...
" >&6; }
13878 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13879 $as_echo_n "(cached
) " >&6
13881 if test -n "$DSYMUTIL"; then
13882 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13891 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13901 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13902 if test -n "$DSYMUTIL"; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13904 $as_echo "$DSYMUTIL" >&6; }
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13907 $as_echo "no
" >&6; }
13912 if test -z "$ac_cv_prog_DSYMUTIL"; then
13913 ac_ct_DSYMUTIL=$DSYMUTIL
13914 # Extract the first word of "dsymutil
", so it can be a program name with args.
13915 set dummy dsymutil; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13917 $as_echo_n "checking
for $ac_word...
" >&6; }
13918 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13919 $as_echo_n "(cached
) " >&6
13921 if test -n "$ac_ct_DSYMUTIL"; then
13922 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13941 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13942 if test -n "$ac_ct_DSYMUTIL"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13944 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13947 $as_echo "no
" >&6; }
13950 if test "x
$ac_ct_DSYMUTIL" = x; then
13953 case $cross_compiling:$ac_tool_warned in
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13956 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13957 ac_tool_warned=yes ;;
13959 DSYMUTIL=$ac_ct_DSYMUTIL
13962 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13965 if test -n "$ac_tool_prefix"; then
13966 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13967 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13969 $as_echo_n "checking
for $ac_word...
" >&6; }
13970 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13971 $as_echo_n "(cached
) " >&6
13973 if test -n "$NMEDIT"; then
13974 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13983 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13993 NMEDIT=$ac_cv_prog_NMEDIT
13994 if test -n "$NMEDIT"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13996 $as_echo "$NMEDIT" >&6; }
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13999 $as_echo "no
" >&6; }
14004 if test -z "$ac_cv_prog_NMEDIT"; then
14005 ac_ct_NMEDIT=$NMEDIT
14006 # Extract the first word of "nmedit
", so it can be a program name with args.
14007 set dummy nmedit; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14009 $as_echo_n "checking
for $ac_word...
" >&6; }
14010 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14011 $as_echo_n "(cached
) " >&6
14013 if test -n "$ac_ct_NMEDIT"; then
14014 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14023 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14033 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14034 if test -n "$ac_ct_NMEDIT"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14036 $as_echo "$ac_ct_NMEDIT" >&6; }
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14039 $as_echo "no
" >&6; }
14042 if test "x
$ac_ct_NMEDIT" = x; then
14045 case $cross_compiling:$ac_tool_warned in
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14048 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14049 ac_tool_warned=yes ;;
14051 NMEDIT=$ac_ct_NMEDIT
14054 NMEDIT="$ac_cv_prog_NMEDIT"
14057 if test -n "$ac_tool_prefix"; then
14058 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14059 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14061 $as_echo_n "checking
for $ac_word...
" >&6; }
14062 if test "${ac_cv_prog_LIPO+set}" = set; then :
14063 $as_echo_n "(cached
) " >&6
14065 if test -n "$LIPO"; then
14066 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14075 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14085 LIPO=$ac_cv_prog_LIPO
14086 if test -n "$LIPO"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14088 $as_echo "$LIPO" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14091 $as_echo "no
" >&6; }
14096 if test -z "$ac_cv_prog_LIPO"; then
14098 # Extract the first word of "lipo
", so it can be a program name with args.
14099 set dummy lipo; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14101 $as_echo_n "checking
for $ac_word...
" >&6; }
14102 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14103 $as_echo_n "(cached
) " >&6
14105 if test -n "$ac_ct_LIPO"; then
14106 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14115 ac_cv_prog_ac_ct_LIPO="lipo
"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14125 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14126 if test -n "$ac_ct_LIPO"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14128 $as_echo "$ac_ct_LIPO" >&6; }
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14131 $as_echo "no
" >&6; }
14134 if test "x
$ac_ct_LIPO" = x; then
14137 case $cross_compiling:$ac_tool_warned in
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14140 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14141 ac_tool_warned=yes ;;
14146 LIPO="$ac_cv_prog_LIPO"
14149 if test -n "$ac_tool_prefix"; then
14150 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14151 set dummy ${ac_tool_prefix}otool; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14153 $as_echo_n "checking
for $ac_word...
" >&6; }
14154 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14155 $as_echo_n "(cached
) " >&6
14157 if test -n "$OTOOL"; then
14158 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14167 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14177 OTOOL=$ac_cv_prog_OTOOL
14178 if test -n "$OTOOL"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14180 $as_echo "$OTOOL" >&6; }
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14183 $as_echo "no
" >&6; }
14188 if test -z "$ac_cv_prog_OTOOL"; then
14190 # Extract the first word of "otool
", so it can be a program name with args.
14191 set dummy otool; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14193 $as_echo_n "checking
for $ac_word...
" >&6; }
14194 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14195 $as_echo_n "(cached
) " >&6
14197 if test -n "$ac_ct_OTOOL"; then
14198 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14207 ac_cv_prog_ac_ct_OTOOL="otool
"
14208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14217 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14218 if test -n "$ac_ct_OTOOL"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14220 $as_echo "$ac_ct_OTOOL" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14223 $as_echo "no
" >&6; }
14226 if test "x
$ac_ct_OTOOL" = x; then
14229 case $cross_compiling:$ac_tool_warned in
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14232 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14233 ac_tool_warned=yes ;;
14238 OTOOL="$ac_cv_prog_OTOOL"
14241 if test -n "$ac_tool_prefix"; then
14242 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14243 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14245 $as_echo_n "checking
for $ac_word...
" >&6; }
14246 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14247 $as_echo_n "(cached
) " >&6
14249 if test -n "$OTOOL64"; then
14250 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14259 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14269 OTOOL64=$ac_cv_prog_OTOOL64
14270 if test -n "$OTOOL64"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14272 $as_echo "$OTOOL64" >&6; }
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14275 $as_echo "no
" >&6; }
14280 if test -z "$ac_cv_prog_OTOOL64"; then
14281 ac_ct_OTOOL64=$OTOOL64
14282 # Extract the first word of "otool64
", so it can be a program name with args.
14283 set dummy otool64; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14285 $as_echo_n "checking
for $ac_word...
" >&6; }
14286 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14287 $as_echo_n "(cached
) " >&6
14289 if test -n "$ac_ct_OTOOL64"; then
14290 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14309 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14310 if test -n "$ac_ct_OTOOL64"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14312 $as_echo "$ac_ct_OTOOL64" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14315 $as_echo "no
" >&6; }
14318 if test "x
$ac_ct_OTOOL64" = x; then
14321 case $cross_compiling:$ac_tool_warned in
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14324 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14325 ac_tool_warned=yes ;;
14327 OTOOL64=$ac_ct_OTOOL64
14330 OTOOL64="$ac_cv_prog_OTOOL64"
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14360 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14361 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14362 $as_echo_n "(cached
) " >&6
14364 lt_cv_apple_cc_single_mod=no
14365 if test -z "${LT_MULTI_MODULE}"; then
14366 # By default we will add the -single_module flag. You can override
14367 # by either setting the environment variable LT_MULTI_MODULE
14368 # non-empty at configure time, or by adding -multi_module to the
14370 rm -rf libconftest.dylib*
14371 echo "int foo
(void
){return 1;}" > conftest.c
14372 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14373 -dynamiclib -Wl,-single_module conftest.c
" >&5
14374 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14375 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14377 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14378 lt_cv_apple_cc_single_mod=yes
14380 cat conftest.err >&5
14382 rm -rf libconftest.dylib*
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14387 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14389 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14390 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14391 $as_echo_n "(cached
) " >&6
14393 lt_cv_ld_exported_symbols_list=no
14394 save_LDFLAGS=$LDFLAGS
14395 echo "_main
" > conftest.sym
14396 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 lt_cv_ld_exported_symbols_list=yes
14411 lt_cv_ld_exported_symbols_list=no
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LDFLAGS="$save_LDFLAGS"
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14419 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14421 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14422 if test "${lt_cv_ld_force_load+set}" = set; then :
14423 $as_echo_n "(cached
) " >&6
14425 lt_cv_ld_force_load=no
14426 cat > conftest.c << _LT_EOF
14427 int forced_loaded() { return 2;}
14429 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14430 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14431 echo "$AR cru libconftest.a conftest.o
" >&5
14432 $AR cru libconftest.a conftest.o 2>&5
14433 cat > conftest.c << _LT_EOF
14434 int main() { return 0;}
14436 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14437 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14439 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14440 lt_cv_ld_force_load=yes
14442 cat conftest.err >&5
14444 rm -f conftest.err libconftest.a conftest conftest.c
14445 rm -rf conftest.dSYM
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14449 $as_echo "$lt_cv_ld_force_load" >&6; }
14451 rhapsody* | darwin1.[012])
14452 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14454 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14455 darwin*) # darwin 5.x on
14456 # if running on 10.5 or later, the deployment target defaults
14457 # to the OS version, if on x86, and 10.4, the deployment
14458 # target defaults to 10.4. Don't you love it?
14459 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14460 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14463 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14465 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14469 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14470 _lt_dar_single_mod='$single_module'
14472 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14473 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14475 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14477 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14478 _lt_dsymutil='~$DSYMUTIL $lib || :'
14485 for ac_header in dlfcn.h
14487 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14488 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_DLFCN_H 1
14507 enable_win32_dll=no
14510 # Check whether --enable-shared was given.
14511 if test "${enable_shared+set}" = set; then :
14512 enableval=$enable_shared; p=${PACKAGE-default}
14514 yes) enable_shared=yes ;;
14515 no) enable_shared=no ;;
14518 # Look at the argument we got. We use all the common list separators.
14519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14520 for pkg in $enableval; do
14522 if test "X
$pkg" = "X
$p"; then
14541 # Check whether --enable-static was given.
14542 if test "${enable_static+set}" = set; then :
14543 enableval=$enable_static; p=${PACKAGE-default}
14545 yes) enable_static=yes ;;
14546 no) enable_static=no ;;
14549 # Look at the argument we got. We use all the common list separators.
14550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14551 for pkg in $enableval; do
14553 if test "X
$pkg" = "X
$p"; then
14573 # Check whether --with-pic was given.
14574 if test "${with_pic+set}" = set; then :
14575 withval=$with_pic; pic_mode="$withval"
14581 test -z "$pic_mode" && pic_mode=default
14589 # Check whether --enable-fast-install was given.
14590 if test "${enable_fast_install+set}" = set; then :
14591 enableval=$enable_fast_install; p=${PACKAGE-default}
14593 yes) enable_fast_install=yes ;;
14594 no) enable_fast_install=no ;;
14596 enable_fast_install=no
14597 # Look at the argument we got. We use all the common list separators.
14598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14599 for pkg in $enableval; do
14601 if test "X
$pkg" = "X
$p"; then
14602 enable_fast_install=yes
14609 enable_fast_install=yes
14622 # This can be used to rebuild libtool when needed
14623 LIBTOOL_DEPS="$ltmain"
14625 # Always use our own libtool.
14626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14653 test -z "$LN_S" && LN_S="ln -s"
14668 if test -n "${ZSH_VERSION+set}" ; then
14669 setopt NO_GLOB_SUBST
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14673 $as_echo_n "checking
for objdir...
" >&6; }
14674 if test "${lt_cv_objdir+set}" = set; then :
14675 $as_echo_n "(cached
) " >&6
14677 rm -f .libs 2>/dev/null
14678 mkdir .libs 2>/dev/null
14679 if test -d .libs; then
14682 # MS-DOS does not allow filenames that begin with a dot.
14685 rmdir .libs 2>/dev/null
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14688 $as_echo "$lt_cv_objdir" >&6; }
14689 objdir=$lt_cv_objdir
14695 cat >>confdefs.h <<_ACEOF
14696 #define LT_OBJDIR "$lt_cv_objdir/"
14704 # AIX sometimes has problems with the GCC collect2 program. For some
14705 # reason, if we set the COLLECT_NAMES environment variable, the problems
14706 # vanish in a puff of smoke.
14707 if test "X
${COLLECT_NAMES+set}" != Xset; then
14709 export COLLECT_NAMES
14714 # Global variables:
14716 can_build_shared=yes
14718 # All known linkers require a `.a' archive for static linking (except MSVC,
14719 # which needs '.lib').
14722 with_gnu_ld="$lt_cv_prog_gnu_ld"
14725 old_CFLAGS="$CFLAGS"
14727 # Set sane defaults for various variables
14728 test -z "$CC" && CC=cc
14729 test -z "$LTCC" && LTCC=$CC
14730 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14731 test -z "$LD" && LD=ld
14732 test -z "$ac_objext" && ac_objext=o
14734 for cc_temp in $compiler""; do
14736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14742 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14745 # Only perform the check for file, if the check method requires it
14746 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14747 case $deplibs_check_method in
14749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14751 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14753 $as_echo_n "(cached
) " >&6
14757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14760 lt_save_MAGIC_CMD="$MAGIC_CMD"
14761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14762 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14763 for ac_dir in $ac_dummy; do
14765 test -z "$ac_dir" && ac_dir=.
14766 if test -f $ac_dir/${ac_tool_prefix}file; then
14767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14768 if test -n "$file_magic_test_file"; then
14769 case $deplibs_check_method in
14771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14774 $EGREP "$file_magic_regex" > /dev/null; then
14779 *** Warning: the command libtool uses to detect shared libraries,
14780 *** $file_magic_cmd, produces output that libtool cannot recognize.
14781 *** The result is that libtool may fail to recognize shared libraries
14782 *** as such. This will affect the creation of libtool libraries that
14783 *** depend on shared libraries, but programs linked with such libtool
14784 *** libraries will work regardless of this problem. Nevertheless, you
14785 *** may want to report the problem to your system manager and/or to
14786 *** bug-libtool@gnu.org
14796 MAGIC_CMD="$lt_save_MAGIC_CMD"
14801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14802 if test -n "$MAGIC_CMD"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14804 $as_echo "$MAGIC_CMD" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14807 $as_echo "no
" >&6; }
14814 if test -z "$lt_cv_path_MAGIC_CMD"; then
14815 if test -n "$ac_tool_prefix"; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14817 $as_echo_n "checking
for file...
" >&6; }
14818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14819 $as_echo_n "(cached
) " >&6
14823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14826 lt_save_MAGIC_CMD="$MAGIC_CMD"
14827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14828 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14829 for ac_dir in $ac_dummy; do
14831 test -z "$ac_dir" && ac_dir=.
14832 if test -f $ac_dir/file; then
14833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14834 if test -n "$file_magic_test_file"; then
14835 case $deplibs_check_method in
14837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14840 $EGREP "$file_magic_regex" > /dev/null; then
14845 *** Warning: the command libtool uses to detect shared libraries,
14846 *** $file_magic_cmd, produces output that libtool cannot recognize.
14847 *** The result is that libtool may fail to recognize shared libraries
14848 *** as such. This will affect the creation of libtool libraries that
14849 *** depend on shared libraries, but programs linked with such libtool
14850 *** libraries will work regardless of this problem. Nevertheless, you
14851 *** may want to report the problem to your system manager and/or to
14852 *** bug-libtool@gnu.org
14862 MAGIC_CMD="$lt_save_MAGIC_CMD"
14867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14868 if test -n "$MAGIC_CMD"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14870 $as_echo "$MAGIC_CMD" >&6; }
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14873 $as_echo "no
" >&6; }
14886 # Use C for the default configuration in the libtool script
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14896 # Source file extension for C test sources.
14899 # Object file extension for compiled C test sources.
14903 # Code to be used in simple compile tests
14904 lt_simple_compile_test_code="int some_variable
= 0;"
14906 # Code to be used in simple link tests
14907 lt_simple_link_test_code='int main(){return(0);}'
14915 # If no C compiler was specified, use CC.
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14921 # Allow CC to be a program name with arguments.
14924 # Save the default compiler, since it gets overwritten when the other
14925 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14926 compiler_DEFAULT=$CC
14928 # save warnings/boilerplate of simple test code
14929 ac_outfile=conftest.$ac_objext
14930 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14932 _lt_compiler_boilerplate=`cat conftest.err`
14935 ac_outfile=conftest.$ac_objext
14936 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14938 _lt_linker_boilerplate=`cat conftest.err`
14943 ## There is no encapsulation within the following macros, do not change
14944 ## the running order or otherwise move them around unless you know exactly
14945 ## what you are doing...
14946 if test -n "$compiler"; then
14948 lt_prog_compiler_no_builtin_flag=
14950 if test "$GCC" = yes; then
14951 case $cc_basename in
14953 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14955 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14959 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14960 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14961 $as_echo_n "(cached
) " >&6
14963 lt_cv_prog_compiler_rtti_exceptions=no
14964 ac_outfile=conftest.$ac_objext
14965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14966 lt_compiler_flag="-fno-rtti -fno-exceptions"
14967 # Insert the option either (1) after the last *FLAGS variable, or
14968 # (2) before a word containing "conftest.
", or (3) at the end.
14969 # Note that $ac_compile itself does not contain backslashes and begins
14970 # with a dollar sign (not a hyphen), so the echo should work correctly.
14971 # The option is referenced via a variable to avoid confusing sed.
14972 lt_compile=`echo "$ac_compile" | $SED \
14973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14975 -e 's:$: $lt_compiler_flag:'`
14976 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14977 (eval "$lt_compile" 2>conftest.err)
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14981 if (exit $ac_status) && test -s "$ac_outfile"; then
14982 # The compiler can only warn and ignore the option if not recognized
14983 # So say no if there are warnings other than the usual output.
14984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14987 lt_cv_prog_compiler_rtti_exceptions=yes
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14994 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14996 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15009 lt_prog_compiler_wl=
15010 lt_prog_compiler_pic=
15011 lt_prog_compiler_static=
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15014 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15016 if test "$GCC" = yes; then
15017 lt_prog_compiler_wl='-Wl,'
15018 lt_prog_compiler_static='-static'
15022 # All AIX code is PIC.
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15027 lt_prog_compiler_pic='-fPIC'
15033 # see comment about AmigaOS4 .so support
15034 lt_prog_compiler_pic='-fPIC'
15037 # FIXME: we need at least 68020 code to build shared libraries, but
15038 # adding the `-m68020' flag to GCC prevents building anything better,
15040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15046 # PIC is the default for these OSes.
15049 mingw* | cygwin* | pw32* | os2* | cegcc*)
15050 # This hack is so that the source file can tell whether it is being
15051 # built for inclusion in a dll (and should export symbols for example).
15052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15053 # (--disable-auto-import) libraries
15054 lt_prog_compiler_pic='-DDLL_EXPORT'
15057 darwin* | rhapsody*)
15058 # PIC is the default on this platform
15059 # Common symbols not allowed in MH_DYLIB files
15060 lt_prog_compiler_pic='-fno-common'
15064 # PIC is the default for Haiku.
15065 # The "-static" flag exists, but is broken.
15066 lt_prog_compiler_static=
15070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15072 # sets the default TLS model and affects inlining.
15078 lt_prog_compiler_pic='-fPIC'
15084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15085 # Instead, we relocate shared libraries at runtime.
15089 # Just because we use GCC doesn't mean we suddenly get shared libraries
15090 # on systems that don't support them.
15091 lt_prog_compiler_can_build_shared=no
15096 # QNX uses GNU C++, but need to define -shared option too, otherwise
15097 # it will coredump.
15098 lt_prog_compiler_pic='-fPIC -shared'
15102 if test -d /usr/nec; then
15103 lt_prog_compiler_pic=-Kconform_pic
15108 lt_prog_compiler_pic='-fPIC'
15112 case $cc_basename in
15113 nvcc*) # Cuda Compiler Driver 2.2
15114 lt_prog_compiler_wl='-Xlinker '
15115 lt_prog_compiler_pic='-Xcompiler -fPIC'
15119 # PORTME Check for flag to pass linker flags through the system compiler.
15122 lt_prog_compiler_wl='-Wl,'
15123 if test "$host_cpu" = ia64; then
15124 # AIX 5 now supports IA64 processor
15125 lt_prog_compiler_static='-Bstatic'
15127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15131 mingw* | cygwin* | pw32* | os2* | cegcc*)
15132 # This hack is so that the source file can tell whether it is being
15133 # built for inclusion in a dll (and should export symbols for example).
15134 lt_prog_compiler_pic='-DDLL_EXPORT'
15137 hpux9* | hpux10* | hpux11*)
15138 lt_prog_compiler_wl='-Wl,'
15139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15140 # not for PA HP-UX.
15146 lt_prog_compiler_pic='+Z'
15149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15150 lt_prog_compiler_static='${wl}-a ${wl}archive'
15153 irix5* | irix6* | nonstopux*)
15154 lt_prog_compiler_wl='-Wl,'
15155 # PIC (with -KPIC) is the default.
15156 lt_prog_compiler_static='-non_shared'
15159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15160 case $cc_basename in
15161 # old Intel for x86_64 which still supported -KPIC.
15163 lt_prog_compiler_wl='-Wl,'
15164 lt_prog_compiler_pic='-KPIC'
15165 lt_prog_compiler_static='-static'
15167 # icc used to be incompatible with GCC.
15168 # ICC 10 doesn't accept -KPIC any more.
15170 lt_prog_compiler_wl='-Wl,'
15171 lt_prog_compiler_pic='-fPIC'
15172 lt_prog_compiler_static='-static'
15174 # Lahey Fortran 8.1.
15176 lt_prog_compiler_wl='-Wl,'
15177 lt_prog_compiler_pic='--shared'
15178 lt_prog_compiler_static='--static'
15180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15181 # Portland Group compilers (*not* the Pentium gcc compiler,
15182 # which looks to be a dead project)
15183 lt_prog_compiler_wl='-Wl,'
15184 lt_prog_compiler_pic='-fpic'
15185 lt_prog_compiler_static='-Bstatic'
15188 lt_prog_compiler_wl='-Wl,'
15189 # All Alpha code is PIC.
15190 lt_prog_compiler_static='-non_shared'
15192 xl* | bgxl* | bgf* | mpixl*)
15193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15194 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_pic='-qpic'
15196 lt_prog_compiler_static='-qstaticlink'
15199 case `$CC -V 2>&1 | sed 5q` in
15200 *Sun\ F* | *Sun*Fortran*)
15201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15202 lt_prog_compiler_pic='-KPIC'
15203 lt_prog_compiler_static='-Bstatic'
15204 lt_prog_compiler_wl=''
15208 lt_prog_compiler_pic='-KPIC'
15209 lt_prog_compiler_static='-Bstatic'
15210 lt_prog_compiler_wl='-Wl,'
15218 lt_prog_compiler_pic='-KPIC'
15219 lt_prog_compiler_static='-Bstatic'
15223 # QNX uses GNU C++, but need to define -shared option too, otherwise
15224 # it will coredump.
15225 lt_prog_compiler_pic='-fPIC -shared'
15228 osf3* | osf4* | osf5*)
15229 lt_prog_compiler_wl='-Wl,'
15230 # All OSF/1 code is PIC.
15231 lt_prog_compiler_static='-non_shared'
15235 lt_prog_compiler_static='-non_shared'
15239 lt_prog_compiler_pic='-KPIC'
15240 lt_prog_compiler_static='-Bstatic'
15241 case $cc_basename in
15242 f77* | f90* | f95*)
15243 lt_prog_compiler_wl='-Qoption ld ';;
15245 lt_prog_compiler_wl='-Wl,';;
15250 lt_prog_compiler_wl='-Qoption ld '
15251 lt_prog_compiler_pic='-PIC'
15252 lt_prog_compiler_static='-Bstatic'
15255 sysv4 | sysv4.2uw2* | sysv4.3*)
15256 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-KPIC'
15258 lt_prog_compiler_static='-Bstatic'
15262 if test -d /usr/nec ;then
15263 lt_prog_compiler_pic='-Kconform_pic'
15264 lt_prog_compiler_static='-Bstatic'
15268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15269 lt_prog_compiler_wl='-Wl,'
15270 lt_prog_compiler_pic='-KPIC'
15271 lt_prog_compiler_static='-Bstatic'
15275 lt_prog_compiler_wl='-Wl,'
15276 lt_prog_compiler_can_build_shared=no
15280 lt_prog_compiler_pic='-pic'
15281 lt_prog_compiler_static='-Bstatic'
15285 lt_prog_compiler_can_build_shared=no
15291 # For platforms which do not support PIC, -DPIC is meaningless:
15293 lt_prog_compiler_pic=
15296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15300 $as_echo "$lt_prog_compiler_pic" >&6; }
15308 # Check to make sure the PIC flag actually works.
15310 if test -n "$lt_prog_compiler_pic"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15312 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15313 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15314 $as_echo_n "(cached
) " >&6
15316 lt_cv_prog_compiler_pic_works=no
15317 ac_outfile=conftest.$ac_objext
15318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15320 # Insert the option either (1) after the last *FLAGS variable, or
15321 # (2) before a word containing "conftest.
", or (3) at the end.
15322 # Note that $ac_compile itself does not contain backslashes and begins
15323 # with a dollar sign (not a hyphen), so the echo should work correctly.
15324 # The option is referenced via a variable to avoid confusing sed.
15325 lt_compile=`echo "$ac_compile" | $SED \
15326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328 -e 's:$: $lt_compiler_flag:'`
15329 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15330 (eval "$lt_compile" 2>conftest.err)
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15334 if (exit $ac_status) && test -s "$ac_outfile"; then
15335 # The compiler can only warn and ignore the option if not recognized
15336 # So say no if there are warnings other than the usual output.
15337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15340 lt_cv_prog_compiler_pic_works=yes
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15347 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15349 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15350 case $lt_prog_compiler_pic in
15352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15355 lt_prog_compiler_pic=
15356 lt_prog_compiler_can_build_shared=no
15367 # Check to make sure the static flag actually works.
15369 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15371 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15372 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15373 $as_echo_n "(cached
) " >&6
15375 lt_cv_prog_compiler_static_works=no
15376 save_LDFLAGS="$LDFLAGS"
15377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15380 # The linker can only warn and ignore the option if not recognized
15381 # So say no if there are warnings
15382 if test -s conftest.err; then
15383 # Append any errors to the config.log.
15384 cat conftest.err 1>&5
15385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15387 if diff conftest.exp conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_static_works=yes
15391 lt_cv_prog_compiler_static_works=yes
15395 LDFLAGS="$save_LDFLAGS"
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15399 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15401 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15404 lt_prog_compiler_static=
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15414 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15416 $as_echo_n "(cached
) " >&6
15418 lt_cv_prog_compiler_c_o=no
15419 $RM -r conftest 2>/dev/null
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15425 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.
", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>out/conftest.err)
15437 cat out/conftest.err >&5
15438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_c_o=yes
15451 # SGI C++ compiler will create directory out/ii_files/ for
15452 # template instantiation
15453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15454 $RM out/* && rmdir out
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15469 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15471 $as_echo_n "(cached
) " >&6
15473 lt_cv_prog_compiler_c_o=no
15474 $RM -r conftest 2>/dev/null
15478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15480 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15481 # Insert the option either (1) after the last *FLAGS variable, or
15482 # (2) before a word containing "conftest.
", or (3) at the end.
15483 # Note that $ac_compile itself does not contain backslashes and begins
15484 # with a dollar sign (not a hyphen), so the echo should work correctly.
15485 lt_compile=`echo "$ac_compile" | $SED \
15486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15488 -e 's:$: $lt_compiler_flag:'`
15489 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15490 (eval "$lt_compile" 2>out/conftest.err)
15492 cat out/conftest.err >&5
15493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15496 # The compiler can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15501 lt_cv_prog_compiler_c_o=yes
15506 # SGI C++ compiler will create directory out/ii_files/ for
15507 # template instantiation
15508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15509 $RM out/* && rmdir out
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15521 hard_links="nottested
"
15522 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15523 # do not overwrite the value of need_locks provided by the user
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15525 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15530 ln conftest.a conftest.b 2>&5 || hard_links=no
15531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15533 $as_echo "$hard_links" >&6; }
15534 if test "$hard_links" = no; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15536 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15549 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15552 allow_undefined_flag=
15553 always_export_symbols=no
15555 archive_expsym_cmds=
15556 compiler_needs_object=no
15557 enable_shared_with_static_runtimes=no
15558 export_dynamic_flag_spec=
15559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15560 hardcode_automatic=no
15562 hardcode_direct_absolute=no
15563 hardcode_libdir_flag_spec=
15564 hardcode_libdir_flag_spec_ld=
15565 hardcode_libdir_separator=
15566 hardcode_minus_L=no
15567 hardcode_shlibpath_var=unsupported
15569 link_all_deplibs=unknown
15571 module_expsym_cmds=
15572 old_archive_from_new_cmds=
15573 old_archive_from_expsyms_cmds=
15574 thread_safe_flag_spec=
15575 whole_archive_flag_spec=
15576 # include_expsyms should be a list of space-separated symbols to be *always*
15577 # included in the symbol list
15579 # exclude_expsyms can be an extended regexp of symbols to exclude
15580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15582 # as well as any symbol that contains `d'.
15583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15585 # platforms (ab)use it in PIC code, but their linkers get confused if
15586 # the symbol is explicitly referenced. Since portable code cannot
15587 # rely on this symbol name, it's probably fine to never include it in
15588 # preloaded symbol tables.
15589 # Exclude shared library initialization/finalization symbols.
15590 extract_expsyms_cmds=
15593 cygwin* | mingw* | pw32* | cegcc*)
15594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15595 # When not using gcc, we currently assume that we are using
15596 # Microsoft Visual C++.
15597 if test "$GCC" != yes; then
15602 # we just hope/assume this is gcc and not c89 (= MSVC++)
15612 # On some targets, GNU ld is compatible enough with the native linker
15613 # that we're better off using the native interface for both.
15614 lt_use_gnu_ld_interface=no
15615 if test "$with_gnu_ld" = yes; then
15618 # The AIX port of GNU ld has always aspired to compatibility
15619 # with the native linker. However, as the warning in the GNU ld
15620 # block says, versions before 2.19.5* couldn't really create working
15621 # shared libraries, regardless of the interface used.
15622 case `$LD -v 2>&1` in
15623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15627 lt_use_gnu_ld_interface=yes
15632 lt_use_gnu_ld_interface=yes
15637 if test "$lt_use_gnu_ld_interface" = yes; then
15638 # If archive_cmds runs LD, not CC, wlarc should be empty
15641 # Set some defaults for GNU ld with shared library support. These
15642 # are reset later if shared libraries are not supported. Putting them
15643 # here allows them to be overridden if necessary.
15644 runpath_var=LD_RUN_PATH
15645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15646 export_dynamic_flag_spec='${wl}--export-dynamic'
15647 # ancient GNU ld didn't support --whole-archive et. al.
15648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15651 whole_archive_flag_spec=
15653 supports_anon_versioning=no
15654 case `$LD -v 2>&1` in
15655 *GNU\ gold*) supports_anon_versioning=yes ;;
15656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15659 *\ 2.11.*) ;; # other 2.11 versions
15660 *) supports_anon_versioning=yes ;;
15663 # See if GNU ld supports shared libraries.
15666 # On AIX/PPC, the GNU linker is very broken
15667 if test "$host_cpu" != ia64; then
15671 *** Warning: the GNU linker, at least up to release 2.19, is reported
15672 *** to be unable to reliably create shared libraries on AIX.
15673 *** Therefore, libtool is disabling shared libraries support. If you
15674 *** really care for shared libraries, you may want to install binutils
15675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15676 *** You will then need to restart the configuration process.
15685 # see comment about AmigaOS4 .so support
15686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15687 archive_expsym_cmds=''
15690 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)'
15691 hardcode_libdir_flag_spec
='-L$libdir'
15692 hardcode_minus_L
=yes
15698 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15699 allow_undefined_flag
=unsupported
15700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15701 # support --undefined. This deserves some investigation. FIXME
15702 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15708 cygwin
* | mingw
* | pw32
* | cegcc
*)
15709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15710 # as there is no search path for DLLs.
15711 hardcode_libdir_flag_spec
='-L$libdir'
15712 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15713 allow_undefined_flag
=unsupported
15714 always_export_symbols
=no
15715 enable_shared_with_static_runtimes
=yes
15716 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15718 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15719 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15720 # If the export-symbols file already is a .def file (1st line
15721 # is EXPORTS), use it as is; otherwise, prepend...
15722 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15723 cp $export_symbols $output_objdir/$soname.def;
15725 echo EXPORTS > $output_objdir/$soname.def;
15726 cat $export_symbols >> $output_objdir/$soname.def;
15728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15735 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15736 link_all_deplibs
=yes
15741 hardcode_shlibpath_var
=no
15742 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15743 export_dynamic_flag_spec
='${wl}-E'
15744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15745 # Instead, shared libraries are loaded at an image base (0x10000000 by
15746 # default) and relocated if they conflict, which is a slow very memory
15747 # consuming and fragmenting process. To avoid this, we pick a random,
15748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15750 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15751 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'
15754 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15756 if test "$host_os" = linux-dietlibc
; then
15757 case $cc_basename in
15758 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15761 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15762 && test "$tmp_diet" = no
15765 tmp_sharedflag
='-shared'
15766 case $cc_basename,$host_cpu in
15767 pgcc
*) # Portland Group C compiler
15768 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'
15769 tmp_addflag
=' $pic_flag'
15771 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15772 # Portland Group f77 and f90 compilers
15773 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'
15774 tmp_addflag
=' $pic_flag -Mnomain' ;;
15775 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15776 tmp_addflag
=' -i_dynamic' ;;
15777 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15778 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15779 ifc
* | ifort
*) # Intel Fortran compiler
15780 tmp_addflag
=' -nofor_main' ;;
15781 lf95
*) # Lahey Fortran 8.1
15782 whole_archive_flag_spec
=
15783 tmp_sharedflag
='--shared' ;;
15784 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15785 tmp_sharedflag
='-qmkshrobj'
15787 nvcc
*) # Cuda Compiler Driver 2.2
15788 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'
15789 compiler_needs_object
=yes
15792 case `$CC -V 2>&1 | sed 5q` in
15793 *Sun\ C
*) # Sun C 5.9
15794 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'
15795 compiler_needs_object
=yes
15796 tmp_sharedflag
='-G' ;;
15797 *Sun\ F
*) # Sun Fortran 8.3
15798 tmp_sharedflag
='-G' ;;
15800 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802 if test "x$supports_anon_versioning" = xyes
; then
15803 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15805 echo "local: *; };" >> $output_objdir/$libname.ver~
15806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15809 case $cc_basename in
15810 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15811 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15812 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15813 hardcode_libdir_flag_spec
=
15814 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15815 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15816 if test "x$supports_anon_versioning" = xyes
; then
15817 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15819 echo "local: *; };" >> $output_objdir/$libname.ver~
15820 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15830 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15831 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15834 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15835 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15840 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15845 *** create shared libraries on Solaris systems. Therefore, libtool
15846 *** is disabling shared libraries support. We urge you to upgrade GNU
15847 *** binutils to release 2.9.1 or newer. Another option is to modify
15848 *** your PATH or compiler configuration so that the native linker is
15849 *** used, and then restart.
15852 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15853 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15854 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15860 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15861 case `$LD -v 2>&1` in
15862 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15867 *** reliably create shared libraries on SCO systems. Therefore, libtool
15868 *** is disabling shared libraries support. We urge you to upgrade GNU
15869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15870 *** your PATH or compiler configuration so that the native linker is
15871 *** used, and then restart.
15876 # For security reasons, it is highly recommended that you always
15877 # use absolute paths for naming shared libraries, and exclude the
15878 # DT_RUNPATH tag from executables and libraries. But doing so
15879 # requires that you compile everything twice, which is a pain.
15880 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15881 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15882 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15892 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15894 hardcode_direct
=yes
15895 hardcode_shlibpath_var
=no
15899 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15900 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15908 if test "$ld_shlibs" = no
; then
15910 hardcode_libdir_flag_spec
=
15911 export_dynamic_flag_spec
=
15912 whole_archive_flag_spec
=
15915 # PORTME fill in a description of your system's linker (not GNU ld)
15918 allow_undefined_flag
=unsupported
15919 always_export_symbols
=yes
15920 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'
15921 # Note: this linker hardcodes the directories in LIBPATH if there
15922 # are no directories specified by -L.
15923 hardcode_minus_L
=yes
15924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15925 # Neither direct hardcoding nor static linking is supported with a
15927 hardcode_direct
=unsupported
15932 if test "$host_cpu" = ia64
; then
15933 # On IA64, the linker does run time linking by default, so we don't
15934 # have to do anything special.
15935 aix_use_runtimelinking
=no
15936 exp_sym_flag
='-Bexport'
15939 # If we're using GNU nm, then we don't want the "-C" option.
15940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15941 # Also, AIX nm treats weak defined symbols like other global
15942 # defined symbols, whereas GNU nm marks them as "W".
15943 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15944 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'
15946 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'
15948 aix_use_runtimelinking
=no
15950 # Test if we are trying to use run time linking or normal
15951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15952 # need to do runtime linking.
15953 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15954 for ld_flag
in $LDFLAGS; do
15955 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15956 aix_use_runtimelinking
=yes
15963 exp_sym_flag
='-bexport'
15964 no_entry_flag
='-bnoentry'
15967 # When large executables or shared objects are built, AIX ld can
15968 # have problems creating the table of contents. If linking a library
15969 # or program results in "error TOC overflow" add -mminimal-toc to
15970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15974 hardcode_direct
=yes
15975 hardcode_direct_absolute
=yes
15976 hardcode_libdir_separator
=':'
15977 link_all_deplibs
=yes
15978 file_list_spec
='${wl}-f,'
15980 if test "$GCC" = yes; then
15981 case $host_os in aix4.
[012]|aix4.
[012].
*)
15982 # We only want to do this on AIX 4.2 and lower, the check
15983 # below for broken collect2 doesn't work under 4.3+
15984 collect2name
=`${CC} -print-prog-name=collect2`
15985 if test -f "$collect2name" &&
15986 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15988 # We have reworked collect2
15991 # We have old collect2
15992 hardcode_direct
=unsupported
15993 # It fails to find uninstalled libraries when the uninstalled
15994 # path is not listed in the libpath. Setting hardcode_minus_L
15995 # to unsupported forces relinking
15996 hardcode_minus_L
=yes
15997 hardcode_libdir_flag_spec
='-L$libdir'
15998 hardcode_libdir_separator
=
16002 shared_flag
='-shared'
16003 if test "$aix_use_runtimelinking" = yes; then
16004 shared_flag
="$shared_flag "'${wl}-G'
16008 if test "$host_cpu" = ia64
; then
16009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16010 # chokes on -Wl,-G. The following line is correct:
16013 if test "$aix_use_runtimelinking" = yes; then
16014 shared_flag
='${wl}-G'
16016 shared_flag
='${wl}-bM:SRE'
16021 export_dynamic_flag_spec
='${wl}-bexpall'
16022 # It seems that -bexpall does not export symbols beginning with
16023 # underscore (_), so it is better to generate a list of symbols to export.
16024 always_export_symbols
=yes
16025 if test "$aix_use_runtimelinking" = yes; then
16026 # Warning - without using the other runtime loading flags (-brtl),
16027 # -berok will link without error, but may produce a broken library.
16028 allow_undefined_flag
='-berok'
16029 # Determine the default libpath from the value encoded in an
16030 # empty executable.
16031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16042 if ac_fn_c_try_link
"$LINENO"; then :
16044 lt_aix_libpath_sed
='
16045 /Import File Strings/,/^$/ {
16051 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16052 # Check for a 64-bit object if we didn't find anything.
16053 if test -z "$aix_libpath"; then
16054 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16057 rm -f core conftest.err conftest.
$ac_objext \
16058 conftest
$ac_exeext conftest.
$ac_ext
16059 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16061 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16062 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"
16064 if test "$host_cpu" = ia64
; then
16065 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16066 allow_undefined_flag
="-z nodefs"
16067 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"
16069 # Determine the default libpath from the value encoded in an
16070 # empty executable.
16071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16082 if ac_fn_c_try_link
"$LINENO"; then :
16084 lt_aix_libpath_sed
='
16085 /Import File Strings/,/^$/ {
16091 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16092 # Check for a 64-bit object if we didn't find anything.
16093 if test -z "$aix_libpath"; then
16094 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16097 rm -f core conftest.err conftest.
$ac_objext \
16098 conftest
$ac_exeext conftest.
$ac_ext
16099 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16101 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16102 # Warning - without using the other run time loading flags,
16103 # -berok will link without error, but may produce a broken library.
16104 no_undefined_flag
=' ${wl}-bernotok'
16105 allow_undefined_flag
=' ${wl}-berok'
16106 if test "$with_gnu_ld" = yes; then
16107 # We only use this code for GNU lds that support --whole-archive.
16108 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16110 # Exported symbols can be pulled into shared objects from archives
16111 whole_archive_flag_spec
='$convenience'
16113 archive_cmds_need_lc
=yes
16114 # This is similar to how AIX traditionally builds its shared libraries.
16115 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'
16123 # see comment about AmigaOS4 .so support
16124 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 archive_expsym_cmds
=''
16128 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)'
16129 hardcode_libdir_flag_spec
='-L$libdir'
16130 hardcode_minus_L
=yes
16136 export_dynamic_flag_spec
=-rdynamic
16139 cygwin
* | mingw
* | pw32
* | cegcc
*)
16140 # When not using gcc, we currently assume that we are using
16141 # Microsoft Visual C++.
16142 # hardcode_libdir_flag_spec is actually meaningless, as there is
16143 # no search path for DLLs.
16144 hardcode_libdir_flag_spec
=' '
16145 allow_undefined_flag
=unsupported
16146 # Tell ltmain to make .lib files, not .a files.
16148 # Tell ltmain to make .dll files, not .so files.
16150 # FIXME: Setting linknames here is a bad hack.
16151 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16152 # The linker will automatically build a .lib file if we build a DLL.
16153 old_archive_from_new_cmds
='true'
16154 # FIXME: Should let the user specify the lib program.
16155 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16156 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16157 enable_shared_with_static_runtimes
=yes
16160 darwin
* | rhapsody
*)
16163 archive_cmds_need_lc
=no
16165 hardcode_automatic
=yes
16166 hardcode_shlibpath_var
=unsupported
16167 if test "$lt_cv_ld_force_load" = "yes"; then
16168 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\"`'
16170 whole_archive_flag_spec
=''
16172 link_all_deplibs
=yes
16173 allow_undefined_flag
="$_lt_dar_allow_undefined"
16174 case $cc_basename in
16175 ifort
*) _lt_dar_can_shared
=yes ;;
16176 *) _lt_dar_can_shared
=$GCC ;;
16178 if test "$_lt_dar_can_shared" = "yes"; then
16179 output_verbose_link_cmd
=func_echo_all
16180 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16181 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16182 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}"
16183 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}"
16192 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_libdir_flag_spec
='-L$libdir'
16194 hardcode_shlibpath_var
=no
16197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16198 # support. Future versions do this automatically, but an explicit c++rt0.o
16199 # does not break anything, and helps significantly (at the cost of a little
16202 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16203 hardcode_libdir_flag_spec
='-R$libdir'
16204 hardcode_direct
=yes
16205 hardcode_shlibpath_var
=no
16208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16210 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct
=yes
16212 hardcode_minus_L
=yes
16213 hardcode_shlibpath_var
=no
16216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16217 freebsd
* | dragonfly
*)
16218 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16219 hardcode_libdir_flag_spec
='-R$libdir'
16220 hardcode_direct
=yes
16221 hardcode_shlibpath_var
=no
16225 if test "$GCC" = yes; then
16226 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'
16228 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'
16230 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator
=:
16232 hardcode_direct
=yes
16234 # hardcode_minus_L: Not really in the search PATH,
16235 # but as the default location of the library.
16236 hardcode_minus_L
=yes
16237 export_dynamic_flag_spec
='${wl}-E'
16241 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16242 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16246 if test "$with_gnu_ld" = no
; then
16247 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16248 hardcode_libdir_flag_spec_ld
='+b $libdir'
16249 hardcode_libdir_separator
=:
16250 hardcode_direct
=yes
16251 hardcode_direct_absolute
=yes
16252 export_dynamic_flag_spec
='${wl}-E'
16253 # hardcode_minus_L: Not really in the search PATH,
16254 # but as the default location of the library.
16255 hardcode_minus_L
=yes
16260 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16263 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16269 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16275 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16278 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16282 # Older versions of the 11.00 compiler do not understand -b yet
16283 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16285 $as_echo_n "checking if $CC understands -b... " >&6; }
16286 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16289 lt_cv_prog_compiler__b
=no
16290 save_LDFLAGS
="$LDFLAGS"
16291 LDFLAGS
="$LDFLAGS -b"
16292 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16293 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16294 # The linker can only warn and ignore the option if not recognized
16295 # So say no if there are warnings
16296 if test -s conftest.err
; then
16297 # Append any errors to the config.log.
16298 cat conftest.err
1>&5
16299 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16300 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16301 if diff conftest.exp conftest.er2
>/dev
/null
; then
16302 lt_cv_prog_compiler__b
=yes
16305 lt_cv_prog_compiler__b
=yes
16309 LDFLAGS
="$save_LDFLAGS"
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16313 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16315 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16316 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16324 if test "$with_gnu_ld" = no
; then
16325 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_separator
=:
16331 hardcode_shlibpath_var
=no
16334 hardcode_direct
=yes
16335 hardcode_direct_absolute
=yes
16336 export_dynamic_flag_spec
='${wl}-E'
16338 # hardcode_minus_L: Not really in the search PATH,
16339 # but as the default location of the library.
16340 hardcode_minus_L
=yes
16346 irix5
* | irix6
* | nonstopux
*)
16347 if test "$GCC" = yes; then
16348 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'
16349 # Try to use the -exported_symbol ld option, if it does not
16350 # work, assume that -exports_file does not work either and
16351 # implicitly export all symbols.
16352 save_LDFLAGS
="$LDFLAGS"
16353 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16358 if ac_fn_c_try_link
"$LINENO"; then :
16359 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'
16362 rm -f core conftest.err conftest.
$ac_objext \
16363 conftest
$ac_exeext conftest.
$ac_ext
16364 LDFLAGS
="$save_LDFLAGS"
16366 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'
16367 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'
16369 archive_cmds_need_lc
='no'
16370 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16371 hardcode_libdir_separator
=:
16373 link_all_deplibs
=yes
16377 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16378 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16380 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16382 hardcode_libdir_flag_spec
='-R$libdir'
16383 hardcode_direct
=yes
16384 hardcode_shlibpath_var
=no
16388 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct
=yes
16390 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16391 hardcode_libdir_separator
=:
16392 hardcode_shlibpath_var
=no
16399 if test -f /usr
/libexec
/ld.so
; then
16400 hardcode_direct
=yes
16401 hardcode_shlibpath_var
=no
16402 hardcode_direct_absolute
=yes
16403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16404 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16406 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16407 export_dynamic_flag_spec
='${wl}-E'
16410 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16411 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_libdir_flag_spec
='-R$libdir'
16415 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16416 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16426 hardcode_libdir_flag_spec
='-L$libdir'
16427 hardcode_minus_L
=yes
16428 allow_undefined_flag
=unsupported
16429 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'
16430 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16434 if test "$GCC" = yes; then
16435 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16436 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'
16438 allow_undefined_flag
=' -expect_unresolved \*'
16439 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'
16441 archive_cmds_need_lc
='no'
16442 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16443 hardcode_libdir_separator
=:
16446 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16447 if test "$GCC" = yes; then
16448 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16449 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'
16450 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16452 allow_undefined_flag
=' -expect_unresolved \*'
16453 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'
16454 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~
16455 $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'
16457 # Both c and cxx compiler support -rpath directly
16458 hardcode_libdir_flag_spec
='-rpath $libdir'
16460 archive_cmds_need_lc
='no'
16461 hardcode_libdir_separator
=:
16465 no_undefined_flag
=' -z defs'
16466 if test "$GCC" = yes; then
16468 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16470 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16472 case `$CC -V 2>&1` in
16475 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16481 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16482 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16487 hardcode_libdir_flag_spec
='-R$libdir'
16488 hardcode_shlibpath_var
=no
16490 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16492 # The compiler driver will combine and reorder linker options,
16493 # but understands `-z linker_flag'. GCC discards it without `$wl',
16494 # but is careful enough not to reorder.
16495 # Supported since Solaris 2.6 (maybe 2.5.1?)
16496 if test "$GCC" = yes; then
16497 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16499 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16503 link_all_deplibs
=yes
16507 if test "x$host_vendor" = xsequent
; then
16508 # Use $CC to link under sequent, because it throws in some extra .o
16509 # files that make .init and .fini sections work.
16510 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16512 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_libdir_flag_spec
='-L$libdir'
16515 hardcode_direct
=yes
16516 hardcode_minus_L
=yes
16517 hardcode_shlibpath_var
=no
16521 case $host_vendor in
16523 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_direct
=yes # is this really true???
16527 ## LD is ld it makes a PLAMLIB
16528 ## CC just makes a GrossModule.
16529 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16530 reload_cmds
='$CC -r -o $output$reload_objs'
16534 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16538 runpath_var
='LD_RUN_PATH'
16539 hardcode_shlibpath_var
=no
16543 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_shlibpath_var
=no
16545 export_dynamic_flag_spec
='-Bexport'
16549 if test -d /usr
/nec
; then
16550 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_shlibpath_var
=no
16552 runpath_var
=LD_RUN_PATH
16553 hardcode_runpath_var
=yes
16558 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16559 no_undefined_flag
='${wl}-z,text'
16560 archive_cmds_need_lc
=no
16561 hardcode_shlibpath_var
=no
16562 runpath_var
='LD_RUN_PATH'
16564 if test "$GCC" = yes; then
16565 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16573 sysv5
* | sco3.2v5
* | sco5v6
*)
16574 # Note: We can NOT use -z defs as we might desire, because we do not
16575 # link with -lc, and that would cause any symbols used from libc to
16576 # always be unresolved, which means just about no library would
16577 # ever link correctly. If we're not using GNU ld we use -z text
16578 # though, which does catch some bad symbols but isn't as heavy-handed
16580 no_undefined_flag
='${wl}-z,text'
16581 allow_undefined_flag
='${wl}-z,nodefs'
16582 archive_cmds_need_lc
=no
16583 hardcode_shlibpath_var
=no
16584 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16585 hardcode_libdir_separator
=':'
16586 link_all_deplibs
=yes
16587 export_dynamic_flag_spec
='${wl}-Bexport'
16588 runpath_var
='LD_RUN_PATH'
16590 if test "$GCC" = yes; then
16591 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16594 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16595 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601 hardcode_libdir_flag_spec
='-L$libdir'
16602 hardcode_shlibpath_var
=no
16610 if test x
$host_vendor = xsni
; then
16612 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16613 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16620 $as_echo "$ld_shlibs" >&6; }
16621 test "$ld_shlibs" = no
&& can_build_shared
=no
16623 with_gnu_ld
=$with_gnu_ld
16640 # Do we need to explicitly link libc?
16642 case "x$archive_cmds_need_lc" in
16644 # Assume -lc should be added
16645 archive_cmds_need_lc
=yes
16647 if test "$enable_shared" = yes && test "$GCC" = yes; then
16648 case $archive_cmds in
16650 # FIXME: we may have to deal with multi-command sequences.
16653 # Test whether the compiler implicitly links with -lc since on some
16654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16655 # to ld, don't add -lc before -lgcc.
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16658 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16659 $as_echo_n "(cached) " >&6
16662 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16665 (eval $ac_compile) 2>&5
16667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16668 test $ac_status = 0; } 2>conftest.err
; then
16671 libobjs
=conftest.
$ac_objext
16673 wl
=$lt_prog_compiler_wl
16674 pic_flag
=$lt_prog_compiler_pic
16680 lt_save_allow_undefined_flag
=$allow_undefined_flag
16681 allow_undefined_flag
=
16682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16683 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16686 test $ac_status = 0; }
16688 lt_cv_archive_cmds_need_lc
=no
16690 lt_cv_archive_cmds_need_lc
=yes
16692 allow_undefined_flag
=$lt_save_allow_undefined_flag
16694 cat conftest.err
1>&5
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16700 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16701 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16867 if test "$GCC" = yes; then
16869 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16870 *) lt_awk_arg
="/^libraries:/" ;;
16873 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16874 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16876 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16877 case $lt_search_path_spec in
16879 # if the path contains ";" then we assume it to be the separator
16880 # otherwise default to the standard path separator (i.e. ":") - it is
16881 # assumed that no part of a normal pathname contains ";" but that should
16882 # okay in the real world where ";" in dirpaths is itself problematic.
16883 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16886 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16889 # Ok, now we have the path, separated by spaces, we can step through it
16890 # and add multilib dir if necessary.
16891 lt_tmp_lt_search_path_spec
=
16892 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16893 for lt_sys_path
in $lt_search_path_spec; do
16894 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16895 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16897 test -d "$lt_sys_path" && \
16898 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16901 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16902 BEGIN {RS=" "; FS="/|\n";} {
16905 for (lt_i = NF; lt_i > 0; lt_i--) {
16906 if ($lt_i != "" && $lt_i != ".") {
16907 if ($lt_i == "..") {
16910 if (lt_count == 0) {
16911 lt_foo="/" $lt_i lt_foo;
16918 if (lt_foo != "") { lt_freq[lt_foo]++; }
16919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16921 # AWK program above erroneously prepends '/' to C:/dos/paths
16924 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16925 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16927 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16929 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16931 library_names_spec
=
16932 libname_spec
='lib$name'
16936 postuninstall_cmds
=
16940 shlibpath_overrides_runpath
=unknown
16942 dynamic_linker
="$host_os ld.so"
16943 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16944 need_lib_prefix
=unknown
16945 hardcode_into_libs
=no
16947 # when you set need_version to no, make sure it does not cause -set_version
16948 # flags to be left without arguments
16949 need_version
=unknown
16954 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16955 shlibpath_var
=LIBPATH
16957 # AIX 3 has no versioning support, so we append a major version to the name.
16958 soname_spec
='${libname}${release}${shared_ext}$major'
16965 hardcode_into_libs
=yes
16966 if test "$host_cpu" = ia64
; then
16967 # AIX 5 supports IA64
16968 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16969 shlibpath_var
=LD_LIBRARY_PATH
16971 # With GCC up to 2.95.x, collect2 would create an import file
16972 # for dependence libraries. The import file would start with
16973 # the line `#! .'. This would cause the generated library to
16974 # depend on `.', always an invalid library. This was fixed in
16975 # development snapshots of GCC prior to 3.0.
16977 aix4 | aix4.
[01] | aix4.
[01].
*)
16978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16980 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16983 can_build_shared
=no
16987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16988 # soname into executable. Probably we can add versioning support to
16989 # collect2, so additional links can be useful in future.
16990 if test "$aix_use_runtimelinking" = yes; then
16991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16992 # instead of lib<name>.a to let people know that these are not
16993 # typical AIX shared libraries.
16994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 # We preserve .a as extension for shared libraries through AIX4.2
16997 # and later when we are not doing run time linking.
16998 library_names_spec
='${libname}${release}.a $libname.a'
16999 soname_spec
='${libname}${release}${shared_ext}$major'
17001 shlibpath_var
=LIBPATH
17008 # Since July 2007 AmigaOS4 officially supports .so libraries.
17009 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 library_names_spec
='$libname.ixlibrary $libname.a'
17014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17015 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'
17021 library_names_spec
='${libname}${shared_ext}'
17022 dynamic_linker
="$host_os ld.so"
17023 shlibpath_var
=LIBRARY_PATH
17029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec
='${libname}${release}${shared_ext}$major'
17031 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17032 shlibpath_var
=LD_LIBRARY_PATH
17033 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17034 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17035 # the default ld.so.conf also contains /usr/contrib/lib and
17036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17037 # libtool to hard-code these into programs
17040 cygwin
* | mingw
* | pw32
* | cegcc
*)
17041 version_type
=windows
17046 case $GCC,$host_os in
17047 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17048 library_names_spec
='$libname.dll.a'
17049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17050 postinstall_cmds
='base_file=`basename \${file}`~
17051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17052 dldir=$destdir/`dirname \$dlpath`~
17053 test -d \$dldir || mkdir -p \$dldir~
17054 $install_prog $dir/$dlname \$dldir/$dlname~
17055 chmod a+x \$dldir/$dlname~
17056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17059 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17060 dlpath=$dir/\$dldll~
17062 shlibpath_overrides_runpath
=yes
17066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17067 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17069 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17072 # MinGW DLLs use traditional 'lib' prefix
17073 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17076 # pw32 DLLs use 'pw' prefix rather than 'lib'
17077 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17083 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17086 dynamic_linker
='Win32 ld.exe'
17087 # FIXME: first we should search . and the directory the executable is in
17091 darwin
* | rhapsody
*)
17092 dynamic_linker
="$host_os dyld"
17093 version_type
=darwin
17096 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17097 soname_spec
='${libname}${release}${major}$shared_ext'
17098 shlibpath_overrides_runpath
=yes
17099 shlibpath_var
=DYLD_LIBRARY_PATH
17100 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17102 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17103 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17111 soname_spec
='${libname}${release}${shared_ext}$major'
17112 shlibpath_var
=LD_LIBRARY_PATH
17115 freebsd
* | dragonfly
*)
17116 # DragonFly does not have aout. When/if they implement a new
17117 # versioning mechanism, adjust this.
17118 if test -x /usr
/bin
/objformat
; then
17119 objformat
=`/usr/bin/objformat`
17122 freebsd
[23].
*) objformat
=aout
;;
17123 *) objformat
=elf
;;
17126 version_type
=freebsd-
$objformat
17127 case $version_type in
17129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17134 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17138 shlibpath_var
=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath
=yes
17143 freebsd3.
[01]* | freebsdelf3.
[01]*)
17144 shlibpath_overrides_runpath
=yes
17145 hardcode_into_libs
=yes
17147 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17148 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17149 shlibpath_overrides_runpath
=no
17150 hardcode_into_libs
=yes
17152 *) # from 4.6 on, and DragonFly
17153 shlibpath_overrides_runpath
=yes
17154 hardcode_into_libs
=yes
17163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17164 soname_spec
='${libname}${release}${shared_ext}$major'
17165 shlibpath_var
=LD_LIBRARY_PATH
17166 hardcode_into_libs
=yes
17173 dynamic_linker
="$host_os runtime_loader"
17174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17175 soname_spec
='${libname}${release}${shared_ext}$major'
17176 shlibpath_var
=LIBRARY_PATH
17177 shlibpath_overrides_runpath
=yes
17178 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17179 hardcode_into_libs
=yes
17182 hpux9
* | hpux10
* | hpux11
*)
17183 # Give a soname corresponding to the major version so that dld.sl refuses to
17184 # link against other versions.
17191 hardcode_into_libs
=yes
17192 dynamic_linker
="$host_os dld.so"
17193 shlibpath_var
=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 soname_spec
='${libname}${release}${shared_ext}$major'
17197 if test "X$HPUX_IA64_MODE" = X32
; then
17198 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17200 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17202 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17206 hardcode_into_libs
=yes
17207 dynamic_linker
="$host_os dld.sl"
17208 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17209 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 soname_spec
='${libname}${release}${shared_ext}$major'
17212 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17213 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17217 dynamic_linker
="$host_os dld.sl"
17218 shlibpath_var
=SHLIB_PATH
17219 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec
='${libname}${release}${shared_ext}$major'
17224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17225 postinstall_cmds
='chmod 555 $lib'
17226 # or fails outright, so override atomically:
17227 install_override_mode
=555
17234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec
='${libname}${release}${shared_ext}$major'
17236 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17237 shlibpath_var
=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath
=no
17239 hardcode_into_libs
=yes
17242 irix5
* | irix6
* | nonstopux
*)
17244 nonstopux
*) version_type
=nonstopux
;;
17246 if test "$lt_cv_prog_gnu_ld" = yes; then
17254 soname_spec
='${libname}${release}${shared_ext}$major'
17255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17257 irix5
* | nonstopux
*)
17258 libsuff
= shlibsuff
=
17261 case $LD in # libtool.m4 will add one of these switches to LD
17262 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17263 libsuff
= shlibsuff
= libmagic
=32-bit;;
17264 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17265 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17266 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17267 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17268 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17272 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17273 shlibpath_overrides_runpath
=no
17274 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17275 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17276 hardcode_into_libs
=yes
17279 # No shared lib support for Linux oldld, aout, or coff.
17280 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17284 # This must be Linux ELF.
17285 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec
='${libname}${release}${shared_ext}$major'
17291 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17292 shlibpath_var
=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath
=no
17295 # Some binutils ld are patched to set DT_RUNPATH
17296 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17297 $as_echo_n "(cached) " >&6
17299 lt_cv_shlibpath_overrides_runpath
=no
17300 save_LDFLAGS
=$LDFLAGS
17301 save_libdir
=$libdir
17302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17315 if ac_fn_c_try_link
"$LINENO"; then :
17316 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17317 lt_cv_shlibpath_overrides_runpath
=yes
17320 rm -f core conftest.err conftest.
$ac_objext \
17321 conftest
$ac_exeext conftest.
$ac_ext
17322 LDFLAGS
=$save_LDFLAGS
17323 libdir
=$save_libdir
17327 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17329 # This implies no fast_install, which is unacceptable.
17330 # Some rework will be needed to allow for fast_install
17331 # before this can be enabled.
17332 hardcode_into_libs
=yes
17334 # Append ld.so.conf contents to the search path
17335 if test -f /etc
/ld.so.conf
; then
17336 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' ' '`
17337 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17340 # We used to test for /lib/ld.so.1 and disable shared libraries on
17341 # powerpc, because MkLinux only supported shared libraries with the
17342 # GNU dynamic linker. Since this was broken with cross compilers,
17343 # most powerpc-linux boxes support dynamic linking these days and
17344 # people can always --disable-shared, the test was removed, and we
17345 # assume the GNU/Linux dynamic linker is in use.
17346 dynamic_linker
='GNU/Linux ld.so'
17353 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17355 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17356 dynamic_linker
='NetBSD (a.out) ld.so'
17358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17359 soname_spec
='${libname}${release}${shared_ext}$major'
17360 dynamic_linker
='NetBSD ld.elf_so'
17362 shlibpath_var
=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath
=yes
17364 hardcode_into_libs
=yes
17369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 shlibpath_var
=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath
=yes
17378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec
='${libname}${release}${shared_ext}$major'
17380 shlibpath_var
=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath
=no
17382 hardcode_into_libs
=yes
17383 dynamic_linker
='ldqnx.so'
17388 sys_lib_dlsearch_path_spec
="/usr/lib"
17390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17392 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17393 *) need_version
=no
;;
17395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17396 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17397 shlibpath_var
=LD_LIBRARY_PATH
17398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17400 openbsd2.
[89] | openbsd2.
[89].
*)
17401 shlibpath_overrides_runpath
=no
17404 shlibpath_overrides_runpath
=yes
17408 shlibpath_overrides_runpath
=yes
17413 libname_spec
='$name'
17416 library_names_spec
='$libname${shared_ext} $libname.a'
17417 dynamic_linker
='OS/2 ld.exe'
17418 shlibpath_var
=LIBPATH
17421 osf3
* | osf4
* | osf5
*)
17425 soname_spec
='${libname}${release}${shared_ext}$major'
17426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 shlibpath_var
=LD_LIBRARY_PATH
17428 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17429 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec
='${libname}${release}${shared_ext}$major'
17442 shlibpath_var
=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath
=yes
17444 hardcode_into_libs
=yes
17445 # ldd complains unless libraries are executable
17446 postinstall_cmds
='chmod +x $lib'
17451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17453 shlibpath_var
=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath
=yes
17455 if test "$with_gnu_ld" = yes; then
17463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec
='${libname}${release}${shared_ext}$major'
17465 shlibpath_var
=LD_LIBRARY_PATH
17466 case $host_vendor in
17468 shlibpath_overrides_runpath
=no
17470 runpath_var
=LD_RUN_PATH
17478 shlibpath_overrides_runpath
=no
17479 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17485 if test -d /usr
/nec
;then
17487 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17488 soname_spec
='$libname${shared_ext}.$major'
17489 shlibpath_var
=LD_LIBRARY_PATH
17493 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17494 version_type
=freebsd-elf
17497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17498 soname_spec
='${libname}${release}${shared_ext}$major'
17499 shlibpath_var
=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath
=yes
17501 hardcode_into_libs
=yes
17502 if test "$with_gnu_ld" = yes; then
17503 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17505 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17508 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17512 sys_lib_dlsearch_path_spec
='/usr/lib'
17516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 shlibpath_var
=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath
=no
17523 hardcode_into_libs
=yes
17528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec
='${libname}${release}${shared_ext}$major'
17530 shlibpath_var
=LD_LIBRARY_PATH
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17538 $as_echo "$dynamic_linker" >&6; }
17539 test "$dynamic_linker" = no
&& can_build_shared
=no
17541 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17542 if test "$GCC" = yes; then
17543 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17547 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17550 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17647 if test -n "$hardcode_libdir_flag_spec" ||
17648 test -n "$runpath_var" ||
17649 test "X$hardcode_automatic" = "Xyes" ; then
17651 # We can hardcode non-existent directories.
17652 if test "$hardcode_direct" != no
&&
17653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654 # have to relink, otherwise we might link with an installed library
17655 # when we should be linking with a yet-to-be-installed one
17656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17657 test "$hardcode_minus_L" != no
; then
17658 # Linking always hardcodes the temporary library directory.
17659 hardcode_action
=relink
17661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662 hardcode_action
=immediate
17665 # We cannot hardcode anything, or else we can only hardcode existing
17667 hardcode_action
=unsupported
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17670 $as_echo "$hardcode_action" >&6; }
17672 if test "$hardcode_action" = relink ||
17673 test "$inherit_rpath" = yes; then
17674 # Fast installation is not supported
17675 enable_fast_install
=no
17676 elif test "$shlibpath_overrides_runpath" = yes ||
17677 test "$enable_shared" = no
; then
17678 # Fast installation is not necessary
17679 enable_fast_install
=needless
17687 if test "x$enable_dlopen" != xyes
; then
17688 enable_dlopen
=unknown
17689 enable_dlopen_self
=unknown
17690 enable_dlopen_self_static
=unknown
17697 lt_cv_dlopen
="load_add_on"
17699 lt_cv_dlopen_self
=yes
17702 mingw
* | pw32
* | cegcc
*)
17703 lt_cv_dlopen
="LoadLibrary"
17708 lt_cv_dlopen
="dlopen"
17713 # if libdl is installed we need to link against it
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17717 $as_echo_n "(cached) " >&6
17719 ac_check_lib_save_LIBS
=$LIBS
17721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17739 if ac_fn_c_try_link
"$LINENO"; then :
17740 ac_cv_lib_dl_dlopen
=yes
17742 ac_cv_lib_dl_dlopen
=no
17744 rm -f core conftest.err conftest.
$ac_objext \
17745 conftest
$ac_exeext conftest.
$ac_ext
17746 LIBS
=$ac_check_lib_save_LIBS
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17750 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17751 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17754 lt_cv_dlopen
="dyld"
17756 lt_cv_dlopen_self
=yes
17763 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17764 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17765 lt_cv_dlopen
="shl_load"
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17770 $as_echo_n "(cached) " >&6
17772 ac_check_lib_save_LIBS
=$LIBS
17774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17787 return shl_load ();
17792 if ac_fn_c_try_link
"$LINENO"; then :
17793 ac_cv_lib_dld_shl_load
=yes
17795 ac_cv_lib_dld_shl_load
=no
17797 rm -f core conftest.err conftest.
$ac_objext \
17798 conftest
$ac_exeext conftest.
$ac_ext
17799 LIBS
=$ac_check_lib_save_LIBS
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17803 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17804 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17806 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17807 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17808 lt_cv_dlopen
="dlopen"
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17813 $as_echo_n "(cached) " >&6
17815 ac_check_lib_save_LIBS
=$LIBS
17817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17835 if ac_fn_c_try_link
"$LINENO"; then :
17836 ac_cv_lib_dl_dlopen
=yes
17838 ac_cv_lib_dl_dlopen
=no
17840 rm -f core conftest.err conftest.
$ac_objext \
17841 conftest
$ac_exeext conftest.
$ac_ext
17842 LIBS
=$ac_check_lib_save_LIBS
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17846 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17847 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17850 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17854 ac_check_lib_save_LIBS
=$LIBS
17855 LIBS
="-lsvld $LIBS"
17856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17874 if ac_fn_c_try_link
"$LINENO"; then :
17875 ac_cv_lib_svld_dlopen
=yes
17877 ac_cv_lib_svld_dlopen
=no
17879 rm -f core conftest.err conftest.
$ac_objext \
17880 conftest
$ac_exeext conftest.
$ac_ext
17881 LIBS
=$ac_check_lib_save_LIBS
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17884 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17885 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17886 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17889 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17893 ac_check_lib_save_LIBS
=$LIBS
17895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17908 return dld_link ();
17913 if ac_fn_c_try_link
"$LINENO"; then :
17914 ac_cv_lib_dld_dld_link
=yes
17916 ac_cv_lib_dld_dld_link
=no
17918 rm -f core conftest.err conftest.
$ac_objext \
17919 conftest
$ac_exeext conftest.
$ac_ext
17920 LIBS
=$ac_check_lib_save_LIBS
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17923 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17924 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17925 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17946 if test "x$lt_cv_dlopen" != xno
; then
17952 case $lt_cv_dlopen in
17954 save_CPPFLAGS
="$CPPFLAGS"
17955 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17957 save_LDFLAGS
="$LDFLAGS"
17958 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17961 LIBS
="$lt_cv_dlopen_libs $LIBS"
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17964 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17965 if test "${lt_cv_dlopen_self+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17968 if test "$cross_compiling" = yes; then :
17969 lt_cv_dlopen_self
=cross
17971 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17972 lt_status
=$lt_dlunknown
17973 cat > conftest.
$ac_ext <<_LT_EOF
17974 #line 17974 "configure"
17975 #include "confdefs.h"
17984 # define LT_DLGLOBAL RTLD_GLOBAL
17987 # define LT_DLGLOBAL DL_GLOBAL
17989 # define LT_DLGLOBAL 0
17993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17994 find out it does not work in some platform. */
17995 #ifndef LT_DLLAZY_OR_NOW
17997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18000 # define LT_DLLAZY_OR_NOW DL_LAZY
18003 # define LT_DLLAZY_OR_NOW RTLD_NOW
18006 # define LT_DLLAZY_OR_NOW DL_NOW
18008 # define LT_DLLAZY_OR_NOW 0
18015 /* When -fvisbility=hidden is used, assume the code has been annotated
18016 correspondingly for the symbols needed. */
18017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18018 void fnord () __attribute__((visibility("default")));
18021 void fnord () { int i=42; }
18024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18025 int status = $lt_dlunknown;
18029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18033 else puts (dlerror ());
18035 /* dlclose (self); */
18043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18044 (eval $ac_link) 2>&5
18046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18047 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18048 (.
/conftest
; exit; ) >&5 2>/dev
/null
18050 case x
$lt_status in
18051 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18052 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18053 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18056 # compilation failed
18057 lt_cv_dlopen_self
=no
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18065 $as_echo "$lt_cv_dlopen_self" >&6; }
18067 if test "x$lt_cv_dlopen_self" = xyes
; then
18068 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18070 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18071 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
18074 if test "$cross_compiling" = yes; then :
18075 lt_cv_dlopen_self_static
=cross
18077 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18078 lt_status
=$lt_dlunknown
18079 cat > conftest.
$ac_ext <<_LT_EOF
18080 #line 18080 "configure"
18081 #include "confdefs.h"
18090 # define LT_DLGLOBAL RTLD_GLOBAL
18093 # define LT_DLGLOBAL DL_GLOBAL
18095 # define LT_DLGLOBAL 0
18099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18100 find out it does not work in some platform. */
18101 #ifndef LT_DLLAZY_OR_NOW
18103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18106 # define LT_DLLAZY_OR_NOW DL_LAZY
18109 # define LT_DLLAZY_OR_NOW RTLD_NOW
18112 # define LT_DLLAZY_OR_NOW DL_NOW
18114 # define LT_DLLAZY_OR_NOW 0
18121 /* When -fvisbility=hidden is used, assume the code has been annotated
18122 correspondingly for the symbols needed. */
18123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18124 void fnord () __attribute__((visibility("default")));
18127 void fnord () { int i=42; }
18130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18131 int status = $lt_dlunknown;
18135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18139 else puts (dlerror ());
18141 /* dlclose (self); */
18149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18150 (eval $ac_link) 2>&5
18152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18153 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18154 (.
/conftest
; exit; ) >&5 2>/dev
/null
18156 case x
$lt_status in
18157 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18158 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18159 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18162 # compilation failed
18163 lt_cv_dlopen_self_static
=no
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18174 CPPFLAGS
="$save_CPPFLAGS"
18175 LDFLAGS
="$save_LDFLAGS"
18180 case $lt_cv_dlopen_self in
18181 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18182 *) enable_dlopen_self
=unknown
;;
18185 case $lt_cv_dlopen_self_static in
18186 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18187 *) enable_dlopen_self_static
=unknown
;;
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18211 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18212 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18213 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18217 # FIXME - insert some real tests, host_os isn't really good enough
18220 if test -n "$STRIP" ; then
18221 striplib
="$STRIP -x"
18222 old_striplib
="$STRIP -S"
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18224 $as_echo "yes" >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 $as_echo "no" >&6; }
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18232 $as_echo "no" >&6; }
18248 # Report which library types will actually be built
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18252 $as_echo "$can_build_shared" >&6; }
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18255 $as_echo_n "checking whether to build shared libraries... " >&6; }
18256 test "$can_build_shared" = "no" && enable_shared
=no
18258 # On AIX, shared libraries and static libraries use the same namespace, and
18259 # are all built from PIC.
18262 test "$enable_shared" = yes && enable_static
=no
18263 if test -n "$RANLIB"; then
18264 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18265 postinstall_cmds
='$RANLIB $lib'
18270 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18271 test "$enable_shared" = yes && enable_static
=no
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18276 $as_echo "$enable_shared" >&6; }
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18279 $as_echo_n "checking whether to build static libraries... " >&6; }
18280 # Make sure either enable_shared or enable_static is yes.
18281 test "$enable_shared" = yes || enable_static
=yes
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18283 $as_echo "$enable_static" >&6; }
18290 ac_cpp
='$CPP $CPPFLAGS'
18291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18297 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18298 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18299 (test "X$CXX" != "Xg++"))) ; then
18301 ac_cpp
='$CXXCPP $CPPFLAGS'
18302 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18306 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18307 if test -z "$CXXCPP"; then
18308 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18311 # Double quotes because CXXCPP needs to be expanded
18312 for CXXCPP
in "$CXX -E" "/lib/cpp"
18314 ac_preproc_ok
=false
18315 for ac_cxx_preproc_warn_flag
in '' yes
18317 # Use a header file that comes with gcc, so configuring glibc
18318 # with a fresh cross-compiler works.
18319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18320 # <limits.h> exists even on freestanding compilers.
18321 # On the NeXT, cc -E runs the code through the compiler's parser,
18322 # not just through cpp. "Syntax error" is here to catch this case.
18323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18326 # include <limits.h>
18328 # include <assert.h>
18332 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18335 # Broken: fails on valid input.
18338 rm -f conftest.err conftest.
$ac_ext
18340 # OK, works on sane cases. Now check whether nonexistent headers
18341 # can be detected and how.
18342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #include <ac_nonexistent.h>
18346 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18347 # Broken: success on invalid input.
18350 # Passes both tests.
18354 rm -f conftest.err conftest.
$ac_ext
18357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18358 rm -f conftest.err conftest.
$ac_ext
18359 if $ac_preproc_ok; then :
18364 ac_cv_prog_CXXCPP
=$CXXCPP
18367 CXXCPP
=$ac_cv_prog_CXXCPP
18369 ac_cv_prog_CXXCPP
=$CXXCPP
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18372 $as_echo "$CXXCPP" >&6; }
18373 ac_preproc_ok
=false
18374 for ac_cxx_preproc_warn_flag
in '' yes
18376 # Use a header file that comes with gcc, so configuring glibc
18377 # with a fresh cross-compiler works.
18378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18379 # <limits.h> exists even on freestanding compilers.
18380 # On the NeXT, cc -E runs the code through the compiler's parser,
18381 # not just through cpp. "Syntax error" is here to catch this case.
18382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18385 # include <limits.h>
18387 # include <assert.h>
18391 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18394 # Broken: fails on valid input.
18397 rm -f conftest.err conftest.
$ac_ext
18399 # OK, works on sane cases. Now check whether nonexistent headers
18400 # can be detected and how.
18401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <ac_nonexistent.h>
18405 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18406 # Broken: success on invalid input.
18409 # Passes both tests.
18413 rm -f conftest.err conftest.
$ac_ext
18416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18417 rm -f conftest.err conftest.
$ac_ext
18418 if $ac_preproc_ok; then :
18421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18423 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18424 See \`config.log' for more details." "$LINENO" 5; }
18428 ac_cpp
='$CPP $CPPFLAGS'
18429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18434 _lt_caught_CXX_error
=yes
18438 ac_cpp
='$CXXCPP $CPPFLAGS'
18439 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18443 archive_cmds_need_lc_CXX
=no
18444 allow_undefined_flag_CXX
=
18445 always_export_symbols_CXX
=no
18446 archive_expsym_cmds_CXX
=
18447 compiler_needs_object_CXX
=no
18448 export_dynamic_flag_spec_CXX
=
18449 hardcode_direct_CXX
=no
18450 hardcode_direct_absolute_CXX
=no
18451 hardcode_libdir_flag_spec_CXX
=
18452 hardcode_libdir_flag_spec_ld_CXX
=
18453 hardcode_libdir_separator_CXX
=
18454 hardcode_minus_L_CXX
=no
18455 hardcode_shlibpath_var_CXX
=unsupported
18456 hardcode_automatic_CXX
=no
18457 inherit_rpath_CXX
=no
18459 module_expsym_cmds_CXX
=
18460 link_all_deplibs_CXX
=unknown
18461 old_archive_cmds_CXX
=$old_archive_cmds
18462 reload_flag_CXX
=$reload_flag
18463 reload_cmds_CXX
=$reload_cmds
18464 no_undefined_flag_CXX
=
18465 whole_archive_flag_spec_CXX
=
18466 enable_shared_with_static_runtimes_CXX
=no
18468 # Source file extension for C++ test sources.
18471 # Object file extension for compiled C++ test sources.
18475 # No sense in running all these tests if we already determined that
18476 # the CXX compiler isn't working. Some variables (like enable_shared)
18477 # are currently assumed to apply to all compilers on this platform,
18478 # and will be corrupted by setting them based on a non-working compiler.
18479 if test "$_lt_caught_CXX_error" != yes; then
18480 # Code to be used in simple compile tests
18481 lt_simple_compile_test_code
="int some_variable = 0;"
18483 # Code to be used in simple link tests
18484 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18493 # If no C compiler was specified, use CC.
18496 # If no C compiler flags were specified, use CFLAGS.
18497 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18499 # Allow CC to be a program name with arguments.
18503 # save warnings/boilerplate of simple test code
18504 ac_outfile
=conftest.
$ac_objext
18505 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18506 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18507 _lt_compiler_boilerplate
=`cat conftest.err`
18510 ac_outfile
=conftest.
$ac_objext
18511 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18512 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18513 _lt_linker_boilerplate
=`cat conftest.err`
18517 # Allow CC to be a program name with arguments.
18522 lt_save_with_gnu_ld
=$with_gnu_ld
18523 lt_save_path_LD
=$lt_cv_path_LD
18524 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18525 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18527 $as_unset lt_cv_prog_gnu_ld
18529 if test -n "${lt_cv_path_LDCXX+set}"; then
18530 lt_cv_path_LD
=$lt_cv_path_LDCXX
18532 $as_unset lt_cv_path_LD
18534 test -z "${LDCXX+set}" || LD
=$LDCXX
18538 for cc_temp
in $compiler""; do
18540 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18541 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18546 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18549 if test -n "$compiler"; then
18550 # We don't want -fno-exception when compiling C++ code, so set the
18551 # no_builtin_flag separately
18552 if test "$GXX" = yes; then
18553 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18555 lt_prog_compiler_no_builtin_flag_CXX
=
18558 if test "$GXX" = yes; then
18559 # Set up default GNU C++ configuration
18563 # Check whether --with-gnu-ld was given.
18564 if test "${with_gnu_ld+set}" = set; then :
18565 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18571 if test "$GCC" = yes; then
18572 # Check if gcc -print-prog-name=ld gives a path.
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18574 $as_echo_n "checking for ld used by $CC... " >&6; }
18577 # gcc leaves a trailing carriage return which upsets mingw
18578 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18580 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18583 # Accept absolute paths.
18585 re_direlt
='/[^/][^/]*/\.\./'
18586 # Canonicalize the pathname of ld
18587 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18588 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18589 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18591 test -z "$LD" && LD
="$ac_prog"
18594 # If it fails, then pretend we aren't using GCC.
18598 # If it is relative, then search for the first ld in PATH.
18599 with_gnu_ld
=unknown
18602 elif test "$with_gnu_ld" = yes; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18604 $as_echo_n "checking for GNU ld... " >&6; }
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18607 $as_echo_n "checking for non-GNU ld... " >&6; }
18609 if test "${lt_cv_path_LD+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18612 if test -z "$LD"; then
18613 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18614 for ac_dir
in $PATH; do
18616 test -z "$ac_dir" && ac_dir
=.
18617 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18618 lt_cv_path_LD
="$ac_dir/$ac_prog"
18619 # Check to see if the program is GNU ld. I'd rather use --version,
18620 # but apparently some variants of GNU ld only accept -v.
18621 # Break only if it was the GNU/non-GNU ld that we prefer.
18622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18623 *GNU
* |
*'with BFD'*)
18624 test "$with_gnu_ld" != no
&& break
18627 test "$with_gnu_ld" != yes && break
18634 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18638 LD
="$lt_cv_path_LD"
18639 if test -n "$LD"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18641 $as_echo "$LD" >&6; }
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18646 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18648 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18649 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18650 $as_echo_n "(cached) " >&6
18652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18653 case `$LD -v 2>&1 </dev/null` in
18654 *GNU
* |
*'with BFD'*)
18655 lt_cv_prog_gnu_ld
=yes
18658 lt_cv_prog_gnu_ld
=no
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18663 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18664 with_gnu_ld
=$lt_cv_prog_gnu_ld
18672 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18673 # archiving commands below assume that GNU ld is being used.
18674 if test "$with_gnu_ld" = yes; then
18675 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18676 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'
18678 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18679 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18681 # If archive_cmds runs LD, not CC, wlarc should be empty
18682 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18683 # investigate it a little bit more. (MM)
18686 # ancient GNU ld didn't support --whole-archive et. al.
18687 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18688 $GREP 'no-whole-archive' > /dev
/null
; then
18689 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18691 whole_archive_flag_spec_CXX
=
18697 # A generic and very simple default shared library creation
18698 # command for GNU C++ for the case where it uses the native
18699 # linker, instead of GNU ld. If possible, this setting should
18700 # overridden to take advantage of the native linker features on
18701 # the platform it is being used on.
18702 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18705 # Commands to make compiler produce verbose output that lists
18706 # what "hidden" libraries, object files and flags are used when
18707 # linking a shared library.
18708 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18716 # PORTME: fill in a description of your system's C++ link characteristics
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18722 # FIXME: insert proper C++ library support
18726 if test "$host_cpu" = ia64
; then
18727 # On IA64, the linker does run time linking by default, so we don't
18728 # have to do anything special.
18729 aix_use_runtimelinking
=no
18730 exp_sym_flag
='-Bexport'
18733 aix_use_runtimelinking
=no
18735 # Test if we are trying to use run time linking or normal
18736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18737 # need to do runtime linking.
18738 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18739 for ld_flag
in $LDFLAGS; do
18742 aix_use_runtimelinking
=yes
18750 exp_sym_flag
='-bexport'
18751 no_entry_flag
='-bnoentry'
18754 # When large executables or shared objects are built, AIX ld can
18755 # have problems creating the table of contents. If linking a library
18756 # or program results in "error TOC overflow" add -mminimal-toc to
18757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18760 archive_cmds_CXX
=''
18761 hardcode_direct_CXX
=yes
18762 hardcode_direct_absolute_CXX
=yes
18763 hardcode_libdir_separator_CXX
=':'
18764 link_all_deplibs_CXX
=yes
18765 file_list_spec_CXX
='${wl}-f,'
18767 if test "$GXX" = yes; then
18768 case $host_os in aix4.
[012]|aix4.
[012].
*)
18769 # We only want to do this on AIX 4.2 and lower, the check
18770 # below for broken collect2 doesn't work under 4.3+
18771 collect2name
=`${CC} -print-prog-name=collect2`
18772 if test -f "$collect2name" &&
18773 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18775 # We have reworked collect2
18778 # We have old collect2
18779 hardcode_direct_CXX
=unsupported
18780 # It fails to find uninstalled libraries when the uninstalled
18781 # path is not listed in the libpath. Setting hardcode_minus_L
18782 # to unsupported forces relinking
18783 hardcode_minus_L_CXX
=yes
18784 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18785 hardcode_libdir_separator_CXX
=
18788 shared_flag
='-shared'
18789 if test "$aix_use_runtimelinking" = yes; then
18790 shared_flag
="$shared_flag "'${wl}-G'
18794 if test "$host_cpu" = ia64
; then
18795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18796 # chokes on -Wl,-G. The following line is correct:
18799 if test "$aix_use_runtimelinking" = yes; then
18800 shared_flag
='${wl}-G'
18802 shared_flag
='${wl}-bM:SRE'
18807 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18808 # It seems that -bexpall does not export symbols beginning with
18809 # underscore (_), so it is better to generate a list of symbols to
18811 always_export_symbols_CXX
=yes
18812 if test "$aix_use_runtimelinking" = yes; then
18813 # Warning - without using the other runtime loading flags (-brtl),
18814 # -berok will link without error, but may produce a broken library.
18815 allow_undefined_flag_CXX
='-berok'
18816 # Determine the default libpath from the value encoded in an empty
18818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h. */
18829 if ac_fn_cxx_try_link
"$LINENO"; then :
18831 lt_aix_libpath_sed
='
18832 /Import File Strings/,/^$/ {
18838 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18839 # Check for a 64-bit object if we didn't find anything.
18840 if test -z "$aix_libpath"; then
18841 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18844 rm -f core conftest.err conftest.
$ac_objext \
18845 conftest
$ac_exeext conftest.
$ac_ext
18846 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18848 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18850 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"
18852 if test "$host_cpu" = ia64
; then
18853 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18854 allow_undefined_flag_CXX
="-z nodefs"
18855 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"
18857 # Determine the default libpath from the value encoded in an
18858 # empty executable.
18859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18870 if ac_fn_cxx_try_link
"$LINENO"; then :
18872 lt_aix_libpath_sed
='
18873 /Import File Strings/,/^$/ {
18879 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18880 # Check for a 64-bit object if we didn't find anything.
18881 if test -z "$aix_libpath"; then
18882 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18885 rm -f core conftest.err conftest.
$ac_objext \
18886 conftest
$ac_exeext conftest.
$ac_ext
18887 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18889 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18890 # Warning - without using the other run time loading flags,
18891 # -berok will link without error, but may produce a broken library.
18892 no_undefined_flag_CXX
=' ${wl}-bernotok'
18893 allow_undefined_flag_CXX
=' ${wl}-berok'
18894 if test "$with_gnu_ld" = yes; then
18895 # We only use this code for GNU lds that support --whole-archive.
18896 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18898 # Exported symbols can be pulled into shared objects from archives
18899 whole_archive_flag_spec_CXX
='$convenience'
18901 archive_cmds_need_lc_CXX
=yes
18902 # This is similar to how AIX traditionally builds its shared
18904 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'
18910 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18911 allow_undefined_flag_CXX
=unsupported
18912 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18913 # support --undefined. This deserves some investigation. FIXME
18914 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18921 case $cc_basename in
18923 # FIXME: insert proper C++ library support
18929 cygwin
* | mingw
* | pw32
* | cegcc
*)
18930 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18931 # as there is no search path for DLLs.
18932 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18933 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18934 allow_undefined_flag_CXX
=unsupported
18935 always_export_symbols_CXX
=no
18936 enable_shared_with_static_runtimes_CXX
=yes
18938 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18939 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'
18940 # If the export-symbols file already is a .def file (1st line
18941 # is EXPORTS), use it as is; otherwise, prepend...
18942 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18943 cp $export_symbols $output_objdir/$soname.def;
18945 echo EXPORTS > $output_objdir/$soname.def;
18946 cat $export_symbols >> $output_objdir/$soname.def;
18948 $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'
18953 darwin
* | rhapsody
*)
18956 archive_cmds_need_lc_CXX
=no
18957 hardcode_direct_CXX
=no
18958 hardcode_automatic_CXX
=yes
18959 hardcode_shlibpath_var_CXX
=unsupported
18960 if test "$lt_cv_ld_force_load" = "yes"; then
18961 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\"`'
18963 whole_archive_flag_spec_CXX
=''
18965 link_all_deplibs_CXX
=yes
18966 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18967 case $cc_basename in
18968 ifort
*) _lt_dar_can_shared
=yes ;;
18969 *) _lt_dar_can_shared
=$GCC ;;
18971 if test "$_lt_dar_can_shared" = "yes"; then
18972 output_verbose_link_cmd
=func_echo_all
18973 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}"
18974 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18975 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}"
18976 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}"
18977 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18978 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}"
18979 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}"
18989 case $cc_basename in
18991 # FIXME: insert proper C++ library support
18995 # Green Hills C++ Compiler
18996 # FIXME: insert proper C++ library support
19000 # FIXME: insert proper C++ library support
19007 # C++ shared libraries reported to be fairly broken before
19013 archive_cmds_need_lc_CXX
=no
19016 freebsd
* | dragonfly
*)
19017 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19026 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19027 link_all_deplibs_CXX
=yes
19031 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19032 hardcode_libdir_separator_CXX
=:
19033 export_dynamic_flag_spec_CXX
='${wl}-E'
19034 hardcode_direct_CXX
=yes
19035 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19036 # but as the default
19037 # location of the library.
19039 case $cc_basename in
19041 # FIXME: insert proper C++ library support
19045 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'
19046 # Commands to make compiler produce verbose output that lists
19047 # what "hidden" libraries, object files and flags are used when
19048 # linking a shared library.
19050 # There doesn't appear to be a way to prevent this compiler from
19051 # explicitly linking system object files so we need to strip them
19052 # from the output so that they don't get included in the library
19054 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"'
19057 if test "$GXX" = yes; then
19058 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'
19060 # FIXME: insert proper C++ library support
19068 if test $with_gnu_ld = no
; then
19069 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19070 hardcode_libdir_separator_CXX
=:
19076 export_dynamic_flag_spec_CXX
='${wl}-E'
19082 hardcode_direct_CXX
=no
19083 hardcode_shlibpath_var_CXX
=no
19086 hardcode_direct_CXX
=yes
19087 hardcode_direct_absolute_CXX
=yes
19088 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19089 # but as the default
19090 # location of the library.
19094 case $cc_basename in
19096 # FIXME: insert proper C++ library support
19102 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19105 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19108 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19111 # Commands to make compiler produce verbose output that lists
19112 # what "hidden" libraries, object files and flags are used when
19113 # linking a shared library.
19115 # There doesn't appear to be a way to prevent this compiler from
19116 # explicitly linking system object files so we need to strip them
19117 # from the output so that they don't get included in the library
19119 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"'
19122 if test "$GXX" = yes; then
19123 if test $with_gnu_ld = no
; then
19126 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19129 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19132 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'
19137 # FIXME: insert proper C++ library support
19145 hardcode_direct_CXX
=no
19146 hardcode_shlibpath_var_CXX
=no
19147 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19148 export_dynamic_flag_spec_CXX
='${wl}-E'
19149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19150 # Instead, shared libraries are loaded at an image base (0x10000000 by
19151 # default) and relocated if they conflict, which is a slow very memory
19152 # consuming and fragmenting process. To avoid this, we pick a random,
19153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19155 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'
19156 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'
19159 case $cc_basename in
19162 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'
19164 # Archives containing C++ object files must be created using
19165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19166 # necessary to make sure instantiated templates are included
19168 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19171 if test "$GXX" = yes; then
19172 if test "$with_gnu_ld" = no
; then
19173 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'
19175 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'
19178 link_all_deplibs_CXX
=yes
19181 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19182 hardcode_libdir_separator_CXX
=:
19183 inherit_rpath_CXX
=yes
19186 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19187 case $cc_basename in
19189 # Kuck and Associates, Inc. (KAI) C++ Compiler
19191 # KCC will only create a shared library if the output file
19192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19193 # to its proper name (with version) after linking.
19194 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'
19195 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'
19196 # Commands to make compiler produce verbose output that lists
19197 # what "hidden" libraries, object files and flags are used when
19198 # linking a shared library.
19200 # There doesn't appear to be a way to prevent this compiler from
19201 # explicitly linking system object files so we need to strip them
19202 # from the output so that they don't get included in the library
19204 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"'
19206 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19207 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19209 # Archives containing C++ object files must be created using
19210 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19211 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19216 # version 8.0 and above of icpc choke on multiply defined symbols
19217 # if we add $predep_objects and $postdep_objects, however 7.1 and
19218 # earlier do not add the objects themselves.
19219 case `$CC -V 2>&1` in
19221 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19222 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'
19224 *) # Version 8.0 or newer
19227 ia64
*) tmp_idyn
=' -i_dynamic';;
19229 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230 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'
19233 archive_cmds_need_lc_CXX
=no
19234 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19236 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19239 # Portland Group C++ compiler
19241 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19242 prelink_cmds_CXX
='tpldir=Template.dir~
19244 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19245 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19246 old_archive_cmds_CXX
='tpldir=Template.dir~
19248 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19249 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19251 archive_cmds_CXX
='tpldir=Template.dir~
19253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19254 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19255 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19258 $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'
19260 *) # Version 6 and above use weak symbols
19261 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19262 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'
19266 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19267 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19268 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'
19272 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19273 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'
19275 runpath_var
=LD_RUN_PATH
19276 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19277 hardcode_libdir_separator_CXX
=:
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19287 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'
19289 xl
* | mpixl
* | bgxl
*)
19290 # IBM XL 8.0 on PPC, with GNU ld
19291 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19292 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19293 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19294 if test "x$supports_anon_versioning" = xyes
; then
19295 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19297 echo "local: *; };" >> $output_objdir/$libname.ver~
19298 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19302 case `$CC -V 2>&1 | sed 5q` in
19305 no_undefined_flag_CXX
=' -zdefs'
19306 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19307 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'
19308 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19309 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'
19310 compiler_needs_object_CXX
=yes
19312 # Not sure whether something based on
19313 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19315 output_verbose_link_cmd
='func_echo_all'
19317 # Archives containing C++ object files must be created using
19318 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19319 # necessary to make sure instantiated templates are included
19321 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19329 # FIXME: insert proper C++ library support
19334 # FIXME: insert proper C++ library support
19339 case $cc_basename in
19341 # FIXME: insert proper C++ library support
19345 # FIXME: insert proper C++ library support
19352 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19353 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19355 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19356 hardcode_direct_CXX
=yes
19357 hardcode_shlibpath_var_CXX
=no
19359 # Workaround some broken pre-1.5 toolchains
19360 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19368 # C++ shared libraries are fairly broken
19373 if test -f /usr
/libexec
/ld.so
; then
19374 hardcode_direct_CXX
=yes
19375 hardcode_shlibpath_var_CXX
=no
19376 hardcode_direct_absolute_CXX
=yes
19377 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19378 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19380 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19381 export_dynamic_flag_spec_CXX
='${wl}-E'
19382 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19384 output_verbose_link_cmd
=func_echo_all
19390 osf3
* | osf4
* | osf5
*)
19391 case $cc_basename in
19393 # Kuck and Associates, Inc. (KAI) C++ Compiler
19395 # KCC will only create a shared library if the output file
19396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19397 # to its proper name (with version) after linking.
19398 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'
19400 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19401 hardcode_libdir_separator_CXX
=:
19403 # Archives containing C++ object files must be created using
19404 # the KAI C++ compiler.
19406 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19407 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19411 # Rational C++ 2.4.1
19412 # FIXME: insert proper C++ library support
19418 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19419 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'
19420 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19423 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19424 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'
19425 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19426 echo "-hidden">> $lib.exp~
19427 $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~
19429 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19433 hardcode_libdir_separator_CXX
=:
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19439 # There doesn't appear to be a way to prevent this compiler from
19440 # explicitly linking system object files so we need to strip them
19441 # from the output so that they don't get included in the library
19443 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"'
19446 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19447 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19450 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'
19453 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'
19457 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19458 hardcode_libdir_separator_CXX
=:
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19463 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19466 # FIXME: insert proper C++ library support
19474 # FIXME: insert proper C++ library support
19479 case $cc_basename in
19482 # FIXME: insert proper C++ library support
19487 # FIXME: insert proper C++ library support
19491 # FIXME: insert proper C++ library support
19498 case $cc_basename in
19500 # Sun C++ 4.2, 5.x and Centerline C++
19501 archive_cmds_need_lc_CXX
=yes
19502 no_undefined_flag_CXX
=' -zdefs'
19503 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19504 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19505 $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'
19507 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19508 hardcode_shlibpath_var_CXX
=no
19510 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19512 # The compiler driver will combine and reorder linker options,
19513 # but understands `-z linker_flag'.
19514 # Supported since Solaris 2.6 (maybe 2.5.1?)
19515 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19518 link_all_deplibs_CXX
=yes
19520 output_verbose_link_cmd
='func_echo_all'
19522 # Archives containing C++ object files must be created using
19523 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19524 # necessary to make sure instantiated templates are included
19526 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19529 # Green Hills C++ Compiler
19530 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19532 # The C++ compiler must be used to create the archive.
19533 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19536 # GNU C++ compiler with Solaris linker
19537 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19538 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19539 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19540 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19541 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19542 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19544 # Commands to make compiler produce verbose output that lists
19545 # what "hidden" libraries, object files and flags are used when
19546 # linking a shared library.
19547 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19549 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19551 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19552 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19553 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19555 # Commands to make compiler produce verbose output that lists
19556 # what "hidden" libraries, object files and flags are used when
19557 # linking a shared library.
19558 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19561 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19563 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19565 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19573 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19574 no_undefined_flag_CXX
='${wl}-z,text'
19575 archive_cmds_need_lc_CXX
=no
19576 hardcode_shlibpath_var_CXX
=no
19577 runpath_var
='LD_RUN_PATH'
19579 case $cc_basename in
19581 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19591 sysv5
* | sco3.2v5
* | sco5v6
*)
19592 # Note: We can NOT use -z defs as we might desire, because we do not
19593 # link with -lc, and that would cause any symbols used from libc to
19594 # always be unresolved, which means just about no library would
19595 # ever link correctly. If we're not using GNU ld we use -z text
19596 # though, which does catch some bad symbols but isn't as heavy-handed
19598 no_undefined_flag_CXX
='${wl}-z,text'
19599 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19600 archive_cmds_need_lc_CXX
=no
19601 hardcode_shlibpath_var_CXX
=no
19602 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19603 hardcode_libdir_separator_CXX
=':'
19604 link_all_deplibs_CXX
=yes
19605 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19606 runpath_var
='LD_RUN_PATH'
19608 case $cc_basename in
19610 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19611 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19612 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19613 '"$old_archive_cmds_CXX"
19614 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19615 '"$reload_cmds_CXX"
19618 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19619 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19625 case $cc_basename in
19627 # NonStop-UX NCC 3.20
19628 # FIXME: insert proper C++ library support
19632 # FIXME: insert proper C++ library support
19639 # FIXME: insert proper C++ library support
19644 # FIXME: insert proper C++ library support
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19650 $as_echo "$ld_shlibs_CXX" >&6; }
19651 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19657 ## There is no encapsulation within the following macros, do not change
19658 ## the running order or otherwise move them around unless you know exactly
19659 ## what you are doing...
19660 # Dependencies to place before and after the object being linked:
19661 predep_objects_CXX
=
19662 postdep_objects_CXX
=
19665 compiler_lib_search_path_CXX
=
19667 cat > conftest.
$ac_ext <<_LT_EOF
19671 Foo (void) { a = 0; }
19677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19678 (eval $ac_compile) 2>&5
19680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681 test $ac_status = 0; }; then
19682 # Parse the compiler output and extract the necessary
19683 # objects, libraries and library flags.
19685 # Sentinel used to keep track of whether or not we are before
19686 # the conftest object file.
19687 pre_test_object_deps_done
=no
19689 for p
in `eval "$output_verbose_link_cmd"`; do
19693 # Some compilers place space between "-{L,R}" and the path.
19694 # Remove the space.
19695 if test $p = "-L" ||
19696 test $p = "-R"; then
19703 if test "$pre_test_object_deps_done" = no
; then
19706 # Internal compiler library paths should come after those
19707 # provided the user. The postdeps already come after the
19708 # user supplied libs so there is no need to process them.
19709 if test -z "$compiler_lib_search_path_CXX"; then
19710 compiler_lib_search_path_CXX
="${prev}${p}"
19712 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19715 # The "-l" case would never come before the object being
19716 # linked, so don't bother handling this case.
19719 if test -z "$postdeps_CXX"; then
19720 postdeps_CXX
="${prev}${p}"
19722 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19728 # This assumes that the test object file only shows up
19729 # once in the compiler output.
19730 if test "$p" = "conftest.$objext"; then
19731 pre_test_object_deps_done
=yes
19735 if test "$pre_test_object_deps_done" = no
; then
19736 if test -z "$predep_objects_CXX"; then
19737 predep_objects_CXX
="$p"
19739 predep_objects_CXX
="$predep_objects_CXX $p"
19742 if test -z "$postdep_objects_CXX"; then
19743 postdep_objects_CXX
="$p"
19745 postdep_objects_CXX
="$postdep_objects_CXX $p"
19750 *) ;; # Ignore the rest.
19758 echo "libtool.m4: error: problem compiling CXX test program"
19761 $RM -f confest.
$objext
19763 # PORTME: override above test on systems where it is broken
19766 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19767 # hack all around it, let's just trust "g++" to DTRT.
19768 predep_objects_CXX
=
19769 postdep_objects_CXX
=
19774 case `$CC -V 2>&1 | sed 5q` in
19778 # The more standards-conforming stlport4 library is
19779 # incompatible with the Cstd library. Avoid specifying
19780 # it if it's in CXXFLAGS. Ignore libCrun as
19781 # -library=stlport4 depends on it.
19782 case " $CXX $CXXFLAGS " in
19783 *" -library=stlport4 "*)
19784 solaris_use_stlport4
=yes
19788 if test "$solaris_use_stlport4" != yes; then
19789 postdeps_CXX
='-library=Cstd -library=Crun'
19796 case $cc_basename in
19798 # The more standards-conforming stlport4 library is
19799 # incompatible with the Cstd library. Avoid specifying
19800 # it if it's in CXXFLAGS. Ignore libCrun as
19801 # -library=stlport4 depends on it.
19802 case " $CXX $CXXFLAGS " in
19803 *" -library=stlport4 "*)
19804 solaris_use_stlport4
=yes
19808 # Adding this requires a known-good setup of shared libraries for
19809 # Sun compiler versions before 5.6, else PIC objects from an old
19810 # archive will be linked into the output, leading to subtle bugs.
19811 if test "$solaris_use_stlport4" != yes; then
19812 postdeps_CXX
='-library=Cstd -library=Crun'
19820 case " $postdeps_CXX " in
19821 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19823 compiler_lib_search_dirs_CXX
=
19824 if test -n "${compiler_lib_search_path_CXX}"; then
19825 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19858 lt_prog_compiler_wl_CXX
=
19859 lt_prog_compiler_pic_CXX
=
19860 lt_prog_compiler_static_CXX
=
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19865 # C++ specific cases for pic, static, wl, etc.
19866 if test "$GXX" = yes; then
19867 lt_prog_compiler_wl_CXX
='-Wl,'
19868 lt_prog_compiler_static_CXX
='-static'
19872 # All AIX code is PIC.
19873 if test "$host_cpu" = ia64
; then
19874 # AIX 5 now supports IA64 processor
19875 lt_prog_compiler_static_CXX
='-Bstatic'
19877 lt_prog_compiler_pic_CXX
='-fPIC'
19883 # see comment about AmigaOS4 .so support
19884 lt_prog_compiler_pic_CXX
='-fPIC'
19887 # FIXME: we need at least 68020 code to build shared libraries, but
19888 # adding the `-m68020' flag to GCC prevents building anything better,
19890 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19895 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19896 # PIC is the default for these OSes.
19898 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19899 # This hack is so that the source file can tell whether it is being
19900 # built for inclusion in a dll (and should export symbols for example).
19901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19902 # (--disable-auto-import) libraries
19903 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19905 darwin
* | rhapsody
*)
19906 # PIC is the default on this platform
19907 # Common symbols not allowed in MH_DYLIB files
19908 lt_prog_compiler_pic_CXX
='-fno-common'
19911 # DJGPP does not support shared libraries at all
19912 lt_prog_compiler_pic_CXX
=
19915 # PIC is the default for Haiku.
19916 # The "-static" flag exists, but is broken.
19917 lt_prog_compiler_static_CXX
=
19920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19921 # Instead, we relocate shared libraries at runtime.
19924 if test -d /usr
/nec
; then
19925 lt_prog_compiler_pic_CXX
=-Kconform_pic
19929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19931 # sets the default TLS model and affects inlining.
19936 lt_prog_compiler_pic_CXX
='-fPIC'
19941 # QNX uses GNU C++, but need to define -shared option too, otherwise
19942 # it will coredump.
19943 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19946 lt_prog_compiler_pic_CXX
='-fPIC'
19952 # All AIX code is PIC.
19953 if test "$host_cpu" = ia64
; then
19954 # AIX 5 now supports IA64 processor
19955 lt_prog_compiler_static_CXX
='-Bstatic'
19957 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19961 case $cc_basename in
19963 # Green Hills C++ Compiler
19964 # _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"
19969 case $cc_basename in
19971 lt_prog_compiler_pic_CXX
='-KPIC'
19974 # Green Hills C++ Compiler
19975 lt_prog_compiler_pic_CXX
='-pic'
19981 freebsd
* | dragonfly
*)
19982 # FreeBSD uses GNU C++
19984 hpux9
* | hpux10
* | hpux11
*)
19985 case $cc_basename in
19987 lt_prog_compiler_wl_CXX
='-Wl,'
19988 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19989 if test "$host_cpu" != ia64
; then
19990 lt_prog_compiler_pic_CXX
='+Z'
19994 lt_prog_compiler_wl_CXX
='-Wl,'
19995 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20001 lt_prog_compiler_pic_CXX
='+Z'
20010 # This is c89, which is MS Visual C++ (no shared libs)
20011 # Anyone wants to do a port?
20013 irix5
* | irix6
* | nonstopux
*)
20014 case $cc_basename in
20016 lt_prog_compiler_wl_CXX
='-Wl,'
20017 lt_prog_compiler_static_CXX
='-non_shared'
20018 # CC pic flag -KPIC is the default.
20024 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20025 case $cc_basename in
20028 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20029 lt_prog_compiler_pic_CXX
='-fPIC'
20032 # old Intel C++ for x86_64 which still supported -KPIC.
20033 lt_prog_compiler_wl_CXX
='-Wl,'
20034 lt_prog_compiler_pic_CXX
='-KPIC'
20035 lt_prog_compiler_static_CXX
='-static'
20038 # Intel C++, used to be incompatible with GCC.
20039 # ICC 10 doesn't accept -KPIC any more.
20040 lt_prog_compiler_wl_CXX
='-Wl,'
20041 lt_prog_compiler_pic_CXX
='-fPIC'
20042 lt_prog_compiler_static_CXX
='-static'
20045 # Portland Group C++ compiler
20046 lt_prog_compiler_wl_CXX
='-Wl,'
20047 lt_prog_compiler_pic_CXX
='-fpic'
20048 lt_prog_compiler_static_CXX
='-Bstatic'
20052 # Make sure the PIC flag is empty. It appears that all Alpha
20053 # Linux and Compaq Tru64 Unix objects are PIC.
20054 lt_prog_compiler_pic_CXX
=
20055 lt_prog_compiler_static_CXX
='-non_shared'
20057 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20058 # IBM XL 8.0, 9.0 on PPC and BlueGene
20059 lt_prog_compiler_wl_CXX
='-Wl,'
20060 lt_prog_compiler_pic_CXX
='-qpic'
20061 lt_prog_compiler_static_CXX
='-qstaticlink'
20064 case `$CC -V 2>&1 | sed 5q` in
20067 lt_prog_compiler_pic_CXX
='-KPIC'
20068 lt_prog_compiler_static_CXX
='-Bstatic'
20069 lt_prog_compiler_wl_CXX
='-Qoption ld '
20080 case $cc_basename in
20082 lt_prog_compiler_pic_CXX
='-W c,exportall'
20091 # QNX uses GNU C++, but need to define -shared option too, otherwise
20092 # it will coredump.
20093 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20095 osf3
* | osf4
* | osf5
*)
20096 case $cc_basename in
20098 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20101 # Rational C++ 2.4.1
20102 lt_prog_compiler_pic_CXX
='-pic'
20105 # Digital/Compaq C++
20106 lt_prog_compiler_wl_CXX
='-Wl,'
20107 # Make sure the PIC flag is empty. It appears that all Alpha
20108 # Linux and Compaq Tru64 Unix objects are PIC.
20109 lt_prog_compiler_pic_CXX
=
20110 lt_prog_compiler_static_CXX
='-non_shared'
20119 case $cc_basename in
20121 # Sun C++ 4.2, 5.x and Centerline C++
20122 lt_prog_compiler_pic_CXX
='-KPIC'
20123 lt_prog_compiler_static_CXX
='-Bstatic'
20124 lt_prog_compiler_wl_CXX
='-Qoption ld '
20127 # Green Hills C++ Compiler
20128 lt_prog_compiler_pic_CXX
='-PIC'
20135 case $cc_basename in
20138 lt_prog_compiler_pic_CXX
='-pic'
20139 lt_prog_compiler_static_CXX
='-Bstatic'
20143 lt_prog_compiler_pic_CXX
='-pic'
20149 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20150 case $cc_basename in
20152 lt_prog_compiler_wl_CXX
='-Wl,'
20153 lt_prog_compiler_pic_CXX
='-KPIC'
20154 lt_prog_compiler_static_CXX
='-Bstatic'
20159 case $cc_basename in
20161 # NonStop-UX NCC 3.20
20162 lt_prog_compiler_pic_CXX
='-KPIC'
20171 lt_prog_compiler_can_build_shared_CXX
=no
20177 # For platforms which do not support PIC, -DPIC is meaningless:
20179 lt_prog_compiler_pic_CXX
=
20182 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20186 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20191 # Check to make sure the PIC flag actually works.
20193 if test -n "$lt_prog_compiler_pic_CXX"; then
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20195 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20196 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20197 $as_echo_n "(cached) " >&6
20199 lt_cv_prog_compiler_pic_works_CXX
=no
20200 ac_outfile
=conftest.
$ac_objext
20201 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20202 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 # The option is referenced via a variable to avoid confusing sed.
20208 lt_compile
=`echo "$ac_compile" | $SED \
20209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20211 -e 's:$: $lt_compiler_flag:'`
20212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20213 (eval "$lt_compile" 2>conftest.err
)
20215 cat conftest.err
>&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 if (exit $ac_status) && test -s "$ac_outfile"; then
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings other than the usual output.
20220 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20221 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20222 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20223 lt_cv_prog_compiler_pic_works_CXX
=yes
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20230 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20232 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20233 case $lt_prog_compiler_pic_CXX in
20235 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20238 lt_prog_compiler_pic_CXX
=
20239 lt_prog_compiler_can_build_shared_CXX
=no
20247 # Check to make sure the static flag actually works.
20249 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20251 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20252 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20255 lt_cv_prog_compiler_static_works_CXX
=no
20256 save_LDFLAGS
="$LDFLAGS"
20257 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20258 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20259 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20260 # The linker can only warn and ignore the option if not recognized
20261 # So say no if there are warnings
20262 if test -s conftest.err
; then
20263 # Append any errors to the config.log.
20264 cat conftest.err
1>&5
20265 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20266 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20267 if diff conftest.exp conftest.er2
>/dev
/null
; then
20268 lt_cv_prog_compiler_static_works_CXX
=yes
20271 lt_cv_prog_compiler_static_works_CXX
=yes
20275 LDFLAGS
="$save_LDFLAGS"
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20279 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20281 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20284 lt_prog_compiler_static_CXX
=
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20292 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20295 lt_cv_prog_compiler_c_o_CXX
=no
20296 $RM -r conftest
2>/dev
/null
20300 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20302 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20303 # Insert the option either (1) after the last *FLAGS variable, or
20304 # (2) before a word containing "conftest.", or (3) at the end.
20305 # Note that $ac_compile itself does not contain backslashes and begins
20306 # with a dollar sign (not a hyphen), so the echo should work correctly.
20307 lt_compile
=`echo "$ac_compile" | $SED \
20308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20310 -e 's:$: $lt_compiler_flag:'`
20311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20312 (eval "$lt_compile" 2>out
/conftest.err
)
20314 cat out
/conftest.err
>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20318 # The compiler can only warn and ignore the option if not recognized
20319 # So say no if there are warnings
20320 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20321 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20322 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20323 lt_cv_prog_compiler_c_o_CXX
=yes
20328 # SGI C++ compiler will create directory out/ii_files/ for
20329 # template instantiation
20330 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20331 $RM out
/* && rmdir out
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20338 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20344 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20347 lt_cv_prog_compiler_c_o_CXX
=no
20348 $RM -r conftest
2>/dev
/null
20352 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20354 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20355 # Insert the option either (1) after the last *FLAGS variable, or
20356 # (2) before a word containing "conftest.", or (3) at the end.
20357 # Note that $ac_compile itself does not contain backslashes and begins
20358 # with a dollar sign (not a hyphen), so the echo should work correctly.
20359 lt_compile
=`echo "$ac_compile" | $SED \
20360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20362 -e 's:$: $lt_compiler_flag:'`
20363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20364 (eval "$lt_compile" 2>out
/conftest.err
)
20366 cat out
/conftest.err
>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20370 # The compiler can only warn and ignore the option if not recognized
20371 # So say no if there are warnings
20372 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20373 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20374 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20375 lt_cv_prog_compiler_c_o_CXX
=yes
20380 # SGI C++ compiler will create directory out/ii_files/ for
20381 # template instantiation
20382 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20383 $RM out
/* && rmdir out
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20395 hard_links
="nottested"
20396 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20397 # do not overwrite the value of need_locks provided by the user
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20399 $as_echo_n "checking if we can lock with hard links... " >&6; }
20402 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20404 ln conftest.a conftest.b
2>&5 || hard_links
=no
20405 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20407 $as_echo "$hard_links" >&6; }
20408 if test "$hard_links" = no
; then
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20410 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20422 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20425 # If we're using GNU nm, then we don't want the "-C" option.
20426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20427 # Also, AIX nm treats weak defined symbols like other global defined
20428 # symbols, whereas GNU nm marks them as "W".
20429 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20430 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'
20432 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'
20436 export_symbols_cmds_CXX
="$ltdll_cmds"
20438 cygwin
* | mingw
* | cegcc
*)
20439 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'
20442 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20445 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20448 $as_echo "$ld_shlibs_CXX" >&6; }
20449 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20451 with_gnu_ld_CXX
=$with_gnu_ld
20459 # Do we need to explicitly link libc?
20461 case "x$archive_cmds_need_lc_CXX" in
20463 # Assume -lc should be added
20464 archive_cmds_need_lc_CXX
=yes
20466 if test "$enable_shared" = yes && test "$GCC" = yes; then
20467 case $archive_cmds_CXX in
20469 # FIXME: we may have to deal with multi-command sequences.
20472 # Test whether the compiler implicitly links with -lc since on some
20473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20474 # to ld, don't add -lc before -lgcc.
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20476 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20477 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20478 $as_echo_n "(cached) " >&6
20481 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20484 (eval $ac_compile) 2>&5
20486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20487 test $ac_status = 0; } 2>conftest.err
; then
20490 libobjs
=conftest.
$ac_objext
20492 wl
=$lt_prog_compiler_wl_CXX
20493 pic_flag
=$lt_prog_compiler_pic_CXX
20499 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20500 allow_undefined_flag_CXX
=
20501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20502 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20505 test $ac_status = 0; }
20507 lt_cv_archive_cmds_need_lc_CXX
=no
20509 lt_cv_archive_cmds_need_lc_CXX
=yes
20511 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20513 cat conftest.err
1>&5
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20519 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20520 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20593 library_names_spec
=
20594 libname_spec
='lib$name'
20598 postuninstall_cmds
=
20602 shlibpath_overrides_runpath
=unknown
20604 dynamic_linker
="$host_os ld.so"
20605 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20606 need_lib_prefix
=unknown
20607 hardcode_into_libs
=no
20609 # when you set need_version to no, make sure it does not cause -set_version
20610 # flags to be left without arguments
20611 need_version
=unknown
20616 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20617 shlibpath_var
=LIBPATH
20619 # AIX 3 has no versioning support, so we append a major version to the name.
20620 soname_spec
='${libname}${release}${shared_ext}$major'
20627 hardcode_into_libs
=yes
20628 if test "$host_cpu" = ia64
; then
20629 # AIX 5 supports IA64
20630 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20631 shlibpath_var
=LD_LIBRARY_PATH
20633 # With GCC up to 2.95.x, collect2 would create an import file
20634 # for dependence libraries. The import file would start with
20635 # the line `#! .'. This would cause the generated library to
20636 # depend on `.', always an invalid library. This was fixed in
20637 # development snapshots of GCC prior to 3.0.
20639 aix4 | aix4.
[01] | aix4.
[01].
*)
20640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20642 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20645 can_build_shared
=no
20649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20650 # soname into executable. Probably we can add versioning support to
20651 # collect2, so additional links can be useful in future.
20652 if test "$aix_use_runtimelinking" = yes; then
20653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20654 # instead of lib<name>.a to let people know that these are not
20655 # typical AIX shared libraries.
20656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20658 # We preserve .a as extension for shared libraries through AIX4.2
20659 # and later when we are not doing run time linking.
20660 library_names_spec
='${libname}${release}.a $libname.a'
20661 soname_spec
='${libname}${release}${shared_ext}$major'
20663 shlibpath_var
=LIBPATH
20670 # Since July 2007 AmigaOS4 officially supports .so libraries.
20671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20675 library_names_spec
='$libname.ixlibrary $libname.a'
20676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20677 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'
20683 library_names_spec
='${libname}${shared_ext}'
20684 dynamic_linker
="$host_os ld.so"
20685 shlibpath_var
=LIBRARY_PATH
20691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20692 soname_spec
='${libname}${release}${shared_ext}$major'
20693 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20694 shlibpath_var
=LD_LIBRARY_PATH
20695 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20696 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20697 # the default ld.so.conf also contains /usr/contrib/lib and
20698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20699 # libtool to hard-code these into programs
20702 cygwin
* | mingw
* | pw32
* | cegcc
*)
20703 version_type
=windows
20708 case $GCC,$host_os in
20709 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20710 library_names_spec
='$libname.dll.a'
20711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20712 postinstall_cmds
='base_file=`basename \${file}`~
20713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20714 dldir=$destdir/`dirname \$dlpath`~
20715 test -d \$dldir || mkdir -p \$dldir~
20716 $install_prog $dir/$dlname \$dldir/$dlname~
20717 chmod a+x \$dldir/$dlname~
20718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20721 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20722 dlpath=$dir/\$dldll~
20724 shlibpath_overrides_runpath
=yes
20728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20729 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20733 # MinGW DLLs use traditional 'lib' prefix
20734 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20737 # pw32 DLLs use 'pw' prefix rather than 'lib'
20738 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20744 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20747 dynamic_linker
='Win32 ld.exe'
20748 # FIXME: first we should search . and the directory the executable is in
20752 darwin
* | rhapsody
*)
20753 dynamic_linker
="$host_os dyld"
20754 version_type
=darwin
20757 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20758 soname_spec
='${libname}${release}${major}$shared_ext'
20759 shlibpath_overrides_runpath
=yes
20760 shlibpath_var
=DYLD_LIBRARY_PATH
20761 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20763 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20771 soname_spec
='${libname}${release}${shared_ext}$major'
20772 shlibpath_var
=LD_LIBRARY_PATH
20775 freebsd
* | dragonfly
*)
20776 # DragonFly does not have aout. When/if they implement a new
20777 # versioning mechanism, adjust this.
20778 if test -x /usr
/bin
/objformat
; then
20779 objformat
=`/usr/bin/objformat`
20782 freebsd
[23].
*) objformat
=aout
;;
20783 *) objformat
=elf
;;
20786 version_type
=freebsd-
$objformat
20787 case $version_type in
20789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20794 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20798 shlibpath_var
=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath
=yes
20803 freebsd3.
[01]* | freebsdelf3.
[01]*)
20804 shlibpath_overrides_runpath
=yes
20805 hardcode_into_libs
=yes
20807 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20808 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20809 shlibpath_overrides_runpath
=no
20810 hardcode_into_libs
=yes
20812 *) # from 4.6 on, and DragonFly
20813 shlibpath_overrides_runpath
=yes
20814 hardcode_into_libs
=yes
20823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20824 soname_spec
='${libname}${release}${shared_ext}$major'
20825 shlibpath_var
=LD_LIBRARY_PATH
20826 hardcode_into_libs
=yes
20833 dynamic_linker
="$host_os runtime_loader"
20834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20835 soname_spec
='${libname}${release}${shared_ext}$major'
20836 shlibpath_var
=LIBRARY_PATH
20837 shlibpath_overrides_runpath
=yes
20838 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20839 hardcode_into_libs
=yes
20842 hpux9
* | hpux10
* | hpux11
*)
20843 # Give a soname corresponding to the major version so that dld.sl refuses to
20844 # link against other versions.
20851 hardcode_into_libs
=yes
20852 dynamic_linker
="$host_os dld.so"
20853 shlibpath_var
=LD_LIBRARY_PATH
20854 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20856 soname_spec
='${libname}${release}${shared_ext}$major'
20857 if test "X$HPUX_IA64_MODE" = X32
; then
20858 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20860 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20862 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20866 hardcode_into_libs
=yes
20867 dynamic_linker
="$host_os dld.sl"
20868 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20869 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871 soname_spec
='${libname}${release}${shared_ext}$major'
20872 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20873 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20877 dynamic_linker
="$host_os dld.sl"
20878 shlibpath_var
=SHLIB_PATH
20879 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 soname_spec
='${libname}${release}${shared_ext}$major'
20884 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20885 postinstall_cmds
='chmod 555 $lib'
20886 # or fails outright, so override atomically:
20887 install_override_mode
=555
20894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20895 soname_spec
='${libname}${release}${shared_ext}$major'
20896 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20897 shlibpath_var
=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath
=no
20899 hardcode_into_libs
=yes
20902 irix5
* | irix6
* | nonstopux
*)
20904 nonstopux
*) version_type
=nonstopux
;;
20906 if test "$lt_cv_prog_gnu_ld" = yes; then
20914 soname_spec
='${libname}${release}${shared_ext}$major'
20915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20917 irix5
* | nonstopux
*)
20918 libsuff
= shlibsuff
=
20921 case $LD in # libtool.m4 will add one of these switches to LD
20922 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20923 libsuff
= shlibsuff
= libmagic
=32-bit;;
20924 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20925 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20926 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20927 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20928 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20932 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20933 shlibpath_overrides_runpath
=no
20934 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20935 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20936 hardcode_into_libs
=yes
20939 # No shared lib support for Linux oldld, aout, or coff.
20940 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20944 # This must be Linux ELF.
20945 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20950 soname_spec
='${libname}${release}${shared_ext}$major'
20951 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20952 shlibpath_var
=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath
=no
20955 # Some binutils ld are patched to set DT_RUNPATH
20956 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20957 $as_echo_n "(cached) " >&6
20959 lt_cv_shlibpath_overrides_runpath
=no
20960 save_LDFLAGS
=$LDFLAGS
20961 save_libdir
=$libdir
20962 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20963 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20965 /* end confdefs.h. */
20975 if ac_fn_cxx_try_link
"$LINENO"; then :
20976 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20977 lt_cv_shlibpath_overrides_runpath
=yes
20980 rm -f core conftest.err conftest.
$ac_objext \
20981 conftest
$ac_exeext conftest.
$ac_ext
20982 LDFLAGS
=$save_LDFLAGS
20983 libdir
=$save_libdir
20987 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20989 # This implies no fast_install, which is unacceptable.
20990 # Some rework will be needed to allow for fast_install
20991 # before this can be enabled.
20992 hardcode_into_libs
=yes
20994 # Append ld.so.conf contents to the search path
20995 if test -f /etc
/ld.so.conf
; then
20996 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' ' '`
20997 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21000 # We used to test for /lib/ld.so.1 and disable shared libraries on
21001 # powerpc, because MkLinux only supported shared libraries with the
21002 # GNU dynamic linker. Since this was broken with cross compilers,
21003 # most powerpc-linux boxes support dynamic linking these days and
21004 # people can always --disable-shared, the test was removed, and we
21005 # assume the GNU/Linux dynamic linker is in use.
21006 dynamic_linker
='GNU/Linux ld.so'
21013 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21015 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21016 dynamic_linker
='NetBSD (a.out) ld.so'
21018 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21019 soname_spec
='${libname}${release}${shared_ext}$major'
21020 dynamic_linker
='NetBSD ld.elf_so'
21022 shlibpath_var
=LD_LIBRARY_PATH
21023 shlibpath_overrides_runpath
=yes
21024 hardcode_into_libs
=yes
21029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 shlibpath_var
=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath
=yes
21038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21039 soname_spec
='${libname}${release}${shared_ext}$major'
21040 shlibpath_var
=LD_LIBRARY_PATH
21041 shlibpath_overrides_runpath
=no
21042 hardcode_into_libs
=yes
21043 dynamic_linker
='ldqnx.so'
21048 sys_lib_dlsearch_path_spec
="/usr/lib"
21050 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21052 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21053 *) need_version
=no
;;
21055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21056 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21057 shlibpath_var
=LD_LIBRARY_PATH
21058 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21060 openbsd2.
[89] | openbsd2.
[89].
*)
21061 shlibpath_overrides_runpath
=no
21064 shlibpath_overrides_runpath
=yes
21068 shlibpath_overrides_runpath
=yes
21073 libname_spec
='$name'
21076 library_names_spec
='$libname${shared_ext} $libname.a'
21077 dynamic_linker
='OS/2 ld.exe'
21078 shlibpath_var
=LIBPATH
21081 osf3
* | osf4
* | osf5
*)
21085 soname_spec
='${libname}${release}${shared_ext}$major'
21086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21087 shlibpath_var
=LD_LIBRARY_PATH
21088 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21089 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 soname_spec
='${libname}${release}${shared_ext}$major'
21102 shlibpath_var
=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath
=yes
21104 hardcode_into_libs
=yes
21105 # ldd complains unless libraries are executable
21106 postinstall_cmds
='chmod +x $lib'
21111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21112 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21113 shlibpath_var
=LD_LIBRARY_PATH
21114 shlibpath_overrides_runpath
=yes
21115 if test "$with_gnu_ld" = yes; then
21123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21124 soname_spec
='${libname}${release}${shared_ext}$major'
21125 shlibpath_var
=LD_LIBRARY_PATH
21126 case $host_vendor in
21128 shlibpath_overrides_runpath
=no
21130 runpath_var
=LD_RUN_PATH
21138 shlibpath_overrides_runpath
=no
21139 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21145 if test -d /usr
/nec
;then
21147 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21148 soname_spec
='$libname${shared_ext}.$major'
21149 shlibpath_var
=LD_LIBRARY_PATH
21153 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21154 version_type
=freebsd-elf
21157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21158 soname_spec
='${libname}${release}${shared_ext}$major'
21159 shlibpath_var
=LD_LIBRARY_PATH
21160 shlibpath_overrides_runpath
=yes
21161 hardcode_into_libs
=yes
21162 if test "$with_gnu_ld" = yes; then
21163 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21165 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21168 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21172 sys_lib_dlsearch_path_spec
='/usr/lib'
21176 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 shlibpath_var
=LD_LIBRARY_PATH
21182 shlibpath_overrides_runpath
=no
21183 hardcode_into_libs
=yes
21188 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21189 soname_spec
='${libname}${release}${shared_ext}$major'
21190 shlibpath_var
=LD_LIBRARY_PATH
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21198 $as_echo "$dynamic_linker" >&6; }
21199 test "$dynamic_linker" = no
&& can_build_shared
=no
21201 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21202 if test "$GCC" = yes; then
21203 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21206 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21207 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21209 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21210 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21251 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21252 hardcode_action_CXX
=
21253 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21254 test -n "$runpath_var_CXX" ||
21255 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21257 # We can hardcode non-existent directories.
21258 if test "$hardcode_direct_CXX" != no
&&
21259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21260 # have to relink, otherwise we might link with an installed library
21261 # when we should be linking with a yet-to-be-installed one
21262 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21263 test "$hardcode_minus_L_CXX" != no
; then
21264 # Linking always hardcodes the temporary library directory.
21265 hardcode_action_CXX
=relink
21267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21268 hardcode_action_CXX
=immediate
21271 # We cannot hardcode anything, or else we can only hardcode existing
21273 hardcode_action_CXX
=unsupported
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21276 $as_echo "$hardcode_action_CXX" >&6; }
21278 if test "$hardcode_action_CXX" = relink ||
21279 test "$inherit_rpath_CXX" = yes; then
21280 # Fast installation is not supported
21281 enable_fast_install
=no
21282 elif test "$shlibpath_overrides_runpath" = yes ||
21283 test "$enable_shared" = no
; then
21284 # Fast installation is not necessary
21285 enable_fast_install
=needless
21294 fi # test -n "$compiler"
21300 with_gnu_ld
=$lt_save_with_gnu_ld
21301 lt_cv_path_LDCXX
=$lt_cv_path_LD
21302 lt_cv_path_LD
=$lt_save_path_LD
21303 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21304 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21305 fi # test "$_lt_caught_CXX_error" != yes
21308 ac_cpp
='$CPP $CPPFLAGS'
21309 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21328 # Only expand once:
21334 # Identify the assembler which will work hand-in-glove with the newly
21335 # built GCC, so that we can examine its features. This is the assembler
21336 # which will be driven by the driver program.
21338 # If build != host, and we aren't building gas in-tree, we identify a
21339 # build->target assembler and hope that it will have the same features
21340 # as the host->target assembler we'll be using.
21341 gcc_cv_gas_major_version
=
21342 gcc_cv_gas_minor_version
=
21343 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21345 if test "${gcc_cv_as+set}" = set; then :
21349 if test -x "$DEFAULT_ASSEMBLER"; then
21350 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21351 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21352 && test -f ..
/gas
/Makefile \
21353 && test x
$build = x
$host; then
21354 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21355 elif test -x as
$build_exeext; then
21356 # Build using assembler in the current directory.
21357 gcc_cv_as
=.
/as
$build_exeext
21358 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21359 gcc_cv_as
="$AS_FOR_TARGET"
21361 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21362 set dummy
$AS_FOR_TARGET; ac_word
=$2
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21364 $as_echo_n "checking for $ac_word... " >&6; }
21365 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21366 $as_echo_n "(cached) " >&6
21370 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21374 for as_dir
in $PATH
21377 test -z "$as_dir" && as_dir
=.
21378 for ac_exec_ext
in '' $ac_executable_extensions; do
21379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21380 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21391 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21392 if test -n "$gcc_cv_as"; then
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21394 $as_echo "$gcc_cv_as" >&6; }
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21397 $as_echo "no" >&6; }
21404 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21406 case "$ORIGINAL_AS_FOR_TARGET" in
21407 .
/as | .
/as
$build_exeext) ;;
21408 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21413 $as_echo_n "checking what assembler to use... " >&6; }
21414 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21415 # Single tree build which includes gas. We want to prefer it
21416 # over whatever linker top-level may have detected, since
21417 # we'll use what we're building after installation anyway.
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21419 $as_echo "newly built gas" >&6; }
21421 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21422 for f
in $gcc_cv_as_bfd_srcdir/configure \
21423 $gcc_cv_as_gas_srcdir/configure \
21424 $gcc_cv_as_gas_srcdir/configure.
in \
21425 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21426 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21427 if test x
$gcc_cv_gas_version != x
; then
21431 case $gcc_cv_gas_version in
21433 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21435 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21436 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21437 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21438 case $gcc_cv_gas_patch_version in
21439 "") gcc_cv_gas_patch_version
="0" ;;
21441 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21442 + $gcc_cv_gas_minor_version \) \* 1000 \
21443 + $gcc_cv_gas_patch_version`
21445 in_tree_gas_is_elf
=no
21446 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21447 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21448 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21450 in_tree_gas_is_elf
=yes
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21454 $as_echo "$gcc_cv_as" >&6; }
21459 # Check whether --enable-ld was given.
21460 if test "${enable_ld+set}" = set; then :
21461 enableval
=$enable_ld; case "${enableval}" in
21469 # Check whether --enable-gold was given.
21470 if test "${enable_gold+set}" = set; then :
21471 enableval
=$enable_gold; case "${enableval}" in
21473 install_gold_as_default
=yes
21476 if test x
${default_ld} != x
; then
21477 install_gold_as_default
=yes
21483 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21487 install_gold_as_default
=no
21491 # Identify the linker which will work hand-in-glove with the newly
21492 # built GCC, so that we can examine its features. This is the linker
21493 # which will be driven by the driver program.
21495 # If build != host, and we aren't building gas in-tree, we identify a
21496 # build->target linker and hope that it will have the same features
21497 # as the host->target linker we'll be using.
21498 gcc_cv_gld_major_version
=
21499 gcc_cv_gld_minor_version
=
21500 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21501 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21502 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21504 if test "${gcc_cv_ld+set}" = set; then :
21508 if test -x "$DEFAULT_LINKER"; then
21509 gcc_cv_ld
="$DEFAULT_LINKER"
21510 elif test $install_gold_as_default = yes \
21511 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21512 && test -f ..
/gold
/Makefile \
21513 && test x
$build = x
$host; then
21514 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21515 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21516 && test -f ..
/ld
/Makefile \
21517 && test x
$build = x
$host; then
21518 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21519 elif test -x collect-ld
$build_exeext; then
21520 # Build using linker in the current directory.
21521 gcc_cv_ld
=.
/collect-ld
$build_exeext
21522 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21523 gcc_cv_ld
="$LD_FOR_TARGET"
21525 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21526 set dummy
$LD_FOR_TARGET; ac_word
=$2
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21528 $as_echo_n "checking for $ac_word... " >&6; }
21529 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21530 $as_echo_n "(cached) " >&6
21534 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21538 for as_dir
in $PATH
21541 test -z "$as_dir" && as_dir
=.
21542 for ac_exec_ext
in '' $ac_executable_extensions; do
21543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21544 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21555 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21556 if test -n "$gcc_cv_ld"; then
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21558 $as_echo "$gcc_cv_ld" >&6; }
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21568 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21569 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21570 # if the PLUGIN_LD is set ld-new, just have it as ld
21571 # as that is the installed named.
21572 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21573 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21574 PLUGIN_LD_SUFFIX
=ld
21577 # Check whether --with-plugin-ld was given.
21578 if test "${with_plugin_ld+set}" = set; then :
21579 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21580 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21581 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21587 cat >>confdefs.h
<<_ACEOF
21588 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21592 # Check to see if we are using gold instead of ld
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21594 $as_echo_n "checking whether we are using gold... " >&6; }
21596 if test x
$gcc_cv_ld != x
; then
21597 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21598 |
grep "GNU gold" > /dev
/null
; then
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21603 $as_echo "$ld_is_gold" >&6; }
21605 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21607 case "$ORIGINAL_LD_FOR_TARGET" in
21608 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21609 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21614 $as_echo_n "checking what linker to use... " >&6; }
21615 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21616 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21617 # Single tree build which includes ld. We want to prefer it
21618 # over whatever linker top-level may have detected, since
21619 # we'll use what we're building after installation anyway.
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21621 $as_echo "newly built ld" >&6; }
21623 in_tree_ld_is_elf
=no
21624 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21625 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21626 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21627 in_tree_ld_is_elf
=yes
21628 elif test "$ld_is_gold" = yes; then
21629 in_tree_ld_is_elf
=yes
21631 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
21633 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21634 if test x
$gcc_cv_gld_version != x
; then
21638 case $gcc_cv_gld_version in
21640 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21642 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21643 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21644 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21645 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21648 $as_echo "$gcc_cv_ld" >&6; }
21650 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21651 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21652 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21658 # Figure out what nm we will be using.
21659 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21660 if test "${gcc_cv_nm+set}" = set; then :
21664 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21665 && test -f ..
/binutils
/Makefile \
21666 && test x
$build = x
$host; then
21667 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21668 elif test -x nm
$build_exeext; then
21669 gcc_cv_nm
=.
/nm
$build_exeext
21670 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21671 gcc_cv_nm
="$NM_FOR_TARGET"
21673 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21674 set dummy
$NM_FOR_TARGET; ac_word
=$2
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21676 $as_echo_n "checking for $ac_word... " >&6; }
21677 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21682 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21686 for as_dir
in $PATH
21689 test -z "$as_dir" && as_dir
=.
21690 for ac_exec_ext
in '' $ac_executable_extensions; do
21691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21692 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21703 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21704 if test -n "$gcc_cv_nm"; then
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21706 $as_echo "$gcc_cv_nm" >&6; }
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21709 $as_echo "no" >&6; }
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21717 $as_echo_n "checking what nm to use... " >&6; }
21718 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21719 # Single tree build which includes binutils.
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21721 $as_echo "newly built nm" >&6; }
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21725 $as_echo "$gcc_cv_nm" >&6; }
21729 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21731 case "$ORIGINAL_NM_FOR_TARGET" in
21732 .
/nm | .
/nm
$build_exeext) ;;
21733 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21738 # Figure out what objdump we will be using.
21739 if test "${gcc_cv_objdump+set}" = set; then :
21743 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21744 && test -f ..
/binutils
/Makefile \
21745 && test x
$build = x
$host; then
21746 # Single tree build which includes binutils.
21747 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21748 elif test -x objdump
$build_exeext; then
21749 gcc_cv_objdump
=.
/objdump
$build_exeext
21750 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21751 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21753 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21754 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21756 $as_echo_n "checking for $ac_word... " >&6; }
21757 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21758 $as_echo_n "(cached) " >&6
21760 case $gcc_cv_objdump in
21762 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21766 for as_dir
in $PATH
21769 test -z "$as_dir" && as_dir
=.
21770 for ac_exec_ext
in '' $ac_executable_extensions; do
21771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21772 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21783 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21784 if test -n "$gcc_cv_objdump"; then
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21786 $as_echo "$gcc_cv_objdump" >&6; }
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21789 $as_echo "no" >&6; }
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21797 $as_echo_n "checking what objdump to use... " >&6; }
21798 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21799 # Single tree build which includes binutils.
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21801 $as_echo "newly built objdump" >&6; }
21802 elif test x
$gcc_cv_objdump = x
; then
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21804 $as_echo "not found" >&6; }
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21807 $as_echo "$gcc_cv_objdump" >&6; }
21810 # Figure out what readelf we will be using.
21811 if test "${gcc_cv_readelf+set}" = set; then :
21815 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21816 && test -f ..
/binutils
/Makefile \
21817 && test x
$build = x
$host; then
21818 # Single tree build which includes binutils.
21819 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21820 elif test -x readelf
$build_exeext; then
21821 gcc_cv_readelf
=.
/readelf
$build_exeext
21823 # Extract the first word of "readelf", so it can be a program name with args.
21824 set dummy readelf
; ac_word
=$2
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21826 $as_echo_n "checking for $ac_word... " >&6; }
21827 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21830 case $gcc_cv_readelf in
21832 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21836 for as_dir
in $PATH
21839 test -z "$as_dir" && as_dir
=.
21840 for ac_exec_ext
in '' $ac_executable_extensions; do
21841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21842 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21854 if test -n "$gcc_cv_readelf"; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21856 $as_echo "$gcc_cv_readelf" >&6; }
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21867 $as_echo_n "checking what readelf to use... " >&6; }
21868 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21869 # Single tree build which includes binutils.
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21871 $as_echo "newly built readelf" >&6; }
21872 elif test x
$gcc_cv_readelf = x
; then
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21874 $as_echo "not found" >&6; }
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21877 $as_echo "$gcc_cv_readelf" >&6; }
21880 # Figure out what assembler alignment features are present.
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21882 $as_echo_n "checking assembler flags... " >&6; }
21883 if test "${gcc_cv_as_flags+set}" = set; then :
21884 $as_echo_n "(cached) " >&6
21887 i
[34567]86-*-linux*)
21888 gcc_cv_as_flags
=--32
21890 x86_64-
*-linux-gnux32)
21891 gcc_cv_as_flags
=--x32
21894 gcc_cv_as_flags
=--64
21896 powerpc
*-*-darwin*)
21897 gcc_cv_as_flags
="-arch ppc"
21900 gcc_cv_as_flags
=" "
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21905 $as_echo "$gcc_cv_as_flags" >&6; }
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21908 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21909 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21912 gcc_cv_as_balign_and_p2align
=no
21913 if test $in_tree_gas = yes; then
21914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21915 then gcc_cv_as_balign_and_p2align
=yes
21917 elif test x
$gcc_cv_as != x
; then
21918 $as_echo '.balign 4
21919 .p2align 2' > conftest.s
21920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21922 (eval $ac_try) 2>&5
21924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925 test $ac_status = 0; }; }
21927 gcc_cv_as_balign_and_p2align
=yes
21929 echo "configure: failed program was" >&5
21932 rm -f conftest.o conftest.s
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21936 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21937 if test $gcc_cv_as_balign_and_p2align = yes; then
21939 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21944 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21945 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21946 $as_echo_n "(cached) " >&6
21948 gcc_cv_as_max_skip_p2align
=no
21949 if test $in_tree_gas = yes; then
21950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21951 then gcc_cv_as_max_skip_p2align
=yes
21953 elif test x
$gcc_cv_as != x
; then
21954 $as_echo '.p2align 4,,7' > conftest.s
21955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21957 (eval $ac_try) 2>&5
21959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21960 test $ac_status = 0; }; }
21962 gcc_cv_as_max_skip_p2align
=yes
21964 echo "configure: failed program was" >&5
21967 rm -f conftest.o conftest.s
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21971 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21972 if test $gcc_cv_as_max_skip_p2align = yes; then
21974 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21979 $as_echo_n "checking assembler for .literal16... " >&6; }
21980 if test "${gcc_cv_as_literal16+set}" = set; then :
21981 $as_echo_n "(cached) " >&6
21983 gcc_cv_as_literal16
=no
21984 if test $in_tree_gas = yes; then
21985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21986 then gcc_cv_as_literal16
=yes
21988 elif test x
$gcc_cv_as != x
; then
21989 $as_echo '.literal16' > conftest.s
21990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }
21997 gcc_cv_as_literal16
=yes
21999 echo "configure: failed program was" >&5
22002 rm -f conftest.o conftest.s
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22006 $as_echo "$gcc_cv_as_literal16" >&6; }
22007 if test $gcc_cv_as_literal16 = yes; then
22009 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22014 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22015 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22018 gcc_cv_as_subsection_m1
=no
22019 if test $in_tree_gas = yes; then
22020 if test $in_tree_gas_is_elf = yes \
22021 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22022 then gcc_cv_as_subsection_m1
=yes
22024 elif test x
$gcc_cv_as != x
; then
22025 $as_echo 'conftest_label1: .word 0
22027 conftest_label2: .word 0
22028 .previous' > conftest.s
22029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22031 (eval $ac_try) 2>&5
22033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22034 test $ac_status = 0; }; }
22036 if test x
$gcc_cv_nm != x
; then
22037 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22038 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22039 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22041 else gcc_cv_as_subsection_m1
=yes
22043 rm -f conftest.nm1 conftest.nm2
22046 echo "configure: failed program was" >&5
22049 rm -f conftest.o conftest.s
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22053 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22054 if test $gcc_cv_as_subsection_m1 = yes; then
22056 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22061 $as_echo_n "checking assembler for .weak... " >&6; }
22062 if test "${gcc_cv_as_weak+set}" = set; then :
22063 $as_echo_n "(cached) " >&6
22066 if test $in_tree_gas = yes; then
22067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22068 then gcc_cv_as_weak
=yes
22070 elif test x
$gcc_cv_as != x
; then
22071 $as_echo ' .weak foobar' > conftest.s
22072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22074 (eval $ac_try) 2>&5
22076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22077 test $ac_status = 0; }; }
22081 echo "configure: failed program was" >&5
22084 rm -f conftest.o conftest.s
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22088 $as_echo "$gcc_cv_as_weak" >&6; }
22089 if test $gcc_cv_as_weak = yes; then
22091 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22096 $as_echo_n "checking assembler for .weakref... " >&6; }
22097 if test "${gcc_cv_as_weakref+set}" = set; then :
22098 $as_echo_n "(cached) " >&6
22100 gcc_cv_as_weakref
=no
22101 if test $in_tree_gas = yes; then
22102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22103 then gcc_cv_as_weakref
=yes
22105 elif test x
$gcc_cv_as != x
; then
22106 $as_echo ' .weakref foobar, barfnot' > conftest.s
22107 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22109 (eval $ac_try) 2>&5
22111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22112 test $ac_status = 0; }; }
22114 gcc_cv_as_weakref
=yes
22116 echo "configure: failed program was" >&5
22119 rm -f conftest.o conftest.s
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22123 $as_echo "$gcc_cv_as_weakref" >&6; }
22124 if test $gcc_cv_as_weakref = yes; then
22126 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22131 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22132 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22133 $as_echo_n "(cached) " >&6
22135 gcc_cv_as_nsubspa_comdat
=no
22136 if test $in_tree_gas = yes; then
22137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22138 then gcc_cv_as_nsubspa_comdat
=yes
22140 elif test x
$gcc_cv_as != x
; then
22141 $as_echo ' .SPACE $TEXT$
22142 .NSUBSPA $CODE$,COMDAT' > conftest.s
22143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22145 (eval $ac_try) 2>&5
22147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22148 test $ac_status = 0; }; }
22150 gcc_cv_as_nsubspa_comdat
=yes
22152 echo "configure: failed program was" >&5
22155 rm -f conftest.o conftest.s
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22159 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22160 if test $gcc_cv_as_nsubspa_comdat = yes; then
22162 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22166 # .hidden needs to be supported in both the assembler and the linker,
22167 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22168 # This is irritatingly difficult to feature test for; we have to check the
22169 # date string after the version number. If we've got an in-tree
22170 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22172 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22174 $as_echo_n "checking assembler for .hidden... " >&6; }
22175 if test "${gcc_cv_as_hidden+set}" = set; then :
22176 $as_echo_n "(cached) " >&6
22178 gcc_cv_as_hidden
=no
22179 if test $in_tree_gas = yes; then
22180 if test $in_tree_gas_is_elf = yes \
22181 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22182 then gcc_cv_as_hidden
=yes
22184 elif test x
$gcc_cv_as != x
; then
22185 $as_echo ' .hidden foobar
22186 foobar:' > conftest.s
22187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22189 (eval $ac_try) 2>&5
22191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22192 test $ac_status = 0; }; }
22194 gcc_cv_as_hidden
=yes
22196 echo "configure: failed program was" >&5
22199 rm -f conftest.o conftest.s
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22203 $as_echo "$gcc_cv_as_hidden" >&6; }
22205 case "${target}" in
22207 # Darwin as has some visibility support, though with a different syntax.
22208 gcc_cv_as_hidden
=yes
22212 # gnu_indirect_function type is an extension proposed at
22213 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22214 # selection of function implementation
22215 # Check whether --enable-gnu-indirect-function was given.
22216 if test "${enable_gnu_indirect_function+set}" = set; then :
22217 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22219 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22220 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22223 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22227 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22229 cat >>confdefs.h
<<_ACEOF
22230 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22235 if test $in_tree_ld != yes ; then
22236 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22237 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22238 if test x
"$ld_is_gold" = xyes
; then
22239 # GNU gold --version looks like this:
22241 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22243 # We extract the binutils version which is more familiar and specific
22244 # than the gold version.
22245 ld_vers
=`echo $ld_ver | sed -n \
22246 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22248 # GNU ld --version looks like this:
22250 # GNU ld (GNU Binutils) 2.21.51.20110225
22251 ld_vers
=`echo $ld_ver | sed -n \
22252 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22254 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'`
22255 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22256 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22257 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22259 case "${target}" in
22261 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22264 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22265 # /usr/ccs/bin/ld has been configured.
22266 ld_ver
=`$gcc_cv_ld -V 2>&1`
22267 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22268 ld_vers
=`echo $ld_ver | sed -n \
22269 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22270 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22271 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22279 $as_echo_n "checking linker for .hidden support... " >&6; }
22280 if test "${gcc_cv_ld_hidden+set}" = set; then :
22281 $as_echo_n "(cached) " >&6
22283 if test $in_tree_ld = yes ; then
22284 gcc_cv_ld_hidden
=no
22285 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 \
22286 && test $in_tree_ld_is_elf = yes; then
22287 gcc_cv_ld_hidden
=yes
22290 gcc_cv_ld_hidden
=yes
22291 if test x
"$ld_is_gold" = xyes
; then
22293 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22294 case "${target}" in
22295 mmix-knuth-mmixware
)
22296 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22297 gcc_cv_ld_hidden
=no
22300 if test 0"$ld_date" -lt 20020404; then
22301 if test -n "$ld_date"; then
22302 # If there was date string, but was earlier than 2002-04-04, fail
22303 gcc_cv_ld_hidden
=no
22304 elif test -z "$ld_vers"; then
22305 # If there was no date string nor ld version number, something is wrong
22306 gcc_cv_ld_hidden
=no
22308 test -z "$ld_vers_patch" && ld_vers_patch
=0
22309 if test "$ld_vers_major" -lt 2; then
22310 gcc_cv_ld_hidden
=no
22311 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22312 gcc_cv_ld_hidden
="no"
22313 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22314 gcc_cv_ld_hidden
=no
22319 case "${target}" in
22321 # Darwin ld has some visibility support.
22322 gcc_cv_ld_hidden
=yes
22324 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22325 gcc_cv_ld_hidden
=yes
22327 *-*-solaris2.1
[0-9]*)
22328 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22329 # .symbolic was only added in Solaris 9 12/02.
22330 gcc_cv_ld_hidden
=yes
22333 gcc_cv_ld_hidden
=no
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22340 $as_echo "$gcc_cv_ld_hidden" >&6; }
22341 libgcc_visibility
=no
22344 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22345 libgcc_visibility
=yes
22347 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22352 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22353 gcc_cv_ld_ro_rw_mix
=unknown
22354 if test $in_tree_ld = yes ; then
22355 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 \
22356 && test $in_tree_ld_is_elf = yes; then
22357 gcc_cv_ld_ro_rw_mix
=read-write
22359 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22360 echo '.section myfoosect, "a"' > conftest1.s
22361 echo '.section myfoosect, "aw"' > conftest2.s
22362 echo '.byte 1' >> conftest2.s
22363 echo '.section myfoosect, "a"' > conftest3.s
22364 echo '.byte 0' >> conftest3.s
22365 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22366 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22367 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22368 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22369 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22370 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22371 | sed -e '/myfoosect/!d' -e N`
22372 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22373 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22374 gcc_cv_ld_ro_rw_mix
=read-only
22376 gcc_cv_ld_ro_rw_mix
=read-write
22380 rm -f conftest.
* conftest
[123].
*
22382 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22384 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22388 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22390 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22391 case "${target}" in
22394 # Solaris 2 ld -V output looks like this for a regular version:
22396 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22398 # but test versions add stuff at the end:
22400 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22402 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22403 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22404 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22405 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22406 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22407 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22413 # Check whether --enable-initfini-array was given.
22414 if test "${enable_initfini_array+set}" = set; then :
22415 enableval
=$enable_initfini_array;
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22419 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22420 if test "${gcc_cv_initfini_array+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22423 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22424 case "${target}" in
22426 if test "$cross_compiling" = yes; then :
22427 gcc_cv_initfini_array
=no
22429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22430 /* end confdefs.h. */
22433 #error Not an ELF OS
22435 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22436 if it can be used. */
22438 int main (void) { return x; }
22439 int foo (void) { x = 0; }
22440 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22443 if ac_fn_c_try_run
"$LINENO"; then :
22444 gcc_cv_initfini_array
=yes
22446 gcc_cv_initfini_array
=no
22448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22453 gcc_cv_initfini_array
=no
22454 if test $in_tree_ld = yes ; then
22455 if test "$gcc_cv_gld_major_version" -eq 2 \
22456 -a "$gcc_cv_gld_minor_version" -ge 22 \
22457 -o "$gcc_cv_gld_major_version" -gt 2 \
22458 && test $in_tree_ld_is_elf = yes; then
22459 gcc_cv_initfini_array
=yes
22461 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22462 cat > conftest.s
<<\EOF
22463 .section .dtors
,"a",%progbits
22465 .byte
'A', 'A', 'A', 'A'
22466 .section .ctors
,"a",%progbits
22468 .byte
'B', 'B', 'B', 'B'
22469 .section .fini_array
.65530,"a",%progbits
22471 .byte
'C', 'C', 'C', 'C'
22472 .section .init_array
.65530,"a",%progbits
22474 .byte
'D', 'D', 'D', 'D'
22475 .section .dtors
.64528,"a",%progbits
22477 .byte
'E', 'E', 'E', 'E'
22478 .section .ctors
.64528,"a",%progbits
22480 .byte
'F', 'F', 'F', 'F'
22481 .section .fini_array
.01005,"a",%progbits
22483 .byte
'G', 'G', 'G', 'G'
22484 .section .init_array
.01005,"a",%progbits
22486 .byte
'H', 'H', 'H', 'H'
22491 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22492 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22493 && $gcc_cv_objdump -s -j .init_array conftest \
22494 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22495 && $gcc_cv_objdump -s -j .fini_array conftest \
22496 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22497 gcc_cv_initfini_array
=yes
22499 rm -f conftest conftest.
*
22501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22502 /* end confdefs.h. */
22505 # error Not an ELF OS
22507 #include <stdlib.h>
22508 #if defined __GLIBC_PREREQ
22509 # if __GLIBC_PREREQ (2, 4)
22511 # error GLIBC 2.4 required
22514 # if defined __sun__ && defined __svr4__
22515 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22517 # error The C library not known to support .init_array/.fini_array
22522 if ac_fn_c_try_cpp
"$LINENO"; then :
22525 gcc_cv_initfini_array
=no
22527 rm -f conftest.err conftest.
$ac_ext;;
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22531 $as_echo_n "checking cross compile... guessing... " >&6; }
22532 gcc_cv_initfini_array
=no
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22536 $as_echo "$gcc_cv_initfini_array" >&6; }
22537 enable_initfini_array
=$gcc_cv_initfini_array
22541 if test $enable_initfini_array = yes; then
22543 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22547 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22549 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22550 if test "${gcc_cv_as_leb128+set}" = set; then :
22551 $as_echo_n "(cached) " >&6
22553 gcc_cv_as_leb128
=no
22554 if test $in_tree_gas = yes; then
22555 if test $in_tree_gas_is_elf = yes \
22556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22557 then gcc_cv_as_leb128
=yes
22559 elif test x
$gcc_cv_as != x
; then
22566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22573 # GAS versions before 2.11 do not support uleb128,
22574 # despite appearing to.
22575 # ??? There exists an elf-specific test that will crash
22576 # the assembler. Perhaps it's better to figure out whether
22577 # arbitrary sections are supported and try the test.
22578 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22579 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22580 as_vers
=`echo $as_ver | sed -n \
22581 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22582 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22583 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22584 if test $as_major -eq 2 && test $as_minor -lt 11
22586 else gcc_cv_as_leb128
=yes
22590 echo "configure: failed program was" >&5
22593 rm -f conftest.o conftest.s
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22597 $as_echo "$gcc_cv_as_leb128" >&6; }
22598 if test $gcc_cv_as_leb128 = yes; then
22600 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22604 # Check if we have assembler support for unwind directives.
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22606 $as_echo_n "checking assembler for cfi directives... " >&6; }
22607 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22610 gcc_cv_as_cfi_directive
=no
22611 if test x
$gcc_cv_as != x
; then
22617 .cfi_escape 1, 2, 3, 4, 5
22618 .cfi_endproc' > conftest.s
22619 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22621 (eval $ac_try) 2>&5
22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624 test $ac_status = 0; }; }
22628 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22629 # read-only and read-write sections, we need to make sure that the
22630 # assembler used emits read-write .eh_frame sections.
22631 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22632 if test "x$gcc_cv_objdump" != x
; then
22633 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22634 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22635 gcc_cv_as_cfi_directive
=no
22638 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22639 # On Solaris/x86, make sure that GCC and assembler agree on using
22640 # read-only .eh_frame sections for 64-bit.
22641 if test x
$gas = xyes
; then
22642 as_ix86_64_opt
="--64"
22644 as_ix86_64_opt
="-xarch=amd64"
22646 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22647 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22648 sed -e /.eh_frame
/!d
-e N | \
22649 grep READONLY
> /dev
/null
; then
22650 gcc_cv_as_cfi_directive
=yes
22652 gcc_cv_as_cfi_directive
=no
22656 gcc_cv_as_cfi_directive
=yes
22661 # no objdump, err on the side of caution
22662 gcc_cv_as_cfi_directive
=no
22665 gcc_cv_as_cfi_directive
=yes
22669 gcc_cv_as_cfi_directive
=yes
22673 echo "configure: failed program was" >&5
22676 rm -f conftest.o conftest.s
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22680 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22682 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22684 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22685 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22686 $as_echo_n "(cached) " >&6
22688 gcc_cv_as_cfi_advance_working
=no
22689 if test x
$gcc_cv_as != x
; then
22692 .cfi_adjust_cfa_offset 64
22694 .cfi_adjust_cfa_offset 128
22695 .cfi_endproc' > conftest.s
22696 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22698 (eval $ac_try) 2>&5
22700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22701 test $ac_status = 0; }; }
22704 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22705 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22706 gcc_cv_as_cfi_advance_working
=yes
22710 echo "configure: failed program was" >&5
22713 rm -f conftest.o conftest.s
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22717 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22720 # no objdump, err on the side of caution
22721 gcc_cv_as_cfi_advance_working
=no
22725 cat >>confdefs.h
<<_ACEOF
22726 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22727 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22733 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22734 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22735 $as_echo_n "(cached) " >&6
22737 gcc_cv_as_cfi_personality_directive
=no
22738 if test x
$gcc_cv_as != x
; then
22741 .cfi_personality 0, symbol
22742 .cfi_endproc' > conftest.s
22743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }
22750 gcc_cv_as_cfi_personality_directive
=yes
22752 echo "configure: failed program was" >&5
22755 rm -f conftest.o conftest.s
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22759 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22762 cat >>confdefs.h
<<_ACEOF
22763 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22764 then echo 1; else echo 0; fi`
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22769 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22770 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22773 gcc_cv_as_cfi_sections_directive
=no
22774 if test x
$gcc_cv_as != x
; then
22776 .cfi_sections .debug_frame, .eh_frame
22778 .cfi_endproc' > conftest.s
22779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22781 (eval $ac_try) 2>&5
22783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22784 test $ac_status = 0; }; }
22787 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22788 # Need to check that we generated the correct relocation for the
22789 # .debug_frame section. This was fixed for binutils 2.21.
22790 gcc_cv_as_cfi_sections_directive
=no
22791 if test "x$gcc_cv_objdump" != x
; then
22792 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22793 grep secrel
> /dev
/null
; then
22794 gcc_cv_as_cfi_sections_directive
=yes
22799 gcc_cv_as_cfi_sections_directive
=yes
22803 echo "configure: failed program was" >&5
22806 rm -f conftest.o conftest.s
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22810 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22814 cat >>confdefs.h
<<_ACEOF
22815 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22816 then echo 1; else echo 0; fi`
22820 # GAS versions up to and including 2.11.0 may mis-optimize
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22823 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22824 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22827 gcc_cv_as_eh_frame
=no
22828 if test $in_tree_gas = yes; then
22829 if test $in_tree_gas_is_elf = yes \
22830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22831 then gcc_cv_as_eh_frame
=yes
22833 elif test x
$gcc_cv_as != x
; then
22840 .section .eh_frame,"aw",@progbits
22842 .4byte .LECIE1-.LSCIE1
22856 .4byte .LEFDE1-.LASFDE1
22858 .4byte .LASFDE1-__FRAME_BEGIN__
22865 .LEFDE1:' > conftest.s
22866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22873 cat > conftest.lit
<<EOF
22874 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22875 0010 01000000 12000000 18000000 00000000 ................
22876 0020 08000000 04080000 0044 .........D
22878 cat > conftest.big
<<EOF
22879 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22880 0010 00000001 00000012 00000018 00000000 ................
22881 0020 00000008 04000000 0844 .........D
22883 # If the assembler didn't choke, and we can objdump,
22884 # and we got the correct data, then succeed.
22885 # The text in the here-document typically retains its unix-style line
22886 # endings, while the output of objdump will use host line endings.
22887 # Therefore, use diff -b for the comparisons.
22888 if test x
$gcc_cv_objdump != x \
22889 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22890 |
tail -3 > conftest.got \
22891 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22892 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22894 gcc_cv_as_eh_frame
=yes
22895 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22897 (eval $ac_try) 2>&5
22899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22900 test $ac_status = 0; }; }; then
22901 gcc_cv_as_eh_frame
=buggy
22903 # Uh oh, what do we do now?
22904 gcc_cv_as_eh_frame
=no
22907 echo "configure: failed program was" >&5
22910 rm -f conftest.o conftest.s
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22914 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22917 if test $gcc_cv_as_eh_frame = buggy
; then
22919 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22924 $as_echo_n "checking assembler for section merging support... " >&6; }
22925 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22926 $as_echo_n "(cached) " >&6
22928 gcc_cv_as_shf_merge
=no
22929 if test $in_tree_gas = yes; then
22930 if test $in_tree_gas_is_elf = yes \
22931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22932 then gcc_cv_as_shf_merge
=yes
22934 elif test x
$gcc_cv_as != x
; then
22935 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22943 gcc_cv_as_shf_merge
=yes
22945 echo "configure: failed program was" >&5
22948 rm -f conftest.o conftest.s
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22952 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22954 if test $gcc_cv_as_shf_merge = no
; then
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22956 $as_echo_n "checking assembler for section merging support... " >&6; }
22957 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22958 $as_echo_n "(cached) " >&6
22960 gcc_cv_as_shf_merge
=no
22961 if test $in_tree_gas = yes; then
22962 if test $in_tree_gas_is_elf = yes \
22963 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22964 then gcc_cv_as_shf_merge
=yes
22966 elif test x
$gcc_cv_as != x
; then
22967 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22970 (eval $ac_try) 2>&5
22972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22973 test $ac_status = 0; }; }
22975 gcc_cv_as_shf_merge
=yes
22977 echo "configure: failed program was" >&5
22980 rm -f conftest.o conftest.s
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22984 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22988 cat >>confdefs.h
<<_ACEOF
22989 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22994 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22995 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22998 gcc_cv_as_comdat_group
=no
22999 if test $in_tree_gas = yes; then
23000 if test $in_tree_gas_is_elf = yes \
23001 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23002 then gcc_cv_as_comdat_group
=yes
23004 elif test x
$gcc_cv_as != x
; then
23005 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23008 (eval $ac_try) 2>&5
23010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23011 test $ac_status = 0; }; }
23013 gcc_cv_as_comdat_group
=yes
23015 echo "configure: failed program was" >&5
23018 rm -f conftest.o conftest.s
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23022 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23024 if test $gcc_cv_as_comdat_group = yes; then
23025 gcc_cv_as_comdat_group_percent
=no
23026 gcc_cv_as_comdat_group_group
=no
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23029 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23030 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23031 $as_echo_n "(cached) " >&6
23033 gcc_cv_as_comdat_group_percent
=no
23034 if test $in_tree_gas = yes; then
23035 if test $in_tree_gas_is_elf = yes \
23036 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23037 then gcc_cv_as_comdat_group_percent
=yes
23039 elif test x
$gcc_cv_as != x
; then
23040 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23043 (eval $ac_try) 2>&5
23045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }; }
23048 gcc_cv_as_comdat_group_percent
=yes
23050 echo "configure: failed program was" >&5
23053 rm -f conftest.o conftest.s
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23057 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23059 if test $gcc_cv_as_comdat_group_percent = yes; then
23060 gcc_cv_as_comdat_group_group
=no
23062 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23063 gcc_cv_as_comdat_group_group
=no
23065 case "${target}" in
23066 # Sun as uses a completely different syntax.
23068 case "${target}" in
23069 sparc
*-*-solaris2*)
23071 .group foo,".text%foo",#comdat
23072 .section ".text%foo", #alloc,#execinstr,#progbits
23077 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23079 .group foo,.text%foo,#comdat
23080 .section .text%foo, "ax", @progbits
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23087 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23088 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23089 $as_echo_n "(cached) " >&6
23091 gcc_cv_as_comdat_group_group
=no
23092 if test x
$gcc_cv_as != x
; then
23093 $as_echo "$conftest_s" > conftest.s
23094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23096 (eval $ac_try) 2>&5
23098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23099 test $ac_status = 0; }; }
23101 gcc_cv_as_comdat_group_group
=yes
23103 echo "configure: failed program was" >&5
23106 rm -f conftest.o conftest.s
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23110 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23116 if test x
"$ld_is_gold" = xyes
; then
23118 elif test $in_tree_ld = yes ; then
23120 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 \
23121 && test $in_tree_ld_is_elf = yes; then
23124 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23126 if test 0"$ld_date" -lt 20050308; then
23127 if test -n "$ld_date"; then
23128 # If there was date string, but was earlier than 2005-03-08, fail
23130 elif test "$ld_vers_major" -lt 2; then
23132 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23137 case "${target}" in
23138 *-*-solaris2.1
[1-9]*)
23140 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23141 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23144 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23145 # least ld version 1.2267.
23146 if test "$ld_vers_major" -gt 1; then
23148 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23150 elif test "$ld_vers_minor" -ge 2267; then
23155 # Assume linkers other than GNU ld don't support COMDAT group.
23160 # Allow overriding the automatic COMDAT group tests above.
23161 # Check whether --enable-comdat was given.
23162 if test "${enable_comdat+set}" = set; then :
23163 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23166 if test $comdat_group = no
; then
23167 gcc_cv_as_comdat_group
=no
23168 gcc_cv_as_comdat_group_percent
=no
23169 gcc_cv_as_comdat_group_group
=no
23172 cat >>confdefs.h
<<_ACEOF
23173 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23174 || test $gcc_cv_as_comdat_group_percent = yes \
23175 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23180 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23181 if test "${gcc_cv_as_discriminator+set}" = set; then :
23182 $as_echo_n "(cached) " >&6
23184 gcc_cv_as_discriminator
=no
23185 if test $in_tree_gas = yes; then
23186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23187 then gcc_cv_as_discriminator
=yes
23189 elif test x
$gcc_cv_as != x
; then
23192 .loc 1 1 0 discriminator 1' > conftest.s
23193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23200 gcc_cv_as_discriminator
=yes
23202 echo "configure: failed program was" >&5
23205 rm -f conftest.o conftest.s
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23209 $as_echo "$gcc_cv_as_discriminator" >&6; }
23210 if test $gcc_cv_as_discriminator = yes; then
23212 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23216 # Thread-local storage - the check is heavily parameterized.
23224 .section ".tdata","awT",@progbits
23227 ldq $27,__tls_get_addr($29) !literal!1
23228 lda $16,foo($29) !tlsgd!1
23229 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23230 ldq $27,__tls_get_addr($29) !literal!2
23231 lda $16,foo($29) !tlsldm!2
23232 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23233 ldq $1,foo($29) !gotdtprel
23234 ldah $2,foo($29) !dtprelhi
23235 lda $3,foo($2) !dtprello
23236 lda $4,foo($29) !dtprel
23237 ldq $1,foo($29) !gottprel
23238 ldah $2,foo($29) !tprelhi
23239 lda $3,foo($2) !tprello
23240 lda $4,foo($29) !tprel'
23243 tls_as_opt
=--fatal-warnings
23245 cris-
*-*|crisv32-
*-*)
23247 .section ".tdata","awT",@progbits
23254 tls_as_opt
=--fatal-warnings
23258 .section ".tdata","awT",@progbits
23261 call #gettlsoff(x)'
23270 .section ".tdata","awT",@progbits
23274 addil LT%foo-$tls_gdidx$,gp
23275 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23278 addil LT%foo-$tls_ldidx$,gp
23280 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23281 addil LR%foo-$tls_dtpoff$,%ret0
23282 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23284 addil LT%foo-$tls_ieoff$,gp
23285 ldw RT%foo-$tls_ieoff$(%r1),%t2
23288 addil LR%foo-$tls_leoff$,%t1
23289 ldo RR%foo-$tls_leoff$(%r1),%t2'
23292 tls_as_opt
=--fatal-warnings
23296 .section ".tdata","awT",%progbits
23299 .word foo(gottpoff)
23307 i
[34567]86-*-* | x86_64-
*-*)
23309 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23316 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23318 .section .tdata,"awt",@progbits'
23323 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23327 .section ".tdata","awT",@progbits'
23331 tls_as_opt
="--fatal-warnings"
23335 conftest_s
="$conftest_s
23339 leal foo@tlsgd(,%ebx,1), %eax
23340 leal foo@tlsldm(%ebx), %eax
23341 leal foo@dtpoff(%eax), %edx
23342 movl foo@gottpoff(%ebx), %eax
23343 subl foo@gottpoff(%ebx), %eax
23344 addl foo@gotntpoff(%ebx), %eax
23345 movl foo@indntpoff, %eax
23346 movl \$foo@tpoff, %eax
23347 subl \$foo@tpoff, %eax
23348 leal foo@ntpoff(%ecx), %eax"
23351 if test x
$on_solaris = xyes
; then
23353 yes) tls_as_opt
="$tls_as_opt --64" ;;
23354 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23357 conftest_s
="$conftest_s
23361 leaq foo@tlsgd(%rip), %rdi
23362 leaq foo@tlsld(%rip), %rdi
23363 leaq foo@dtpoff(%rax), %rdx
23364 movq foo@gottpoff(%rip), %rax
23365 movq \$foo@tpoff, %rax"
23371 .section ".tdata","awT",@progbits
23374 addl r16 = @ltoff(@dtpmod(foo#)), gp
23375 addl r17 = @ltoff(@dtprel(foo#)), gp
23376 addl r18 = @ltoff(@tprel(foo#)), gp
23377 addl r19 = @dtprel(foo#), gp
23378 adds r21 = @dtprel(foo#), r13
23379 movl r23 = @dtprel(foo#)
23380 addl r20 = @tprel(foo#), gp
23381 adds r22 = @tprel(foo#), r13
23382 movl r24 = @tprel(foo#)'
23385 tls_as_opt
=--fatal-warnings
23389 .section .tdata,"awT",@progbits
23393 addik r5,r20,x@TLSGD
23394 addik r5,r20,x@TLSLDM'
23397 tls_as_opt
='--fatal-warnings'
23401 .section .tdata,"awT",@progbits
23405 addiu $4, $28, %tlsgd(x)
23406 addiu $4, $28, %tlsldm(x)
23407 lui $4, %dtprel_hi(x)
23408 addiu $4, $4, %dtprel_lo(x)
23409 lw $4, %gottprel(x)($28)
23410 lui $4, %tprel_hi(x)
23411 addiu $4, $4, %tprel_lo(x)'
23414 tls_as_opt
='-32 --fatal-warnings'
23418 .section .tdata,"awT",@progbits
23423 move.l x@TLSGD(%a5),%a0
23424 move.l x@TLSLDM(%a5),%a0
23425 move.l x@TLSLDO(%a5),%a0
23426 move.l x@TLSIE(%a5),%a0
23427 move.l x@TLSLE(%a5),%a0'
23430 tls_as_opt
='--fatal-warnings'
23434 .section ".tdata","awT",@progbits'
23437 tls_as_opt
="--fatal-warnings"
23441 .section ".tdata","awT",%progbits
23445 add x0, x0, #:tlsgd_lo12:x
23450 tls_as_opt
='--fatal-warnings'
23454 .extern __get_tpointer
23472 .section ".tdata","awT",@progbits
23480 addi 3,2,ld0@got@tlsgd
23486 addi 3,2,x1@got@tlsld
23492 addis 9,3,x2@dtprel@ha
23493 addi 9,9,x2@dtprel@l
23496 ld 9,x3@got@dtprel(2)
23502 tls_as_opt
="-a64 --fatal-warnings"
23506 .section ".tdata","awT",@progbits
23514 addi 3,31,ld0@got@tlsgd
23516 addi 3,31,x1@got@tlsld
23519 addis 9,3,x2@dtprel@ha
23520 addi 9,9,x2@dtprel@l
23521 lwz 9,x3@got@tprel(31)
23524 addis 9,2,x2@tprel@ha
23525 addi 9,9,x2@tprel@l'
23528 tls_as_opt
="-a32 --fatal-warnings"
23532 .section ".tdata","awT",@progbits
23539 .long foo@GOTNTPOFF
23540 .long foo@INDNTPOFF
23541 l %r1,foo@GOTNTPOFF(%r12)
23542 l %r1,0(%r1):tls_load:foo
23543 bas %r14,0(%r1,%r13):tls_gdcall:foo
23544 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23547 tls_as_opt
="-m31 --fatal-warnings"
23551 .section ".tdata","awT",@progbits
23558 .quad foo@GOTNTPOFF
23559 lg %r1,foo@GOTNTPOFF(%r12)
23560 larl %r1,foo@INDNTPOFF
23561 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23562 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23565 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23567 sh-
*-* | sh
[34]-*-*)
23569 .section ".tdata","awT",@progbits
23579 tls_as_opt
=--fatal-warnings
23583 sparc
*-sun-solaris2.
*)
23590 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23592 .section ".tdata",#alloc,#write,#tls'
23597 .section ".tdata","awT",@progbits'
23600 tls_as_opt
="-32 --fatal-warnings"
23602 conftest_s
="$conftest_s
23605 sethi %tgd_hi22(foo), %o0
23606 add %o0, %tgd_lo10(foo), %o1
23607 add %l7, %o1, %o0, %tgd_add(foo)
23608 call __tls_get_addr, %tgd_call(foo)
23609 sethi %tldm_hi22(foo), %l1
23610 add %l1, %tldm_lo10(foo), %l2
23611 add %l7, %l2, %o0, %tldm_add(foo)
23612 call __tls_get_addr, %tldm_call(foo)
23613 sethi %tldo_hix22(foo), %l3
23614 xor %l3, %tldo_lox10(foo), %l4
23615 add %o0, %l4, %l5, %tldo_add(foo)
23616 sethi %tie_hi22(foo), %o3
23617 add %o3, %tie_lo10(foo), %o3
23618 ld [%l7 + %o3], %o2, %tie_ld(foo)
23619 add %g7, %o2, %o4, %tie_add(foo)
23620 sethi %tle_hix22(foo), %l1
23621 xor %l1, %tle_lox10(foo), %o5
23622 ld [%g7 + %o5], %o1"
23626 .section ".tdata","awT",@progbits
23629 addli r0, zero, tls_gd(foo)
23630 auli r0, zero, tls_gd_ha16(foo)
23631 addli r0, r0, tls_gd_lo16(foo)
23633 addli r0, zero, tls_ie(foo)
23634 auli r0, r0, tls_ie_ha16(foo)
23635 addli r0, r0, tls_ie_lo16(foo)'
23638 tls_as_opt
="--fatal-warnings"
23642 .section ".tdata","awT",@progbits
23645 shl16insli r0, zero, hw0_last_tls_gd(foo)
23646 shl16insli r0, zero, hw1_last_tls_gd(foo)
23647 shl16insli r0, r0, hw0_tls_gd(foo)
23649 shl16insli r0, zero, hw1_last_tls_ie(foo)
23650 shl16insli r0, r0, hw0_tls_ie(foo)'
23653 tls_as_opt
="--fatal-warnings"
23657 .section ".tdata","awT",@progbits
23660 movi a8, foo@TLSFUNC
23661 movi a10, foo@TLSARG
23662 callx8.tls a8, foo@TLSCALL'
23668 if test "x$enable_tls" = xno
; then
23669 : # TLS explicitly disabled.
23670 elif test "x$enable_tls" = xyes
; then
23671 set_have_as_tls
=yes # TLS explicitly enabled.
23672 elif test -z "$tls_first_major"; then
23673 : # If we don't have a check, assume no support.
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23676 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23677 if test "${gcc_cv_as_tls+set}" = set; then :
23678 $as_echo_n "(cached) " >&6
23681 if test $in_tree_gas = yes; then
23682 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23683 then gcc_cv_as_tls
=yes
23685 elif test x
$gcc_cv_as != x
; then
23686 $as_echo "$conftest_s" > conftest.s
23687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23689 (eval $ac_try) 2>&5
23691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23692 test $ac_status = 0; }; }
23696 echo "configure: failed program was" >&5
23699 rm -f conftest.o conftest.s
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23703 $as_echo "$gcc_cv_as_tls" >&6; }
23704 if test $gcc_cv_as_tls = yes; then
23705 set_have_as_tls
=yes
23708 if test $set_have_as_tls = yes ; then
23710 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23714 # Target-specific assembler checks.
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23717 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23718 gcc_cv_ld_static_dynamic
=no
23719 gcc_cv_ld_static_option
='-Bstatic'
23720 gcc_cv_ld_dynamic_option
='-Bdynamic'
23721 if test $in_tree_ld = yes ; then
23722 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
23723 gcc_cv_ld_static_dynamic
=yes
23725 elif test x
$gcc_cv_ld != x
; then
23726 # Check if linker supports -Bstatic/-Bdynamic option
23727 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23728 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23729 gcc_cv_ld_static_dynamic
=yes
23732 # AIX ld uses -b flags
23733 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23734 gcc_cv_ld_static_dynamic
=yes
23735 gcc_cv_ld_static_option
="-bstatic"
23736 gcc_cv_ld_dynamic_option
="-bdynamic"
23738 # HP-UX ld uses -a flags to select between shared and archive.
23740 if test x
"$gnu_ld" = xno
; then
23741 gcc_cv_ld_static_dynamic
=yes
23742 gcc_cv_ld_static_option
="-aarchive_shared"
23743 gcc_cv_ld_dynamic_option
="-adefault"
23746 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23748 gcc_cv_ld_static_dynamic
=yes
23753 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23755 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23758 cat >>confdefs.h
<<_ACEOF
23759 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23763 cat >>confdefs.h
<<_ACEOF
23764 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23769 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23771 if test x
"$demangler_in_ld" = xyes
; then
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23773 $as_echo_n "checking linker --demangle support... " >&6; }
23774 gcc_cv_ld_demangle
=no
23775 if test $in_tree_ld = yes; then
23776 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 \
23777 gcc_cv_ld_demangle
=yes
23779 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23780 # Check if the GNU linker supports --demangle option
23781 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23782 gcc_cv_ld_demangle
=yes
23785 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23787 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23791 $as_echo "$gcc_cv_ld_demangle" >&6; }
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23795 $as_echo_n "checking linker plugin support... " >&6; }
23796 gcc_cv_lto_plugin
=0
23797 if test -f liblto_plugin.la
; then
23798 save_ld_ver
="$ld_ver"
23799 save_ld_vers_major
="$ld_vers_major"
23800 save_ld_vers_minor
="$ld_vers_minor"
23801 save_ld_is_gold
="$ld_is_gold"
23805 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23807 # FIXME: ld_is_gold?
23808 ld_vers_major
="$gcc_cv_gld_major_version"
23809 ld_vers_minor
="$gcc_cv_gld_minor_version"
23811 # Determine plugin linker version.
23812 # FIXME: Partial duplicate from above, generalize.
23813 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23814 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23815 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23817 ld_vers
=`echo $ld_ver | sed -n \
23818 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23820 ld_vers
=`echo $ld_ver | sed -n \
23821 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23823 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23824 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23828 # Determine plugin support.
23829 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23830 # Require GNU ld or gold 2.21+ for plugin support by default.
23831 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23832 gcc_cv_lto_plugin
=2
23833 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23834 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23835 gcc_cv_lto_plugin
=1
23839 ld_ver
="$save_ld_ver"
23840 ld_vers_major
="$save_ld_vers_major"
23841 ld_vers_minor
="$save_ld_vers_minor"
23842 ld_is_gold
="$save_ld_is_gold"
23845 cat >>confdefs.h
<<_ACEOF
23846 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23850 $as_echo "$gcc_cv_lto_plugin" >&6; }
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23855 $as_echo_n "checking assembler for -mabi option... " >&6; }
23856 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23859 gcc_cv_as_aarch64_mabi
=no
23860 if test x
$gcc_cv_as != x
; then
23861 $as_echo '.text' > conftest.s
23862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23869 gcc_cv_as_aarch64_mabi
=yes
23871 echo "configure: failed program was" >&5
23874 rm -f conftest.o conftest.s
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23878 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23880 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
23882 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23885 if test x
$with_abi = xilp32
; then
23886 as_fn_error
"Assembler does not support -mabi=ilp32.\
23887 Upgrade the Assembler." "$LINENO" 5
23889 if test x
"$with_multilib_list" = xdefault
; then
23890 TM_MULTILIB_CONFIG
=lp64
23892 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
23893 for aarch64_multilib
in ${aarch64_multilibs}; do
23894 case ${aarch64_multilib} in
23896 as_fn_error
"Assembler does not support -mabi=ilp32.\
23897 Upgrade the Assembler." "$LINENO" 5
23907 # All TARGET_ABI_OSF targets.
23908 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23910 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23911 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23914 gcc_cv_as_alpha_explicit_relocs
=no
23915 if test $in_tree_gas = yes; then
23916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23917 then gcc_cv_as_alpha_explicit_relocs
=yes
23919 elif test x
$gcc_cv_as != x
; then
23920 $as_echo ' .set nomacro
23922 extbl $3, $2, $3 !lituse_bytoff!1
23923 ldq $2, a($29) !literal!1
23924 ldq $4, b($29) !literal!2
23925 ldq_u $3, 0($2) !lituse_base!1
23926 ldq $27, f($29) !literal!5
23927 jsr $26, ($27), f !lituse_jsr!5
23928 ldah $29, 0($26) !gpdisp!3
23929 lda $0, c($29) !gprel
23930 ldah $1, d($29) !gprelhigh
23931 lda $1, d($1) !gprellow
23932 lda $29, 0($29) !gpdisp!3' > conftest.s
23933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23935 (eval $ac_try) 2>&5
23937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23938 test $ac_status = 0; }; }
23940 gcc_cv_as_alpha_explicit_relocs
=yes
23942 echo "configure: failed program was" >&5
23945 rm -f conftest.o conftest.s
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23949 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23950 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23952 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23956 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23957 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23960 gcc_cv_as_alpha_jsrdirect_relocs
=no
23961 if test $in_tree_gas = yes; then
23962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23963 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23965 elif test x
$gcc_cv_as != x
; then
23966 $as_echo ' .set nomacro
23968 ldq $27, a($29) !literal!1
23969 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972 (eval $ac_try) 2>&5
23974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975 test $ac_status = 0; }; }
23977 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23979 echo "configure: failed program was" >&5
23982 rm -f conftest.o conftest.s
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23986 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23987 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23989 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23996 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23997 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23998 $as_echo_n "(cached) " >&6
24000 gcc_cv_as_cris_no_mul_bug
=no
24001 if test $in_tree_gas = yes; then
24002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24003 then gcc_cv_as_cris_no_mul_bug
=yes
24005 elif test x
$gcc_cv_as != x
; then
24006 $as_echo '.text' > conftest.s
24007 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24009 (eval $ac_try) 2>&5
24011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012 test $ac_status = 0; }; }
24014 gcc_cv_as_cris_no_mul_bug
=yes
24016 echo "configure: failed program was" >&5
24019 rm -f conftest.o conftest.s
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24023 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24024 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24026 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24033 $as_echo_n "checking assembler for .register... " >&6; }
24034 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24035 $as_echo_n "(cached) " >&6
24037 gcc_cv_as_sparc_register_op
=no
24038 if test x
$gcc_cv_as != x
; then
24039 $as_echo '.register %g2, #scratch' > conftest.s
24040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24042 (eval $ac_try) 2>&5
24044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24045 test $ac_status = 0; }; }
24047 gcc_cv_as_sparc_register_op
=yes
24049 echo "configure: failed program was" >&5
24052 rm -f conftest.o conftest.s
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24056 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24057 if test $gcc_cv_as_sparc_register_op = yes; then
24059 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24064 $as_echo_n "checking assembler for #nobits... " >&6; }
24065 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24066 $as_echo_n "(cached) " >&6
24068 gcc_cv_as_sparc_nobits
=no
24069 if test x
$gcc_cv_as != x
; then
24070 $as_echo '.section "nobits",#alloc,#write,#nobits
24071 .section "progbits",#alloc,#write,#progbits' > conftest.s
24072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24074 (eval $ac_try) 2>&5
24076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077 test $ac_status = 0; }; }
24079 gcc_cv_as_sparc_nobits
=yes
24081 echo "configure: failed program was" >&5
24084 rm -f conftest.o conftest.s
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24088 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24091 cat >>confdefs.h
<<_ACEOF
24092 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24097 $as_echo_n "checking assembler for -relax option... " >&6; }
24098 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24101 gcc_cv_as_sparc_relax
=no
24102 if test x
$gcc_cv_as != x
; then
24103 $as_echo '.text' > conftest.s
24104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24106 (eval $ac_try) 2>&5
24108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24109 test $ac_status = 0; }; }
24111 gcc_cv_as_sparc_relax
=yes
24113 echo "configure: failed program was" >&5
24116 rm -f conftest.o conftest.s
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24120 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24121 if test $gcc_cv_as_sparc_relax = yes; then
24123 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24128 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24129 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24132 gcc_cv_as_sparc_gotdata_op
=no
24133 if test x
$gcc_cv_as != x
; then
24139 sethi %gdop_hix22(foo), %g1
24140 xor %g1, %gdop_lox10(foo), %g1
24141 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24144 (eval $ac_try) 2>&5
24146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24147 test $ac_status = 0; }; }
24149 if test x
$gcc_cv_ld != x \
24150 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24151 if test x
$gcc_cv_objdump != x
; then
24152 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24153 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24154 gcc_cv_as_sparc_gotdata_op
=no
24156 gcc_cv_as_sparc_gotdata_op
=yes
24162 echo "configure: failed program was" >&5
24165 rm -f conftest.o conftest.s
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24169 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24170 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24172 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24177 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24178 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24181 gcc_cv_as_sparc_ua_pcrel
=no
24182 if test x
$gcc_cv_as != x
; then
24189 .uaword %r_disp32(foo)' > conftest.s
24190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24192 (eval $ac_try) 2>&5
24194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24195 test $ac_status = 0; }; }
24197 if test x
$gcc_cv_ld != x \
24198 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24199 gcc_cv_as_sparc_ua_pcrel
=yes
24203 echo "configure: failed program was" >&5
24206 rm -f conftest.o conftest.s
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24210 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24211 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24213 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24217 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24218 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24219 $as_echo_n "(cached) " >&6
24221 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24222 if test x
$gcc_cv_as != x
; then
24226 .uaword %r_disp32(foo)
24227 .byte 0x32, 0x33, 0x34
24231 .skip 4' > conftest.s
24232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234 (eval $ac_try) 2>&5
24236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237 test $ac_status = 0; }; }
24239 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24240 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24241 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24242 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24243 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24244 |
grep 'DISP32' > /dev
/null
2>&1; then
24247 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24252 echo "configure: failed program was" >&5
24255 rm -f conftest.o conftest.s
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24259 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24260 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24262 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24266 fi # unaligned pcrel relocs
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24269 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24270 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24273 gcc_cv_as_sparc_offsetable_lo10
=no
24274 if test x
$gcc_cv_as != x
; then
24276 or %g1, %lo(ab) + 12, %g1
24277 or %g1, %lo(ab + 12), %g1' > conftest.s
24278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24280 (eval $ac_try) 2>&5
24282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24283 test $ac_status = 0; }; }
24285 if test x
$gcc_cv_objdump != x \
24286 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24287 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24288 gcc_cv_as_sparc_offsetable_lo10
=yes
24291 echo "configure: failed program was" >&5
24294 rm -f conftest.o conftest.s
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24298 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24299 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24301 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24306 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24307 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24308 $as_echo_n "(cached) " >&6
24310 gcc_cv_as_sparc_fmaf
=no
24311 if test x
$gcc_cv_as != x
; then
24313 .register %g2, #scratch
24314 .register %g3, #scratch
24316 fmaddd %f0, %f2, %f4, %f6
24317 addxccc %g1, %g2, %g3
24318 fsrl32 %f2, %f4, %f8
24319 fnaddd %f10, %f12, %f14' > conftest.s
24320 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322 (eval $ac_try) 2>&5
24324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325 test $ac_status = 0; }; }
24327 gcc_cv_as_sparc_fmaf
=yes
24329 echo "configure: failed program was" >&5
24332 rm -f conftest.o conftest.s
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24336 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24337 if test $gcc_cv_as_sparc_fmaf = yes; then
24339 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24344 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24345 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24348 gcc_cv_as_sparc_sparc4
=no
24349 if test x
$gcc_cv_as != x
; then
24351 .register %g2, #scratch
24352 .register %g3, #scratch
24355 1: cwbneg %g2, %g3, 1f
24358 aes_kexpand0 %f4, %f6, %f8
24359 des_round %f38, %f40, %f42, %f44
24360 camellia_f %f54, %f56, %f58, %f60
24361 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24364 (eval $ac_try) 2>&5
24366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24367 test $ac_status = 0; }; }
24369 gcc_cv_as_sparc_sparc4
=yes
24371 echo "configure: failed program was" >&5
24374 rm -f conftest.o conftest.s
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24378 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24379 if test $gcc_cv_as_sparc_sparc4 = yes; then
24381 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24386 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24387 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24390 gcc_cv_as_sparc_leon
=no
24391 if test x
$gcc_cv_as != x
; then
24393 .register %g2, #scratch
24394 .register %g3, #scratch
24398 cas [%g2], %g3, %g1' > conftest.s
24399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24401 (eval $ac_try) 2>&5
24403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24404 test $ac_status = 0; }; }
24406 gcc_cv_as_sparc_leon
=yes
24408 echo "configure: failed program was" >&5
24411 rm -f conftest.o conftest.s
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24415 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24416 if test $gcc_cv_as_sparc_leon = yes; then
24418 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24423 i
[34567]86-*-* | x86_64-
*-*)
24426 # Full C++ conformance when using a shared libstdc++-v3 requires some
24427 # support from the Cygwin DLL, which in more recent versions exports
24428 # wrappers to aid in interposing and redirecting operators new, delete,
24429 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24430 # are configuring for a version of Cygwin that exports the wrappers.
24431 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24432 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24433 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24434 gcc_ac_cygwin_dll_wrappers
=yes
24436 gcc_ac_cygwin_dll_wrappers
=no
24440 # Can't check presence of libc functions during cross-compile, so
24441 # we just have to assume we're building for an up-to-date target.
24442 gcc_ac_cygwin_dll_wrappers
=yes
24445 cat >>confdefs.h
<<_ACEOF
24446 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24451 cygwin
* | pe | mingw32
* | interix
*)
24452 # Recent binutils allows the three-operand form of ".comm" on PE. This
24453 # definition is used unconditionally to initialise the default state of
24454 # the target option variable that governs usage of the feature.
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24456 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24457 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24458 $as_echo_n "(cached) " >&6
24460 gcc_cv_as_comm_has_align
=no
24461 if test $in_tree_gas = yes; then
24462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24463 then gcc_cv_as_comm_has_align
=yes
24465 elif test x
$gcc_cv_as != x
; then
24466 $as_echo '.comm foo,1,32' > conftest.s
24467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24474 gcc_cv_as_comm_has_align
=yes
24476 echo "configure: failed program was" >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24483 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24486 cat >>confdefs.h
<<_ACEOF
24487 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24490 # Used for DWARF 2 in PE
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24492 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24493 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24496 gcc_cv_as_ix86_pe_secrel32
=no
24497 if test $in_tree_gas = yes; then
24498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24499 then gcc_cv_as_ix86_pe_secrel32
=yes
24501 elif test x
$gcc_cv_as != x
; then
24505 .secrel32 foo' > conftest.s
24506 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24508 (eval $ac_try) 2>&5
24510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24511 test $ac_status = 0; }; }
24513 if test x
$gcc_cv_ld != x \
24514 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24515 gcc_cv_as_ix86_pe_secrel32
=yes
24519 echo "configure: failed program was" >&5
24522 rm -f conftest.o conftest.s
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24526 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24527 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24529 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24532 # Test if the assembler supports the extended form of the .section
24533 # directive that specifies section alignment. LTO support uses this,
24534 # but normally only after installation, so we warn but don't fail the
24535 # configure if LTO is enabled but the assembler does not support it.
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24537 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24538 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24541 gcc_cv_as_section_has_align
=no
24542 if test $in_tree_gas = yes; then
24543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24544 then gcc_cv_as_section_has_align
=yes
24546 elif test x
$gcc_cv_as != x
; then
24547 $as_echo '.section lto_test,"dr0"' > conftest.s
24548 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24550 (eval $ac_try) 2>&5
24552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24553 test $ac_status = 0; }; }
24555 gcc_cv_as_section_has_align
=yes
24557 echo "configure: failed program was" >&5
24560 rm -f conftest.o conftest.s
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24564 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24566 if test x
$gcc_cv_as_section_has_align != xyes
; then
24567 case ",$enable_languages," in
24569 { $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
24570 $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;}
24574 # Test if the assembler supports the section flag 'e' for specifying
24575 # an excluded section.
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24577 $as_echo_n "checking assembler for .section with e... " >&6; }
24578 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24579 $as_echo_n "(cached) " >&6
24581 gcc_cv_as_section_has_e
=no
24582 if test $in_tree_gas = yes; then
24583 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24584 then gcc_cv_as_section_has_e
=yes
24586 elif test x
$gcc_cv_as != x
; then
24587 $as_echo '.section foo1,"e"
24588 .byte 0,0,0,0' > conftest.s
24589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24591 (eval $ac_try) 2>&5
24593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594 test $ac_status = 0; }; }
24596 gcc_cv_as_section_has_e
=yes
24598 echo "configure: failed program was" >&5
24601 rm -f conftest.o conftest.s
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24605 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24608 cat >>confdefs.h
<<_ACEOF
24609 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24616 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24617 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24618 $as_echo_n "(cached) " >&6
24620 gcc_cv_as_ix86_filds
=no
24621 if test x
$gcc_cv_as != x
; then
24622 $as_echo 'filds mem; fists mem' > conftest.s
24623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24625 (eval $ac_try) 2>&5
24627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628 test $ac_status = 0; }; }
24630 gcc_cv_as_ix86_filds
=yes
24632 echo "configure: failed program was" >&5
24635 rm -f conftest.o conftest.s
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24639 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24640 if test $gcc_cv_as_ix86_filds = yes; then
24642 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24647 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24648 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24649 $as_echo_n "(cached) " >&6
24651 gcc_cv_as_ix86_fildq
=no
24652 if test x
$gcc_cv_as != x
; then
24653 $as_echo 'fildq mem; fistpq mem' > conftest.s
24654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24656 (eval $ac_try) 2>&5
24658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24659 test $ac_status = 0; }; }
24661 gcc_cv_as_ix86_fildq
=yes
24663 echo "configure: failed program was" >&5
24666 rm -f conftest.o conftest.s
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24670 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24671 if test $gcc_cv_as_ix86_fildq = yes; then
24673 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24678 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24679 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24682 gcc_cv_as_ix86_cmov_sun_syntax
=no
24683 if test x
$gcc_cv_as != x
; then
24684 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24687 (eval $ac_try) 2>&5
24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24690 test $ac_status = 0; }; }
24692 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24694 echo "configure: failed program was" >&5
24697 rm -f conftest.o conftest.s
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24701 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24702 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24704 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24709 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24710 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24711 $as_echo_n "(cached) " >&6
24713 gcc_cv_as_ix86_ffreep
=no
24714 if test x
$gcc_cv_as != x
; then
24715 $as_echo 'ffreep %st(1)' > conftest.s
24716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24723 gcc_cv_as_ix86_ffreep
=yes
24725 echo "configure: failed program was" >&5
24728 rm -f conftest.o conftest.s
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24732 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24733 if test $gcc_cv_as_ix86_ffreep = yes; then
24735 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24740 $as_echo_n "checking assembler for .quad directive... " >&6; }
24741 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24744 gcc_cv_as_ix86_quad
=no
24745 if test x
$gcc_cv_as != x
; then
24746 $as_echo '.quad 0' > conftest.s
24747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24754 gcc_cv_as_ix86_quad
=yes
24756 echo "configure: failed program was" >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24763 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24764 if test $gcc_cv_as_ix86_quad = yes; then
24766 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24771 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24772 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24775 gcc_cv_as_ix86_sahf
=no
24776 if test x
$gcc_cv_as != x
; then
24779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24786 gcc_cv_as_ix86_sahf
=yes
24788 echo "configure: failed program was" >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24795 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24796 if test $gcc_cv_as_ix86_sahf = yes; then
24798 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24803 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24804 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24805 $as_echo_n "(cached) " >&6
24807 gcc_cv_as_ix86_interunit_movq
=no
24808 if test x
$gcc_cv_as != x
; then
24811 movq %rax, %xmm0' > conftest.s
24812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814 (eval $ac_try) 2>&5
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; }
24819 gcc_cv_as_ix86_interunit_movq
=yes
24821 echo "configure: failed program was" >&5
24824 rm -f conftest.o conftest.s
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24828 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24831 cat >>confdefs.h
<<_ACEOF
24832 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24837 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24838 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24839 $as_echo_n "(cached) " >&6
24841 gcc_cv_as_ix86_hle
=no
24842 if test x
$gcc_cv_as != x
; then
24843 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24846 (eval $ac_try) 2>&5
24848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849 test $ac_status = 0; }; }
24851 gcc_cv_as_ix86_hle
=yes
24853 echo "configure: failed program was" >&5
24856 rm -f conftest.o conftest.s
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24860 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24861 if test $gcc_cv_as_ix86_hle = yes; then
24863 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24868 $as_echo_n "checking assembler for swap suffix... " >&6; }
24869 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24872 gcc_cv_as_ix86_swap
=no
24873 if test x
$gcc_cv_as != x
; then
24874 $as_echo 'movl.s %esp, %ebp' > conftest.s
24875 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24882 gcc_cv_as_ix86_swap
=yes
24884 echo "configure: failed program was" >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24891 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24892 if test $gcc_cv_as_ix86_swap = yes; then
24894 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24899 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24900 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24903 gcc_cv_as_ix86_diff_sect_delta
=no
24904 if test x
$gcc_cv_as != x
; then
24905 $as_echo '.section .rodata
24911 .L2: nop' > conftest.s
24912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24919 gcc_cv_as_ix86_diff_sect_delta
=yes
24921 echo "configure: failed program was" >&5
24924 rm -f conftest.o conftest.s
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24928 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24929 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24931 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24935 # These two are used unconditionally by i386.[ch]; it is to be defined
24936 # to 1 if the feature is present, 0 otherwise.
24937 as_ix86_gotoff_in_data_opt
=
24938 if test x
$gas = xyes
; then
24939 as_ix86_gotoff_in_data_opt
="--32"
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24942 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24943 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24944 $as_echo_n "(cached) " >&6
24946 gcc_cv_as_ix86_gotoff_in_data
=no
24947 if test $in_tree_gas = yes; then
24948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24949 then gcc_cv_as_ix86_gotoff_in_data
=yes
24951 elif test x
$gcc_cv_as != x
; then
24956 .long .L0@GOTOFF' > conftest.s
24957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24959 (eval $ac_try) 2>&5
24961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24962 test $ac_status = 0; }; }
24964 gcc_cv_as_ix86_gotoff_in_data
=yes
24966 echo "configure: failed program was" >&5
24969 rm -f conftest.o conftest.s
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24973 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24976 cat >>confdefs.h
<<_ACEOF
24977 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24982 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24983 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24986 gcc_cv_as_ix86_rep_lock_prefix
=no
24987 if test x
$gcc_cv_as != x
; then
24988 $as_echo 'rep movsl
24993 lock addl %edi, (%eax,%esi)
24994 lock orl $0, (%esp)' > conftest.s
24995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25002 gcc_cv_as_ix86_rep_lock_prefix
=yes
25004 echo "configure: failed program was" >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25011 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25012 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25014 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25019 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25020 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25023 gcc_cv_as_ix86_ud2
=no
25024 if test x
$gcc_cv_as != x
; then
25025 $as_echo 'ud2' > conftest.s
25026 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25028 (eval $ac_try) 2>&5
25030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25031 test $ac_status = 0; }; }
25033 gcc_cv_as_ix86_ud2
=yes
25035 echo "configure: failed program was" >&5
25038 rm -f conftest.o conftest.s
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25042 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25043 if test $gcc_cv_as_ix86_ud2 = yes; then
25045 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25050 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25051 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25052 $as_echo_n "(cached) " >&6
25054 gcc_cv_as_ix86_tlsgdplt
=no
25055 if test x
$gcc_cv_as != x
; then
25056 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25059 (eval $ac_try) 2>&5
25061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25062 test $ac_status = 0; }; }
25064 if test x
$gcc_cv_ld != x \
25065 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25066 gcc_cv_as_ix86_tlsgdplt
=yes
25070 echo "configure: failed program was" >&5
25073 rm -f conftest.o conftest.s
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25077 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25078 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25080 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25085 .section .tdata,"aw'$tls_section_flag'",@progbits
25087 .section .text,"ax",@progbits
25088 call tls_ld@tlsldmplt'
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25090 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25091 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25092 $as_echo_n "(cached) " >&6
25094 gcc_cv_as_ix86_tlsldmplt
=no
25095 if test x
$gcc_cv_as != x
; then
25096 $as_echo "$conftest_s" > conftest.s
25097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25104 if test x
$gcc_cv_ld != x \
25105 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25106 gcc_cv_as_ix86_tlsldmplt
=yes
25110 echo "configure: failed program was" >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25117 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25120 cat >>confdefs.h
<<_ACEOF
25121 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25125 # Enforce 32-bit output with gas and gld.
25126 if test x
$gas = xyes
; then
25127 as_ix86_tls_ldm_opt
="--32"
25129 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25130 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25131 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25133 ld_ix86_tls_ldm_opt
="-melf_i386"
25137 .section .text,"ax",@progbits
25139 .type _start, @function
25141 leal value@tlsldm(%ebx), %eax
25142 call ___tls_get_addr@plt
25144 .section .tdata,"aw'$tls_section_flag'",@progbits
25145 .type value, @object
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25148 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25149 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25150 $as_echo_n "(cached) " >&6
25152 gcc_cv_as_ix86_tlsldm
=no
25153 if test x
$gcc_cv_as != x
; then
25154 $as_echo "$conftest_s" > conftest.s
25155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157 (eval $ac_try) 2>&5
25159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160 test $ac_status = 0; }; }
25162 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25163 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25164 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25165 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25166 gcc_cv_as_ix86_tlsldm
=yes
25171 echo "configure: failed program was" >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25178 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25181 cat >>confdefs.h
<<_ACEOF
25182 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25190 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25191 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25192 $as_echo_n "(cached) " >&6
25194 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25195 if test $in_tree_gas = yes; then
25196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25197 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25199 elif test x
$gcc_cv_as != x
; then
25201 addl r15 = @ltoffx(x#), gp
25203 ld8.mov r16 = [r15], x#' > conftest.s
25204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; }
25211 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25213 echo "configure: failed program was" >&5
25216 rm -f conftest.o conftest.s
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25220 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25221 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25223 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25231 *-*-aix*) conftest_s
=' .machine "pwr5"
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25236 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25237 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25238 $as_echo_n "(cached) " >&6
25240 gcc_cv_as_machine_directive
=no
25241 if test x
$gcc_cv_as != x
; then
25242 $as_echo ' .machine ppc7400' > conftest.s
25243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25245 (eval $ac_try) 2>&5
25247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25248 test $ac_status = 0; }; }
25250 gcc_cv_as_machine_directive
=yes
25252 echo "configure: failed program was" >&5
25255 rm -f conftest.o conftest.s
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25259 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25261 if test x
$gcc_cv_as_machine_directive != xyes
; then
25262 echo "*** This target requires an assembler supporting \".machine\"" >&2
25263 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25264 test x
$build = x
$target && exit 1
25268 *) conftest_s
=' .machine power4
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25274 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25275 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25276 $as_echo_n "(cached) " >&6
25278 gcc_cv_as_powerpc_mfcrf
=no
25279 if test $in_tree_gas = yes; then
25280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25281 then gcc_cv_as_powerpc_mfcrf
=yes
25283 elif test x
$gcc_cv_as != x
; then
25284 $as_echo "$conftest_s" > conftest.s
25285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287 (eval $ac_try) 2>&5
25289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290 test $ac_status = 0; }; }
25292 gcc_cv_as_powerpc_mfcrf
=yes
25294 echo "configure: failed program was" >&5
25297 rm -f conftest.o conftest.s
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25301 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25302 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25304 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25309 *-*-aix*) conftest_s
=' .machine "pwr5"
25312 *) conftest_s
=' .machine power5
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25318 $as_echo_n "checking assembler for popcntb support... " >&6; }
25319 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25320 $as_echo_n "(cached) " >&6
25322 gcc_cv_as_powerpc_popcntb
=no
25323 if test $in_tree_gas = yes; then
25324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25325 then gcc_cv_as_powerpc_popcntb
=yes
25327 elif test x
$gcc_cv_as != x
; then
25328 $as_echo "$conftest_s" > conftest.s
25329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25331 (eval $ac_try) 2>&5
25333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25334 test $ac_status = 0; }; }
25336 gcc_cv_as_powerpc_popcntb
=yes
25338 echo "configure: failed program was" >&5
25341 rm -f conftest.o conftest.s
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25345 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25346 if test $gcc_cv_as_powerpc_popcntb = yes; then
25348 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25353 *-*-aix*) conftest_s
=' .machine "pwr5x"
25356 *) conftest_s
=' .machine power5
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25362 $as_echo_n "checking assembler for fp round support... " >&6; }
25363 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25366 gcc_cv_as_powerpc_fprnd
=no
25367 if test $in_tree_gas = yes; then
25368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25369 then gcc_cv_as_powerpc_fprnd
=yes
25371 elif test x
$gcc_cv_as != x
; then
25372 $as_echo "$conftest_s" > conftest.s
25373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25375 (eval $ac_try) 2>&5
25377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25378 test $ac_status = 0; }; }
25380 gcc_cv_as_powerpc_fprnd
=yes
25382 echo "configure: failed program was" >&5
25385 rm -f conftest.o conftest.s
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25389 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25390 if test $gcc_cv_as_powerpc_fprnd = yes; then
25392 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25397 *-*-aix*) conftest_s
=' .machine "pwr6"
25400 *) conftest_s
=' .machine power6
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25406 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25407 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25410 gcc_cv_as_powerpc_mfpgpr
=no
25411 if test $in_tree_gas = yes; then
25412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25413 then gcc_cv_as_powerpc_mfpgpr
=yes
25415 elif test x
$gcc_cv_as != x
; then
25416 $as_echo "$conftest_s" > conftest.s
25417 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25419 (eval $ac_try) 2>&5
25421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25422 test $ac_status = 0; }; }
25424 gcc_cv_as_powerpc_mfpgpr
=yes
25426 echo "configure: failed program was" >&5
25429 rm -f conftest.o conftest.s
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25433 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25434 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25436 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25441 *-*-aix*) conftest_s
=' .csect .text[PR]
25443 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25447 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25448 *) conftest_s
=' .text
25450 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25454 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25455 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25458 gcc_cv_as_powerpc_rel16
=no
25459 if test $in_tree_gas = yes; then
25460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25461 then gcc_cv_as_powerpc_rel16
=yes
25463 elif test x
$gcc_cv_as != x
; then
25464 $as_echo "$conftest_s" > conftest.s
25465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25472 gcc_cv_as_powerpc_rel16
=yes
25474 echo "configure: failed program was" >&5
25477 rm -f conftest.o conftest.s
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25481 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25482 if test $gcc_cv_as_powerpc_rel16 = yes; then
25484 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25489 *-*-aix*) conftest_s
=' .machine "pwr6"
25492 *) conftest_s
=' .machine power6
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25498 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25499 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25502 gcc_cv_as_powerpc_cmpb
=no
25503 if test $in_tree_gas = yes; then
25504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25505 then gcc_cv_as_powerpc_cmpb
=yes
25507 elif test x
$gcc_cv_as != x
; then
25508 $as_echo "$conftest_s" > conftest.s
25509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }
25516 gcc_cv_as_powerpc_cmpb
=yes
25518 echo "configure: failed program was" >&5
25521 rm -f conftest.o conftest.s
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25525 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25526 if test $gcc_cv_as_powerpc_cmpb = yes; then
25528 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25533 *-*-aix*) conftest_s
=' .machine "pwr6"
25536 *) conftest_s
=' .machine power6
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25542 $as_echo_n "checking assembler for decimal float support... " >&6; }
25543 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25544 $as_echo_n "(cached) " >&6
25546 gcc_cv_as_powerpc_dfp
=no
25547 if test $in_tree_gas = yes; then
25548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25549 then gcc_cv_as_powerpc_dfp
=yes
25551 elif test x
$gcc_cv_as != x
; then
25552 $as_echo "$conftest_s" > conftest.s
25553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25555 (eval $ac_try) 2>&5
25557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25558 test $ac_status = 0; }; }
25560 gcc_cv_as_powerpc_dfp
=yes
25562 echo "configure: failed program was" >&5
25565 rm -f conftest.o conftest.s
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25569 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25570 if test $gcc_cv_as_powerpc_dfp = yes; then
25572 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25577 *-*-aix*) conftest_s
=' .machine "pwr7"
25580 *) conftest_s
=' .machine power7
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25586 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25587 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25590 gcc_cv_as_powerpc_vsx
=no
25591 if test $in_tree_gas = yes; then
25592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25593 then gcc_cv_as_powerpc_vsx
=yes
25595 elif test x
$gcc_cv_as != x
; then
25596 $as_echo "$conftest_s" > conftest.s
25597 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25599 (eval $ac_try) 2>&5
25601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25602 test $ac_status = 0; }; }
25604 gcc_cv_as_powerpc_vsx
=yes
25606 echo "configure: failed program was" >&5
25609 rm -f conftest.o conftest.s
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25613 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25614 if test $gcc_cv_as_powerpc_vsx = yes; then
25616 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25621 *-*-aix*) conftest_s
=' .machine "pwr7"
25624 *) conftest_s
=' .machine power7
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25630 $as_echo_n "checking assembler for popcntd support... " >&6; }
25631 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25634 gcc_cv_as_powerpc_popcntd
=no
25635 if test $in_tree_gas = yes; then
25636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25637 then gcc_cv_as_powerpc_popcntd
=yes
25639 elif test x
$gcc_cv_as != x
; then
25640 $as_echo "$conftest_s" > conftest.s
25641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25643 (eval $ac_try) 2>&5
25645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25646 test $ac_status = 0; }; }
25648 gcc_cv_as_powerpc_popcntd
=yes
25650 echo "configure: failed program was" >&5
25653 rm -f conftest.o conftest.s
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25657 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25658 if test $gcc_cv_as_powerpc_popcntd = yes; then
25660 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25665 *-*-aix*) conftest_s
=' .machine "pwr8"
25666 .csect .text[PR]';;
25667 *) conftest_s
=' .machine power8
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25672 $as_echo_n "checking assembler for power8 support... " >&6; }
25673 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25674 $as_echo_n "(cached) " >&6
25676 gcc_cv_as_powerpc_power8
=no
25677 if test $in_tree_gas = yes; then
25678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25679 then gcc_cv_as_powerpc_power8
=yes
25681 elif test x
$gcc_cv_as != x
; then
25682 $as_echo "$conftest_s" > conftest.s
25683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25690 gcc_cv_as_powerpc_power8
=yes
25692 echo "configure: failed program was" >&5
25695 rm -f conftest.o conftest.s
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25699 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25700 if test $gcc_cv_as_powerpc_power8 = yes; then
25702 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25707 *-*-aix*) conftest_s
=' .csect .text[PR]
25709 *) conftest_s
=' .text
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25714 $as_echo_n "checking assembler for lwsync support... " >&6; }
25715 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25716 $as_echo_n "(cached) " >&6
25718 gcc_cv_as_powerpc_lwsync
=no
25719 if test $in_tree_gas = yes; then
25720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25721 then gcc_cv_as_powerpc_lwsync
=yes
25723 elif test x
$gcc_cv_as != x
; then
25724 $as_echo "$conftest_s" > conftest.s
25725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25732 gcc_cv_as_powerpc_lwsync
=yes
25734 echo "configure: failed program was" >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25741 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25742 if test $gcc_cv_as_powerpc_lwsync = yes; then
25744 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25749 *-*-aix*) conftest_s
=' .machine "476"
25752 *) conftest_s
=' .machine "476"
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25758 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25759 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25760 $as_echo_n "(cached) " >&6
25762 gcc_cv_as_powerpc_dci
=no
25763 if test $in_tree_gas = yes; then
25764 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25765 then gcc_cv_as_powerpc_dci
=yes
25767 elif test x
$gcc_cv_as != x
; then
25768 $as_echo "$conftest_s" > conftest.s
25769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25771 (eval $ac_try) 2>&5
25773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25774 test $ac_status = 0; }; }
25776 gcc_cv_as_powerpc_dci
=yes
25778 echo "configure: failed program was" >&5
25781 rm -f conftest.o conftest.s
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25785 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25786 if test $gcc_cv_as_powerpc_dci = yes; then
25788 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25793 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25794 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25795 $as_echo_n "(cached) " >&6
25797 gcc_cv_as_powerpc_gnu_attribute
=no
25798 if test $in_tree_gas = yes; then
25799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25800 then gcc_cv_as_powerpc_gnu_attribute
=yes
25802 elif test x
$gcc_cv_as != x
; then
25803 $as_echo '.gnu_attribute 4,1' > conftest.s
25804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25806 (eval $ac_try) 2>&5
25808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25809 test $ac_status = 0; }; }
25811 gcc_cv_as_powerpc_gnu_attribute
=yes
25813 echo "configure: failed program was" >&5
25816 rm -f conftest.o conftest.s
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25820 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25821 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25823 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25828 $as_echo_n "checking assembler for tls marker support... " >&6; }
25829 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25832 gcc_cv_as_powerpc_tls_markers
=no
25833 if test $in_tree_gas = yes; then
25834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25835 then gcc_cv_as_powerpc_tls_markers
=yes
25837 elif test x
$gcc_cv_as != x
; then
25838 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25846 gcc_cv_as_powerpc_tls_markers
=yes
25848 echo "configure: failed program was" >&5
25851 rm -f conftest.o conftest.s
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25855 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25856 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25858 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25865 $as_echo_n "checking assembler for .ref support... " >&6; }
25866 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25869 gcc_cv_as_aix_ref
=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25872 then gcc_cv_as_aix_ref
=yes
25874 elif test x
$gcc_cv_as != x
; then
25875 $as_echo ' .csect stuff[rw]
25881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25888 gcc_cv_as_aix_ref
=yes
25890 echo "configure: failed program was" >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25897 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25898 if test $gcc_cv_as_aix_ref = yes; then
25900 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25909 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25910 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25913 gcc_cv_as_mips_explicit_relocs
=no
25914 if test $in_tree_gas = yes; then
25915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25916 then gcc_cv_as_mips_explicit_relocs
=yes
25918 elif test x
$gcc_cv_as != x
; then
25919 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25927 gcc_cv_as_mips_explicit_relocs
=yes
25929 echo "configure: failed program was" >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25936 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25937 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25938 if test x
$target_cpu_default = x
25939 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25940 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25944 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25945 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25946 $as_echo_n "(cached) " >&6
25948 gcc_cv_as_mips_no_shared
=no
25949 if test $in_tree_gas = yes; then
25950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25951 then gcc_cv_as_mips_no_shared
=yes
25953 elif test x
$gcc_cv_as != x
; then
25954 $as_echo 'nop' > conftest.s
25955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25962 gcc_cv_as_mips_no_shared
=yes
25964 echo "configure: failed program was" >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25971 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25972 if test $gcc_cv_as_mips_no_shared = yes; then
25974 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25979 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25980 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25983 gcc_cv_as_mips_gnu_attribute
=no
25984 if test $in_tree_gas = yes; then
25985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25986 then gcc_cv_as_mips_gnu_attribute
=yes
25988 elif test x
$gcc_cv_as != x
; then
25989 $as_echo '.gnu_attribute 4,1' > conftest.s
25990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992 (eval $ac_try) 2>&5
25994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995 test $ac_status = 0; }; }
25997 gcc_cv_as_mips_gnu_attribute
=yes
25999 echo "configure: failed program was" >&5
26002 rm -f conftest.o conftest.s
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26006 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26007 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26009 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26014 $as_echo_n "checking assembler for .micromips support... " >&6; }
26015 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26016 $as_echo_n "(cached) " >&6
26018 gcc_cv_as_micromips_support
=no
26019 if test x
$gcc_cv_as != x
; then
26020 $as_echo '.set micromips' > conftest.s
26021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26023 (eval $ac_try) 2>&5
26025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26026 test $ac_status = 0; }; }
26028 gcc_cv_as_micromips_support
=yes
26030 echo "configure: failed program was" >&5
26033 rm -f conftest.o conftest.s
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26037 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26038 if test $gcc_cv_as_micromips_support = yes; then
26040 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26045 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26046 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26047 $as_echo_n "(cached) " >&6
26049 gcc_cv_as_mips_dtprelword
=no
26050 if test $in_tree_gas = yes; then
26051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26052 then gcc_cv_as_mips_dtprelword
=yes
26054 elif test x
$gcc_cv_as != x
; then
26055 $as_echo '.section .tdata,"awT",@progbits
26059 .dtprelword x+0x8000' > conftest.s
26060 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26062 (eval $ac_try) 2>&5
26064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26065 test $ac_status = 0; }; }
26067 gcc_cv_as_mips_dtprelword
=yes
26069 echo "configure: failed program was" >&5
26072 rm -f conftest.o conftest.s
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26076 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26077 if test $gcc_cv_as_mips_dtprelword = yes; then
26079 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26084 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26085 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26086 $as_echo_n "(cached) " >&6
26088 gcc_cv_as_mips_dspr1_mult
=no
26089 if test x
$gcc_cv_as != x
; then
26090 $as_echo ' .set mips32r2
26098 multu $ac3,$4,$5' > conftest.s
26099 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26101 (eval $ac_try) 2>&5
26103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26104 test $ac_status = 0; }; }
26106 gcc_cv_as_mips_dspr1_mult
=yes
26108 echo "configure: failed program was" >&5
26111 rm -f conftest.o conftest.s
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26115 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26116 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26118 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26123 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26124 gcc_cv_as_ld_jalr_reloc
=no
26125 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26126 if test $in_tree_ld = yes ; then
26127 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 \
26128 && test $in_tree_ld_is_elf = yes; then
26129 gcc_cv_as_ld_jalr_reloc
=yes
26131 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26132 echo ' .ent x' > conftest.s
26133 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26134 echo ' ld $25,%call16(y)($28)' >> conftest.s
26135 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26136 echo '1: jalr $25' >> conftest.s
26137 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26138 echo '1: jalr $25' >> conftest.s
26139 echo ' .end x' >> conftest.s
26140 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26141 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26142 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26143 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26144 gcc_cv_as_ld_jalr_reloc
=yes
26150 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26151 if test x
$target_cpu_default = x
; then
26152 target_cpu_default
=MASK_RELAX_PIC_CALLS
26154 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26158 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26161 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26162 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26163 $as_echo_n "(cached) " >&6
26165 gcc_cv_ld_mips_personality_relaxation
=no
26166 if test $in_tree_ld = yes ; then
26167 if test "$gcc_cv_gld_major_version" -eq 2 \
26168 -a "$gcc_cv_gld_minor_version" -ge 21 \
26169 -o "$gcc_cv_gld_major_version" -gt 2; then
26170 gcc_cv_ld_mips_personality_relaxation
=yes
26172 elif test x
$gcc_cv_as != x \
26173 -a x
$gcc_cv_ld != x \
26174 -a x
$gcc_cv_readelf != x
; then
26175 cat > conftest.s
<<EOF
26177 .cfi_personality 0x80,indirect_ptr
26184 .section .data,"aw",@progbits
26188 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26189 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26190 if $gcc_cv_readelf -d conftest
2>&1 \
26191 |
grep TEXTREL
> /dev
/null
2>&1; then
26193 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26194 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26197 gcc_cv_ld_mips_personality_relaxation
=yes
26201 rm -f conftest.s conftest.o conftest
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26204 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26205 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26207 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26212 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26213 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26214 $as_echo_n "(cached) " >&6
26216 gcc_cv_as_mips_nan
=no
26217 if test x
$gcc_cv_as != x
; then
26218 $as_echo '' > conftest.s
26219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26221 (eval $ac_try) 2>&5
26223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26224 test $ac_status = 0; }; }
26226 gcc_cv_as_mips_nan
=yes
26228 echo "configure: failed program was" >&5
26231 rm -f conftest.o conftest.s
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26235 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26236 if test $gcc_cv_as_mips_nan = yes; then
26238 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26241 if test x
$gcc_cv_as_mips_nan = xno \
26242 && test x
$with_nan != x
; then
26243 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26248 # Mips and HP-UX need the GNU assembler.
26249 # Linux on IA64 might be able to use the Intel assembler.
26252 mips
*-*-* |
*-*-hpux* )
26253 if test x
$gas_flag = xyes \
26254 ||
test x
"$host" != x
"$build" \
26255 ||
test ! -x "$gcc_cv_as" \
26256 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26259 echo "*** This configuration requires the GNU assembler" >&2
26265 # ??? Not all targets support dwarf2 debug_line, even within a version
26266 # of gas. Moreover, we need to emit a valid instruction to trigger any
26267 # info to the output file. So, as supported targets are added to gas 2.11,
26268 # add some instruction here to (also) show we expect this might work.
26269 # ??? Once 2.11 is released, probably need to add first known working
26270 # version to the per-target configury.
26271 case "$cpu_type" in
26272 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26273 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26274 | xstormy16 | xtensa
)
26284 if test x
"$insn" != x
; then
26286 .file 1 \"conftest.s\"
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26290 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26291 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26294 gcc_cv_as_dwarf2_debug_line
=no
26295 if test $in_tree_gas = yes; then
26296 if test $in_tree_gas_is_elf = yes \
26297 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26298 then gcc_cv_as_dwarf2_debug_line
=yes
26300 elif test x
$gcc_cv_as != x
; then
26301 $as_echo "$conftest_s" > conftest.s
26302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; }
26309 if test x
$gcc_cv_objdump != x \
26310 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26311 |
grep debug_line
> /dev
/null
2>&1; then
26312 gcc_cv_as_dwarf2_debug_line
=yes
26315 echo "configure: failed program was" >&5
26318 rm -f conftest.o conftest.s
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26322 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26325 # The .debug_line file table must be in the exact order that
26326 # we specified the files, since these indices are also used
26327 # by DW_AT_decl_file. Approximate this test by testing if
26328 # the assembler bitches if the same index is assigned twice.
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26330 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26331 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26332 $as_echo_n "(cached) " >&6
26334 gcc_cv_as_dwarf2_file_buggy
=no
26335 if test x
$gcc_cv_as != x
; then
26336 $as_echo ' .file 1 "foo.s"
26337 .file 1 "bar.s"' > conftest.s
26338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26340 (eval $ac_try) 2>&5
26342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26343 test $ac_status = 0; }; }
26345 gcc_cv_as_dwarf2_file_buggy
=yes
26347 echo "configure: failed program was" >&5
26350 rm -f conftest.o conftest.s
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26354 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26357 if test $gcc_cv_as_dwarf2_debug_line = yes \
26358 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26360 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26365 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26366 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26367 $as_echo_n "(cached) " >&6
26369 gcc_cv_as_gdwarf2_flag
=no
26370 if test $in_tree_gas = yes; then
26371 if test $in_tree_gas_is_elf = yes \
26372 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26373 then gcc_cv_as_gdwarf2_flag
=yes
26375 elif test x
$gcc_cv_as != x
; then
26376 $as_echo "$insn" > conftest.s
26377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26379 (eval $ac_try) 2>&5
26381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26382 test $ac_status = 0; }; }
26384 gcc_cv_as_gdwarf2_flag
=yes
26386 echo "configure: failed program was" >&5
26389 rm -f conftest.o conftest.s
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26393 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26394 if test $gcc_cv_as_gdwarf2_flag = yes; then
26396 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26401 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26402 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26403 $as_echo_n "(cached) " >&6
26405 gcc_cv_as_gstabs_flag
=no
26406 if test $in_tree_gas = yes; then
26407 if test $in_tree_gas_is_elf = yes \
26408 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26409 then gcc_cv_as_gstabs_flag
=yes
26411 elif test x
$gcc_cv_as != x
; then
26412 $as_echo "$insn" > conftest.s
26413 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26415 (eval $ac_try) 2>&5
26417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26418 test $ac_status = 0; }; }
26420 gcc_cv_as_gstabs_flag
=yes
26422 echo "configure: failed program was" >&5
26425 rm -f conftest.o conftest.s
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26429 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26430 if test $gcc_cv_as_gstabs_flag = yes; then
26432 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26437 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26438 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26439 $as_echo_n "(cached) " >&6
26441 gcc_cv_as_debug_prefix_map_flag
=no
26442 if test $in_tree_gas = yes; then
26443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26444 then gcc_cv_as_debug_prefix_map_flag
=yes
26446 elif test x
$gcc_cv_as != x
; then
26447 $as_echo "$insn" > conftest.s
26448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26450 (eval $ac_try) 2>&5
26452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26453 test $ac_status = 0; }; }
26455 gcc_cv_as_debug_prefix_map_flag
=yes
26457 echo "configure: failed program was" >&5
26460 rm -f conftest.o conftest.s
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26464 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26465 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26467 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26473 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26474 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26475 $as_echo_n "(cached) " >&6
26477 gcc_cv_as_lcomm_with_alignment
=no
26478 if test x
$gcc_cv_as != x
; then
26479 $as_echo '.lcomm bar,4,16' > conftest.s
26480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26482 (eval $ac_try) 2>&5
26484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26485 test $ac_status = 0; }; }
26487 gcc_cv_as_lcomm_with_alignment
=yes
26489 echo "configure: failed program was" >&5
26492 rm -f conftest.o conftest.s
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26496 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26497 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26499 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26503 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26504 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26505 && test "$prefix" != "NONE"; then
26507 cat >>confdefs.h
<<_ACEOF
26508 #define PREFIX_INCLUDE_DIR "$prefix/include"
26513 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26514 if test "x$with_headers" != x
; then
26515 target_header_dir
=$with_headers
26516 elif test "x$with_sysroot" = x
; then
26517 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26518 elif test "x$with_build_sysroot" != "x"; then
26519 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26520 elif test "x$with_sysroot" = xyes
; then
26521 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26523 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26526 target_header_dir
=${native_system_header_dir}
26529 # Determine the version of glibc, if any, used on the target.
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26531 $as_echo_n "checking for target glibc version... " >&6; }
26533 # Check whether --with-glibc-version was given.
26534 if test "${with_glibc_version+set}" = set; then :
26535 withval
=$with_glibc_version;
26536 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26537 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26538 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26540 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26544 glibc_version_major
=0
26545 glibc_version_minor
=0
26546 if test -f $target_header_dir/features.h \
26547 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26548 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26549 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26550 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26555 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26557 # Check whether --enable-gnu-unique-object was given.
26558 if test "${enable_gnu_unique_object+set}" = set; then :
26559 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26561 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26562 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26566 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26567 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26568 $as_echo_n "(cached) " >&6
26570 gcc_cv_as_gnu_unique_object
=no
26571 if test $in_tree_gas = yes; then
26572 if test $in_tree_gas_is_elf = yes \
26573 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26574 then gcc_cv_as_gnu_unique_object
=yes
26576 elif test x
$gcc_cv_as != x
; then
26577 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26578 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26580 (eval $ac_try) 2>&5
26582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26583 test $ac_status = 0; }; }
26585 gcc_cv_as_gnu_unique_object
=yes
26587 echo "configure: failed program was" >&5
26590 rm -f conftest.o conftest.s
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26594 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26595 if test $gcc_cv_as_gnu_unique_object = yes; then
26596 # We need to unquote above to to use the definition from config.gcc.
26597 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26599 if test $glibc_version_major -gt 2 \
26600 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26601 enable_gnu_unique_object
=yes
26607 if test x
$enable_gnu_unique_object = xyes
; then
26609 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26614 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26615 if test "${gcc_cv_as_line_zero+set}" = set; then :
26616 $as_echo_n "(cached) " >&6
26618 gcc_cv_as_line_zero
=no
26619 if test $in_tree_gas = yes; then
26620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26621 then gcc_cv_as_line_zero
=yes
26623 elif test "x$gcc_cv_as" != x
; then
26624 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26625 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; } &&
26631 test "x`cat conftest.out`" = x
26633 gcc_cv_as_line_zero
=yes
26635 echo "configure: failed program was" >&5
26637 echo "configure: error output was" >&5
26638 cat conftest.out
>&5
26640 rm -f conftest.o conftest.s conftest.out
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26644 $as_echo "$gcc_cv_as_line_zero" >&6; }
26645 if test "x$gcc_cv_as_line_zero" = xyes
; then
26647 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26652 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26653 gcc_cv_ld_eh_frame_hdr
=no
26654 if test $in_tree_ld = yes ; then
26655 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 \
26656 && test $in_tree_ld_is_elf = yes; then
26657 gcc_cv_ld_eh_frame_hdr
=yes
26659 elif test x
$gcc_cv_ld != x
; then
26660 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26661 # Check if linker supports --eh-frame-hdr option
26662 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26663 gcc_cv_ld_eh_frame_hdr
=yes
26668 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26669 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26670 gcc_cv_ld_eh_frame_hdr
=yes
26677 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26679 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26683 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26686 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26687 gcc_cv_ld_eh_frame_ciev3
=no
26688 if test $in_tree_ld = yes ; then
26689 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 \
26690 && test $in_tree_ld_is_elf = yes; then
26691 gcc_cv_ld_eh_frame_ciev3
=yes
26693 elif test x
$gcc_cv_ld != x
; then
26694 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26695 gcc_cv_ld_eh_frame_ciev3
=yes
26696 if test 0"$ld_date" -lt 20040513; then
26697 if test -n "$ld_date"; then
26698 # If there was date string, but was earlier than 2004-05-13, fail
26699 gcc_cv_ld_eh_frame_ciev3
=no
26700 elif test "$ld_vers_major" -lt 2; then
26701 gcc_cv_ld_eh_frame_ciev3
=no
26702 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26703 gcc_cv_ld_eh_frame_ciev3
=no
26709 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26710 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26711 gcc_cv_ld_eh_frame_ciev3
=yes
26718 cat >>confdefs.h
<<_ACEOF
26719 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26723 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26726 $as_echo_n "checking linker position independent executable support... " >&6; }
26728 if test $in_tree_ld = yes ; then
26729 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 \
26730 && test $in_tree_ld_is_elf = yes; then
26733 elif test x
$gcc_cv_ld != x
; then
26734 # Check if linker supports -pie option
26735 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26739 if test x
"$gcc_cv_ld_pie" = xyes
; then
26741 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26745 $as_echo "$gcc_cv_ld_pie" >&6; }
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26748 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26749 gcc_cv_ld_eh_gc_sections
=no
26750 if test $in_tree_ld = yes ; then
26751 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 \
26752 && test $in_tree_ld_is_elf = yes; then
26753 gcc_cv_ld_eh_gc_sections
=yes
26755 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26756 cat > conftest.s
<<EOF
26759 .type _start, @function
26762 .size _start, .-_start
26763 .section .text.foo,"ax",@progbits
26764 .type foo, @function
26768 .section .gcc_except_table.foo,"a",@progbits
26771 .section .eh_frame,"a",@progbits
26774 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26775 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26776 |
grep "gc-sections option ignored" > /dev
/null
; then
26777 gcc_cv_ld_eh_gc_sections
=no
26778 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26779 |
grep gcc_except_table
> /dev
/null
; then
26780 gcc_cv_ld_eh_gc_sections
=yes
26781 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26782 if test x
$gcc_cv_as_comdat_group != xyes
; then
26783 gcc_cv_ld_eh_gc_sections
=no
26784 cat > conftest.s
<<EOF
26787 .type _start, @function
26790 .size _start, .-_start
26791 .section .gnu.linkonce.t.foo,"ax",@progbits
26792 .type foo, @function
26796 .section .gcc_except_table.foo,"a",@progbits
26799 .section .eh_frame,"a",@progbits
26802 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26803 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26804 |
grep "gc-sections option ignored" > /dev
/null
; then
26805 gcc_cv_ld_eh_gc_sections
=no
26806 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26807 |
grep gcc_except_table
> /dev
/null
; then
26808 gcc_cv_ld_eh_gc_sections
=yes
26814 rm -f conftest.s conftest.o conftest
26818 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26819 gcc_cv_ld_eh_gc_sections
=no
26822 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26824 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26828 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26831 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26832 gcc_cv_ld_eh_gc_sections_bug
=no
26833 if test $in_tree_ld = yes ; then
26834 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26835 && test $in_tree_ld_is_elf = yes; then
26836 gcc_cv_ld_eh_gc_sections_bug
=yes
26838 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
-a x
$gcc_cv_as_comdat_group = xyes
; then
26839 gcc_cv_ld_eh_gc_sections_bug
=yes
26840 cat > conftest.s
<<EOF
26843 .type _start, @function
26846 .size _start, .-_start
26847 .section .text.startup.foo,"ax",@progbits
26848 .type foo, @function
26852 .section .gcc_except_table.foo,"a",@progbits
26855 .section .eh_frame,"a",@progbits
26858 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26859 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26860 |
grep "gc-sections option ignored" > /dev
/null
; then
26862 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26863 |
grep gcc_except_table
> /dev
/null
; then
26864 gcc_cv_ld_eh_gc_sections_bug
=no
26867 rm -f conftest.s conftest.o conftest
26869 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26871 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26875 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26882 $as_echo_n "checking linker --as-needed support... " >&6; }
26883 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26884 $as_echo_n "(cached) " >&6
26886 gcc_cv_ld_as_needed
=no
26887 gcc_cv_ld_as_needed_option
='--as-needed'
26888 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26889 if test $in_tree_ld = yes ; then
26890 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 \
26891 && test $in_tree_ld_is_elf = yes; then
26892 gcc_cv_ld_as_needed
=yes
26894 elif test x
$gcc_cv_ld != x
; then
26895 # Check if linker supports --as-needed and --no-as-needed options
26896 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26897 gcc_cv_ld_as_needed
=yes
26900 # Solaris 2 ld always supports -z ignore/-z record.
26902 gcc_cv_ld_as_needed
=yes
26903 gcc_cv_ld_as_needed_option
="-z ignore"
26904 gcc_cv_ld_no_as_needed_option
="-z record"
26909 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26910 # dl_iterate_phdr, i.e. since Solaris 11.
26912 *-*-solaris2.1
[1-9]*)
26914 i?
86-*-* | x86_64-
*-*)
26915 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26916 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26917 gcc_cv_ld_as_needed
=no
26923 gcc_cv_ld_as_needed
=no
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26929 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26930 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26932 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26935 cat >>confdefs.h
<<_ACEOF
26936 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26940 cat >>confdefs.h
<<_ACEOF
26941 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26946 case "$target:$tm_file" in
26947 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26950 emul_name
="-melf64lppc"
26953 emul_name
="-melf64ppc"
26956 emul_name
="-melf64ppc_fbsd"
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26960 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26961 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26962 $as_echo_n "(cached) " >&6
26964 gcc_cv_ld_no_dot_syms
=no
26965 if test x
"$ld_is_gold" = xyes
; then
26966 gcc_cv_ld_no_dot_syms
=yes
26967 elif test $in_tree_ld = yes ; then
26968 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
26969 gcc_cv_ld_no_dot_syms
=yes
26971 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26972 cat > conftest1.s
<<EOF
26976 cat > conftest2.s
<<EOF
26977 .section ".opd","aw"
26980 .type foo,@function
26982 .quad .LEfoo,.TOC.@tocbase,0
26988 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26989 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26990 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26991 gcc_cv_ld_no_dot_syms
=yes
26993 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26998 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26999 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27001 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27006 $as_echo_n "checking linker large toc support... " >&6; }
27007 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27008 $as_echo_n "(cached) " >&6
27010 gcc_cv_ld_large_toc
=no
27011 if test x
"$ld_is_gold" = xyes
; then
27012 gcc_cv_ld_large_toc
=yes
27013 elif test $in_tree_ld = yes ; then
27014 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
27015 gcc_cv_ld_large_toc
=yes
27017 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27018 cat > conftest.s
<<EOF
27019 .section ".tbss","awT",@nobits
27025 addis 9,13,ie0@got@tprel@ha
27026 ld 9,ie0@got@tprel@l(9)
27028 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27029 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27030 gcc_cv_ld_large_toc
=yes
27032 rm -f conftest conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27037 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27038 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27040 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27049 $as_echo_n "checking linker large toc support... " >&6; }
27050 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27051 $as_echo_n "(cached) " >&6
27053 gcc_cv_ld_large_toc
=no
27054 if test x
$gcc_cv_as != x
; then
27055 cat > conftest.s
<<EOF
27065 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27066 gcc_cv_ld_large_toc
=yes
27068 rm -f conftest conftest.o conftest.s
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27073 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27074 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27076 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27083 $as_echo_n "checking linker --build-id support... " >&6; }
27084 if test "${gcc_cv_ld_buildid+set}" = set; then :
27085 $as_echo_n "(cached) " >&6
27087 gcc_cv_ld_buildid
=no
27088 if test $in_tree_ld = yes ; then
27089 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27090 "$gcc_cv_gld_minor_version" -ge 18 -o \
27091 "$gcc_cv_gld_major_version" -gt 2 \
27092 && test $in_tree_ld_is_elf = yes; then
27093 gcc_cv_ld_buildid
=yes
27095 elif test x
$gcc_cv_ld != x
; then
27096 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27097 gcc_cv_ld_buildid
=yes
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27102 $as_echo "$gcc_cv_ld_buildid" >&6; }
27103 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27105 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27109 # Check whether --enable-linker-build-id was given.
27110 if test "${enable_linker_build_id+set}" = set; then :
27111 enableval
=$enable_linker_build_id;
27113 enable_linker_build_id
=no
27117 if test x
"$enable_linker_build_id" = xyes
; then
27118 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27120 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27124 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27128 # In binutils 2.21, GNU ld gained support for new emulations fully
27129 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27131 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27132 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27133 $as_echo_n "(cached) " >&6
27135 gcc_cv_ld_sol2_emulation
=no
27136 if test $in_tree_ld = yes ; then
27137 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27138 "$gcc_cv_gld_minor_version" -ge 21 -o \
27139 "$gcc_cv_gld_major_version" -gt 2 \
27140 && test $in_tree_ld_is_elf = yes; then
27141 gcc_cv_ld_sol2_emulation
=yes
27143 elif test x
$gcc_cv_ld != x
; then
27144 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27145 grep _sol2
> /dev
/null
; then
27146 gcc_cv_ld_sol2_emulation
=yes
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27151 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27152 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27154 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27159 $as_echo_n "checking linker --sysroot support... " >&6; }
27160 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27161 $as_echo_n "(cached) " >&6
27163 gcc_cv_ld_sysroot
=no
27164 if test $in_tree_ld = yes ; then
27165 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
27166 gcc_cv_ld_sysroot
=yes
27168 elif test x
$gcc_cv_ld != x
; then
27169 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27170 gcc_cv_ld_sysroot
=yes
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27175 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27176 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27178 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27182 # Test for stack protector support in target C library.
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27184 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27185 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27186 $as_echo_n "(cached) " >&6
27188 gcc_cv_libc_provides_ssp
=no
27190 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27191 # glibc 2.4 and later provides __stack_chk_fail and
27192 # either __stack_chk_guard, or TLS access to stack guard canary.
27194 if test $glibc_version_major -gt 2 \
27195 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27196 gcc_cv_libc_provides_ssp
=yes
27199 if test -f $target_header_dir/features.h \
27200 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27201 $target_header_dir/features.h
> /dev
/null
; then
27202 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27203 $target_header_dir/features.h
> /dev
/null
&& \
27204 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27205 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27206 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27207 gcc_cv_libc_provides_ssp
=yes
27209 # all versions of Bionic support stack protector
27210 elif test -f $target_header_dir/sys
/cdefs.h \
27211 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27212 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27213 gcc_cv_libc_provides_ssp
=yes
27218 # Avoid complicated tests (see
27219 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27220 # simply assert that glibc does provide this, which is true for all
27221 # realistically usable GNU/Hurd configurations.
27222 gcc_cv_libc_provides_ssp
=yes;;
27223 *-*-darwin* |
*-*-freebsd*)
27224 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27225 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27226 gcc_cv_libc_provides_ssp
=yes
27228 echo "no __stack_chk_fail on this target"
27232 *) gcc_cv_libc_provides_ssp
=no
;;
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27236 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27238 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27240 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27244 # Test for <sys/sdt.h> on the target.
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27247 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27249 if test -f $target_header_dir/sys
/sdt.h
; then
27252 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27256 $as_echo "$have_sys_sdt_h" >&6; }
27258 # Check if TFmode long double should be used by default or not.
27259 # Some glibc targets used DFmode long double, but with glibc 2.4
27260 # and later they can use TFmode.
27262 powerpc
*-*-linux* | \
27263 sparc
*-*-linux* | \
27267 # Check whether --with-long-double-128 was given.
27268 if test "${with_long_double_128+set}" = set; then :
27269 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27272 if test $glibc_version_major -gt 2 \
27273 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27274 gcc_cv_target_ldbl128
=yes
27277 gcc_cv_target_ldbl128
=no
27278 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27279 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27280 && gcc_cv_target_ldbl128
=yes
27287 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27289 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27294 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27295 gcc_cv_target_dl_iterate_phdr
=unknown
27297 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27298 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27299 # libdl there, both complicating its use and breaking compatibility
27300 # between Solaris 10 updates.
27301 *-*-solaris2.1
[1-9]*)
27302 # <link.h> needs both a dl_iterate_phdr declaration and support for
27303 # compilation with largefile support.
27304 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27305 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27306 gcc_cv_target_dl_iterate_phdr
=yes
27308 gcc_cv_target_dl_iterate_phdr
=no
27313 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27315 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27319 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27321 # We no longer support different GC mechanisms. Emit an error if
27322 # the user configures with --with-gc.
27324 # Check whether --with-gc was given.
27325 if test "${with_gc+set}" = set; then :
27326 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27330 # Libraries to use on the host. This will normally be set by the top
27331 # level Makefile. Here we simply capture the value for our Makefile.
27332 if test -z "${HOST_LIBS+set}"; then
27337 # Use the system's zlib library.
27339 zlibinc
="-I\$(srcdir)/../zlib"
27341 # Check whether --with-system-zlib was given.
27342 if test "${with_system_zlib+set}" = set; then :
27343 withval
=$with_system_zlib; zlibdir
=
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27353 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27354 # Check whether --enable-maintainer-mode was given.
27355 if test "${enable_maintainer_mode+set}" = set; then :
27356 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27363 $as_echo "$maintainer_mode" >&6; }
27365 if test "$maintainer_mode" = "yes"; then
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27373 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27374 # Check whether --enable-link-mutex was given.
27375 if test "${enable_link_mutex+set}" = set; then :
27376 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27382 $as_echo "$do_link_mutex" >&6; }
27384 if test "$do_link_mutex" = "yes"; then
27387 DO_LINK_MUTEX
=false
27395 # Make empty files to contain the specs and options for each language.
27396 # Then add #include lines to for a compiler that has specs and/or options.
27402 # These (without "all_") are set in each config-lang.in.
27403 # `language' must be a single word so is spelled singularly.
27406 all_outputs
='Makefile'
27407 # List of language makefile fragments.
27408 all_lang_makefrags
=
27409 # Additional files for gengtype
27410 all_gtfiles
="$target_gtfiles"
27412 # These are the languages that are set in --enable-languages,
27413 # and are available in the GCC tree.
27414 all_selected_languages
=
27416 # Add the language fragments.
27417 # Languages are added via two mechanisms. Some information must be
27418 # recorded in makefile variables, these are defined in config-lang.in.
27419 # We accumulate them and plug them into the main Makefile.
27420 # The other mechanism is a set of hooks for each of the main targets
27421 # like `clean', `install', etc.
27423 language_hooks
="Make-hooks"
27425 for lang
in ${srcdir}/*/config-lang.
in
27427 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27429 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27430 if test "x$lang_alias" = x
27432 echo "$lang doesn't set \$language." 1>&2
27435 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27436 subdirs
="$subdirs $subdir"
27438 # $gcc_subdir is where the gcc integration files are to be found
27439 # for a language, both for internal compiler purposes (compiler
27440 # sources implementing front-end to GCC tree converters), and for
27441 # build infrastructure purposes (Make-lang.in, etc.)
27443 # This will be <subdir> (relative to $srcdir) if a line like
27444 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27445 # is found in <langdir>/config-lang.in, and will remain <langdir>
27448 # Except for the language alias (fetched above), the regular
27449 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27450 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27451 # only this and the language alias.
27453 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27454 if [ "$gcc_subdir" = "" ]; then
27455 gcc_subdir
="$subdir"
27458 case ",$enable_languages," in
27460 all_selected_languages
="$all_selected_languages $lang_alias"
27461 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27462 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27473 .
${srcdir}/$gcc_subdir/config-lang.
in
27474 if test "x$language" = x
27476 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27481 case ",$enable_languages," in
27482 *,$lang_alias,*) ;;
27484 for i
in $subdir_requires; do
27485 test -f "${srcdir}/$i/config-lang.in" && continue
27493 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27494 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27495 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27496 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27498 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27499 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27501 all_languages
="$all_languages $language"
27502 all_compilers
="$all_compilers $compilers"
27503 all_outputs
="$all_outputs $outputs"
27504 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27505 case ",$enable_languages," in
27508 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27518 for language
in $all_selected_languages
27520 check_languages
="$check_languages check-$language"
27523 # We link each language in with a set of hooks, reached indirectly via
27524 # lang.${target}. Only do so for selected languages.
27528 target_list
="all.cross start.encap rest.encap tags \
27529 install-common install-man install-info install-pdf install-html dvi \
27530 pdf html uninstall info man srcextra srcman srcinfo \
27531 mostlyclean clean distclean maintainer-clean install-plugin"
27533 for t
in $target_list
27536 for lang
in $all_selected_languages
27540 echo "lang.$t: $x" >> Make-hooks
27544 # Option include files
27547 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27548 option_includes
="option-includes.mk"
27557 echo "dir ." > .gdbinit
27558 echo "dir ${srcdir}" >> .gdbinit
27559 if test x
$gdb_needs_out_file_path = xyes
27561 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27563 if test "x$subdirs" != x
; then
27566 echo "dir ${srcdir}/$s" >> .gdbinit
27569 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27570 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27572 # Put a breakpoint on __asan_report_error to help with debugging buffer
27575 *-fsanitize=address
*)
27576 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27580 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27584 # Find a directory in which to install a shared libgcc.
27586 # Check whether --enable-version-specific-runtime-libs was given.
27587 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27588 enableval
=$enable_version_specific_runtime_libs;
27592 # Substitute configuration variables
27656 if test x
${build} = x
${host} ; then
27657 if test x
${host} = x
${target} ; then
27658 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27660 echo "Links are now set up to build a cross-compiler" 1>&2
27661 echo " from ${host} to ${target}." 1>&2
27664 if test x
${host} = x
${target} ; then
27665 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27666 echo " for ${target}." 1>&2
27668 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27669 echo " from ${host} to ${target}." 1>&2
27681 if test "x${CLOOGLIBS}" != "x" ; then
27683 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27687 # Check for plugin support
27688 # Check whether --enable-plugin was given.
27689 if test "${enable_plugin+set}" = set; then :
27690 enableval
=$enable_plugin; enable_plugin
=$enableval
27692 enable_plugin
=yes; default_plugin
=yes
27700 if test x
$build = x
$host; then
27701 export_sym_check
="nm${exeext} -g"
27702 elif test x
$host = x
$target; then
27703 export_sym_check
="$gcc_cv_nm -g"
27709 if test x
$build = x
$host; then
27710 export_sym_check
="objdump${exeext} -T"
27711 elif test x
$host = x
$target; then
27712 export_sym_check
="$gcc_cv_objdump -T"
27719 if test x
"$enable_plugin" = x
"yes"; then
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27722 $as_echo_n "checking for exported symbols... " >&6; }
27723 if test "x$export_sym_check" != x
; then
27724 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27725 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27726 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27727 : # No need to use a flag
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27729 $as_echo "yes" >&6; }
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27732 $as_echo "yes" >&6; }
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27734 $as_echo_n "checking for -rdynamic... " >&6; }
27735 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27736 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27737 plugin_rdynamic
=yes
27738 pluginlibs
="-rdynamic"
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27744 $as_echo "$plugin_rdynamic" >&6; }
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27748 $as_echo "unable to check" >&6; }
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27754 $as_echo_n "checking for library containing dlopen... " >&6; }
27755 if test "${ac_cv_search_dlopen+set}" = set; then :
27756 $as_echo_n "(cached) " >&6
27758 ac_func_search_save_LIBS
=$LIBS
27759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27760 /* end confdefs.h. */
27762 /* Override any GCC internal prototype to avoid an error.
27763 Use char because int might match the return type of a GCC
27764 builtin and then its argument prototype would still apply. */
27777 for ac_lib
in '' dl
; do
27778 if test -z "$ac_lib"; then
27779 ac_res
="none required"
27782 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27784 if ac_fn_c_try_link
"$LINENO"; then :
27785 ac_cv_search_dlopen
=$ac_res
27787 rm -f core conftest.err conftest.
$ac_objext \
27789 if test "${ac_cv_search_dlopen+set}" = set; then :
27793 if test "${ac_cv_search_dlopen+set}" = set; then :
27796 ac_cv_search_dlopen
=no
27798 rm conftest.
$ac_ext
27799 LIBS
=$ac_func_search_save_LIBS
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27802 $as_echo "$ac_cv_search_dlopen" >&6; }
27803 ac_res
=$ac_cv_search_dlopen
27804 if test "$ac_res" != no
; then :
27805 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27809 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27810 pluginlibs
="$pluginlibs -ldl"
27814 # Check that we can build shared objects with -fPIC -shared
27815 saved_LDFLAGS
="$LDFLAGS"
27816 saved_CFLAGS
="$CFLAGS"
27819 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27820 CFLAGS
="$CFLAGS -fPIC"
27821 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27824 CFLAGS
="$CFLAGS -fPIC"
27825 LDFLAGS
="$LDFLAGS -fPIC -shared"
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27829 $as_echo_n "checking for -fPIC -shared... " >&6; }
27830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h. */
27841 if ac_fn_c_try_link
"$LINENO"; then :
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27843 $as_echo "yes" >&6; }; have_pic_shared
=yes
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27846 $as_echo "no" >&6; }; have_pic_shared
=no
27848 rm -f core conftest.err conftest.
$ac_objext \
27849 conftest
$ac_exeext conftest.
$ac_ext
27850 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27854 LDFLAGS
="$saved_LDFLAGS"
27855 CFLAGS
="$saved_CFLAGS"
27857 # If plugin support had been requested but not available, fail.
27858 if test x
"$enable_plugin" = x
"no" ; then
27859 if test x
"$default_plugin" != x
"yes"; then
27861 Building GCC with plugin support requires a host that supports
27862 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27869 if test x
"$enable_plugin" = x
"yes"; then
27871 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27876 # Enable --enable-host-shared
27877 # Check whether --enable-host-shared was given.
27878 if test "${enable_host_shared+set}" = set; then :
27879 enableval
=$enable_host_shared; PICFLAG
=-fPIC
27888 # Check whether --enable-libquadmath-support was given.
27889 if test "${enable_libquadmath_support+set}" = set; then :
27890 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27892 ENABLE_LIBQUADMATH_SUPPORT
=yes
27895 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27897 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27902 # Specify what hash style to use by default.
27904 # Check whether --with-linker-hash-style was given.
27905 if test "${with_linker_hash_style+set}" = set; then :
27906 withval
=$with_linker_hash_style; case x
"$withval" in
27908 LINKER_HASH_STYLE
=sysv
27911 LINKER_HASH_STYLE
=gnu
27914 LINKER_HASH_STYLE
=both
27917 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27921 LINKER_HASH_STYLE
=''
27924 if test x
"${LINKER_HASH_STYLE}" != x
; then
27926 cat >>confdefs.h
<<_ACEOF
27927 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27932 # Configure the subdirectories
27933 # AC_CONFIG_SUBDIRS($subdirs)
27935 # Create the Makefile
27936 # and configure language subdirectories
27937 ac_config_files
="$ac_config_files $all_outputs"
27940 ac_config_commands
="$ac_config_commands default"
27942 cat >confcache
<<\_ACEOF
27943 # This file is a shell script that caches the results of configure
27944 # tests run on this system so they can be shared between configure
27945 # scripts and configure runs, see configure's option --config-cache.
27946 # It is not useful on other systems. If it contains results you don't
27947 # want to keep, you may remove or edit it.
27949 # config.status only pays attention to the cache file if you give it
27950 # the --recheck option to rerun configure.
27952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27954 # following values.
27958 # The following way of writing the cache mishandles newlines in values,
27959 # but we know of no workaround that is simple, portable, and efficient.
27960 # So, we kill variables containing newlines.
27961 # Ultrix sh set writes to stderr and can't be redirected directly,
27962 # and sets the high bit in the cache file unless we assign to the vars.
27964 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27965 eval ac_val
=\$
$ac_var
27969 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27973 _ | IFS | as_nl
) ;; #(
27974 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27975 *) { eval $ac_var=; unset $ac_var;} ;;
27981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27982 *${as_nl}ac_space
=\
*)
27983 # `set' does not quote correctly, so add quotes: double-quote
27984 # substitution turns \\\\ into \\, and sed turns \\ into \.
27987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27990 # `set' quotes correctly as required by POSIX, so do not add quotes.
27991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28004 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28005 if test -w "$cache_file"; then
28006 test "x$cache_file" != "x/dev/null" &&
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28008 $as_echo "$as_me: updating cache $cache_file" >&6;}
28009 cat confcache
>$cache_file
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28012 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28017 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28018 # Let make expand exec_prefix.
28019 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28021 DEFS
=-DHAVE_CONFIG_H
28025 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28026 # 1. Remove the extension, and $U if already installed.
28027 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28028 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28030 # will be set to the directory where LIBOBJS objects are built.
28031 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28032 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28034 LIBOBJS
=$ac_libobjs
28036 LTLIBOBJS
=$ac_ltlibobjs
28041 : ${CONFIG_STATUS=./config.status}
28043 ac_clean_files_save
=$ac_clean_files
28044 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28046 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28048 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28050 # Generated by $as_me.
28051 # Run this file to recreate the current configuration.
28052 # Compiler output produced by configure, useful for debugging
28053 # configure, is in config.log if it exists.
28056 ac_cs_recheck=false
28059 SHELL=\${CONFIG_SHELL-$SHELL}
28062 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28063 ## -------------------- ##
28064 ## M4sh Initialization. ##
28065 ## -------------------- ##
28067 # Be more Bourne compatible
28068 DUALCASE
=1; export DUALCASE
# for MKS sh
28069 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28073 # is contrary to our usage. Disable this feature.
28074 alias -g '${1+"$@"}'='"$@"'
28075 setopt NO_GLOB_SUBST
28077 case `(set -o) 2>/dev/null` in #(
28089 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28090 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28093 # Prefer a ksh shell builtin over an external printf program on Solaris,
28094 # but without wasting forks for bash or zsh.
28095 if test -z "$BASH_VERSION$ZSH_VERSION" \
28096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28097 as_echo='print
-r --'
28098 as_echo_n='print
-rn --'
28099 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28100 as_echo='printf %s
\n'
28101 as_echo_n='printf %s
'
28103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28104 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28105 as_echo_n='/usr
/ucb
/echo -n'
28107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28108 as_echo_n_body='eval
28112 expr "X$arg" : "X\\(.*\\)$as_nl";
28113 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28115 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28117 export as_echo_n_body
28118 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28120 export as_echo_body
28121 as_echo='sh
-c $as_echo_body as_echo
'
28124 # The user is always right.
28125 if test "${PATH_SEPARATOR+set}" != set; then
28127 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28128 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28135 # We need space, tab and new line, in precisely that order. Quoting is
28136 # there to prevent editors from complaining about space-tab.
28137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28138 # splitting by setting IFS to empty value.)
28141 # Find who we are. Look in the path if we contain no directory separator.
28143 *[\\/]* ) as_myself=$0 ;;
28144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28145 for as_dir in $PATH
28148 test -z "$as_dir" && as_dir=.
28149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28155 # We did not find ourselves, most probably we were run as `sh COMMAND'
28156 # in which case we are not to be found in the path.
28157 if test "x$as_myself" = x
; then
28160 if test ! -f "$as_myself"; then
28161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28165 # Unset variables that we do not need and which cause bugs (e.g. in
28166 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28167 # suppresses any "Segmentation fault" message there. '((' could
28168 # trigger a bug in pdksh 5.2.14.
28169 for as_var
in BASH_ENV ENV MAIL MAILPATH
28170 do eval test x\
${$as_var+set} = xset \
28171 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28184 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28187 # as_fn_error ERROR [LINENO LOG_FD]
28188 # ---------------------------------
28189 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28190 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28191 # script with status $?, using 1 if that was 0.
28194 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28196 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28199 $as_echo "$as_me: error: $1" >&2
28200 as_fn_exit
$as_status
28204 # as_fn_set_status STATUS
28205 # -----------------------
28206 # Set $? to STATUS, without forking.
28207 as_fn_set_status
()
28210 } # as_fn_set_status
28212 # as_fn_exit STATUS
28213 # -----------------
28214 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28218 as_fn_set_status
$1
28224 # Portably unset VAR.
28227 { eval $1=; unset $1;}
28229 as_unset
=as_fn_unset
28230 # as_fn_append VAR VALUE
28231 # ----------------------
28232 # Append the text in VALUE to the end of the definition contained in VAR. Take
28233 # advantage of any shell optimizations that allow amortized linear growth over
28234 # repeated appends, instead of the typical quadratic growth present in naive
28236 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28237 eval 'as_fn_append ()
28248 # as_fn_arith ARG...
28249 # ------------------
28250 # Perform arithmetic evaluation on the ARGs, and store the result in the
28251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28252 # must be portable across $(()) and expr.
28253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28254 eval 'as_fn_arith ()
28261 as_val
=`expr "$@" || test $? -eq 1`
28266 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28267 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28273 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28274 as_basename
=basename
28279 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28285 as_me
=`$as_basename -- "$0" ||
28286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28287 X"$0" : 'X\(//\)$' \| \
28288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28290 sed '/^.*\/\([^/][^/]*\)\/*$/{
28304 # Avoid depending upon Character Ranges.
28305 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28306 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28307 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28308 as_cr_digits
='0123456789'
28309 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28311 ECHO_C
= ECHO_N
= ECHO_T
=
28312 case `echo -n x` in #(((((
28314 case `echo 'xy\c'` in
28315 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28317 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28324 rm -f conf$$ conf$$.exe conf$$.
file
28325 if test -d conf$$.dir
; then
28326 rm -f conf$$.dir
/conf$$.
file
28329 mkdir conf$$.dir
2>/dev
/null
28331 if (echo >conf$$.
file) 2>/dev
/null
; then
28332 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28334 # ... but there are two gotchas:
28335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28337 # In both cases, we have to default to `cp -p'.
28338 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28340 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28348 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28349 rmdir conf$$.dir
2>/dev
/null
28354 # Create "$as_dir" as a directory, including parents if necessary.
28359 -*) as_dir
=.
/$as_dir;;
28361 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28365 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28366 *) as_qdir
=$as_dir;;
28368 as_dirs
="'$as_qdir' $as_dirs"
28369 as_dir
=`$as_dirname -- "$as_dir" ||
28370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28371 X"$as_dir" : 'X\(//\)[^/]' \| \
28372 X"$as_dir" : 'X\(//\)$' \| \
28373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28374 $as_echo X"$as_dir" |
28375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28379 /^X\(\/\/\)[^/].*/{
28392 test -d "$as_dir" && break
28394 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28395 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28399 if mkdir
-p .
2>/dev
/null
; then
28400 as_mkdir_p
='mkdir -p "$as_dir"'
28402 test -d .
/-p && rmdir .
/-p
28406 if test -x / >/dev
/null
2>&1; then
28407 as_test_x
='test -x'
28409 if ls -dL / >/dev
/null
2>&1; then
28416 if test -d "$1"; then
28422 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28423 ???[sx]*):;;*)false;;esac;fi
28427 as_executable_p
=$as_test_x
28429 # Sed expression to map a string onto a valid CPP name.
28430 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28432 # Sed expression to map a string onto a valid variable name.
28433 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28437 ## ----------------------------------- ##
28438 ## Main body of $CONFIG_STATUS script. ##
28439 ## ----------------------------------- ##
28441 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28444 # Save the log message, to keep $0 and so on meaningful, and to
28445 # report actual input values of CONFIG_FILES etc. instead of their
28446 # values after options handling.
28448 This file was extended by $as_me, which was
28449 generated by GNU Autoconf 2.64. Invocation command line was
28451 CONFIG_FILES = $CONFIG_FILES
28452 CONFIG_HEADERS = $CONFIG_HEADERS
28453 CONFIG_LINKS = $CONFIG_LINKS
28454 CONFIG_COMMANDS = $CONFIG_COMMANDS
28457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28462 case $ac_config_files in *"
28463 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28466 case $ac_config_headers in *"
28467 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28472 # Files that config.status was made for.
28473 config_files="$ac_config_files"
28474 config_headers="$ac_config_headers"
28475 config_commands="$ac_config_commands"
28479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28481 \`$as_me' instantiates files and other configuration actions
28482 from templates according to the current configuration. Unless the files
28483 and actions are specified as TAGs, all are instantiated by default.
28485 Usage: $0 [OPTION]... [TAG]...
28487 -h, --help print this help, then exit
28488 -V, --version print version number and configuration settings, then exit
28489 -q, --quiet, --silent
28490 do not print progress messages
28491 -d, --debug don't remove temporary files
28492 --recheck update $as_me by reconfiguring in the same conditions
28493 --file=FILE[:TEMPLATE]
28494 instantiate the configuration file FILE
28495 --header=FILE[:TEMPLATE]
28496 instantiate the configuration header FILE
28498 Configuration files:
28501 Configuration headers:
28504 Configuration commands:
28507 Report bugs to the package provider."
28510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28513 configured by $0, generated by GNU Autoconf 2.64,
28514 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28516 Copyright (C) 2009 Free Software Foundation, Inc.
28517 This config.status script is free software; the Free Software Foundation
28518 gives unlimited permission to copy, distribute and modify it."
28523 test -n "\$AWK" || AWK=awk
28526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28527 # The default lists apply if the user does not specify any file.
28533 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28534 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28545 # Handling of the options.
28546 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28548 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28549 $as_echo "$ac_cs_version"; exit ;;
28550 --debug |
--debu |
--deb |
--de |
--d |
-d )
28552 --file |
--fil |
--fi |
--f )
28555 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28557 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28558 ac_need_defaults
=false
;;
28559 --header |
--heade |
--head |
--hea )
28562 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28564 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28565 ac_need_defaults
=false
;;
28567 # Conflict between --help and --header
28568 as_fn_error
"ambiguous option: \`$1'
28569 Try \`$0 --help' for more information.";;
28570 --help |
--hel |
-h )
28571 $as_echo "$ac_cs_usage"; exit ;;
28572 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28573 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28576 # This is an error.
28577 -*) as_fn_error
"unrecognized option: \`$1'
28578 Try \`$0 --help' for more information." ;;
28580 *) as_fn_append ac_config_targets
" $1"
28581 ac_need_defaults
=false
;;
28587 ac_configure_extra_args
=
28589 if $ac_cs_silent; then
28591 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28596 if \$ac_cs_recheck; then
28597 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28599 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28600 CONFIG_SHELL='$SHELL'
28601 export CONFIG_SHELL
28606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28611 ## Running $as_me. ##
28617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28621 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28622 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28629 # Handling of arguments.
28630 for ac_config_target
in $ac_config_targets
28632 case $ac_config_target in
28633 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28634 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28635 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28636 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28637 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28638 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28639 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28640 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28642 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28647 # If the user did not use the arguments to specify the items to instantiate,
28648 # then the envvar interface is used. Set only those that are not.
28649 # We use the long form for the default assignment because of an extremely
28650 # bizarre bug on SunOS 4.1.3.
28651 if $ac_need_defaults; then
28652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28657 # Have a temporary directory for convenience. Make it in the build tree
28658 # simply because there is no reason against having it here, and in addition,
28659 # creating and moving files from /tmp can sometimes cause problems.
28660 # Hook for its removal unless debugging.
28661 # Note that there is a small window in which the directory will not be cleaned:
28662 # after its creation but before its name has been assigned to `$tmp'.
28666 trap 'exit_status=$?
28667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28669 trap 'as_fn_exit 1' 1 2 13 15
28671 # Create a (secure) tmp directory for tmp files.
28674 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28675 test -n "$tmp" && test -d "$tmp"
28678 tmp
=.
/conf$$
-$RANDOM
28679 (umask 077 && mkdir
"$tmp")
28680 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28682 # Set up the scripts for CONFIG_FILES section.
28683 # No need to generate them if there are no CONFIG_FILES.
28684 # This happens for instance with `./config.status config.h'.
28685 if test -n "$CONFIG_FILES"; then
28687 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28688 ac_cs_awk_getline
=:
28689 ac_cs_awk_pipe_init
=
28690 ac_cs_awk_read_file
='
28691 while ((getline aline < (F[key])) > 0)
28694 ac_cs_awk_pipe_fini
=
28696 ac_cs_awk_getline
=false
28697 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28698 ac_cs_awk_read_file
='
28700 print "cat " F[key] " &&"
28701 '$ac_cs_awk_pipe_init
28702 # The final `:' finishes the AND list.
28703 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28705 ac_cr
=`echo X | tr X '\015'`
28706 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28707 # But we know of no other shell where ac_cr would be empty at this
28708 # point, so we can use a bashism as a fallback.
28709 if test "x$ac_cr" = x
; then
28710 eval ac_cr
=\$
\'\\r
\'
28712 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28713 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28716 ac_cs_awk_cr
=$ac_cr
28719 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28722 # Create commands to substitute file output variables.
28724 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28725 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28726 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28729 } >conf$
$files.sh
&&
28730 . .
/conf$
$files.sh ||
28731 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28732 rm -f conf$
$files.sh
28735 echo "cat >conf$$subs.awk <<_ACEOF" &&
28736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28738 } >conf$$subs.sh ||
28739 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28742 for ac_last_try in false false false false false :; do
28743 . ./conf$$subs.sh ||
28744 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28746 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28747 if test $ac_delim_n = $ac_delim_num; then
28749 elif $ac_last_try; then
28750 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28752 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28755 rm -f conf$$subs.sh
28757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28758 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28762 s/^/S["/; s
/!.
*/"]=/
28772 s/\(.\{148\}\).*/\1/
28774 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28779 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28786 s/\(.\{148\}\).*/\1/
28788 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28792 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28797 ' <conf$$subs.awk | sed '
28802 ' >>$CONFIG_STATUS || ac_write_fail=1
28803 rm -f conf$$subs.awk
28804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28806 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28807 for (key in S) S_is_set[key] = 1
28809 \$ac_cs_awk_pipe_init
28813 nfields = split(line, field, "@
")
28815 len = length(field[1])
28816 for (i = 2; i < nfields; i++) {
28818 keylen = length(key)
28819 if (S_is_set[key]) {
28821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28822 len += length(value) + length(field[++i])
28827 if (nfields == 3 && !substed) {
28829 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28830 \$ac_cs_awk_read_file
28836 \$ac_cs_awk_pipe_fini
28839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28840 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28841 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28844 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28845 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28848 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28849 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28850 # trailing colons and then remove the whole line if VPATH becomes empty
28851 # (actually we leave an empty line to preserve line numbers).
28852 if test "x
$srcdir" = x.; then
28853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28854 s/:*\$(srcdir):*/:/
28855 s/:*\${srcdir}:*/:/
28857 s/^\([^=]*=[ ]*\):*/\1/
28863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28864 fi # test -n "$CONFIG_FILES"
28866 # Set up the scripts for CONFIG_HEADERS section.
28867 # No need to generate them if there are no CONFIG_HEADERS.
28868 # This happens for instance with `./config.status Makefile'.
28869 if test -n "$CONFIG_HEADERS"; then
28870 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28874 # Transform confdefs.h into an awk script `defines.awk', embedded as
28875 # here-document in config.status, that substitutes the proper values into
28876 # config.h.in to produce config.h.
28878 # Create a delimiter string that does not exist in confdefs.h, to ease
28879 # handling of long lines.
28881 for ac_last_try in false false :; do
28882 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28883 if test -z "$ac_t"; then
28885 elif $ac_last_try; then
28886 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28888 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28892 # For the awk script, D is an array of macro values keyed by name,
28893 # likewise P contains macro parameters if any. Preserve backslash
28894 # newline sequences.
28896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28898 s/.\{148\}/&'"$ac_delim"'/g
28901 s/^[ ]*#[ ]*define[ ][ ]*/ /
28908 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28910 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28915 D["\
1"]=" \
3\\\\\\n
"\\/p
28917 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28922 s/.\{148\}/&'"$ac_delim"'/g
28927 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28930 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28932 ' <confdefs.h | sed '
28933 s/'"$ac_delim"'/"\\\
28934 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28937 for (key in D) D_is_set[key] = 1
28940 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28942 split(line, arg, " ")
28943 if (arg[1] == "#") {
28947 defundef
= substr
(arg
[1], 2)
28950 split(mac1
, mac2
, "(") #)
28952 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28953 if (D_is_set
[macro
]) {
28954 # Preserve the white space surrounding the "#".
28955 print prefix
"define", macro P
[macro
] D
[macro
]
28958 # Replace #undef with comments. This is necessary, for example,
28959 # in the case of _POSIX_SOURCE, which is predefined and required
28960 # on some systems where configure will not decide to define it.
28961 if (defundef
== "undef") {
28962 print
"/*", prefix defundef
, macro
, "*/"
28970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28971 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28972 fi # test -n "$CONFIG_HEADERS"
28975 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28980 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28982 case $ac_mode$ac_tag in
28984 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28985 :[FH
]-) ac_tag
=-:-;;
28986 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29003 -) ac_f
="$tmp/stdin";;
29004 *) # Look for the file first in the build tree, then in the source tree
29005 # (if the path is not absolute). The absolute path cannot be DOS-style,
29006 # because $ac_f cannot contain `:'.
29010 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29012 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29014 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29015 as_fn_append ac_file_inputs
" '$ac_f'"
29018 # Let's still pretend it is `configure' which instantiates (i.e., don't
29019 # use $as_me), people would be surprised to read:
29020 # /* config.h. Generated by config.status. */
29021 configure_input
='Generated from '`
29022 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29024 if test x
"$ac_file" != x-
; then
29025 configure_input
="$ac_file. $configure_input"
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29027 $as_echo "$as_me: creating $ac_file" >&6;}
29029 # Neutralize special characters interpreted by sed in replacement strings.
29030 case $configure_input in #(
29031 *\
&* |
*\|
* |
*\\* )
29032 ac_sed_conf_input
=`$as_echo "$configure_input" |
29033 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29034 *) ac_sed_conf_input
=$configure_input;;
29038 *:-:* |
*:-) cat >"$tmp/stdin" \
29039 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29044 ac_dir
=`$as_dirname -- "$ac_file" ||
29045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29046 X"$ac_file" : 'X\(//\)[^/]' \| \
29047 X"$ac_file" : 'X\(//\)$' \| \
29048 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29049 $as_echo X"$ac_file" |
29050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29054 /^X\(\/\/\)[^/].*/{
29067 as_dir
="$ac_dir"; as_fn_mkdir_p
29071 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29073 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29074 # A ".." for each directory in $ac_dir_suffix.
29075 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29076 case $ac_top_builddir_sub in
29077 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29078 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29081 ac_abs_top_builddir
=$ac_pwd
29082 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29083 # for backward compatibility:
29084 ac_top_builddir
=$ac_top_build_prefix
29087 .
) # We are building in place.
29089 ac_top_srcdir
=$ac_top_builddir_sub
29090 ac_abs_top_srcdir
=$ac_pwd ;;
29091 [\\/]* | ?
:[\\/]* ) # Absolute name.
29092 ac_srcdir
=$srcdir$ac_dir_suffix;
29093 ac_top_srcdir
=$srcdir
29094 ac_abs_top_srcdir
=$srcdir ;;
29095 *) # Relative name.
29096 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29097 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29098 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29100 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29112 # If the template does not know about datarootdir, expand it.
29113 # FIXME: This hack should be removed a few years after 2.60.
29114 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29125 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29126 *datarootdir
*) ac_datarootdir_seen
=yes;;
29127 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29129 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29132 ac_datarootdir_hack='
29133 s&@datadir@&$datadir&g
29134 s&@docdir@&$docdir&g
29135 s&@infodir@&$infodir&g
29136 s&@localedir@&$localedir&g
29137 s&@mandir@&$mandir&g
29138 s&\\\${datarootdir}&$datarootdir&g' ;;
29142 # Neutralize VPATH when `$srcdir' = `.'.
29143 # Shell code in configure.ac might set extrasub.
29144 # FIXME: do we really want to maintain this feature?
29145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29146 ac_sed_extra="$ac_vpsub
29149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29151 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29152 s|@configure_input@|
$ac_sed_conf_input|
;t t
29153 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29154 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29155 s
&@srcdir@
&$ac_srcdir&;t t
29156 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29157 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29158 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29159 s
&@builddir@
&$ac_builddir&;t t
29160 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29161 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29162 $ac_datarootdir_hack
29164 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29165 if $ac_cs_awk_getline; then
29166 $AWK -f "$tmp/subs.
awk"
29168 $AWK -f "$tmp/subs.
awk" | $SHELL
29170 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29172 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29173 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29176 which seems to be undefined. Please make sure it is defined." >&5
29177 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29178 which seems to be undefined. Please make sure it is defined." >&2;}
29182 -) cat "$tmp/out" && rm -f "$tmp/out";;
29183 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29185 || as_fn_error "could not create $ac_file" "$LINENO" 5
29191 if test x"$ac_file" != x-; then
29193 $as_echo "/* $configure_input */" \
29194 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29195 } >"$tmp/config.h" \
29196 || as_fn_error "could not create $ac_file" "$LINENO" 5
29197 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29199 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29202 mv "$tmp/config.h" "$ac_file" \
29203 || as_fn_error "could not create $ac_file" "$LINENO" 5
29206 $as_echo "/* $configure_input */" \
29207 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29208 || as_fn_error "could not create -" "$LINENO" 5
29212 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29213 $as_echo "$as_me: executing $ac_file commands" >&6;}
29218 case $ac_file$ac_mode in
29219 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29221 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29222 for lang in $subdirs c-family common
29224 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29226 "as":F) chmod +x as ;;
29227 "collect-ld":F) chmod +x collect-ld ;;
29228 "nm":F) chmod +x nm ;;
29230 case ${CONFIG_HEADERS} in
29231 *auto-host.h:config.in*)
29234 # Make sure all the subdirs exist.
29235 for d in $subdirs doc build common c-family
29237 test -d $d || mkdir $d
29247 ac_clean_files=$ac_clean_files_save
29249 test $ac_write_fail = 0 ||
29250 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29253 # configure is writing to config.log, and then calls config.status.
29254 # config.status does its own redirection, appending to config.log.
29255 # Unfortunately, on DOS this fails, as config.log is still kept open
29256 # by configure, so config.status won't be able to
write to it
; its
29257 # output is simply discarded. So we exec the FD to /dev/null,
29258 # effectively closing config.log, so it can be properly (re)opened and
29259 # appended to by config.status. When coming back to configure, we
29260 # need to make the FD available again.
29261 if test "$no_create" != yes; then
29263 ac_config_status_args
=
29264 test "$silent" = yes &&
29265 ac_config_status_args
="$ac_config_status_args --quiet"
29267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29270 # would make configure fail if this is the last instruction.
29271 $ac_cs_success || as_fn_exit $?
29273 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29275 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}