2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
726 NATIVE_SYSTEM_HEADER_DIR
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
762 SYSROOT_CFLAGS_FOR_TARGET
767 ENABLE_BUILD_WITH_CXX
770 valgrind_path_defines
844 program_transform_name
855 ac_subst_files
='option_includes
858 enable_option_checking
863 enable_generated_files_in_srcdir
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
885 with_native_system_header_dir
895 enable_initfini_array
896 enable_sjlj_exceptions
898 enable_leading_mingw64_underscores
901 enable_win32_registry
907 enable_gnu_indirect_function
909 enable_gnu_unique_object
910 enable_linker_build_id
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
917 enable_libquadmath_support
918 with_linker_hash_style
920 ac_precious_vars
='build_alias
941 # Initialize some variables set by options.
943 ac_init_version
=false
944 ac_unrecognized_opts
=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name
=s
,x
,x
,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir
='${exec_prefix}/bin'
970 sbindir
='${exec_prefix}/sbin'
971 libexecdir
='${exec_prefix}/libexec'
972 datarootdir
='${prefix}/share'
973 datadir
='${datarootdir}'
974 sysconfdir
='${prefix}/etc'
975 sharedstatedir
='${prefix}/com'
976 localstatedir
='${prefix}/var'
977 includedir
='${prefix}/include'
978 oldincludedir
='/usr/include'
979 docdir
='${datarootdir}/doc/${PACKAGE}'
980 infodir
='${datarootdir}/info'
985 libdir
='${exec_prefix}/lib'
986 localedir
='${datarootdir}/locale'
987 mandir
='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\
$ac_option
1001 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1013 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1014 bindir
=$ac_optarg ;;
1016 -build |
--build |
--buil |
--bui |
--bu)
1017 ac_prev
=build_alias
;;
1018 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1019 build_alias
=$ac_optarg ;;
1021 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1022 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1023 ac_prev
=cache_file
;;
1024 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1025 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1026 cache_file
=$ac_optarg ;;
1028 --config-cache |
-C)
1029 cache_file
=config.cache
;;
1031 -datadir |
--datadir |
--datadi |
--datad)
1033 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1034 datadir
=$ac_optarg ;;
1036 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1037 |
--dataroo |
--dataro |
--datar)
1038 ac_prev
=datarootdir
;;
1039 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1040 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1041 datarootdir
=$ac_optarg ;;
1043 -disable-* |
--disable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=no
;;
1059 -docdir |
--docdir |
--docdi |
--doc |
--do)
1061 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1062 docdir
=$ac_optarg ;;
1064 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1066 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1067 dvidir
=$ac_optarg ;;
1069 -enable-* |
--enable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=\
$ac_optarg ;;
1085 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1086 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1087 |
--exec |
--exe |
--ex)
1088 ac_prev
=exec_prefix
;;
1089 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1090 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1091 |
--exec=* |
--exe=* |
--ex=*)
1092 exec_prefix
=$ac_optarg ;;
1094 -gas |
--gas |
--ga |
--g)
1095 # Obsolete; use --with-gas.
1098 -help |
--help |
--hel |
--he |
-h)
1099 ac_init_help
=long
;;
1100 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1101 ac_init_help
=recursive
;;
1102 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1103 ac_init_help
=short
;;
1105 -host |
--host |
--hos |
--ho)
1106 ac_prev
=host_alias
;;
1107 -host=* |
--host=* |
--hos=* |
--ho=*)
1108 host_alias
=$ac_optarg ;;
1110 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1112 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1114 htmldir
=$ac_optarg ;;
1116 -includedir |
--includedir |
--includedi |
--included |
--include \
1117 |
--includ |
--inclu |
--incl |
--inc)
1118 ac_prev
=includedir
;;
1119 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1120 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1121 includedir
=$ac_optarg ;;
1123 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1125 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1126 infodir
=$ac_optarg ;;
1128 -libdir |
--libdir |
--libdi |
--libd)
1130 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1131 libdir
=$ac_optarg ;;
1133 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1134 |
--libexe |
--libex |
--libe)
1135 ac_prev
=libexecdir
;;
1136 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1137 |
--libexe=* |
--libex=* |
--libe=*)
1138 libexecdir
=$ac_optarg ;;
1140 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1141 ac_prev
=localedir
;;
1142 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1143 localedir
=$ac_optarg ;;
1145 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1146 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1147 ac_prev
=localstatedir
;;
1148 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1149 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1150 localstatedir
=$ac_optarg ;;
1152 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1154 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1155 mandir
=$ac_optarg ;;
1157 -nfp |
--nfp |
--nf)
1158 # Obsolete; use --without-fp.
1161 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1162 |
--no-cr |
--no-c |
-n)
1165 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1166 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1169 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1170 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1171 |
--oldin |
--oldi |
--old |
--ol |
--o)
1172 ac_prev
=oldincludedir
;;
1173 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1174 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1175 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1176 oldincludedir
=$ac_optarg ;;
1178 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1180 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1181 prefix
=$ac_optarg ;;
1183 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1184 |
--program-pre |
--program-pr |
--program-p)
1185 ac_prev
=program_prefix
;;
1186 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1187 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1188 program_prefix
=$ac_optarg ;;
1190 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1191 |
--program-suf |
--program-su |
--program-s)
1192 ac_prev
=program_suffix
;;
1193 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1194 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1195 program_suffix
=$ac_optarg ;;
1197 -program-transform-name |
--program-transform-name \
1198 |
--program-transform-nam |
--program-transform-na \
1199 |
--program-transform-n |
--program-transform- \
1200 |
--program-transform |
--program-transfor \
1201 |
--program-transfo |
--program-transf \
1202 |
--program-trans |
--program-tran \
1203 |
--progr-tra |
--program-tr |
--program-t)
1204 ac_prev
=program_transform_name
;;
1205 -program-transform-name=* |
--program-transform-name=* \
1206 |
--program-transform-nam=* |
--program-transform-na=* \
1207 |
--program-transform-n=* |
--program-transform-=* \
1208 |
--program-transform=* |
--program-transfor=* \
1209 |
--program-transfo=* |
--program-transf=* \
1210 |
--program-trans=* |
--program-tran=* \
1211 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1212 program_transform_name
=$ac_optarg ;;
1214 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1216 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1217 pdfdir
=$ac_optarg ;;
1219 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1221 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1225 |
-silent |
--silent |
--silen |
--sile |
--sil)
1228 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1230 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1232 sbindir
=$ac_optarg ;;
1234 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1235 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1236 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1238 ac_prev
=sharedstatedir
;;
1239 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1240 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1241 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1243 sharedstatedir
=$ac_optarg ;;
1245 -site |
--site |
--sit)
1247 -site=* |
--site=* |
--sit=*)
1250 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1252 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1253 srcdir
=$ac_optarg ;;
1255 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1256 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1257 ac_prev
=sysconfdir
;;
1258 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1259 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1260 sysconfdir
=$ac_optarg ;;
1262 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1263 ac_prev
=target_alias
;;
1264 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1265 target_alias
=$ac_optarg ;;
1267 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1270 -version |
--version |
--versio |
--versi |
--vers |
-V)
1271 ac_init_version
=: ;;
1274 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1277 as_fn_error
"invalid package name: $ac_useropt"
1278 ac_useropt_orig
=$ac_useropt
1279 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep
=', ';;
1287 eval with_
$ac_useropt=\
$ac_optarg ;;
1289 -without-* |
--without-*)
1290 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1293 as_fn_error
"invalid package name: $ac_useropt"
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=no
;;
1306 # Obsolete; use --with-x.
1309 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1310 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1311 ac_prev
=x_includes
;;
1312 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1313 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1314 x_includes
=$ac_optarg ;;
1316 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1317 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1318 ac_prev
=x_libraries
;;
1319 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1320 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1321 x_libraries
=$ac_optarg ;;
1323 -*) as_fn_error
"unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1328 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1332 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1334 eval $ac_envvar=\
$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error
"missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1356 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val
=\$
$ac_var
1368 # Remove trailing slashes.
1371 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\
$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$
]* | ?
:[\\/]* ) continue;;
1377 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1379 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target
=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x
; then
1391 if test "x$build_alias" = x
; then
1392 cross_compiling
=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1403 test "$silent" = yes && exec 6>/dev
/null
1406 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di
=`ls -di .` &&
1408 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error
"working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error
"pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var
in $ac_precious_vars; do
1467 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1469 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1543 --build=BUILD configure
for building on BUILD
[guessed
]
1544 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1545 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized
--enable/--with options
1555 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1556 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files
in source dir intended
1559 for creating
source tarballs
for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support
for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST
]
1564 enable expensive run-time checks. With LIST
, enable
1565 only specific categories of checks. Categories are
:
1566 yes,no
,all
,none
,release. Flags are
:
1567 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1568 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1569 --enable-coverage[=LEVEL
]
1570 enable compiler
's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid
'
1581 or 'dpd
' choses which decimal floating point format
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1586 --enable-tls enable or disable generation of tls code overriding
1587 the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with the
1589 GNU Objective-C runtime
1590 --disable-shared don
't provide a shared libgcc
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-initfini-array use .init_array/.fini_array sections
1594 --enable-sjlj-exceptions
1595 arrange to use setjmp/longjmp exception handling
1596 --enable-secureplt enable -msecure-plt by default for PowerPC
1597 --enable-leading-mingw64-underscores
1598 enable leading underscores on 64 bit mingw targets
1599 --enable-cld enable -mcld by default for 32bit x86
1600 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 --disable-win32-registry
1603 disable lookup of installation paths in the Registry
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-gnu-indirect-function
1615 enable the use of the @gnu_indirect_function to
1617 --enable-comdat enable COMDAT group support
1618 --enable-gnu-unique-object
1619 enable the use of the @gnu_unique_object ELF
1620 extension on glibc systems
1621 --enable-linker-build-id
1622 compiler will always pass --build-id to linker
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-version-specific-runtime-libs
1627 specify that runtime libraries should be installed
1628 in a compiler-specific directory
1629 --enable-plugin enable plugin support
1630 --disable-libquadmath-support
1631 disable libquadmath support for Fortran
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-build-libsubdir=DIR Directory where to find libraries for build system
1637 --with-local-prefix=DIR specifies directory to put local include
1638 --with-gxx-include-dir=DIR
1639 specifies directory to put g++ header files
1640 --with-cpp-install-dir=DIR
1641 install the user visible C preprocessor in DIR
1642 (relative to PREFIX) as well as PREFIX/bin
1643 --with-gnu-ld arrange to work with GNU ld
1644 --with-ld arrange to use the specified ld (full pathname)
1645 --with-demangler-in-ld try to use demangler in GNU ld
1646 --with-gnu-as arrange to work with GNU as
1647 --with-as arrange to use the specified as (full pathname)
1648 --with-stabs arrange to use stabs instead of host debug format
1649 --with-dwarf2 force the default debug format to be DWARF 2
1650 --with-native-system-header-dir=dir
1651 use dir as the directory to look for standard
1652 system header files in. Defaults to /usr/include.
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1663 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1665 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1666 --with-plugin-ld=[ARG
] specify the plugin linker
1667 --with-long-double-128 use
128-bit long double by default
1668 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1670 --with-system-zlib use installed libz
1671 --with-linker-hash-style={sysv
,gnu
,both
}
1672 specify the linker
hash style
1674 Some influential environment variables
:
1675 CC C compiler
command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1678 nonstandard directory
<lib dir
>
1679 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1680 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1681 you have headers
in a nonstandard directory
<include dir
>
1682 CXX C
++ compiler
command
1683 CXXFLAGS C
++ compiler flags
1685 CXXCPP C
++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to
find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to
find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to
find CLOOG include files
1693 Use these variables to override the choices made by
`configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1696 Report bugs to the package provider.
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1726 .) # We are building in place.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1760 generated by GNU Autoconf 2.64
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1783 *) ac_try_echo
=$ac_try;;
1785 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1789 if test -s conftest.err
; then
1790 grep -v '^ *+' conftest.err
>conftest.er1
1791 cat conftest.er1
>&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.
$ac_objext; then :
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.
$ac_ext >&5
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1809 } # ac_fn_c_try_compile
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext
1818 if { { ac_try
="$ac_compile"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_cxx_try_compile
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1858 *) ac_try_echo
=$ac_try;;
1860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 if test -s conftest.err
; then
1865 grep -v '^ *+' conftest.err
>conftest.er1
1866 cat conftest.er1
>&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev
/null
&& {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.
$ac_ext >&5
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1891 ac_fn_c_check_header_mongrel
()
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1912 if ac_fn_c_try_compile
"$LINENO"; then :
1913 ac_header_compiler
=yes
1915 ac_header_compiler
=no
1917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 if ac_fn_c_try_cpp
"$LINENO"; then :
1929 ac_header_preproc
=yes
1931 ac_header_preproc
=no
1933 rm -f conftest.err conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval "$3=\$ac_header_compiler"
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1971 } # ac_fn_c_check_header_mongrel
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 if { { ac_try
="$ac_link"
1982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1993 *) ac_try_echo
=$ac_try;;
1995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.
$ac_ext >&5
2007 ac_retval
=$ac_status
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2044 } # ac_fn_c_check_header_compile
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 ac_fn_c_compute_int
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 ac_hi
=$ac_mid; break
2088 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2089 if test $ac_lo -le $ac_mid; then
2093 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) < 0)];
2111 if ac_fn_c_try_compile
"$LINENO"; then :
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2127 if ac_fn_c_try_compile
"$LINENO"; then :
2128 ac_lo
=$ac_mid; break
2130 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2131 if test $ac_mid -le $ac_hi; then
2135 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2164 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2184 FILE *f = fopen ("conftest.val", "w");
2189 long int i = longval ();
2192 fprintf (f, "%ld", i);
2196 unsigned long int i = ulongval ();
2199 fprintf (f, "%lu", i);
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2209 if ac_fn_c_try_run
"$LINENO"; then :
2210 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2222 } # ac_fn_c_compute_int
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type
()
2230 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2249 if ac_fn_c_try_compile
"$LINENO"; then :
2250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2262 if ac_fn_c_try_compile
"$LINENO"; then :
2267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2276 } # ac_fn_c_check_type
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 ac_fn_c_find_intX_t
()
2284 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2291 for ac_type
in int
$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2306 if ac_fn_c_try_compile
"$LINENO"; then :
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2321 if ac_fn_c_try_compile
"$LINENO"; then :
2328 eval "$3=\$ac_type" ;;
2331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2335 if test "x$as_val" = x
""no
; then :
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2347 } # ac_fn_c_find_intX_t
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2355 rm -f conftest.
$ac_objext conftest
$ac_exeext
2356 if { { ac_try
="$ac_link"
2358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 } # ac_fn_c_try_link
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 ac_fn_c_find_uintX_t ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 eval "$3=\$ac_type" ;;
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 if test "x$as_val" = x""no; then :
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_find_uintX_t
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2467 rm -f conftest.err conftest.$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_check_header_preproc
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2485 *) ac_try_echo
=$ac_try;;
2487 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 if test -s conftest.err
; then
2492 grep -v '^ *+' conftest.err
>conftest.er1
2493 cat conftest.er1
>&5
2494 mv -f conftest.er1 conftest.err
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev
/null
&& {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.
$ac_ext >&5
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2511 } # ac_fn_cxx_try_cpp
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc
()
2518 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2533 rm -f conftest.err conftest.
$ac_ext
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2540 } # ac_fn_cxx_check_header_preproc
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func
()
2547 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2565 # include <limits.h>
2567 # include <assert.h>
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2594 if ac_fn_c_try_link
"$LINENO"; then :
2599 rm -f core conftest.err conftest.
$ac_objext \
2600 conftest
$ac_exeext conftest.
$ac_ext
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2607 } # ac_fn_c_check_func
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link
()
2614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2615 rm -f conftest.
$ac_objext conftest
$ac_exeext
2616 if { { ac_try
="$ac_link"
2618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2671 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2672 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2673 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2674 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2675 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2677 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2678 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2680 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2681 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2682 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2683 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2684 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2685 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2686 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_must_keep_next=false
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2730 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 -* ) ac_must_keep_next=true ;;
2751 as_fn_append ac_configure_args " '$ac_arg'"
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2775 # The following way of writing the cache mishandles newlines in values,
2777 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2778 eval ac_val=\$$ac_var
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2793 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2813 for ac_var in $ac_subst_vars
2815 eval ac_val=\$$ac_var
2817 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 $as_echo "$ac_var='\''$ac_val'\''"
2823 if test -n "$ac_subst_files"; then
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2830 for ac_var in $ac_subst_files
2832 eval ac_val=\$$ac_var
2834 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 $as_echo "$ac_var='\''$ac_val'\''"
2841 if test -s confdefs.h; then
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2867 $as_echo "/* confdefs.h */" > confdefs.h
2869 # Predefined preprocessor variables.
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 # Check that the precious variables saved in the cache have kept the same
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2948 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2952 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x
$ac_old_val`
2959 ac_new_val_w=`echo x
$ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2963 ac_cache_corrupted=:
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3012 gcc_version=`cat $srcdir/BASE-VER
`
3014 # Determine the host, build, and target systems
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 ac_save_IFS=$IFS; IFS='-'
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3073 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 ac_save_IFS=$IFS; IFS='-'
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3106 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3139 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3147 program_prefix=${target_alias}-
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3168 # Determine the target- and build-specific subdirectories
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 build_libsubdir="$build_subdir"
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3197 target_subdir=${target_noncanonical}
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s
,x
,x
', remove it if useless.
3208 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3227 library_path_setting="ok"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again.
" "$LINENO" 5
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX 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 GCC_EXEC_PREFIX variable
" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory
"
3253 gcc_exec_prefix_setting="ok
"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok
"; then
3260 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3269 # Specify the local prefix
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 *) local_prefix=$with_local_prefix ;;
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3287 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir
=
3291 # Specify the g++ header file directory
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval
=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x
${gcc_gxx_include_dir} = x
; then
3305 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3306 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3308 libstdcxx_incdir
='include/c++/$(version)'
3309 if test x
$host != x
$target; then
3310 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3312 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3320 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x
$withval != xno
; then
3322 cpp_install_dir
=$withval
3327 # We would like to our source tree to be readonly. However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335 # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3339 generated_files_in_srcdir
=no
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3346 if test "$generated_files_in_srcdir" = "yes"; then
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3367 # With pre-defined ld
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3374 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3375 if test ! -x "$DEFAULT_LINKER"; then
3376 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3381 cat >>confdefs.h
<<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3387 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389 cat >>confdefs.h
<<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3397 if test x
"$gnu_ld_flag" = x
"no"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3409 # With demangler in GNU ld
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3439 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3440 if test ! -x "$DEFAULT_ASSEMBLER"; then
3441 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3446 cat >>confdefs.h
<<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3452 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454 cat >>confdefs.h
<<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3462 if test x
"$gas_flag" = x
"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3487 # Find the native compiler
3489 ac_cpp
='$CPP $CPPFLAGS'
3490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC
="$CC" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$ac_cv_prog_CC"; then
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc
; ac_word
=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir
=.
3549 for ac_exec_ext
in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC
="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3570 if test "x$ac_ct_CC" = x
; then
3573 case $cross_compiling:$ac_tool_warned in
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned
=yes ;;
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC
="$CC" # Let the user override the test.
3597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir
=.
3602 for ac_exec_ext
in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc
; ac_word
=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC
="$CC" # Let the user override the test.
3638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir
=.
3643 for ac_exec_ext
in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected
=yes
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy
$ac_cv_prog_CC
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3666 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog
in cl.exe
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC
="$CC" # Let the user override the test.
3696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir
=.
3701 for ac_exec_ext
in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$CC" && break
3726 if test -z "$CC"; then
3728 for ac_prog
in cl.exe
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy
$ac_prog; ac_word
=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir
=.
3745 for ac_exec_ext
in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC
="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$ac_ct_CC" && break
3770 if test "x$ac_ct_CC" = x
; then
3773 case $cross_compiling:$ac_tool_warned in
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned
=yes ;;
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error
"no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3795 for ac_option
in --version -v -V -qversion; do
3796 { { ac_try
="$ac_compiler $ac_option >&5"
3798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 if test -s conftest.err; then
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 for ac_file in $ac_files
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 if { { ac_try="$ac_link_default"
3851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3852 *) ac_try_echo
=$ac_try;;
3854 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3865 for ac_file
in $ac_files ''
3867 test -f "$ac_file" ||
continue
3869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3872 # We found the default executable, but exeext='' is most
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3878 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3890 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.
$ac_ext >&5
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status
77
3904 as_fn_error
"C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3907 ac_exeext
=$ac_cv_exeext
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try
='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3928 if test "$cross_compiling" = maybe; then
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile
, use \
`--host'.
3935 See \`config.log
' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3968 for ac_file
in conftest.exe conftest conftest.
*; do
3969 test -f "$ac_file" ||
continue
3971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3972 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest
$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.
$ac_ext
3988 EXEEXT
=$ac_cv_exeext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try
="$ac_compile"
4009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files
: cannot compile
4033 See \
`config.log' for more details." "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"; then :
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4150 if test "$GCC" = yes; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_cv_prog_cc_c89=no
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4183 s = g (p, va_arg (v,int));
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 rm -f conftest.$ac_ext
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4283 *) ac_try_echo
=$ac_try;;
4285 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4308 *) ac_try_echo
=$ac_try;;
4310 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 if { { case "(($ac_try" in
4319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4330 *) ac_try_echo
=$ac_try;;
4332 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4348 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4350 rm -f core conftest
*
4353 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir
=`cd $ac_aux_dir && pwd`
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4370 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC
="$am_aux_dir/compile $CC"
4383 ac_cpp
='$CXXCPP $CPPFLAGS'
4384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CXX" && break
4434 if test -z "$CXX"; then
4436 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy
$ac_prog; ac_word
=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir
=.
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CXX" && break
4478 if test "x$ac_ct_CXX" = x
; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned
=yes ;;
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4497 for ac_option
in --version -v -V -qversion; do
4498 { { ac_try
="$ac_compiler $ac_option >&5"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 if test -s conftest.err; then
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4627 if test "$GXX" = yes; then
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4719 if test "x$ac_ct_GNATBIND" = x; then
4722 case $cross_compiling:$ac_tool_warned in
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4728 GNATBIND=$ac_ct_GNATBIND
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_GNATMAKE" = x; then
4814 case $cross_compiling:$ac_tool_warned in
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4820 GNATMAKE=$ac_ct_GNATMAKE
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4863 OUTPUT_OPTION='-o $@'
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4876 # Determine PICFLAG for target gnatlib.
4882 # PIC is the default on some targets or must not be used.
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 PICFLAG_FOR_TARGET=-fno-common
4889 # PIC is the default.
4892 # PIC is the default for 64-bit PA HP-UX.
4894 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896 i[34567]86-*-interix3*)
4897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898 # Instead, we relocate shared libraries at runtime.
4900 i[34567]86-*-nto-qnx*)
4901 # QNX uses GNU C++, but need to define -shared option too, otherwise
4903 PICFLAG_FOR_TARGET='-fPIC -shared'
4905 i[34567]86-pc-msdosdjgpp*)
4906 # DJGPP does not support shared libraries at all.
4909 # On IA64 HP-UX, PIC is the default but the pic flag
4910 # sets the default TLS model and affects inlining.
4911 PICFLAG_FOR_TARGET=-fPIC
4914 # PIC is the default.
4916 rs6000-ibm-aix* | powerpc-ibm-aix*)
4917 # All AIX code is PIC.
4920 # Some targets support both -fPIC and -fpic, but prefer the latter.
4922 i[34567]86-*-* | x86_64-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4926 PICFLAG_FOR_TARGET=-fpic
4929 PICFLAG_FOR_TARGET=-fpic
4931 # FIXME: Override -fPIC default in libgcc only?
4932 sh-*-linux* | sh[2346lbe]*-*-linux*)
4933 PICFLAG_FOR_TARGET=-fpic
4935 # FIXME: Simplify to sh*-*-netbsd*?
4936 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4937 sh64-*-netbsd* | sh64l*-*-netbsd*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # Default to -fPIC unless specified otherwise.
4942 PICFLAG_FOR_TARGET=-fPIC
4946 # If the user explicitly uses -fpic/-fPIC, keep that.
4947 case "${CFLAGS_FOR_TARGET}" in
4949 PICFLAG_FOR_TARGET=-fpic
4952 PICFLAG_FOR_TARGET=-fPIC
4958 # -------------------------
4959 # Check C compiler features
4960 # -------------------------
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4974 if test -z "$CPP"; then
4975 if test "${ac_cv_prog_CPP+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 # Double quotes because CPP needs to be expanded
4979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 for ac_c_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4993 # include <limits.h>
4995 # include <assert.h>
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5002 # Broken: fails on valid input.
5005 rm -f conftest.err conftest.$ac_ext
5007 # OK, works on sane cases. Now check whether nonexistent headers
5008 # can be detected and how.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <ac_nonexistent.h>
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014 # Broken: success on invalid input.
5017 # Passes both tests.
5021 rm -f conftest.err conftest.$ac_ext
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.
$ac_ext
5026 if $ac_preproc_ok; then :
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5039 $as_echo "$CPP" >&6; }
5041 for ac_c_preproc_warn_flag
in '' yes
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
5045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
5047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 # include <limits.h>
5054 # include <assert.h>
5058 if ac_fn_c_try_cpp
"$LINENO"; then :
5061 # Broken: fails on valid input.
5064 rm -f conftest.err conftest.
$ac_ext
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5072 if ac_fn_c_try_cpp
"$LINENO"; then :
5073 # Broken: success on invalid input.
5076 # Passes both tests.
5080 rm -f conftest.err conftest.
$ac_ext
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.
$ac_ext
5085 if $ac_preproc_ok; then :
5088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5090 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." "$LINENO" 5; }
5095 ac_cpp
='$CPP $CPPFLAGS'
5096 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found
=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_prog
in grep ggrep
; do
5115 for ac_exec_ext
in '' $ac_executable_extensions; do
5116 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5117 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5122 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5125 $as_echo_n 0123456789 >"conftest.in"
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'GREP' >> "conftest.nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5133 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5134 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP
="$ac_path_GREP"
5138 ac_path_GREP_max
=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5143 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5146 $ac_path_GREP_found && break 3
5151 if test -z "$ac_cv_path_GREP"; then
5152 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5155 ac_cv_path_GREP
=$GREP
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP
="$ac_cv_path_GREP"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5170 then ac_cv_path_EGREP
="$GREP -E"
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found
=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5179 test -z "$as_dir" && as_dir
=.
5180 for ac_prog
in egrep; do
5181 for ac_exec_ext
in '' $ac_executable_extensions; do
5182 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5188 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5191 $as_echo_n 0123456789 >"conftest.in"
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'EGREP' >> "conftest.nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5199 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5200 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP
="$ac_path_EGREP"
5204 ac_path_EGREP_max
=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5209 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5212 $ac_path_EGREP_found && break 3
5217 if test -z "$ac_cv_path_EGREP"; then
5218 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221 ac_cv_path_EGREP
=$EGREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228 EGREP
="$ac_cv_path_EGREP"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5232 $as_echo_n "checking for ANSI C header files... " >&6; }
5233 if test "${ac_cv_header_stdc+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5251 if ac_fn_c_try_compile
"$LINENO"; then :
5252 ac_cv_header_stdc
=yes
5254 ac_cv_header_stdc
=no
5256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5258 if test $ac_cv_header_stdc = yes; then
5259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "memchr" >/dev
/null
2>&1; then :
5269 ac_cv_header_stdc
=no
5275 if test $ac_cv_header_stdc = yes; then
5276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283 $EGREP "free" >/dev
/null
2>&1; then :
5286 ac_cv_header_stdc
=no
5292 if test $ac_cv_header_stdc = yes; then
5293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294 if test "$cross_compiling" = yes; then :
5297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5324 if ac_fn_c_try_run
"$LINENO"; then :
5327 ac_cv_header_stdc
=no
5329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5336 $as_echo "$ac_cv_header_stdc" >&6; }
5337 if test $ac_cv_header_stdc = yes; then
5339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5344 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5345 inttypes.h stdint.h unistd.h
5347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5350 eval as_val
=\$
$as_ac_Header
5351 if test "x$as_val" = x
""yes; then :
5352 cat >>confdefs.h
<<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5363 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5370 if test "$MINIX" = yes; then
5372 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5375 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5378 $as_echo "#define _MINIX 1" >>confdefs.h
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5384 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5385 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5391 # define __EXTENSIONS__ 1
5392 $ac_includes_default
5401 if ac_fn_c_try_compile
"$LINENO"; then :
5402 ac_cv_safe_to_define___extensions__
=yes
5404 ac_cv_safe_to_define___extensions__
=no
5406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5409 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5410 test $ac_cv_safe_to_define___extensions__ = yes &&
5411 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5413 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5415 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5417 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5419 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5423 ac_cpp
='$CPP $CPPFLAGS'
5424 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5429 # On Suns, sometimes $CPP names a directory.
5430 if test -n "$CPP" && test -d "$CPP"; then
5433 if test -z "$CPP"; then
5434 if test "${ac_cv_prog_CPP+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 # Double quotes because CPP needs to be expanded
5438 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5441 for ac_c_preproc_warn_flag
in '' yes
5443 # Use a header file that comes with gcc, so configuring glibc
5444 # with a fresh cross-compiler works.
5445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446 # <limits.h> exists even on freestanding compilers.
5447 # On the NeXT, cc -E runs the code through the compiler's parser,
5448 # not just through cpp. "Syntax error" is here to catch this case.
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5452 # include <limits.h>
5454 # include <assert.h>
5458 if ac_fn_c_try_cpp
"$LINENO"; then :
5461 # Broken: fails on valid input.
5464 rm -f conftest.err conftest.
$ac_ext
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include <ac_nonexistent.h>
5472 if ac_fn_c_try_cpp
"$LINENO"; then :
5473 # Broken: success on invalid input.
5476 # Passes both tests.
5480 rm -f conftest.err conftest.
$ac_ext
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.
$ac_ext
5485 if $ac_preproc_ok; then :
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5498 $as_echo "$CPP" >&6; }
5500 for ac_c_preproc_warn_flag
in '' yes
5502 # Use a header file that comes with gcc, so configuring glibc
5503 # with a fresh cross-compiler works.
5504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505 # <limits.h> exists even on freestanding compilers.
5506 # On the NeXT, cc -E runs the code through the compiler's parser,
5507 # not just through cpp. "Syntax error" is here to catch this case.
5508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5511 # include <limits.h>
5513 # include <assert.h>
5517 if ac_fn_c_try_cpp
"$LINENO"; then :
5520 # Broken: fails on valid input.
5523 rm -f conftest.err conftest.
$ac_ext
5525 # OK, works on sane cases. Now check whether nonexistent headers
5526 # can be detected and how.
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <ac_nonexistent.h>
5531 if ac_fn_c_try_cpp
"$LINENO"; then :
5532 # Broken: success on invalid input.
5535 # Passes both tests.
5539 rm -f conftest.err conftest.
$ac_ext
5542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5543 rm -f conftest.err conftest.
$ac_ext
5544 if $ac_preproc_ok; then :
5547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5549 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." "$LINENO" 5; }
5554 ac_cpp
='$CPP $CPPFLAGS'
5555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5560 $as_echo_n "checking for inline... " >&6; }
5561 if test "${ac_cv_c_inline+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5565 for ac_kw
in inline __inline__ __inline
; do
5566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5570 static $ac_kw foo_t static_foo () {return 0; }
5571 $ac_kw foo_t foo () {return 0; }
5575 if ac_fn_c_try_compile
"$LINENO"; then :
5576 ac_cv_c_inline
=$ac_kw
5578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5579 test "$ac_cv_c_inline" != no
&& break
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5584 $as_echo "$ac_cv_c_inline" >&6; }
5586 case $ac_cv_c_inline in
5589 case $ac_cv_c_inline in
5591 *) ac_val
=$ac_cv_c_inline;;
5593 cat >>confdefs.h
<<_ACEOF
5595 #define inline $ac_val
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then :
5604 enableval
=$enable_largefile;
5607 if test "$enable_largefile" != no
; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5610 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5614 ac_cv_sys_largefile_CC
=no
5615 if test "$GCC" != yes; then
5618 # IRIX 6.2 and later do not support large files by default,
5619 # so use the C compiler's -n32 option if that helps.
5620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 /* Check that off_t can represent 2**63 - 1 correctly.
5624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5625 since some C++ compilers masquerading as C compilers
5626 incorrectly reject 9223372036854775807. */
5627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5629 && LARGE_OFF_T % 2147483647 == 1)
5639 if ac_fn_c_try_compile
"$LINENO"; then :
5642 rm -f core conftest.err conftest.
$ac_objext
5644 if ac_fn_c_try_compile
"$LINENO"; then :
5645 ac_cv_sys_largefile_CC
=' -n32'; break
5647 rm -f core conftest.err conftest.
$ac_objext
5651 rm -f conftest.
$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5655 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5656 if test "$ac_cv_sys_largefile_CC" != no
; then
5657 CC
=$CC$ac_cv_sys_largefile_CC
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5661 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5662 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 if ac_fn_c_try_compile
"$LINENO"; then :
5686 ac_cv_sys_file_offset_bits
=no
; break
5688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #define _FILE_OFFSET_BITS 64
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5709 if ac_fn_c_try_compile
"$LINENO"; then :
5710 ac_cv_sys_file_offset_bits
=64; break
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5713 ac_cv_sys_file_offset_bits
=unknown
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5718 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5719 case $ac_cv_sys_file_offset_bits in #(
5722 cat >>confdefs.h
<<_ACEOF
5723 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5728 if test $ac_cv_sys_file_offset_bits = unknown
; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5730 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5731 if test "${ac_cv_sys_large_files+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #include <sys/types.h>
5738 /* Check that off_t can represent 2**63 - 1 correctly.
5739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5740 since some C++ compilers masquerading as C compilers
5741 incorrectly reject 9223372036854775807. */
5742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5744 && LARGE_OFF_T % 2147483647 == 1)
5754 if ac_fn_c_try_compile
"$LINENO"; then :
5755 ac_cv_sys_large_files
=no
; break
5757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #define _LARGE_FILES 1
5761 #include <sys/types.h>
5762 /* Check that off_t can represent 2**63 - 1 correctly.
5763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764 since some C++ compilers masquerading as C compilers
5765 incorrectly reject 9223372036854775807. */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768 && LARGE_OFF_T % 2147483647 == 1)
5778 if ac_fn_c_try_compile
"$LINENO"; then :
5779 ac_cv_sys_large_files
=1; break
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 ac_cv_sys_large_files
=unknown
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5787 $as_echo "$ac_cv_sys_large_files" >&6; }
5788 case $ac_cv_sys_large_files in #(
5791 cat >>confdefs.h
<<_ACEOF
5792 #define _LARGE_FILES $ac_cv_sys_large_files
5801 # sizeof(char) is 1 by definition.
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5807 $as_echo_n "checking size of void *... " >&6; }
5808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5811 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5814 if test "$ac_cv_type_void_p" = yes; then
5815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 { as_fn_set_status
77
5818 as_fn_error
"cannot compute sizeof (void *)
5819 See \`config.log' for more details." "$LINENO" 5; }; }
5821 ac_cv_sizeof_void_p
=0
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5831 cat >>confdefs.h
<<_ACEOF
5832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5841 $as_echo_n "checking size of short... " >&6; }
5842 if test "${ac_cv_sizeof_short+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5845 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5848 if test "$ac_cv_type_short" = yes; then
5849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851 { as_fn_set_status
77
5852 as_fn_error
"cannot compute sizeof (short)
5853 See \`config.log' for more details." "$LINENO" 5; }; }
5855 ac_cv_sizeof_short
=0
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5861 $as_echo "$ac_cv_sizeof_short" >&6; }
5865 cat >>confdefs.h
<<_ACEOF
5866 #define SIZEOF_SHORT $ac_cv_sizeof_short
5870 # The cast to long int works around a bug in the HP C Compiler
5871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5873 # This bug is HP SR number 8606223364.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5875 $as_echo_n "checking size of int... " >&6; }
5876 if test "${ac_cv_sizeof_int+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5879 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5882 if test "$ac_cv_type_int" = yes; then
5883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5885 { as_fn_set_status
77
5886 as_fn_error
"cannot compute sizeof (int)
5887 See \`config.log' for more details." "$LINENO" 5; }; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5895 $as_echo "$ac_cv_sizeof_int" >&6; }
5899 cat >>confdefs.h
<<_ACEOF
5900 #define SIZEOF_INT $ac_cv_sizeof_int
5904 # The cast to long int works around a bug in the HP C Compiler
5905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5907 # This bug is HP SR number 8606223364.
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5909 $as_echo_n "checking size of long... " >&6; }
5910 if test "${ac_cv_sizeof_long+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5913 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5916 if test "$ac_cv_type_long" = yes; then
5917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919 { as_fn_set_status
77
5920 as_fn_error
"cannot compute sizeof (long)
5921 See \`config.log' for more details." "$LINENO" 5; }; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5929 $as_echo "$ac_cv_sizeof_long" >&6; }
5933 cat >>confdefs.h
<<_ACEOF
5934 #define SIZEOF_LONG $ac_cv_sizeof_long
5938 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5939 if test "x$ac_cv_type_long_long" = x
""yes; then :
5941 cat >>confdefs.h
<<_ACEOF
5942 #define HAVE_LONG_LONG 1
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5950 $as_echo_n "checking size of long long... " >&6; }
5951 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5954 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5957 if test "$ac_cv_type_long_long" = yes; then
5958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status
77
5961 as_fn_error
"cannot compute sizeof (long long)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5964 ac_cv_sizeof_long_long
=0
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5970 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5974 cat >>confdefs.h
<<_ACEOF
5975 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5981 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5982 if test "x$ac_cv_type___int64" = x
""yes; then :
5984 cat >>confdefs.h
<<_ACEOF
5985 #define HAVE___INT64 1
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5993 $as_echo_n "checking size of __int64... " >&6; }
5994 if test "${ac_cv_sizeof___int64+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6000 if test "$ac_cv_type___int64" = yes; then
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status
77
6004 as_fn_error
"cannot compute sizeof (__int64)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6007 ac_cv_sizeof___int64
=0
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6013 $as_echo "$ac_cv_sizeof___int64" >&6; }
6017 cat >>confdefs.h
<<_ACEOF
6018 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6024 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6025 case $ac_cv_c_int8_t in #(
6029 cat >>confdefs.h
<<_ACEOF
6030 #define int8_t $ac_cv_c_int8_t
6035 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6036 case $ac_cv_c_int16_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define int16_t $ac_cv_c_int16_t
6046 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6047 case $ac_cv_c_int32_t in #(
6051 cat >>confdefs.h
<<_ACEOF
6052 #define int32_t $ac_cv_c_int32_t
6057 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6058 case $ac_cv_c_int64_t in #(
6062 cat >>confdefs.h
<<_ACEOF
6063 #define int64_t $ac_cv_c_int64_t
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6070 $as_echo_n "checking for long long int... " >&6; }
6071 if test "${ac_cv_type_long_long_int+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6077 /* For now, do not test the preprocessor; as of 2007 there are too many
6078 implementations with broken preprocessors. Perhaps this can
6079 be revisited in 2012. In the meantime, code should not expect
6080 #if to work with literals wider than 32 bits. */
6081 /* Test literals. */
6082 long long int ll = 9223372036854775807ll;
6083 long long int nll = -9223372036854775807LL;
6084 unsigned long long int ull = 18446744073709551615ULL;
6085 /* Test constant expressions. */
6086 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6094 /* Test availability of runtime routines for shift and division. */
6095 long long int llmax = 9223372036854775807ll;
6096 unsigned long long int ullmax = 18446744073709551615ull;
6097 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6098 | (llmax / ll) | (llmax % ll)
6099 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6100 | (ullmax / ull) | (ullmax % ull));
6106 if ac_fn_c_try_link
"$LINENO"; then :
6107 if test "$cross_compiling" = yes; then :
6108 ac_cv_type_long_long_int
=yes
6110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6115 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6116 # define LLONG_MAX (HALF - 1 + HALF)
6121 long long int n = 1;
6125 long long int m = n << i;
6128 if (LLONG_MAX / 2 < m)
6136 if ac_fn_c_try_run
"$LINENO"; then :
6137 ac_cv_type_long_long_int
=yes
6139 ac_cv_type_long_long_int
=no
6141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6146 ac_cv_type_long_long_int
=no
6148 rm -f core conftest.err conftest.
$ac_objext \
6149 conftest
$ac_exeext conftest.
$ac_ext
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6152 $as_echo "$ac_cv_type_long_long_int" >&6; }
6153 if test $ac_cv_type_long_long_int = yes; then
6155 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6161 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6164 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6167 test $ac_cv_type_long_long_int = yes \
6168 && ac_type
='long long int' \
6169 || ac_type
='long int'
6171 cat >>confdefs.h
<<_ACEOF
6172 #define intmax_t $ac_type
6179 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6180 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6182 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6185 for ac_type
in 'int' 'long int' 'long long int'; do
6186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 $ac_includes_default
6192 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6199 if ac_fn_c_try_compile
"$LINENO"; then :
6201 cat >>confdefs.h
<<_ACEOF
6202 #define intptr_t $ac_type
6207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 test -z "$ac_type" && break
6213 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6214 case $ac_cv_c_uint8_t in #(
6218 $as_echo "#define _UINT8_T 1" >>confdefs.h
6221 cat >>confdefs.h
<<_ACEOF
6222 #define uint8_t $ac_cv_c_uint8_t
6227 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6228 case $ac_cv_c_uint16_t in #(
6233 cat >>confdefs.h
<<_ACEOF
6234 #define uint16_t $ac_cv_c_uint16_t
6239 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6240 case $ac_cv_c_uint32_t in #(
6244 $as_echo "#define _UINT32_T 1" >>confdefs.h
6247 cat >>confdefs.h
<<_ACEOF
6248 #define uint32_t $ac_cv_c_uint32_t
6253 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6254 case $ac_cv_c_uint64_t in #(
6258 $as_echo "#define _UINT64_T 1" >>confdefs.h
6261 cat >>confdefs.h
<<_ACEOF
6262 #define uint64_t $ac_cv_c_uint64_t
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6269 $as_echo_n "checking for unsigned long long int... " >&6; }
6270 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6276 /* For now, do not test the preprocessor; as of 2007 there are too many
6277 implementations with broken preprocessors. Perhaps this can
6278 be revisited in 2012. In the meantime, code should not expect
6279 #if to work with literals wider than 32 bits. */
6280 /* Test literals. */
6281 long long int ll = 9223372036854775807ll;
6282 long long int nll = -9223372036854775807LL;
6283 unsigned long long int ull = 18446744073709551615ULL;
6284 /* Test constant expressions. */
6285 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6293 /* Test availability of runtime routines for shift and division. */
6294 long long int llmax = 9223372036854775807ll;
6295 unsigned long long int ullmax = 18446744073709551615ull;
6296 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6297 | (llmax / ll) | (llmax % ll)
6298 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6299 | (ullmax / ull) | (ullmax % ull));
6305 if ac_fn_c_try_link
"$LINENO"; then :
6306 ac_cv_type_unsigned_long_long_int
=yes
6308 ac_cv_type_unsigned_long_long_int
=no
6310 rm -f core conftest.err conftest.
$ac_objext \
6311 conftest
$ac_exeext conftest.
$ac_ext
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6314 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6315 if test $ac_cv_type_unsigned_long_long_int = yes; then
6317 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6323 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6324 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6326 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6329 test $ac_cv_type_unsigned_long_long_int = yes \
6330 && ac_type
='unsigned long long int' \
6331 || ac_type
='unsigned long int'
6333 cat >>confdefs.h
<<_ACEOF
6334 #define uintmax_t $ac_type
6341 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6342 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6344 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6347 for ac_type
in 'unsigned int' 'unsigned long int' \
6348 'unsigned long long int'; do
6349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 $ac_includes_default
6355 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6362 if ac_fn_c_try_compile
"$LINENO"; then :
6364 cat >>confdefs.h
<<_ACEOF
6365 #define uintptr_t $ac_type
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6371 test -z "$ac_type" && break
6389 # ---------------------
6390 # Warnings and checking
6391 # ---------------------
6393 # Check $CC warning features (if it's GCC).
6394 # We want to use -pedantic, but we don't want warnings about
6397 # * overlong strings
6398 # * C++11 narrowing conversions in { }
6399 # So, we only use -pedantic if we can disable those warnings.
6402 save_CFLAGS
="$CFLAGS"
6403 for option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6404 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6423 if ac_fn_c_try_compile
"$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6426 eval "$as_acx_Woption=no"
6428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 eval ac_res
=\$
$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn
="$loose_warn${loose_warn:+ }$option"
6438 CFLAGS
="$save_CFLAGS"
6441 save_CFLAGS
="$CFLAGS"
6442 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6462 if ac_fn_c_try_compile
"$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6465 eval "$as_acx_Woption=no"
6467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6470 eval ac_res
=\$
$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6477 CFLAGS
="$save_CFLAGS"
6480 save_CFLAGS
="$CFLAGS"
6481 for option
in -Wmissing-format-attribute; do
6482 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6501 if ac_fn_c_try_compile
"$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6504 eval "$as_acx_Woption=no"
6506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6509 eval ac_res
=\$
$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn
="$strict_warn${strict_warn:+ }$option"
6516 CFLAGS
="$save_CFLAGS"
6519 save_CFLAGS
="$CFLAGS"
6520 for option
in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_c_try_compile
"$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6543 eval "$as_acx_Woption=no"
6545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 eval ac_res
=\$
$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6555 CFLAGS
="$save_CFLAGS"
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6563 save_CFLAGS
="$CFLAGS"
6564 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6576 if ac_fn_c_try_compile
"$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 CFLAGS
="$save_CFLAGS"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval
=$enable_werror_always;
6596 enable_werror_always
=no
6599 if test $enable_werror_always = yes; then :
6600 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags
='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6617 # Disable exceptions and RTTI if building with g++
6619 save_CFLAGS
="$CFLAGS"
6620 for option
in -fno-exceptions -fno-rtti; do
6621 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6624 $as_echo_n "checking whether $CC supports $option... " >&6; }
6625 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6626 $as_echo_n "(cached) " >&6
6629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6640 if ac_fn_c_try_compile
"$LINENO"; then :
6641 eval "$as_acx_Woption=yes"
6643 eval "$as_acx_Woption=no"
6645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6648 eval ac_res
=\$
$as_acx_Woption
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6650 $as_echo "$ac_res" >&6; }
6651 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6652 noexception_flags
="$noexception_flags${noexception_flags:+ }$option"
6655 CFLAGS
="$save_CFLAGS"
6658 # Enable expensive internal checks
6660 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6664 # Check whether --enable-checking was given.
6665 if test "${enable_checking+set}" = set; then :
6666 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6669 # Determine the default checks.
6670 if test x
$is_release = x
; then
6671 ac_checking_flags
=yes
6673 ac_checking_flags
=release
6677 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6678 for check
in release
$ac_checking_flags
6681 # these set all the flags to specific states
6682 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6683 ac_fold_checking
= ; ac_gc_checking
=1 ;
6684 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6685 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6686 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6687 ac_types_checking
=1 ;;
6688 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6689 ac_fold_checking
= ; ac_gc_checking
= ;
6690 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6691 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6692 ac_tree_checking
= ; ac_valgrind_checking
= ;
6693 ac_types_checking
= ;;
6694 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6695 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6696 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6697 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6698 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6699 ac_types_checking
=1 ;;
6700 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6701 ac_fold_checking
= ; ac_gc_checking
= ;
6702 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6703 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6704 ac_tree_checking
= ; ac_valgrind_checking
= ;
6705 ac_types_checking
= ;;
6706 # these enable particular checks
6707 assert
) ac_assert_checking
=1 ;;
6708 df
) ac_df_checking
=1 ;;
6709 fold) ac_fold_checking
=1 ;;
6710 gc
) ac_gc_checking
=1 ;;
6711 gcac
) ac_gc_always_collect
=1 ;;
6712 gimple
) ac_gimple_checking
=1 ;;
6713 misc
) ac_checking
=1 ;;
6714 rtl
) ac_rtl_checking
=1 ;;
6715 rtlflag
) ac_rtlflag_checking
=1 ;;
6716 runtime
) ac_runtime_checking
=1 ;;
6717 tree
) ac_tree_checking
=1 ;;
6718 types
) ac_types_checking
=1 ;;
6719 valgrind
) ac_valgrind_checking
=1 ;;
6720 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6726 if test x
$ac_checking != x
; then
6728 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6730 nocommon_flag
=-fno-common
6733 if test x
$ac_df_checking != x
; then
6735 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6738 if test x
$ac_assert_checking != x
; then
6740 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6743 if test x
$ac_gimple_checking != x
; then
6745 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6749 if test x
$ac_runtime_checking != x
; then
6751 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6754 if test x
$ac_tree_checking != x
; then
6756 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6758 TREEBROWSER
=tree-browser.o
6760 if test x
$ac_types_checking != x
; then
6762 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6766 if test x
$ac_rtl_checking != x
; then
6768 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6771 if test x
$ac_rtlflag_checking != x
; then
6773 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6776 if test x
$ac_gc_checking != x
; then
6778 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6781 if test x
$ac_gc_always_collect != x
; then
6783 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6786 if test x
$ac_fold_checking != x
; then
6788 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6791 valgrind_path_defines
=
6794 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6795 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6803 if test x
$ac_valgrind_checking != x
; then
6804 # It is certainly possible that there's valgrind but no valgrind.h.
6805 # GCC relies on making annotations so we must have both.
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6807 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #include <valgrind/memcheck.h>
6811 #ifndef VALGRIND_DISCARD
6812 #error VALGRIND_DISCARD not defined
6815 if ac_fn_c_try_cpp
"$LINENO"; then :
6816 gcc_cv_header_valgrind_memcheck_h
=yes
6818 gcc_cv_header_valgrind_memcheck_h
=no
6820 rm -f conftest.err conftest.
$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6822 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6824 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <memcheck.h>
6828 #ifndef VALGRIND_DISCARD
6829 #error VALGRIND_DISCARD not defined
6832 if ac_fn_c_try_cpp
"$LINENO"; then :
6833 gcc_cv_header_memcheck_h
=yes
6835 gcc_cv_header_memcheck_h
=no
6837 rm -f conftest.err conftest.
$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6839 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6841 # Prepare PATH_SEPARATOR.
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6844 echo "#! /bin/sh" >conf$$.sh
6845 echo "exit 0" >>conf$$.sh
6847 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6855 # Find out how to test for executable files. Don't use a zero-byte file,
6856 # as systems may use methods other than mode bits to determine executability.
6857 cat >conf$$.
file <<_ASEOF
6861 chmod +x conf$$.
file
6862 if test -x conf$$.
file >/dev
/null
2>&1; then
6863 ac_executable_p
="test -x"
6865 ac_executable_p
="test -f"
6869 # Extract the first word of "valgrind", so it can be a program name with args.
6870 set dummy valgrind
; ac_word
=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6876 case "$valgrind_path" in
6878 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6881 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6882 for ac_dir
in $PATH; do
6884 test -z "$ac_dir" && ac_dir
=.
6885 for ac_exec_ext
in '' $ac_executable_extensions; do
6886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6887 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6888 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6898 valgrind_path
="$ac_cv_path_valgrind_path"
6899 if test -n "$valgrind_path"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6901 $as_echo "$valgrind_path" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6907 if test "x$valgrind_path" = "x" \
6908 ||
(test $have_valgrind_h = no \
6909 && test $gcc_cv_header_memcheck_h = no \
6910 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6911 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6913 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6914 valgrind_command
="$valgrind_path -q"
6916 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6918 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6920 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6923 if test $gcc_cv_header_memcheck_h = yes; then
6925 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6932 # Enable code coverage collection
6933 # Check whether --enable-coverage was given.
6934 if test "${enable_coverage+set}" = set; then :
6935 enableval
=$enable_coverage; case "${enableval}" in
6937 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6940 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6943 # a.k.a. --disable-coverage
6947 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6956 # Check whether --enable-gather-detailed-mem-stats was given.
6957 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6958 enableval
=$enable_gather_detailed_mem_stats;
6960 enable_gather_detailed_mem_stats
=no
6963 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6965 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6969 # -------------------------------
6970 # Miscenalleous configure options
6971 # -------------------------------
6973 # See if we are building gcc with C++.
6974 # Check whether --enable-build-with-cxx was given.
6975 if test "${enable_build_with_cxx+set}" = set; then :
6976 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6978 ENABLE_BUILD_WITH_CXX
=no
6982 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6984 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6990 # Check whether --with-stabs was given.
6991 if test "${with_stabs+set}" = set; then :
6992 withval
=$with_stabs; stabs
="$with_stabs"
6998 # Determine whether or not multilibs are enabled.
6999 # Check whether --enable-multilib was given.
7000 if test "${enable_multilib+set}" = set; then :
7001 enableval
=$enable_multilib;
7008 # Enable __cxa_atexit for C++.
7009 # Check whether --enable-__cxa_atexit was given.
7010 if test "${enable___cxa_atexit+set}" = set; then :
7011 enableval
=$enable___cxa_atexit;
7015 # Enable C extension for decimal float if target supports it.
7017 # Check whether --enable-decimal-float was given.
7018 if test "${enable_decimal_float+set}" = set; then :
7019 enableval
=$enable_decimal_float;
7020 case $enable_decimal_float in
7021 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7022 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7023 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7029 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7030 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7032 enable_decimal_float
=yes
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7036 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7037 enable_decimal_float
=no
7044 # x86's use BID format instead of DPD
7045 case x
$enable_decimal_float in
7048 i?
86*-*-* | x86_64
*-*-*)
7049 enable_decimal_float
=bid
7052 enable_decimal_float
=dpd
7055 default_decimal_float
=$enable_decimal_float
7058 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7059 # dependency on libdecnumber.
7060 default_decimal_float
=dpd
7067 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7069 cat >>confdefs.h
<<_ACEOF
7070 #define ENABLE_DECIMAL_FLOAT $dfp
7074 # Use default_decimal_float for dependency.
7075 enable_decimal_float
=$default_decimal_float
7077 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7079 cat >>confdefs.h
<<_ACEOF
7080 #define ENABLE_DECIMAL_BID_FORMAT $bid
7084 # Enable C extension for fixed-point arithmetic.
7085 # Check whether --enable-fixed-point was given.
7086 if test "${enable_fixed_point+set}" = set; then :
7087 enableval
=$enable_fixed_point;
7092 enable_fixed_point
=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7099 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7100 enable_fixed_point
=no
7103 enable_fixed_point
=yes
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7109 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7110 enable_fixed_point
=no
7118 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7120 cat >>confdefs.h
<<_ACEOF
7121 #define ENABLE_FIXED_POINT $fixedpoint
7126 # Pass with no value to take the default
7127 # Pass with a value to specify a thread package
7128 # Check whether --enable-threads was given.
7129 if test "${enable_threads+set}" = set; then :
7130 enableval
=$enable_threads;
7136 # Check whether --enable-tls was given.
7137 if test "${enable_tls+set}" = set; then :
7138 enableval
=$enable_tls;
7141 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7142 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7150 # Check whether --enable-objc-gc was given.
7151 if test "${enable_objc_gc+set}" = set; then :
7152 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7163 # Check whether --with-dwarf2 was given.
7164 if test "${with_dwarf2+set}" = set; then :
7165 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7171 # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173 enableval
=$enable_shared;
7174 case $enable_shared in
7178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7179 for pkg
in $enableval; do
7180 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7195 # Check whether --with-native-system-header-dir was given.
7196 if test "${with_native_system_header_dir+set}" = set; then :
7197 withval
=$with_native_system_header_dir;
7198 case ${with_native_system_header_dir} in
7199 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7200 /* |
[A-Za-z
]:[\\/]*) ;;
7201 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7203 configured_native_system_header_dir
="${withval}"
7206 configured_native_system_header_dir
=
7211 # Check whether --with-build-sysroot was given.
7212 if test "${with_build_sysroot+set}" = set; then :
7213 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7214 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7217 SYSROOT_CFLAGS_FOR_TARGET
=
7223 # Check whether --with-sysroot was given.
7224 if test "${with_sysroot+set}" = set; then :
7225 withval
=$with_sysroot;
7226 case ${with_sysroot} in
7227 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7228 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7231 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7232 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7234 if test "x$prefix" = xNONE
; then
7235 test_prefix
=/usr
/local
7239 if test "x$exec_prefix" = xNONE
; then
7240 test_exec_prefix
=$test_prefix
7242 test_exec_prefix
=$exec_prefix
7244 case ${TARGET_SYSTEM_ROOT} in
7245 "${test_prefix}"|
"${test_prefix}/"*|\
7246 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7247 '${prefix}'|
'${prefix}/'*|\
7248 '${exec_prefix}'|
'${exec_prefix}/'*)
7249 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7250 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7257 TARGET_SYSTEM_ROOT_DEFINE
=
7258 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7267 # Check whether --with-specs was given.
7268 if test "${with_specs+set}" = set; then :
7269 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7279 # Check whether --with-pkgversion was given.
7280 if test "${with_pkgversion+set}" = set; then :
7281 withval
=$with_pkgversion; case "$withval" in
7282 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7284 *) PKGVERSION
="($withval) " ;;
7295 # Check whether --with-bugurl was given.
7296 if test "${with_bugurl+set}" = set; then :
7297 withval
=$with_bugurl; case "$withval" in
7298 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7301 *) BUGURL
="$withval"
7305 BUGURL
="http://gcc.gnu.org/bugs.html"
7315 REPORT_BUGS_TO
="<$BUGURL>"
7316 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7323 # Sanity check enable_languages in case someone does not run the toplevel
7324 # configure # script.
7325 # Check whether --enable-languages was given.
7326 if test "${enable_languages+set}" = set; then :
7327 enableval
=$enable_languages; case ,${enable_languages}, in
7329 # go safe -- we cannot be much sure without the toplevel
7331 # analysis of which target libs are present and usable
7335 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7340 enable_languages
=c
,${enable_languages}
7349 # Check whether --with-multilib-list was given.
7350 if test "${with_multilib_list+set}" = set; then :
7351 withval
=$with_multilib_list; :
7353 with_multilib_list
=default
7357 # -------------------------
7358 # Checks for other programs
7359 # -------------------------
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7364 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7365 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7366 $as_echo_n "(cached) " >&6
7368 cat >conftest.
make <<\_ACEOF
7371 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7373 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7376 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7378 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7382 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 SET_MAKE
="MAKE=${MAKE-make}"
7393 # Find some useful tools
7394 for ac_prog
in gawk mawk nawk
awk
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy
$ac_prog; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_AWK+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$AWK"; then
7404 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_AWK
="$ac_prog"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 if test -n "$AWK"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7426 $as_echo "$AWK" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7433 test -n "$AWK" && break
7436 # We need awk to create options.c and options.h.
7437 # Bail out if it's missing.
7439 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7443 $as_echo_n "checking whether ln -s works... " >&6; }
7444 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7447 rm -f conftestdata_t
7448 echo >conftestdata_f
7449 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7451 gcc_cv_prog_LN_S
="ln -s"
7453 if ln conftestdata_f conftestdata_t
2>/dev
/null
7457 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7459 gcc_cv_prog_LN_S
="cp -p"
7465 rm -f conftestdata_f conftestdata_t
7468 LN_S
="$gcc_cv_prog_LN_S"
7469 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }
7473 if test "$gcc_cv_prog_LN_S" = "ln"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7475 $as_echo "no, using ln" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7478 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7483 $as_echo_n "checking whether ln works... " >&6; }
7484 if test "${acx_cv_prog_LN+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7487 rm -f conftestdata_t
7488 echo >conftestdata_f
7489 if ln conftestdata_f conftestdata_t
2>/dev
/null
7495 rm -f conftestdata_f conftestdata_t
7498 if test $acx_cv_prog_LN = no
; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7501 $as_echo "no, using $LN" >&6; }
7503 LN
="$acx_cv_prog_LN"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505 $as_echo "yes" >&6; }
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7510 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -n "$RANLIB"; then
7517 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir
=.
7524 for ac_exec_ext
in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 RANLIB
=$ac_cv_prog_RANLIB
7537 if test -n "$RANLIB"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7539 $as_echo "$RANLIB" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7547 if test -z "$ac_cv_prog_RANLIB"; then
7548 ac_ct_RANLIB
=$RANLIB
7549 # Extract the first word of "ranlib", so it can be a program name with args.
7550 set dummy ranlib
; ac_word
=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$ac_ct_RANLIB"; then
7557 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir
=.
7564 for ac_exec_ext
in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7577 if test -n "$ac_ct_RANLIB"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7579 $as_echo "$ac_ct_RANLIB" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7585 if test "x$ac_ct_RANLIB" = x
; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned
=yes ;;
7594 RANLIB
=$ac_ct_RANLIB
7597 RANLIB
="$ac_cv_prog_RANLIB"
7603 # Find a good install program. We prefer a C program (faster),
7604 # so one script is as good as another. But avoid the broken or
7605 # incompatible versions:
7606 # SysV /etc/install, /usr/sbin/install
7607 # SunOS /usr/etc/install
7608 # IRIX /sbin/install
7610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7612 # ./install, which can be erroneously created by make from ./install.sh.
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7614 $as_echo_n "checking for a BSD compatible install... " >&6; }
7615 if test -z "$INSTALL"; then
7616 if test "${ac_cv_path_install+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7619 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7620 for ac_dir
in $PATH; do
7621 # Account for people who put trailing slashes in PATH elements.
7623 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7625 # OSF1 and SCO ODT 3.0 have their own names for install.
7626 for ac_prog
in ginstall scoinst
install; do
7627 if test -f $ac_dir/$ac_prog; then
7628 if test $ac_prog = install &&
7629 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7630 # AIX install. It has an incompatible calling convention.
7631 # OSF/1 installbsd also uses dspmsg, but is usable.
7634 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7645 if test "${ac_cv_path_install+set}" = set; then
7646 INSTALL
="$ac_cv_path_install"
7648 # As a last resort, use the slow shell script. We don't cache a
7649 # path for INSTALL within a source directory, because that will
7650 # break other packages using the cache if that directory is
7651 # removed, or if the path is relative.
7652 INSTALL
="$ac_install_sh"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7656 $as_echo "$INSTALL" >&6; }
7658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7659 # It thinks the first close brace ends the variable substitution.
7660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7662 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7665 # See if cmp has --ignore-initial.
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7667 $as_echo_n "checking for cmp's capabilities... " >&6; }
7668 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7673 gcc_cv_prog_cmp_skip
=slowcompare
7674 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7675 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7678 gcc_cv_prog_cmp_skip
=gnucompare
7681 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7682 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7683 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7686 gcc_cv_prog_cmp_skip
=fastcompare
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7694 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7695 make_compare_target
=$gcc_cv_prog_cmp_skip
7699 # See if we have the mktemp command.
7700 # Extract the first word of "mktemp", so it can be a program name with args.
7701 set dummy mktemp
; ac_word
=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7707 if test -n "$have_mktemp_command"; then
7708 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir
=.
7715 for ac_exec_ext
in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_prog_have_mktemp_command
="yes"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7728 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7729 if test -n "$have_mktemp_command"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7731 $as_echo "$have_mktemp_command" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7739 # See if makeinfo has been installed and is modern enough
7740 # that we can use it.
7742 # Extract the first word of "makeinfo", so it can be a program name with args.
7743 set dummy makeinfo
; ac_word
=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7749 if test -n "$MAKEINFO"; then
7750 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir
=.
7757 for ac_exec_ext
in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_prog_MAKEINFO
="makeinfo"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 MAKEINFO
=$ac_cv_prog_MAKEINFO
7770 if test -n "$MAKEINFO"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7772 $as_echo "$MAKEINFO" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7779 if test -n "$MAKEINFO"; then
7780 # Found it, now check the version.
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7782 $as_echo_n "checking for modern makeinfo... " >&6; }
7783 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7786 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7787 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7789 case $ac_prog_version in
7790 '') gcc_cv_prog_makeinfo_modern
=no
;;
7791 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7792 *) gcc_cv_prog_makeinfo_modern
=no
;;
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7797 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7799 gcc_cv_prog_makeinfo_modern
=no
7801 if test $gcc_cv_prog_makeinfo_modern = no
; then
7802 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7805 if test $gcc_cv_prog_makeinfo_modern = no
; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7807 *** Makeinfo is missing or too old.
7808 *** Info documentation will not be built." >&5
7809 $as_echo "$as_me: WARNING:
7810 *** Makeinfo is missing or too old.
7811 *** Info documentation will not be built." >&2;}
7818 # Is pod2man recent enough to regenerate manpages?
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7820 $as_echo_n "checking for recent Pod::Man... " >&6; }
7821 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7823 $as_echo "yes" >&6; }
7824 GENERATED_MANPAGES
=generated-manpages
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7832 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7837 # Extract the first word of "$ac_prog", so it can be a program name with args.
7838 set dummy
$ac_prog; ac_word
=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_FLEX+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7844 if test -n "$FLEX"; then
7845 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir
=.
7852 for ac_exec_ext
in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_FLEX
="$ac_prog"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 FLEX
=$ac_cv_prog_FLEX
7865 if test -n "$FLEX"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7867 $as_echo "$FLEX" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7874 test -n "$FLEX" && break
7876 test -n "$FLEX" || FLEX
="$MISSING flex"
7880 for ac_prog
in bison
7882 # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy
$ac_prog; ac_word
=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_BISON+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7889 if test -n "$BISON"; then
7890 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7896 test -z "$as_dir" && as_dir
=.
7897 for ac_exec_ext
in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_BISON
="$ac_prog"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 BISON
=$ac_cv_prog_BISON
7910 if test -n "$BISON"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7912 $as_echo "$BISON" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7919 test -n "$BISON" && break
7921 test -n "$BISON" || BISON
="$MISSING bison"
7924 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7925 # check for build == host before using them.
7928 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7929 && test -d ..
/binutils
; then
7930 NM
='${objdir}/../binutils/nm-new'
7932 # Extract the first word of "nm", so it can be a program name with args.
7933 set dummy nm
; ac_word
=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_NM+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$NM"; then
7940 ac_cv_prog_NM
="$NM" # Let the user override the test.
7942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir
=.
7947 for ac_exec_ext
in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7961 if test -n "$NM"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7963 $as_echo "$NM" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7973 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7974 && test -d ..
/binutils
; then
7975 AR
='${objdir}/../binutils/ar'
7977 # Extract the first word of "ar", so it can be a program name with args.
7978 set dummy
ar; ac_word
=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if test "${ac_cv_prog_AR+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7984 if test -n "$AR"; then
7985 ac_cv_prog_AR
="$AR" # Let the user override the test.
7987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir
=.
7992 for ac_exec_ext
in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8006 if test -n "$AR"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8008 $as_echo "$AR" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8018 # --------------------
8019 # Checks for C headers
8020 # --------------------
8022 # Need to reject headers which give warnings, so that the -Werror bootstrap
8023 # works later. *sigh* This needs to come before all header checks.
8025 ac_c_preproc_warn_flag
=yes
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8028 $as_echo_n "checking for ANSI C header files... " >&6; }
8029 if test "${ac_cv_header_stdc+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8047 if ac_fn_c_try_compile
"$LINENO"; then :
8048 ac_cv_header_stdc
=yes
8050 ac_cv_header_stdc
=no
8052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8054 if test $ac_cv_header_stdc = yes; then
8055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062 $EGREP "memchr" >/dev
/null
2>&1; then :
8065 ac_cv_header_stdc
=no
8071 if test $ac_cv_header_stdc = yes; then
8072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8079 $EGREP "free" >/dev
/null
2>&1; then :
8082 ac_cv_header_stdc
=no
8088 if test $ac_cv_header_stdc = yes; then
8089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8090 if test "$cross_compiling" = yes; then :
8093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8097 #if ((' ' & 0x0FF) == 0x020)
8098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8101 # define ISLOWER(c) \
8102 (('a' <= (c) && (c) <= 'i') \
8103 || ('j' <= (c) && (c) <= 'r') \
8104 || ('s' <= (c) && (c) <= 'z'))
8105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8113 for (i = 0; i < 256; i++)
8114 if (XOR (islower (i), ISLOWER (i))
8115 || toupper (i) != TOUPPER (i))
8120 if ac_fn_c_try_run
"$LINENO"; then :
8123 ac_cv_header_stdc
=no
8125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8132 $as_echo "$ac_cv_header_stdc" >&6; }
8133 if test $ac_cv_header_stdc = yes; then
8135 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8140 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8141 if test "${ac_cv_header_time+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 #include <sys/types.h>
8147 #include <sys/time.h>
8153 if ((struct tm *) 0)
8159 if ac_fn_c_try_compile
"$LINENO"; then :
8160 ac_cv_header_time
=yes
8162 ac_cv_header_time
=no
8164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8167 $as_echo "$ac_cv_header_time" >&6; }
8168 if test $ac_cv_header_time = yes; then
8170 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8175 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8176 if test "${gcc_cv_header_string+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8182 #include <strings.h>
8191 if ac_fn_c_try_compile
"$LINENO"; then :
8192 gcc_cv_header_string
=yes
8194 gcc_cv_header_string
=no
8196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8199 $as_echo "$gcc_cv_header_string" >&6; }
8200 if test $gcc_cv_header_string = yes; then
8202 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8207 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8208 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213 #include <sys/types.h>
8214 #include <sys/wait.h>
8216 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8219 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8227 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8232 if ac_fn_c_try_compile
"$LINENO"; then :
8233 ac_cv_header_sys_wait_h
=yes
8235 ac_cv_header_sys_wait_h
=no
8237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8240 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8241 if test $ac_cv_header_sys_wait_h = yes; then
8243 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8247 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8248 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8249 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8250 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8252 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8254 eval as_val
=\$
$as_ac_Header
8255 if test "x$as_val" = x
""yes; then :
8256 cat >>confdefs.h
<<_ACEOF
8257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8264 # Check for thread headers.
8265 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8266 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8272 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8273 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8280 # These tests can't be done till we know if we have limits.h.
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8282 $as_echo_n "checking for CHAR_BIT... " >&6; }
8283 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 #ifdef HAVE_LIMITS_H
8295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296 $EGREP "found" >/dev
/null
2>&1; then :
8297 gcc_cv_decl_char_bit
=yes
8299 gcc_cv_decl_char_bit
=no
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8306 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8307 if test $gcc_cv_decl_char_bit = no
; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8309 $as_echo_n "checking number of bits in a byte... " >&6; }
8310 if test "${gcc_cv_c_nbby+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8315 while test $i -lt 65; do
8316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8323 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8324 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8330 if ac_fn_c_try_compile
"$LINENO"; then :
8331 gcc_cv_c_nbby
=$i; break
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8340 $as_echo "$gcc_cv_c_nbby" >&6; }
8341 if test $gcc_cv_c_nbby = failed
; then
8342 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8345 cat >>confdefs.h
<<_ACEOF
8346 #define CHAR_BIT $gcc_cv_c_nbby
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8352 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8353 if test "${ac_cv_c_bigendian+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8356 ac_cv_c_bigendian
=unknown
8357 # See if we're dealing with a universal compiler.
8358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 #ifndef __APPLE_CC__
8361 not a universal capable compiler
8366 if ac_fn_c_try_compile
"$LINENO"; then :
8368 # Check for potential -arch flags. It is not universal unless
8369 # there are at least two -arch flags with different values.
8372 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8373 if test -n "$ac_prev"; then
8375 i?
86 | x86_64 | ppc | ppc64
)
8376 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8379 ac_cv_c_bigendian
=universal
8385 elif test "x$ac_word" = "x-arch"; then
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 if test $ac_cv_c_bigendian = unknown
; then
8392 # See if sys/param.h defines the BYTE_ORDER macro.
8393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <sys/types.h>
8396 #include <sys/param.h>
8401 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8402 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8411 if ac_fn_c_try_compile
"$LINENO"; then :
8412 # It does; now see whether it defined to BIG_ENDIAN or not.
8413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 #include <sys/types.h>
8416 #include <sys/param.h>
8421 #if BYTE_ORDER != BIG_ENDIAN
8429 if ac_fn_c_try_compile
"$LINENO"; then :
8430 ac_cv_c_bigendian
=yes
8432 ac_cv_c_bigendian
=no
8434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8438 if test $ac_cv_c_bigendian = unknown
; then
8439 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8447 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8455 if ac_fn_c_try_compile
"$LINENO"; then :
8456 # It does; now see whether it defined to _BIG_ENDIAN or not.
8457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8472 if ac_fn_c_try_compile
"$LINENO"; then :
8473 ac_cv_c_bigendian
=yes
8475 ac_cv_c_bigendian
=no
8477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8481 if test $ac_cv_c_bigendian = unknown
; then
8482 # Compile a test program.
8483 if test "$cross_compiling" = yes; then :
8484 # Try to guess by grepping values from an object file.
8485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 short int ascii_mm[] =
8488 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8489 short int ascii_ii[] =
8490 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8491 int use_ascii (int i) {
8492 return ascii_mm[i] + ascii_ii[i];
8494 short int ebcdic_ii[] =
8495 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8496 short int ebcdic_mm[] =
8497 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8498 int use_ebcdic (int i) {
8499 return ebcdic_mm[i] + ebcdic_ii[i];
8506 return use_ascii (foo) == use_ebcdic (foo);
8511 if ac_fn_c_try_compile
"$LINENO"; then :
8512 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8513 ac_cv_c_bigendian
=yes
8515 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8516 if test "$ac_cv_c_bigendian" = unknown
; then
8517 ac_cv_c_bigendian
=no
8519 # finding both strings is unlikely to happen, but who knows?
8520 ac_cv_c_bigendian
=unknown
8524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528 $ac_includes_default
8533 /* Are we little or big endian? From Harbison&Steele. */
8537 char c[sizeof (long int)];
8540 return u.c[sizeof (long int) - 1] == 1;
8546 if ac_fn_c_try_run
"$LINENO"; then :
8547 ac_cv_c_bigendian
=no
8549 ac_cv_c_bigendian
=yes
8551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8558 $as_echo "$ac_cv_c_bigendian" >&6; }
8559 case $ac_cv_c_bigendian in #(
8561 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8567 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8571 as_fn_error
"unknown endianness
8572 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8576 # ----------------------
8577 # Checks for C++ headers
8578 # ----------------------
8581 ac_cpp
='$CXXCPP $CPPFLAGS'
8582 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8586 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8587 if test -z "$CXXCPP"; then
8588 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8591 # Double quotes because CXXCPP needs to be expanded
8592 for CXXCPP
in "$CXX -E" "/lib/cpp"
8595 for ac_cxx_preproc_warn_flag
in '' yes
8597 # Use a header file that comes with gcc, so configuring glibc
8598 # with a fresh cross-compiler works.
8599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 # <limits.h> exists even on freestanding compilers.
8601 # On the NeXT, cc -E runs the code through the compiler's parser,
8602 # not just through cpp. "Syntax error" is here to catch this case.
8603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8606 # include <limits.h>
8608 # include <assert.h>
8612 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8615 # Broken: fails on valid input.
8618 rm -f conftest.err conftest.
$ac_ext
8620 # OK, works on sane cases. Now check whether nonexistent headers
8621 # can be detected and how.
8622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <ac_nonexistent.h>
8626 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8627 # Broken: success on invalid input.
8630 # Passes both tests.
8634 rm -f conftest.err conftest.
$ac_ext
8637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8638 rm -f conftest.err conftest.
$ac_ext
8639 if $ac_preproc_ok; then :
8644 ac_cv_prog_CXXCPP
=$CXXCPP
8647 CXXCPP
=$ac_cv_prog_CXXCPP
8649 ac_cv_prog_CXXCPP
=$CXXCPP
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8652 $as_echo "$CXXCPP" >&6; }
8654 for ac_cxx_preproc_warn_flag
in '' yes
8656 # Use a header file that comes with gcc, so configuring glibc
8657 # with a fresh cross-compiler works.
8658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8659 # <limits.h> exists even on freestanding compilers.
8660 # On the NeXT, cc -E runs the code through the compiler's parser,
8661 # not just through cpp. "Syntax error" is here to catch this case.
8662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8665 # include <limits.h>
8667 # include <assert.h>
8671 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8674 # Broken: fails on valid input.
8677 rm -f conftest.err conftest.
$ac_ext
8679 # OK, works on sane cases. Now check whether nonexistent headers
8680 # can be detected and how.
8681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 #include <ac_nonexistent.h>
8685 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8686 # Broken: success on invalid input.
8689 # Passes both tests.
8693 rm -f conftest.err conftest.
$ac_ext
8696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8697 rm -f conftest.err conftest.
$ac_ext
8698 if $ac_preproc_ok; then :
8701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8704 See \`config.log' for more details." >&5
8705 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8706 See \`config.log' for more details." >&2;}; }
8710 ac_cpp
='$CPP $CPPFLAGS'
8711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8717 ac_cpp
='$CXXCPP $CPPFLAGS'
8718 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8725 for ac_header
in unordered_map
8727 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8728 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8729 cat >>confdefs.h
<<_ACEOF
8730 #define HAVE_UNORDERED_MAP 1
8736 for ac_header
in tr1/unordered_map
8738 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8739 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8740 cat >>confdefs.h
<<_ACEOF
8741 #define HAVE_TR1_UNORDERED_MAP 1
8747 for ac_header
in ext
/hash_map
8749 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8750 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8751 cat >>confdefs.h
<<_ACEOF
8752 #define HAVE_EXT_HASH_MAP 1
8760 ac_cpp
='$CPP $CPPFLAGS'
8761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8771 # These libraries may be used by collect2.
8772 # We may need a special search path to get them linked.
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8774 $as_echo_n "checking for collect2 libraries... " >&6; }
8775 if test "${gcc_cv_collect2_libs+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
8779 for libs
in '' -lld -lmld \
8780 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8781 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8787 /* Override any GCC internal prototype to avoid an error.
8788 Use char because int might match the return type of a GCC
8789 builtin and then its argument prototype would still apply. */
8802 if ac_fn_c_try_link
"$LINENO"; then :
8803 gcc_cv_collect2_libs
="$libs"; break
8805 rm -f core conftest.err conftest.
$ac_objext \
8806 conftest
$ac_exeext conftest.
$ac_ext
8809 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8812 $as_echo "$gcc_cv_collect2_libs" >&6; }
8813 case $gcc_cv_collect2_libs in
8815 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8819 # When building Ada code on Alpha, we need exc_resume which is usually in
8820 # -lexc. So test for it.
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8824 $as_echo_n "checking for library containing exc_resume... " >&6; }
8825 if test "${ac_cv_search_exc_resume+set}" = set; then :
8826 $as_echo_n "(cached) " >&6
8828 ac_func_search_save_LIBS
=$LIBS
8829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8832 /* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8842 return exc_resume ();
8847 for ac_lib
in '' exc
; do
8848 if test -z "$ac_lib"; then
8849 ac_res
="none required"
8852 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8854 if ac_fn_c_try_link
"$LINENO"; then :
8855 ac_cv_search_exc_resume
=$ac_res
8857 rm -f core conftest.err conftest.
$ac_objext \
8859 if test "${ac_cv_search_exc_resume+set}" = set; then :
8863 if test "${ac_cv_search_exc_resume+set}" = set; then :
8866 ac_cv_search_exc_resume
=no
8869 LIBS
=$ac_func_search_save_LIBS
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8872 $as_echo "$ac_cv_search_exc_resume" >&6; }
8873 ac_res
=$ac_cv_search_exc_resume
8874 if test "$ac_res" != no
; then :
8875 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8883 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8887 $as_echo_n "checking for library containing kstat_open... " >&6; }
8888 if test "${ac_cv_search_kstat_open+set}" = set; then :
8889 $as_echo_n "(cached) " >&6
8891 ac_func_search_save_LIBS
=$LIBS
8892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8895 /* Override any GCC internal prototype to avoid an error.
8896 Use char because int might match the return type of a GCC
8897 builtin and then its argument prototype would still apply. */
8905 return kstat_open ();
8910 for ac_lib
in '' kstat
; do
8911 if test -z "$ac_lib"; then
8912 ac_res
="none required"
8915 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8917 if ac_fn_c_try_link
"$LINENO"; then :
8918 ac_cv_search_kstat_open
=$ac_res
8920 rm -f core conftest.err conftest.
$ac_objext \
8922 if test "${ac_cv_search_kstat_open+set}" = set; then :
8926 if test "${ac_cv_search_kstat_open+set}" = set; then :
8929 ac_cv_search_kstat_open
=no
8932 LIBS
=$ac_func_search_save_LIBS
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8935 $as_echo "$ac_cv_search_kstat_open" >&6; }
8936 ac_res
=$ac_cv_search_kstat_open
8937 if test "$ac_res" != no
; then :
8938 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8942 EXTRA_GCC_LIBS
="$LIBS"
8946 # Some systems put ldexp and frexp in libm instead of libc; assume
8947 # they're both in the same place. jcf-dump needs them.
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8951 $as_echo_n "checking for library containing ldexp... " >&6; }
8952 if test "${ac_cv_search_ldexp+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8955 ac_func_search_save_LIBS
=$LIBS
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 for ac_lib
in '' m
; do
8975 if test -z "$ac_lib"; then
8976 ac_res
="none required"
8979 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8981 if ac_fn_c_try_link
"$LINENO"; then :
8982 ac_cv_search_ldexp
=$ac_res
8984 rm -f core conftest.err conftest.
$ac_objext \
8986 if test "${ac_cv_search_ldexp+set}" = set; then :
8990 if test "${ac_cv_search_ldexp+set}" = set; then :
8993 ac_cv_search_ldexp
=no
8996 LIBS
=$ac_func_search_save_LIBS
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8999 $as_echo "$ac_cv_search_ldexp" >&6; }
9000 ac_res
=$ac_cv_search_ldexp
9001 if test "$ac_res" != no
; then :
9002 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9010 # Use <inttypes.h> only if it exists,
9011 # doesn't clash with <sys/types.h>, and declares intmax_t.
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9013 $as_echo_n "checking for inttypes.h... " >&6; }
9014 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
9017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 #include <sys/types.h>
9020 #include <inttypes.h>
9029 if ac_fn_c_try_compile
"$LINENO"; then :
9030 gcc_cv_header_inttypes_h
=yes
9032 gcc_cv_header_inttypes_h
=no
9034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9038 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9039 if test $gcc_cv_header_inttypes_h = yes; then
9041 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9047 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9048 sysconf strsignal getrusage nl_langinfo \
9049 gettimeofday mbstowcs wcswidth mmap setlocale \
9050 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
9052 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9053 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9054 eval as_val
=\$
$as_ac_var
9055 if test "x$as_val" = x
""yes; then :
9056 cat >>confdefs.h
<<_ACEOF
9057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9064 if test x
$ac_cv_func_mbstowcs = xyes
; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9066 $as_echo_n "checking whether mbstowcs works... " >&6; }
9067 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9070 if test "$cross_compiling" = yes; then :
9071 gcc_cv_func_mbstowcs_works
=yes
9073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9082 if ac_fn_c_try_run
"$LINENO"; then :
9083 gcc_cv_func_mbstowcs_works
=yes
9085 gcc_cv_func_mbstowcs_works
=no
9087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9093 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9094 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9096 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9101 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9102 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9106 cat >>confdefs.h
<<_ACEOF
9112 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9113 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9117 cat >>confdefs.h
<<_ACEOF
9118 #define caddr_t char *
9125 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9126 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9127 gcc_header_sys_mman_h
=yes
9129 gcc_header_sys_mman_h
=no
9132 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9133 if test "x$ac_cv_func_mmap" = x
""yes; then :
9139 if test "$gcc_header_sys_mman_h" != yes \
9140 ||
test "$gcc_func_mmap" != yes; then
9141 gcc_cv_func_mmap_file
=no
9142 gcc_cv_func_mmap_dev_zero
=no
9143 gcc_cv_func_mmap_anon
=no
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9146 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9147 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9150 # Add a system to this blacklist if
9151 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9152 # memory area containing the same data that you'd get if you applied
9153 # read() to the same fd. The only system known to have a problem here
9154 # is VMS, where text files have record structure.
9157 gcc_cv_func_mmap_file
=no
;;
9159 gcc_cv_func_mmap_file
=yes;;
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9163 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9165 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9166 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9169 # Add a system to this blacklist if it has mmap() but /dev/zero
9170 # does not exist, or if mmapping /dev/zero does not give anonymous
9171 # zeroed pages with both the following properties:
9172 # 1. If you map N consecutive pages in with one call, and then
9173 # unmap any subset of those pages, the pages that were not
9174 # explicitly unmapped remain accessible.
9175 # 2. If you map two adjacent blocks of memory and then unmap them
9176 # both at once, they must both go away.
9177 # Systems known to be in this category are Windows (all variants),
9180 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9181 gcc_cv_func_mmap_dev_zero
=no
;;
9183 gcc_cv_func_mmap_dev_zero
=yes;;
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9187 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9189 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9191 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9192 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <sys/types.h>
9198 #include <sys/mman.h>
9201 #ifndef MAP_ANONYMOUS
9202 #define MAP_ANONYMOUS MAP_ANON
9208 int n = MAP_ANONYMOUS;
9213 if ac_fn_c_try_compile
"$LINENO"; then :
9214 gcc_cv_decl_map_anon
=yes
9216 gcc_cv_decl_map_anon
=no
9218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9221 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9223 if test $gcc_cv_decl_map_anon = no
; then
9224 gcc_cv_func_mmap_anon
=no
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9227 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9228 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9231 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9232 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9233 # doesn't give anonymous zeroed pages with the same properties listed
9234 # above for use of /dev/zero.
9235 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9237 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9238 gcc_cv_func_mmap_anon
=no
;;
9240 gcc_cv_func_mmap_anon
=yes;;
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9244 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9248 if test $gcc_cv_func_mmap_file = yes; then
9250 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9253 if test $gcc_cv_func_mmap_dev_zero = yes; then
9255 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9258 if test $gcc_cv_func_mmap_anon = yes; then
9260 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9267 # Under VMS, vfork works very differently than on Unix. The standard test
9268 # won't work, and it isn't easily adaptable. It makes more sense to
9270 ac_cv_func_vfork_works
=yes
9273 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9274 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9278 cat >>confdefs.h
<<_ACEOF
9284 for ac_header
in vfork.h
9286 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9287 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9288 cat >>confdefs.h
<<_ACEOF
9289 #define HAVE_VFORK_H 1
9295 for ac_func
in fork vfork
9297 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9298 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9299 eval as_val
=\$
$as_ac_var
9300 if test "x$as_val" = x
""yes; then :
9301 cat >>confdefs.h
<<_ACEOF
9302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9308 if test "x$ac_cv_func_fork" = xyes
; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9310 $as_echo_n "checking for working fork... " >&6; }
9311 if test "${ac_cv_func_fork_works+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9314 if test "$cross_compiling" = yes; then :
9315 ac_cv_func_fork_works
=cross
9317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 $ac_includes_default
9324 /* By Ruediger Kuhlmann. */
9331 if ac_fn_c_try_run
"$LINENO"; then :
9332 ac_cv_func_fork_works
=yes
9334 ac_cv_func_fork_works
=no
9336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9342 $as_echo "$ac_cv_func_fork_works" >&6; }
9345 ac_cv_func_fork_works
=$ac_cv_func_fork
9347 if test "x$ac_cv_func_fork_works" = xcross
; then
9349 *-*-amigaos* |
*-*-msdosdjgpp*)
9350 # Override, as these systems have only a dummy fork() stub
9351 ac_cv_func_fork_works
=no
9354 ac_cv_func_fork_works
=yes
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9358 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9360 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9361 if test "x$ac_cv_func_vfork" = xyes
; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9363 $as_echo_n "checking for working vfork... " >&6; }
9364 if test "${ac_cv_func_vfork_works+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9367 if test "$cross_compiling" = yes; then :
9368 ac_cv_func_vfork_works
=cross
9370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372 /* Thanks to Paul Eggert for this test. */
9373 $ac_includes_default
9374 #include <sys/wait.h>
9378 /* On some sparc systems, changes by the child to local and incoming
9379 argument registers are propagated back to the parent. The compiler
9380 is told about this with #include <vfork.h>, but some compilers
9381 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9382 static variable whose address is put into a register that is
9383 clobbered by the vfork. */
9386 sparc_address_test (int arg)
9388 sparc_address_test (arg) int arg;
9409 pid_t parent = getpid ();
9412 sparc_address_test (0);
9417 /* Here is another test for sparc vfork register problems. This
9418 test uses lots of local variables, at least as many local
9419 variables as main has allocated so far including compiler
9420 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9421 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9422 reuse the register of parent for one of the local variables,
9423 since it will think that parent can't possibly be used any more
9424 in this routine. Assigning to the local variable will thus
9425 munge parent in the parent process. */
9427 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9428 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9429 /* Convince the compiler that p..p7 are live; otherwise, it might
9430 use the same hardware register for all 8 local variables. */
9431 if (p != p1 || p != p2 || p != p3 || p != p4
9432 || p != p5 || p != p6 || p != p7)
9435 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9436 from child file descriptors. If the child closes a descriptor
9437 before it execs or exits, this munges the parent's descriptor
9438 as well. Test for this by closing stdout in the child. */
9439 _exit(close(fileno(stdout)) != 0);
9444 while (wait(&status) != child)
9447 /* Was there some problem with vforking? */
9450 /* Did the child fail? (This shouldn't happen.) */
9453 /* Did the vfork/compiler bug occur? */
9454 || parent != getpid()
9456 /* Did the file descriptor bug occur? */
9457 || fstat(fileno(stdout), &st) != 0
9462 if ac_fn_c_try_run
"$LINENO"; then :
9463 ac_cv_func_vfork_works
=yes
9465 ac_cv_func_vfork_works
=no
9467 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9468 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9473 $as_echo "$ac_cv_func_vfork_works" >&6; }
9476 if test "x$ac_cv_func_fork_works" = xcross
; then
9477 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9479 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9482 if test "x$ac_cv_func_vfork_works" = xyes
; then
9484 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9488 $as_echo "#define vfork fork" >>confdefs.h
9491 if test "x$ac_cv_func_fork_works" = xyes
; then
9493 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9498 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9499 # iconv() prototype.
9501 if test "X$prefix" = "XNONE"; then
9502 acl_final_prefix
="$ac_default_prefix"
9504 acl_final_prefix
="$prefix"
9506 if test "X$exec_prefix" = "XNONE"; then
9507 acl_final_exec_prefix
='${prefix}'
9509 acl_final_exec_prefix
="$exec_prefix"
9511 acl_save_prefix
="$prefix"
9512 prefix
="$acl_final_prefix"
9513 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9514 prefix
="$acl_save_prefix"
9517 # Check whether --with-gnu-ld was given.
9518 if test "${with_gnu_ld+set}" = set; then :
9519 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9524 # Prepare PATH_SEPARATOR.
9525 # The user is always right.
9526 if test "${PATH_SEPARATOR+set}" != set; then
9527 echo "#! /bin/sh" >conf$$.sh
9528 echo "exit 0" >>conf$$.sh
9530 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9538 if test "$GCC" = yes; then
9539 # Check if gcc -print-prog-name=ld gives a path.
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9541 $as_echo_n "checking for ld used by GCC... " >&6; }
9544 # gcc leaves a trailing carriage return which upsets mingw
9545 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9547 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9550 # Accept absolute paths.
9551 [\\/]* |
[A-Za-z
]:[\\/]*)
9552 re_direlt
='/[^/][^/]*/\.\./'
9553 # Canonicalize the path of ld
9554 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9555 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9556 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9558 test -z "$LD" && LD
="$ac_prog"
9561 # If it fails, then pretend we aren't using GCC.
9565 # If it is relative, then search for the first ld in PATH.
9569 elif test "$with_gnu_ld" = yes; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9571 $as_echo_n "checking for GNU ld... " >&6; }
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9574 $as_echo_n "checking for non-GNU ld... " >&6; }
9576 if test "${acl_cv_path_LD+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9579 if test -z "$LD"; then
9580 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9581 for ac_dir
in $PATH; do
9582 test -z "$ac_dir" && ac_dir
=.
9583 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9584 acl_cv_path_LD
="$ac_dir/$ac_prog"
9585 # Check to see if the program is GNU ld. I'd rather use --version,
9586 # but apparently some GNU ld's only accept -v.
9587 # Break only if it was the GNU/non-GNU ld that we prefer.
9588 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9589 test "$with_gnu_ld" != no
&& break
9591 test "$with_gnu_ld" != yes && break
9597 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9601 LD
="$acl_cv_path_LD"
9602 if test -n "$LD"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9604 $as_echo "$LD" >&6; }
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9609 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9612 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9615 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9616 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9617 acl_cv_prog_gnu_ld
=yes
9619 acl_cv_prog_gnu_ld
=no
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9623 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9624 with_gnu_ld
=$acl_cv_prog_gnu_ld
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9629 $as_echo_n "checking for shared library run path origin... " >&6; }
9630 if test "${acl_cv_rpath+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9634 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9635 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9642 $as_echo "$acl_cv_rpath" >&6; }
9644 libext
="$acl_cv_libext"
9645 shlibext
="$acl_cv_shlibext"
9646 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9647 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9648 hardcode_direct
="$acl_cv_hardcode_direct"
9649 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9650 # Check whether --enable-rpath was given.
9651 if test "${enable_rpath+set}" = set; then :
9652 enableval
=$enable_rpath; :
9666 acl_save_prefix
="$prefix"
9667 prefix
="$acl_final_prefix"
9668 acl_save_exec_prefix
="$exec_prefix"
9669 exec_prefix
="$acl_final_exec_prefix"
9671 eval additional_includedir
=\"$includedir\"
9672 eval additional_libdir
=\"$libdir\"
9674 exec_prefix
="$acl_save_exec_prefix"
9675 prefix
="$acl_save_prefix"
9678 # Check whether --with-libiconv-prefix was given.
9679 if test "${with_libiconv_prefix+set}" = set; then :
9680 withval
=$with_libiconv_prefix;
9681 if test "X$withval" = "Xno"; then
9684 if test "X$withval" = "X"; then
9686 acl_save_prefix
="$prefix"
9687 prefix
="$acl_final_prefix"
9688 acl_save_exec_prefix
="$exec_prefix"
9689 exec_prefix
="$acl_final_exec_prefix"
9691 eval additional_includedir
=\"$includedir\"
9692 eval additional_libdir
=\"$libdir\"
9694 exec_prefix
="$acl_save_exec_prefix"
9695 prefix
="$acl_save_prefix"
9698 additional_includedir
="$withval/include"
9699 additional_libdir
="$withval/lib"
9710 names_already_handled
=
9711 names_next_round
='iconv '
9712 while test -n "$names_next_round"; do
9713 names_this_round
="$names_next_round"
9715 for name
in $names_this_round; do
9717 for n
in $names_already_handled; do
9718 if test "$n" = "$name"; then
9723 if test -z "$already_handled"; then
9724 names_already_handled
="$names_already_handled $name"
9725 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9726 eval value
=\"\
$HAVE_LIB$uppername\"
9727 if test -n "$value"; then
9728 if test "$value" = yes; then
9729 eval value
=\"\
$LIB$uppername\"
9730 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9731 eval value
=\"\
$LTLIB$uppername\"
9732 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9741 if test $use_additional = yes; then
9742 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9743 found_dir
="$additional_libdir"
9744 found_so
="$additional_libdir/lib$name.$shlibext"
9745 if test -f "$additional_libdir/lib$name.la"; then
9746 found_la
="$additional_libdir/lib$name.la"
9749 if test -f "$additional_libdir/lib$name.$libext"; then
9750 found_dir
="$additional_libdir"
9751 found_a
="$additional_libdir/lib$name.$libext"
9752 if test -f "$additional_libdir/lib$name.la"; then
9753 found_la
="$additional_libdir/lib$name.la"
9758 if test "X$found_dir" = "X"; then
9759 for x
in $LDFLAGS $LTLIBICONV; do
9761 acl_save_prefix
="$prefix"
9762 prefix
="$acl_final_prefix"
9763 acl_save_exec_prefix
="$exec_prefix"
9764 exec_prefix
="$acl_final_exec_prefix"
9766 exec_prefix
="$acl_save_exec_prefix"
9767 prefix
="$acl_save_prefix"
9771 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9772 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9774 found_so
="$dir/lib$name.$shlibext"
9775 if test -f "$dir/lib$name.la"; then
9776 found_la
="$dir/lib$name.la"
9779 if test -f "$dir/lib$name.$libext"; then
9781 found_a
="$dir/lib$name.$libext"
9782 if test -f "$dir/lib$name.la"; then
9783 found_la
="$dir/lib$name.la"
9789 if test "X$found_dir" != "X"; then
9794 if test "X$found_dir" != "X"; then
9795 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9796 if test "X$found_so" != "X"; then
9797 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9798 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9801 for x
in $ltrpathdirs; do
9802 if test "X$x" = "X$found_dir"; then
9807 if test -z "$haveit"; then
9808 ltrpathdirs
="$ltrpathdirs $found_dir"
9810 if test "$hardcode_direct" = yes; then
9811 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9813 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9814 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9816 for x
in $rpathdirs; do
9817 if test "X$x" = "X$found_dir"; then
9822 if test -z "$haveit"; then
9823 rpathdirs
="$rpathdirs $found_dir"
9827 for x
in $LDFLAGS $LIBICONV; do
9829 acl_save_prefix
="$prefix"
9830 prefix
="$acl_final_prefix"
9831 acl_save_exec_prefix
="$exec_prefix"
9832 exec_prefix
="$acl_final_exec_prefix"
9834 exec_prefix
="$acl_save_exec_prefix"
9835 prefix
="$acl_save_prefix"
9837 if test "X$x" = "X-L$found_dir"; then
9842 if test -z "$haveit"; then
9843 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9845 if test "$hardcode_minus_L" != no
; then
9846 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9848 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9854 if test "X$found_a" != "X"; then
9855 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9857 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9860 additional_includedir
=
9861 case "$found_dir" in
9863 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9864 additional_includedir
="$basedir/include"
9867 if test "X$additional_includedir" != "X"; then
9868 if test "X$additional_includedir" != "X/usr/include"; then
9870 if test "X$additional_includedir" = "X/usr/local/include"; then
9871 if test -n "$GCC"; then
9873 linux
*) haveit
=yes;;
9877 if test -z "$haveit"; then
9878 for x
in $CPPFLAGS $INCICONV; do
9880 acl_save_prefix
="$prefix"
9881 prefix
="$acl_final_prefix"
9882 acl_save_exec_prefix
="$exec_prefix"
9883 exec_prefix
="$acl_final_exec_prefix"
9885 exec_prefix
="$acl_save_exec_prefix"
9886 prefix
="$acl_save_prefix"
9888 if test "X$x" = "X-I$additional_includedir"; then
9893 if test -z "$haveit"; then
9894 if test -d "$additional_includedir"; then
9895 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9901 if test -n "$found_la"; then
9902 save_libdir
="$libdir"
9904 */* |
*\\*) .
"$found_la" ;;
9905 *) .
"./$found_la" ;;
9907 libdir
="$save_libdir"
9908 for dep
in $dependency_libs; do
9911 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9912 if test "X$additional_libdir" != "X/usr/lib"; then
9914 if test "X$additional_libdir" = "X/usr/local/lib"; then
9915 if test -n "$GCC"; then
9917 linux
*) haveit
=yes;;
9921 if test -z "$haveit"; then
9923 for x
in $LDFLAGS $LIBICONV; do
9925 acl_save_prefix
="$prefix"
9926 prefix
="$acl_final_prefix"
9927 acl_save_exec_prefix
="$exec_prefix"
9928 exec_prefix
="$acl_final_exec_prefix"
9930 exec_prefix
="$acl_save_exec_prefix"
9931 prefix
="$acl_save_prefix"
9933 if test "X$x" = "X-L$additional_libdir"; then
9938 if test -z "$haveit"; then
9939 if test -d "$additional_libdir"; then
9940 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9944 for x
in $LDFLAGS $LTLIBICONV; do
9946 acl_save_prefix
="$prefix"
9947 prefix
="$acl_final_prefix"
9948 acl_save_exec_prefix
="$exec_prefix"
9949 exec_prefix
="$acl_final_exec_prefix"
9951 exec_prefix
="$acl_save_exec_prefix"
9952 prefix
="$acl_save_prefix"
9954 if test "X$x" = "X-L$additional_libdir"; then
9959 if test -z "$haveit"; then
9960 if test -d "$additional_libdir"; then
9961 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9968 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9969 if test "$enable_rpath" != no
; then
9971 for x
in $rpathdirs; do
9972 if test "X$x" = "X$dir"; then
9977 if test -z "$haveit"; then
9978 rpathdirs
="$rpathdirs $dir"
9981 for x
in $ltrpathdirs; do
9982 if test "X$x" = "X$dir"; then
9987 if test -z "$haveit"; then
9988 ltrpathdirs
="$ltrpathdirs $dir"
9993 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9996 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9999 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10000 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10006 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10007 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10013 if test "X$rpathdirs" != "X"; then
10014 if test -n "$hardcode_libdir_separator"; then
10016 for found_dir
in $rpathdirs; do
10017 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10019 acl_save_libdir
="$libdir"
10021 eval flag
=\"$hardcode_libdir_flag_spec\"
10022 libdir
="$acl_save_libdir"
10023 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10025 for found_dir
in $rpathdirs; do
10026 acl_save_libdir
="$libdir"
10027 libdir
="$found_dir"
10028 eval flag
=\"$hardcode_libdir_flag_spec\"
10029 libdir
="$acl_save_libdir"
10030 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10034 if test "X$ltrpathdirs" != "X"; then
10035 for found_dir
in $ltrpathdirs; do
10036 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10041 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10043 ac_cpp
='$CXXCPP $CPPFLAGS'
10044 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10045 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10046 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10053 am_save_CPPFLAGS
="$CPPFLAGS"
10055 for element
in $INCICONV; do
10057 for x
in $CPPFLAGS; do
10059 acl_save_prefix
="$prefix"
10060 prefix
="$acl_final_prefix"
10061 acl_save_exec_prefix
="$exec_prefix"
10062 exec_prefix
="$acl_final_exec_prefix"
10064 exec_prefix
="$acl_save_exec_prefix"
10065 prefix
="$acl_save_prefix"
10067 if test "X$x" = "X$element"; then
10072 if test -z "$haveit"; then
10073 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10079 $as_echo_n "checking for iconv... " >&6; }
10080 if test "${am_cv_func_iconv+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10084 am_cv_func_iconv
="no, consider installing GNU libiconv"
10086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 #include <stdlib.h>
10093 iconv_t cd = iconv_open("","");
10094 iconv(cd,NULL,NULL,NULL,NULL);
10100 if ac_fn_cxx_try_link
"$LINENO"; then :
10101 am_cv_func_iconv
=yes
10103 rm -f core conftest.err conftest.
$ac_objext \
10104 conftest
$ac_exeext conftest.
$ac_ext
10105 if test "$am_cv_func_iconv" != yes; then
10106 am_save_LIBS
="$LIBS"
10107 LIBS
="$LIBS $LIBICONV"
10108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 #include <stdlib.h>
10115 iconv_t cd = iconv_open("","");
10116 iconv(cd,NULL,NULL,NULL,NULL);
10122 if ac_fn_cxx_try_link
"$LINENO"; then :
10123 am_cv_lib_iconv
=yes
10124 am_cv_func_iconv
=yes
10126 rm -f core conftest.err conftest.
$ac_objext \
10127 conftest
$ac_exeext conftest.
$ac_ext
10128 LIBS
="$am_save_LIBS"
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10133 $as_echo "$am_cv_func_iconv" >&6; }
10134 if test "$am_cv_func_iconv" = yes; then
10136 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10139 if test "$am_cv_lib_iconv" = yes; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10141 $as_echo_n "checking how to link with libiconv... " >&6; }
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10143 $as_echo "$LIBICONV" >&6; }
10145 CPPFLAGS
="$am_save_CPPFLAGS"
10152 if test "$am_cv_func_iconv" = yes; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10154 $as_echo_n "checking for iconv declaration... " >&6; }
10155 if test "${am_cv_proto_iconv+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10162 #include <stdlib.h>
10168 #if defined(__STDC__) || defined(__cplusplus)
10169 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10182 if ac_fn_cxx_try_compile
"$LINENO"; then :
10183 am_cv_proto_iconv_arg1
=""
10185 am_cv_proto_iconv_arg1
="const"
10187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10188 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);"
10191 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10193 }$am_cv_proto_iconv" >&5
10195 }$am_cv_proto_iconv" >&6; }
10197 cat >>confdefs.h
<<_ACEOF
10198 #define ICONV_CONST $am_cv_proto_iconv_arg1
10204 ac_cpp
='$CPP $CPPFLAGS'
10205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10215 am_save_CPPFLAGS
="$CPPFLAGS"
10217 for element
in $INCICONV; do
10219 for x
in $CPPFLAGS; do
10221 acl_save_prefix
="$prefix"
10222 prefix
="$acl_final_prefix"
10223 acl_save_exec_prefix
="$exec_prefix"
10224 exec_prefix
="$acl_final_exec_prefix"
10226 exec_prefix
="$acl_save_exec_prefix"
10227 prefix
="$acl_save_prefix"
10229 if test "X$x" = "X$element"; then
10234 if test -z "$haveit"; then
10235 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10241 $as_echo_n "checking for iconv... " >&6; }
10242 if test "${am_cv_func_iconv+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10246 am_cv_func_iconv
="no, consider installing GNU libiconv"
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250 #include <stdlib.h>
10255 iconv_t cd = iconv_open("","");
10256 iconv(cd,NULL,NULL,NULL,NULL);
10262 if ac_fn_c_try_link
"$LINENO"; then :
10263 am_cv_func_iconv
=yes
10265 rm -f core conftest.err conftest.
$ac_objext \
10266 conftest
$ac_exeext conftest.
$ac_ext
10267 if test "$am_cv_func_iconv" != yes; then
10268 am_save_LIBS
="$LIBS"
10269 LIBS
="$LIBS $LIBICONV"
10270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 #include <stdlib.h>
10277 iconv_t cd = iconv_open("","");
10278 iconv(cd,NULL,NULL,NULL,NULL);
10284 if ac_fn_c_try_link
"$LINENO"; then :
10285 am_cv_lib_iconv
=yes
10286 am_cv_func_iconv
=yes
10288 rm -f core conftest.err conftest.
$ac_objext \
10289 conftest
$ac_exeext conftest.
$ac_ext
10290 LIBS
="$am_save_LIBS"
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10295 $as_echo "$am_cv_func_iconv" >&6; }
10296 if test "$am_cv_func_iconv" = yes; then
10298 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10301 if test "$am_cv_lib_iconv" = yes; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10303 $as_echo_n "checking how to link with libiconv... " >&6; }
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10305 $as_echo "$LIBICONV" >&6; }
10307 CPPFLAGS
="$am_save_CPPFLAGS"
10314 if test "$am_cv_func_iconv" = yes; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10316 $as_echo_n "checking for iconv declaration... " >&6; }
10317 if test "${am_cv_proto_iconv+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10324 #include <stdlib.h>
10330 #if defined(__STDC__) || defined(__cplusplus)
10331 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10344 if ac_fn_c_try_compile
"$LINENO"; then :
10345 am_cv_proto_iconv_arg1
=""
10347 am_cv_proto_iconv_arg1
="const"
10349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10350 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);"
10353 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10355 }$am_cv_proto_iconv" >&5
10357 }$am_cv_proto_iconv" >&6; }
10359 cat >>confdefs.h
<<_ACEOF
10360 #define ICONV_CONST $am_cv_proto_iconv_arg1
10367 # Until we have in-tree GNU iconv:
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10373 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10374 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 #include <locale.h>
10388 if ac_fn_c_try_link
"$LINENO"; then :
10389 am_cv_val_LC_MESSAGES
=yes
10391 am_cv_val_LC_MESSAGES
=no
10393 rm -f core conftest.err conftest.
$ac_objext \
10394 conftest
$ac_exeext conftest.
$ac_ext
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10397 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10398 if test $am_cv_val_LC_MESSAGES = yes; then
10400 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10407 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10408 if test "${am_cv_langinfo_codeset+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 #include <langinfo.h>
10417 char* cs = nl_langinfo(CODESET);
10422 if ac_fn_c_try_link
"$LINENO"; then :
10423 am_cv_langinfo_codeset
=yes
10425 am_cv_langinfo_codeset
=no
10427 rm -f core conftest.err conftest.
$ac_objext \
10428 conftest
$ac_exeext conftest.
$ac_ext
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10432 $as_echo "$am_cv_langinfo_codeset" >&6; }
10433 if test $am_cv_langinfo_codeset = yes; then
10435 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10440 # We will need to find libiberty.h and ansidecl.h
10441 saved_CFLAGS
="$CFLAGS"
10442 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10443 saved_CXXFLAGS
="$CXXFLAGS"
10444 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10445 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10446 strsignal strstr stpcpy strverscmp \
10447 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10448 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10450 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10452 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10453 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10454 $as_echo_n "(cached) " >&6
10456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 #define $ac_tr_decl 1
10461 #include "ansidecl.h"
10462 #include "system.h"
10468 char *(*pfn) = (char *(*)) $ac_func ;
10474 if ac_fn_c_try_compile
"$LINENO"; then :
10475 eval "gcc_cv_have_decl_$ac_func=yes"
10477 eval "gcc_cv_have_decl_$ac_func=no"
10479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10482 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10484 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10485 #define $ac_tr_decl 1
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10491 #define $ac_tr_decl 0
10499 for ac_func
in getrlimit setrlimit getrusage
10501 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10503 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10504 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10505 $as_echo_n "(cached) " >&6
10507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10510 #define $ac_tr_decl 1
10512 #include "ansidecl.h"
10513 #include "system.h"
10514 #ifdef HAVE_SYS_RESOURCE_H
10515 #include <sys/resource.h>
10523 char *(*pfn) = (char *(*)) $ac_func ;
10529 if ac_fn_c_try_compile
"$LINENO"; then :
10530 eval "gcc_cv_have_decl_$ac_func=yes"
10532 eval "gcc_cv_have_decl_$ac_func=no"
10534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10540 #define $ac_tr_decl 1
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10546 #define $ac_tr_decl 0
10554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10557 #include "ansidecl.h"
10558 #include "system.h"
10559 #ifdef HAVE_SYS_RESOURCE_H
10560 #include <sys/resource.h>
10571 if ac_fn_c_try_compile
"$LINENO"; then :
10575 $as_echo "#define rlim_t long" >>confdefs.h
10578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10580 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10581 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10582 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10583 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10584 for ac_func
in ldgetname
10586 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10588 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10589 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10590 $as_echo_n "(cached) " >&6
10592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10595 #define $ac_tr_decl 1
10597 #include "ansidecl.h"
10598 #include "system.h"
10599 #ifdef HAVE_LDFCN_H
10610 char *(*pfn) = (char *(*)) $ac_func ;
10616 if ac_fn_c_try_compile
"$LINENO"; then :
10617 eval "gcc_cv_have_decl_$ac_func=yes"
10619 eval "gcc_cv_have_decl_$ac_func=no"
10621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10624 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10626 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10627 #define $ac_tr_decl 1
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10633 #define $ac_tr_decl 0
10641 for ac_func
in times
10643 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10645 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10646 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10647 $as_echo_n "(cached) " >&6
10649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10652 #define $ac_tr_decl 1
10654 #include "ansidecl.h"
10655 #include "system.h"
10656 #ifdef HAVE_SYS_TIMES_H
10657 #include <sys/times.h>
10665 char *(*pfn) = (char *(*)) $ac_func ;
10671 if ac_fn_c_try_compile
"$LINENO"; then :
10672 eval "gcc_cv_have_decl_$ac_func=yes"
10674 eval "gcc_cv_have_decl_$ac_func=no"
10676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10679 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10682 #define $ac_tr_decl 1
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10688 #define $ac_tr_decl 0
10696 for ac_func
in sigaltstack
10698 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10700 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10701 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10702 $as_echo_n "(cached) " >&6
10704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 #define $ac_tr_decl 1
10709 #include "ansidecl.h"
10710 #include "system.h"
10711 #include <signal.h>
10718 char *(*pfn) = (char *(*)) $ac_func ;
10724 if ac_fn_c_try_compile
"$LINENO"; then :
10725 eval "gcc_cv_have_decl_$ac_func=yes"
10727 eval "gcc_cv_have_decl_$ac_func=no"
10729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10735 #define $ac_tr_decl 1
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10741 #define $ac_tr_decl 0
10749 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10751 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10753 ac_cpp
='$CXXCPP $CPPFLAGS'
10754 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10758 for ac_func
in madvise
10760 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10762 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10763 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10764 $as_echo_n "(cached) " >&6
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 #define $ac_tr_decl 1
10771 #include "ansidecl.h"
10772 #include "system.h"
10779 char *(*pfn) = (char *(*)) $ac_func ;
10785 if ac_fn_cxx_try_compile
"$LINENO"; then :
10786 eval "gcc_cv_have_decl_$ac_func=yes"
10788 eval "gcc_cv_have_decl_$ac_func=no"
10790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10793 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10796 #define $ac_tr_decl 1
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10802 #define $ac_tr_decl 0
10810 ac_cpp
='$CPP $CPPFLAGS'
10811 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10812 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10813 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10816 for ac_func
in madvise
10818 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10820 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10821 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10822 $as_echo_n "(cached) " >&6
10824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 #define $ac_tr_decl 1
10829 #include "ansidecl.h"
10830 #include "system.h"
10837 char *(*pfn) = (char *(*)) $ac_func ;
10843 if ac_fn_c_try_compile
"$LINENO"; then :
10844 eval "gcc_cv_have_decl_$ac_func=yes"
10846 eval "gcc_cv_have_decl_$ac_func=no"
10848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10851 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10854 #define $ac_tr_decl 1
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10860 #define $ac_tr_decl 0
10870 # More time-related stuff.
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10872 $as_echo_n "checking for struct tms... " >&6; }
10873 if test "${ac_cv_struct_tms+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10880 #include "ansidecl.h"
10881 #include "system.h"
10882 #ifdef HAVE_SYS_TIMES_H
10883 #include <sys/times.h>
10894 if ac_fn_c_try_compile
"$LINENO"; then :
10895 ac_cv_struct_tms
=yes
10897 ac_cv_struct_tms
=no
10899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10902 $as_echo "$ac_cv_struct_tms" >&6; }
10903 if test $ac_cv_struct_tms = yes; then
10905 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10909 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10910 # revisit after autoconf 2.50.
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10912 $as_echo_n "checking for clock_t... " >&6; }
10913 if test "${gcc_cv_type_clock_t+set}" = set; then :
10914 $as_echo_n "(cached) " >&6
10917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10920 #include "ansidecl.h"
10921 #include "system.h"
10931 if ac_fn_c_try_compile
"$LINENO"; then :
10932 gcc_cv_type_clock_t
=yes
10934 gcc_cv_type_clock_t
=no
10936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10939 $as_echo "$gcc_cv_type_clock_t" >&6; }
10940 if test $gcc_cv_type_clock_t = yes; then
10942 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10946 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10947 CFLAGS
="$saved_CFLAGS"
10948 CXXFLAGS
="$saved_CXXFLAGS"
10950 # Check whether --enable-initfini-array was given.
10951 if test "${enable_initfini_array+set}" = set; then :
10952 enableval
=$enable_initfini_array;
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10956 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10957 if test "${gcc_cv_initfini_array+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10960 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10961 if test "$cross_compiling" = yes; then :
10962 gcc_cv_initfini_array
=no
10964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10968 #error Not an ELF OS
10971 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10972 if it can be used. */
10974 int main (void) { return x; }
10975 int foo (void) { x = 0; }
10976 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10978 extern void abort ();
10988 void (*const init_array1005) ()
10989 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10997 void (*const fini_array1005) ()
10998 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
11008 void (*const ctors1007) ()
11009 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
11018 void (*const dtors1007) ()
11019 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11029 void (*const init_array65530) ()
11030 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11035 if (count != 65530)
11039 void (*const fini_array65530) ()
11040 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11046 if (count != 65530)
11050 void (*const ctors65535) ()
11051 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11056 if (count != 65535)
11060 void (*const dtors65535) ()
11061 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11067 if (count != 65535)
11074 if ac_fn_c_try_run
"$LINENO"; then :
11075 gcc_cv_initfini_array
=yes
11077 gcc_cv_initfini_array
=no
11079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11085 $as_echo_n "checking cross compile... guessing... " >&6; }
11086 gcc_cv_initfini_array
=no
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11090 $as_echo "$gcc_cv_initfini_array" >&6; }
11091 enable_initfini_array
=$gcc_cv_initfini_array
11095 if test $enable_initfini_array = yes; then
11097 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11101 # mkdir takes a single argument on some systems.
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11103 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11104 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 #include <sys/types.h>
11111 #ifdef HAVE_SYS_STAT_H
11112 # include <sys/stat.h>
11114 #ifdef HAVE_UNISTD_H
11115 # include <unistd.h>
11117 #ifdef HAVE_DIRECT_H
11118 # include <direct.h>
11128 if ac_fn_c_try_compile
"$LINENO"; then :
11129 gcc_cv_mkdir_takes_one_arg
=no
11131 gcc_cv_mkdir_takes_one_arg
=yes
11133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11136 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11137 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11139 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11150 # With Setjmp/Longjmp based exception handling.
11151 # Check whether --enable-sjlj-exceptions was given.
11152 if test "${enable_sjlj_exceptions+set}" = set; then :
11153 enableval
=$enable_sjlj_exceptions; case $target in
11155 if test $enableval != yes; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11157 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11162 force_sjlj_exceptions
=yes
11166 force_sjlj_exceptions
=yes
11170 force_sjlj_exceptions
=no
11175 if test $force_sjlj_exceptions = yes; then
11176 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11178 cat >>confdefs.h
<<_ACEOF
11179 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11184 # --------------------------------------------------------
11185 # Build, host, and target specific configuration fragments
11186 # --------------------------------------------------------
11188 # Collect build-machine-specific information.
11189 .
${srcdir}/config.build
11191 # Collect host-machine-specific information.
11192 .
${srcdir}/config.
host
11196 # Collect target-machine-specific information.
11197 .
${srcdir}/config.gcc
11199 extra_objs
="${host_extra_objs} ${extra_objs}"
11200 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11202 # Default the target-machine variables that were not explicitly set.
11203 if test x
"$tm_file" = x
11204 then tm_file
=$cpu_type/$cpu_type.h
; fi
11206 if test x
"$extra_headers" = x
11207 then extra_headers
=; fi
11209 if test x
$md_file = x
11210 then md_file
=$cpu_type/$cpu_type.md
; fi
11212 if test x
$out_file = x
11213 then out_file
=$cpu_type/$cpu_type.c
; fi
11215 if test x
"$tmake_file" = x
11216 then tmake_file
=$cpu_type/t-
$cpu_type
11219 if test x
"$dwarf2" = xyes
11220 then tm_file
="$tm_file tm-dwarf2.h"
11223 # Say what files are being used for the output code and MD file.
11224 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11225 echo "Using \`$srcdir/config/$md_file' as machine description file."
11227 # If any of the xm_file variables contain nonexistent files, warn
11228 # about them and drop them.
11231 for x
in $build_xm_file; do
11232 if test -f $srcdir/config
/$x
11234 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11235 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11238 build_xm_file
="$bx"
11241 for x
in $host_xm_file; do
11242 if test -f $srcdir/config
/$x
11244 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11245 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11251 for x
in $xm_file; do
11252 if test -f $srcdir/config
/$x
11254 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11255 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11261 for f
in $tm_file; do
11264 if test $count = ax
; then
11265 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11267 echo "Using the following target machine macro files:"
11268 for f
in $tm_file; do
11269 echo " $srcdir/config/$f"
11273 if test x
$need_64bit_hwint = xyes
; then
11275 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11279 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11281 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11286 for f
in $host_xm_file; do
11289 if test $count = a
; then
11291 elif test $count = ax
; then
11292 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11294 echo "Using the following host machine macro files:"
11295 for f
in $host_xm_file; do
11296 echo " $srcdir/config/$f"
11299 echo "Using ${out_host_hook_obj} for host machine hooks."
11301 if test "$host_xm_file" != "$build_xm_file"; then
11303 for f
in $build_xm_file; do
11306 if test $count = a
; then
11308 elif test $count = ax
; then
11309 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11311 echo "Using the following build machine macro files:"
11312 for f
in $build_xm_file; do
11313 echo " $srcdir/config/$f"
11318 if test -n "$configured_native_system_header_dir"; then
11319 native_system_header_dir
=$configured_native_system_header_dir
11321 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11325 powerpc
*-*-darwin*)
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11327 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11328 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11334 #include <sys/cdefs.h>
11335 #include <sys/signal.h>
11336 #include <ucontext.h>
11337 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11340 if ac_fn_c_try_compile
"$LINENO"; then :
11341 gcc_cv_mcontext_underscores
=no
11343 gcc_cv_mcontext_underscores
=yes
11345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11348 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11349 if test $gcc_cv_mcontext_underscores = yes; then
11351 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11361 # Check if a valid thread package
11362 case ${enable_threads} in
11365 target_thread_file
='single'
11369 target_thread_file
='single'
11371 aix | dce | lynx | mipssde | posix | rtems | \
11372 single | tpf | vxworks | win32
)
11373 target_thread_file
=${enable_threads}
11376 echo "${enable_threads} is an unknown thread package" 1>&2
11381 if test x
${thread_file} = x
; then
11382 # No thread file set by target-specific clauses in config.gcc,
11383 # so use file chosen by default logic above
11384 thread_file
=${target_thread_file}
11392 if test x
$enable___cxa_atexit = xyes || \
11393 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11394 if test x
$host = x
$target; then
11396 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11397 # keyed to flag_use_cxa_atexit
11402 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11403 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11406 echo "__cxa_atexit can't be enabled on this target"
11412 # We can't check for __cxa_atexit when building a cross, so assume
11416 if test x
$use_cxa_atexit = xyes
; then
11418 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11423 # Look for a file containing extra machine modes.
11424 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11425 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11428 cat >>confdefs.h
<<_ACEOF
11429 #define EXTRA_MODES_FILE "config/$extra_modes"
11434 # Convert extra_options into a form suitable for Makefile use.
11437 for f
in $extra_options; do
11438 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11439 all_opt_files
="$all_opt_files $srcdir/config/$f"
11443 # auto-host.h is the file containing items generated by autoconf and is
11444 # the first file included by config.h.
11445 # If host=build, it is correct to have bconfig include auto-host.h
11446 # as well. If host!=build, we are in error and need to do more
11447 # work to find out the build config parameters.
11448 if test x
$host = x
$build
11450 build_auto
=auto-host.h
11452 # We create a subdir, then run autoconf in the subdir.
11453 # To prevent recursion we set host and build for the new
11454 # invocation of configure to the build for this invocation
11461 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11462 *) realsrcdir
=..
/${srcdir};;
11464 saved_CFLAGS
="${CFLAGS}"
11465 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11466 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11467 ${realsrcdir}/configure \
11468 --enable-languages=${enable_languages-all} \
11469 --target=$target_alias --host=$build_alias --build=$build_alias
11470 CFLAGS
="${saved_CFLAGS}"
11472 # We just finished tests for the build machine, so rename
11473 # the file auto-build.h in the gcc directory.
11474 mv auto-host.h ..
/auto-build.h
11477 build_auto
=auto-build.h
11481 tm_file
="${tm_file} defaults.h"
11482 tm_p_file
="${tm_p_file} tm-preds.h"
11483 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11484 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11485 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11486 # put this back in temporarily.
11487 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11493 # Compile in configure arguments.
11494 if test -f configargs.h
; then
11495 # Being re-configured.
11496 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11497 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11499 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11502 # Double all backslashes and backslash all quotes to turn
11503 # gcc_config_arguments into a C string.
11504 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11505 $gcc_config_arguments
11507 gcc_config_arguments_str
=`cat conftest.out`
11510 cat > configargs.h
<<EOF
11511 /* Generated automatically. */
11512 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11513 static const char thread_model[] = "$thread_file";
11515 static const struct {
11516 const char *name, *value;
11517 } configure_default_options[] = $configure_default_options;
11520 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11521 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11522 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11523 if test -f $srcdir/REVISION
; then
11524 gcc_REVISION
=`cat $srcdir/REVISION`
11528 cat > plugin-version.h
<<EOF
11529 #include "configargs.h"
11531 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11532 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11533 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11534 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11536 static char basever[] = "$gcc_BASEVER";
11537 static char datestamp[] = "$gcc_DATESTAMP";
11538 static char devphase[] = "$gcc_DEVPHASE";
11539 static char revision[] = "$gcc_REVISION";
11541 /* FIXME plugins: We should make the version information more precise.
11542 One way to do is to add a checksum. */
11544 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11545 devphase, revision,
11546 configuration_arguments};
11549 # Internationalization
11550 # If we haven't got the data from the intl directory,
11551 # assume NLS is disabled.
11560 if test -f ..
/intl
/config.intl
; then
11561 . ..
/intl
/config.intl
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11564 $as_echo_n "checking whether NLS is requested... " >&6; }
11565 if test x
"$USE_NLS" != xyes
; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11570 $as_echo "yes" >&6; }
11572 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11576 $as_echo_n "checking for catalogs to be installed... " >&6; }
11577 # Look for .po and .gmo files in the source directory.
11580 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11581 # If there aren't any .gmo files the shell will give us the
11582 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11584 case "$cat" in *\
**)
11587 # The quadruple backslash is collapsed to a double backslash
11588 # by the backticks, then collapsed again by the double quotes,
11589 # leaving us with one backslash in the sed expression (right
11590 # before the dot that mustn't act as a wildcard).
11591 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11592 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11593 # The user is allowed to set LINGUAS to a list of languages to
11594 # install catalogs for. If it's empty that means "all of them."
11595 if test "x$LINGUAS" = x
; then
11596 CATALOGS
="$CATALOGS $cat"
11597 XLINGUAS
="$XLINGUAS $lang"
11599 case "$LINGUAS" in *$lang*)
11600 CATALOGS
="$CATALOGS $cat"
11601 XLINGUAS
="$XLINGUAS $lang"
11606 LINGUAS
="$XLINGUAS"
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11608 $as_echo "$LINGUAS" >&6; }
11621 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11622 # -liconv on the link line twice.
11623 case "$LIBINTL" in *$LIBICONV*)
11627 # Check whether --enable-secureplt was given.
11628 if test "${enable_secureplt+set}" = set; then :
11629 enableval
=$enable_secureplt;
11633 # Check whether --enable-leading-mingw64-underscores was given.
11634 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11635 enableval
=$enable_leading_mingw64_underscores;
11638 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11640 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11644 # Check whether --enable-cld was given.
11645 if test "${enable_cld+set}" = set; then :
11646 enableval
=$enable_cld;
11652 # Check whether --enable-frame-pointer was given.
11653 if test "${enable_frame_pointer+set}" = set; then :
11654 enableval
=$enable_frame_pointer;
11658 linux
* | darwin
[8912]*)
11659 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11661 enable_frame_pointer
=no
11664 enable_frame_pointer
=yes
11671 # Windows32 Registry support for specifying GCC installation paths.
11672 # Check whether --enable-win32-registry was given.
11673 if test "${enable_win32_registry+set}" = set; then :
11674 enableval
=$enable_win32_registry;
11679 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11680 if test "x$enable_win32_registry" != xno
; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11682 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11683 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11686 ac_func_search_save_LIBS
=$LIBS
11687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11696 char RegOpenKeyExA ();
11700 return RegOpenKeyExA ();
11705 for ac_lib
in '' advapi32
; do
11706 if test -z "$ac_lib"; then
11707 ac_res
="none required"
11710 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11712 if ac_fn_c_try_link
"$LINENO"; then :
11713 ac_cv_search_RegOpenKeyExA
=$ac_res
11715 rm -f core conftest.err conftest.
$ac_objext \
11717 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11721 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11724 ac_cv_search_RegOpenKeyExA
=no
11726 rm conftest.
$ac_ext
11727 LIBS
=$ac_func_search_save_LIBS
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11730 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11731 ac_res
=$ac_cv_search_RegOpenKeyExA
11732 if test "$ac_res" != no
; then :
11733 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11736 enable_win32_registry
=no
11741 if test "x$enable_win32_registry" != xno
; then
11743 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11746 if test "x$enable_win32_registry" != xyes \
11747 && test "x$enable_win32_registry" != x
; then
11749 cat >>confdefs.h
<<_ACEOF
11750 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11758 # Get an absolute path to the GCC top-level source directory
11759 holddir
=`${PWDCMD-pwd}`
11761 topdir
=`${PWDCMD-pwd}`
11764 # Conditionalize the makefile for this host machine.
11766 for f
in ${host_xmake_file}
11768 if test -f ${srcdir}/config
/$f
11770 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11774 # Conditionalize the makefile for this target machine.
11776 for f
in ${tmake_file}
11778 if test -f ${srcdir}/config
/$f
11780 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11783 tmake_file
="${tmake_file_}"
11785 out_object_file
=`basename $out_file .c`.o
11786 common_out_object_file
=`basename $common_out_file .c`.o
11788 tm_file_list
="options.h"
11789 tm_include_list
="options.h insn-constants.h"
11790 for f
in $tm_file; do
11793 f
=`echo $f | sed 's/^..//'`
11794 tm_file_list
="${tm_file_list} $f"
11795 tm_include_list
="${tm_include_list} $f"
11798 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11799 tm_include_list
="${tm_include_list} $f"
11802 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11803 tm_include_list
="${tm_include_list} config/$f"
11810 for f
in $tm_p_file; do
11813 tm_p_file_list
="${tm_p_file_list} $f"
11814 tm_p_include_list
="${tm_p_include_list} $f"
11817 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11818 tm_p_include_list
="${tm_p_include_list} config/$f"
11824 for f
in $xm_file; do
11827 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11828 xm_include_list
="${xm_include_list} $f"
11831 xm_file_list
="${xm_file_list} $f"
11832 xm_include_list
="${xm_include_list} $f"
11835 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11836 xm_include_list
="${xm_include_list} config/$f"
11842 host_xm_include_list
=
11843 for f
in $host_xm_file; do
11846 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11847 host_xm_include_list
="${host_xm_include_list} $f"
11850 host_xm_file_list
="${host_xm_file_list} $f"
11851 host_xm_include_list
="${host_xm_include_list} $f"
11854 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11855 host_xm_include_list
="${host_xm_include_list} config/$f"
11860 build_xm_file_list
=
11861 for f
in $build_xm_file; do
11864 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11865 build_xm_include_list
="${build_xm_include_list} $f"
11867 auto-build.h | auto-host.h
)
11868 build_xm_file_list
="${build_xm_file_list} $f"
11869 build_xm_include_list
="${build_xm_include_list} $f"
11872 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11873 build_xm_include_list
="${build_xm_include_list} config/$f"
11878 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11879 # cross-compiler which does not use the native headers and libraries.
11880 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11883 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11885 if test "x$with_build_sysroot" != x
; then
11886 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11888 # This value is used, even on a native system, because
11889 # CROSS_SYSTEM_HEADER_DIR is just
11890 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11891 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11894 if test x
$host != x
$target
11896 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11898 SYSTEM_HEADER_DIR
=$build_system_header_dir
11899 case "$host","$target" in
11900 # Darwin crosses can use the host system's libraries and headers,
11901 # because of the fat library support. Of course, it must be the
11902 # same version of Darwin on both sides. Allow the user to
11903 # just say --target=foo-darwin without a version number to mean
11904 # "the version on this system".
11905 *-*-darwin*,*-*-darwin*)
11906 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11907 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11908 if test $hostos = $targetos -o $targetos = darwin
; then
11910 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11915 i?
86-*-*,x86_64-
*-* \
11916 | powerpc
*-*-*,powerpc64
*-*-*)
11917 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11922 if test "x$with_headers" = x
; then
11929 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11930 SYSTEM_HEADER_DIR
=$build_system_header_dir
11933 # If this is a cross-compiler that does not
11934 # have its own set of headers then define
11937 # If this is using newlib, without having the headers available now,
11938 # then define inhibit_libc in LIBGCC2_CFLAGS.
11939 # This prevents libgcc2 from containing any code which requires libc
11941 : ${inhibit_libc=false}
11942 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11943 test x
$with_newlib = xyes
; } &&
11944 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11949 # When building gcc with a cross-compiler, we need to adjust things so
11950 # that the generator programs are still built with the native compiler.
11951 # Also, we cannot run fixincludes.
11953 # These are the normal (build=host) settings:
11954 CC_FOR_BUILD
='$(CC)'
11955 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11956 BUILD_LDFLAGS
='$(LDFLAGS)'
11957 STMP_FIXINC
=stmp-fixinc
11959 # And these apply if build != host, or we are generating coverage data
11960 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11962 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11963 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11966 # Expand extra_headers to include complete path.
11967 # This substitutes for lots of t-* files.
11968 extra_headers_list
=
11969 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11970 for file in ${extra_headers} ; do
11971 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11974 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11975 if test x
"$use_gcc_tgmath" = xyes
11976 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11979 # Define collect2 in Makefile.
11980 case $host_can_use_collect2 in
11982 *) collect2
='collect2$(exeext)' ;;
11986 # Add a definition of USE_COLLECT2 if system wants one.
11987 case $use_collect2 in
11988 no
) use_collect2
= ;;
11991 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11992 xm_defines
="${xm_defines} USE_COLLECT2"
11993 case $host_can_use_collect2 in
11995 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12002 cat >>confdefs.h
<<_ACEOF
12003 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12007 # ---------------------------
12008 # Assembler & linker features
12009 # ---------------------------
12011 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12012 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12013 # However when ld-new is first executed from the build tree, libtool will
12014 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12015 # to the build tree. While doing this we need to use the previous-stage
12016 # linker, or we have an infinite loop. The presence of a shell script as
12017 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12018 # the gcc/collect-ld script. So we need to know how libtool works, or
12019 # exec-tool will fail.
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12025 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12030 macro_version
='2.2.7a'
12031 macro_revision
='1.3134'
12045 ltmain
="$ac_aux_dir/ltmain.sh"
12047 # Backslashify metacharacters that are still active within
12048 # double-quoted strings.
12049 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12051 # Same as above, but do not quote variable references.
12052 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12054 # Sed substitution to delay expansion of an escaped shell variable in a
12055 # double_quote_subst'ed string.
12056 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12058 # Sed substitution to delay expansion of an escaped single quote.
12059 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12061 # Sed substitution to avoid accidental globbing in evaled expressions
12062 no_glob_subst
='s/\*/\\\*/g'
12064 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12065 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12069 $as_echo_n "checking how to print strings... " >&6; }
12070 # Test print first, because it will be a builtin if present.
12071 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12072 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12074 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12077 # Use this function as a fallback that always works.
12078 func_fallback_echo ()
12080 eval 'cat <<_LTECHO_EOF
12084 ECHO='func_fallback_echo
'
12087 # func_echo_all arg...
12088 # Invoke $ECHO with all args, space-separated.
12095 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12096 $as_echo "printf" >&6; } ;;
12097 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12098 $as_echo "print -r" >&6; } ;;
12099 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12100 $as_echo "cat" >&6; } ;;
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12117 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12118 if test "${ac_cv_path_SED+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12121 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12122 for ac_i in 1 2 3 4 5 6 7; do
12123 ac_script="$ac_script$as_nl$ac_script"
12125 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12126 { ac_script=; unset ac_script;}
12127 if test -z "$SED"; then
12128 ac_path_SED_found=false
12129 # Loop through the user's path and
test for each of PROGNAME-LIST
12130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12131 for as_dir
in $PATH
12134 test -z "$as_dir" && as_dir
=.
12135 for ac_prog
in sed gsed
; do
12136 for ac_exec_ext
in '' $ac_executable_extensions; do
12137 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12138 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12139 # Check for GNU ac_path_SED and select it if it is found.
12140 # Check for GNU $ac_path_SED
12141 case `"$ac_path_SED" --version 2>&1` in
12143 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12146 $as_echo_n 0123456789 >"conftest.in"
12149 cat "conftest.in" "conftest.in" >"conftest.tmp"
12150 mv "conftest.tmp" "conftest.in"
12151 cp "conftest.in" "conftest.nl"
12152 $as_echo '' >> "conftest.nl"
12153 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12154 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12155 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12156 if test $ac_count -gt ${ac_path_SED_max-0}; then
12157 # Best one so far, save it but keep looking for a better one
12158 ac_cv_path_SED
="$ac_path_SED"
12159 ac_path_SED_max
=$ac_count
12161 # 10*(2^10) chars as input seems more than enough
12162 test $ac_count -gt 10 && break
12164 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12167 $ac_path_SED_found && break 3
12172 if test -z "$ac_cv_path_SED"; then
12173 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12176 ac_cv_path_SED
=$SED
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12181 $as_echo "$ac_cv_path_SED" >&6; }
12182 SED
="$ac_cv_path_SED"
12185 test -z "$SED" && SED
=sed
12186 Xsed
="$SED -e 1s/^X//"
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12199 $as_echo_n "checking for fgrep... " >&6; }
12200 if test "${ac_cv_path_FGREP+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12203 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12204 then ac_cv_path_FGREP
="$GREP -F"
12206 if test -z "$FGREP"; then
12207 ac_path_FGREP_found
=false
12208 # Loop through the user's path and test for each of PROGNAME-LIST
12209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12210 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12213 test -z "$as_dir" && as_dir
=.
12214 for ac_prog
in fgrep
; do
12215 for ac_exec_ext
in '' $ac_executable_extensions; do
12216 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12217 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12218 # Check for GNU ac_path_FGREP and select it if it is found.
12219 # Check for GNU $ac_path_FGREP
12220 case `"$ac_path_FGREP" --version 2>&1` in
12222 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12225 $as_echo_n 0123456789 >"conftest.in"
12228 cat "conftest.in" "conftest.in" >"conftest.tmp"
12229 mv "conftest.tmp" "conftest.in"
12230 cp "conftest.in" "conftest.nl"
12231 $as_echo 'FGREP' >> "conftest.nl"
12232 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12233 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12234 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12235 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12236 # Best one so far, save it but keep looking for a better one
12237 ac_cv_path_FGREP
="$ac_path_FGREP"
12238 ac_path_FGREP_max
=$ac_count
12240 # 10*(2^10) chars as input seems more than enough
12241 test $ac_count -gt 10 && break
12243 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12246 $ac_path_FGREP_found && break 3
12251 if test -z "$ac_cv_path_FGREP"; then
12252 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12255 ac_cv_path_FGREP
=$FGREP
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12261 $as_echo "$ac_cv_path_FGREP" >&6; }
12262 FGREP
="$ac_cv_path_FGREP"
12265 test -z "$GREP" && GREP
=grep
12285 # Check whether --with-gnu-ld was given.
12286 if test "${with_gnu_ld+set}" = set; then :
12287 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12293 if test "$GCC" = yes; then
12294 # Check if gcc -print-prog-name=ld gives a path.
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12296 $as_echo_n "checking for ld used by $CC... " >&6; }
12299 # gcc leaves a trailing carriage return which upsets mingw
12300 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12302 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12305 # Accept absolute paths.
12307 re_direlt
='/[^/][^/]*/\.\./'
12308 # Canonicalize the pathname of ld
12309 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12310 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12311 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12313 test -z "$LD" && LD
="$ac_prog"
12316 # If it fails, then pretend we aren't using GCC.
12320 # If it is relative, then search for the first ld in PATH.
12321 with_gnu_ld
=unknown
12324 elif test "$with_gnu_ld" = yes; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12326 $as_echo_n "checking for GNU ld... " >&6; }
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12329 $as_echo_n "checking for non-GNU ld... " >&6; }
12331 if test "${lt_cv_path_LD+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12334 if test -z "$LD"; then
12335 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12336 for ac_dir
in $PATH; do
12338 test -z "$ac_dir" && ac_dir
=.
12339 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12340 lt_cv_path_LD
="$ac_dir/$ac_prog"
12341 # Check to see if the program is GNU ld. I'd rather use --version,
12342 # but apparently some variants of GNU ld only accept -v.
12343 # Break only if it was the GNU/non-GNU ld that we prefer.
12344 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12345 *GNU
* |
*'with BFD'*)
12346 test "$with_gnu_ld" != no
&& break
12349 test "$with_gnu_ld" != yes && break
12356 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12360 LD
="$lt_cv_path_LD"
12361 if test -n "$LD"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12363 $as_echo "$LD" >&6; }
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12368 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12370 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12371 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12374 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12375 case `$LD -v 2>&1 </dev/null` in
12376 *GNU
* |
*'with BFD'*)
12377 lt_cv_prog_gnu_ld
=yes
12380 lt_cv_prog_gnu_ld
=no
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12385 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12386 with_gnu_ld
=$lt_cv_prog_gnu_ld
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12397 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12398 if test "${lt_cv_path_NM+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12401 if test -n "$NM"; then
12402 # Let the user override the test.
12403 lt_cv_path_NM
="$NM"
12405 lt_nm_to_check
="${ac_tool_prefix}nm"
12406 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12407 lt_nm_to_check
="$lt_nm_to_check nm"
12409 for lt_tmp_nm
in $lt_nm_to_check; do
12410 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12411 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12413 test -z "$ac_dir" && ac_dir
=.
12414 tmp_nm
="$ac_dir/$lt_tmp_nm"
12415 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12416 # Check to see if the nm accepts a BSD-compat flag.
12417 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12418 # nm: unknown option "B" ignored
12419 # Tru64's nm complains that /dev/null is an invalid object file
12420 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12421 */dev
/null
* |
*'Invalid file or object type'*)
12422 lt_cv_path_NM
="$tmp_nm -B"
12426 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12428 lt_cv_path_NM
="$tmp_nm -p"
12432 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12433 continue # so that we can try to find one that supports BSD flags
12442 : ${lt_cv_path_NM=no}
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12446 $as_echo "$lt_cv_path_NM" >&6; }
12447 if test "$lt_cv_path_NM" != "no"; then
12448 NM
="$lt_cv_path_NM"
12450 # Didn't find any BSD compatible name lister, look for dumpbin.
12451 if test -n "$DUMPBIN"; then :
12452 # Let the user override the test.
12454 if test -n "$ac_tool_prefix"; then
12455 for ac_prog
in dumpbin
"link -dump"
12457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12458 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12464 if test -n "$DUMPBIN"; then
12465 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12468 for as_dir
in $PATH
12471 test -z "$as_dir" && as_dir
=.
12472 for ac_exec_ext
in '' $ac_executable_extensions; do
12473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12474 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 DUMPBIN
=$ac_cv_prog_DUMPBIN
12485 if test -n "$DUMPBIN"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12487 $as_echo "$DUMPBIN" >&6; }
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12494 test -n "$DUMPBIN" && break
12497 if test -z "$DUMPBIN"; then
12498 ac_ct_DUMPBIN
=$DUMPBIN
12499 for ac_prog
in dumpbin
"link -dump"
12501 # Extract the first word of "$ac_prog", so it can be a program name with args.
12502 set dummy
$ac_prog; ac_word
=$2
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504 $as_echo_n "checking for $ac_word... " >&6; }
12505 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12508 if test -n "$ac_ct_DUMPBIN"; then
12509 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12512 for as_dir
in $PATH
12515 test -z "$as_dir" && as_dir
=.
12516 for ac_exec_ext
in '' $ac_executable_extensions; do
12517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12518 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12529 if test -n "$ac_ct_DUMPBIN"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12531 $as_echo "$ac_ct_DUMPBIN" >&6; }
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12538 test -n "$ac_ct_DUMPBIN" && break
12541 if test "x$ac_ct_DUMPBIN" = x
; then
12544 case $cross_compiling:$ac_tool_warned in
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12548 ac_tool_warned
=yes ;;
12550 DUMPBIN
=$ac_ct_DUMPBIN
12554 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12556 DUMPBIN
="$DUMPBIN -symbols"
12564 if test "$DUMPBIN" != ":"; then
12568 test -z "$NM" && NM
=nm
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12576 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12577 if test "${lt_cv_nm_interface+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12580 lt_cv_nm_interface
="BSD nm"
12581 echo "int some_variable = 0;" > conftest.
$ac_ext
12582 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12583 (eval "$ac_compile" 2>conftest.err
)
12584 cat conftest.err
>&5
12585 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12586 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12587 cat conftest.err
>&5
12588 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12589 cat conftest.out
>&5
12590 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12591 lt_cv_nm_interface
="MS dumpbin"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12596 $as_echo "$lt_cv_nm_interface" >&6; }
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12599 $as_echo_n "checking whether ln -s works... " >&6; }
12601 if test "$LN_S" = "ln -s"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 $as_echo "yes" >&6; }
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12606 $as_echo "no, using $LN_S" >&6; }
12609 # find the maximum length of command line arguments
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12611 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12612 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12620 # On DJGPP, this test can blow up pretty badly due to problems in libc
12621 # (any single argument exceeding 2000 bytes causes a buffer overrun
12622 # during glob expansion). Even if it were fixed, the result of this
12623 # check would be larger than it should be.
12624 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12628 # Under GNU Hurd, this test is not required because there is
12629 # no limit to the length of command line arguments.
12630 # Libtool will interpret -1 as no limit whatsoever
12631 lt_cv_sys_max_cmd_len
=-1;
12634 cygwin
* | mingw
* | cegcc
*)
12635 # On Win9x/ME, this test blows up -- it succeeds, but takes
12636 # about 5 minutes as the teststring grows exponentially.
12637 # Worse, since 9x/ME are not pre-emptively multitasking,
12638 # you end up with a "frozen" computer, even though with patience
12639 # the test eventually succeeds (with a max line length of 256k).
12640 # Instead, let's just punt: use the minimum linelength reported by
12641 # all of the supported platforms: 8192 (on NT/2K/XP).
12642 lt_cv_sys_max_cmd_len
=8192;
12646 # On MiNT this can take a long time and run out of memory.
12647 lt_cv_sys_max_cmd_len
=8192;
12651 # On AmigaOS with pdksh, this test takes hours, literally.
12652 # So we just punt and use a minimum line length of 8192.
12653 lt_cv_sys_max_cmd_len
=8192;
12656 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12657 # This has been around since 386BSD, at least. Likely further.
12658 if test -x /sbin
/sysctl
; then
12659 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12660 elif test -x /usr
/sbin
/sysctl
; then
12661 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12663 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12665 # And add a safety zone
12666 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12667 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12671 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12672 lt_cv_sys_max_cmd_len
=196608
12676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12678 # nice to cause kernel panics so lets avoid the loop below.
12679 # First set a reasonable default.
12680 lt_cv_sys_max_cmd_len
=16384
12682 if test -x /sbin
/sysconfig
; then
12683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12684 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12689 lt_cv_sys_max_cmd_len
=102400
12691 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12692 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12693 if test -n "$kargmax"; then
12694 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12696 lt_cv_sys_max_cmd_len
=32768
12700 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12701 if test -n "$lt_cv_sys_max_cmd_len"; then
12702 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12703 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12705 # Make teststring a little bigger before we do anything with it.
12706 # a 1K string should be a reasonable start.
12707 for i
in 1 2 3 4 5 6 7 8 ; do
12708 teststring
=$teststring$teststring
12710 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12711 # If test is not a shell built-in, we'll probably end up computing a
12712 # maximum length that is only half of the actual maximum length, but
12714 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12715 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12716 test $i != 17 # 1/2 MB should be enough
12719 teststring
=$teststring$teststring
12721 # Only check the string length outside the loop.
12722 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12724 # Add a significant safety factor because C++ compilers can tack on
12725 # massive amounts of additional arguments before passing them to the
12726 # linker. It appears as though 1/2 is a usable value.
12727 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12734 if test -n $lt_cv_sys_max_cmd_len ; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12739 $as_echo "none" >&6; }
12741 max_cmd_len
=$lt_cv_sys_max_cmd_len
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12753 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12754 # Try some XSI features
12756 ( _lt_dummy
="a/b/c"
12757 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12759 && eval 'test $(( 1 + 1 )) -eq 2 \
12760 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12763 $as_echo "$xsi_shell" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12767 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12769 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12771 && lt_shell_append=yes
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12773 $as_echo "$lt_shell_append" >&6; }
12776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12786 # test EBCDIC or ASCII
12787 case `echo X|tr X '\101'` in
12788 A) # ASCII based system
12789 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12790 lt_SP2NL='tr \040 \012'
12791 lt_NL2SP='tr \015\012 \040\040'
12793 *) # EBCDIC based system
12794 lt_SP2NL='tr \100 \n'
12795 lt_NL2SP='tr \r\n \100\100'
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12808 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12809 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12810 $as_echo_n "(cached
) " >&6
12812 lt_cv_ld_reload_flag='-r'
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12815 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12816 reload_flag=$lt_cv_ld_reload_flag
12817 case $reload_flag in
12819 *) reload_flag=" $reload_flag" ;;
12821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12824 if test "$GCC" = yes; then
12825 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12840 if test -n "$ac_tool_prefix"; then
12841 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12842 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12844 $as_echo_n "checking
for $ac_word...
" >&6; }
12845 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12846 $as_echo_n "(cached
) " >&6
12848 if test -n "$OBJDUMP"; then
12849 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12858 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12868 OBJDUMP=$ac_cv_prog_OBJDUMP
12869 if test -n "$OBJDUMP"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12871 $as_echo "$OBJDUMP" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12874 $as_echo "no
" >&6; }
12879 if test -z "$ac_cv_prog_OBJDUMP"; then
12880 ac_ct_OBJDUMP=$OBJDUMP
12881 # Extract the first word of "objdump
", so it can be a program name with args.
12882 set dummy objdump; ac_word=$2
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12884 $as_echo_n "checking
for $ac_word...
" >&6; }
12885 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12886 $as_echo_n "(cached
) " >&6
12888 if test -n "$ac_ct_OBJDUMP"; then
12889 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
12897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12908 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12909 if test -n "$ac_ct_OBJDUMP"; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12911 $as_echo "$ac_ct_OBJDUMP" >&6; }
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12914 $as_echo "no
" >&6; }
12917 if test "x
$ac_ct_OBJDUMP" = x; then
12920 case $cross_compiling:$ac_tool_warned in
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12923 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12924 ac_tool_warned=yes ;;
12926 OBJDUMP=$ac_ct_OBJDUMP
12929 OBJDUMP="$ac_cv_prog_OBJDUMP"
12932 test -z "$OBJDUMP" && OBJDUMP=objdump
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12943 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12944 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12945 $as_echo_n "(cached
) " >&6
12947 lt_cv_file_magic_cmd='$MAGIC_CMD'
12948 lt_cv_file_magic_test_file=
12949 lt_cv_deplibs_check_method='unknown'
12950 # Need to set the preceding variable on all platforms that support
12951 # interlibrary dependencies.
12952 # 'none' -- dependencies not supported.
12953 # `unknown' -- same as none, but documents that we really don't know.
12954 # 'pass_all' -- all dependencies passed with no checks.
12955 # 'test_compile' -- check by making test program.
12956 # 'file_magic [[regex]]' -- check by looking for files in library path
12957 # which responds to the $file_magic_cmd with a given extended regex.
12958 # If you have `file' or equivalent on your system and you're not sure
12959 # whether `pass_all' will *always* work, you probably want this one.
12963 lt_cv_deplibs_check_method=pass_all
12967 lt_cv_deplibs_check_method=pass_all
12971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12972 lt_cv_file_magic_cmd='/usr/bin/file -L'
12973 lt_cv_file_magic_test_file=/shlib/libc.so
12977 # func_win32_libid is a shell function defined in ltmain.sh
12978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12979 lt_cv_file_magic_cmd='func_win32_libid'
12983 # Base MSYS/MinGW do not provide the 'file' command needed by
12984 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12985 # unless we find 'file', for example because we are cross-compiling.
12986 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12987 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12989 lt_cv_file_magic_cmd='func_win32_libid'
12991 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12992 lt_cv_file_magic_cmd='$OBJDUMP -f'
12997 # use the weaker test based on 'objdump'. See mingw*.
12998 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12999 lt_cv_file_magic_cmd='$OBJDUMP -f'
13002 darwin* | rhapsody*)
13003 lt_cv_deplibs_check_method=pass_all
13006 freebsd* | dragonfly*)
13007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13010 # Not sure whether the presence of OpenBSD here was a mistake.
13011 # Let's accept both of them until this is cleared up.
13012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13013 lt_cv_file_magic_cmd=/usr/bin/file
13014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13018 lt_cv_deplibs_check_method=pass_all
13023 lt_cv_deplibs_check_method=pass_all
13027 lt_cv_deplibs_check_method=pass_all
13030 hpux10.20* | hpux11*)
13031 lt_cv_file_magic_cmd=/usr/bin/file
13034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13038 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]'
13039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13043 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13053 irix5* | irix6* | nonstopux*)
13055 *-32|*"-32 ") libmagic=32-bit;;
13056 *-n32|*"-n32 ") libmagic=N32;;
13057 *-64|*"-64 ") libmagic=64-bit;;
13058 *) libmagic=never-match;;
13060 lt_cv_deplibs_check_method=pass_all
13063 # This must be Linux ELF.
13064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13065 lt_cv_deplibs_check_method=pass_all
13069 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13078 lt_cv_file_magic_cmd=/usr/bin/file
13079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13083 lt_cv_deplibs_check_method=pass_all
13087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13094 osf3* | osf4* | osf5*)
13095 lt_cv_deplibs_check_method=pass_all
13099 lt_cv_deplibs_check_method=pass_all
13103 lt_cv_deplibs_check_method=pass_all
13106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13107 lt_cv_deplibs_check_method=pass_all
13111 case $host_vendor in
13113 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]'
13114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13117 lt_cv_deplibs_check_method=pass_all
13120 lt_cv_file_magic_cmd='/bin/file'
13121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13124 lt_cv_file_magic_cmd='/bin/file'
13125 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13126 lt_cv_file_magic_test_file=/lib/libc.so
13129 lt_cv_deplibs_check_method=pass_all
13132 lt_cv_deplibs_check_method=pass_all
13138 lt_cv_deplibs_check_method=pass_all
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13144 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13145 file_magic_cmd=$lt_cv_file_magic_cmd
13146 deplibs_check_method=$lt_cv_deplibs_check_method
13147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13160 if test -n "$ac_tool_prefix"; then
13161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13162 set dummy ${ac_tool_prefix}ar; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13164 $as_echo_n "checking
for $ac_word...
" >&6; }
13165 if test "${ac_cv_prog_AR+set}" = set; then :
13166 $as_echo_n "(cached
) " >&6
13168 if test -n "$AR"; then
13169 ac_cv_prog_AR="$AR" # Let the user override the test.
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178 ac_cv_prog_AR="${ac_tool_prefix}ar"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13189 if test -n "$AR"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13191 $as_echo "$AR" >&6; }
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13194 $as_echo "no
" >&6; }
13199 if test -z "$ac_cv_prog_AR"; then
13201 # Extract the first word of "ar", so it can be a program name with args.
13202 set dummy ar; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13204 $as_echo_n "checking
for $ac_word...
" >&6; }
13205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13206 $as_echo_n "(cached
) " >&6
13208 if test -n "$ac_ct_AR"; then
13209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13218 ac_cv_prog_ac_ct_AR="ar"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13229 if test -n "$ac_ct_AR"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13231 $as_echo "$ac_ct_AR" >&6; }
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13234 $as_echo "no
" >&6; }
13237 if test "x
$ac_ct_AR" = x; then
13240 case $cross_compiling:$ac_tool_warned in
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13243 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13244 ac_tool_warned=yes ;;
13249 AR="$ac_cv_prog_AR"
13252 test -z "$AR" && AR=ar
13253 test -z "$AR_FLAGS" && AR_FLAGS=cru
13265 if test -n "$ac_tool_prefix"; then
13266 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13267 set dummy ${ac_tool_prefix}strip; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13269 $as_echo_n "checking
for $ac_word...
" >&6; }
13270 if test "${ac_cv_prog_STRIP+set}" = set; then :
13271 $as_echo_n "(cached
) " >&6
13273 if test -n "$STRIP"; then
13274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13283 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13284 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13293 STRIP=$ac_cv_prog_STRIP
13294 if test -n "$STRIP"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13296 $as_echo "$STRIP" >&6; }
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13299 $as_echo "no
" >&6; }
13304 if test -z "$ac_cv_prog_STRIP"; then
13306 # Extract the first word of "strip
", so it can be a program name with args.
13307 set dummy strip; ac_word=$2
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13309 $as_echo_n "checking
for $ac_word...
" >&6; }
13310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13311 $as_echo_n "(cached
) " >&6
13313 if test -n "$ac_ct_STRIP"; then
13314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317 for as_dir in $PATH
13320 test -z "$as_dir" && as_dir=.
13321 for ac_exec_ext in '' $ac_executable_extensions; do
13322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13323 ac_cv_prog_ac_ct_STRIP="strip
"
13324 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13334 if test -n "$ac_ct_STRIP"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13336 $as_echo "$ac_ct_STRIP" >&6; }
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13339 $as_echo "no
" >&6; }
13342 if test "x
$ac_ct_STRIP" = x; then
13345 case $cross_compiling:$ac_tool_warned in
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13348 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13349 ac_tool_warned=yes ;;
13354 STRIP="$ac_cv_prog_STRIP"
13357 test -z "$STRIP" && STRIP=:
13364 if test -n "$ac_tool_prefix"; then
13365 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13368 $as_echo_n "checking
for $ac_word...
" >&6; }
13369 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13370 $as_echo_n "(cached
) " >&6
13372 if test -n "$RANLIB"; then
13373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13392 RANLIB=$ac_cv_prog_RANLIB
13393 if test -n "$RANLIB"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13395 $as_echo "$RANLIB" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13398 $as_echo "no
" >&6; }
13403 if test -z "$ac_cv_prog_RANLIB"; then
13404 ac_ct_RANLIB=$RANLIB
13405 # Extract the first word of "ranlib
", so it can be a program name with args.
13406 set dummy ranlib; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13408 $as_echo_n "checking
for $ac_word...
" >&6; }
13409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13410 $as_echo_n "(cached
) " >&6
13412 if test -n "$ac_ct_RANLIB"; then
13413 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13433 if test -n "$ac_ct_RANLIB"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13435 $as_echo "$ac_ct_RANLIB" >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13438 $as_echo "no
" >&6; }
13441 if test "x
$ac_ct_RANLIB" = x; then
13444 case $cross_compiling:$ac_tool_warned in
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13447 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13448 ac_tool_warned=yes ;;
13450 RANLIB=$ac_ct_RANLIB
13453 RANLIB="$ac_cv_prog_RANLIB"
13456 test -z "$RANLIB" && RANLIB=:
13463 # Determine commands to create old-style static archives.
13464 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13465 old_postinstall_cmds='chmod 644 $oldlib'
13466 old_postuninstall_cmds=
13468 if test -n "$RANLIB"; then
13471 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13474 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13477 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13482 lock_old_archive_extraction=yes ;;
13484 lock_old_archive_extraction=no ;;
13525 # If no C compiler was specified, use CC.
13528 # If no C compiler flags were specified, use CFLAGS.
13529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13531 # Allow CC to be a program name with arguments.
13535 # Check for command to grab the raw symbol name followed by C symbol from nm.
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13537 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13539 $as_echo_n "(cached
) " >&6
13542 # These are sane defaults that work on at least a few old systems.
13543 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13545 # Character class describing NM global symbol codes.
13546 symcode='[BCDEGRST]'
13548 # Regexp to match symbols that can be accessed directly from C.
13549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13551 # Define system-specific variables.
13556 cygwin* | mingw* | pw32* | cegcc*)
13557 symcode='[ABCDGISTW]'
13560 if test "$host_cpu" = ia64; then
13561 symcode='[ABCDEGRST]'
13564 irix* | nonstopux*)
13565 symcode='[BCDEGRST]'
13568 symcode='[BCDEGQRST]'
13579 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13587 # If we're using GNU nm, then use its standard symbol codes.
13588 case `$NM -V 2>&1` in
13589 *GNU* | *'with BFD'*)
13590 symcode='[ABCDGIRSTW]' ;;
13593 # Transform an extracted symbol line into a proper C declaration.
13594 # Some systems (esp. on ia64) link data and code symbols differently,
13595 # so use this general approach.
13596 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13598 # Transform an extracted symbol line into symbol name and symbol address
13599 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13600 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'"
13602 # Handle CRLF in mingw tool chain
13606 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13610 # Try without a prefix underscore, then with it.
13611 for ac_symprfx in "" "_
"; do
13613 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13614 symxfrm="\\1 $ac_symprfx\\2 \\2"
13616 # Write the raw and C identifiers.
13617 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13618 # Fake it for dumpbin and say T for any non-static function
13619 # and D for any global variable.
13620 # Also find C++ and __fastcall symbols from MSVC++,
13621 # which start with @ or ?.
13622 lt_cv_sys_global_symbol_pipe="$AWK '"\
13623 " {last_section=section; section=\$ 3};"\
13624 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13625 " \$ 0!~/External *\|/{next};"\
13626 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13627 " {if(hide[section]) next};"\
13628 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13629 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13630 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13631 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13632 " ' prfx
=^
$ac_symprfx"
13634 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13637 # Check to see that the pipe works correctly.
13641 cat > conftest.$ac_ext <<_LT_EOF
13646 void nm_test_func(void);
13647 void nm_test_func(void){}
13651 int main(){nm_test_var='a';nm_test_func();return(0);}
13654 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13655 (eval $ac_compile) 2>&5
13657 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13658 test $ac_status = 0; }; then
13659 # Now try to grab the symbols.
13661 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13662 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13664 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13665 test $ac_status = 0; } && test -s "$nlist"; then
13666 # Try sorting and uniquifying the output.
13667 if sort "$nlist" | uniq > "$nlist"T; then
13668 mv -f "$nlist"T "$nlist"
13673 # Make sure that we snagged all the symbols we need.
13674 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13675 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13676 cat <<_LT_EOF > conftest.$ac_ext
13682 # Now generate the symbol file.
13683 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13685 cat <<_LT_EOF >> conftest.$ac_ext
13687 /* The mapping between symbol names and symbols. */
13692 lt__PROGRAM__LTX_preloaded_symbols[] =
13694 { "@PROGRAM@
", (void *) 0 },
13696 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13697 cat <<\_LT_EOF >> conftest.$ac_ext
13701 /* This works around a problem in FreeBSD linker */
13702 #ifdef FREEBSD_WORKAROUND
13703 static const void *lt_preloaded_setup() {
13704 return lt__PROGRAM__LTX_preloaded_symbols;
13712 # Now try linking the two files.
13713 mv conftest.$ac_objext conftstm.$ac_objext
13714 lt_save_LIBS="$LIBS"
13715 lt_save_CFLAGS="$CFLAGS"
13716 LIBS="conftstm.
$ac_objext"
13717 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13718 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13719 (eval $ac_link) 2>&5
13721 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13722 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13725 LIBS="$lt_save_LIBS"
13726 CFLAGS="$lt_save_CFLAGS"
13728 echo "cannot
find nm_test_func
in $nlist" >&5
13731 echo "cannot
find nm_test_var
in $nlist" >&5
13734 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13737 echo "$progname: failed program was
:" >&5
13738 cat conftest.$ac_ext >&5
13740 rm -rf conftest* conftst*
13742 # Do not use the global_symbol_pipe unless it works.
13743 if test "$pipe_works" = yes; then
13746 lt_cv_sys_global_symbol_pipe=
13752 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13753 lt_cv_sys_global_symbol_to_cdecl=
13755 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13757 $as_echo "failed
" >&6; }
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13760 $as_echo "ok
" >&6; }
13784 # Check whether --enable-libtool-lock was given.
13785 if test "${enable_libtool_lock+set}" = set; then :
13786 enableval=$enable_libtool_lock;
13789 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13791 # Some flags need to be propagated to the compiler or linker for good
13795 # Find out which ABI we are using.
13796 echo 'int i;' > conftest.$ac_ext
13797 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13798 (eval $ac_compile) 2>&5
13800 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13801 test $ac_status = 0; }; then
13802 case `/usr/bin/file conftest.$ac_objext` in
13804 HPUX_IA64_MODE="32"
13807 HPUX_IA64_MODE="64"
13814 # Find out which ABI we are using.
13815 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13816 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13817 (eval $ac_compile) 2>&5
13819 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13820 test $ac_status = 0; }; then
13821 if test "$lt_cv_prog_gnu_ld" = yes; then
13822 case `/usr/bin/file conftest.$ac_objext` in
13824 LD="${LD-ld} -melf32bsmip"
13827 LD="${LD-ld} -melf32bmipn32"
13830 LD="${LD-ld} -melf64bmip"
13834 case `/usr/bin/file conftest.$ac_objext` in
13850 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13851 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13852 # Find out which ABI we are using.
13853 echo 'int i;' > conftest.$ac_ext
13854 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13855 (eval $ac_compile) 2>&5
13857 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13858 test $ac_status = 0; }; then
13859 case `/usr/bin/file conftest.o` in
13862 x86_64-*kfreebsd*-gnu)
13863 LD="${LD-ld} -m elf_i386_fbsd
"
13866 LD="${LD-ld} -m elf_i386
"
13868 ppc64-*linux*|powerpc64-*linux*)
13869 LD="${LD-ld} -m elf32ppclinux
"
13872 LD="${LD-ld} -m elf_s390
"
13875 LD="${LD-ld} -m elf32_sparc
"
13881 x86_64-*kfreebsd*-gnu)
13882 LD="${LD-ld} -m elf_x86_64_fbsd
"
13885 LD="${LD-ld} -m elf_x86_64
"
13887 ppc*-*linux*|powerpc*-*linux*)
13888 LD="${LD-ld} -m elf64ppc
"
13890 s390*-*linux*|s390*-*tpf*)
13891 LD="${LD-ld} -m elf64_s390
"
13894 LD="${LD-ld} -m elf64_sparc
"
13904 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13905 SAVE_CFLAGS="$CFLAGS"
13906 CFLAGS="$CFLAGS -belf"
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13908 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13909 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13910 $as_echo_n "(cached
) " >&6
13913 ac_cpp='$CPP $CPPFLAGS'
13914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13929 if ac_fn_c_try_link "$LINENO"; then :
13930 lt_cv_cc_needs_belf=yes
13932 lt_cv_cc_needs_belf=no
13934 rm -f core conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13937 ac_cpp='$CPP $CPPFLAGS'
13938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13944 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13945 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13946 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13947 CFLAGS="$SAVE_CFLAGS"
13951 # Find out which ABI we are using.
13952 echo 'int i;' > conftest.$ac_ext
13953 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13954 (eval $ac_compile) 2>&5
13956 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13957 test $ac_status = 0; }; then
13958 case `/usr/bin/file conftest.o` in
13960 case $lt_cv_prog_gnu_ld in
13961 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13963 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13975 need_locks="$enable_libtool_lock"
13979 rhapsody* | darwin*)
13980 if test -n "$ac_tool_prefix"; then
13981 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13982 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13984 $as_echo_n "checking
for $ac_word...
" >&6; }
13985 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13986 $as_echo_n "(cached
) " >&6
13988 if test -n "$DSYMUTIL"; then
13989 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13999 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14008 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14009 if test -n "$DSYMUTIL"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14011 $as_echo "$DSYMUTIL" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14014 $as_echo "no
" >&6; }
14019 if test -z "$ac_cv_prog_DSYMUTIL"; then
14020 ac_ct_DSYMUTIL=$DSYMUTIL
14021 # Extract the first word of "dsymutil
", so it can be a program name with args.
14022 set dummy dsymutil; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14024 $as_echo_n "checking
for $ac_word...
" >&6; }
14025 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14026 $as_echo_n "(cached
) " >&6
14028 if test -n "$ac_ct_DSYMUTIL"; then
14029 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14038 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14048 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14049 if test -n "$ac_ct_DSYMUTIL"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14051 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14054 $as_echo "no
" >&6; }
14057 if test "x
$ac_ct_DSYMUTIL" = x; then
14060 case $cross_compiling:$ac_tool_warned in
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14063 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14064 ac_tool_warned=yes ;;
14066 DSYMUTIL=$ac_ct_DSYMUTIL
14069 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14072 if test -n "$ac_tool_prefix"; then
14073 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14074 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14076 $as_echo_n "checking
for $ac_word...
" >&6; }
14077 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14078 $as_echo_n "(cached
) " >&6
14080 if test -n "$NMEDIT"; then
14081 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14100 NMEDIT=$ac_cv_prog_NMEDIT
14101 if test -n "$NMEDIT"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14103 $as_echo "$NMEDIT" >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14106 $as_echo "no
" >&6; }
14111 if test -z "$ac_cv_prog_NMEDIT"; then
14112 ac_ct_NMEDIT=$NMEDIT
14113 # Extract the first word of "nmedit
", so it can be a program name with args.
14114 set dummy nmedit; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14116 $as_echo_n "checking
for $ac_word...
" >&6; }
14117 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14118 $as_echo_n "(cached
) " >&6
14120 if test -n "$ac_ct_NMEDIT"; then
14121 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14127 test -z "$as_dir" && as_dir=.
14128 for ac_exec_ext in '' $ac_executable_extensions; do
14129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14131 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14140 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14141 if test -n "$ac_ct_NMEDIT"; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14143 $as_echo "$ac_ct_NMEDIT" >&6; }
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14146 $as_echo "no
" >&6; }
14149 if test "x
$ac_ct_NMEDIT" = x; then
14152 case $cross_compiling:$ac_tool_warned in
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14155 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14156 ac_tool_warned=yes ;;
14158 NMEDIT=$ac_ct_NMEDIT
14161 NMEDIT="$ac_cv_prog_NMEDIT"
14164 if test -n "$ac_tool_prefix"; then
14165 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14166 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14168 $as_echo_n "checking
for $ac_word...
" >&6; }
14169 if test "${ac_cv_prog_LIPO+set}" = set; then :
14170 $as_echo_n "(cached
) " >&6
14172 if test -n "$LIPO"; then
14173 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14182 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14192 LIPO=$ac_cv_prog_LIPO
14193 if test -n "$LIPO"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14195 $as_echo "$LIPO" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14198 $as_echo "no
" >&6; }
14203 if test -z "$ac_cv_prog_LIPO"; then
14205 # Extract the first word of "lipo
", so it can be a program name with args.
14206 set dummy lipo; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14208 $as_echo_n "checking
for $ac_word...
" >&6; }
14209 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14210 $as_echo_n "(cached
) " >&6
14212 if test -n "$ac_ct_LIPO"; then
14213 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14222 ac_cv_prog_ac_ct_LIPO="lipo
"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14232 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14233 if test -n "$ac_ct_LIPO"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14235 $as_echo "$ac_ct_LIPO" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14238 $as_echo "no
" >&6; }
14241 if test "x
$ac_ct_LIPO" = x; then
14244 case $cross_compiling:$ac_tool_warned in
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14247 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14248 ac_tool_warned=yes ;;
14253 LIPO="$ac_cv_prog_LIPO"
14256 if test -n "$ac_tool_prefix"; then
14257 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14258 set dummy ${ac_tool_prefix}otool; ac_word=$2
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14260 $as_echo_n "checking
for $ac_word...
" >&6; }
14261 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14262 $as_echo_n "(cached
) " >&6
14264 if test -n "$OTOOL"; then
14265 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14274 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14284 OTOOL=$ac_cv_prog_OTOOL
14285 if test -n "$OTOOL"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14287 $as_echo "$OTOOL" >&6; }
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14290 $as_echo "no
" >&6; }
14295 if test -z "$ac_cv_prog_OTOOL"; then
14297 # Extract the first word of "otool
", so it can be a program name with args.
14298 set dummy otool; ac_word=$2
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14300 $as_echo_n "checking
for $ac_word...
" >&6; }
14301 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14302 $as_echo_n "(cached
) " >&6
14304 if test -n "$ac_ct_OTOOL"; then
14305 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $PATH
14311 test -z "$as_dir" && as_dir=.
14312 for ac_exec_ext in '' $ac_executable_extensions; do
14313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14314 ac_cv_prog_ac_ct_OTOOL="otool
"
14315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14324 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14325 if test -n "$ac_ct_OTOOL"; then
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14327 $as_echo "$ac_ct_OTOOL" >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14330 $as_echo "no
" >&6; }
14333 if test "x
$ac_ct_OTOOL" = x; then
14336 case $cross_compiling:$ac_tool_warned in
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14339 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14340 ac_tool_warned=yes ;;
14345 OTOOL="$ac_cv_prog_OTOOL"
14348 if test -n "$ac_tool_prefix"; then
14349 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14350 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14352 $as_echo_n "checking
for $ac_word...
" >&6; }
14353 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14354 $as_echo_n "(cached
) " >&6
14356 if test -n "$OTOOL64"; then
14357 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14366 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14367 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14376 OTOOL64=$ac_cv_prog_OTOOL64
14377 if test -n "$OTOOL64"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14379 $as_echo "$OTOOL64" >&6; }
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14382 $as_echo "no
" >&6; }
14387 if test -z "$ac_cv_prog_OTOOL64"; then
14388 ac_ct_OTOOL64=$OTOOL64
14389 # Extract the first word of "otool64
", so it can be a program name with args.
14390 set dummy otool64; ac_word=$2
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14392 $as_echo_n "checking
for $ac_word...
" >&6; }
14393 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14394 $as_echo_n "(cached
) " >&6
14396 if test -n "$ac_ct_OTOOL64"; then
14397 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14400 for as_dir in $PATH
14403 test -z "$as_dir" && as_dir=.
14404 for ac_exec_ext in '' $ac_executable_extensions; do
14405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14406 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14407 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14416 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14417 if test -n "$ac_ct_OTOOL64"; then
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14419 $as_echo "$ac_ct_OTOOL64" >&6; }
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14422 $as_echo "no
" >&6; }
14425 if test "x
$ac_ct_OTOOL64" = x; then
14428 case $cross_compiling:$ac_tool_warned in
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14431 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14432 ac_tool_warned=yes ;;
14434 OTOOL64=$ac_ct_OTOOL64
14437 OTOOL64="$ac_cv_prog_OTOOL64"
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14467 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14468 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14469 $as_echo_n "(cached
) " >&6
14471 lt_cv_apple_cc_single_mod=no
14472 if test -z "${LT_MULTI_MODULE}"; then
14473 # By default we will add the -single_module flag. You can override
14474 # by either setting the environment variable LT_MULTI_MODULE
14475 # non-empty at configure time, or by adding -multi_module to the
14477 rm -rf libconftest.dylib*
14478 echo "int foo
(void
){return 1;}" > conftest.c
14479 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14480 -dynamiclib -Wl,-single_module conftest.c
" >&5
14481 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14482 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14484 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14485 lt_cv_apple_cc_single_mod=yes
14487 cat conftest.err >&5
14489 rm -rf libconftest.dylib*
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14494 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14496 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14497 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14498 $as_echo_n "(cached
) " >&6
14500 lt_cv_ld_exported_symbols_list=no
14501 save_LDFLAGS=$LDFLAGS
14502 echo "_main
" > conftest.sym
14503 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14515 if ac_fn_c_try_link "$LINENO"; then :
14516 lt_cv_ld_exported_symbols_list=yes
14518 lt_cv_ld_exported_symbols_list=no
14520 rm -f core conftest.err conftest.$ac_objext \
14521 conftest$ac_exeext conftest.$ac_ext
14522 LDFLAGS="$save_LDFLAGS"
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14526 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14528 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14529 if test "${lt_cv_ld_force_load+set}" = set; then :
14530 $as_echo_n "(cached
) " >&6
14532 lt_cv_ld_force_load=no
14533 cat > conftest.c << _LT_EOF
14534 int forced_loaded() { return 2;}
14536 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14537 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14538 echo "$AR cru libconftest.a conftest.o
" >&5
14539 $AR cru libconftest.a conftest.o 2>&5
14540 cat > conftest.c << _LT_EOF
14541 int main() { return 0;}
14543 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14544 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14546 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14547 lt_cv_ld_force_load=yes
14549 cat conftest.err >&5
14551 rm -f conftest.err libconftest.a conftest conftest.c
14552 rm -rf conftest.dSYM
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14556 $as_echo "$lt_cv_ld_force_load" >&6; }
14558 rhapsody* | darwin1.[012])
14559 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14562 darwin*) # darwin 5.x on
14563 # if running on 10.5 or later, the deployment target defaults
14564 # to the OS version, if on x86, and 10.4, the deployment
14565 # target defaults to 10.4. Don't you love it?
14566 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14567 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14568 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14570 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14572 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14576 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14577 _lt_dar_single_mod='$single_module'
14579 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14580 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14582 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14584 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14585 _lt_dsymutil='~$DSYMUTIL $lib || :'
14592 for ac_header in dlfcn.h
14594 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14595 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14596 cat >>confdefs.h <<_ACEOF
14597 #define HAVE_DLFCN_H 1
14614 enable_win32_dll=no
14617 # Check whether --enable-shared was given.
14618 if test "${enable_shared+set}" = set; then :
14619 enableval=$enable_shared; p=${PACKAGE-default}
14621 yes) enable_shared=yes ;;
14622 no) enable_shared=no ;;
14625 # Look at the argument we got. We use all the common list separators.
14626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14627 for pkg in $enableval; do
14629 if test "X
$pkg" = "X
$p"; then
14648 # Check whether --enable-static was given.
14649 if test "${enable_static+set}" = set; then :
14650 enableval=$enable_static; p=${PACKAGE-default}
14652 yes) enable_static=yes ;;
14653 no) enable_static=no ;;
14656 # Look at the argument we got. We use all the common list separators.
14657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14658 for pkg in $enableval; do
14660 if test "X
$pkg" = "X
$p"; then
14680 # Check whether --with-pic was given.
14681 if test "${with_pic+set}" = set; then :
14682 withval=$with_pic; pic_mode="$withval"
14688 test -z "$pic_mode" && pic_mode=default
14696 # Check whether --enable-fast-install was given.
14697 if test "${enable_fast_install+set}" = set; then :
14698 enableval=$enable_fast_install; p=${PACKAGE-default}
14700 yes) enable_fast_install=yes ;;
14701 no) enable_fast_install=no ;;
14703 enable_fast_install=no
14704 # Look at the argument we got. We use all the common list separators.
14705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14706 for pkg in $enableval; do
14708 if test "X
$pkg" = "X
$p"; then
14709 enable_fast_install=yes
14716 enable_fast_install=yes
14729 # This can be used to rebuild libtool when needed
14730 LIBTOOL_DEPS="$ltmain"
14732 # Always use our own libtool.
14733 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14760 test -z "$LN_S" && LN_S="ln -s"
14775 if test -n "${ZSH_VERSION+set}" ; then
14776 setopt NO_GLOB_SUBST
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14780 $as_echo_n "checking
for objdir...
" >&6; }
14781 if test "${lt_cv_objdir+set}" = set; then :
14782 $as_echo_n "(cached
) " >&6
14784 rm -f .libs 2>/dev/null
14785 mkdir .libs 2>/dev/null
14786 if test -d .libs; then
14789 # MS-DOS does not allow filenames that begin with a dot.
14792 rmdir .libs 2>/dev/null
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14795 $as_echo "$lt_cv_objdir" >&6; }
14796 objdir=$lt_cv_objdir
14802 cat >>confdefs.h <<_ACEOF
14803 #define LT_OBJDIR "$lt_cv_objdir/"
14811 # AIX sometimes has problems with the GCC collect2 program. For some
14812 # reason, if we set the COLLECT_NAMES environment variable, the problems
14813 # vanish in a puff of smoke.
14814 if test "X
${COLLECT_NAMES+set}" != Xset; then
14816 export COLLECT_NAMES
14821 # Global variables:
14823 can_build_shared=yes
14825 # All known linkers require a `.a' archive for static linking (except MSVC,
14826 # which needs '.lib').
14829 with_gnu_ld="$lt_cv_prog_gnu_ld"
14832 old_CFLAGS="$CFLAGS"
14834 # Set sane defaults for various variables
14835 test -z "$CC" && CC=cc
14836 test -z "$LTCC" && LTCC=$CC
14837 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14838 test -z "$LD" && LD=ld
14839 test -z "$ac_objext" && ac_objext=o
14841 for cc_temp in $compiler""; do
14843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14849 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14852 # Only perform the check for file, if the check method requires it
14853 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14854 case $deplibs_check_method in
14856 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14858 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14859 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14860 $as_echo_n "(cached
) " >&6
14864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14867 lt_save_MAGIC_CMD="$MAGIC_CMD"
14868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14869 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14870 for ac_dir in $ac_dummy; do
14872 test -z "$ac_dir" && ac_dir=.
14873 if test -f $ac_dir/${ac_tool_prefix}file; then
14874 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14875 if test -n "$file_magic_test_file"; then
14876 case $deplibs_check_method in
14878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14881 $EGREP "$file_magic_regex" > /dev/null; then
14886 *** Warning: the command libtool uses to detect shared libraries,
14887 *** $file_magic_cmd, produces output that libtool cannot recognize.
14888 *** The result is that libtool may fail to recognize shared libraries
14889 *** as such. This will affect the creation of libtool libraries that
14890 *** depend on shared libraries, but programs linked with such libtool
14891 *** libraries will work regardless of this problem. Nevertheless, you
14892 *** may want to report the problem to your system manager and/or to
14893 *** bug-libtool@gnu.org
14903 MAGIC_CMD="$lt_save_MAGIC_CMD"
14908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14909 if test -n "$MAGIC_CMD"; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14911 $as_echo "$MAGIC_CMD" >&6; }
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14914 $as_echo "no
" >&6; }
14921 if test -z "$lt_cv_path_MAGIC_CMD"; then
14922 if test -n "$ac_tool_prefix"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14924 $as_echo_n "checking
for file...
" >&6; }
14925 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14926 $as_echo_n "(cached
) " >&6
14930 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14933 lt_save_MAGIC_CMD="$MAGIC_CMD"
14934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14935 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14936 for ac_dir in $ac_dummy; do
14938 test -z "$ac_dir" && ac_dir=.
14939 if test -f $ac_dir/file; then
14940 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14941 if test -n "$file_magic_test_file"; then
14942 case $deplibs_check_method in
14944 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14946 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14947 $EGREP "$file_magic_regex" > /dev/null; then
14952 *** Warning: the command libtool uses to detect shared libraries,
14953 *** $file_magic_cmd, produces output that libtool cannot recognize.
14954 *** The result is that libtool may fail to recognize shared libraries
14955 *** as such. This will affect the creation of libtool libraries that
14956 *** depend on shared libraries, but programs linked with such libtool
14957 *** libraries will work regardless of this problem. Nevertheless, you
14958 *** may want to report the problem to your system manager and/or to
14959 *** bug-libtool@gnu.org
14969 MAGIC_CMD="$lt_save_MAGIC_CMD"
14974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14975 if test -n "$MAGIC_CMD"; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14977 $as_echo "$MAGIC_CMD" >&6; }
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14980 $as_echo "no
" >&6; }
14993 # Use C for the default configuration in the libtool script
14997 ac_cpp='$CPP $CPPFLAGS'
14998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15003 # Source file extension for C test sources.
15006 # Object file extension for compiled C test sources.
15010 # Code to be used in simple compile tests
15011 lt_simple_compile_test_code="int some_variable
= 0;"
15013 # Code to be used in simple link tests
15014 lt_simple_link_test_code='int main(){return(0);}'
15022 # If no C compiler was specified, use CC.
15025 # If no C compiler flags were specified, use CFLAGS.
15026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15028 # Allow CC to be a program name with arguments.
15031 # Save the default compiler, since it gets overwritten when the other
15032 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15033 compiler_DEFAULT=$CC
15035 # save warnings/boilerplate of simple test code
15036 ac_outfile=conftest.$ac_objext
15037 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15039 _lt_compiler_boilerplate=`cat conftest.err`
15042 ac_outfile=conftest.$ac_objext
15043 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15045 _lt_linker_boilerplate=`cat conftest.err`
15050 ## There is no encapsulation within the following macros, do not change
15051 ## the running order or otherwise move them around unless you know exactly
15052 ## what you are doing...
15053 if test -n "$compiler"; then
15055 lt_prog_compiler_no_builtin_flag=
15057 if test "$GCC" = yes; then
15058 case $cc_basename in
15060 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15062 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15066 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15067 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15068 $as_echo_n "(cached
) " >&6
15070 lt_cv_prog_compiler_rtti_exceptions=no
15071 ac_outfile=conftest.$ac_objext
15072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15073 lt_compiler_flag="-fno-rtti -fno-exceptions"
15074 # Insert the option either (1) after the last *FLAGS variable, or
15075 # (2) before a word containing "conftest.
", or (3) at the end.
15076 # Note that $ac_compile itself does not contain backslashes and begins
15077 # with a dollar sign (not a hyphen), so the echo should work correctly.
15078 # The option is referenced via a variable to avoid confusing sed.
15079 lt_compile=`echo "$ac_compile" | $SED \
15080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15082 -e 's:$: $lt_compiler_flag:'`
15083 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15084 (eval "$lt_compile" 2>conftest.err)
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15088 if (exit $ac_status) && test -s "$ac_outfile"; then
15089 # The compiler can only warn and ignore the option if not recognized
15090 # So say no if there are warnings other than the usual output.
15091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15094 lt_cv_prog_compiler_rtti_exceptions=yes
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15101 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15103 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15104 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15116 lt_prog_compiler_wl=
15117 lt_prog_compiler_pic=
15118 lt_prog_compiler_static=
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15121 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15123 if test "$GCC" = yes; then
15124 lt_prog_compiler_wl='-Wl,'
15125 lt_prog_compiler_static='-static'
15129 # All AIX code is PIC.
15130 if test "$host_cpu" = ia64; then
15131 # AIX 5 now supports IA64 processor
15132 lt_prog_compiler_static='-Bstatic'
15139 # see comment about AmigaOS4 .so support
15140 lt_prog_compiler_pic='-fPIC'
15143 # FIXME: we need at least 68020 code to build shared libraries, but
15144 # adding the `-m68020' flag to GCC prevents building anything better,
15146 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15151 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15152 # PIC is the default for these OSes.
15155 mingw* | cygwin* | pw32* | os2* | cegcc*)
15156 # This hack is so that the source file can tell whether it is being
15157 # built for inclusion in a dll (and should export symbols for example).
15158 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15159 # (--disable-auto-import) libraries
15160 lt_prog_compiler_pic='-DDLL_EXPORT'
15163 darwin* | rhapsody*)
15164 # PIC is the default on this platform
15165 # Common symbols not allowed in MH_DYLIB files
15166 lt_prog_compiler_pic='-fno-common'
15170 # PIC is the default for Haiku.
15171 # The "-static" flag exists, but is broken.
15172 lt_prog_compiler_static=
15176 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15177 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15178 # sets the default TLS model and affects inlining.
15184 lt_prog_compiler_pic='-fPIC'
15190 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15191 # Instead, we relocate shared libraries at runtime.
15195 # Just because we use GCC doesn't mean we suddenly get shared libraries
15196 # on systems that don't support them.
15197 lt_prog_compiler_can_build_shared=no
15202 # QNX uses GNU C++, but need to define -shared option too, otherwise
15203 # it will coredump.
15204 lt_prog_compiler_pic='-fPIC -shared'
15208 if test -d /usr/nec; then
15209 lt_prog_compiler_pic=-Kconform_pic
15214 lt_prog_compiler_pic='-fPIC'
15218 case $cc_basename in
15219 nvcc*) # Cuda Compiler Driver 2.2
15220 lt_prog_compiler_wl='-Xlinker '
15221 lt_prog_compiler_pic='-Xcompiler -fPIC'
15225 # PORTME Check for flag to pass linker flags through the system compiler.
15228 lt_prog_compiler_wl='-Wl,'
15229 if test "$host_cpu" = ia64; then
15230 # AIX 5 now supports IA64 processor
15231 lt_prog_compiler_static='-Bstatic'
15233 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15237 mingw* | cygwin* | pw32* | os2* | cegcc*)
15238 # This hack is so that the source file can tell whether it is being
15239 # built for inclusion in a dll (and should export symbols for example).
15240 lt_prog_compiler_pic='-DDLL_EXPORT'
15243 hpux9* | hpux10* | hpux11*)
15244 lt_prog_compiler_wl='-Wl,'
15245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15246 # not for PA HP-UX.
15252 lt_prog_compiler_pic='+Z'
15255 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15256 lt_prog_compiler_static='${wl}-a ${wl}archive'
15259 irix5* | irix6* | nonstopux*)
15260 lt_prog_compiler_wl='-Wl,'
15261 # PIC (with -KPIC) is the default.
15262 lt_prog_compiler_static='-non_shared'
15265 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15266 case $cc_basename in
15267 # old Intel for x86_64 which still supported -KPIC.
15269 lt_prog_compiler_wl='-Wl,'
15270 lt_prog_compiler_pic='-KPIC'
15271 lt_prog_compiler_static='-static'
15273 # icc used to be incompatible with GCC.
15274 # ICC 10 doesn't accept -KPIC any more.
15276 lt_prog_compiler_wl='-Wl,'
15277 lt_prog_compiler_pic='-fPIC'
15278 lt_prog_compiler_static='-static'
15280 # Lahey Fortran 8.1.
15282 lt_prog_compiler_wl='-Wl,'
15283 lt_prog_compiler_pic='--shared'
15284 lt_prog_compiler_static='--static'
15286 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15287 # Portland Group compilers (*not* the Pentium gcc compiler,
15288 # which looks to be a dead project)
15289 lt_prog_compiler_wl='-Wl,'
15290 lt_prog_compiler_pic='-fpic'
15291 lt_prog_compiler_static='-Bstatic'
15294 lt_prog_compiler_wl='-Wl,'
15295 # All Alpha code is PIC.
15296 lt_prog_compiler_static='-non_shared'
15298 xl* | bgxl* | bgf* | mpixl*)
15299 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15300 lt_prog_compiler_wl='-Wl,'
15301 lt_prog_compiler_pic='-qpic'
15302 lt_prog_compiler_static='-qstaticlink'
15305 case `$CC -V 2>&1 | sed 5q` in
15306 *Sun\ F* | *Sun*Fortran*)
15307 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15308 lt_prog_compiler_pic='-KPIC'
15309 lt_prog_compiler_static='-Bstatic'
15310 lt_prog_compiler_wl=''
15314 lt_prog_compiler_pic='-KPIC'
15315 lt_prog_compiler_static='-Bstatic'
15316 lt_prog_compiler_wl='-Wl,'
15324 lt_prog_compiler_pic='-KPIC'
15325 lt_prog_compiler_static='-Bstatic'
15329 # QNX uses GNU C++, but need to define -shared option too, otherwise
15330 # it will coredump.
15331 lt_prog_compiler_pic='-fPIC -shared'
15334 osf3* | osf4* | osf5*)
15335 lt_prog_compiler_wl='-Wl,'
15336 # All OSF/1 code is PIC.
15337 lt_prog_compiler_static='-non_shared'
15341 lt_prog_compiler_static='-non_shared'
15345 lt_prog_compiler_pic='-KPIC'
15346 lt_prog_compiler_static='-Bstatic'
15347 case $cc_basename in
15348 f77* | f90* | f95*)
15349 lt_prog_compiler_wl='-Qoption ld ';;
15351 lt_prog_compiler_wl='-Wl,';;
15356 lt_prog_compiler_wl='-Qoption ld '
15357 lt_prog_compiler_pic='-PIC'
15358 lt_prog_compiler_static='-Bstatic'
15361 sysv4 | sysv4.2uw2* | sysv4.3*)
15362 lt_prog_compiler_wl='-Wl,'
15363 lt_prog_compiler_pic='-KPIC'
15364 lt_prog_compiler_static='-Bstatic'
15368 if test -d /usr/nec ;then
15369 lt_prog_compiler_pic='-Kconform_pic'
15370 lt_prog_compiler_static='-Bstatic'
15374 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15375 lt_prog_compiler_wl='-Wl,'
15376 lt_prog_compiler_pic='-KPIC'
15377 lt_prog_compiler_static='-Bstatic'
15381 lt_prog_compiler_wl='-Wl,'
15382 lt_prog_compiler_can_build_shared=no
15386 lt_prog_compiler_pic='-pic'
15387 lt_prog_compiler_static='-Bstatic'
15391 lt_prog_compiler_can_build_shared=no
15397 # For platforms which do not support PIC, -DPIC is meaningless:
15399 lt_prog_compiler_pic=
15402 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15406 $as_echo "$lt_prog_compiler_pic" >&6; }
15414 # Check to make sure the PIC flag actually works.
15416 if test -n "$lt_prog_compiler_pic"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15418 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15419 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15420 $as_echo_n "(cached
) " >&6
15422 lt_cv_prog_compiler_pic_works=no
15423 ac_outfile=conftest.$ac_objext
15424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15425 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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 # The option is referenced via a variable to avoid confusing sed.
15431 lt_compile=`echo "$ac_compile" | $SED \
15432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15434 -e 's:$: $lt_compiler_flag:'`
15435 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15436 (eval "$lt_compile" 2>conftest.err)
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15440 if (exit $ac_status) && test -s "$ac_outfile"; then
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings other than the usual output.
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_pic_works=yes
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15453 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15455 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15456 case $lt_prog_compiler_pic in
15458 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15461 lt_prog_compiler_pic=
15462 lt_prog_compiler_can_build_shared=no
15473 # Check to make sure the static flag actually works.
15475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15477 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15478 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15479 $as_echo_n "(cached
) " >&6
15481 lt_cv_prog_compiler_static_works=no
15482 save_LDFLAGS="$LDFLAGS"
15483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15484 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15486 # The linker can only warn and ignore the option if not recognized
15487 # So say no if there are warnings
15488 if test -s conftest.err; then
15489 # Append any errors to the config.log.
15490 cat conftest.err 1>&5
15491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15493 if diff conftest.exp conftest.er2 >/dev/null; then
15494 lt_cv_prog_compiler_static_works=yes
15497 lt_cv_prog_compiler_static_works=yes
15501 LDFLAGS="$save_LDFLAGS"
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15505 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15507 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15510 lt_prog_compiler_static=
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15520 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15522 $as_echo_n "(cached
) " >&6
15524 lt_cv_prog_compiler_c_o=no
15525 $RM -r conftest 2>/dev/null
15529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15531 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15532 # Insert the option either (1) after the last *FLAGS variable, or
15533 # (2) before a word containing "conftest.
", or (3) at the end.
15534 # Note that $ac_compile itself does not contain backslashes and begins
15535 # with a dollar sign (not a hyphen), so the echo should work correctly.
15536 lt_compile=`echo "$ac_compile" | $SED \
15537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15539 -e 's:$: $lt_compiler_flag:'`
15540 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15541 (eval "$lt_compile" 2>out/conftest.err)
15543 cat out/conftest.err >&5
15544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15547 # The compiler can only warn and ignore the option if not recognized
15548 # So say no if there are warnings
15549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15552 lt_cv_prog_compiler_c_o=yes
15557 # SGI C++ compiler will create directory out/ii_files/ for
15558 # template instantiation
15559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15560 $RM out/* && rmdir out
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15567 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15575 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15577 $as_echo_n "(cached
) " >&6
15579 lt_cv_prog_compiler_c_o=no
15580 $RM -r conftest 2>/dev/null
15584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15586 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15587 # Insert the option either (1) after the last *FLAGS variable, or
15588 # (2) before a word containing "conftest.
", or (3) at the end.
15589 # Note that $ac_compile itself does not contain backslashes and begins
15590 # with a dollar sign (not a hyphen), so the echo should work correctly.
15591 lt_compile=`echo "$ac_compile" | $SED \
15592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15594 -e 's:$: $lt_compiler_flag:'`
15595 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15596 (eval "$lt_compile" 2>out/conftest.err)
15598 cat out/conftest.err >&5
15599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15602 # The compiler can only warn and ignore the option if not recognized
15603 # So say no if there are warnings
15604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15607 lt_cv_prog_compiler_c_o=yes
15612 # SGI C++ compiler will create directory out/ii_files/ for
15613 # template instantiation
15614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15615 $RM out/* && rmdir out
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15622 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15627 hard_links="nottested
"
15628 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15629 # do not overwrite the value of need_locks provided by the user
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15631 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15636 ln conftest.a conftest.b 2>&5 || hard_links=no
15637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15639 $as_echo "$hard_links" >&6; }
15640 if test "$hard_links" = no; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15642 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15655 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15658 allow_undefined_flag=
15659 always_export_symbols=no
15661 archive_expsym_cmds=
15662 compiler_needs_object=no
15663 enable_shared_with_static_runtimes=no
15664 export_dynamic_flag_spec=
15665 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15666 hardcode_automatic=no
15668 hardcode_direct_absolute=no
15669 hardcode_libdir_flag_spec=
15670 hardcode_libdir_flag_spec_ld=
15671 hardcode_libdir_separator=
15672 hardcode_minus_L=no
15673 hardcode_shlibpath_var=unsupported
15675 link_all_deplibs=unknown
15677 module_expsym_cmds=
15678 old_archive_from_new_cmds=
15679 old_archive_from_expsyms_cmds=
15680 thread_safe_flag_spec=
15681 whole_archive_flag_spec=
15682 # include_expsyms should be a list of space-separated symbols to be *always*
15683 # included in the symbol list
15685 # exclude_expsyms can be an extended regexp of symbols to exclude
15686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15688 # as well as any symbol that contains `d'.
15689 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15691 # platforms (ab)use it in PIC code, but their linkers get confused if
15692 # the symbol is explicitly referenced. Since portable code cannot
15693 # rely on this symbol name, it's probably fine to never include it in
15694 # preloaded symbol tables.
15695 # Exclude shared library initialization/finalization symbols.
15696 extract_expsyms_cmds=
15699 cygwin* | mingw* | pw32* | cegcc*)
15700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15701 # When not using gcc, we currently assume that we are using
15702 # Microsoft Visual C++.
15703 if test "$GCC" != yes; then
15708 # we just hope/assume this is gcc and not c89 (= MSVC++)
15718 # On some targets, GNU ld is compatible enough with the native linker
15719 # that we're better off using the native interface for both.
15720 lt_use_gnu_ld_interface=no
15721 if test "$with_gnu_ld" = yes; then
15724 # The AIX port of GNU ld has always aspired to compatibility
15725 # with the native linker. However, as the warning in the GNU ld
15726 # block says, versions before 2.19.5* couldn't really create working
15727 # shared libraries, regardless of the interface used.
15728 case `$LD -v 2>&1` in
15729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15731 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15733 lt_use_gnu_ld_interface=yes
15738 lt_use_gnu_ld_interface=yes
15743 if test "$lt_use_gnu_ld_interface" = yes; then
15744 # If archive_cmds runs LD, not CC, wlarc should be empty
15747 # Set some defaults for GNU ld with shared library support. These
15748 # are reset later if shared libraries are not supported. Putting them
15749 # here allows them to be overridden if necessary.
15750 runpath_var=LD_RUN_PATH
15751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15752 export_dynamic_flag_spec='${wl}--export-dynamic'
15753 # ancient GNU ld didn't support --whole-archive et. al.
15754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15755 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15757 whole_archive_flag_spec=
15759 supports_anon_versioning=no
15760 case `$LD -v 2>&1` in
15761 *GNU\ gold*) supports_anon_versioning=yes ;;
15762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15765 *\ 2.11.*) ;; # other 2.11 versions
15766 *) supports_anon_versioning=yes ;;
15769 # See if GNU ld supports shared libraries.
15772 # On AIX/PPC, the GNU linker is very broken
15773 if test "$host_cpu" != ia64; then
15777 *** Warning: the GNU linker, at least up to release 2.19, is reported
15778 *** to be unable to reliably create shared libraries on AIX.
15779 *** Therefore, libtool is disabling shared libraries support. If you
15780 *** really care for shared libraries, you may want to install binutils
15781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15782 *** You will then need to restart the configuration process.
15791 # see comment about AmigaOS4 .so support
15792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15793 archive_expsym_cmds=''
15796 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)'
15797 hardcode_libdir_flag_spec
='-L$libdir'
15798 hardcode_minus_L
=yes
15804 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15805 allow_undefined_flag
=unsupported
15806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15807 # support --undefined. This deserves some investigation. FIXME
15808 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 cygwin
* | mingw
* | pw32
* | cegcc
*)
15815 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15816 # as there is no search path for DLLs.
15817 hardcode_libdir_flag_spec
='-L$libdir'
15818 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15819 allow_undefined_flag
=unsupported
15820 always_export_symbols
=no
15821 enable_shared_with_static_runtimes
=yes
15822 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15824 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15825 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15826 # If the export-symbols file already is a .def file (1st line
15827 # is EXPORTS), use it as is; otherwise, prepend...
15828 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15829 cp $export_symbols $output_objdir/$soname.def;
15831 echo EXPORTS > $output_objdir/$soname.def;
15832 cat $export_symbols >> $output_objdir/$soname.def;
15834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15841 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 link_all_deplibs
=yes
15847 hardcode_shlibpath_var
=no
15848 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15849 export_dynamic_flag_spec
='${wl}-E'
15850 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15851 # Instead, shared libraries are loaded at an image base (0x10000000 by
15852 # default) and relocated if they conflict, which is a slow very memory
15853 # consuming and fragmenting process. To avoid this, we pick a random,
15854 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15855 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15856 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15857 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'
15860 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15862 if test "$host_os" = linux-dietlibc
; then
15863 case $cc_basename in
15864 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15867 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15868 && test "$tmp_diet" = no
15871 tmp_sharedflag
='-shared'
15872 case $cc_basename,$host_cpu in
15873 pgcc
*) # Portland Group C compiler
15874 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'
15875 tmp_addflag
=' $pic_flag'
15877 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15878 # Portland Group f77 and f90 compilers
15879 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'
15880 tmp_addflag
=' $pic_flag -Mnomain' ;;
15881 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15882 tmp_addflag
=' -i_dynamic' ;;
15883 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15884 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15885 ifc
* | ifort
*) # Intel Fortran compiler
15886 tmp_addflag
=' -nofor_main' ;;
15887 lf95
*) # Lahey Fortran 8.1
15888 whole_archive_flag_spec
=
15889 tmp_sharedflag
='--shared' ;;
15890 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15891 tmp_sharedflag
='-qmkshrobj'
15893 nvcc
*) # Cuda Compiler Driver 2.2
15894 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'
15895 compiler_needs_object
=yes
15898 case `$CC -V 2>&1 | sed 5q` in
15899 *Sun\ C
*) # Sun C 5.9
15900 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'
15901 compiler_needs_object
=yes
15902 tmp_sharedflag
='-G' ;;
15903 *Sun\ F
*) # Sun Fortran 8.3
15904 tmp_sharedflag
='-G' ;;
15906 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15908 if test "x$supports_anon_versioning" = xyes
; then
15909 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15910 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15911 echo "local: *; };" >> $output_objdir/$libname.ver~
15912 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15915 case $cc_basename in
15916 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15917 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15918 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15919 hardcode_libdir_flag_spec
=
15920 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15921 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15922 if test "x$supports_anon_versioning" = xyes
; then
15923 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15925 echo "local: *; };" >> $output_objdir/$libname.ver~
15926 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15936 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15937 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15940 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15946 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15951 *** create shared libraries on Solaris systems. Therefore, libtool
15952 *** is disabling shared libraries support. We urge you to upgrade GNU
15953 *** binutils to release 2.9.1 or newer. Another option is to modify
15954 *** your PATH or compiler configuration so that the native linker is
15955 *** used, and then restart.
15958 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15959 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15960 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15966 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15967 case `$LD -v 2>&1` in
15968 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15973 *** reliably create shared libraries on SCO systems. Therefore, libtool
15974 *** is disabling shared libraries support. We urge you to upgrade GNU
15975 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15976 *** your PATH or compiler configuration so that the native linker is
15977 *** used, and then restart.
15982 # For security reasons, it is highly recommended that you always
15983 # use absolute paths for naming shared libraries, and exclude the
15984 # DT_RUNPATH tag from executables and libraries. But doing so
15985 # requires that you compile everything twice, which is a pain.
15986 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15987 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15988 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15998 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16000 hardcode_direct
=yes
16001 hardcode_shlibpath_var
=no
16005 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16006 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16007 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16014 if test "$ld_shlibs" = no
; then
16016 hardcode_libdir_flag_spec
=
16017 export_dynamic_flag_spec
=
16018 whole_archive_flag_spec
=
16021 # PORTME fill in a description of your system's linker (not GNU ld)
16024 allow_undefined_flag
=unsupported
16025 always_export_symbols
=yes
16026 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'
16027 # Note: this linker hardcodes the directories in LIBPATH if there
16028 # are no directories specified by -L.
16029 hardcode_minus_L
=yes
16030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16031 # Neither direct hardcoding nor static linking is supported with a
16033 hardcode_direct
=unsupported
16038 if test "$host_cpu" = ia64
; then
16039 # On IA64, the linker does run time linking by default, so we don't
16040 # have to do anything special.
16041 aix_use_runtimelinking
=no
16042 exp_sym_flag
='-Bexport'
16045 # If we're using GNU nm, then we don't want the "-C" option.
16046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16047 # Also, AIX nm treats weak defined symbols like other global
16048 # defined symbols, whereas GNU nm marks them as "W".
16049 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16050 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'
16052 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'
16054 aix_use_runtimelinking
=no
16056 # Test if we are trying to use run time linking or normal
16057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16058 # need to do runtime linking.
16059 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16060 for ld_flag
in $LDFLAGS; do
16061 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16062 aix_use_runtimelinking
=yes
16069 exp_sym_flag
='-bexport'
16070 no_entry_flag
='-bnoentry'
16073 # When large executables or shared objects are built, AIX ld can
16074 # have problems creating the table of contents. If linking a library
16075 # or program results in "error TOC overflow" add -mminimal-toc to
16076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16080 hardcode_direct
=yes
16081 hardcode_direct_absolute
=yes
16082 hardcode_libdir_separator
=':'
16083 link_all_deplibs
=yes
16084 file_list_spec
='${wl}-f,'
16086 if test "$GCC" = yes; then
16087 case $host_os in aix4.
[012]|aix4.
[012].
*)
16088 # We only want to do this on AIX 4.2 and lower, the check
16089 # below for broken collect2 doesn't work under 4.3+
16090 collect2name
=`${CC} -print-prog-name=collect2`
16091 if test -f "$collect2name" &&
16092 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16094 # We have reworked collect2
16097 # We have old collect2
16098 hardcode_direct
=unsupported
16099 # It fails to find uninstalled libraries when the uninstalled
16100 # path is not listed in the libpath. Setting hardcode_minus_L
16101 # to unsupported forces relinking
16102 hardcode_minus_L
=yes
16103 hardcode_libdir_flag_spec
='-L$libdir'
16104 hardcode_libdir_separator
=
16108 shared_flag
='-shared'
16109 if test "$aix_use_runtimelinking" = yes; then
16110 shared_flag
="$shared_flag "'${wl}-G'
16114 if test "$host_cpu" = ia64
; then
16115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16116 # chokes on -Wl,-G. The following line is correct:
16119 if test "$aix_use_runtimelinking" = yes; then
16120 shared_flag
='${wl}-G'
16122 shared_flag
='${wl}-bM:SRE'
16127 export_dynamic_flag_spec
='${wl}-bexpall'
16128 # It seems that -bexpall does not export symbols beginning with
16129 # underscore (_), so it is better to generate a list of symbols to export.
16130 always_export_symbols
=yes
16131 if test "$aix_use_runtimelinking" = yes; then
16132 # Warning - without using the other runtime loading flags (-brtl),
16133 # -berok will link without error, but may produce a broken library.
16134 allow_undefined_flag
='-berok'
16135 # Determine the default libpath from the value encoded in an
16136 # empty executable.
16137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16148 if ac_fn_c_try_link
"$LINENO"; then :
16150 lt_aix_libpath_sed
='
16151 /Import File Strings/,/^$/ {
16157 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16158 # Check for a 64-bit object if we didn't find anything.
16159 if test -z "$aix_libpath"; then
16160 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16163 rm -f core conftest.err conftest.
$ac_objext \
16164 conftest
$ac_exeext conftest.
$ac_ext
16165 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16167 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16168 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"
16170 if test "$host_cpu" = ia64
; then
16171 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16172 allow_undefined_flag
="-z nodefs"
16173 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"
16175 # Determine the default libpath from the value encoded in an
16176 # empty executable.
16177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16188 if ac_fn_c_try_link
"$LINENO"; then :
16190 lt_aix_libpath_sed
='
16191 /Import File Strings/,/^$/ {
16197 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16198 # Check for a 64-bit object if we didn't find anything.
16199 if test -z "$aix_libpath"; then
16200 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16203 rm -f core conftest.err conftest.
$ac_objext \
16204 conftest
$ac_exeext conftest.
$ac_ext
16205 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16207 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16208 # Warning - without using the other run time loading flags,
16209 # -berok will link without error, but may produce a broken library.
16210 no_undefined_flag
=' ${wl}-bernotok'
16211 allow_undefined_flag
=' ${wl}-berok'
16212 if test "$with_gnu_ld" = yes; then
16213 # We only use this code for GNU lds that support --whole-archive.
16214 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16216 # Exported symbols can be pulled into shared objects from archives
16217 whole_archive_flag_spec
='$convenience'
16219 archive_cmds_need_lc
=yes
16220 # This is similar to how AIX traditionally builds its shared libraries.
16221 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'
16229 # see comment about AmigaOS4 .so support
16230 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16231 archive_expsym_cmds
=''
16234 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)'
16235 hardcode_libdir_flag_spec
='-L$libdir'
16236 hardcode_minus_L
=yes
16242 export_dynamic_flag_spec
=-rdynamic
16245 cygwin
* | mingw
* | pw32
* | cegcc
*)
16246 # When not using gcc, we currently assume that we are using
16247 # Microsoft Visual C++.
16248 # hardcode_libdir_flag_spec is actually meaningless, as there is
16249 # no search path for DLLs.
16250 hardcode_libdir_flag_spec
=' '
16251 allow_undefined_flag
=unsupported
16252 # Tell ltmain to make .lib files, not .a files.
16254 # Tell ltmain to make .dll files, not .so files.
16256 # FIXME: Setting linknames here is a bad hack.
16257 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16258 # The linker will automatically build a .lib file if we build a DLL.
16259 old_archive_from_new_cmds
='true'
16260 # FIXME: Should let the user specify the lib program.
16261 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16262 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16263 enable_shared_with_static_runtimes
=yes
16266 darwin
* | rhapsody
*)
16269 archive_cmds_need_lc
=no
16271 hardcode_automatic
=yes
16272 hardcode_shlibpath_var
=unsupported
16273 if test "$lt_cv_ld_force_load" = "yes"; then
16274 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\"`'
16276 whole_archive_flag_spec
=''
16278 link_all_deplibs
=yes
16279 allow_undefined_flag
="$_lt_dar_allow_undefined"
16280 case $cc_basename in
16281 ifort
*) _lt_dar_can_shared
=yes ;;
16282 *) _lt_dar_can_shared
=$GCC ;;
16284 if test "$_lt_dar_can_shared" = "yes"; then
16285 output_verbose_link_cmd
=func_echo_all
16286 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16287 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16288 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}"
16289 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}"
16298 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16299 hardcode_libdir_flag_spec
='-L$libdir'
16300 hardcode_shlibpath_var
=no
16303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16304 # support. Future versions do this automatically, but an explicit c++rt0.o
16305 # does not break anything, and helps significantly (at the cost of a little
16308 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16309 hardcode_libdir_flag_spec
='-R$libdir'
16310 hardcode_direct
=yes
16311 hardcode_shlibpath_var
=no
16314 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16316 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16317 hardcode_direct
=yes
16318 hardcode_minus_L
=yes
16319 hardcode_shlibpath_var
=no
16322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16323 freebsd
* | dragonfly
*)
16324 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16325 hardcode_libdir_flag_spec
='-R$libdir'
16326 hardcode_direct
=yes
16327 hardcode_shlibpath_var
=no
16331 if test "$GCC" = yes; then
16332 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'
16334 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'
16336 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16337 hardcode_libdir_separator
=:
16338 hardcode_direct
=yes
16340 # hardcode_minus_L: Not really in the search PATH,
16341 # but as the default location of the library.
16342 hardcode_minus_L
=yes
16343 export_dynamic_flag_spec
='${wl}-E'
16347 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16348 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16352 if test "$with_gnu_ld" = no
; then
16353 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16354 hardcode_libdir_flag_spec_ld
='+b $libdir'
16355 hardcode_libdir_separator
=:
16356 hardcode_direct
=yes
16357 hardcode_direct_absolute
=yes
16358 export_dynamic_flag_spec
='${wl}-E'
16359 # hardcode_minus_L: Not really in the search PATH,
16360 # but as the default location of the library.
16361 hardcode_minus_L
=yes
16366 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16369 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16372 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16375 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16381 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16388 # Older versions of the 11.00 compiler do not understand -b yet
16389 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16391 $as_echo_n "checking if $CC understands -b... " >&6; }
16392 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16393 $as_echo_n "(cached) " >&6
16395 lt_cv_prog_compiler__b
=no
16396 save_LDFLAGS
="$LDFLAGS"
16397 LDFLAGS
="$LDFLAGS -b"
16398 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16399 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16400 # The linker can only warn and ignore the option if not recognized
16401 # So say no if there are warnings
16402 if test -s conftest.err
; then
16403 # Append any errors to the config.log.
16404 cat conftest.err
1>&5
16405 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16406 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16407 if diff conftest.exp conftest.er2
>/dev
/null
; then
16408 lt_cv_prog_compiler__b
=yes
16411 lt_cv_prog_compiler__b
=yes
16415 LDFLAGS
="$save_LDFLAGS"
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16419 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16421 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16422 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16430 if test "$with_gnu_ld" = no
; then
16431 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16432 hardcode_libdir_separator
=:
16437 hardcode_shlibpath_var
=no
16440 hardcode_direct
=yes
16441 hardcode_direct_absolute
=yes
16442 export_dynamic_flag_spec
='${wl}-E'
16444 # hardcode_minus_L: Not really in the search PATH,
16445 # but as the default location of the library.
16446 hardcode_minus_L
=yes
16452 irix5
* | irix6
* | nonstopux
*)
16453 if test "$GCC" = yes; then
16454 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'
16455 # Try to use the -exported_symbol ld option, if it does not
16456 # work, assume that -exports_file does not work either and
16457 # implicitly export all symbols.
16458 save_LDFLAGS
="$LDFLAGS"
16459 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h. */
16464 if ac_fn_c_try_link
"$LINENO"; then :
16465 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'
16468 rm -f core conftest.err conftest.
$ac_objext \
16469 conftest
$ac_exeext conftest.
$ac_ext
16470 LDFLAGS
="$save_LDFLAGS"
16472 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'
16473 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'
16475 archive_cmds_need_lc
='no'
16476 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16477 hardcode_libdir_separator
=:
16479 link_all_deplibs
=yes
16483 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16484 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16486 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16488 hardcode_libdir_flag_spec
='-R$libdir'
16489 hardcode_direct
=yes
16490 hardcode_shlibpath_var
=no
16494 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_direct
=yes
16496 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16497 hardcode_libdir_separator
=:
16498 hardcode_shlibpath_var
=no
16505 if test -f /usr
/libexec
/ld.so
; then
16506 hardcode_direct
=yes
16507 hardcode_shlibpath_var
=no
16508 hardcode_direct_absolute
=yes
16509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16510 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16512 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16513 export_dynamic_flag_spec
='${wl}-E'
16516 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16517 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16518 hardcode_libdir_flag_spec
='-R$libdir'
16521 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16522 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16532 hardcode_libdir_flag_spec
='-L$libdir'
16533 hardcode_minus_L
=yes
16534 allow_undefined_flag
=unsupported
16535 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'
16536 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16540 if test "$GCC" = yes; then
16541 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16542 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'
16544 allow_undefined_flag
=' -expect_unresolved \*'
16545 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'
16547 archive_cmds_need_lc
='no'
16548 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16549 hardcode_libdir_separator
=:
16552 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16553 if test "$GCC" = yes; then
16554 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16555 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'
16556 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16558 allow_undefined_flag
=' -expect_unresolved \*'
16559 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'
16560 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~
16561 $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'
16563 # Both c and cxx compiler support -rpath directly
16564 hardcode_libdir_flag_spec
='-rpath $libdir'
16566 archive_cmds_need_lc
='no'
16567 hardcode_libdir_separator
=:
16571 no_undefined_flag
=' -z defs'
16572 if test "$GCC" = yes; then
16574 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16575 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16576 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16578 case `$CC -V 2>&1` in
16581 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16582 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16587 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16589 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16593 hardcode_libdir_flag_spec
='-R$libdir'
16594 hardcode_shlibpath_var
=no
16596 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16598 # The compiler driver will combine and reorder linker options,
16599 # but understands `-z linker_flag'. GCC discards it without `$wl',
16600 # but is careful enough not to reorder.
16601 # Supported since Solaris 2.6 (maybe 2.5.1?)
16602 if test "$GCC" = yes; then
16603 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16605 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16609 link_all_deplibs
=yes
16613 if test "x$host_vendor" = xsequent
; then
16614 # Use $CC to link under sequent, because it throws in some extra .o
16615 # files that make .init and .fini sections work.
16616 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16618 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16620 hardcode_libdir_flag_spec
='-L$libdir'
16621 hardcode_direct
=yes
16622 hardcode_minus_L
=yes
16623 hardcode_shlibpath_var
=no
16627 case $host_vendor in
16629 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_direct
=yes # is this really true???
16633 ## LD is ld it makes a PLAMLIB
16634 ## CC just makes a GrossModule.
16635 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16636 reload_cmds
='$CC -r -o $output$reload_objs'
16640 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16644 runpath_var
='LD_RUN_PATH'
16645 hardcode_shlibpath_var
=no
16649 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16650 hardcode_shlibpath_var
=no
16651 export_dynamic_flag_spec
='-Bexport'
16655 if test -d /usr
/nec
; then
16656 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657 hardcode_shlibpath_var
=no
16658 runpath_var
=LD_RUN_PATH
16659 hardcode_runpath_var
=yes
16664 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16665 no_undefined_flag
='${wl}-z,text'
16666 archive_cmds_need_lc
=no
16667 hardcode_shlibpath_var
=no
16668 runpath_var
='LD_RUN_PATH'
16670 if test "$GCC" = yes; then
16671 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16672 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16674 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16675 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 sysv5
* | sco3.2v5
* | sco5v6
*)
16680 # Note: We can NOT use -z defs as we might desire, because we do not
16681 # link with -lc, and that would cause any symbols used from libc to
16682 # always be unresolved, which means just about no library would
16683 # ever link correctly. If we're not using GNU ld we use -z text
16684 # though, which does catch some bad symbols but isn't as heavy-handed
16686 no_undefined_flag
='${wl}-z,text'
16687 allow_undefined_flag
='${wl}-z,nodefs'
16688 archive_cmds_need_lc
=no
16689 hardcode_shlibpath_var
=no
16690 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16691 hardcode_libdir_separator
=':'
16692 link_all_deplibs
=yes
16693 export_dynamic_flag_spec
='${wl}-Bexport'
16694 runpath_var
='LD_RUN_PATH'
16696 if test "$GCC" = yes; then
16697 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16698 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16700 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16701 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16706 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16707 hardcode_libdir_flag_spec
='-L$libdir'
16708 hardcode_shlibpath_var
=no
16716 if test x
$host_vendor = xsni
; then
16718 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16719 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16726 $as_echo "$ld_shlibs" >&6; }
16727 test "$ld_shlibs" = no
&& can_build_shared
=no
16729 with_gnu_ld
=$with_gnu_ld
16746 # Do we need to explicitly link libc?
16748 case "x$archive_cmds_need_lc" in
16750 # Assume -lc should be added
16751 archive_cmds_need_lc
=yes
16753 if test "$enable_shared" = yes && test "$GCC" = yes; then
16754 case $archive_cmds in
16756 # FIXME: we may have to deal with multi-command sequences.
16759 # Test whether the compiler implicitly links with -lc since on some
16760 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16761 # to ld, don't add -lc before -lgcc.
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16763 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16764 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16765 $as_echo_n "(cached) " >&6
16768 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16771 (eval $ac_compile) 2>&5
16773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16774 test $ac_status = 0; } 2>conftest.err
; then
16777 libobjs
=conftest.
$ac_objext
16779 wl
=$lt_prog_compiler_wl
16780 pic_flag
=$lt_prog_compiler_pic
16786 lt_save_allow_undefined_flag
=$allow_undefined_flag
16787 allow_undefined_flag
=
16788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16789 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16792 test $ac_status = 0; }
16794 lt_cv_archive_cmds_need_lc
=no
16796 lt_cv_archive_cmds_need_lc
=yes
16798 allow_undefined_flag
=$lt_save_allow_undefined_flag
16800 cat conftest.err
1>&5
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16806 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16807 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16971 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16973 if test "$GCC" = yes; then
16975 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16976 *) lt_awk_arg
="/^libraries:/" ;;
16979 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16980 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16982 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16983 case $lt_search_path_spec in
16985 # if the path contains ";" then we assume it to be the separator
16986 # otherwise default to the standard path separator (i.e. ":") - it is
16987 # assumed that no part of a normal pathname contains ";" but that should
16988 # okay in the real world where ";" in dirpaths is itself problematic.
16989 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16992 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16995 # Ok, now we have the path, separated by spaces, we can step through it
16996 # and add multilib dir if necessary.
16997 lt_tmp_lt_search_path_spec
=
16998 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16999 for lt_sys_path
in $lt_search_path_spec; do
17000 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17001 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17003 test -d "$lt_sys_path" && \
17004 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17007 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17008 BEGIN {RS=" "; FS="/|\n";} {
17011 for (lt_i = NF; lt_i > 0; lt_i--) {
17012 if ($lt_i != "" && $lt_i != ".") {
17013 if ($lt_i == "..") {
17016 if (lt_count == 0) {
17017 lt_foo="/" $lt_i lt_foo;
17024 if (lt_foo != "") { lt_freq[lt_foo]++; }
17025 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17027 # AWK program above erroneously prepends '/' to C:/dos/paths
17030 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17031 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17033 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17035 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17037 library_names_spec
=
17038 libname_spec
='lib$name'
17042 postuninstall_cmds
=
17046 shlibpath_overrides_runpath
=unknown
17048 dynamic_linker
="$host_os ld.so"
17049 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17050 need_lib_prefix
=unknown
17051 hardcode_into_libs
=no
17053 # when you set need_version to no, make sure it does not cause -set_version
17054 # flags to be left without arguments
17055 need_version
=unknown
17060 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17061 shlibpath_var
=LIBPATH
17063 # AIX 3 has no versioning support, so we append a major version to the name.
17064 soname_spec
='${libname}${release}${shared_ext}$major'
17071 hardcode_into_libs
=yes
17072 if test "$host_cpu" = ia64
; then
17073 # AIX 5 supports IA64
17074 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17075 shlibpath_var
=LD_LIBRARY_PATH
17077 # With GCC up to 2.95.x, collect2 would create an import file
17078 # for dependence libraries. The import file would start with
17079 # the line `#! .'. This would cause the generated library to
17080 # depend on `.', always an invalid library. This was fixed in
17081 # development snapshots of GCC prior to 3.0.
17083 aix4 | aix4.
[01] | aix4.
[01].
*)
17084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17086 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17089 can_build_shared
=no
17093 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17094 # soname into executable. Probably we can add versioning support to
17095 # collect2, so additional links can be useful in future.
17096 if test "$aix_use_runtimelinking" = yes; then
17097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17098 # instead of lib<name>.a to let people know that these are not
17099 # typical AIX shared libraries.
17100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102 # We preserve .a as extension for shared libraries through AIX4.2
17103 # and later when we are not doing run time linking.
17104 library_names_spec
='${libname}${release}.a $libname.a'
17105 soname_spec
='${libname}${release}${shared_ext}$major'
17107 shlibpath_var
=LIBPATH
17114 # Since July 2007 AmigaOS4 officially supports .so libraries.
17115 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 library_names_spec
='$libname.ixlibrary $libname.a'
17120 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17121 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'
17127 library_names_spec
='${libname}${shared_ext}'
17128 dynamic_linker
="$host_os ld.so"
17129 shlibpath_var
=LIBRARY_PATH
17135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec
='${libname}${release}${shared_ext}$major'
17137 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17138 shlibpath_var
=LD_LIBRARY_PATH
17139 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17140 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17141 # the default ld.so.conf also contains /usr/contrib/lib and
17142 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17143 # libtool to hard-code these into programs
17146 cygwin
* | mingw
* | pw32
* | cegcc
*)
17147 version_type
=windows
17152 case $GCC,$host_os in
17153 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17154 library_names_spec
='$libname.dll.a'
17155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17156 postinstall_cmds
='base_file=`basename \${file}`~
17157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17158 dldir=$destdir/`dirname \$dlpath`~
17159 test -d \$dldir || mkdir -p \$dldir~
17160 $install_prog $dir/$dlname \$dldir/$dlname~
17161 chmod a+x \$dldir/$dlname~
17162 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17163 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17165 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17166 dlpath=$dir/\$dldll~
17168 shlibpath_overrides_runpath
=yes
17172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17173 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17175 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17178 # MinGW DLLs use traditional 'lib' prefix
17179 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17182 # pw32 DLLs use 'pw' prefix rather than 'lib'
17183 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17189 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17192 dynamic_linker
='Win32 ld.exe'
17193 # FIXME: first we should search . and the directory the executable is in
17197 darwin
* | rhapsody
*)
17198 dynamic_linker
="$host_os dyld"
17199 version_type
=darwin
17202 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17203 soname_spec
='${libname}${release}${major}$shared_ext'
17204 shlibpath_overrides_runpath
=yes
17205 shlibpath_var
=DYLD_LIBRARY_PATH
17206 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17208 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17209 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17217 soname_spec
='${libname}${release}${shared_ext}$major'
17218 shlibpath_var
=LD_LIBRARY_PATH
17221 freebsd
* | dragonfly
*)
17222 # DragonFly does not have aout. When/if they implement a new
17223 # versioning mechanism, adjust this.
17224 if test -x /usr
/bin
/objformat
; then
17225 objformat
=`/usr/bin/objformat`
17228 freebsd
[123]*) objformat
=aout
;;
17229 *) objformat
=elf
;;
17232 version_type
=freebsd-
$objformat
17233 case $version_type in
17235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17240 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17244 shlibpath_var
=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath
=yes
17249 freebsd3.
[01]* | freebsdelf3.
[01]*)
17250 shlibpath_overrides_runpath
=yes
17251 hardcode_into_libs
=yes
17253 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17254 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17255 shlibpath_overrides_runpath
=no
17256 hardcode_into_libs
=yes
17258 *) # from 4.6 on, and DragonFly
17259 shlibpath_overrides_runpath
=yes
17260 hardcode_into_libs
=yes
17269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17270 soname_spec
='${libname}${release}${shared_ext}$major'
17271 shlibpath_var
=LD_LIBRARY_PATH
17272 hardcode_into_libs
=yes
17279 dynamic_linker
="$host_os runtime_loader"
17280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17281 soname_spec
='${libname}${release}${shared_ext}$major'
17282 shlibpath_var
=LIBRARY_PATH
17283 shlibpath_overrides_runpath
=yes
17284 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17285 hardcode_into_libs
=yes
17288 hpux9
* | hpux10
* | hpux11
*)
17289 # Give a soname corresponding to the major version so that dld.sl refuses to
17290 # link against other versions.
17297 hardcode_into_libs
=yes
17298 dynamic_linker
="$host_os dld.so"
17299 shlibpath_var
=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec
='${libname}${release}${shared_ext}$major'
17303 if test "X$HPUX_IA64_MODE" = X32
; then
17304 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17306 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17308 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17312 hardcode_into_libs
=yes
17313 dynamic_linker
="$host_os dld.sl"
17314 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17315 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec
='${libname}${release}${shared_ext}$major'
17318 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17319 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17323 dynamic_linker
="$host_os dld.sl"
17324 shlibpath_var
=SHLIB_PATH
17325 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17326 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 soname_spec
='${libname}${release}${shared_ext}$major'
17330 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17331 postinstall_cmds
='chmod 555 $lib'
17332 # or fails outright, so override atomically:
17333 install_override_mode
=555
17340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17341 soname_spec
='${libname}${release}${shared_ext}$major'
17342 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17343 shlibpath_var
=LD_LIBRARY_PATH
17344 shlibpath_overrides_runpath
=no
17345 hardcode_into_libs
=yes
17348 irix5
* | irix6
* | nonstopux
*)
17350 nonstopux
*) version_type
=nonstopux
;;
17352 if test "$lt_cv_prog_gnu_ld" = yes; then
17360 soname_spec
='${libname}${release}${shared_ext}$major'
17361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17363 irix5
* | nonstopux
*)
17364 libsuff
= shlibsuff
=
17367 case $LD in # libtool.m4 will add one of these switches to LD
17368 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17369 libsuff
= shlibsuff
= libmagic
=32-bit;;
17370 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17371 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17372 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17373 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17374 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17378 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17379 shlibpath_overrides_runpath
=no
17380 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17381 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17382 hardcode_into_libs
=yes
17385 # No shared lib support for Linux oldld, aout, or coff.
17386 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17390 # This must be Linux ELF.
17391 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec
='${libname}${release}${shared_ext}$major'
17397 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17398 shlibpath_var
=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath
=no
17401 # Some binutils ld are patched to set DT_RUNPATH
17402 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17403 $as_echo_n "(cached) " >&6
17405 lt_cv_shlibpath_overrides_runpath
=no
17406 save_LDFLAGS
=$LDFLAGS
17407 save_libdir
=$libdir
17408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17421 if ac_fn_c_try_link
"$LINENO"; then :
17422 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17423 lt_cv_shlibpath_overrides_runpath
=yes
17426 rm -f core conftest.err conftest.
$ac_objext \
17427 conftest
$ac_exeext conftest.
$ac_ext
17428 LDFLAGS
=$save_LDFLAGS
17429 libdir
=$save_libdir
17433 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17435 # This implies no fast_install, which is unacceptable.
17436 # Some rework will be needed to allow for fast_install
17437 # before this can be enabled.
17438 hardcode_into_libs
=yes
17440 # Append ld.so.conf contents to the search path
17441 if test -f /etc
/ld.so.conf
; then
17442 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' ' '`
17443 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17446 # We used to test for /lib/ld.so.1 and disable shared libraries on
17447 # powerpc, because MkLinux only supported shared libraries with the
17448 # GNU dynamic linker. Since this was broken with cross compilers,
17449 # most powerpc-linux boxes support dynamic linking these days and
17450 # people can always --disable-shared, the test was removed, and we
17451 # assume the GNU/Linux dynamic linker is in use.
17452 dynamic_linker
='GNU/Linux ld.so'
17459 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17461 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17462 dynamic_linker
='NetBSD (a.out) ld.so'
17464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17465 soname_spec
='${libname}${release}${shared_ext}$major'
17466 dynamic_linker
='NetBSD ld.elf_so'
17468 shlibpath_var
=LD_LIBRARY_PATH
17469 shlibpath_overrides_runpath
=yes
17470 hardcode_into_libs
=yes
17475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 shlibpath_var
=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath
=yes
17484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 soname_spec
='${libname}${release}${shared_ext}$major'
17486 shlibpath_var
=LD_LIBRARY_PATH
17487 shlibpath_overrides_runpath
=no
17488 hardcode_into_libs
=yes
17489 dynamic_linker
='ldqnx.so'
17494 sys_lib_dlsearch_path_spec
="/usr/lib"
17496 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17498 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17499 *) need_version
=no
;;
17501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17502 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17503 shlibpath_var
=LD_LIBRARY_PATH
17504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17506 openbsd2.
[89] | openbsd2.
[89].
*)
17507 shlibpath_overrides_runpath
=no
17510 shlibpath_overrides_runpath
=yes
17514 shlibpath_overrides_runpath
=yes
17519 libname_spec
='$name'
17522 library_names_spec
='$libname${shared_ext} $libname.a'
17523 dynamic_linker
='OS/2 ld.exe'
17524 shlibpath_var
=LIBPATH
17527 osf3
* | osf4
* | osf5
*)
17531 soname_spec
='${libname}${release}${shared_ext}$major'
17532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533 shlibpath_var
=LD_LIBRARY_PATH
17534 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17535 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547 soname_spec
='${libname}${release}${shared_ext}$major'
17548 shlibpath_var
=LD_LIBRARY_PATH
17549 shlibpath_overrides_runpath
=yes
17550 hardcode_into_libs
=yes
17551 # ldd complains unless libraries are executable
17552 postinstall_cmds
='chmod +x $lib'
17557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17559 shlibpath_var
=LD_LIBRARY_PATH
17560 shlibpath_overrides_runpath
=yes
17561 if test "$with_gnu_ld" = yes; then
17569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 soname_spec
='${libname}${release}${shared_ext}$major'
17571 shlibpath_var
=LD_LIBRARY_PATH
17572 case $host_vendor in
17574 shlibpath_overrides_runpath
=no
17576 runpath_var
=LD_RUN_PATH
17584 shlibpath_overrides_runpath
=no
17585 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17591 if test -d /usr
/nec
;then
17593 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17594 soname_spec
='$libname${shared_ext}.$major'
17595 shlibpath_var
=LD_LIBRARY_PATH
17599 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17600 version_type
=freebsd-elf
17603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17604 soname_spec
='${libname}${release}${shared_ext}$major'
17605 shlibpath_var
=LD_LIBRARY_PATH
17606 shlibpath_overrides_runpath
=yes
17607 hardcode_into_libs
=yes
17608 if test "$with_gnu_ld" = yes; then
17609 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17611 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17614 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17618 sys_lib_dlsearch_path_spec
='/usr/lib'
17622 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627 shlibpath_var
=LD_LIBRARY_PATH
17628 shlibpath_overrides_runpath
=no
17629 hardcode_into_libs
=yes
17634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec
='${libname}${release}${shared_ext}$major'
17636 shlibpath_var
=LD_LIBRARY_PATH
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17644 $as_echo "$dynamic_linker" >&6; }
17645 test "$dynamic_linker" = no
&& can_build_shared
=no
17647 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17648 if test "$GCC" = yes; then
17649 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17652 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17653 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17655 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17656 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17751 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17753 if test -n "$hardcode_libdir_flag_spec" ||
17754 test -n "$runpath_var" ||
17755 test "X$hardcode_automatic" = "Xyes" ; then
17757 # We can hardcode non-existent directories.
17758 if test "$hardcode_direct" != no
&&
17759 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17760 # have to relink, otherwise we might link with an installed library
17761 # when we should be linking with a yet-to-be-installed one
17762 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17763 test "$hardcode_minus_L" != no
; then
17764 # Linking always hardcodes the temporary library directory.
17765 hardcode_action
=relink
17767 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17768 hardcode_action
=immediate
17771 # We cannot hardcode anything, or else we can only hardcode existing
17773 hardcode_action
=unsupported
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17776 $as_echo "$hardcode_action" >&6; }
17778 if test "$hardcode_action" = relink ||
17779 test "$inherit_rpath" = yes; then
17780 # Fast installation is not supported
17781 enable_fast_install
=no
17782 elif test "$shlibpath_overrides_runpath" = yes ||
17783 test "$enable_shared" = no
; then
17784 # Fast installation is not necessary
17785 enable_fast_install
=needless
17793 if test "x$enable_dlopen" != xyes
; then
17794 enable_dlopen
=unknown
17795 enable_dlopen_self
=unknown
17796 enable_dlopen_self_static
=unknown
17803 lt_cv_dlopen
="load_add_on"
17805 lt_cv_dlopen_self
=yes
17808 mingw
* | pw32
* | cegcc
*)
17809 lt_cv_dlopen
="LoadLibrary"
17814 lt_cv_dlopen
="dlopen"
17819 # if libdl is installed we need to link against it
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17823 $as_echo_n "(cached) " >&6
17825 ac_check_lib_save_LIBS
=$LIBS
17827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17830 /* Override any GCC internal prototype to avoid an error.
17831 Use char because int might match the return type of a GCC
17832 builtin and then its argument prototype would still apply. */
17845 if ac_fn_c_try_link
"$LINENO"; then :
17846 ac_cv_lib_dl_dlopen
=yes
17848 ac_cv_lib_dl_dlopen
=no
17850 rm -f core conftest.err conftest.
$ac_objext \
17851 conftest
$ac_exeext conftest.
$ac_ext
17852 LIBS
=$ac_check_lib_save_LIBS
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17856 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17857 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17860 lt_cv_dlopen
="dyld"
17862 lt_cv_dlopen_self
=yes
17869 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17870 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17871 lt_cv_dlopen
="shl_load"
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17874 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17875 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17876 $as_echo_n "(cached) " >&6
17878 ac_check_lib_save_LIBS
=$LIBS
17880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17883 /* Override any GCC internal prototype to avoid an error.
17884 Use char because int might match the return type of a GCC
17885 builtin and then its argument prototype would still apply. */
17893 return shl_load ();
17898 if ac_fn_c_try_link
"$LINENO"; then :
17899 ac_cv_lib_dld_shl_load
=yes
17901 ac_cv_lib_dld_shl_load
=no
17903 rm -f core conftest.err conftest.
$ac_objext \
17904 conftest
$ac_exeext conftest.
$ac_ext
17905 LIBS
=$ac_check_lib_save_LIBS
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17908 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17909 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17910 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17912 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17913 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17914 lt_cv_dlopen
="dlopen"
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17917 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17919 $as_echo_n "(cached) " >&6
17921 ac_check_lib_save_LIBS
=$LIBS
17923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17926 /* Override any GCC internal prototype to avoid an error.
17927 Use char because int might match the return type of a GCC
17928 builtin and then its argument prototype would still apply. */
17941 if ac_fn_c_try_link
"$LINENO"; then :
17942 ac_cv_lib_dl_dlopen
=yes
17944 ac_cv_lib_dl_dlopen
=no
17946 rm -f core conftest.err conftest.
$ac_objext \
17947 conftest
$ac_exeext conftest.
$ac_ext
17948 LIBS
=$ac_check_lib_save_LIBS
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17951 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17952 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17953 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17956 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17957 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17958 $as_echo_n "(cached) " >&6
17960 ac_check_lib_save_LIBS
=$LIBS
17961 LIBS
="-lsvld $LIBS"
17962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17980 if ac_fn_c_try_link
"$LINENO"; then :
17981 ac_cv_lib_svld_dlopen
=yes
17983 ac_cv_lib_svld_dlopen
=no
17985 rm -f core conftest.err conftest.
$ac_objext \
17986 conftest
$ac_exeext conftest.
$ac_ext
17987 LIBS
=$ac_check_lib_save_LIBS
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17990 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17991 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17992 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17995 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17996 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17997 $as_echo_n "(cached) " >&6
17999 ac_check_lib_save_LIBS
=$LIBS
18001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18014 return dld_link ();
18019 if ac_fn_c_try_link
"$LINENO"; then :
18020 ac_cv_lib_dld_dld_link
=yes
18022 ac_cv_lib_dld_dld_link
=no
18024 rm -f core conftest.err conftest.
$ac_objext \
18025 conftest
$ac_exeext conftest.
$ac_ext
18026 LIBS
=$ac_check_lib_save_LIBS
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18029 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18030 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18031 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18052 if test "x$lt_cv_dlopen" != xno
; then
18058 case $lt_cv_dlopen in
18060 save_CPPFLAGS
="$CPPFLAGS"
18061 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18063 save_LDFLAGS
="$LDFLAGS"
18064 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18067 LIBS
="$lt_cv_dlopen_libs $LIBS"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18070 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18071 if test "${lt_cv_dlopen_self+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
18074 if test "$cross_compiling" = yes; then :
18075 lt_cv_dlopen_self
=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
=yes ;;
18158 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18159 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18162 # compilation failed
18163 lt_cv_dlopen_self
=no
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18171 $as_echo "$lt_cv_dlopen_self" >&6; }
18173 if test "x$lt_cv_dlopen_self" = xyes
; then
18174 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18176 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18177 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18178 $as_echo_n "(cached) " >&6
18180 if test "$cross_compiling" = yes; then :
18181 lt_cv_dlopen_self_static
=cross
18183 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18184 lt_status
=$lt_dlunknown
18185 cat > conftest.
$ac_ext <<_LT_EOF
18186 #line 18186 "configure"
18187 #include "confdefs.h"
18196 # define LT_DLGLOBAL RTLD_GLOBAL
18199 # define LT_DLGLOBAL DL_GLOBAL
18201 # define LT_DLGLOBAL 0
18205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18206 find out it does not work in some platform. */
18207 #ifndef LT_DLLAZY_OR_NOW
18209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18212 # define LT_DLLAZY_OR_NOW DL_LAZY
18215 # define LT_DLLAZY_OR_NOW RTLD_NOW
18218 # define LT_DLLAZY_OR_NOW DL_NOW
18220 # define LT_DLLAZY_OR_NOW 0
18227 /* When -fvisbility=hidden is used, assume the code has been annotated
18228 correspondingly for the symbols needed. */
18229 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18230 void fnord () __attribute__((visibility("default")));
18233 void fnord () { int i=42; }
18236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18237 int status = $lt_dlunknown;
18241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18244 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18245 else puts (dlerror ());
18247 /* dlclose (self); */
18255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18256 (eval $ac_link) 2>&5
18258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18259 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18260 (.
/conftest
; exit; ) >&5 2>/dev
/null
18262 case x
$lt_status in
18263 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18264 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18265 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18268 # compilation failed
18269 lt_cv_dlopen_self_static
=no
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18277 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18280 CPPFLAGS
="$save_CPPFLAGS"
18281 LDFLAGS
="$save_LDFLAGS"
18286 case $lt_cv_dlopen_self in
18287 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18288 *) enable_dlopen_self
=unknown
;;
18291 case $lt_cv_dlopen_self_static in
18292 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18293 *) enable_dlopen_self_static
=unknown
;;
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18316 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18317 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18318 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18319 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18321 $as_echo "yes" >&6; }
18323 # FIXME - insert some real tests, host_os isn't really good enough
18326 if test -n "$STRIP" ; then
18327 striplib
="$STRIP -x"
18328 old_striplib
="$STRIP -S"
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18330 $as_echo "yes" >&6; }
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 $as_echo "no" >&6; }
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18354 # Report which library types will actually be built
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18356 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18358 $as_echo "$can_build_shared" >&6; }
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18361 $as_echo_n "checking whether to build shared libraries... " >&6; }
18362 test "$can_build_shared" = "no" && enable_shared
=no
18364 # On AIX, shared libraries and static libraries use the same namespace, and
18365 # are all built from PIC.
18368 test "$enable_shared" = yes && enable_static
=no
18369 if test -n "$RANLIB"; then
18370 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18371 postinstall_cmds
='$RANLIB $lib'
18376 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18377 test "$enable_shared" = yes && enable_static
=no
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18382 $as_echo "$enable_shared" >&6; }
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18385 $as_echo_n "checking whether to build static libraries... " >&6; }
18386 # Make sure either enable_shared or enable_static is yes.
18387 test "$enable_shared" = yes || enable_static
=yes
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18389 $as_echo "$enable_static" >&6; }
18396 ac_cpp
='$CPP $CPPFLAGS'
18397 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18403 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18404 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18405 (test "X$CXX" != "Xg++"))) ; then
18407 ac_cpp
='$CXXCPP $CPPFLAGS'
18408 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18409 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18410 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18412 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18413 if test -z "$CXXCPP"; then
18414 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18415 $as_echo_n "(cached) " >&6
18417 # Double quotes because CXXCPP needs to be expanded
18418 for CXXCPP
in "$CXX -E" "/lib/cpp"
18420 ac_preproc_ok
=false
18421 for ac_cxx_preproc_warn_flag
in '' yes
18423 # Use a header file that comes with gcc, so configuring glibc
18424 # with a fresh cross-compiler works.
18425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18426 # <limits.h> exists even on freestanding compilers.
18427 # On the NeXT, cc -E runs the code through the compiler's parser,
18428 # not just through cpp. "Syntax error" is here to catch this case.
18429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18432 # include <limits.h>
18434 # include <assert.h>
18438 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18441 # Broken: fails on valid input.
18444 rm -f conftest.err conftest.
$ac_ext
18446 # OK, works on sane cases. Now check whether nonexistent headers
18447 # can be detected and how.
18448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18449 /* end confdefs.h. */
18450 #include <ac_nonexistent.h>
18452 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18453 # Broken: success on invalid input.
18456 # Passes both tests.
18460 rm -f conftest.err conftest.
$ac_ext
18463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18464 rm -f conftest.err conftest.
$ac_ext
18465 if $ac_preproc_ok; then :
18470 ac_cv_prog_CXXCPP
=$CXXCPP
18473 CXXCPP
=$ac_cv_prog_CXXCPP
18475 ac_cv_prog_CXXCPP
=$CXXCPP
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18478 $as_echo "$CXXCPP" >&6; }
18479 ac_preproc_ok
=false
18480 for ac_cxx_preproc_warn_flag
in '' yes
18482 # Use a header file that comes with gcc, so configuring glibc
18483 # with a fresh cross-compiler works.
18484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18485 # <limits.h> exists even on freestanding compilers.
18486 # On the NeXT, cc -E runs the code through the compiler's parser,
18487 # not just through cpp. "Syntax error" is here to catch this case.
18488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18491 # include <limits.h>
18493 # include <assert.h>
18497 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18500 # Broken: fails on valid input.
18503 rm -f conftest.err conftest.
$ac_ext
18505 # OK, works on sane cases. Now check whether nonexistent headers
18506 # can be detected and how.
18507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18508 /* end confdefs.h. */
18509 #include <ac_nonexistent.h>
18511 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18512 # Broken: success on invalid input.
18515 # Passes both tests.
18519 rm -f conftest.err conftest.
$ac_ext
18522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18523 rm -f conftest.err conftest.
$ac_ext
18524 if $ac_preproc_ok; then :
18527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18529 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18530 See \`config.log' for more details." "$LINENO" 5; }
18534 ac_cpp
='$CPP $CPPFLAGS'
18535 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18540 _lt_caught_CXX_error
=yes
18544 ac_cpp
='$CXXCPP $CPPFLAGS'
18545 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18549 archive_cmds_need_lc_CXX
=no
18550 allow_undefined_flag_CXX
=
18551 always_export_symbols_CXX
=no
18552 archive_expsym_cmds_CXX
=
18553 compiler_needs_object_CXX
=no
18554 export_dynamic_flag_spec_CXX
=
18555 hardcode_direct_CXX
=no
18556 hardcode_direct_absolute_CXX
=no
18557 hardcode_libdir_flag_spec_CXX
=
18558 hardcode_libdir_flag_spec_ld_CXX
=
18559 hardcode_libdir_separator_CXX
=
18560 hardcode_minus_L_CXX
=no
18561 hardcode_shlibpath_var_CXX
=unsupported
18562 hardcode_automatic_CXX
=no
18563 inherit_rpath_CXX
=no
18565 module_expsym_cmds_CXX
=
18566 link_all_deplibs_CXX
=unknown
18567 old_archive_cmds_CXX
=$old_archive_cmds
18568 reload_flag_CXX
=$reload_flag
18569 reload_cmds_CXX
=$reload_cmds
18570 no_undefined_flag_CXX
=
18571 whole_archive_flag_spec_CXX
=
18572 enable_shared_with_static_runtimes_CXX
=no
18574 # Source file extension for C++ test sources.
18577 # Object file extension for compiled C++ test sources.
18581 # No sense in running all these tests if we already determined that
18582 # the CXX compiler isn't working. Some variables (like enable_shared)
18583 # are currently assumed to apply to all compilers on this platform,
18584 # and will be corrupted by setting them based on a non-working compiler.
18585 if test "$_lt_caught_CXX_error" != yes; then
18586 # Code to be used in simple compile tests
18587 lt_simple_compile_test_code
="int some_variable = 0;"
18589 # Code to be used in simple link tests
18590 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18592 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18599 # If no C compiler was specified, use CC.
18602 # If no C compiler flags were specified, use CFLAGS.
18603 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18605 # Allow CC to be a program name with arguments.
18609 # save warnings/boilerplate of simple test code
18610 ac_outfile
=conftest.
$ac_objext
18611 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18612 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18613 _lt_compiler_boilerplate
=`cat conftest.err`
18616 ac_outfile
=conftest.
$ac_objext
18617 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18618 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18619 _lt_linker_boilerplate
=`cat conftest.err`
18623 # Allow CC to be a program name with arguments.
18628 lt_save_with_gnu_ld
=$with_gnu_ld
18629 lt_save_path_LD
=$lt_cv_path_LD
18630 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18631 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18633 $as_unset lt_cv_prog_gnu_ld
18635 if test -n "${lt_cv_path_LDCXX+set}"; then
18636 lt_cv_path_LD
=$lt_cv_path_LDCXX
18638 $as_unset lt_cv_path_LD
18640 test -z "${LDCXX+set}" || LD
=$LDCXX
18644 for cc_temp
in $compiler""; do
18646 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18647 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18652 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18655 if test -n "$compiler"; then
18656 # We don't want -fno-exception when compiling C++ code, so set the
18657 # no_builtin_flag separately
18658 if test "$GXX" = yes; then
18659 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18661 lt_prog_compiler_no_builtin_flag_CXX
=
18664 if test "$GXX" = yes; then
18665 # Set up default GNU C++ configuration
18669 # Check whether --with-gnu-ld was given.
18670 if test "${with_gnu_ld+set}" = set; then :
18671 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18677 if test "$GCC" = yes; then
18678 # Check if gcc -print-prog-name=ld gives a path.
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18680 $as_echo_n "checking for ld used by $CC... " >&6; }
18683 # gcc leaves a trailing carriage return which upsets mingw
18684 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18686 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18689 # Accept absolute paths.
18691 re_direlt
='/[^/][^/]*/\.\./'
18692 # Canonicalize the pathname of ld
18693 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18694 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18695 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18697 test -z "$LD" && LD
="$ac_prog"
18700 # If it fails, then pretend we aren't using GCC.
18704 # If it is relative, then search for the first ld in PATH.
18705 with_gnu_ld
=unknown
18708 elif test "$with_gnu_ld" = yes; then
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18710 $as_echo_n "checking for GNU ld... " >&6; }
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18713 $as_echo_n "checking for non-GNU ld... " >&6; }
18715 if test "${lt_cv_path_LD+set}" = set; then :
18716 $as_echo_n "(cached) " >&6
18718 if test -z "$LD"; then
18719 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18720 for ac_dir
in $PATH; do
18722 test -z "$ac_dir" && ac_dir
=.
18723 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18724 lt_cv_path_LD
="$ac_dir/$ac_prog"
18725 # Check to see if the program is GNU ld. I'd rather use --version,
18726 # but apparently some variants of GNU ld only accept -v.
18727 # Break only if it was the GNU/non-GNU ld that we prefer.
18728 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18729 *GNU
* |
*'with BFD'*)
18730 test "$with_gnu_ld" != no
&& break
18733 test "$with_gnu_ld" != yes && break
18740 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18744 LD
="$lt_cv_path_LD"
18745 if test -n "$LD"; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18747 $as_echo "$LD" >&6; }
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18750 $as_echo "no" >&6; }
18752 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18755 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18756 $as_echo_n "(cached) " >&6
18758 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18759 case `$LD -v 2>&1 </dev/null` in
18760 *GNU
* |
*'with BFD'*)
18761 lt_cv_prog_gnu_ld
=yes
18764 lt_cv_prog_gnu_ld
=no
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18770 with_gnu_ld
=$lt_cv_prog_gnu_ld
18778 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18779 # archiving commands below assume that GNU ld is being used.
18780 if test "$with_gnu_ld" = yes; then
18781 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18782 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'
18784 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18785 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18787 # If archive_cmds runs LD, not CC, wlarc should be empty
18788 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18789 # investigate it a little bit more. (MM)
18792 # ancient GNU ld didn't support --whole-archive et. al.
18793 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18794 $GREP 'no-whole-archive' > /dev
/null
; then
18795 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18797 whole_archive_flag_spec_CXX
=
18803 # A generic and very simple default shared library creation
18804 # command for GNU C++ for the case where it uses the native
18805 # linker, instead of GNU ld. If possible, this setting should
18806 # overridden to take advantage of the native linker features on
18807 # the platform it is being used on.
18808 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18811 # Commands to make compiler produce verbose output that lists
18812 # what "hidden" libraries, object files and flags are used when
18813 # linking a shared library.
18814 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18822 # PORTME: fill in a description of your system's C++ link characteristics
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18828 # FIXME: insert proper C++ library support
18832 if test "$host_cpu" = ia64
; then
18833 # On IA64, the linker does run time linking by default, so we don't
18834 # have to do anything special.
18835 aix_use_runtimelinking
=no
18836 exp_sym_flag
='-Bexport'
18839 aix_use_runtimelinking
=no
18841 # Test if we are trying to use run time linking or normal
18842 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18843 # need to do runtime linking.
18844 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18845 for ld_flag
in $LDFLAGS; do
18848 aix_use_runtimelinking
=yes
18856 exp_sym_flag
='-bexport'
18857 no_entry_flag
='-bnoentry'
18860 # When large executables or shared objects are built, AIX ld can
18861 # have problems creating the table of contents. If linking a library
18862 # or program results in "error TOC overflow" add -mminimal-toc to
18863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18866 archive_cmds_CXX
=''
18867 hardcode_direct_CXX
=yes
18868 hardcode_direct_absolute_CXX
=yes
18869 hardcode_libdir_separator_CXX
=':'
18870 link_all_deplibs_CXX
=yes
18871 file_list_spec_CXX
='${wl}-f,'
18873 if test "$GXX" = yes; then
18874 case $host_os in aix4.
[012]|aix4.
[012].
*)
18875 # We only want to do this on AIX 4.2 and lower, the check
18876 # below for broken collect2 doesn't work under 4.3+
18877 collect2name
=`${CC} -print-prog-name=collect2`
18878 if test -f "$collect2name" &&
18879 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18881 # We have reworked collect2
18884 # We have old collect2
18885 hardcode_direct_CXX
=unsupported
18886 # It fails to find uninstalled libraries when the uninstalled
18887 # path is not listed in the libpath. Setting hardcode_minus_L
18888 # to unsupported forces relinking
18889 hardcode_minus_L_CXX
=yes
18890 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18891 hardcode_libdir_separator_CXX
=
18894 shared_flag
='-shared'
18895 if test "$aix_use_runtimelinking" = yes; then
18896 shared_flag
="$shared_flag "'${wl}-G'
18900 if test "$host_cpu" = ia64
; then
18901 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18902 # chokes on -Wl,-G. The following line is correct:
18905 if test "$aix_use_runtimelinking" = yes; then
18906 shared_flag
='${wl}-G'
18908 shared_flag
='${wl}-bM:SRE'
18913 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18914 # It seems that -bexpall does not export symbols beginning with
18915 # underscore (_), so it is better to generate a list of symbols to
18917 always_export_symbols_CXX
=yes
18918 if test "$aix_use_runtimelinking" = yes; then
18919 # Warning - without using the other runtime loading flags (-brtl),
18920 # -berok will link without error, but may produce a broken library.
18921 allow_undefined_flag_CXX
='-berok'
18922 # Determine the default libpath from the value encoded in an empty
18924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h. */
18935 if ac_fn_cxx_try_link
"$LINENO"; then :
18937 lt_aix_libpath_sed
='
18938 /Import File Strings/,/^$/ {
18944 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18945 # Check for a 64-bit object if we didn't find anything.
18946 if test -z "$aix_libpath"; then
18947 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18950 rm -f core conftest.err conftest.
$ac_objext \
18951 conftest
$ac_exeext conftest.
$ac_ext
18952 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18954 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18956 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"
18958 if test "$host_cpu" = ia64
; then
18959 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18960 allow_undefined_flag_CXX
="-z nodefs"
18961 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"
18963 # Determine the default libpath from the value encoded in an
18964 # empty executable.
18965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h. */
18976 if ac_fn_cxx_try_link
"$LINENO"; then :
18978 lt_aix_libpath_sed
='
18979 /Import File Strings/,/^$/ {
18985 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18986 # Check for a 64-bit object if we didn't find anything.
18987 if test -z "$aix_libpath"; then
18988 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18991 rm -f core conftest.err conftest.
$ac_objext \
18992 conftest
$ac_exeext conftest.
$ac_ext
18993 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18995 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18996 # Warning - without using the other run time loading flags,
18997 # -berok will link without error, but may produce a broken library.
18998 no_undefined_flag_CXX
=' ${wl}-bernotok'
18999 allow_undefined_flag_CXX
=' ${wl}-berok'
19000 if test "$with_gnu_ld" = yes; then
19001 # We only use this code for GNU lds that support --whole-archive.
19002 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19004 # Exported symbols can be pulled into shared objects from archives
19005 whole_archive_flag_spec_CXX
='$convenience'
19007 archive_cmds_need_lc_CXX
=yes
19008 # This is similar to how AIX traditionally builds its shared
19010 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'
19016 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19017 allow_undefined_flag_CXX
=unsupported
19018 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19019 # support --undefined. This deserves some investigation. FIXME
19020 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19027 case $cc_basename in
19029 # FIXME: insert proper C++ library support
19035 cygwin
* | mingw
* | pw32
* | cegcc
*)
19036 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19037 # as there is no search path for DLLs.
19038 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19039 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19040 allow_undefined_flag_CXX
=unsupported
19041 always_export_symbols_CXX
=no
19042 enable_shared_with_static_runtimes_CXX
=yes
19044 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19045 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'
19046 # If the export-symbols file already is a .def file (1st line
19047 # is EXPORTS), use it as is; otherwise, prepend...
19048 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19049 cp $export_symbols $output_objdir/$soname.def;
19051 echo EXPORTS > $output_objdir/$soname.def;
19052 cat $export_symbols >> $output_objdir/$soname.def;
19054 $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'
19059 darwin
* | rhapsody
*)
19062 archive_cmds_need_lc_CXX
=no
19063 hardcode_direct_CXX
=no
19064 hardcode_automatic_CXX
=yes
19065 hardcode_shlibpath_var_CXX
=unsupported
19066 if test "$lt_cv_ld_force_load" = "yes"; then
19067 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\"`'
19069 whole_archive_flag_spec_CXX
=''
19071 link_all_deplibs_CXX
=yes
19072 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19073 case $cc_basename in
19074 ifort
*) _lt_dar_can_shared
=yes ;;
19075 *) _lt_dar_can_shared
=$GCC ;;
19077 if test "$_lt_dar_can_shared" = "yes"; then
19078 output_verbose_link_cmd
=func_echo_all
19079 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}"
19080 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19081 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}"
19082 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}"
19083 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19084 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}"
19085 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}"
19095 case $cc_basename in
19097 # FIXME: insert proper C++ library support
19101 # Green Hills C++ Compiler
19102 # FIXME: insert proper C++ library support
19106 # FIXME: insert proper C++ library support
19113 # C++ shared libraries reported to be fairly broken before
19119 archive_cmds_need_lc_CXX
=no
19122 freebsd
* | dragonfly
*)
19123 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19132 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19133 link_all_deplibs_CXX
=yes
19137 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19138 hardcode_libdir_separator_CXX
=:
19139 export_dynamic_flag_spec_CXX
='${wl}-E'
19140 hardcode_direct_CXX
=yes
19141 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19142 # but as the default
19143 # location of the library.
19145 case $cc_basename in
19147 # FIXME: insert proper C++ library support
19151 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'
19152 # Commands to make compiler produce verbose output that lists
19153 # what "hidden" libraries, object files and flags are used when
19154 # linking a shared library.
19156 # There doesn't appear to be a way to prevent this compiler from
19157 # explicitly linking system object files so we need to strip them
19158 # from the output so that they don't get included in the library
19160 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"'
19163 if test "$GXX" = yes; then
19164 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'
19166 # FIXME: insert proper C++ library support
19174 if test $with_gnu_ld = no
; then
19175 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19176 hardcode_libdir_separator_CXX
=:
19182 export_dynamic_flag_spec_CXX
='${wl}-E'
19188 hardcode_direct_CXX
=no
19189 hardcode_shlibpath_var_CXX
=no
19192 hardcode_direct_CXX
=yes
19193 hardcode_direct_absolute_CXX
=yes
19194 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19195 # but as the default
19196 # location of the library.
19200 case $cc_basename in
19202 # FIXME: insert proper C++ library support
19208 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19211 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19214 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19217 # Commands to make compiler produce verbose output that lists
19218 # what "hidden" libraries, object files and flags are used when
19219 # linking a shared library.
19221 # There doesn't appear to be a way to prevent this compiler from
19222 # explicitly linking system object files so we need to strip them
19223 # from the output so that they don't get included in the library
19225 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"'
19228 if test "$GXX" = yes; then
19229 if test $with_gnu_ld = no
; then
19232 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19235 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19238 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'
19243 # FIXME: insert proper C++ library support
19251 hardcode_direct_CXX
=no
19252 hardcode_shlibpath_var_CXX
=no
19253 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19254 export_dynamic_flag_spec_CXX
='${wl}-E'
19255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19256 # Instead, shared libraries are loaded at an image base (0x10000000 by
19257 # default) and relocated if they conflict, which is a slow very memory
19258 # consuming and fragmenting process. To avoid this, we pick a random,
19259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19261 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'
19262 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'
19265 case $cc_basename in
19268 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'
19270 # Archives containing C++ object files must be created using
19271 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19272 # necessary to make sure instantiated templates are included
19274 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19277 if test "$GXX" = yes; then
19278 if test "$with_gnu_ld" = no
; then
19279 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'
19281 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'
19284 link_all_deplibs_CXX
=yes
19287 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19288 hardcode_libdir_separator_CXX
=:
19289 inherit_rpath_CXX
=yes
19292 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19293 case $cc_basename in
19295 # Kuck and Associates, Inc. (KAI) C++ Compiler
19297 # KCC will only create a shared library if the output file
19298 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19299 # to its proper name (with version) after linking.
19300 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'
19301 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'
19302 # Commands to make compiler produce verbose output that lists
19303 # what "hidden" libraries, object files and flags are used when
19304 # linking a shared library.
19306 # There doesn't appear to be a way to prevent this compiler from
19307 # explicitly linking system object files so we need to strip them
19308 # from the output so that they don't get included in the library
19310 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"'
19312 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19313 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19315 # Archives containing C++ object files must be created using
19316 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19317 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19322 # version 8.0 and above of icpc choke on multiply defined symbols
19323 # if we add $predep_objects and $postdep_objects, however 7.1 and
19324 # earlier do not add the objects themselves.
19325 case `$CC -V 2>&1` in
19327 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19328 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'
19330 *) # Version 8.0 or newer
19333 ia64
*) tmp_idyn
=' -i_dynamic';;
19335 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19336 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'
19339 archive_cmds_need_lc_CXX
=no
19340 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19341 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19342 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19345 # Portland Group C++ compiler
19347 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19348 prelink_cmds_CXX
='tpldir=Template.dir~
19350 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19351 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19352 old_archive_cmds_CXX
='tpldir=Template.dir~
19354 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19355 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19357 archive_cmds_CXX
='tpldir=Template.dir~
19359 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19360 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19361 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19363 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19364 $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'
19366 *) # Version 6 and above use weak symbols
19367 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19368 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'
19372 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19373 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19374 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'
19378 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19379 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'
19381 runpath_var
=LD_RUN_PATH
19382 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19383 hardcode_libdir_separator_CXX
=:
19385 # Commands to make compiler produce verbose output that lists
19386 # what "hidden" libraries, object files and flags are used when
19387 # linking a shared library.
19389 # There doesn't appear to be a way to prevent this compiler from
19390 # explicitly linking system object files so we need to strip them
19391 # from the output so that they don't get included in the library
19393 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'
19395 xl
* | mpixl
* | bgxl
*)
19396 # IBM XL 8.0 on PPC, with GNU ld
19397 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19398 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19399 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19400 if test "x$supports_anon_versioning" = xyes
; then
19401 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19403 echo "local: *; };" >> $output_objdir/$libname.ver~
19404 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19408 case `$CC -V 2>&1 | sed 5q` in
19411 no_undefined_flag_CXX
=' -zdefs'
19412 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19413 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'
19414 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19415 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'
19416 compiler_needs_object_CXX
=yes
19418 # Not sure whether something based on
19419 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19421 output_verbose_link_cmd
='func_echo_all'
19423 # Archives containing C++ object files must be created using
19424 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19425 # necessary to make sure instantiated templates are included
19427 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19435 # FIXME: insert proper C++ library support
19440 # FIXME: insert proper C++ library support
19445 case $cc_basename in
19447 # FIXME: insert proper C++ library support
19451 # FIXME: insert proper C++ library support
19458 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19459 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19461 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19462 hardcode_direct_CXX
=yes
19463 hardcode_shlibpath_var_CXX
=no
19465 # Workaround some broken pre-1.5 toolchains
19466 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19474 # C++ shared libraries are fairly broken
19479 if test -f /usr
/libexec
/ld.so
; then
19480 hardcode_direct_CXX
=yes
19481 hardcode_shlibpath_var_CXX
=no
19482 hardcode_direct_absolute_CXX
=yes
19483 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19484 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19486 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19487 export_dynamic_flag_spec_CXX
='${wl}-E'
19488 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19490 output_verbose_link_cmd
=func_echo_all
19496 osf3
* | osf4
* | osf5
*)
19497 case $cc_basename in
19499 # Kuck and Associates, Inc. (KAI) C++ Compiler
19501 # KCC will only create a shared library if the output file
19502 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19503 # to its proper name (with version) after linking.
19504 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'
19506 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19507 hardcode_libdir_separator_CXX
=:
19509 # Archives containing C++ object files must be created using
19510 # the KAI C++ compiler.
19512 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19513 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19517 # Rational C++ 2.4.1
19518 # FIXME: insert proper C++ library support
19524 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19525 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'
19526 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19529 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19530 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'
19531 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19532 echo "-hidden">> $lib.exp~
19533 $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~
19535 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19539 hardcode_libdir_separator_CXX
=:
19541 # Commands to make compiler produce verbose output that lists
19542 # what "hidden" libraries, object files and flags are used when
19543 # linking a shared library.
19545 # There doesn't appear to be a way to prevent this compiler from
19546 # explicitly linking system object files so we need to strip them
19547 # from the output so that they don't get included in the library
19549 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"'
19552 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19553 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19556 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'
19559 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'
19563 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19564 hardcode_libdir_separator_CXX
=:
19566 # Commands to make compiler produce verbose output that lists
19567 # what "hidden" libraries, object files and flags are used when
19568 # linking a shared library.
19569 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19572 # FIXME: insert proper C++ library support
19580 # FIXME: insert proper C++ library support
19585 case $cc_basename in
19588 # FIXME: insert proper C++ library support
19593 # FIXME: insert proper C++ library support
19597 # FIXME: insert proper C++ library support
19604 case $cc_basename in
19606 # Sun C++ 4.2, 5.x and Centerline C++
19607 archive_cmds_need_lc_CXX
=yes
19608 no_undefined_flag_CXX
=' -zdefs'
19609 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19611 $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'
19613 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19614 hardcode_shlibpath_var_CXX
=no
19616 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19618 # The compiler driver will combine and reorder linker options,
19619 # but understands `-z linker_flag'.
19620 # Supported since Solaris 2.6 (maybe 2.5.1?)
19621 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19624 link_all_deplibs_CXX
=yes
19626 output_verbose_link_cmd
='func_echo_all'
19628 # Archives containing C++ object files must be created using
19629 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19630 # necessary to make sure instantiated templates are included
19632 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19635 # Green Hills C++ Compiler
19636 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19638 # The C++ compiler must be used to create the archive.
19639 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19642 # GNU C++ compiler with Solaris linker
19643 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19644 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19645 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19646 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19647 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19648 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19650 # Commands to make compiler produce verbose output that lists
19651 # what "hidden" libraries, object files and flags are used when
19652 # linking a shared library.
19653 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19655 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19657 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19658 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19659 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19661 # Commands to make compiler produce verbose output that lists
19662 # what "hidden" libraries, object files and flags are used when
19663 # linking a shared library.
19664 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19667 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19669 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19671 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19679 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19680 no_undefined_flag_CXX
='${wl}-z,text'
19681 archive_cmds_need_lc_CXX
=no
19682 hardcode_shlibpath_var_CXX
=no
19683 runpath_var
='LD_RUN_PATH'
19685 case $cc_basename in
19687 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19688 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19691 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19697 sysv5
* | sco3.2v5
* | sco5v6
*)
19698 # Note: We can NOT use -z defs as we might desire, because we do not
19699 # link with -lc, and that would cause any symbols used from libc to
19700 # always be unresolved, which means just about no library would
19701 # ever link correctly. If we're not using GNU ld we use -z text
19702 # though, which does catch some bad symbols but isn't as heavy-handed
19704 no_undefined_flag_CXX
='${wl}-z,text'
19705 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19706 archive_cmds_need_lc_CXX
=no
19707 hardcode_shlibpath_var_CXX
=no
19708 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19709 hardcode_libdir_separator_CXX
=':'
19710 link_all_deplibs_CXX
=yes
19711 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19712 runpath_var
='LD_RUN_PATH'
19714 case $cc_basename in
19716 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19717 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19718 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19719 '"$old_archive_cmds_CXX"
19720 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19721 '"$reload_cmds_CXX"
19724 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19725 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19731 case $cc_basename in
19733 # NonStop-UX NCC 3.20
19734 # FIXME: insert proper C++ library support
19738 # FIXME: insert proper C++ library support
19745 # FIXME: insert proper C++ library support
19750 # FIXME: insert proper C++ library support
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19756 $as_echo "$ld_shlibs_CXX" >&6; }
19757 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19763 ## There is no encapsulation within the following macros, do not change
19764 ## the running order or otherwise move them around unless you know exactly
19765 ## what you are doing...
19766 # Dependencies to place before and after the object being linked:
19767 predep_objects_CXX
=
19768 postdep_objects_CXX
=
19771 compiler_lib_search_path_CXX
=
19773 cat > conftest.
$ac_ext <<_LT_EOF
19777 Foo (void) { a = 0; }
19783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19784 (eval $ac_compile) 2>&5
19786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19787 test $ac_status = 0; }; then
19788 # Parse the compiler output and extract the necessary
19789 # objects, libraries and library flags.
19791 # Sentinel used to keep track of whether or not we are before
19792 # the conftest object file.
19793 pre_test_object_deps_done
=no
19795 for p
in `eval "$output_verbose_link_cmd"`; do
19799 # Some compilers place space between "-{L,R}" and the path.
19800 # Remove the space.
19801 if test $p = "-L" ||
19802 test $p = "-R"; then
19809 if test "$pre_test_object_deps_done" = no
; then
19812 # Internal compiler library paths should come after those
19813 # provided the user. The postdeps already come after the
19814 # user supplied libs so there is no need to process them.
19815 if test -z "$compiler_lib_search_path_CXX"; then
19816 compiler_lib_search_path_CXX
="${prev}${p}"
19818 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19821 # The "-l" case would never come before the object being
19822 # linked, so don't bother handling this case.
19825 if test -z "$postdeps_CXX"; then
19826 postdeps_CXX
="${prev}${p}"
19828 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19834 # This assumes that the test object file only shows up
19835 # once in the compiler output.
19836 if test "$p" = "conftest.$objext"; then
19837 pre_test_object_deps_done
=yes
19841 if test "$pre_test_object_deps_done" = no
; then
19842 if test -z "$predep_objects_CXX"; then
19843 predep_objects_CXX
="$p"
19845 predep_objects_CXX
="$predep_objects_CXX $p"
19848 if test -z "$postdep_objects_CXX"; then
19849 postdep_objects_CXX
="$p"
19851 postdep_objects_CXX
="$postdep_objects_CXX $p"
19856 *) ;; # Ignore the rest.
19864 echo "libtool.m4: error: problem compiling CXX test program"
19867 $RM -f confest.
$objext
19869 # PORTME: override above test on systems where it is broken
19872 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19873 # hack all around it, let's just trust "g++" to DTRT.
19874 predep_objects_CXX
=
19875 postdep_objects_CXX
=
19880 case `$CC -V 2>&1 | sed 5q` in
19884 # The more standards-conforming stlport4 library is
19885 # incompatible with the Cstd library. Avoid specifying
19886 # it if it's in CXXFLAGS. Ignore libCrun as
19887 # -library=stlport4 depends on it.
19888 case " $CXX $CXXFLAGS " in
19889 *" -library=stlport4 "*)
19890 solaris_use_stlport4
=yes
19894 if test "$solaris_use_stlport4" != yes; then
19895 postdeps_CXX
='-library=Cstd -library=Crun'
19902 case $cc_basename in
19904 # The more standards-conforming stlport4 library is
19905 # incompatible with the Cstd library. Avoid specifying
19906 # it if it's in CXXFLAGS. Ignore libCrun as
19907 # -library=stlport4 depends on it.
19908 case " $CXX $CXXFLAGS " in
19909 *" -library=stlport4 "*)
19910 solaris_use_stlport4
=yes
19914 # Adding this requires a known-good setup of shared libraries for
19915 # Sun compiler versions before 5.6, else PIC objects from an old
19916 # archive will be linked into the output, leading to subtle bugs.
19917 if test "$solaris_use_stlport4" != yes; then
19918 postdeps_CXX
='-library=Cstd -library=Crun'
19926 case " $postdeps_CXX " in
19927 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19929 compiler_lib_search_dirs_CXX
=
19930 if test -n "${compiler_lib_search_path_CXX}"; then
19931 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19964 lt_prog_compiler_wl_CXX
=
19965 lt_prog_compiler_pic_CXX
=
19966 lt_prog_compiler_static_CXX
=
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19971 # C++ specific cases for pic, static, wl, etc.
19972 if test "$GXX" = yes; then
19973 lt_prog_compiler_wl_CXX
='-Wl,'
19974 lt_prog_compiler_static_CXX
='-static'
19978 # All AIX code is PIC.
19979 if test "$host_cpu" = ia64
; then
19980 # AIX 5 now supports IA64 processor
19981 lt_prog_compiler_static_CXX
='-Bstatic'
19988 # see comment about AmigaOS4 .so support
19989 lt_prog_compiler_pic_CXX
='-fPIC'
19992 # FIXME: we need at least 68020 code to build shared libraries, but
19993 # adding the `-m68020' flag to GCC prevents building anything better,
19995 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20000 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20001 # PIC is the default for these OSes.
20003 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20004 # This hack is so that the source file can tell whether it is being
20005 # built for inclusion in a dll (and should export symbols for example).
20006 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20007 # (--disable-auto-import) libraries
20008 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20010 darwin
* | rhapsody
*)
20011 # PIC is the default on this platform
20012 # Common symbols not allowed in MH_DYLIB files
20013 lt_prog_compiler_pic_CXX
='-fno-common'
20016 # DJGPP does not support shared libraries at all
20017 lt_prog_compiler_pic_CXX
=
20020 # PIC is the default for Haiku.
20021 # The "-static" flag exists, but is broken.
20022 lt_prog_compiler_static_CXX
=
20025 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20026 # Instead, we relocate shared libraries at runtime.
20029 if test -d /usr
/nec
; then
20030 lt_prog_compiler_pic_CXX
=-Kconform_pic
20034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20036 # sets the default TLS model and affects inlining.
20041 lt_prog_compiler_pic_CXX
='-fPIC'
20046 # QNX uses GNU C++, but need to define -shared option too, otherwise
20047 # it will coredump.
20048 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20051 lt_prog_compiler_pic_CXX
='-fPIC'
20057 # All AIX code is PIC.
20058 if test "$host_cpu" = ia64
; then
20059 # AIX 5 now supports IA64 processor
20060 lt_prog_compiler_static_CXX
='-Bstatic'
20062 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20066 case $cc_basename in
20068 # Green Hills C++ Compiler
20069 # _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"
20074 case $cc_basename in
20076 lt_prog_compiler_pic_CXX
='-KPIC'
20079 # Green Hills C++ Compiler
20080 lt_prog_compiler_pic_CXX
='-pic'
20086 freebsd
* | dragonfly
*)
20087 # FreeBSD uses GNU C++
20089 hpux9
* | hpux10
* | hpux11
*)
20090 case $cc_basename in
20092 lt_prog_compiler_wl_CXX
='-Wl,'
20093 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20094 if test "$host_cpu" != ia64
; then
20095 lt_prog_compiler_pic_CXX
='+Z'
20099 lt_prog_compiler_wl_CXX
='-Wl,'
20100 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20106 lt_prog_compiler_pic_CXX
='+Z'
20115 # This is c89, which is MS Visual C++ (no shared libs)
20116 # Anyone wants to do a port?
20118 irix5
* | irix6
* | nonstopux
*)
20119 case $cc_basename in
20121 lt_prog_compiler_wl_CXX
='-Wl,'
20122 lt_prog_compiler_static_CXX
='-non_shared'
20123 # CC pic flag -KPIC is the default.
20129 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20130 case $cc_basename in
20133 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20134 lt_prog_compiler_pic_CXX
='-fPIC'
20137 # old Intel C++ for x86_64 which still supported -KPIC.
20138 lt_prog_compiler_wl_CXX
='-Wl,'
20139 lt_prog_compiler_pic_CXX
='-KPIC'
20140 lt_prog_compiler_static_CXX
='-static'
20143 # Intel C++, used to be incompatible with GCC.
20144 # ICC 10 doesn't accept -KPIC any more.
20145 lt_prog_compiler_wl_CXX
='-Wl,'
20146 lt_prog_compiler_pic_CXX
='-fPIC'
20147 lt_prog_compiler_static_CXX
='-static'
20150 # Portland Group C++ compiler
20151 lt_prog_compiler_wl_CXX
='-Wl,'
20152 lt_prog_compiler_pic_CXX
='-fpic'
20153 lt_prog_compiler_static_CXX
='-Bstatic'
20157 # Make sure the PIC flag is empty. It appears that all Alpha
20158 # Linux and Compaq Tru64 Unix objects are PIC.
20159 lt_prog_compiler_pic_CXX
=
20160 lt_prog_compiler_static_CXX
='-non_shared'
20162 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20163 # IBM XL 8.0, 9.0 on PPC and BlueGene
20164 lt_prog_compiler_wl_CXX
='-Wl,'
20165 lt_prog_compiler_pic_CXX
='-qpic'
20166 lt_prog_compiler_static_CXX
='-qstaticlink'
20169 case `$CC -V 2>&1 | sed 5q` in
20172 lt_prog_compiler_pic_CXX
='-KPIC'
20173 lt_prog_compiler_static_CXX
='-Bstatic'
20174 lt_prog_compiler_wl_CXX
='-Qoption ld '
20185 case $cc_basename in
20187 lt_prog_compiler_pic_CXX
='-W c,exportall'
20196 # QNX uses GNU C++, but need to define -shared option too, otherwise
20197 # it will coredump.
20198 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20200 osf3
* | osf4
* | osf5
*)
20201 case $cc_basename in
20203 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20206 # Rational C++ 2.4.1
20207 lt_prog_compiler_pic_CXX
='-pic'
20210 # Digital/Compaq C++
20211 lt_prog_compiler_wl_CXX
='-Wl,'
20212 # Make sure the PIC flag is empty. It appears that all Alpha
20213 # Linux and Compaq Tru64 Unix objects are PIC.
20214 lt_prog_compiler_pic_CXX
=
20215 lt_prog_compiler_static_CXX
='-non_shared'
20224 case $cc_basename in
20226 # Sun C++ 4.2, 5.x and Centerline C++
20227 lt_prog_compiler_pic_CXX
='-KPIC'
20228 lt_prog_compiler_static_CXX
='-Bstatic'
20229 lt_prog_compiler_wl_CXX
='-Qoption ld '
20232 # Green Hills C++ Compiler
20233 lt_prog_compiler_pic_CXX
='-PIC'
20240 case $cc_basename in
20243 lt_prog_compiler_pic_CXX
='-pic'
20244 lt_prog_compiler_static_CXX
='-Bstatic'
20248 lt_prog_compiler_pic_CXX
='-pic'
20254 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20255 case $cc_basename in
20257 lt_prog_compiler_wl_CXX
='-Wl,'
20258 lt_prog_compiler_pic_CXX
='-KPIC'
20259 lt_prog_compiler_static_CXX
='-Bstatic'
20264 case $cc_basename in
20266 # NonStop-UX NCC 3.20
20267 lt_prog_compiler_pic_CXX
='-KPIC'
20276 lt_prog_compiler_can_build_shared_CXX
=no
20282 # For platforms which do not support PIC, -DPIC is meaningless:
20284 lt_prog_compiler_pic_CXX
=
20287 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20291 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20296 # Check to make sure the PIC flag actually works.
20298 if test -n "$lt_prog_compiler_pic_CXX"; then
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20300 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20301 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20302 $as_echo_n "(cached) " >&6
20304 lt_cv_prog_compiler_pic_works_CXX
=no
20305 ac_outfile
=conftest.
$ac_objext
20306 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20307 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20308 # Insert the option either (1) after the last *FLAGS variable, or
20309 # (2) before a word containing "conftest.", or (3) at the end.
20310 # Note that $ac_compile itself does not contain backslashes and begins
20311 # with a dollar sign (not a hyphen), so the echo should work correctly.
20312 # The option is referenced via a variable to avoid confusing sed.
20313 lt_compile
=`echo "$ac_compile" | $SED \
20314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20316 -e 's:$: $lt_compiler_flag:'`
20317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20318 (eval "$lt_compile" 2>conftest.err
)
20320 cat conftest.err
>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 if (exit $ac_status) && test -s "$ac_outfile"; then
20323 # The compiler can only warn and ignore the option if not recognized
20324 # So say no if there are warnings other than the usual output.
20325 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20326 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20327 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20328 lt_cv_prog_compiler_pic_works_CXX
=yes
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20335 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20337 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20338 case $lt_prog_compiler_pic_CXX in
20340 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20343 lt_prog_compiler_pic_CXX
=
20344 lt_prog_compiler_can_build_shared_CXX
=no
20352 # Check to make sure the static flag actually works.
20354 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20356 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20357 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20358 $as_echo_n "(cached) " >&6
20360 lt_cv_prog_compiler_static_works_CXX
=no
20361 save_LDFLAGS
="$LDFLAGS"
20362 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20363 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20364 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20365 # The linker can only warn and ignore the option if not recognized
20366 # So say no if there are warnings
20367 if test -s conftest.err
; then
20368 # Append any errors to the config.log.
20369 cat conftest.err
1>&5
20370 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20371 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20372 if diff conftest.exp conftest.er2
>/dev
/null
; then
20373 lt_cv_prog_compiler_static_works_CXX
=yes
20376 lt_cv_prog_compiler_static_works_CXX
=yes
20380 LDFLAGS
="$save_LDFLAGS"
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20384 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20386 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20389 lt_prog_compiler_static_CXX
=
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20397 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20398 $as_echo_n "(cached) " >&6
20400 lt_cv_prog_compiler_c_o_CXX
=no
20401 $RM -r conftest
2>/dev
/null
20405 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20407 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20408 # Insert the option either (1) after the last *FLAGS variable, or
20409 # (2) before a word containing "conftest.", or (3) at the end.
20410 # Note that $ac_compile itself does not contain backslashes and begins
20411 # with a dollar sign (not a hyphen), so the echo should work correctly.
20412 lt_compile
=`echo "$ac_compile" | $SED \
20413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20415 -e 's:$: $lt_compiler_flag:'`
20416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20417 (eval "$lt_compile" 2>out
/conftest.err
)
20419 cat out
/conftest.err
>&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20423 # The compiler can only warn and ignore the option if not recognized
20424 # So say no if there are warnings
20425 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20426 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20427 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20428 lt_cv_prog_compiler_c_o_CXX
=yes
20433 # SGI C++ compiler will create directory out/ii_files/ for
20434 # template instantiation
20435 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20436 $RM out
/* && rmdir out
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20443 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20449 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20450 $as_echo_n "(cached) " >&6
20452 lt_cv_prog_compiler_c_o_CXX
=no
20453 $RM -r conftest
2>/dev
/null
20457 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20459 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20460 # Insert the option either (1) after the last *FLAGS variable, or
20461 # (2) before a word containing "conftest.", or (3) at the end.
20462 # Note that $ac_compile itself does not contain backslashes and begins
20463 # with a dollar sign (not a hyphen), so the echo should work correctly.
20464 lt_compile
=`echo "$ac_compile" | $SED \
20465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20467 -e 's:$: $lt_compiler_flag:'`
20468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20469 (eval "$lt_compile" 2>out
/conftest.err
)
20471 cat out
/conftest.err
>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20475 # The compiler can only warn and ignore the option if not recognized
20476 # So say no if there are warnings
20477 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20478 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20479 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20480 lt_cv_prog_compiler_c_o_CXX
=yes
20485 # SGI C++ compiler will create directory out/ii_files/ for
20486 # template instantiation
20487 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20488 $RM out
/* && rmdir out
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20495 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20500 hard_links
="nottested"
20501 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20502 # do not overwrite the value of need_locks provided by the user
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20504 $as_echo_n "checking if we can lock with hard links... " >&6; }
20507 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20509 ln conftest.a conftest.b
2>&5 || hard_links
=no
20510 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20512 $as_echo "$hard_links" >&6; }
20513 if test "$hard_links" = no
; then
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20515 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20525 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20527 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20530 # If we're using GNU nm, then we don't want the "-C" option.
20531 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20532 # Also, AIX nm treats weak defined symbols like other global defined
20533 # symbols, whereas GNU nm marks them as "W".
20534 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20535 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'
20537 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'
20541 export_symbols_cmds_CXX
="$ltdll_cmds"
20543 cygwin
* | mingw
* | cegcc
*)
20544 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'
20547 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20550 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20553 $as_echo "$ld_shlibs_CXX" >&6; }
20554 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20556 with_gnu_ld_CXX
=$with_gnu_ld
20564 # Do we need to explicitly link libc?
20566 case "x$archive_cmds_need_lc_CXX" in
20568 # Assume -lc should be added
20569 archive_cmds_need_lc_CXX
=yes
20571 if test "$enable_shared" = yes && test "$GCC" = yes; then
20572 case $archive_cmds_CXX in
20574 # FIXME: we may have to deal with multi-command sequences.
20577 # Test whether the compiler implicitly links with -lc since on some
20578 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20579 # to ld, don't add -lc before -lgcc.
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20581 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20582 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20583 $as_echo_n "(cached) " >&6
20586 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20589 (eval $ac_compile) 2>&5
20591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592 test $ac_status = 0; } 2>conftest.err
; then
20595 libobjs
=conftest.
$ac_objext
20597 wl
=$lt_prog_compiler_wl_CXX
20598 pic_flag
=$lt_prog_compiler_pic_CXX
20604 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20605 allow_undefined_flag_CXX
=
20606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20607 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20610 test $ac_status = 0; }
20612 lt_cv_archive_cmds_need_lc_CXX
=no
20614 lt_cv_archive_cmds_need_lc_CXX
=yes
20616 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20618 cat conftest.err
1>&5
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20624 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20625 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20698 library_names_spec
=
20699 libname_spec
='lib$name'
20703 postuninstall_cmds
=
20707 shlibpath_overrides_runpath
=unknown
20709 dynamic_linker
="$host_os ld.so"
20710 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20711 need_lib_prefix
=unknown
20712 hardcode_into_libs
=no
20714 # when you set need_version to no, make sure it does not cause -set_version
20715 # flags to be left without arguments
20716 need_version
=unknown
20721 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20722 shlibpath_var
=LIBPATH
20724 # AIX 3 has no versioning support, so we append a major version to the name.
20725 soname_spec
='${libname}${release}${shared_ext}$major'
20732 hardcode_into_libs
=yes
20733 if test "$host_cpu" = ia64
; then
20734 # AIX 5 supports IA64
20735 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20736 shlibpath_var
=LD_LIBRARY_PATH
20738 # With GCC up to 2.95.x, collect2 would create an import file
20739 # for dependence libraries. The import file would start with
20740 # the line `#! .'. This would cause the generated library to
20741 # depend on `.', always an invalid library. This was fixed in
20742 # development snapshots of GCC prior to 3.0.
20744 aix4 | aix4.
[01] | aix4.
[01].
*)
20745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20747 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20750 can_build_shared
=no
20754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20755 # soname into executable. Probably we can add versioning support to
20756 # collect2, so additional links can be useful in future.
20757 if test "$aix_use_runtimelinking" = yes; then
20758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20759 # instead of lib<name>.a to let people know that these are not
20760 # typical AIX shared libraries.
20761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763 # We preserve .a as extension for shared libraries through AIX4.2
20764 # and later when we are not doing run time linking.
20765 library_names_spec
='${libname}${release}.a $libname.a'
20766 soname_spec
='${libname}${release}${shared_ext}$major'
20768 shlibpath_var
=LIBPATH
20775 # Since July 2007 AmigaOS4 officially supports .so libraries.
20776 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20780 library_names_spec
='$libname.ixlibrary $libname.a'
20781 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20782 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'
20788 library_names_spec
='${libname}${shared_ext}'
20789 dynamic_linker
="$host_os ld.so"
20790 shlibpath_var
=LIBRARY_PATH
20796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 soname_spec
='${libname}${release}${shared_ext}$major'
20798 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20799 shlibpath_var
=LD_LIBRARY_PATH
20800 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20801 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20802 # the default ld.so.conf also contains /usr/contrib/lib and
20803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20804 # libtool to hard-code these into programs
20807 cygwin
* | mingw
* | pw32
* | cegcc
*)
20808 version_type
=windows
20813 case $GCC,$host_os in
20814 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20815 library_names_spec
='$libname.dll.a'
20816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20817 postinstall_cmds
='base_file=`basename \${file}`~
20818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20819 dldir=$destdir/`dirname \$dlpath`~
20820 test -d \$dldir || mkdir -p \$dldir~
20821 $install_prog $dir/$dlname \$dldir/$dlname~
20822 chmod a+x \$dldir/$dlname~
20823 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20824 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20826 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20827 dlpath=$dir/\$dldll~
20829 shlibpath_overrides_runpath
=yes
20833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20834 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20838 # MinGW DLLs use traditional 'lib' prefix
20839 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20842 # pw32 DLLs use 'pw' prefix rather than 'lib'
20843 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20849 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20852 dynamic_linker
='Win32 ld.exe'
20853 # FIXME: first we should search . and the directory the executable is in
20857 darwin
* | rhapsody
*)
20858 dynamic_linker
="$host_os dyld"
20859 version_type
=darwin
20862 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20863 soname_spec
='${libname}${release}${major}$shared_ext'
20864 shlibpath_overrides_runpath
=yes
20865 shlibpath_var
=DYLD_LIBRARY_PATH
20866 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20868 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20876 soname_spec
='${libname}${release}${shared_ext}$major'
20877 shlibpath_var
=LD_LIBRARY_PATH
20880 freebsd
* | dragonfly
*)
20881 # DragonFly does not have aout. When/if they implement a new
20882 # versioning mechanism, adjust this.
20883 if test -x /usr
/bin
/objformat
; then
20884 objformat
=`/usr/bin/objformat`
20887 freebsd
[123]*) objformat
=aout
;;
20888 *) objformat
=elf
;;
20891 version_type
=freebsd-
$objformat
20892 case $version_type in
20894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20899 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20903 shlibpath_var
=LD_LIBRARY_PATH
20906 shlibpath_overrides_runpath
=yes
20908 freebsd3.
[01]* | freebsdelf3.
[01]*)
20909 shlibpath_overrides_runpath
=yes
20910 hardcode_into_libs
=yes
20912 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20913 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20914 shlibpath_overrides_runpath
=no
20915 hardcode_into_libs
=yes
20917 *) # from 4.6 on, and DragonFly
20918 shlibpath_overrides_runpath
=yes
20919 hardcode_into_libs
=yes
20928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20929 soname_spec
='${libname}${release}${shared_ext}$major'
20930 shlibpath_var
=LD_LIBRARY_PATH
20931 hardcode_into_libs
=yes
20938 dynamic_linker
="$host_os runtime_loader"
20939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20940 soname_spec
='${libname}${release}${shared_ext}$major'
20941 shlibpath_var
=LIBRARY_PATH
20942 shlibpath_overrides_runpath
=yes
20943 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20944 hardcode_into_libs
=yes
20947 hpux9
* | hpux10
* | hpux11
*)
20948 # Give a soname corresponding to the major version so that dld.sl refuses to
20949 # link against other versions.
20956 hardcode_into_libs
=yes
20957 dynamic_linker
="$host_os dld.so"
20958 shlibpath_var
=LD_LIBRARY_PATH
20959 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 soname_spec
='${libname}${release}${shared_ext}$major'
20962 if test "X$HPUX_IA64_MODE" = X32
; then
20963 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20965 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20967 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20971 hardcode_into_libs
=yes
20972 dynamic_linker
="$host_os dld.sl"
20973 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20974 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20976 soname_spec
='${libname}${release}${shared_ext}$major'
20977 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20978 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20982 dynamic_linker
="$host_os dld.sl"
20983 shlibpath_var
=SHLIB_PATH
20984 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 soname_spec
='${libname}${release}${shared_ext}$major'
20989 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20990 postinstall_cmds
='chmod 555 $lib'
20991 # or fails outright, so override atomically:
20992 install_override_mode
=555
20999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21000 soname_spec
='${libname}${release}${shared_ext}$major'
21001 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21002 shlibpath_var
=LD_LIBRARY_PATH
21003 shlibpath_overrides_runpath
=no
21004 hardcode_into_libs
=yes
21007 irix5
* | irix6
* | nonstopux
*)
21009 nonstopux
*) version_type
=nonstopux
;;
21011 if test "$lt_cv_prog_gnu_ld" = yes; then
21019 soname_spec
='${libname}${release}${shared_ext}$major'
21020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21022 irix5
* | nonstopux
*)
21023 libsuff
= shlibsuff
=
21026 case $LD in # libtool.m4 will add one of these switches to LD
21027 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21028 libsuff
= shlibsuff
= libmagic
=32-bit;;
21029 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21030 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21031 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21032 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21033 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21037 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21038 shlibpath_overrides_runpath
=no
21039 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21040 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21041 hardcode_into_libs
=yes
21044 # No shared lib support for Linux oldld, aout, or coff.
21045 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21049 # This must be Linux ELF.
21050 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21055 soname_spec
='${libname}${release}${shared_ext}$major'
21056 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21057 shlibpath_var
=LD_LIBRARY_PATH
21058 shlibpath_overrides_runpath
=no
21060 # Some binutils ld are patched to set DT_RUNPATH
21061 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21062 $as_echo_n "(cached) " >&6
21064 lt_cv_shlibpath_overrides_runpath
=no
21065 save_LDFLAGS
=$LDFLAGS
21066 save_libdir
=$libdir
21067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21070 /* end confdefs.h. */
21080 if ac_fn_cxx_try_link
"$LINENO"; then :
21081 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21082 lt_cv_shlibpath_overrides_runpath
=yes
21085 rm -f core conftest.err conftest.
$ac_objext \
21086 conftest
$ac_exeext conftest.
$ac_ext
21087 LDFLAGS
=$save_LDFLAGS
21088 libdir
=$save_libdir
21092 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21094 # This implies no fast_install, which is unacceptable.
21095 # Some rework will be needed to allow for fast_install
21096 # before this can be enabled.
21097 hardcode_into_libs
=yes
21099 # Append ld.so.conf contents to the search path
21100 if test -f /etc
/ld.so.conf
; then
21101 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' ' '`
21102 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21105 # We used to test for /lib/ld.so.1 and disable shared libraries on
21106 # powerpc, because MkLinux only supported shared libraries with the
21107 # GNU dynamic linker. Since this was broken with cross compilers,
21108 # most powerpc-linux boxes support dynamic linking these days and
21109 # people can always --disable-shared, the test was removed, and we
21110 # assume the GNU/Linux dynamic linker is in use.
21111 dynamic_linker
='GNU/Linux ld.so'
21118 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21120 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21121 dynamic_linker
='NetBSD (a.out) ld.so'
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 dynamic_linker
='NetBSD ld.elf_so'
21127 shlibpath_var
=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath
=yes
21129 hardcode_into_libs
=yes
21134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135 shlibpath_var
=LD_LIBRARY_PATH
21136 shlibpath_overrides_runpath
=yes
21143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21144 soname_spec
='${libname}${release}${shared_ext}$major'
21145 shlibpath_var
=LD_LIBRARY_PATH
21146 shlibpath_overrides_runpath
=no
21147 hardcode_into_libs
=yes
21148 dynamic_linker
='ldqnx.so'
21153 sys_lib_dlsearch_path_spec
="/usr/lib"
21155 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21157 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21158 *) need_version
=no
;;
21160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21161 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21162 shlibpath_var
=LD_LIBRARY_PATH
21163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21165 openbsd2.
[89] | openbsd2.
[89].
*)
21166 shlibpath_overrides_runpath
=no
21169 shlibpath_overrides_runpath
=yes
21173 shlibpath_overrides_runpath
=yes
21178 libname_spec
='$name'
21181 library_names_spec
='$libname${shared_ext} $libname.a'
21182 dynamic_linker
='OS/2 ld.exe'
21183 shlibpath_var
=LIBPATH
21186 osf3
* | osf4
* | osf5
*)
21190 soname_spec
='${libname}${release}${shared_ext}$major'
21191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21192 shlibpath_var
=LD_LIBRARY_PATH
21193 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21194 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206 soname_spec
='${libname}${release}${shared_ext}$major'
21207 shlibpath_var
=LD_LIBRARY_PATH
21208 shlibpath_overrides_runpath
=yes
21209 hardcode_into_libs
=yes
21210 # ldd complains unless libraries are executable
21211 postinstall_cmds
='chmod +x $lib'
21216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21217 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21218 shlibpath_var
=LD_LIBRARY_PATH
21219 shlibpath_overrides_runpath
=yes
21220 if test "$with_gnu_ld" = yes; then
21228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21229 soname_spec
='${libname}${release}${shared_ext}$major'
21230 shlibpath_var
=LD_LIBRARY_PATH
21231 case $host_vendor in
21233 shlibpath_overrides_runpath
=no
21235 runpath_var
=LD_RUN_PATH
21243 shlibpath_overrides_runpath
=no
21244 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21250 if test -d /usr
/nec
;then
21252 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21253 soname_spec
='$libname${shared_ext}.$major'
21254 shlibpath_var
=LD_LIBRARY_PATH
21258 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21259 version_type
=freebsd-elf
21262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21263 soname_spec
='${libname}${release}${shared_ext}$major'
21264 shlibpath_var
=LD_LIBRARY_PATH
21265 shlibpath_overrides_runpath
=yes
21266 hardcode_into_libs
=yes
21267 if test "$with_gnu_ld" = yes; then
21268 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21270 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21273 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21277 sys_lib_dlsearch_path_spec
='/usr/lib'
21281 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21286 shlibpath_var
=LD_LIBRARY_PATH
21287 shlibpath_overrides_runpath
=no
21288 hardcode_into_libs
=yes
21293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21294 soname_spec
='${libname}${release}${shared_ext}$major'
21295 shlibpath_var
=LD_LIBRARY_PATH
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21303 $as_echo "$dynamic_linker" >&6; }
21304 test "$dynamic_linker" = no
&& can_build_shared
=no
21306 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21307 if test "$GCC" = yes; then
21308 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21311 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21312 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21314 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21315 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21356 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21357 hardcode_action_CXX
=
21358 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21359 test -n "$runpath_var_CXX" ||
21360 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21362 # We can hardcode non-existent directories.
21363 if test "$hardcode_direct_CXX" != no
&&
21364 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21365 # have to relink, otherwise we might link with an installed library
21366 # when we should be linking with a yet-to-be-installed one
21367 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21368 test "$hardcode_minus_L_CXX" != no
; then
21369 # Linking always hardcodes the temporary library directory.
21370 hardcode_action_CXX
=relink
21372 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21373 hardcode_action_CXX
=immediate
21376 # We cannot hardcode anything, or else we can only hardcode existing
21378 hardcode_action_CXX
=unsupported
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21381 $as_echo "$hardcode_action_CXX" >&6; }
21383 if test "$hardcode_action_CXX" = relink ||
21384 test "$inherit_rpath_CXX" = yes; then
21385 # Fast installation is not supported
21386 enable_fast_install
=no
21387 elif test "$shlibpath_overrides_runpath" = yes ||
21388 test "$enable_shared" = no
; then
21389 # Fast installation is not necessary
21390 enable_fast_install
=needless
21399 fi # test -n "$compiler"
21405 with_gnu_ld
=$lt_save_with_gnu_ld
21406 lt_cv_path_LDCXX
=$lt_cv_path_LD
21407 lt_cv_path_LD
=$lt_save_path_LD
21408 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21409 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21410 fi # test "$_lt_caught_CXX_error" != yes
21413 ac_cpp
='$CPP $CPPFLAGS'
21414 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21433 # Only expand once:
21439 # Identify the assembler which will work hand-in-glove with the newly
21440 # built GCC, so that we can examine its features. This is the assembler
21441 # which will be driven by the driver program.
21443 # If build != host, and we aren't building gas in-tree, we identify a
21444 # build->target assembler and hope that it will have the same features
21445 # as the host->target assembler we'll be using.
21446 gcc_cv_gas_major_version
=
21447 gcc_cv_gas_minor_version
=
21448 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21450 if test "${gcc_cv_as+set}" = set; then :
21454 if test -x "$DEFAULT_ASSEMBLER"; then
21455 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21456 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21457 && test -f ..
/gas
/Makefile \
21458 && test x
$build = x
$host; then
21459 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21460 elif test -x as
$build_exeext; then
21461 # Build using assembler in the current directory.
21462 gcc_cv_as
=.
/as
$build_exeext
21463 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21464 gcc_cv_as
="$AS_FOR_TARGET"
21466 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21467 set dummy
$AS_FOR_TARGET; ac_word
=$2
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21469 $as_echo_n "checking for $ac_word... " >&6; }
21470 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21471 $as_echo_n "(cached) " >&6
21475 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21479 for as_dir
in $PATH
21482 test -z "$as_dir" && as_dir
=.
21483 for ac_exec_ext
in '' $ac_executable_extensions; do
21484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21485 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21496 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21497 if test -n "$gcc_cv_as"; then
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21499 $as_echo "$gcc_cv_as" >&6; }
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21502 $as_echo "no" >&6; }
21509 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21511 case "$ORIGINAL_AS_FOR_TARGET" in
21512 .
/as | .
/as
$build_exeext) ;;
21513 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21518 $as_echo_n "checking what assembler to use... " >&6; }
21519 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21520 # Single tree build which includes gas. We want to prefer it
21521 # over whatever linker top-level may have detected, since
21522 # we'll use what we're building after installation anyway.
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21524 $as_echo "newly built gas" >&6; }
21526 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21527 for f
in $gcc_cv_as_bfd_srcdir/configure \
21528 $gcc_cv_as_gas_srcdir/configure \
21529 $gcc_cv_as_gas_srcdir/configure.
in \
21530 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21531 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21532 if test x
$gcc_cv_gas_version != x
; then
21536 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21537 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21538 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21539 case $gcc_cv_gas_patch_version in
21540 "") gcc_cv_gas_patch_version
="0" ;;
21542 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21543 + $gcc_cv_gas_minor_version \) \* 1000 \
21544 + $gcc_cv_gas_patch_version`
21546 in_tree_gas_is_elf
=no
21547 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21548 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21549 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21551 in_tree_gas_is_elf
=yes
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21555 $as_echo "$gcc_cv_as" >&6; }
21559 # Identify the linker which will work hand-in-glove with the newly
21560 # built GCC, so that we can examine its features. This is the linker
21561 # which will be driven by the driver program.
21563 # If build != host, and we aren't building gas in-tree, we identify a
21564 # build->target linker and hope that it will have the same features
21565 # as the host->target linker we'll be using.
21566 gcc_cv_gld_major_version
=
21567 gcc_cv_gld_minor_version
=
21568 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21569 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21571 if test "${gcc_cv_ld+set}" = set; then :
21575 if test -x "$DEFAULT_LINKER"; then
21576 gcc_cv_ld
="$DEFAULT_LINKER"
21577 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21578 && test -f ..
/ld
/Makefile \
21579 && test x
$build = x
$host; then
21580 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21581 elif test -x collect-ld
$build_exeext; then
21582 # Build using linker in the current directory.
21583 gcc_cv_ld
=.
/collect-ld
$build_exeext
21584 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21585 gcc_cv_ld
="$LD_FOR_TARGET"
21587 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21588 set dummy
$LD_FOR_TARGET; ac_word
=$2
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21590 $as_echo_n "checking for $ac_word... " >&6; }
21591 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21596 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21600 for as_dir
in $PATH
21603 test -z "$as_dir" && as_dir
=.
21604 for ac_exec_ext
in '' $ac_executable_extensions; do
21605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21606 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21617 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21618 if test -n "$gcc_cv_ld"; then
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21620 $as_echo "$gcc_cv_ld" >&6; }
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21623 $as_echo "no" >&6; }
21630 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21631 PLUGIN_LD
=`basename $gcc_cv_ld`
21633 # Check whether --with-plugin-ld was given.
21634 if test "${with_plugin_ld+set}" = set; then :
21635 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21636 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21637 PLUGIN_LD
="$withval"
21643 cat >>confdefs.h
<<_ACEOF
21644 #define PLUGIN_LD "$PLUGIN_LD"
21648 # Check to see if we are using gold instead of ld
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21650 $as_echo_n "checking whether we are using gold... " >&6; }
21652 if test x
$gcc_cv_ld != x
; then
21653 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21654 |
grep "GNU gold" > /dev
/null
; then
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21659 $as_echo "$ld_is_gold" >&6; }
21661 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21663 case "$ORIGINAL_LD_FOR_TARGET" in
21664 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21665 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21670 $as_echo_n "checking what linker to use... " >&6; }
21671 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21672 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21673 # Single tree build which includes ld. We want to prefer it
21674 # over whatever linker top-level may have detected, since
21675 # we'll use what we're building after installation anyway.
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21677 $as_echo "newly built ld" >&6; }
21679 in_tree_ld_is_elf
=no
21680 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21681 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21682 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21683 in_tree_ld_is_elf
=yes
21684 elif test "$ld_is_gold" = yes; then
21685 in_tree_ld_is_elf
=yes
21687 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
21689 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21690 if test x
$gcc_cv_gld_version != x
; then
21694 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21695 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21698 $as_echo "$gcc_cv_ld" >&6; }
21702 # Figure out what nm we will be using.
21703 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21704 if test "${gcc_cv_nm+set}" = set; then :
21708 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21709 && test -f ..
/binutils
/Makefile \
21710 && test x
$build = x
$host; then
21711 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21712 elif test -x nm
$build_exeext; then
21713 gcc_cv_nm
=.
/nm
$build_exeext
21714 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21715 gcc_cv_nm
="$NM_FOR_TARGET"
21717 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21718 set dummy
$NM_FOR_TARGET; ac_word
=$2
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21720 $as_echo_n "checking for $ac_word... " >&6; }
21721 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21722 $as_echo_n "(cached) " >&6
21726 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21730 for as_dir
in $PATH
21733 test -z "$as_dir" && as_dir
=.
21734 for ac_exec_ext
in '' $ac_executable_extensions; do
21735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21736 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21747 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21748 if test -n "$gcc_cv_nm"; then
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21750 $as_echo "$gcc_cv_nm" >&6; }
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21753 $as_echo "no" >&6; }
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21761 $as_echo_n "checking what nm to use... " >&6; }
21762 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21763 # Single tree build which includes binutils.
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21765 $as_echo "newly built nm" >&6; }
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21769 $as_echo "$gcc_cv_nm" >&6; }
21773 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21775 case "$ORIGINAL_NM_FOR_TARGET" in
21776 .
/nm | .
/nm
$build_exeext) ;;
21777 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21782 # Figure out what objdump we will be using.
21783 if test "${gcc_cv_objdump+set}" = set; then :
21787 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21788 && test -f ..
/binutils
/Makefile \
21789 && test x
$build = x
$host; then
21790 # Single tree build which includes binutils.
21791 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21792 elif test -x objdump
$build_exeext; then
21793 gcc_cv_objdump
=.
/objdump
$build_exeext
21794 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21795 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21797 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21798 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21800 $as_echo_n "checking for $ac_word... " >&6; }
21801 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21802 $as_echo_n "(cached) " >&6
21804 case $gcc_cv_objdump in
21806 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21810 for as_dir
in $PATH
21813 test -z "$as_dir" && as_dir
=.
21814 for ac_exec_ext
in '' $ac_executable_extensions; do
21815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21816 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21827 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21828 if test -n "$gcc_cv_objdump"; then
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21830 $as_echo "$gcc_cv_objdump" >&6; }
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21833 $as_echo "no" >&6; }
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21841 $as_echo_n "checking what objdump to use... " >&6; }
21842 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21843 # Single tree build which includes binutils.
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21845 $as_echo "newly built objdump" >&6; }
21846 elif test x
$gcc_cv_objdump = x
; then
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21848 $as_echo "not found" >&6; }
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21851 $as_echo "$gcc_cv_objdump" >&6; }
21854 # Figure out what readelf we will be using.
21855 if test "${gcc_cv_readelf+set}" = set; then :
21859 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21860 && test -f ..
/binutils
/Makefile \
21861 && test x
$build = x
$host; then
21862 # Single tree build which includes binutils.
21863 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21864 elif test -x readelf
$build_exeext; then
21865 gcc_cv_readelf
=.
/readelf
$build_exeext
21867 # Extract the first word of "readelf", so it can be a program name with args.
21868 set dummy readelf
; ac_word
=$2
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21870 $as_echo_n "checking for $ac_word... " >&6; }
21871 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21872 $as_echo_n "(cached) " >&6
21874 case $gcc_cv_readelf in
21876 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21880 for as_dir
in $PATH
21883 test -z "$as_dir" && as_dir
=.
21884 for ac_exec_ext
in '' $ac_executable_extensions; do
21885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21886 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21897 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21898 if test -n "$gcc_cv_readelf"; then
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21900 $as_echo "$gcc_cv_readelf" >&6; }
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21903 $as_echo "no" >&6; }
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21911 $as_echo_n "checking what readelf to use... " >&6; }
21912 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21913 # Single tree build which includes binutils.
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21915 $as_echo "newly built readelf" >&6; }
21916 elif test x
$gcc_cv_readelf = x
; then
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21918 $as_echo "not found" >&6; }
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21921 $as_echo "$gcc_cv_readelf" >&6; }
21924 # Figure out what assembler alignment features are present.
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21926 $as_echo_n "checking assembler flags... " >&6; }
21927 if test "${gcc_cv_as_flags+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21931 i
[34567]86-*-linux*)
21932 gcc_cv_as_flags
="--32"
21934 powerpc
*-*-darwin*)
21935 gcc_cv_as_flags
="-arch ppc"
21938 gcc_cv_as_flags
=" "
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21943 $as_echo "$gcc_cv_as_flags" >&6; }
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21946 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21947 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21950 gcc_cv_as_balign_and_p2align
=no
21951 if test $in_tree_gas = yes; then
21952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21953 then gcc_cv_as_balign_and_p2align
=yes
21955 elif test x
$gcc_cv_as != x
; then
21956 $as_echo '.balign 4
21957 .p2align 2' > conftest.s
21958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21960 (eval $ac_try) 2>&5
21962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21963 test $ac_status = 0; }; }
21965 gcc_cv_as_balign_and_p2align
=yes
21967 echo "configure: failed program was" >&5
21970 rm -f conftest.o conftest.s
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21974 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21975 if test $gcc_cv_as_balign_and_p2align = yes; then
21977 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21982 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21983 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21986 gcc_cv_as_max_skip_p2align
=no
21987 if test $in_tree_gas = yes; then
21988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21989 then gcc_cv_as_max_skip_p2align
=yes
21991 elif test x
$gcc_cv_as != x
; then
21992 $as_echo '.p2align 4,,7' > conftest.s
21993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21995 (eval $ac_try) 2>&5
21997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21998 test $ac_status = 0; }; }
22000 gcc_cv_as_max_skip_p2align
=yes
22002 echo "configure: failed program was" >&5
22005 rm -f conftest.o conftest.s
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22009 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22010 if test $gcc_cv_as_max_skip_p2align = yes; then
22012 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22017 $as_echo_n "checking assembler for .literal16... " >&6; }
22018 if test "${gcc_cv_as_literal16+set}" = set; then :
22019 $as_echo_n "(cached) " >&6
22021 gcc_cv_as_literal16
=no
22022 if test $in_tree_gas = yes; then
22023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22024 then gcc_cv_as_literal16
=yes
22026 elif test x
$gcc_cv_as != x
; then
22027 $as_echo '.literal16' > conftest.s
22028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22030 (eval $ac_try) 2>&5
22032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22033 test $ac_status = 0; }; }
22035 gcc_cv_as_literal16
=yes
22037 echo "configure: failed program was" >&5
22040 rm -f conftest.o conftest.s
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22044 $as_echo "$gcc_cv_as_literal16" >&6; }
22045 if test $gcc_cv_as_literal16 = yes; then
22047 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22052 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22053 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22054 $as_echo_n "(cached) " >&6
22056 gcc_cv_as_subsection_m1
=no
22057 if test $in_tree_gas = yes; then
22058 if test $in_tree_gas_is_elf = yes \
22059 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22060 then gcc_cv_as_subsection_m1
=yes
22062 elif test x
$gcc_cv_as != x
; then
22063 $as_echo 'conftest_label1: .word 0
22065 conftest_label2: .word 0
22066 .previous' > conftest.s
22067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22069 (eval $ac_try) 2>&5
22071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22072 test $ac_status = 0; }; }
22074 if test x
$gcc_cv_nm != x
; then
22075 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22076 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22077 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22079 else gcc_cv_as_subsection_m1
=yes
22081 rm -f conftest.nm1 conftest.nm2
22084 echo "configure: failed program was" >&5
22087 rm -f conftest.o conftest.s
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22091 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22092 if test $gcc_cv_as_subsection_m1 = yes; then
22094 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22099 $as_echo_n "checking assembler for .weak... " >&6; }
22100 if test "${gcc_cv_as_weak+set}" = set; then :
22101 $as_echo_n "(cached) " >&6
22104 if test $in_tree_gas = yes; then
22105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22106 then gcc_cv_as_weak
=yes
22108 elif test x
$gcc_cv_as != x
; then
22109 $as_echo ' .weak foobar' > conftest.s
22110 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22112 (eval $ac_try) 2>&5
22114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115 test $ac_status = 0; }; }
22119 echo "configure: failed program was" >&5
22122 rm -f conftest.o conftest.s
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22126 $as_echo "$gcc_cv_as_weak" >&6; }
22127 if test $gcc_cv_as_weak = yes; then
22129 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22134 $as_echo_n "checking assembler for .weakref... " >&6; }
22135 if test "${gcc_cv_as_weakref+set}" = set; then :
22136 $as_echo_n "(cached) " >&6
22138 gcc_cv_as_weakref
=no
22139 if test $in_tree_gas = yes; then
22140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22141 then gcc_cv_as_weakref
=yes
22143 elif test x
$gcc_cv_as != x
; then
22144 $as_echo ' .weakref foobar, barfnot' > conftest.s
22145 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147 (eval $ac_try) 2>&5
22149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150 test $ac_status = 0; }; }
22152 gcc_cv_as_weakref
=yes
22154 echo "configure: failed program was" >&5
22157 rm -f conftest.o conftest.s
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22161 $as_echo "$gcc_cv_as_weakref" >&6; }
22162 if test $gcc_cv_as_weakref = yes; then
22164 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22169 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22170 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22173 gcc_cv_as_nsubspa_comdat
=no
22174 if test $in_tree_gas = yes; then
22175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22176 then gcc_cv_as_nsubspa_comdat
=yes
22178 elif test x
$gcc_cv_as != x
; then
22179 $as_echo ' .SPACE $TEXT$
22180 .NSUBSPA $CODE$,COMDAT' > conftest.s
22181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22183 (eval $ac_try) 2>&5
22185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22186 test $ac_status = 0; }; }
22188 gcc_cv_as_nsubspa_comdat
=yes
22190 echo "configure: failed program was" >&5
22193 rm -f conftest.o conftest.s
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22197 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22198 if test $gcc_cv_as_nsubspa_comdat = yes; then
22200 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22204 # .hidden needs to be supported in both the assembler and the linker,
22205 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22206 # This is irritatingly difficult to feature test for; we have to check the
22207 # date string after the version number. If we've got an in-tree
22208 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22210 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22212 $as_echo_n "checking assembler for .hidden... " >&6; }
22213 if test "${gcc_cv_as_hidden+set}" = set; then :
22214 $as_echo_n "(cached) " >&6
22216 gcc_cv_as_hidden
=no
22217 if test $in_tree_gas = yes; then
22218 if test $in_tree_gas_is_elf = yes \
22219 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22220 then gcc_cv_as_hidden
=yes
22222 elif test x
$gcc_cv_as != x
; then
22223 $as_echo ' .hidden foobar
22224 foobar:' > conftest.s
22225 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22227 (eval $ac_try) 2>&5
22229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230 test $ac_status = 0; }; }
22233 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22234 # STV_HIDDEN, so disable .hidden support if so.
22235 case "${target}" in
22236 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22237 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22238 cat > conftest.s
<<EOF
22243 .set default,hidden
22245 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22246 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22247 grep '\.hidden default' > /dev
/null
; then
22248 gcc_cv_as_hidden
=no
22250 gcc_cv_as_hidden
=yes
22253 # Assume bug is present if objdump is missing.
22254 gcc_cv_as_hidden
=no
22258 gcc_cv_as_hidden
=yes
22262 echo "configure: failed program was" >&5
22265 rm -f conftest.o conftest.s
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22269 $as_echo "$gcc_cv_as_hidden" >&6; }
22271 case "${target}" in
22273 # Darwin as has some visibility support, though with a different syntax.
22274 gcc_cv_as_hidden
=yes
22278 # gnu_indirect_function type is an extension proposed at
22279 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22280 # selection of function implementation
22281 # Check whether --enable-gnu-indirect-function was given.
22282 if test "${enable_gnu_indirect_function+set}" = set; then :
22283 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22285 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22286 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22289 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22292 if test x
$enable_gnu_indirect_function = xyes
; then
22294 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22298 if test $in_tree_ld != yes ; then
22299 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22300 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22301 if test x
"$ld_is_gold" = xyes
; then
22302 # GNU gold --version looks like this:
22304 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22306 # We extract the binutils version which is more familiar and specific
22307 # than the gold version.
22308 ld_vers
=`echo $ld_ver | sed -n \
22309 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22311 # GNU ld --version looks like this:
22313 # GNU ld (GNU Binutils) 2.21.51.20110225
22314 ld_vers
=`echo $ld_ver | sed -n \
22315 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22317 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'`
22318 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22319 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22320 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22322 case "${target}" in
22325 # Solaris 2 ld -V output looks like this for a regular version:
22327 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22329 # but test versions add stuff at the end:
22331 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22333 ld_ver
=`$gcc_cv_ld -V 2>&1`
22334 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22335 ld_vers
=`echo $ld_ver | sed -n \
22336 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22337 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22338 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22346 $as_echo_n "checking linker for .hidden support... " >&6; }
22347 if test "${gcc_cv_ld_hidden+set}" = set; then :
22348 $as_echo_n "(cached) " >&6
22350 if test $in_tree_ld = yes ; then
22351 gcc_cv_ld_hidden
=no
22352 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 \
22353 && test $in_tree_ld_is_elf = yes; then
22354 gcc_cv_ld_hidden
=yes
22357 gcc_cv_ld_hidden
=yes
22358 if test x
"$ld_is_gold" = xyes
; then
22360 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22361 if test 0"$ld_date" -lt 20020404; then
22362 if test -n "$ld_date"; then
22363 # If there was date string, but was earlier than 2002-04-04, fail
22364 gcc_cv_ld_hidden
=no
22365 elif test -z "$ld_vers"; then
22366 # If there was no date string nor ld version number, something is wrong
22367 gcc_cv_ld_hidden
=no
22369 test -z "$ld_vers_patch" && ld_vers_patch
=0
22370 if test "$ld_vers_major" -lt 2; then
22371 gcc_cv_ld_hidden
=no
22372 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22373 gcc_cv_ld_hidden
="no"
22374 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22375 gcc_cv_ld_hidden
=no
22380 case "${target}" in
22382 # Darwin ld has some visibility support.
22383 gcc_cv_ld_hidden
=yes
22385 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22386 gcc_cv_ld_hidden
=yes
22389 # .hidden support was backported to Solaris 8, starting with ld
22391 if test "$ld_vers_minor" -ge 276; then
22392 gcc_cv_ld_hidden
=yes
22394 gcc_cv_ld_hidden
=no
22397 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22398 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22399 # .symbolic was only added in Solaris 9 12/02.
22400 gcc_cv_ld_hidden
=yes
22403 gcc_cv_ld_hidden
=no
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22410 $as_echo "$gcc_cv_ld_hidden" >&6; }
22411 libgcc_visibility
=no
22414 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22415 libgcc_visibility
=yes
22417 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22422 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22423 gcc_cv_ld_ro_rw_mix
=unknown
22424 if test $in_tree_ld = yes ; then
22425 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 \
22426 && test $in_tree_ld_is_elf = yes; then
22427 gcc_cv_ld_ro_rw_mix
=read-write
22429 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22430 echo '.section myfoosect, "a"' > conftest1.s
22431 echo '.section myfoosect, "aw"' > conftest2.s
22432 echo '.byte 1' >> conftest2.s
22433 echo '.section myfoosect, "a"' > conftest3.s
22434 echo '.byte 0' >> conftest3.s
22435 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22436 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22437 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22438 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22439 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22440 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22441 | sed -e '/myfoosect/!d' -e N`
22442 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22443 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22444 gcc_cv_ld_ro_rw_mix
=read-only
22446 gcc_cv_ld_ro_rw_mix
=read-write
22450 rm -f conftest.
* conftest
[123].
*
22452 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22454 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22458 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22460 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22462 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22463 if test "${gcc_cv_as_leb128+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22466 gcc_cv_as_leb128
=no
22467 if test $in_tree_gas = yes; then
22468 if test $in_tree_gas_is_elf = yes \
22469 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22470 then gcc_cv_as_leb128
=yes
22472 elif test x
$gcc_cv_as != x
; then
22479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22481 (eval $ac_try) 2>&5
22483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22484 test $ac_status = 0; }; }
22486 # GAS versions before 2.11 do not support uleb128,
22487 # despite appearing to.
22488 # ??? There exists an elf-specific test that will crash
22489 # the assembler. Perhaps it's better to figure out whether
22490 # arbitrary sections are supported and try the test.
22491 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22492 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22493 as_vers
=`echo $as_ver | sed -n \
22494 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22495 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22496 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22497 if test $as_major -eq 2 && test $as_minor -lt 11
22499 else gcc_cv_as_leb128
=yes
22503 echo "configure: failed program was" >&5
22506 rm -f conftest.o conftest.s
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22510 $as_echo "$gcc_cv_as_leb128" >&6; }
22511 if test $gcc_cv_as_leb128 = yes; then
22513 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22517 # Check if we have assembler support for unwind directives.
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22519 $as_echo_n "checking assembler for cfi directives... " >&6; }
22520 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
22523 gcc_cv_as_cfi_directive
=no
22524 if test x
$gcc_cv_as != x
; then
22530 .cfi_escape 1, 2, 3, 4, 5
22531 .cfi_endproc' > conftest.s
22532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22534 (eval $ac_try) 2>&5
22536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22537 test $ac_status = 0; }; }
22541 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22542 # read-only and read-write sections, we need to make sure that the
22543 # assembler used emits read-write .eh_frame sections.
22544 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22545 if test "x$gcc_cv_objdump" != x
; then
22546 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22547 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22548 gcc_cv_as_cfi_directive
=no
22551 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22552 # On Solaris/x86, make sure that GCC and gas agree on using
22553 # read-only .eh_frame sections for 64-bit.
22554 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22555 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22556 sed -e /.eh_frame
/!d
-e N | \
22557 grep READONLY
> /dev
/null
; then
22558 gcc_cv_as_cfi_directive
=yes
22560 gcc_cv_as_cfi_directive
=no
22564 gcc_cv_as_cfi_directive
=yes
22569 # no objdump, err on the side of caution
22570 gcc_cv_as_cfi_directive
=no
22573 gcc_cv_as_cfi_directive
=yes
22577 gcc_cv_as_cfi_directive
=yes
22581 echo "configure: failed program was" >&5
22584 rm -f conftest.o conftest.s
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22588 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22590 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22592 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22593 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22596 gcc_cv_as_cfi_advance_working
=no
22597 if test x
$gcc_cv_as != x
; then
22600 .cfi_adjust_cfa_offset 64
22602 .cfi_adjust_cfa_offset 128
22603 .cfi_endproc' > conftest.s
22604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22606 (eval $ac_try) 2>&5
22608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22609 test $ac_status = 0; }; }
22612 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22613 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22614 gcc_cv_as_cfi_advance_working
=yes
22618 echo "configure: failed program was" >&5
22621 rm -f conftest.o conftest.s
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22625 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22628 # no objdump, err on the side of caution
22629 gcc_cv_as_cfi_advance_working
=no
22633 cat >>confdefs.h
<<_ACEOF
22634 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22635 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22641 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22642 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22643 $as_echo_n "(cached) " >&6
22645 gcc_cv_as_cfi_personality_directive
=no
22646 if test x
$gcc_cv_as != x
; then
22649 .cfi_personality 0, symbol
22650 .cfi_endproc' > conftest.s
22651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653 (eval $ac_try) 2>&5
22655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656 test $ac_status = 0; }; }
22658 gcc_cv_as_cfi_personality_directive
=yes
22660 echo "configure: failed program was" >&5
22663 rm -f conftest.o conftest.s
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22667 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22670 cat >>confdefs.h
<<_ACEOF
22671 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22672 then echo 1; else echo 0; fi`
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22677 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22678 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22679 $as_echo_n "(cached) " >&6
22681 gcc_cv_as_cfi_sections_directive
=no
22682 if test x
$gcc_cv_as != x
; then
22684 .cfi_sections .debug_frame, .eh_frame
22686 .cfi_endproc' > conftest.s
22687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; }
22695 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22696 # Need to check that we generated the correct relocation for the
22697 # .debug_frame section. This was fixed for binutils 2.21.
22698 gcc_cv_as_cfi_sections_directive
=no
22699 if test "x$gcc_cv_objdump" != x
; then
22700 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22701 grep secrel
> /dev
/null
; then
22702 gcc_cv_as_cfi_sections_directive
=yes
22707 gcc_cv_as_cfi_sections_directive
=yes
22711 echo "configure: failed program was" >&5
22714 rm -f conftest.o conftest.s
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22718 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22722 cat >>confdefs.h
<<_ACEOF
22723 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22724 then echo 1; else echo 0; fi`
22728 # GAS versions up to and including 2.11.0 may mis-optimize
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22731 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22732 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22733 $as_echo_n "(cached) " >&6
22735 gcc_cv_as_eh_frame
=no
22736 if test $in_tree_gas = yes; then
22737 if test $in_tree_gas_is_elf = yes \
22738 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22739 then gcc_cv_as_eh_frame
=yes
22741 elif test x
$gcc_cv_as != x
; then
22748 .section .eh_frame,"aw",@progbits
22750 .4byte .LECIE1-.LSCIE1
22764 .4byte .LEFDE1-.LASFDE1
22766 .4byte .LASFDE1-__FRAME_BEGIN__
22773 .LEFDE1:' > conftest.s
22774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22776 (eval $ac_try) 2>&5
22778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22779 test $ac_status = 0; }; }
22781 cat > conftest.lit
<<EOF
22782 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22783 0010 01000000 12000000 18000000 00000000 ................
22784 0020 08000000 04080000 0044 .........D
22786 cat > conftest.big
<<EOF
22787 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22788 0010 00000001 00000012 00000018 00000000 ................
22789 0020 00000008 04000000 0844 .........D
22791 # If the assembler didn't choke, and we can objdump,
22792 # and we got the correct data, then succeed.
22793 # The text in the here-document typically retains its unix-style line
22794 # endings, while the output of objdump will use host line endings.
22795 # Therefore, use diff -b for the comparisons.
22796 if test x
$gcc_cv_objdump != x \
22797 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22798 |
tail -3 > conftest.got \
22799 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22800 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22802 gcc_cv_as_eh_frame
=yes
22803 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22805 (eval $ac_try) 2>&5
22807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22808 test $ac_status = 0; }; }; then
22809 gcc_cv_as_eh_frame
=buggy
22811 # Uh oh, what do we do now?
22812 gcc_cv_as_eh_frame
=no
22815 echo "configure: failed program was" >&5
22818 rm -f conftest.o conftest.s
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22822 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22825 if test $gcc_cv_as_eh_frame = buggy
; then
22827 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22832 $as_echo_n "checking assembler for section merging support... " >&6; }
22833 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22836 gcc_cv_as_shf_merge
=no
22837 if test $in_tree_gas = yes; then
22838 if test $in_tree_gas_is_elf = yes \
22839 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22840 then gcc_cv_as_shf_merge
=yes
22842 elif test x
$gcc_cv_as != x
; then
22843 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22846 (eval $ac_try) 2>&5
22848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22849 test $ac_status = 0; }; }
22851 gcc_cv_as_shf_merge
=yes
22853 echo "configure: failed program was" >&5
22856 rm -f conftest.o conftest.s
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22860 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22862 if test $gcc_cv_as_shf_merge = no
; then
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22864 $as_echo_n "checking assembler for section merging support... " >&6; }
22865 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22866 $as_echo_n "(cached) " >&6
22868 gcc_cv_as_shf_merge
=no
22869 if test $in_tree_gas = yes; then
22870 if test $in_tree_gas_is_elf = yes \
22871 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22872 then gcc_cv_as_shf_merge
=yes
22874 elif test x
$gcc_cv_as != x
; then
22875 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878 (eval $ac_try) 2>&5
22880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881 test $ac_status = 0; }; }
22883 gcc_cv_as_shf_merge
=yes
22885 echo "configure: failed program was" >&5
22888 rm -f conftest.o conftest.s
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22892 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22896 cat >>confdefs.h
<<_ACEOF
22897 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22902 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22903 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22904 $as_echo_n "(cached) " >&6
22906 gcc_cv_as_comdat_group
=no
22907 if test $in_tree_gas = yes; then
22908 if test $in_tree_gas_is_elf = yes \
22909 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22910 then gcc_cv_as_comdat_group
=yes
22912 elif test x
$gcc_cv_as != x
; then
22913 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22914 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22916 (eval $ac_try) 2>&5
22918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22919 test $ac_status = 0; }; }
22921 gcc_cv_as_comdat_group
=yes
22923 echo "configure: failed program was" >&5
22926 rm -f conftest.o conftest.s
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22930 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22932 if test $gcc_cv_as_comdat_group = yes; then
22933 gcc_cv_as_comdat_group_percent
=no
22934 gcc_cv_as_comdat_group_group
=no
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22937 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22938 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22941 gcc_cv_as_comdat_group_percent
=no
22942 if test $in_tree_gas = yes; then
22943 if test $in_tree_gas_is_elf = yes \
22944 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22945 then gcc_cv_as_comdat_group_percent
=yes
22947 elif test x
$gcc_cv_as != x
; then
22948 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22949 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22951 (eval $ac_try) 2>&5
22953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22954 test $ac_status = 0; }; }
22956 gcc_cv_as_comdat_group_percent
=yes
22958 echo "configure: failed program was" >&5
22961 rm -f conftest.o conftest.s
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22965 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22967 if test $gcc_cv_as_comdat_group_percent = yes; then
22968 gcc_cv_as_comdat_group_group
=no
22970 case "${target}" in
22971 # Sun as uses a completely different syntax.
22973 case "${target}" in
22974 sparc
*-*-solaris2*)
22976 .group foo,".text%foo",#comdat
22977 .section ".text%foo", #alloc,#execinstr,#progbits
22982 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22984 .group foo,.text%foo,#comdat
22985 .section .text%foo, "ax", @progbits
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22992 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22993 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22994 $as_echo_n "(cached) " >&6
22996 gcc_cv_as_comdat_group_group
=no
22997 if test x
$gcc_cv_as != x
; then
22998 $as_echo "$conftest_s" > conftest.s
22999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23001 (eval $ac_try) 2>&5
23003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23004 test $ac_status = 0; }; }
23006 gcc_cv_as_comdat_group_group
=yes
23008 echo "configure: failed program was" >&5
23011 rm -f conftest.o conftest.s
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23015 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23021 if test x
"$ld_is_gold" = xyes
; then
23023 elif test $in_tree_ld = yes ; then
23025 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 \
23026 && test $in_tree_ld_is_elf = yes; then
23029 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23031 if test 0"$ld_date" -lt 20050308; then
23032 if test -n "$ld_date"; then
23033 # If there was date string, but was earlier than 2005-03-08, fail
23035 elif test "$ld_vers_major" -lt 2; then
23037 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23042 case "${target}" in
23043 *-*-solaris2.1
[1-9]*)
23045 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23046 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23049 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23050 # least ld version 1.2267.
23051 if test "$ld_vers_major" -gt 1; then
23053 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23055 elif test "$ld_vers_minor" -ge 2267; then
23060 # Assume linkers other than GNU ld don't support COMDAT group.
23065 # Allow overriding the automatic COMDAT group tests above.
23066 # Check whether --enable-comdat was given.
23067 if test "${enable_comdat+set}" = set; then :
23068 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23071 if test $comdat_group = no
; then
23072 gcc_cv_as_comdat_group
=no
23073 gcc_cv_as_comdat_group_percent
=no
23074 gcc_cv_as_comdat_group_group
=no
23077 cat >>confdefs.h
<<_ACEOF
23078 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23079 || test $gcc_cv_as_comdat_group_percent = yes \
23080 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23085 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23086 if test "${gcc_cv_as_discriminator+set}" = set; then :
23087 $as_echo_n "(cached) " >&6
23089 gcc_cv_as_discriminator
=no
23090 if test $in_tree_gas = yes; then
23091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23092 then gcc_cv_as_discriminator
=yes
23094 elif test x
$gcc_cv_as != x
; then
23097 .loc 1 1 0 discriminator 1' > conftest.s
23098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23100 (eval $ac_try) 2>&5
23102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23103 test $ac_status = 0; }; }
23105 gcc_cv_as_discriminator
=yes
23107 echo "configure: failed program was" >&5
23110 rm -f conftest.o conftest.s
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23114 $as_echo "$gcc_cv_as_discriminator" >&6; }
23115 if test $gcc_cv_as_discriminator = yes; then
23117 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23121 # Thread-local storage - the check is heavily parameterized.
23129 .section ".tdata","awT",@progbits
23132 ldq $27,__tls_get_addr($29) !literal!1
23133 lda $16,foo($29) !tlsgd!1
23134 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23135 ldq $27,__tls_get_addr($29) !literal!2
23136 lda $16,foo($29) !tlsldm!2
23137 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23138 ldq $1,foo($29) !gotdtprel
23139 ldah $2,foo($29) !dtprelhi
23140 lda $3,foo($2) !dtprello
23141 lda $4,foo($29) !dtprel
23142 ldq $1,foo($29) !gottprel
23143 ldah $2,foo($29) !tprelhi
23144 lda $3,foo($2) !tprello
23145 lda $4,foo($29) !tprel'
23148 tls_as_opt
=--fatal-warnings
23150 cris-
*-*|crisv32-
*-*)
23152 .section ".tdata","awT",@progbits
23159 tls_as_opt
=--fatal-warnings
23163 .section ".tdata","awT",@progbits
23166 call #gettlsoff(x)'
23175 .section ".tdata","awT",@progbits
23179 addil LT%foo-$tls_gdidx$,gp
23180 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23183 addil LT%foo-$tls_ldidx$,gp
23185 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23186 addil LR%foo-$tls_dtpoff$,%ret0
23187 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23189 addil LT%foo-$tls_ieoff$,gp
23190 ldw RT%foo-$tls_ieoff$(%r1),%t2
23193 addil LR%foo-$tls_leoff$,%t1
23194 ldo RR%foo-$tls_leoff$(%r1),%t2'
23197 tls_as_opt
=--fatal-warnings
23201 .section ".tdata","awT",%progbits
23204 .word foo(gottpoff)
23212 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23214 i
[34567]86-*-solaris2.
*)
23216 tga_func
=___tls_get_addr
23218 x86_64-
*-solaris2.1
[0-9]*)
23220 tga_func
=__tls_get_addr
23226 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23228 .section .tdata,"awt",@progbits'
23232 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23236 .section ".tdata","awT",@progbits'
23239 tls_as_opt
="--fatal-warnings"
23241 conftest_s
="$conftest_s
23245 leal foo@tlsgd(,%ebx,1), %eax
23246 leal foo@tlsldm(%ebx), %eax
23247 leal foo@dtpoff(%eax), %edx
23248 movl foo@gottpoff(%ebx), %eax
23249 subl foo@gottpoff(%ebx), %eax
23250 addl foo@gotntpoff(%ebx), %eax
23251 movl foo@indntpoff, %eax
23252 movl \$foo@tpoff, %eax
23253 subl \$foo@tpoff, %eax
23254 leal foo@ntpoff(%ecx), %eax"
23258 .section ".tdata","awT",@progbits
23262 leaq foo@TLSGD(%rip), %rdi
23263 leaq foo@TLSLD(%rip), %rdi
23264 leaq foo@DTPOFF(%rax), %rdx
23265 movq foo@GOTTPOFF(%rip), %rax
23266 movq $foo@TPOFF, %rax'
23269 tls_as_opt
=--fatal-warnings
23273 .section ".tdata","awT",@progbits
23276 addl r16 = @ltoff(@dtpmod(foo#)), gp
23277 addl r17 = @ltoff(@dtprel(foo#)), gp
23278 addl r18 = @ltoff(@tprel(foo#)), gp
23279 addl r19 = @dtprel(foo#), gp
23280 adds r21 = @dtprel(foo#), r13
23281 movl r23 = @dtprel(foo#)
23282 addl r20 = @tprel(foo#), gp
23283 adds r22 = @tprel(foo#), r13
23284 movl r24 = @tprel(foo#)'
23287 tls_as_opt
=--fatal-warnings
23291 .section .tdata,"awT",@progbits
23295 addiu $4, $28, %tlsgd(x)
23296 addiu $4, $28, %tlsldm(x)
23297 lui $4, %dtprel_hi(x)
23298 addiu $4, $4, %dtprel_lo(x)
23299 lw $4, %gottprel(x)($28)
23300 lui $4, %tprel_hi(x)
23301 addiu $4, $4, %tprel_lo(x)'
23304 tls_as_opt
='-32 --fatal-warnings'
23308 .section .tdata,"awT",@progbits
23313 move.l x@TLSGD(%a5),%a0
23314 move.l x@TLSLDM(%a5),%a0
23315 move.l x@TLSLDO(%a5),%a0
23316 move.l x@TLSIE(%a5),%a0
23317 move.l x@TLSLE(%a5),%a0'
23320 tls_as_opt
='--fatal-warnings'
23324 .section ".tdata","awT",@progbits
23332 addi 3,31,ld0@got@tlsgd
23334 addi 3,31,x1@got@tlsld
23337 addis 9,3,x2@dtprel@ha
23338 addi 9,9,x2@dtprel@l
23339 lwz 9,x3@got@tprel(31)
23342 addis 9,2,x2@tprel@ha
23343 addi 9,9,x2@tprel@l'
23346 tls_as_opt
="-a32 --fatal-warnings"
23350 .section ".tdata","awT",@progbits
23358 addi 3,2,ld0@got@tlsgd
23364 addi 3,2,x1@got@tlsld
23370 addis 9,3,x2@dtprel@ha
23371 addi 9,9,x2@dtprel@l
23374 ld 9,x3@got@dtprel(2)
23380 tls_as_opt
="-a64 --fatal-warnings"
23384 .section ".tdata","awT",@progbits
23391 .long foo@GOTNTPOFF
23392 .long foo@INDNTPOFF
23393 l %r1,foo@GOTNTPOFF(%r12)
23394 l %r1,0(%r1):tls_load:foo
23395 bas %r14,0(%r1,%r13):tls_gdcall:foo
23396 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23399 tls_as_opt
="-m31 --fatal-warnings"
23403 .section ".tdata","awT",@progbits
23410 .quad foo@GOTNTPOFF
23411 lg %r1,foo@GOTNTPOFF(%r12)
23412 larl %r1,foo@INDNTPOFF
23413 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23414 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23417 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23419 sh-
*-* | sh
[34]-*-*)
23421 .section ".tdata","awT",@progbits
23431 tls_as_opt
=--fatal-warnings
23435 sparc
*-sun-solaris2.
*)
23437 tga_func
=__tls_get_addr
23443 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23445 .section ".tdata",#alloc,#write,#tls'
23450 .section ".tdata","awT",@progbits'
23453 tls_as_opt
="-32 --fatal-warnings"
23455 conftest_s
="$conftest_s
23458 sethi %tgd_hi22(foo), %o0
23459 add %o0, %tgd_lo10(foo), %o1
23460 add %l7, %o1, %o0, %tgd_add(foo)
23461 call __tls_get_addr, %tgd_call(foo)
23462 sethi %tldm_hi22(foo), %l1
23463 add %l1, %tldm_lo10(foo), %l2
23464 add %l7, %l2, %o0, %tldm_add(foo)
23465 call __tls_get_addr, %tldm_call(foo)
23466 sethi %tldo_hix22(foo), %l3
23467 xor %l3, %tldo_lox10(foo), %l4
23468 add %o0, %l4, %l5, %tldo_add(foo)
23469 sethi %tie_hi22(foo), %o3
23470 add %o3, %tie_lo10(foo), %o3
23471 ld [%l7 + %o3], %o2, %tie_ld(foo)
23472 add %g7, %o2, %o4, %tie_add(foo)
23473 sethi %tle_hix22(foo), %l1
23474 xor %l1, %tle_lox10(foo), %o5
23475 ld [%g7 + %o5], %o1"
23479 .section ".tdata","awT",@progbits
23482 movi a8, foo@TLSFUNC
23483 movi a10, foo@TLSARG
23484 callx8.tls a8, foo@TLSCALL'
23490 if test "x$enable_tls" = xno
; then
23491 : # TLS explicitly disabled.
23492 elif test "x$enable_tls" = xyes
; then
23493 set_have_as_tls
=yes # TLS explicitly enabled.
23494 elif test -z "$tls_first_major"; then
23495 : # If we don't have a check, assume no support.
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23498 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23499 if test "${gcc_cv_as_tls+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23503 if test $in_tree_gas = yes; then
23504 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23505 then gcc_cv_as_tls
=yes
23507 elif test x
$gcc_cv_as != x
; then
23508 $as_echo "$conftest_s" > conftest.s
23509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23511 (eval $ac_try) 2>&5
23513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23514 test $ac_status = 0; }; }
23518 echo "configure: failed program was" >&5
23521 rm -f conftest.o conftest.s
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23525 $as_echo "$gcc_cv_as_tls" >&6; }
23526 if test $gcc_cv_as_tls = yes; then
23527 set_have_as_tls
=yes
23532 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23533 # with TLS support are in use, native TLS cannot work.
23537 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23538 # gld with TLS support are in use, native TLS cannot work.
23541 # TLS was introduced in the Solaris 9 FCS release and backported to
23542 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23543 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23544 # ld and GCC don't support any longer.
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23547 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23549 # Check ld and ld.so.1 TLS support.
23550 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23551 # Assume all interesting versions of GNU ld have TLS support.
23552 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23556 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23558 min_tls_ld_vers_minor
=280
23560 # Solaris 8/SPARC ld has TLS support since version 1.272.
23561 sparc
*-*-solaris2.8
)
23562 min_tls_ld_vers_minor
=272
23564 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23566 min_tls_ld_vers_minor
=374
23568 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23569 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23570 min_tls_ld_vers_minor
=343
23573 if test "$ld_vers_major" -gt 1 || \
23574 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23581 $as_echo "$ld_tls_support" >&6; }
23584 save_LDFLAGS
="$LDFLAGS"
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23589 $as_echo_n "checking alternate thread library... " >&6; }
23591 # TLS support was backported to Solaris 8 patches, but only lives in
23592 # the alternate thread library which became the default in Solaris 9.
23593 # We want to always use that, irrespective of TLS support.
23595 # Take multilib subdir into account. There's no spec to handle
23596 # this. The 64 symlink exists since Solaris 8.
23597 lwp_dir
=/usr
/lib
/lwp
23598 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23599 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23606 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23608 cat >>confdefs.h
<<_ACEOF
23609 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23613 $as_echo "$lwp_dir" >&6; }
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23616 $as_echo_n "checking library containing $tga_func... " >&6; }
23617 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23618 # (32-bit x86) only lived in libthread, so check for that. Keep
23619 # set_have_as_tls if found, disable if not.
23620 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23622 $as_echo_n "checking for library containing $tga_func... " >&6; }
23623 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23624 $as_echo_n "(cached) " >&6
23626 ac_func_search_save_LIBS
=$LIBS
23627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23630 /* Override any GCC internal prototype to avoid an error.
23631 Use char because int might match the return type of a GCC
23632 builtin and then its argument prototype would still apply. */
23640 return $tga_func ();
23645 for ac_lib
in '' thread
; do
23646 if test -z "$ac_lib"; then
23647 ac_res
="none required"
23650 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23652 if ac_fn_c_try_link
"$LINENO"; then :
23653 eval "$as_ac_Search=\$ac_res"
23655 rm -f core conftest.err conftest.
$ac_objext \
23657 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23661 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23664 eval "$as_ac_Search=no"
23666 rm conftest.
$ac_ext
23667 LIBS
=$ac_func_search_save_LIBS
23669 eval ac_res
=\$
$as_ac_Search
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23671 $as_echo "$ac_res" >&6; }
23672 eval ac_res
=\$
$as_ac_Search
23673 if test "$ac_res" != no
; then :
23674 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23680 # Clear LIBS if we cannot support TLS.
23681 if test $set_have_as_tls = no
; then
23684 # Always define LIB_TLS_SPEC, even without TLS support.
23686 cat >>confdefs.h
<<_ACEOF
23687 #define LIB_TLS_SPEC "$LIBS"
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23691 $as_echo "$LIBS" >&6; }
23694 LDFLAGS
="$save_LDFLAGS"
23697 if test $set_have_as_tls = yes ; then
23699 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23703 # Target-specific assembler checks.
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23706 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23707 gcc_cv_ld_static_dynamic
=no
23708 gcc_cv_ld_static_option
='-Bstatic'
23709 gcc_cv_ld_dynamic_option
='-Bdynamic'
23710 if test $in_tree_ld = yes ; then
23711 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
23712 gcc_cv_ld_static_dynamic
=yes
23714 elif test x
$gcc_cv_ld != x
; then
23715 # Check if linker supports -Bstatic/-Bdynamic option
23716 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23717 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23718 gcc_cv_ld_static_dynamic
=yes
23721 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23723 gcc_cv_ld_static_dynamic
=yes
23724 gcc_cv_ld_static_option
="-noso"
23725 gcc_cv_ld_dynamic_option
="-so_archive"
23727 # HP-UX ld uses -a flags to select between shared and archive.
23729 if test x
"$gnu_ld" = xno
; then
23730 gcc_cv_ld_static_dynamic
=yes
23731 gcc_cv_ld_static_option
="-aarchive_shared"
23732 gcc_cv_ld_dynamic_option
="-adefault"
23735 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23737 gcc_cv_ld_static_dynamic
=yes
23739 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23741 gcc_cv_ld_static_dynamic
=yes
23746 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23748 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23751 cat >>confdefs.h
<<_ACEOF
23752 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23756 cat >>confdefs.h
<<_ACEOF
23757 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23762 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23764 if test x
"$demangler_in_ld" = xyes
; then
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23766 $as_echo_n "checking linker --demangle support... " >&6; }
23767 gcc_cv_ld_demangle
=no
23768 if test $in_tree_ld = yes; then
23769 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 \
23770 gcc_cv_ld_demangle
=yes
23772 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23773 # Check if the GNU linker supports --demangle option
23774 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23775 gcc_cv_ld_demangle
=yes
23778 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23780 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23784 $as_echo "$gcc_cv_ld_demangle" >&6; }
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23788 $as_echo_n "checking linker plugin support... " >&6; }
23789 gcc_cv_lto_plugin
=0
23790 if test -f liblto_plugin.la
; then
23791 save_ld_ver
="$ld_ver"
23792 save_ld_vers_major
="$ld_vers_major"
23793 save_ld_vers_minor
="$ld_vers_minor"
23794 save_ld_is_gold
="$ld_is_gold"
23798 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23800 # FIXME: ld_is_gold?
23801 ld_vers_major
="$gcc_cv_gld_major_version"
23802 ld_vers_minor
="$gcc_cv_gld_minor_version"
23804 # Determine plugin linker version.
23805 # FIXME: Partial duplicate from above, generalize.
23806 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23807 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23808 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23810 ld_vers
=`echo $ld_ver | sed -n \
23811 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23813 ld_vers
=`echo $ld_ver | sed -n \
23814 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23816 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23817 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23821 # Determine plugin support.
23822 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23823 # Require GNU ld or gold 2.21+ for plugin support by default.
23824 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23825 gcc_cv_lto_plugin
=2
23826 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23827 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23828 gcc_cv_lto_plugin
=1
23832 ld_ver
="$save_ld_ver"
23833 ld_vers_major
="$save_ld_vers_major"
23834 ld_vers_minor
="$save_ld_vers_minor"
23835 ld_is_gold
="$save_ld_is_gold"
23838 cat >>confdefs.h
<<_ACEOF
23839 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23843 $as_echo "$gcc_cv_lto_plugin" >&6; }
23846 # All TARGET_ABI_OSF targets.
23847 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23849 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23850 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23851 $as_echo_n "(cached) " >&6
23853 gcc_cv_as_alpha_explicit_relocs
=no
23854 if test $in_tree_gas = yes; then
23855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23856 then gcc_cv_as_alpha_explicit_relocs
=yes
23858 elif test x
$gcc_cv_as != x
; then
23859 $as_echo ' .set nomacro
23861 extbl $3, $2, $3 !lituse_bytoff!1
23862 ldq $2, a($29) !literal!1
23863 ldq $4, b($29) !literal!2
23864 ldq_u $3, 0($2) !lituse_base!1
23865 ldq $27, f($29) !literal!5
23866 jsr $26, ($27), f !lituse_jsr!5
23867 ldah $29, 0($26) !gpdisp!3
23868 lda $0, c($29) !gprel
23869 ldah $1, d($29) !gprelhigh
23870 lda $1, d($1) !gprellow
23871 lda $29, 0($29) !gpdisp!3' > conftest.s
23872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23874 (eval $ac_try) 2>&5
23876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877 test $ac_status = 0; }; }
23879 gcc_cv_as_alpha_explicit_relocs
=yes
23881 echo "configure: failed program was" >&5
23884 rm -f conftest.o conftest.s
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23888 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23889 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23891 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23895 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23896 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23897 $as_echo_n "(cached) " >&6
23899 gcc_cv_as_alpha_jsrdirect_relocs
=no
23900 if test $in_tree_gas = yes; then
23901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23902 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23904 elif test x
$gcc_cv_as != x
; then
23905 $as_echo ' .set nomacro
23907 ldq $27, a($29) !literal!1
23908 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911 (eval $ac_try) 2>&5
23913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914 test $ac_status = 0; }; }
23916 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23918 echo "configure: failed program was" >&5
23921 rm -f conftest.o conftest.s
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23925 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23926 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23928 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23935 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23936 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23939 gcc_cv_as_cris_no_mul_bug
=no
23940 if test $in_tree_gas = yes; then
23941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23942 then gcc_cv_as_cris_no_mul_bug
=yes
23944 elif test x
$gcc_cv_as != x
; then
23945 $as_echo '.text' > conftest.s
23946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23953 gcc_cv_as_cris_no_mul_bug
=yes
23955 echo "configure: failed program was" >&5
23958 rm -f conftest.o conftest.s
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23962 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23963 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23965 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23972 $as_echo_n "checking assembler for .register... " >&6; }
23973 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23974 $as_echo_n "(cached) " >&6
23976 gcc_cv_as_sparc_register_op
=no
23977 if test x
$gcc_cv_as != x
; then
23978 $as_echo '.register %g2, #scratch' > conftest.s
23979 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23981 (eval $ac_try) 2>&5
23983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23984 test $ac_status = 0; }; }
23986 gcc_cv_as_sparc_register_op
=yes
23988 echo "configure: failed program was" >&5
23991 rm -f conftest.o conftest.s
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23995 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23996 if test $gcc_cv_as_sparc_register_op = yes; then
23998 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24003 $as_echo_n "checking assembler for -relax option... " >&6; }
24004 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24005 $as_echo_n "(cached) " >&6
24007 gcc_cv_as_sparc_relax
=no
24008 if test x
$gcc_cv_as != x
; then
24009 $as_echo '.text' > conftest.s
24010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24017 gcc_cv_as_sparc_relax
=yes
24019 echo "configure: failed program was" >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24026 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24027 if test $gcc_cv_as_sparc_relax = yes; then
24029 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24034 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24035 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24036 $as_echo_n "(cached) " >&6
24038 gcc_cv_as_sparc_gotdata_op
=no
24039 if test x
$gcc_cv_as != x
; then
24045 sethi %gdop_hix22(foo), %g1
24046 xor %g1, %gdop_lox10(foo), %g1
24047 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24048 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24050 (eval $ac_try) 2>&5
24052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24053 test $ac_status = 0; }; }
24055 if test x
$gcc_cv_ld != x \
24056 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24057 if test x
$gcc_cv_objdump != x
; then
24058 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24059 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24060 gcc_cv_as_sparc_gotdata_op
=no
24062 gcc_cv_as_sparc_gotdata_op
=yes
24068 echo "configure: failed program was" >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24075 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24076 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24078 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24083 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24084 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24085 $as_echo_n "(cached) " >&6
24087 gcc_cv_as_sparc_ua_pcrel
=no
24088 if test x
$gcc_cv_as != x
; then
24095 .uaword %r_disp32(foo)' > conftest.s
24096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24098 (eval $ac_try) 2>&5
24100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101 test $ac_status = 0; }; }
24103 if test x
$gcc_cv_ld != x \
24104 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24105 gcc_cv_as_sparc_ua_pcrel
=yes
24109 echo "configure: failed program was" >&5
24112 rm -f conftest.o conftest.s
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24116 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24117 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24119 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24123 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24124 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24125 $as_echo_n "(cached) " >&6
24127 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24128 if test x
$gcc_cv_as != x
; then
24132 .uaword %r_disp32(foo)
24133 .byte 0x32, 0x33, 0x34
24137 .skip 4' > conftest.s
24138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24140 (eval $ac_try) 2>&5
24142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24143 test $ac_status = 0; }; }
24145 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24146 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24147 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24148 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24149 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24150 |
grep 'DISP32' > /dev
/null
2>&1; then
24153 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24158 echo "configure: failed program was" >&5
24161 rm -f conftest.o conftest.s
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24165 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24166 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24168 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24172 fi # unaligned pcrel relocs
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24175 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24176 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24177 $as_echo_n "(cached) " >&6
24179 gcc_cv_as_sparc_offsetable_lo10
=no
24180 if test x
$gcc_cv_as != x
; then
24182 or %g1, %lo(ab) + 12, %g1
24183 or %g1, %lo(ab + 12), %g1' > conftest.s
24184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24191 if test x
$gcc_cv_objdump != x \
24192 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24193 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24194 gcc_cv_as_sparc_offsetable_lo10
=yes
24197 echo "configure: failed program was" >&5
24200 rm -f conftest.o conftest.s
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24204 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24205 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24207 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24212 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24213 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24214 $as_echo_n "(cached) " >&6
24216 gcc_cv_as_sparc_fmaf
=no
24217 if test x
$gcc_cv_as != x
; then
24219 .register %g2, #scratch
24220 .register %g3, #scratch
24222 fmaddd %f0, %f2, %f4, %f6
24223 addxccc %g1, %g2, %g3
24224 fsrl32 %f2, %f4, %f8
24225 fnaddd %f10, %f12, %f14' > conftest.s
24226 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228 (eval $ac_try) 2>&5
24230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231 test $ac_status = 0; }; }
24233 gcc_cv_as_sparc_fmaf
=yes
24235 echo "configure: failed program was" >&5
24238 rm -f conftest.o conftest.s
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24242 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24243 if test $gcc_cv_as_sparc_fmaf = yes; then
24245 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24250 i
[34567]86-*-* | x86_64-
*-*)
24253 # Full C++ conformance when using a shared libstdc++-v3 requires some
24254 # support from the Cygwin DLL, which in more recent versions exports
24255 # wrappers to aid in interposing and redirecting operators new, delete,
24256 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24257 # are configuring for a version of Cygwin that exports the wrappers.
24258 if test x
$host = x
$target; then
24259 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24260 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24261 gcc_ac_cygwin_dll_wrappers
=yes
24263 gcc_ac_cygwin_dll_wrappers
=no
24267 # Can't check presence of libc functions during cross-compile, so
24268 # we just have to assume we're building for an up-to-date target.
24269 gcc_ac_cygwin_dll_wrappers
=yes
24272 cat >>confdefs.h
<<_ACEOF
24273 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24278 cygwin
* | pe | mingw32
*)
24279 # Recent binutils allows the three-operand form of ".comm" on PE. This
24280 # definition is used unconditionally to initialise the default state of
24281 # the target option variable that governs usage of the feature.
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24283 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24284 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24287 gcc_cv_as_comm_has_align
=no
24288 if test $in_tree_gas = yes; then
24289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24290 then gcc_cv_as_comm_has_align
=yes
24292 elif test x
$gcc_cv_as != x
; then
24293 $as_echo '.comm foo,1,32' > conftest.s
24294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24296 (eval $ac_try) 2>&5
24298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299 test $ac_status = 0; }; }
24301 gcc_cv_as_comm_has_align
=yes
24303 echo "configure: failed program was" >&5
24306 rm -f conftest.o conftest.s
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24310 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24313 cat >>confdefs.h
<<_ACEOF
24314 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24317 # Used for DWARF 2 in PE
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24319 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24320 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24321 $as_echo_n "(cached) " >&6
24323 gcc_cv_as_ix86_pe_secrel32
=no
24324 if test $in_tree_gas = yes; then
24325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24326 then gcc_cv_as_ix86_pe_secrel32
=yes
24328 elif test x
$gcc_cv_as != x
; then
24332 .secrel32 foo' > conftest.s
24333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335 (eval $ac_try) 2>&5
24337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338 test $ac_status = 0; }; }
24340 if test x
$gcc_cv_ld != x \
24341 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24342 gcc_cv_as_ix86_pe_secrel32
=yes
24346 echo "configure: failed program was" >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24353 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24354 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24356 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24359 # Test if the assembler supports the extended form of the .section
24360 # directive that specifies section alignment. LTO support uses this,
24361 # but normally only after installation, so we warn but don't fail the
24362 # configure if LTO is enabled but the assembler does not support it.
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24364 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24365 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24366 $as_echo_n "(cached) " >&6
24368 gcc_cv_as_section_has_align
=no
24369 if test $in_tree_gas = yes; then
24370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24371 then gcc_cv_as_section_has_align
=yes
24373 elif test x
$gcc_cv_as != x
; then
24374 $as_echo '.section lto_test,"dr0"' > conftest.s
24375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24377 (eval $ac_try) 2>&5
24379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24380 test $ac_status = 0; }; }
24382 gcc_cv_as_section_has_align
=yes
24384 echo "configure: failed program was" >&5
24387 rm -f conftest.o conftest.s
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24391 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24393 if test x
$gcc_cv_as_section_has_align != xyes
; then
24394 case ",$enable_languages," in
24396 { $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
24397 $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;}
24401 # Test if the assembler supports the section flag 'e' for specifying
24402 # an excluded section.
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24404 $as_echo_n "checking assembler for .section with e... " >&6; }
24405 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24406 $as_echo_n "(cached) " >&6
24408 gcc_cv_as_section_has_e
=no
24409 if test $in_tree_gas = yes; then
24410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24411 then gcc_cv_as_section_has_e
=yes
24413 elif test x
$gcc_cv_as != x
; then
24414 $as_echo '.section foo1,"e"
24415 .byte 0,0,0,0' > conftest.s
24416 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418 (eval $ac_try) 2>&5
24420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421 test $ac_status = 0; }; }
24423 gcc_cv_as_section_has_e
=yes
24425 echo "configure: failed program was" >&5
24428 rm -f conftest.o conftest.s
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24432 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24435 cat >>confdefs.h
<<_ACEOF
24436 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24443 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24444 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24445 $as_echo_n "(cached) " >&6
24447 gcc_cv_as_ix86_filds
=no
24448 if test x
$gcc_cv_as != x
; then
24449 $as_echo 'filds mem; fists mem' > conftest.s
24450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452 (eval $ac_try) 2>&5
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }; }
24457 gcc_cv_as_ix86_filds
=yes
24459 echo "configure: failed program was" >&5
24462 rm -f conftest.o conftest.s
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24466 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24467 if test $gcc_cv_as_ix86_filds = yes; then
24469 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24474 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24475 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24478 gcc_cv_as_ix86_fildq
=no
24479 if test x
$gcc_cv_as != x
; then
24480 $as_echo 'fildq mem; fistpq mem' > conftest.s
24481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24483 (eval $ac_try) 2>&5
24485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24486 test $ac_status = 0; }; }
24488 gcc_cv_as_ix86_fildq
=yes
24490 echo "configure: failed program was" >&5
24493 rm -f conftest.o conftest.s
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24497 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24498 if test $gcc_cv_as_ix86_fildq = yes; then
24500 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24505 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24506 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24507 $as_echo_n "(cached) " >&6
24509 gcc_cv_as_ix86_cmov_sun_syntax
=no
24510 if test x
$gcc_cv_as != x
; then
24511 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24519 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24521 echo "configure: failed program was" >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24528 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24529 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24531 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24536 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24537 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24540 gcc_cv_as_ix86_ffreep
=no
24541 if test x
$gcc_cv_as != x
; then
24542 $as_echo 'ffreep %st(1)' > conftest.s
24543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24545 (eval $ac_try) 2>&5
24547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24548 test $ac_status = 0; }; }
24550 gcc_cv_as_ix86_ffreep
=yes
24552 echo "configure: failed program was" >&5
24555 rm -f conftest.o conftest.s
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24559 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24560 if test $gcc_cv_as_ix86_ffreep = yes; then
24562 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24567 $as_echo_n "checking assembler for .quad directive... " >&6; }
24568 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24569 $as_echo_n "(cached) " >&6
24571 gcc_cv_as_ix86_quad
=no
24572 if test x
$gcc_cv_as != x
; then
24573 $as_echo '.quad 0' > conftest.s
24574 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; }
24581 gcc_cv_as_ix86_quad
=yes
24583 echo "configure: failed program was" >&5
24586 rm -f conftest.o conftest.s
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24590 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24591 if test $gcc_cv_as_ix86_quad = yes; then
24593 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24598 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24599 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24602 gcc_cv_as_ix86_sahf
=no
24603 if test x
$gcc_cv_as != x
; then
24606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24613 gcc_cv_as_ix86_sahf
=yes
24615 echo "configure: failed program was" >&5
24618 rm -f conftest.o conftest.s
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24622 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24623 if test $gcc_cv_as_ix86_sahf = yes; then
24625 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24630 $as_echo_n "checking assembler for swap suffix... " >&6; }
24631 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24632 $as_echo_n "(cached) " >&6
24634 gcc_cv_as_ix86_swap
=no
24635 if test x
$gcc_cv_as != x
; then
24636 $as_echo 'movl.s %esp, %ebp' > conftest.s
24637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639 (eval $ac_try) 2>&5
24641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642 test $ac_status = 0; }; }
24644 gcc_cv_as_ix86_swap
=yes
24646 echo "configure: failed program was" >&5
24649 rm -f conftest.o conftest.s
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24653 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24654 if test $gcc_cv_as_ix86_swap = yes; then
24656 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24661 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24662 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24663 $as_echo_n "(cached) " >&6
24665 gcc_cv_as_ix86_diff_sect_delta
=no
24666 if test x
$gcc_cv_as != x
; then
24667 $as_echo '.section .rodata
24673 .L2: nop' > conftest.s
24674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24676 (eval $ac_try) 2>&5
24678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24679 test $ac_status = 0; }; }
24681 gcc_cv_as_ix86_diff_sect_delta
=yes
24683 echo "configure: failed program was" >&5
24686 rm -f conftest.o conftest.s
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24690 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24691 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24693 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24697 # These two are used unconditionally by i386.[ch]; it is to be defined
24698 # to 1 if the feature is present, 0 otherwise.
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24700 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24701 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24702 $as_echo_n "(cached) " >&6
24704 gcc_cv_as_ix86_gotoff_in_data
=no
24705 if test $in_tree_gas = yes; then
24706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24707 then gcc_cv_as_ix86_gotoff_in_data
=yes
24709 elif test x
$gcc_cv_as != x
; then
24714 .long .L0@GOTOFF' > conftest.s
24715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24717 (eval $ac_try) 2>&5
24719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24720 test $ac_status = 0; }; }
24722 gcc_cv_as_ix86_gotoff_in_data
=yes
24724 echo "configure: failed program was" >&5
24727 rm -f conftest.o conftest.s
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24731 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24734 cat >>confdefs.h
<<_ACEOF
24735 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24740 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24741 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24744 gcc_cv_as_ix86_rep_lock_prefix
=no
24745 if test x
$gcc_cv_as != x
; then
24746 $as_echo 'rep movsl
24747 lock addl %edi, (%eax,%esi)
24748 lock orl $0, (%esp)' > conftest.s
24749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24751 (eval $ac_try) 2>&5
24753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24754 test $ac_status = 0; }; }
24756 gcc_cv_as_ix86_rep_lock_prefix
=yes
24758 echo "configure: failed program was" >&5
24761 rm -f conftest.o conftest.s
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24765 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24766 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24768 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24773 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24774 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24775 $as_echo_n "(cached) " >&6
24777 gcc_cv_as_ix86_tlsgdplt
=no
24778 if test x
$gcc_cv_as != x
; then
24779 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24780 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782 (eval $ac_try) 2>&5
24784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785 test $ac_status = 0; }; }
24787 gcc_cv_as_ix86_tlsgdplt
=yes
24789 echo "configure: failed program was" >&5
24792 rm -f conftest.o conftest.s
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24796 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24797 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24799 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24804 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24805 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24806 $as_echo_n "(cached) " >&6
24808 gcc_cv_as_ix86_tlsldmplt
=no
24809 if test x
$gcc_cv_as != x
; then
24810 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24813 (eval $ac_try) 2>&5
24815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24816 test $ac_status = 0; }; }
24818 gcc_cv_as_ix86_tlsldmplt
=yes
24820 echo "configure: failed program was" >&5
24823 rm -f conftest.o conftest.s
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24827 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24828 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24830 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24838 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24839 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24840 $as_echo_n "(cached) " >&6
24842 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24843 if test $in_tree_gas = yes; then
24844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24845 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24847 elif test x
$gcc_cv_as != x
; then
24849 addl r15 = @ltoffx(x#), gp
24851 ld8.mov r16 = [r15], x#' > conftest.s
24852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24859 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24861 echo "configure: failed program was" >&5
24864 rm -f conftest.o conftest.s
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24868 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24869 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24871 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24879 *-*-aix*) conftest_s
=' .machine "pwr5"
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24884 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24885 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
24888 gcc_cv_as_machine_directive
=no
24889 if test x
$gcc_cv_as != x
; then
24890 $as_echo ' .machine ppc7400' > conftest.s
24891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24893 (eval $ac_try) 2>&5
24895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896 test $ac_status = 0; }; }
24898 gcc_cv_as_machine_directive
=yes
24900 echo "configure: failed program was" >&5
24903 rm -f conftest.o conftest.s
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24907 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24909 if test x
$gcc_cv_as_machine_directive != xyes
; then
24910 echo "*** This target requires an assembler supporting \".machine\"" >&2
24911 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24912 test x
$build = x
$target && exit 1
24916 *) conftest_s
=' .machine power4
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24922 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24923 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24926 gcc_cv_as_powerpc_mfcrf
=no
24927 if test $in_tree_gas = yes; then
24928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24929 then gcc_cv_as_powerpc_mfcrf
=yes
24931 elif test x
$gcc_cv_as != x
; then
24932 $as_echo "$conftest_s" > conftest.s
24933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935 (eval $ac_try) 2>&5
24937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938 test $ac_status = 0; }; }
24940 gcc_cv_as_powerpc_mfcrf
=yes
24942 echo "configure: failed program was" >&5
24945 rm -f conftest.o conftest.s
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24949 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24950 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24952 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24957 *-*-aix*) conftest_s
=' .machine "pwr5"
24960 *) conftest_s
=' .machine power5
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24966 $as_echo_n "checking assembler for popcntb support... " >&6; }
24967 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24970 gcc_cv_as_powerpc_popcntb
=no
24971 if test $in_tree_gas = yes; then
24972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24973 then gcc_cv_as_powerpc_popcntb
=yes
24975 elif test x
$gcc_cv_as != x
; then
24976 $as_echo "$conftest_s" > conftest.s
24977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24979 (eval $ac_try) 2>&5
24981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24982 test $ac_status = 0; }; }
24984 gcc_cv_as_powerpc_popcntb
=yes
24986 echo "configure: failed program was" >&5
24989 rm -f conftest.o conftest.s
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24993 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24994 if test $gcc_cv_as_powerpc_popcntb = yes; then
24996 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25001 *-*-aix*) conftest_s
=' .machine "pwr5x"
25004 *) conftest_s
=' .machine power5
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25010 $as_echo_n "checking assembler for fp round support... " >&6; }
25011 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25012 $as_echo_n "(cached) " >&6
25014 gcc_cv_as_powerpc_fprnd
=no
25015 if test $in_tree_gas = yes; then
25016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25017 then gcc_cv_as_powerpc_fprnd
=yes
25019 elif test x
$gcc_cv_as != x
; then
25020 $as_echo "$conftest_s" > conftest.s
25021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25023 (eval $ac_try) 2>&5
25025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25026 test $ac_status = 0; }; }
25028 gcc_cv_as_powerpc_fprnd
=yes
25030 echo "configure: failed program was" >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25037 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25038 if test $gcc_cv_as_powerpc_fprnd = yes; then
25040 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25045 *-*-aix*) conftest_s
=' .machine "pwr6"
25048 *) conftest_s
=' .machine power6
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25054 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25055 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25058 gcc_cv_as_powerpc_mfpgpr
=no
25059 if test $in_tree_gas = yes; then
25060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25061 then gcc_cv_as_powerpc_mfpgpr
=yes
25063 elif test x
$gcc_cv_as != x
; then
25064 $as_echo "$conftest_s" > conftest.s
25065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25067 (eval $ac_try) 2>&5
25069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25070 test $ac_status = 0; }; }
25072 gcc_cv_as_powerpc_mfpgpr
=yes
25074 echo "configure: failed program was" >&5
25077 rm -f conftest.o conftest.s
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25081 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25082 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25084 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25089 *-*-aix*) conftest_s
=' .csect .text[PR]
25091 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25095 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25096 *) conftest_s
=' .text
25098 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25102 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25103 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25106 gcc_cv_as_powerpc_rel16
=no
25107 if test $in_tree_gas = yes; then
25108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25109 then gcc_cv_as_powerpc_rel16
=yes
25111 elif test x
$gcc_cv_as != x
; then
25112 $as_echo "$conftest_s" > conftest.s
25113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25115 (eval $ac_try) 2>&5
25117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25118 test $ac_status = 0; }; }
25120 gcc_cv_as_powerpc_rel16
=yes
25122 echo "configure: failed program was" >&5
25125 rm -f conftest.o conftest.s
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25129 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25130 if test $gcc_cv_as_powerpc_rel16 = yes; then
25132 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25137 *-*-aix*) conftest_s
=' .machine "pwr6"
25140 *) conftest_s
=' .machine power6
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25146 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25147 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25148 $as_echo_n "(cached) " >&6
25150 gcc_cv_as_powerpc_cmpb
=no
25151 if test $in_tree_gas = yes; then
25152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25153 then gcc_cv_as_powerpc_cmpb
=yes
25155 elif test x
$gcc_cv_as != x
; then
25156 $as_echo "$conftest_s" > conftest.s
25157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25159 (eval $ac_try) 2>&5
25161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162 test $ac_status = 0; }; }
25164 gcc_cv_as_powerpc_cmpb
=yes
25166 echo "configure: failed program was" >&5
25169 rm -f conftest.o conftest.s
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25173 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25174 if test $gcc_cv_as_powerpc_cmpb = yes; then
25176 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25181 *-*-aix*) conftest_s
=' .machine "pwr6"
25184 *) conftest_s
=' .machine power6
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25190 $as_echo_n "checking assembler for decimal float support... " >&6; }
25191 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25192 $as_echo_n "(cached) " >&6
25194 gcc_cv_as_powerpc_dfp
=no
25195 if test $in_tree_gas = yes; then
25196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25197 then gcc_cv_as_powerpc_dfp
=yes
25199 elif test x
$gcc_cv_as != x
; then
25200 $as_echo "$conftest_s" > conftest.s
25201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203 (eval $ac_try) 2>&5
25205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206 test $ac_status = 0; }; }
25208 gcc_cv_as_powerpc_dfp
=yes
25210 echo "configure: failed program was" >&5
25213 rm -f conftest.o conftest.s
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25217 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25218 if test $gcc_cv_as_powerpc_dfp = yes; then
25220 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25225 *-*-aix*) conftest_s
=' .machine "pwr7"
25228 *) conftest_s
=' .machine power7
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25234 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25235 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25238 gcc_cv_as_powerpc_vsx
=no
25239 if test $in_tree_gas = yes; then
25240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25241 then gcc_cv_as_powerpc_vsx
=yes
25243 elif test x
$gcc_cv_as != x
; then
25244 $as_echo "$conftest_s" > conftest.s
25245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25252 gcc_cv_as_powerpc_vsx
=yes
25254 echo "configure: failed program was" >&5
25257 rm -f conftest.o conftest.s
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25261 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25262 if test $gcc_cv_as_powerpc_vsx = yes; then
25264 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25269 *-*-aix*) conftest_s
=' .machine "pwr7"
25272 *) conftest_s
=' .machine power7
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25278 $as_echo_n "checking assembler for popcntd support... " >&6; }
25279 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25280 $as_echo_n "(cached) " >&6
25282 gcc_cv_as_powerpc_popcntd
=no
25283 if test $in_tree_gas = yes; then
25284 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25285 then gcc_cv_as_powerpc_popcntd
=yes
25287 elif test x
$gcc_cv_as != x
; then
25288 $as_echo "$conftest_s" > conftest.s
25289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25296 gcc_cv_as_powerpc_popcntd
=yes
25298 echo "configure: failed program was" >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25305 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25306 if test $gcc_cv_as_powerpc_popcntd = yes; then
25308 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25313 *-*-aix*) conftest_s
=' .csect .text[PR]
25315 *) conftest_s
=' .text
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25320 $as_echo_n "checking assembler for lwsync support... " >&6; }
25321 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25322 $as_echo_n "(cached) " >&6
25324 gcc_cv_as_powerpc_lwsync
=no
25325 if test $in_tree_gas = yes; then
25326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25327 then gcc_cv_as_powerpc_lwsync
=yes
25329 elif test x
$gcc_cv_as != x
; then
25330 $as_echo "$conftest_s" > conftest.s
25331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; }
25338 gcc_cv_as_powerpc_lwsync
=yes
25340 echo "configure: failed program was" >&5
25343 rm -f conftest.o conftest.s
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25347 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25348 if test $gcc_cv_as_powerpc_lwsync = yes; then
25350 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25355 *-*-aix*) conftest_s
=' .machine "476"
25358 *) conftest_s
=' .machine "476"
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25364 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25365 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25366 $as_echo_n "(cached) " >&6
25368 gcc_cv_as_powerpc_dci
=no
25369 if test $in_tree_gas = yes; then
25370 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25371 then gcc_cv_as_powerpc_dci
=yes
25373 elif test x
$gcc_cv_as != x
; then
25374 $as_echo "$conftest_s" > conftest.s
25375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25377 (eval $ac_try) 2>&5
25379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25380 test $ac_status = 0; }; }
25382 gcc_cv_as_powerpc_dci
=yes
25384 echo "configure: failed program was" >&5
25387 rm -f conftest.o conftest.s
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25391 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25392 if test $gcc_cv_as_powerpc_dci = yes; then
25394 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25399 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25400 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25401 $as_echo_n "(cached) " >&6
25403 gcc_cv_as_powerpc_gnu_attribute
=no
25404 if test $in_tree_gas = yes; then
25405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25406 then gcc_cv_as_powerpc_gnu_attribute
=yes
25408 elif test x
$gcc_cv_as != x
; then
25409 $as_echo '.gnu_attribute 4,1' > conftest.s
25410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25412 (eval $ac_try) 2>&5
25414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25415 test $ac_status = 0; }; }
25417 gcc_cv_as_powerpc_gnu_attribute
=yes
25419 echo "configure: failed program was" >&5
25422 rm -f conftest.o conftest.s
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25426 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25427 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25429 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25434 $as_echo_n "checking assembler for tls marker support... " >&6; }
25435 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
25438 gcc_cv_as_powerpc_tls_markers
=no
25439 if test $in_tree_gas = yes; then
25440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25441 then gcc_cv_as_powerpc_tls_markers
=yes
25443 elif test x
$gcc_cv_as != x
; then
25444 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25445 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25452 gcc_cv_as_powerpc_tls_markers
=yes
25454 echo "configure: failed program was" >&5
25457 rm -f conftest.o conftest.s
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25461 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25462 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25464 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25471 $as_echo_n "checking assembler for .ref support... " >&6; }
25472 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25473 $as_echo_n "(cached) " >&6
25475 gcc_cv_as_aix_ref
=no
25476 if test $in_tree_gas = yes; then
25477 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25480 elif test x
$gcc_cv_as != x
; then
25481 $as_echo ' .csect stuff[rw]
25487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25494 gcc_cv_as_aix_ref
=yes
25496 echo "configure: failed program was" >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25503 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25504 if test $gcc_cv_as_aix_ref = yes; then
25506 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25515 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25516 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25519 gcc_cv_as_mips_explicit_relocs
=no
25520 if test $in_tree_gas = yes; then
25521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25522 then gcc_cv_as_mips_explicit_relocs
=yes
25524 elif test x
$gcc_cv_as != x
; then
25525 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25533 gcc_cv_as_mips_explicit_relocs
=yes
25535 echo "configure: failed program was" >&5
25538 rm -f conftest.o conftest.s
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25542 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25543 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25544 if test x
$target_cpu_default = x
25545 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25546 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25550 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25551 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25554 gcc_cv_as_mips_no_shared
=no
25555 if test $in_tree_gas = yes; then
25556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25557 then gcc_cv_as_mips_no_shared
=yes
25559 elif test x
$gcc_cv_as != x
; then
25560 $as_echo 'nop' > conftest.s
25561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25568 gcc_cv_as_mips_no_shared
=yes
25570 echo "configure: failed program was" >&5
25573 rm -f conftest.o conftest.s
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25577 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25578 if test $gcc_cv_as_mips_no_shared = yes; then
25580 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25585 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25586 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25587 $as_echo_n "(cached) " >&6
25589 gcc_cv_as_mips_gnu_attribute
=no
25590 if test $in_tree_gas = yes; then
25591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25592 then gcc_cv_as_mips_gnu_attribute
=yes
25594 elif test x
$gcc_cv_as != x
; then
25595 $as_echo '.gnu_attribute 4,1' > conftest.s
25596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598 (eval $ac_try) 2>&5
25600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601 test $ac_status = 0; }; }
25603 gcc_cv_as_mips_gnu_attribute
=yes
25605 echo "configure: failed program was" >&5
25608 rm -f conftest.o conftest.s
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25612 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25613 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25615 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25620 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25621 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25622 $as_echo_n "(cached) " >&6
25624 gcc_cv_as_mips_dtprelword
=no
25625 if test $in_tree_gas = yes; then
25626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25627 then gcc_cv_as_mips_dtprelword
=yes
25629 elif test x
$gcc_cv_as != x
; then
25630 $as_echo '.section .tdata,"awT",@progbits
25634 .dtprelword x+0x8000' > conftest.s
25635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25637 (eval $ac_try) 2>&5
25639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640 test $ac_status = 0; }; }
25642 gcc_cv_as_mips_dtprelword
=yes
25644 echo "configure: failed program was" >&5
25647 rm -f conftest.o conftest.s
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25651 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25652 if test $gcc_cv_as_mips_dtprelword = yes; then
25654 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25659 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25660 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25661 $as_echo_n "(cached) " >&6
25663 gcc_cv_as_mips_dspr1_mult
=no
25664 if test x
$gcc_cv_as != x
; then
25665 $as_echo ' .set mips32r2
25673 multu $ac3,$4,$5' > conftest.s
25674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25676 (eval $ac_try) 2>&5
25678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25679 test $ac_status = 0; }; }
25681 gcc_cv_as_mips_dspr1_mult
=yes
25683 echo "configure: failed program was" >&5
25686 rm -f conftest.o conftest.s
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25690 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25691 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25693 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25698 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25699 gcc_cv_as_ld_jalr_reloc
=no
25700 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25701 if test $in_tree_ld = yes ; then
25702 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 \
25703 && test $in_tree_ld_is_elf = yes; then
25704 gcc_cv_as_ld_jalr_reloc
=yes
25706 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25707 echo ' .ent x' > conftest.s
25708 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25709 echo ' ld $25,%call16(y)($28)' >> conftest.s
25710 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25711 echo '1: jalr $25' >> conftest.s
25712 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25713 echo '1: jalr $25' >> conftest.s
25714 echo ' .end x' >> conftest.s
25715 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25716 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25717 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25718 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25719 gcc_cv_as_ld_jalr_reloc
=yes
25725 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25726 if test x
$target_cpu_default = x
; then
25727 target_cpu_default
=MASK_RELAX_PIC_CALLS
25729 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25733 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25736 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25737 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25740 gcc_cv_ld_mips_personality_relaxation
=no
25741 if test $in_tree_ld = yes ; then
25742 if test "$gcc_cv_gld_major_version" -eq 2 \
25743 -a "$gcc_cv_gld_minor_version" -ge 21 \
25744 -o "$gcc_cv_gld_major_version" -gt 2; then
25745 gcc_cv_ld_mips_personality_relaxation
=yes
25747 elif test x
$gcc_cv_as != x \
25748 -a x
$gcc_cv_ld != x \
25749 -a x
$gcc_cv_readelf != x
; then
25750 cat > conftest.s
<<EOF
25752 .cfi_personality 0x80,indirect_ptr
25759 .section .data,"aw",@progbits
25763 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25764 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25765 if $gcc_cv_readelf -d conftest
2>&1 \
25766 |
grep TEXTREL
> /dev
/null
2>&1; then
25768 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25769 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25772 gcc_cv_ld_mips_personality_relaxation
=yes
25776 rm -f conftest.s conftest.o conftest
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25779 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25780 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25782 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25788 # Mips and HP-UX need the GNU assembler.
25789 # Linux on IA64 might be able to use the Intel assembler.
25792 mips
*-*-* |
*-*-hpux* )
25793 if test x
$gas_flag = xyes \
25794 ||
test x
"$host" != x
"$build" \
25795 ||
test ! -x "$gcc_cv_as" \
25796 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25799 echo "*** This configuration requires the GNU assembler" >&2
25805 # ??? Not all targets support dwarf2 debug_line, even within a version
25806 # of gas. Moreover, we need to emit a valid instruction to trigger any
25807 # info to the output file. So, as supported targets are added to gas 2.11,
25808 # add some instruction here to (also) show we expect this might work.
25809 # ??? Once 2.11 is released, probably need to add first known working
25810 # version to the per-target configury.
25811 case "$cpu_type" in
25812 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25813 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25823 if test x
"$insn" != x
; then
25825 .file 1 \"conftest.s\"
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25829 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25830 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25831 $as_echo_n "(cached) " >&6
25833 gcc_cv_as_dwarf2_debug_line
=no
25834 if test $in_tree_gas = yes; then
25835 if test $in_tree_gas_is_elf = yes \
25836 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25837 then gcc_cv_as_dwarf2_debug_line
=yes
25839 elif test x
$gcc_cv_as != x
; then
25840 $as_echo "$conftest_s" > conftest.s
25841 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25843 (eval $ac_try) 2>&5
25845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25846 test $ac_status = 0; }; }
25848 if test x
$gcc_cv_objdump != x \
25849 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25850 |
grep debug_line
> /dev
/null
2>&1; then
25851 gcc_cv_as_dwarf2_debug_line
=yes
25854 echo "configure: failed program was" >&5
25857 rm -f conftest.o conftest.s
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25861 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25864 # The .debug_line file table must be in the exact order that
25865 # we specified the files, since these indices are also used
25866 # by DW_AT_decl_file. Approximate this test by testing if
25867 # the assembler bitches if the same index is assigned twice.
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25869 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25870 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25873 gcc_cv_as_dwarf2_file_buggy
=no
25874 if test x
$gcc_cv_as != x
; then
25875 $as_echo ' .file 1 "foo.s"
25876 .file 1 "bar.s"' > conftest.s
25877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25879 (eval $ac_try) 2>&5
25881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25882 test $ac_status = 0; }; }
25884 gcc_cv_as_dwarf2_file_buggy
=yes
25886 echo "configure: failed program was" >&5
25889 rm -f conftest.o conftest.s
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25893 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25896 if test $gcc_cv_as_dwarf2_debug_line = yes \
25897 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25899 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25904 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25905 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25906 $as_echo_n "(cached) " >&6
25908 gcc_cv_as_gdwarf2_flag
=no
25909 if test $in_tree_gas = yes; then
25910 if test $in_tree_gas_is_elf = yes \
25911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25912 then gcc_cv_as_gdwarf2_flag
=yes
25914 elif test x
$gcc_cv_as != x
; then
25915 $as_echo "$insn" > conftest.s
25916 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }
25923 gcc_cv_as_gdwarf2_flag
=yes
25925 echo "configure: failed program was" >&5
25928 rm -f conftest.o conftest.s
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25932 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25933 if test $gcc_cv_as_gdwarf2_flag = yes; then
25935 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25940 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25941 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25942 $as_echo_n "(cached) " >&6
25944 gcc_cv_as_gstabs_flag
=no
25945 if test $in_tree_gas = yes; then
25946 if test $in_tree_gas_is_elf = yes \
25947 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25948 then gcc_cv_as_gstabs_flag
=yes
25950 elif test x
$gcc_cv_as != x
; then
25951 $as_echo "$insn" > conftest.s
25952 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25954 (eval $ac_try) 2>&5
25956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957 test $ac_status = 0; }; }
25959 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25960 # and warns about it, but still exits successfully. So check for
25962 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25964 (eval $ac_try) 2>&5
25966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967 test $ac_status = 0; }; }
25969 else gcc_cv_as_gstabs_flag
=yes
25972 echo "configure: failed program was" >&5
25975 rm -f conftest.o conftest.s
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25979 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25980 if test $gcc_cv_as_gstabs_flag = yes; then
25982 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25987 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25988 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25989 $as_echo_n "(cached) " >&6
25991 gcc_cv_as_debug_prefix_map_flag
=no
25992 if test $in_tree_gas = yes; then
25993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25994 then gcc_cv_as_debug_prefix_map_flag
=yes
25996 elif test x
$gcc_cv_as != x
; then
25997 $as_echo "$insn" > conftest.s
25998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26005 gcc_cv_as_debug_prefix_map_flag
=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26014 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26015 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26017 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26023 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26024 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
26027 gcc_cv_as_lcomm_with_alignment
=no
26028 if test x
$gcc_cv_as != x
; then
26029 $as_echo '.lcomm bar,4,16' > conftest.s
26030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26032 (eval $ac_try) 2>&5
26034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26035 test $ac_status = 0; }; }
26037 gcc_cv_as_lcomm_with_alignment
=yes
26039 echo "configure: failed program was" >&5
26042 rm -f conftest.o conftest.s
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26046 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26047 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26049 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26053 # Check whether --enable-gnu-unique-object was given.
26054 if test "${enable_gnu_unique_object+set}" = set; then :
26055 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26057 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26058 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26062 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26063 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26064 $as_echo_n "(cached) " >&6
26066 gcc_cv_as_gnu_unique_object
=no
26067 if test $in_tree_gas = yes; then
26068 if test $in_tree_gas_is_elf = yes \
26069 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26070 then gcc_cv_as_gnu_unique_object
=yes
26072 elif test x
$gcc_cv_as != x
; then
26073 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26076 (eval $ac_try) 2>&5
26078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079 test $ac_status = 0; }; }
26081 gcc_cv_as_gnu_unique_object
=yes
26083 echo "configure: failed program was" >&5
26086 rm -f conftest.o conftest.s
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26090 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26091 if test $gcc_cv_as_gnu_unique_object = yes; then
26092 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26093 if test x
$host = x
$build -a x
$host = x
$target &&
26094 ldd
--version 2>/dev
/null
&&
26095 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26096 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26097 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26098 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26099 if test "$glibcnum" -ge 2011 ; then
26100 enable_gnu_unique_object
=yes
26106 if test x
$enable_gnu_unique_object = xyes
; then
26108 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26113 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26114 if test "${gcc_cv_as_line_zero+set}" = set; then :
26115 $as_echo_n "(cached) " >&6
26117 gcc_cv_as_line_zero
=no
26118 if test $in_tree_gas = yes; then
26119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26120 then gcc_cv_as_line_zero
=yes
26122 elif test "x$gcc_cv_as" != x
; then
26123 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26124 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26126 (eval $ac_try) 2>&5
26128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26129 test $ac_status = 0; }; } &&
26130 test "x`cat conftest.out`" = x
26132 gcc_cv_as_line_zero
=yes
26134 echo "configure: failed program was" >&5
26136 echo "configure: error output was" >&5
26137 cat conftest.out
>&5
26139 rm -f conftest.o conftest.s conftest.out
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26143 $as_echo "$gcc_cv_as_line_zero" >&6; }
26144 if test "x$gcc_cv_as_line_zero" = xyes
; then
26146 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26151 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26152 gcc_cv_ld_eh_frame_hdr
=no
26153 if test $in_tree_ld = yes ; then
26154 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 \
26155 && test $in_tree_ld_is_elf = yes; then
26156 gcc_cv_ld_eh_frame_hdr
=yes
26158 elif test x
$gcc_cv_ld != x
; then
26159 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26160 # Check if linker supports --eh-frame-hdr option
26161 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26162 gcc_cv_ld_eh_frame_hdr
=yes
26167 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26168 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26169 gcc_cv_ld_eh_frame_hdr
=yes
26176 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26178 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26182 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26185 $as_echo_n "checking linker position independent executable support... " >&6; }
26187 if test $in_tree_ld = yes ; then
26188 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 \
26189 && test $in_tree_ld_is_elf = yes; then
26192 elif test x
$gcc_cv_ld != x
; then
26193 # Check if linker supports -pie option
26194 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26198 if test x
"$gcc_cv_ld_pie" = xyes
; then
26200 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26204 $as_echo "$gcc_cv_ld_pie" >&6; }
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26207 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26208 gcc_cv_ld_eh_gc_sections
=no
26209 if test $in_tree_ld = yes ; then
26210 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 \
26211 && test $in_tree_ld_is_elf = yes; then
26212 gcc_cv_ld_eh_gc_sections
=yes
26214 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26215 cat > conftest.s
<<EOF
26218 .type _start, @function
26221 .size _start, .-_start
26222 .section .text.foo,"ax",@progbits
26223 .type foo, @function
26227 .section .gcc_except_table.foo,"a",@progbits
26230 .section .eh_frame,"a",@progbits
26233 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26234 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26235 |
grep "gc-sections option ignored" > /dev
/null
; then
26236 gcc_cv_ld_eh_gc_sections
=no
26237 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26238 |
grep gcc_except_table
> /dev
/null
; then
26239 gcc_cv_ld_eh_gc_sections
=yes
26240 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26241 if test x
$gcc_cv_as_comdat_group != xyes
; then
26242 gcc_cv_ld_eh_gc_sections
=no
26243 cat > conftest.s
<<EOF
26246 .type _start, @function
26249 .size _start, .-_start
26250 .section .gnu.linkonce.t.foo,"ax",@progbits
26251 .type foo, @function
26255 .section .gcc_except_table.foo,"a",@progbits
26258 .section .eh_frame,"a",@progbits
26261 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26262 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26263 |
grep "gc-sections option ignored" > /dev
/null
; then
26264 gcc_cv_ld_eh_gc_sections
=no
26265 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26266 |
grep gcc_except_table
> /dev
/null
; then
26267 gcc_cv_ld_eh_gc_sections
=yes
26273 rm -f conftest.s conftest.o conftest
26277 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26278 gcc_cv_ld_eh_gc_sections
=no
26281 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26283 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26287 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26290 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26291 gcc_cv_ld_eh_gc_sections_bug
=no
26292 if test $in_tree_ld = yes ; then
26293 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 \
26294 && test $in_tree_ld_is_elf = yes; then
26295 gcc_cv_ld_eh_gc_sections_bug
=yes
26297 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
26298 gcc_cv_ld_eh_gc_sections_bug
=yes
26299 cat > conftest.s
<<EOF
26302 .type _start, @function
26305 .size _start, .-_start
26306 .section .text.startup.foo,"ax",@progbits
26307 .type foo, @function
26311 .section .gcc_except_table.foo,"a",@progbits
26314 .section .eh_frame,"a",@progbits
26317 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26318 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26319 |
grep "gc-sections option ignored" > /dev
/null
; then
26321 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26322 |
grep gcc_except_table
> /dev
/null
; then
26323 gcc_cv_ld_eh_gc_sections_bug
=no
26326 rm -f conftest.s conftest.o conftest
26328 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26330 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26334 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26341 $as_echo_n "checking linker --as-needed support... " >&6; }
26342 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26343 $as_echo_n "(cached) " >&6
26345 gcc_cv_ld_as_needed
=no
26346 if test $in_tree_ld = yes ; then
26347 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 \
26348 && test $in_tree_ld_is_elf = yes; then
26349 gcc_cv_ld_as_needed
=yes
26351 elif test x
$gcc_cv_ld != x
; then
26352 # Check if linker supports --as-needed and --no-as-needed options
26353 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26354 gcc_cv_ld_as_needed
=yes
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26360 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26361 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26363 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26367 case "$target:$tm_file" in
26368 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26370 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26371 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26372 $as_echo_n "(cached) " >&6
26374 gcc_cv_ld_no_dot_syms
=no
26375 if test $in_tree_ld = yes ; then
26376 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
26377 gcc_cv_ld_no_dot_syms
=yes
26379 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26380 cat > conftest1.s
<<EOF
26384 cat > conftest2.s
<<EOF
26385 .section ".opd","aw"
26388 .type foo,@function
26390 .quad .LEfoo,.TOC.@tocbase,0
26396 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26397 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26398 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26399 gcc_cv_ld_no_dot_syms
=yes
26401 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26406 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26407 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26409 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26414 $as_echo_n "checking linker large toc support... " >&6; }
26415 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26416 $as_echo_n "(cached) " >&6
26418 gcc_cv_ld_large_toc
=no
26419 if test $in_tree_ld = yes ; then
26420 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
26421 gcc_cv_ld_large_toc
=yes
26423 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26424 cat > conftest.s
<<EOF
26425 .section ".tbss","awT",@nobits
26431 addis 9,13,ie0@got@tprel@ha
26432 ld 9,ie0@got@tprel@l(9)
26434 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26435 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26436 gcc_cv_ld_large_toc
=yes
26438 rm -f conftest conftest.o conftest.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26443 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26444 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26446 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26453 $as_echo_n "checking linker --build-id support... " >&6; }
26454 if test "${gcc_cv_ld_buildid+set}" = set; then :
26455 $as_echo_n "(cached) " >&6
26457 gcc_cv_ld_buildid
=no
26458 if test $in_tree_ld = yes ; then
26459 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26460 "$gcc_cv_gld_minor_version" -ge 18 -o \
26461 "$gcc_cv_gld_major_version" -gt 2 \
26462 && test $in_tree_ld_is_elf = yes; then
26463 gcc_cv_ld_buildid
=yes
26465 elif test x
$gcc_cv_ld != x
; then
26466 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26467 gcc_cv_ld_buildid
=yes
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26472 $as_echo "$gcc_cv_ld_buildid" >&6; }
26473 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26475 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26479 # Check whether --enable-linker-build-id was given.
26480 if test "${enable_linker_build_id+set}" = set; then :
26481 enableval
=$enable_linker_build_id;
26483 enable_linker_build_id
=no
26487 if test x
"$enable_linker_build_id" = xyes
; then
26488 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26490 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26494 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26498 # In binutils 2.21, GNU ld gained support for new emulations fully
26499 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26501 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26502 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26503 $as_echo_n "(cached) " >&6
26505 gcc_cv_ld_sol2_emulation
=no
26506 if test $in_tree_ld = yes ; then
26507 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26508 "$gcc_cv_gld_minor_version" -ge 21 -o \
26509 "$gcc_cv_gld_major_version" -gt 2 \
26510 && test $in_tree_ld_is_elf = yes; then
26511 gcc_cv_ld_sol2_emulation
=yes
26513 elif test x
$gcc_cv_ld != x
; then
26514 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26515 grep _sol2
> /dev
/null
; then
26516 gcc_cv_ld_sol2_emulation
=yes
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26521 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26522 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26524 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26529 $as_echo_n "checking linker --sysroot support... " >&6; }
26530 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26531 $as_echo_n "(cached) " >&6
26533 gcc_cv_ld_sysroot
=no
26534 if test $in_tree_ld = yes ; then
26535 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
26536 gcc_cv_ld_sysroot
=yes
26538 elif test x
$gcc_cv_ld != x
; then
26539 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26540 gcc_cv_ld_sysroot
=yes
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26545 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26546 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26548 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26552 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26553 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26554 && test "$prefix" != "NONE"; then
26556 cat >>confdefs.h
<<_ACEOF
26557 #define PREFIX_INCLUDE_DIR "$prefix/include"
26562 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26563 if test "x$with_headers" != x
; then
26564 target_header_dir
=$with_headers
26565 elif test "x$with_sysroot" = x
; then
26566 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26567 elif test "x$with_build_sysroot" != "x"; then
26568 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26569 elif test "x$with_sysroot" = xyes
; then
26570 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26572 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26575 target_header_dir
=${native_system_header_dir}
26578 # Test for stack protector support in target C library.
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26580 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26581 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26582 $as_echo_n "(cached) " >&6
26584 gcc_cv_libc_provides_ssp
=no
26586 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26587 # glibc 2.4 and later provides __stack_chk_fail and
26588 # either __stack_chk_guard, or TLS access to stack guard canary.
26589 if test -f $target_header_dir/features.h \
26590 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26591 $target_header_dir/features.h
> /dev
/null
; then
26592 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26593 $target_header_dir/features.h
> /dev
/null
; then
26594 gcc_cv_libc_provides_ssp
=yes
26595 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26596 $target_header_dir/features.h
> /dev
/null \
26597 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26598 $target_header_dir/features.h
> /dev
/null
; then
26599 gcc_cv_libc_provides_ssp
=yes
26600 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26601 $target_header_dir/features.h
> /dev
/null
&& \
26602 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26603 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26604 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26605 gcc_cv_libc_provides_ssp
=yes
26610 # Avoid complicated tests (see
26611 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26612 # simply assert that glibc does provide this, which is true for all
26613 # realistically usable GNU/Hurd configurations.
26614 gcc_cv_libc_provides_ssp
=yes;;
26615 *-*-darwin* |
*-*-freebsd*)
26616 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26617 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26618 gcc_cv_libc_provides_ssp
=yes
26620 echo "no __stack_chk_fail on this target"
26624 *) gcc_cv_libc_provides_ssp
=no
;;
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26628 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26630 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26632 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26636 # Test for <sys/sdt.h> on the target.
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26639 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26641 if test -f $target_header_dir/sys
/sdt.h
; then
26644 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26648 $as_echo "$have_sys_sdt_h" >&6; }
26650 # Check if TFmode long double should be used by default or not.
26651 # Some glibc targets used DFmode long double, but with glibc 2.4
26652 # and later they can use TFmode.
26654 powerpc
*-*-linux* | \
26655 sparc
*-*-linux* | \
26659 # Check whether --with-long-double-128 was given.
26660 if test "${with_long_double_128+set}" = set; then :
26661 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26663 gcc_cv_target_ldbl128
=no
26664 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26665 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26666 && gcc_cv_target_ldbl128
=yes
26672 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26674 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26679 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26680 gcc_cv_target_dl_iterate_phdr
=unknown
26683 # <link.h> needs both a dl_iterate_phdr declaration and support for
26684 # compilation with largefile support.
26685 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26686 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26687 gcc_cv_target_dl_iterate_phdr
=yes
26689 gcc_cv_target_dl_iterate_phdr
=no
26694 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26696 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26700 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26702 # Find out what GC implementation we want, or may, use.
26704 # Check whether --with-gc was given.
26705 if test "${with_gc+set}" = set; then :
26706 withval
=$with_gc; case "$withval" in
26713 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26717 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26725 echo "Using $GGC for garbage collection."
26727 # Libraries to use on the host. This will normally be set by the top
26728 # level Makefile. Here we simply capture the value for our Makefile.
26729 if test -z "${HOST_LIBS+set}"; then
26734 # Use the system's zlib library.
26736 zlibinc
="-I\$(srcdir)/../zlib"
26738 # Check whether --with-system-zlib was given.
26739 if test "${with_system_zlib+set}" = set; then :
26740 withval
=$with_system_zlib; zlibdir
=
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26750 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26751 # Check whether --enable-maintainer-mode was given.
26752 if test "${enable_maintainer_mode+set}" = set; then :
26753 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26760 $as_echo "$maintainer_mode" >&6; }
26762 if test "$maintainer_mode" = "yes"; then
26772 # Make empty files to contain the specs and options for each language.
26773 # Then add #include lines to for a compiler that has specs and/or options.
26779 # These (without "all_") are set in each config-lang.in.
26780 # `language' must be a single word so is spelled singularly.
26783 all_outputs
='Makefile'
26784 # List of language makefile fragments.
26785 all_lang_makefrags
=
26786 # Additional files for gengtype
26787 all_gtfiles
="$target_gtfiles"
26789 # These are the languages that are set in --enable-languages,
26790 # and are available in the GCC tree.
26791 all_selected_languages
=
26793 # Add the language fragments.
26794 # Languages are added via two mechanisms. Some information must be
26795 # recorded in makefile variables, these are defined in config-lang.in.
26796 # We accumulate them and plug them into the main Makefile.
26797 # The other mechanism is a set of hooks for each of the main targets
26798 # like `clean', `install', etc.
26800 language_hooks
="Make-hooks"
26802 for lang
in ${srcdir}/*/config-lang.
in
26804 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26806 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26807 if test "x$lang_alias" = x
26809 echo "$lang doesn't set \$language." 1>&2
26812 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26813 subdirs
="$subdirs $subdir"
26815 # $gcc_subdir is where the gcc integration files are to be found
26816 # for a language, both for internal compiler purposes (compiler
26817 # sources implementing front-end to GCC tree converters), and for
26818 # build infrastructure purposes (Make-lang.in, etc.)
26820 # This will be <subdir> (relative to $srcdir) if a line like
26821 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26822 # is found in <langdir>/config-lang.in, and will remain <langdir>
26825 # Except for the language alias (fetched above), the regular
26826 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26827 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26828 # only this and the language alias.
26830 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26831 if [ "$gcc_subdir" = "" ]; then
26832 gcc_subdir
="$subdir"
26835 case ",$enable_languages," in
26837 all_selected_languages
="$all_selected_languages $lang_alias"
26838 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26839 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26850 .
${srcdir}/$gcc_subdir/config-lang.
in
26851 if test "x$language" = x
26853 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26858 case ",$enable_languages," in
26859 *,$lang_alias,*) ;;
26861 for i
in $subdir_requires; do
26862 test -f "${srcdir}/$i/config-lang.in" && continue
26870 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26871 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26872 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26873 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26875 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26876 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26878 all_languages
="$all_languages $language"
26879 all_compilers
="$all_compilers $compilers"
26880 all_outputs
="$all_outputs $outputs"
26881 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26882 case ",$enable_languages," in
26885 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26894 # Pick up gtfiles for c
26896 .
${srcdir}/c-config-lang.
in
26897 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26900 for language
in $all_selected_languages
26902 check_languages
="$check_languages check-$language"
26905 # We link each language in with a set of hooks, reached indirectly via
26906 # lang.${target}. Only do so for selected languages.
26910 target_list
="all.cross start.encap rest.encap tags \
26911 install-common install-man install-info install-pdf install-html dvi \
26912 pdf html uninstall info man srcextra srcman srcinfo \
26913 mostlyclean clean distclean maintainer-clean install-plugin"
26915 for t
in $target_list
26918 for lang
in $all_selected_languages
26922 echo "lang.$t: $x" >> Make-hooks
26926 # Option include files
26929 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26930 option_includes
="option-includes.mk"
26939 echo "dir ." > .gdbinit
26940 echo "dir ${srcdir}" >> .gdbinit
26941 if test x
$gdb_needs_out_file_path = xyes
26943 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26945 if test "x$subdirs" != x
; then
26948 echo "dir ${srcdir}/$s" >> .gdbinit
26951 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26953 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26957 # Find a directory in which to install a shared libgcc.
26959 # Check whether --enable-version-specific-runtime-libs was given.
26960 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26961 enableval
=$enable_version_specific_runtime_libs;
26965 # Substitute configuration variables
27029 if test x
${build} = x
${host} ; then
27030 if test x
${host} = x
${target} ; then
27031 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27033 echo "Links are now set up to build a cross-compiler" 1>&2
27034 echo " from ${host} to ${target}." 1>&2
27037 if test x
${host} = x
${target} ; then
27038 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27039 echo " for ${target}." 1>&2
27041 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27042 echo " from ${host} to ${target}." 1>&2
27054 if test "x${CLOOGLIBS}" != "x" ; then
27056 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27060 # Check for plugin support
27061 # Check whether --enable-plugin was given.
27062 if test "${enable_plugin+set}" = set; then :
27063 enableval
=$enable_plugin; enable_plugin
=$enableval
27065 enable_plugin
=yes; default_plugin
=yes
27073 if test x
$build = x
$host; then
27074 export_sym_check
="nm${exeext} -g"
27075 elif test x
$host = x
$target; then
27076 export_sym_check
="$gcc_cv_nm -g"
27082 if test x
$build = x
$host; then
27083 export_sym_check
="objdump${exeext} -T"
27084 elif test x
$host = x
$target; then
27085 export_sym_check
="$gcc_cv_objdump -T"
27092 if test x
"$enable_plugin" = x
"yes"; then
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27095 $as_echo_n "checking for exported symbols... " >&6; }
27096 if test "x$export_sym_check" != x
; then
27097 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27098 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27099 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27100 : # No need to use a flag
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27102 $as_echo "yes" >&6; }
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27105 $as_echo "yes" >&6; }
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27107 $as_echo_n "checking for -rdynamic... " >&6; }
27108 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27109 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27110 plugin_rdynamic
=yes
27111 pluginlibs
="-rdynamic"
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27117 $as_echo "$plugin_rdynamic" >&6; }
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27121 $as_echo "unable to check" >&6; }
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27127 $as_echo_n "checking for library containing dlopen... " >&6; }
27128 if test "${ac_cv_search_dlopen+set}" = set; then :
27129 $as_echo_n "(cached) " >&6
27131 ac_func_search_save_LIBS
=$LIBS
27132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27133 /* end confdefs.h. */
27135 /* Override any GCC internal prototype to avoid an error.
27136 Use char because int might match the return type of a GCC
27137 builtin and then its argument prototype would still apply. */
27150 for ac_lib
in '' dl
; do
27151 if test -z "$ac_lib"; then
27152 ac_res
="none required"
27155 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27157 if ac_fn_c_try_link
"$LINENO"; then :
27158 ac_cv_search_dlopen
=$ac_res
27160 rm -f core conftest.err conftest.
$ac_objext \
27162 if test "${ac_cv_search_dlopen+set}" = set; then :
27166 if test "${ac_cv_search_dlopen+set}" = set; then :
27169 ac_cv_search_dlopen
=no
27171 rm conftest.
$ac_ext
27172 LIBS
=$ac_func_search_save_LIBS
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27175 $as_echo "$ac_cv_search_dlopen" >&6; }
27176 ac_res
=$ac_cv_search_dlopen
27177 if test "$ac_res" != no
; then :
27178 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27182 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27183 pluginlibs
="$pluginlibs -ldl"
27187 # Check that we can build shared objects with -fPIC -shared
27188 saved_LDFLAGS
="$LDFLAGS"
27189 saved_CFLAGS
="$CFLAGS"
27192 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27193 CFLAGS
="$CFLAGS -fPIC"
27194 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27197 CFLAGS
="$CFLAGS -fPIC"
27198 LDFLAGS
="$LDFLAGS -fPIC -shared"
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27202 $as_echo_n "checking for -fPIC -shared... " >&6; }
27203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27204 /* end confdefs.h. */
27214 if ac_fn_c_try_link
"$LINENO"; then :
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27216 $as_echo "yes" >&6; }; have_pic_shared
=yes
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27219 $as_echo "no" >&6; }; have_pic_shared
=no
27221 rm -f core conftest.err conftest.
$ac_objext \
27222 conftest
$ac_exeext conftest.
$ac_ext
27223 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27227 LDFLAGS
="$saved_LDFLAGS"
27228 CFLAGS
="$saved_CFLAGS"
27230 # If plugin support had been requested but not available, fail.
27231 if test x
"$enable_plugin" = x
"no" ; then
27232 if test x
"$default_plugin" != x
"yes"; then
27234 Building GCC with plugin support requires a host that supports
27235 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27242 if test x
"$enable_plugin" = x
"yes"; then
27244 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27249 # Check whether --enable-libquadmath-support was given.
27250 if test "${enable_libquadmath_support+set}" = set; then :
27251 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27253 ENABLE_LIBQUADMATH_SUPPORT
=yes
27256 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27258 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27263 # Specify what hash style to use by default.
27265 # Check whether --with-linker-hash-style was given.
27266 if test "${with_linker_hash_style+set}" = set; then :
27267 withval
=$with_linker_hash_style; case x
"$withval" in
27269 LINKER_HASH_STYLE
=sysv
27272 LINKER_HASH_STYLE
=gnu
27275 LINKER_HASH_STYLE
=both
27278 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27282 LINKER_HASH_STYLE
=''
27285 if test x
"${LINKER_HASH_STYLE}" != x
; then
27287 cat >>confdefs.h
<<_ACEOF
27288 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27293 # Configure the subdirectories
27294 # AC_CONFIG_SUBDIRS($subdirs)
27296 # Create the Makefile
27297 # and configure language subdirectories
27298 ac_config_files
="$ac_config_files $all_outputs"
27301 ac_config_commands
="$ac_config_commands default"
27303 cat >confcache
<<\_ACEOF
27304 # This file is a shell script that caches the results of configure
27305 # tests run on this system so they can be shared between configure
27306 # scripts and configure runs, see configure's option --config-cache.
27307 # It is not useful on other systems. If it contains results you don't
27308 # want to keep, you may remove or edit it.
27310 # config.status only pays attention to the cache file if you give it
27311 # the --recheck option to rerun configure.
27313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27315 # following values.
27319 # The following way of writing the cache mishandles newlines in values,
27320 # but we know of no workaround that is simple, portable, and efficient.
27321 # So, we kill variables containing newlines.
27322 # Ultrix sh set writes to stderr and can't be redirected directly,
27323 # and sets the high bit in the cache file unless we assign to the vars.
27325 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27326 eval ac_val
=\$
$ac_var
27330 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27334 _ | IFS | as_nl
) ;; #(
27335 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27336 *) { eval $ac_var=; unset $ac_var;} ;;
27342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27343 *${as_nl}ac_space
=\
*)
27344 # `set' does not quote correctly, so add quotes: double-quote
27345 # substitution turns \\\\ into \\, and sed turns \\ into \.
27348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27351 # `set' quotes correctly as required by POSIX, so do not add quotes.
27352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27365 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27366 if test -w "$cache_file"; then
27367 test "x$cache_file" != "x/dev/null" &&
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27369 $as_echo "$as_me: updating cache $cache_file" >&6;}
27370 cat confcache
>$cache_file
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27373 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27378 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27379 # Let make expand exec_prefix.
27380 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27382 DEFS
=-DHAVE_CONFIG_H
27386 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27387 # 1. Remove the extension, and $U if already installed.
27388 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27389 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27391 # will be set to the directory where LIBOBJS objects are built.
27392 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27393 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27395 LIBOBJS
=$ac_libobjs
27397 LTLIBOBJS
=$ac_ltlibobjs
27402 : ${CONFIG_STATUS=./config.status}
27404 ac_clean_files_save
=$ac_clean_files
27405 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27407 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27409 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27411 # Generated by $as_me.
27412 # Run this file to recreate the current configuration.
27413 # Compiler output produced by configure, useful for debugging
27414 # configure, is in config.log if it exists.
27417 ac_cs_recheck=false
27420 SHELL=\${CONFIG_SHELL-$SHELL}
27423 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27424 ## -------------------- ##
27425 ## M4sh Initialization. ##
27426 ## -------------------- ##
27428 # Be more Bourne compatible
27429 DUALCASE
=1; export DUALCASE
# for MKS sh
27430 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27433 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27434 # is contrary to our usage. Disable this feature.
27435 alias -g '${1+"$@"}'='"$@"'
27436 setopt NO_GLOB_SUBST
27438 case `(set -o) 2>/dev/null` in #(
27450 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27451 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27453 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27454 # Prefer a ksh shell builtin over an external printf program on Solaris,
27455 # but without wasting forks for bash or zsh.
27456 if test -z "$BASH_VERSION$ZSH_VERSION" \
27457 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27458 as_echo='print
-r --'
27459 as_echo_n='print
-rn --'
27460 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27461 as_echo='printf %s
\n'
27462 as_echo_n='printf %s
'
27464 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27465 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27466 as_echo_n='/usr
/ucb
/echo -n'
27468 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27469 as_echo_n_body='eval
27473 expr "X$arg" : "X\\(.*\\)$as_nl";
27474 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27476 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27478 export as_echo_n_body
27479 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27481 export as_echo_body
27482 as_echo='sh
-c $as_echo_body as_echo
'
27485 # The user is always right.
27486 if test "${PATH_SEPARATOR+set}" != set; then
27488 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27489 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27496 # We need space, tab and new line, in precisely that order. Quoting is
27497 # there to prevent editors from complaining about space-tab.
27498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27499 # splitting by setting IFS to empty value.)
27502 # Find who we are. Look in the path if we contain no directory separator.
27504 *[\\/]* ) as_myself=$0 ;;
27505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27506 for as_dir in $PATH
27509 test -z "$as_dir" && as_dir=.
27510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27516 # We did not find ourselves, most probably we were run as `sh COMMAND'
27517 # in which case we are not to be found in the path.
27518 if test "x$as_myself" = x
; then
27521 if test ! -f "$as_myself"; then
27522 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27526 # Unset variables that we do not need and which cause bugs (e.g. in
27527 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27528 # suppresses any "Segmentation fault" message there. '((' could
27529 # trigger a bug in pdksh 5.2.14.
27530 for as_var
in BASH_ENV ENV MAIL MAILPATH
27531 do eval test x\
${$as_var+set} = xset \
27532 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27545 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27548 # as_fn_error ERROR [LINENO LOG_FD]
27549 # ---------------------------------
27550 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27551 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27552 # script with status $?, using 1 if that was 0.
27555 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27557 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27558 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27560 $as_echo "$as_me: error: $1" >&2
27561 as_fn_exit
$as_status
27565 # as_fn_set_status STATUS
27566 # -----------------------
27567 # Set $? to STATUS, without forking.
27568 as_fn_set_status
()
27571 } # as_fn_set_status
27573 # as_fn_exit STATUS
27574 # -----------------
27575 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27579 as_fn_set_status
$1
27585 # Portably unset VAR.
27588 { eval $1=; unset $1;}
27590 as_unset
=as_fn_unset
27591 # as_fn_append VAR VALUE
27592 # ----------------------
27593 # Append the text in VALUE to the end of the definition contained in VAR. Take
27594 # advantage of any shell optimizations that allow amortized linear growth over
27595 # repeated appends, instead of the typical quadratic growth present in naive
27597 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27598 eval 'as_fn_append ()
27609 # as_fn_arith ARG...
27610 # ------------------
27611 # Perform arithmetic evaluation on the ARGs, and store the result in the
27612 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27613 # must be portable across $(()) and expr.
27614 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27615 eval 'as_fn_arith ()
27622 as_val
=`expr "$@" || test $? -eq 1`
27627 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27628 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27634 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27635 as_basename
=basename
27640 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27646 as_me
=`$as_basename -- "$0" ||
27647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27648 X"$0" : 'X\(//\)$' \| \
27649 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27651 sed '/^.*\/\([^/][^/]*\)\/*$/{
27665 # Avoid depending upon Character Ranges.
27666 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27667 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27668 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27669 as_cr_digits
='0123456789'
27670 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27672 ECHO_C
= ECHO_N
= ECHO_T
=
27673 case `echo -n x` in #(((((
27675 case `echo 'xy\c'` in
27676 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27678 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27685 rm -f conf$$ conf$$.exe conf$$.
file
27686 if test -d conf$$.dir
; then
27687 rm -f conf$$.dir
/conf$$.
file
27690 mkdir conf$$.dir
2>/dev
/null
27692 if (echo >conf$$.
file) 2>/dev
/null
; then
27693 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27695 # ... but there are two gotchas:
27696 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27697 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27698 # In both cases, we have to default to `cp -p'.
27699 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27701 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27709 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27710 rmdir conf$$.dir
2>/dev
/null
27715 # Create "$as_dir" as a directory, including parents if necessary.
27720 -*) as_dir
=.
/$as_dir;;
27722 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27726 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27727 *) as_qdir
=$as_dir;;
27729 as_dirs
="'$as_qdir' $as_dirs"
27730 as_dir
=`$as_dirname -- "$as_dir" ||
27731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27732 X"$as_dir" : 'X\(//\)[^/]' \| \
27733 X"$as_dir" : 'X\(//\)$' \| \
27734 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27735 $as_echo X"$as_dir" |
27736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27740 /^X\(\/\/\)[^/].*/{
27753 test -d "$as_dir" && break
27755 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27756 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27760 if mkdir
-p .
2>/dev
/null
; then
27761 as_mkdir_p
='mkdir -p "$as_dir"'
27763 test -d .
/-p && rmdir .
/-p
27767 if test -x / >/dev
/null
2>&1; then
27768 as_test_x
='test -x'
27770 if ls -dL / >/dev
/null
2>&1; then
27777 if test -d "$1"; then
27783 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27784 ???[sx]*):;;*)false;;esac;fi
27788 as_executable_p
=$as_test_x
27790 # Sed expression to map a string onto a valid CPP name.
27791 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27793 # Sed expression to map a string onto a valid variable name.
27794 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27798 ## ----------------------------------- ##
27799 ## Main body of $CONFIG_STATUS script. ##
27800 ## ----------------------------------- ##
27802 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27805 # Save the log message, to keep $0 and so on meaningful, and to
27806 # report actual input values of CONFIG_FILES etc. instead of their
27807 # values after options handling.
27809 This file was extended by $as_me, which was
27810 generated by GNU Autoconf 2.64. Invocation command line was
27812 CONFIG_FILES = $CONFIG_FILES
27813 CONFIG_HEADERS = $CONFIG_HEADERS
27814 CONFIG_LINKS = $CONFIG_LINKS
27815 CONFIG_COMMANDS = $CONFIG_COMMANDS
27818 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27823 case $ac_config_files in *"
27824 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27827 case $ac_config_headers in *"
27828 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27833 # Files that config.status was made for.
27834 config_files="$ac_config_files"
27835 config_headers="$ac_config_headers"
27836 config_commands="$ac_config_commands"
27840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27842 \`$as_me' instantiates files and other configuration actions
27843 from templates according to the current configuration. Unless the files
27844 and actions are specified as TAGs, all are instantiated by default.
27846 Usage: $0 [OPTION]... [TAG]...
27848 -h, --help print this help, then exit
27849 -V, --version print version number and configuration settings, then exit
27850 -q, --quiet, --silent
27851 do not print progress messages
27852 -d, --debug don't remove temporary files
27853 --recheck update $as_me by reconfiguring in the same conditions
27854 --file=FILE[:TEMPLATE]
27855 instantiate the configuration file FILE
27856 --header=FILE[:TEMPLATE]
27857 instantiate the configuration header FILE
27859 Configuration files:
27862 Configuration headers:
27865 Configuration commands:
27868 Report bugs to the package provider."
27871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27874 configured by $0, generated by GNU Autoconf 2.64,
27875 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27877 Copyright (C) 2009 Free Software Foundation, Inc.
27878 This config.status script is free software; the Free Software Foundation
27879 gives unlimited permission to copy, distribute and modify it."
27884 test -n "\$AWK" || AWK=awk
27887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27888 # The default lists apply if the user does not specify any file.
27894 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27895 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27906 # Handling of the options.
27907 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27909 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27910 $as_echo "$ac_cs_version"; exit ;;
27911 --debug |
--debu |
--deb |
--de |
--d |
-d )
27913 --file |
--fil |
--fi |
--f )
27916 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27918 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27919 ac_need_defaults
=false
;;
27920 --header |
--heade |
--head |
--hea )
27923 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27925 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27926 ac_need_defaults
=false
;;
27928 # Conflict between --help and --header
27929 as_fn_error
"ambiguous option: \`$1'
27930 Try \`$0 --help' for more information.";;
27931 --help |
--hel |
-h )
27932 $as_echo "$ac_cs_usage"; exit ;;
27933 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27934 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27937 # This is an error.
27938 -*) as_fn_error
"unrecognized option: \`$1'
27939 Try \`$0 --help' for more information." ;;
27941 *) as_fn_append ac_config_targets
" $1"
27942 ac_need_defaults
=false
;;
27948 ac_configure_extra_args
=
27950 if $ac_cs_silent; then
27952 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27957 if \$ac_cs_recheck; then
27958 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27960 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27961 CONFIG_SHELL='$SHELL'
27962 export CONFIG_SHELL
27967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27971 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27972 ## Running $as_me. ##
27978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27988 # Handling of arguments.
27989 for ac_config_target
in $ac_config_targets
27991 case $ac_config_target in
27992 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27993 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27994 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27995 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27996 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27997 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27999 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28004 # If the user did not use the arguments to specify the items to instantiate,
28005 # then the envvar interface is used. Set only those that are not.
28006 # We use the long form for the default assignment because of an extremely
28007 # bizarre bug on SunOS 4.1.3.
28008 if $ac_need_defaults; then
28009 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28010 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28011 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28014 # Have a temporary directory for convenience. Make it in the build tree
28015 # simply because there is no reason against having it here, and in addition,
28016 # creating and moving files from /tmp can sometimes cause problems.
28017 # Hook for its removal unless debugging.
28018 # Note that there is a small window in which the directory will not be cleaned:
28019 # after its creation but before its name has been assigned to `$tmp'.
28023 trap 'exit_status=$?
28024 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28026 trap 'as_fn_exit 1' 1 2 13 15
28028 # Create a (secure) tmp directory for tmp files.
28031 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28032 test -n "$tmp" && test -d "$tmp"
28035 tmp
=.
/conf$$
-$RANDOM
28036 (umask 077 && mkdir
"$tmp")
28037 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28039 # Set up the scripts for CONFIG_FILES section.
28040 # No need to generate them if there are no CONFIG_FILES.
28041 # This happens for instance with `./config.status config.h'.
28042 if test -n "$CONFIG_FILES"; then
28044 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28045 ac_cs_awk_getline
=:
28046 ac_cs_awk_pipe_init
=
28047 ac_cs_awk_read_file
='
28048 while ((getline aline < (F[key])) > 0)
28051 ac_cs_awk_pipe_fini
=
28053 ac_cs_awk_getline
=false
28054 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28055 ac_cs_awk_read_file
='
28057 print "cat " F[key] " &&"
28058 '$ac_cs_awk_pipe_init
28059 # The final `:' finishes the AND list.
28060 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28062 ac_cr
=`echo X | tr X '\015'`
28063 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28064 # But we know of no other shell where ac_cr would be empty at this
28065 # point, so we can use a bashism as a fallback.
28066 if test "x$ac_cr" = x
; then
28067 eval ac_cr
=\$
\'\\r
\'
28069 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28073 ac_cs_awk_cr
=$ac_cr
28076 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28079 # Create commands to substitute file output variables.
28081 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28082 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28083 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28086 } >conf$
$files.sh
&&
28087 . .
/conf$
$files.sh ||
28088 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28089 rm -f conf$
$files.sh
28092 echo "cat >conf$$subs.awk <<_ACEOF" &&
28093 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28095 } >conf$$subs.sh ||
28096 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28099 for ac_last_try in false false false false false :; do
28100 . ./conf$$subs.sh ||
28101 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28103 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28104 if test $ac_delim_n = $ac_delim_num; then
28106 elif $ac_last_try; then
28107 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28109 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28112 rm -f conf$$subs.sh
28114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28115 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28119 s/^/S["/; s
/!.
*/"]=/
28129 s/\(.\{148\}\).*/\1/
28131 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28136 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28143 s/\(.\{148\}\).*/\1/
28145 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28149 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28154 ' <conf$$subs.awk | sed '
28159 ' >>$CONFIG_STATUS || ac_write_fail=1
28160 rm -f conf$$subs.awk
28161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28163 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28164 for (key in S) S_is_set[key] = 1
28166 \$ac_cs_awk_pipe_init
28170 nfields = split(line, field, "@
")
28172 len = length(field[1])
28173 for (i = 2; i < nfields; i++) {
28175 keylen = length(key)
28176 if (S_is_set[key]) {
28178 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28179 len += length(value) + length(field[++i])
28184 if (nfields == 3 && !substed) {
28186 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28187 \$ac_cs_awk_read_file
28193 \$ac_cs_awk_pipe_fini
28196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28197 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28198 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28201 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28202 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28207 # trailing colons and then remove the whole line if VPATH becomes empty
28208 # (actually we leave an empty line to preserve line numbers).
28209 if test "x
$srcdir" = x.; then
28210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28211 s/:*\$(srcdir):*/:/
28212 s/:*\${srcdir}:*/:/
28214 s/^\([^=]*=[ ]*\):*/\1/
28220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28221 fi # test -n "$CONFIG_FILES"
28223 # Set up the scripts for CONFIG_HEADERS section.
28224 # No need to generate them if there are no CONFIG_HEADERS.
28225 # This happens for instance with `./config.status Makefile'.
28226 if test -n "$CONFIG_HEADERS"; then
28227 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28231 # Transform confdefs.h into an awk script `defines.awk', embedded as
28232 # here-document in config.status, that substitutes the proper values into
28233 # config.h.in to produce config.h.
28235 # Create a delimiter string that does not exist in confdefs.h, to ease
28236 # handling of long lines.
28238 for ac_last_try in false false :; do
28239 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28240 if test -z "$ac_t"; then
28242 elif $ac_last_try; then
28243 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28245 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28249 # For the awk script, D is an array of macro values keyed by name,
28250 # likewise P contains macro parameters if any. Preserve backslash
28251 # newline sequences.
28253 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28255 s/.\{148\}/&'"$ac_delim"'/g
28258 s/^[ ]*#[ ]*define[ ][ ]*/ /
28265 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28267 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28272 D["\
1"]=" \
3\\\\\\n
"\\/p
28274 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28279 s/.\{148\}/&'"$ac_delim"'/g
28284 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28287 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28289 ' <confdefs.h | sed '
28290 s/'"$ac_delim"'/"\\\
28291 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28294 for (key in D) D_is_set[key] = 1
28297 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28299 split(line, arg, " ")
28300 if (arg[1] == "#") {
28304 defundef
= substr
(arg
[1], 2)
28307 split(mac1
, mac2
, "(") #)
28309 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28310 if (D_is_set
[macro
]) {
28311 # Preserve the white space surrounding the "#".
28312 print prefix
"define", macro P
[macro
] D
[macro
]
28315 # Replace #undef with comments. This is necessary, for example,
28316 # in the case of _POSIX_SOURCE, which is predefined and required
28317 # on some systems where configure will not decide to define it.
28318 if (defundef
== "undef") {
28319 print
"/*", prefix defundef
, macro
, "*/"
28327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28328 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28329 fi # test -n "$CONFIG_HEADERS"
28332 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28337 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28339 case $ac_mode$ac_tag in
28341 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28342 :[FH
]-) ac_tag
=-:-;;
28343 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28360 -) ac_f
="$tmp/stdin";;
28361 *) # Look for the file first in the build tree, then in the source tree
28362 # (if the path is not absolute). The absolute path cannot be DOS-style,
28363 # because $ac_f cannot contain `:'.
28367 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28369 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28371 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28372 as_fn_append ac_file_inputs
" '$ac_f'"
28375 # Let's still pretend it is `configure' which instantiates (i.e., don't
28376 # use $as_me), people would be surprised to read:
28377 # /* config.h. Generated by config.status. */
28378 configure_input
='Generated from '`
28379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28381 if test x
"$ac_file" != x-
; then
28382 configure_input
="$ac_file. $configure_input"
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28384 $as_echo "$as_me: creating $ac_file" >&6;}
28386 # Neutralize special characters interpreted by sed in replacement strings.
28387 case $configure_input in #(
28388 *\
&* |
*\|
* |
*\\* )
28389 ac_sed_conf_input
=`$as_echo "$configure_input" |
28390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28391 *) ac_sed_conf_input
=$configure_input;;
28395 *:-:* |
*:-) cat >"$tmp/stdin" \
28396 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28401 ac_dir
=`$as_dirname -- "$ac_file" ||
28402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28403 X"$ac_file" : 'X\(//\)[^/]' \| \
28404 X"$ac_file" : 'X\(//\)$' \| \
28405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28406 $as_echo X"$ac_file" |
28407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28411 /^X\(\/\/\)[^/].*/{
28424 as_dir
="$ac_dir"; as_fn_mkdir_p
28428 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28430 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28431 # A ".." for each directory in $ac_dir_suffix.
28432 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28433 case $ac_top_builddir_sub in
28434 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28435 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28438 ac_abs_top_builddir
=$ac_pwd
28439 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28440 # for backward compatibility:
28441 ac_top_builddir
=$ac_top_build_prefix
28444 .
) # We are building in place.
28446 ac_top_srcdir
=$ac_top_builddir_sub
28447 ac_abs_top_srcdir
=$ac_pwd ;;
28448 [\\/]* | ?
:[\\/]* ) # Absolute name.
28449 ac_srcdir
=$srcdir$ac_dir_suffix;
28450 ac_top_srcdir
=$srcdir
28451 ac_abs_top_srcdir
=$srcdir ;;
28452 *) # Relative name.
28453 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28454 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28455 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28457 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28469 # If the template does not know about datarootdir, expand it.
28470 # FIXME: This hack should be removed a few years after 2.60.
28471 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28483 *datarootdir
*) ac_datarootdir_seen
=yes;;
28484 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28489 ac_datarootdir_hack='
28490 s&@datadir@&$datadir&g
28491 s&@docdir@&$docdir&g
28492 s&@infodir@&$infodir&g
28493 s&@localedir@&$localedir&g
28494 s&@mandir@&$mandir&g
28495 s&\\\${datarootdir}&$datarootdir&g' ;;
28499 # Neutralize VPATH when `$srcdir' = `.'.
28500 # Shell code in configure.ac might set extrasub.
28501 # FIXME: do we really want to maintain this feature?
28502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28503 ac_sed_extra="$ac_vpsub
28506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28508 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28509 s|@configure_input@|
$ac_sed_conf_input|
;t t
28510 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28511 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28512 s
&@srcdir@
&$ac_srcdir&;t t
28513 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28514 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28515 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28516 s
&@builddir@
&$ac_builddir&;t t
28517 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28518 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28519 $ac_datarootdir_hack
28521 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28522 if $ac_cs_awk_getline; then
28523 $AWK -f "$tmp/subs.
awk"
28525 $AWK -f "$tmp/subs.
awk" | $SHELL
28527 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28529 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28530 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28531 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28533 which seems to be undefined. Please make sure it is defined." >&5
28534 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28535 which seems to be undefined. Please make sure it is defined." >&2;}
28539 -) cat "$tmp/out" && rm -f "$tmp/out";;
28540 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28542 || as_fn_error "could not create $ac_file" "$LINENO" 5
28548 if test x"$ac_file" != x-; then
28550 $as_echo "/* $configure_input */" \
28551 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28552 } >"$tmp/config.h" \
28553 || as_fn_error "could not create $ac_file" "$LINENO" 5
28554 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28556 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28559 mv "$tmp/config.h" "$ac_file" \
28560 || as_fn_error "could not create $ac_file" "$LINENO" 5
28563 $as_echo "/* $configure_input */" \
28564 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28565 || as_fn_error "could not create -" "$LINENO" 5
28569 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28570 $as_echo "$as_me: executing $ac_file commands" >&6;}
28575 case $ac_file$ac_mode in
28576 "as":F) chmod +x as ;;
28577 "collect-ld":F) chmod +x collect-ld ;;
28578 "nm":F) chmod +x nm ;;
28580 case ${CONFIG_HEADERS} in
28581 *auto-host.h:config.in*)
28584 # Make sure all the subdirs exist.
28585 for d in $subdirs doc build common c-family
28587 test -d $d || mkdir $d
28597 ac_clean_files=$ac_clean_files_save
28599 test $ac_write_fail = 0 ||
28600 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28603 # configure is writing to config.log, and then calls config.status.
28604 # config.status does its own redirection, appending to config.log.
28605 # Unfortunately, on DOS this fails, as config.log is still kept open
28606 # by configure, so config.status won't be able to
write to it
; its
28607 # output is simply discarded. So we exec the FD to /dev/null,
28608 # effectively closing config.log, so it can be properly (re)opened and
28609 # appended to by config.status. When coming back to configure, we
28610 # need to make the FD available again.
28611 if test "$no_create" != yes; then
28613 ac_config_status_args
=
28614 test "$silent" = yes &&
28615 ac_config_status_args
="$ac_config_status_args --quiet"
28617 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28619 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28620 # would make configure fail if this is the last instruction.
28621 $ac_cs_success || as_fn_exit $?
28623 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28625 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}