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
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
768 ENABLE_BUILD_WITH_CXX
771 valgrind_path_defines
843 program_transform_name
854 ac_subst_files
='language_hooks'
856 enable_option_checking
861 enable_generated_files_in_srcdir
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
892 enable_initfini_array
893 enable_sjlj_exceptions
894 with_system_libunwind
897 enable_win32_registry
904 enable_gnu_unique_object
905 enable_linker_build_id
909 enable_maintainer_mode
910 enable_version_specific_runtime_libs
914 ac_precious_vars
='build_alias
937 # Initialize some variables set by options.
939 ac_init_version
=false
940 ac_unrecognized_opts
=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name
=s
,x
,x
,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir
='${exec_prefix}/bin'
966 sbindir
='${exec_prefix}/sbin'
967 libexecdir
='${exec_prefix}/libexec'
968 datarootdir
='${prefix}/share'
969 datadir
='${datarootdir}'
970 sysconfdir
='${prefix}/etc'
971 sharedstatedir
='${prefix}/com'
972 localstatedir
='${prefix}/var'
973 includedir
='${prefix}/include'
974 oldincludedir
='/usr/include'
975 docdir
='${datarootdir}/doc/${PACKAGE}'
976 infodir
='${datarootdir}/info'
981 libdir
='${exec_prefix}/lib'
982 localedir
='${datarootdir}/locale'
983 mandir
='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\
$ac_option
997 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1009 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1010 bindir
=$ac_optarg ;;
1012 -build |
--build |
--buil |
--bui |
--bu)
1013 ac_prev
=build_alias
;;
1014 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1015 build_alias
=$ac_optarg ;;
1017 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1018 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1019 ac_prev
=cache_file
;;
1020 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1021 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1022 cache_file
=$ac_optarg ;;
1024 --config-cache |
-C)
1025 cache_file
=config.cache
;;
1027 -datadir |
--datadir |
--datadi |
--datad)
1029 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1030 datadir
=$ac_optarg ;;
1032 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1033 |
--dataroo |
--dataro |
--datar)
1034 ac_prev
=datarootdir
;;
1035 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1036 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1037 datarootdir
=$ac_optarg ;;
1039 -disable-* |
--disable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error
"invalid feature name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_
$ac_useropt"
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval enable_
$ac_useropt=no
;;
1055 -docdir |
--docdir |
--docdi |
--doc |
--do)
1057 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1058 docdir
=$ac_optarg ;;
1060 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1062 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1063 dvidir
=$ac_optarg ;;
1065 -enable-* |
--enable-*)
1066 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error
"invalid feature name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_
$ac_useropt"
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval enable_
$ac_useropt=\
$ac_optarg ;;
1081 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1082 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1083 |
--exec |
--exe |
--ex)
1084 ac_prev
=exec_prefix
;;
1085 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1086 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1087 |
--exec=* |
--exe=* |
--ex=*)
1088 exec_prefix
=$ac_optarg ;;
1090 -gas |
--gas |
--ga |
--g)
1091 # Obsolete; use --with-gas.
1094 -help |
--help |
--hel |
--he |
-h)
1095 ac_init_help
=long
;;
1096 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1097 ac_init_help
=recursive
;;
1098 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1099 ac_init_help
=short
;;
1101 -host |
--host |
--hos |
--ho)
1102 ac_prev
=host_alias
;;
1103 -host=* |
--host=* |
--hos=* |
--ho=*)
1104 host_alias
=$ac_optarg ;;
1106 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1108 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1110 htmldir
=$ac_optarg ;;
1112 -includedir |
--includedir |
--includedi |
--included |
--include \
1113 |
--includ |
--inclu |
--incl |
--inc)
1114 ac_prev
=includedir
;;
1115 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1116 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1117 includedir
=$ac_optarg ;;
1119 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1121 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1122 infodir
=$ac_optarg ;;
1124 -libdir |
--libdir |
--libdi |
--libd)
1126 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1127 libdir
=$ac_optarg ;;
1129 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1130 |
--libexe |
--libex |
--libe)
1131 ac_prev
=libexecdir
;;
1132 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1133 |
--libexe=* |
--libex=* |
--libe=*)
1134 libexecdir
=$ac_optarg ;;
1136 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1137 ac_prev
=localedir
;;
1138 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1139 localedir
=$ac_optarg ;;
1141 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1142 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1143 ac_prev
=localstatedir
;;
1144 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1145 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1146 localstatedir
=$ac_optarg ;;
1148 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1150 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1151 mandir
=$ac_optarg ;;
1153 -nfp |
--nfp |
--nf)
1154 # Obsolete; use --without-fp.
1157 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1158 |
--no-cr |
--no-c |
-n)
1161 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1162 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1165 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1166 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1167 |
--oldin |
--oldi |
--old |
--ol |
--o)
1168 ac_prev
=oldincludedir
;;
1169 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1170 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1171 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1172 oldincludedir
=$ac_optarg ;;
1174 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1176 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1177 prefix
=$ac_optarg ;;
1179 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1180 |
--program-pre |
--program-pr |
--program-p)
1181 ac_prev
=program_prefix
;;
1182 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1183 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1184 program_prefix
=$ac_optarg ;;
1186 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1187 |
--program-suf |
--program-su |
--program-s)
1188 ac_prev
=program_suffix
;;
1189 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1190 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1191 program_suffix
=$ac_optarg ;;
1193 -program-transform-name |
--program-transform-name \
1194 |
--program-transform-nam |
--program-transform-na \
1195 |
--program-transform-n |
--program-transform- \
1196 |
--program-transform |
--program-transfor \
1197 |
--program-transfo |
--program-transf \
1198 |
--program-trans |
--program-tran \
1199 |
--progr-tra |
--program-tr |
--program-t)
1200 ac_prev
=program_transform_name
;;
1201 -program-transform-name=* |
--program-transform-name=* \
1202 |
--program-transform-nam=* |
--program-transform-na=* \
1203 |
--program-transform-n=* |
--program-transform-=* \
1204 |
--program-transform=* |
--program-transfor=* \
1205 |
--program-transfo=* |
--program-transf=* \
1206 |
--program-trans=* |
--program-tran=* \
1207 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1208 program_transform_name
=$ac_optarg ;;
1210 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1212 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1213 pdfdir
=$ac_optarg ;;
1215 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1217 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1221 |
-silent |
--silent |
--silen |
--sile |
--sil)
1224 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1226 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1228 sbindir
=$ac_optarg ;;
1230 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1231 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1232 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1234 ac_prev
=sharedstatedir
;;
1235 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1236 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1237 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1239 sharedstatedir
=$ac_optarg ;;
1241 -site |
--site |
--sit)
1243 -site=* |
--site=* |
--sit=*)
1246 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1248 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1249 srcdir
=$ac_optarg ;;
1251 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1252 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1253 ac_prev
=sysconfdir
;;
1254 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1255 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1256 sysconfdir
=$ac_optarg ;;
1258 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1259 ac_prev
=target_alias
;;
1260 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1261 target_alias
=$ac_optarg ;;
1263 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1266 -version |
--version |
--versio |
--versi |
--vers |
-V)
1267 ac_init_version
=: ;;
1270 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=\
$ac_optarg ;;
1285 -without-* |
--without-*)
1286 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1289 as_fn_error
"invalid package name: $ac_useropt"
1290 ac_useropt_orig
=$ac_useropt
1291 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep
=', ';;
1299 eval with_
$ac_useropt=no
;;
1302 # Obsolete; use --with-x.
1305 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1306 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1307 ac_prev
=x_includes
;;
1308 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1309 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1310 x_includes
=$ac_optarg ;;
1312 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1313 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1314 ac_prev
=x_libraries
;;
1315 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1316 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1317 x_libraries
=$ac_optarg ;;
1319 -*) as_fn_error
"unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1324 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1328 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1330 eval $ac_envvar=\
$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error
"missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1352 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 # Check all directory arguments for consistency.
1358 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val
=\$
$ac_var
1364 # Remove trailing slashes.
1367 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\
$ac_val;;
1370 # Be sure to have absolute directory names.
1372 [\\/$
]* | ?
:[\\/]* ) continue;;
1373 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1375 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target
=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x
; then
1387 if test "x$build_alias" = x
; then
1388 cross_compiling
=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1397 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1399 test "$silent" = yes && exec 6>/dev
/null
1402 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di
=`ls -di .` &&
1404 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error
"working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error
"pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted
=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir
=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1442 ac_srcdir_defaulted
=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1446 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var
in $ac_precious_vars; do
1463 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1465 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1539 --build=BUILD configure
for building on BUILD
[guessed
]
1540 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1541 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1545 if test -n "$ac_init_help"; then
1550 --disable-option-checking ignore unrecognized
--enable/--with options
1551 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1552 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1553 --enable-generated-files-in-srcdir
1554 put copies of generated files
in source dir
1555 intended
for creating
source tarballs
for users
1556 without texinfo bison or flex.
1557 --enable-werror-always enable -Werror despite compiler version
1558 --enable-checking=LIST
1559 enable expensive run-time checks. With LIST
,
1560 enable only specific categories of checks.
1561 Categories are
: yes,no
,all
,none
,release.
1562 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1563 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1564 --enable-coverage=LEVEL
1565 enable compiler
's code coverage collection.
1566 Use to measure compiler performance and locate
1567 unused parts of the compiler. With LEVEL, specify
1568 optimization. Values are opt, noopt,
1570 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1571 --enable-build-with-cxx build with C++ compiler instead of C compiler
1572 --enable-multilib enable library support for multiple ABIs
1573 --enable-__cxa_atexit enable __cxa_atexit for C++
1574 --enable-decimal-float={no,yes,bid,dpd}
1575 enable decimal float extension to C. Selecting 'bid
'
1576 or 'dpd
' choses which decimal floating point format
1578 --enable-fixed-point enable fixed-point arithmetic extension to C
1579 --enable-threads enable thread usage for target GCC
1580 --enable-threads=LIB use LIB thread package for target GCC
1581 --enable-tls enable or disable generation of tls code
1582 overriding the assembler check for tls support
1583 --enable-objc-gc enable the use of Boehm's garbage collector with
1584 the GNU Objective-C runtime
1585 --disable-shared don
't provide a shared libgcc
1586 --enable-intermodule build the compiler in one step
1587 --enable-languages=LIST specify which front-ends to build
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-initfini-array use .init_array/.fini_array sections
1590 --enable-sjlj-exceptions
1591 arrange to use setjmp/longjmp exception handling
1592 --enable-secureplt enable -msecure-plt by default for PowerPC
1593 --enable-cld enable -mcld by default for 32bit x86
1594 --disable-win32-registry
1595 disable lookup of installation paths in the
1596 Registry on Windows hosts
1597 --enable-win32-registry enable registry lookup (default)
1598 --enable-win32-registry=KEY
1599 use KEY instead of GCC version as the last portion
1601 --enable-shared[=PKGS] build shared libraries [default=yes]
1602 --enable-static[=PKGS] build static libraries [default=yes]
1603 --enable-fast-install[=PKGS]
1604 optimize for fast installation [default=yes]
1605 --disable-libtool-lock avoid locking (might break parallel builds)
1606 --enable-comdat enable COMDAT group support
1607 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1609 --enable-linker-build-id
1610 compiler will always pass --build-id to linker
1611 --enable-maintainer-mode
1612 enable make rules and dependencies not useful
1613 (and sometimes confusing) to the casual installer
1614 --enable-version-specific-runtime-libs
1615 specify that runtime libraries should be
1616 installed in a compiler-specific directory
1617 --enable-plugin enable plugin support
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-build-libsubdir=DIR Directory where to find libraries for build system
1623 --with-local-prefix=DIR specifies directory to put local include
1624 --with-gxx-include-dir=DIR
1625 specifies directory to put g++ header files
1626 --with-cpp-install-dir=DIR
1627 install the user visible C preprocessor in DIR
1628 (relative to PREFIX) as well as PREFIX/bin
1629 --with-gnu-ld arrange to work with GNU ld.
1630 --with-ld arrange to use the specified ld (full pathname)
1631 --with-demangler-in-ld try to use demangler in GNU ld.
1632 --with-gnu-as arrange to work with GNU as
1633 --with-as arrange to use the specified as (full pathname)
1634 --with-stabs arrange to use stabs instead of host debug format
1635 --with-dwarf2 force the default debug format to be DWARF 2
1636 --with-build-sysroot=sysroot
1637 use sysroot as the system root during the build
1638 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1639 --with-specs=SPECS add SPECS to driver command-line processing
1640 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1641 --with-bugurl=URL Direct users to URL to report a bug
1642 --with-multilib-list Select multilibs (SH only)
1643 --with-gnu-ld assume the C compiler uses GNU ld default=no
1644 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1645 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1646 --with-system-libunwind use installed libunwind
1647 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1649 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1650 --with-plugin-ld=[ARG
] specify the plugin linker
1651 --with-long-double-128 Use
128-bit long double by default.
1652 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1654 --with-system-zlib use installed libz
1655 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1657 Some influential environment variables
:
1658 CC C compiler
command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1661 nonstandard directory
<lib dir
>
1662 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1663 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1664 you have headers
in a nonstandard directory
<include dir
>
1665 CXX C
++ compiler
command
1666 CXXFLAGS C
++ compiler flags
1668 CXXCPP C
++ preprocessor
1669 GMPLIBS How to link GMP
1670 GMPINC How to
find GMP include files
1671 PPLLIBS How to link PPL
1672 PPLINC How to
find PPL include files
1673 CLOOGLIBS How to link CLOOG
1674 CLOOGINC How to
find CLOOG include files
1675 LIBELFLIBS How to link libelf
1676 LIBELFINC How to
find libelf include files
1678 Use these variables to override the choices made by
`configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1711 .) # We are building in place.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1745 generated by GNU Autoconf 2.64
1747 Copyright (C) 2009 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1768 *) ac_try_echo
=$ac_try;;
1770 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1774 if test -s conftest.err
; then
1775 grep -v '^ *+' conftest.err
>conftest.er1
1776 cat conftest.er1
>&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.
$ac_objext; then :
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.
$ac_ext >&5
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1794 } # ac_fn_c_try_compile
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile
()
1801 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1802 rm -f conftest.
$ac_objext
1803 if { { ac_try
="$ac_compile"
1805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1843 *) ac_try_echo
=$ac_try;;
1845 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849 if test -s conftest.err
; then
1850 grep -v '^ *+' conftest.err
>conftest.er1
1851 cat conftest.er1
>&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } >/dev
/null
&& {
1856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.
$ac_ext >&5
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1871 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874 # the include files in INCLUDES and setting the cache variable VAR
1876 ac_fn_c_check_header_mongrel
()
1878 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1879 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1889 # Is the header compilable?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891 $as_echo_n "checking $2 usability... " >&6; }
1892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1897 if ac_fn_c_try_compile
"$LINENO"; then :
1898 ac_header_compiler
=yes
1900 ac_header_compiler
=no
1902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904 $as_echo "$ac_header_compiler" >&6; }
1906 # Is the header present?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908 $as_echo_n "checking $2 presence... " >&6; }
1909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1913 if ac_fn_c_try_cpp
"$LINENO"; then :
1914 ac_header_preproc
=yes
1916 ac_header_preproc
=no
1918 rm -f conftest.err conftest.
$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920 $as_echo "$ac_header_preproc" >&6; }
1922 # So? What about this header?
1923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1934 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1938 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1948 eval "$3=\$ac_header_compiler"
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1964 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1965 if { { ac_try
="$ac_link"
1967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>&5
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976 { { case "(($ac_try" in
1977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1978 *) ac_try_echo
=$ac_try;;
1980 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_try") 2>&5
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; }; }; then :
1988 $as_echo "$as_me: program exited with status $ac_status" >&5
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.
$ac_ext >&5
1992 ac_retval
=$ac_status
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2000 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists and can be compiled using the include files in
2003 # INCLUDES, setting the cache variable VAR accordingly.
2004 ac_fn_c_check_header_compile
()
2006 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2017 if ac_fn_c_try_compile
"$LINENO"; then :
2022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2029 } # ac_fn_c_check_header_compile
2031 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032 # --------------------------------------------
2033 # Tries to find the compile-time value of EXPR in a program that includes
2034 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2036 ac_fn_c_compute_int
()
2038 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2039 if test "$cross_compiling" = yes; then
2040 # Depending upon the size, compute the lo and hi bounds.
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 static int test_array [1 - 2 * !(($2) >= 0)];
2054 if ac_fn_c_try_compile
"$LINENO"; then :
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2071 ac_hi
=$ac_mid; break
2073 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2074 if test $ac_lo -le $ac_mid; then
2078 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) < 0)];
2096 if ac_fn_c_try_compile
"$LINENO"; then :
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2113 ac_lo
=$ac_mid; break
2115 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2116 if test $ac_mid -le $ac_hi; then
2120 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2149 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2169 FILE *f = fopen ("conftest.val", "w");
2174 long int i = longval ();
2177 fprintf (f, "%ld", i);
2181 unsigned long int i = ulongval ();
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2194 if ac_fn_c_try_run
"$LINENO"; then :
2195 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type
()
2215 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219 $as_echo_n "(cached) " >&6
2222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2234 if ac_fn_c_try_compile
"$LINENO"; then :
2235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2247 if ac_fn_c_try_compile
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2261 } # ac_fn_c_check_type
2263 # ac_fn_c_find_intX_t LINENO BITS VAR
2264 # -----------------------------------
2265 # Finds a signed integer type with width BITS, setting cache variable VAR
2267 ac_fn_c_find_intX_t
()
2269 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2271 $as_echo_n "checking for int$2_t... " >&6; }
2272 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2276 for ac_type
in int
$2_t 'int' 'long int' \
2277 'long long int' 'short int' 'signed char'; do
2278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $ac_includes_default
2284 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2291 if ac_fn_c_try_compile
"$LINENO"; then :
2292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2298 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2299 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2306 if ac_fn_c_try_compile
"$LINENO"; then :
2313 eval "$3=\$ac_type" ;;
2316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2320 if test "x$as_val" = x
""no
; then :
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2332 } # ac_fn_c_find_intX_t
2334 # ac_fn_c_try_link LINENO
2335 # -----------------------
2336 # Try to link conftest.$ac_ext, and return whether this succeeded.
2339 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2340 rm -f conftest.
$ac_objext conftest
$ac_exeext
2341 if { { ac_try
="$ac_link"
2343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_link") 2>conftest.err
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest$ac_exeext && {
2360 test "$cross_compiling" = yes ||
2361 $as_test_x conftest$ac_exeext
2365 $as_echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2371 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2372 # interfere with the next link command; also delete a directory that is
2373 # left behind by Apple's compiler. We do this before executing the actions.
2374 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 } # ac_fn_c_try_link
2380 # ac_fn_c_find_uintX_t LINENO BITS VAR
2381 # ------------------------------------
2382 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2384 ac_fn_c_find_uintX_t ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2388 $as_echo_n "checking for uint$2_t... " >&6; }
2389 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2390 $as_echo_n "(cached) " >&6
2393 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2394 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $ac_includes_default
2401 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2408 if ac_fn_c_try_compile "$LINENO"; then :
2413 eval "$3=\$ac_type" ;;
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 if test "x$as_val" = x""no; then :
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 } # ac_fn_c_find_uintX_t
2432 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2433 # ----------------------------------------------
2434 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2435 ac_fn_c_check_header_preproc ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2447 if ac_fn_c_try_cpp "$LINENO"; then :
2452 rm -f conftest.err conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_check_header_preproc
2461 # ac_fn_c_check_func LINENO FUNC VAR
2462 # ----------------------------------
2463 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2464 ac_fn_c_check_func ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2476 #define $2 innocuous_$2
2478 /* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $2 (); below.
2480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2481 <limits.h> exists even on freestanding compilers. */
2484 # include <limits.h>
2486 # include <assert.h>
2491 /* Override any GCC internal prototype to avoid an error.
2492 Use char because int might match the return type of a GCC
2493 builtin and then its argument prototype would still apply. */
2498 /* The GNU C library defines this for functions which it implements
2499 to always fail with ENOSYS. Some functions are actually named
2500 something starting with __ and the normal name is an alias. */
2501 #if defined __stub_$2 || defined __stub___$2
2513 if ac_fn_c_try_link "$LINENO"; then :
2518 rm -f core conftest.err conftest.$ac_objext \
2519 conftest$ac_exeext conftest.$ac_ext
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2523 $as_echo "$ac_res" >&6; }
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 } # ac_fn_c_check_func
2528 # ac_fn_cxx_try_cpp LINENO
2529 # ------------------------
2530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2531 ac_fn_cxx_try_cpp ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 if { { ac_try="$ac_cpp conftest.$ac_ext"
2536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2537 *) ac_try_echo
=$ac_try;;
2539 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2543 if test -s conftest.err
; then
2544 grep -v '^ *+' conftest.err
>conftest.er1
2545 cat conftest.er1
>&5
2546 mv -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; } >/dev
/null
&& {
2550 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2551 test ! -s conftest.err
2555 $as_echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2563 } # ac_fn_cxx_try_cpp
2565 # ac_fn_cxx_try_link LINENO
2566 # -------------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded.
2568 ac_fn_cxx_try_link
()
2570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2571 rm -f conftest.
$ac_objext conftest
$ac_exeext
2572 if { { ac_try
="$ac_link"
2574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>conftest.err
2581 if test -s conftest.err; then
2582 grep -v '^ *+' conftest.err >conftest.er1
2583 cat conftest.er1 >&5
2584 mv -f conftest.er1 conftest.err
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; } && {
2588 test -z "$ac_cxx_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest$ac_exeext && {
2591 test "$cross_compiling" = yes ||
2592 $as_test_x conftest$ac_exeext
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2603 # interfere with the next link command; also delete a directory that is
2604 # left behind by Apple's compiler. We do this before executing the actions.
2605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609 } # ac_fn_cxx_try_link
2610 cat >config.log <<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2614 It was created by $as_me, which was
2615 generated by GNU Autoconf 2.64. Invocation command line was
2627 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2628 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2629 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2630 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2631 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2633 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2634 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2636 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2637 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2638 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2639 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2640 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2641 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2642 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 $as_echo "PATH: $as_dir"
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2675 ac_must_keep_next=false
2681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2683 | -silent | --silent | --silen | --sile | --sil)
2686 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2691 as_fn_append ac_configure_args1 " '$ac_arg'"
2692 if test $ac_must_keep_next = true; then
2693 ac_must_keep_next=false # Got value, back to normal.
2696 *=* | --config-cache | -C | -disable-* | --disable-* \
2697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2699 | -with-* | --with-* | -without-* | --without-* | --x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2704 -* ) ac_must_keep_next=true ;;
2707 as_fn_append ac_configure_args " '$ac_arg'"
2712 { ac_configure_args0=; unset ac_configure_args0;}
2713 { ac_configure_args1=; unset ac_configure_args1;}
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2726 ## ---------------- ##
2727 ## Cache variables. ##
2728 ## ---------------- ##
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2734 eval ac_val=\$$ac_var
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2749 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2764 ## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2773 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775 $as_echo "$ac_var='\''$ac_val'\''"
2779 if test -n "$ac_subst_files"; then
2781 ## ------------------- ##
2782 ## File substitutions. ##
2783 ## ------------------- ##
2786 for ac_var in $ac_subst_files
2788 eval ac_val=\$$ac_var
2790 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 $as_echo "$ac_var='\''$ac_val'\''"
2797 if test -s confdefs.h; then
2807 test "$ac_signal" != 0 &&
2808 $as_echo "$as_me: caught signal $ac_signal"
2809 $as_echo "$as_me: exit $exit_status"
2811 rm -f core *.core core.conftest.* &&
2812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2815 for ac_signal in 1 2 13 15; do
2816 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2821 rm -f -r conftest* confdefs.h
2823 $as_echo "/* confdefs.h */" > confdefs.h
2825 # Predefined preprocessor variables.
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_NAME "$PACKAGE_NAME"
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_STRING "$PACKAGE_STRING"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_URL "$PACKAGE_URL"
2852 # Let the site file select an alternate cache file if it wants to.
2853 # Prefer an explicitly selected file to automatically selected ones.
2856 if test -n "$CONFIG_SITE"; then
2857 ac_site_file1=$CONFIG_SITE
2858 elif test "x$prefix" != xNONE; then
2859 ac_site_file1=$prefix/share/config.site
2860 ac_site_file2=$prefix/etc/config.site
2862 ac_site_file1=$ac_default_prefix/share/config.site
2863 ac_site_file2=$ac_default_prefix/etc/config.site
2865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 test "x$ac_site_file" = xNONE && continue
2868 if test -r "$ac_site_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871 sed 's/^/| /' "$ac_site_file" >&5
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special
2878 # files actually), so we avoid doing that.
2879 if test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884 *) . "./$cache_file";;
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893 # Check that the precious variables saved in the cache have kept the same
2895 ac_cache_corrupted=false
2896 for ac_var in $ac_precious_vars; do
2897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2898 eval ac_new_set=\$ac_env_${ac_var}_set
2899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2900 eval ac_new_val=\$ac_env_${ac_var}_value
2901 case $ac_old_set,$ac_new_set in
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2904 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2905 ac_cache_corrupted=: ;;
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2908 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2912 if test "x$ac_old_val" != "x$ac_new_val"; then
2913 # differences in whitespace do not lead to failure.
2914 ac_old_val_w=`echo x
$ac_old_val`
2915 ac_new_val_w=`echo x
$ac_new_val`
2916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2919 ac_cache_corrupted=:
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2923 eval $ac_var=\$ac_old_val
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2926 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2928 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2931 # Pass precious variables to config.status.
2932 if test "$ac_new_set" = set; then
2934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2935 *) ac_arg=$ac_var=$ac_new_val ;;
2937 case " $ac_configure_args " in
2938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2939 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2943 if $ac_cache_corrupted; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2948 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2950 ## -------------------- ##
2951 ## Main body of script. ##
2952 ## -------------------- ##
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2968 gcc_version=`cat $srcdir/BASE-VER
`
2970 # Determine the host, build, and target systems
2972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973 for ac_t in install-sh install.sh shtool; do
2974 if test -f "$ac_dir/$ac_t"; then
2976 ac_install_sh="$ac_aux_dir/$ac_t -c"
2981 if test -z "$ac_aux_dir"; then
2982 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 # These three variables are undocumented and unsupported,
2986 # and are intended to be withdrawn in a future Autoconf release.
2987 # They can cause serious problems if a builder's source tree is in a directory
2988 # whose full name contains unusual characters.
2989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2994 # Make sure we can run config.sub.
2995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2996 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2999 $as_echo_n "checking build system type... " >&6; }
3000 if test "${ac_cv_build+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3003 ac_build_alias=$build_alias
3004 test "x$ac_build_alias" = x &&
3005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3006 test "x$ac_build_alias" = x &&
3007 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3008 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3009 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3013 $as_echo "$ac_cv_build" >&6; }
3014 case $ac_cv_build in
3016 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3019 ac_save_IFS=$IFS; IFS='-'
3025 # Remember, the first character of IFS is used to create $*,
3026 # except with old shells:
3029 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3033 $as_echo_n "checking host system type... " >&6; }
3034 if test "${ac_cv_host+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test "x$host_alias" = x; then
3038 ac_cv_host=$ac_cv_build
3040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3041 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3046 $as_echo "$ac_cv_host" >&6; }
3049 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3052 ac_save_IFS=$IFS; IFS='-'
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3062 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3066 $as_echo_n "checking target system type... " >&6; }
3067 if test "${ac_cv_target+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3070 if test "x$target_alias" = x; then
3071 ac_cv_target=$ac_cv_host
3073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3074 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3079 $as_echo "$ac_cv_target" >&6; }
3080 case $ac_cv_target in
3082 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3084 target=$ac_cv_target
3085 ac_save_IFS=$IFS; IFS='-'
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3095 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3098 # The aliases save the names the user supplied, while $host etc.
3099 # will get canonicalized.
3100 test -n "$target_alias" &&
3101 test "$program_prefix$program_suffix$program_transform_name" = \
3103 program_prefix=${target_alias}-
3105 # Determine the noncanonical target name, for directory use.
3106 case ${build_alias} in
3107 "") build_noncanonical=${build} ;;
3108 *) build_noncanonical=${build_alias} ;;
3111 case ${host_alias} in
3112 "") host_noncanonical=${build_noncanonical} ;;
3113 *) host_noncanonical=${host_alias} ;;
3116 case ${target_alias} in
3117 "") target_noncanonical=${host_noncanonical} ;;
3118 *) target_noncanonical=${target_alias} ;;
3124 # Determine the target- and build-specific subdirectories
3126 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3127 # have matching libraries, they should use host libraries: Makefile.tpl
3128 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3129 # However, they still use the build modules, because the corresponding
3130 # host modules (e.g. bison) are only built for the host when bootstrap
3132 # - build_subdir is where we find build modules, and never changes.
3133 # - build_libsubdir is where we find build libraries, and can be overridden.
3135 # Prefix 'build-' so this never conflicts with target_subdir.
3136 build_subdir="build-${build_noncanonical}"
3138 # Check whether --with-build-libsubdir was given.
3139 if test "${with_build_libsubdir+set}" = set; then :
3140 withval=$with_build_libsubdir; build_libsubdir="$withval"
3142 build_libsubdir="$build_subdir"
3145 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3146 if ( test $srcdir = . && test -d gcc ) \
3147 || test -d $srcdir/../host-${host_noncanonical}; then
3148 host_subdir="host-${host_noncanonical}"
3153 target_subdir=${target_noncanonical}
3156 # Set program_transform_name
3157 test "$program_prefix" != NONE &&
3158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3159 # Use a double $ so make ignores it.
3160 test "$program_suffix" != NONE &&
3161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3162 # Double any \ or $.
3163 # By default was `s
,x
,x
', remove it if useless.
3164 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3165 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3168 # Check for bogus environment variables.
3169 # Test if LIBRARY_PATH contains the notation for the current directory
3170 # since this would lead to problems installing/building glibc.
3171 # LIBRARY_PATH contains the current directory if one of the following
3173 # - one of the terminals (":" and ";") is the first or last sign
3174 # - two terminals occur directly after each other
3175 # - the path contains an element with a dot in it
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3177 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3178 case ${LIBRARY_PATH} in
3179 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3180 library_path_setting="contains current directory"
3183 library_path_setting="ok"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3187 $as_echo "$library_path_setting" >&6; }
3188 if test "$library_path_setting" != "ok"; then
3190 *** LIBRARY_PATH shouldn't contain the current directory when
3191 *** building gcc. Please change the environment variable
3192 *** and run configure again.
" "$LINENO" 5
3195 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3196 # since this would lead to problems installing/building glibc.
3197 # GCC_EXEC_PREFIX contains the current directory if one of the following
3199 # - one of the terminals (":" and ";") is the first or last sign
3200 # - two terminals occur directly after each other
3201 # - the path contains an element with a dot in it
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3203 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3204 case ${GCC_EXEC_PREFIX} in
3205 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3206 gcc_exec_prefix_setting="contains current directory
"
3209 gcc_exec_prefix_setting="ok
"
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3213 $as_echo "$gcc_exec_prefix_setting" >&6; }
3214 if test "$gcc_exec_prefix_setting" != "ok
"; then
3216 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3217 *** building gcc. Please change the environment variable
3218 *** and run configure again." "$LINENO" 5
3225 # Specify the local prefix
3228 # Check whether --with-local-prefix was given.
3229 if test "${with_local_prefix+set}" = set; then :
3230 withval=$with_local_prefix; case "${withval}" in
3231 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3233 *) local_prefix=$with_local_prefix ;;
3238 # Default local prefix if it is empty
3239 if test x$local_prefix = x; then
3240 local_prefix=/usr/local
3243 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3244 # passed in by the toplevel make and thus we'd get different behavior
3245 # depending on where we built the sources.
3246 gcc_gxx_include_dir
=
3247 # Specify the g++ header file directory
3249 # Check whether --with-gxx-include-dir was given.
3250 if test "${with_gxx_include_dir+set}" = set; then :
3251 withval
=$with_gxx_include_dir; case "${withval}" in
3252 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3254 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3259 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3260 if test x
${gcc_gxx_include_dir} = x
; then
3261 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3262 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3264 libstdcxx_incdir
='include/c++/$(version)'
3265 if test x
$host != x
$target; then
3266 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3268 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273 # Check whether --with-cpp_install_dir was given.
3274 if test "${with_cpp_install_dir+set}" = set; then :
3275 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3276 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3277 elif test x
$withval != xno
; then
3278 cpp_install_dir
=$withval
3283 # We would like to our source tree to be readonly. However when releases or
3284 # pre-releases are generated, the flex/bison generated files as well as the
3285 # various formats of manuals need to be included along with the rest of the
3286 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3290 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3291 # Check whether --enable-generated-files-in-srcdir was given.
3292 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3293 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3295 generated_files_in_srcdir
=no
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3300 $as_echo "$generated_files_in_srcdir" >&6; }
3302 if test "$generated_files_in_srcdir" = "yes"; then
3309 # -------------------
3310 # Find default linker
3311 # -------------------
3315 # Check whether --with-gnu-ld was given.
3316 if test "${with_gnu_ld+set}" = set; then :
3317 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3323 # With pre-defined ld
3325 # Check whether --with-ld was given.
3326 if test "${with_ld+set}" = set; then :
3327 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3330 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3331 if test ! -x "$DEFAULT_LINKER"; then
3332 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3333 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3337 cat >>confdefs.h
<<_ACEOF
3338 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3343 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3345 cat >>confdefs.h
<<_ACEOF
3346 #define HAVE_GNU_LD $gnu_ld
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3351 $as_echo_n "checking whether a default linker was specified... " >&6; }
3352 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3353 if test x
"$gnu_ld_flag" = x
"no"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3355 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3358 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3365 # With demangler in GNU ld
3367 # Check whether --with-demangler-in-ld was given.
3368 if test "${with_demangler_in_ld+set}" = set; then :
3369 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3375 # ----------------------
3376 # Find default assembler
3377 # ----------------------
3381 # Check whether --with-gnu-as was given.
3382 if test "${with_gnu_as+set}" = set; then :
3383 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3390 # Check whether --with-as was given.
3391 if test "${with_as+set}" = set; then :
3392 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3395 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3396 if test ! -x "$DEFAULT_ASSEMBLER"; then
3397 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3398 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3402 cat >>confdefs.h
<<_ACEOF
3403 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3408 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3410 cat >>confdefs.h
<<_ACEOF
3411 #define HAVE_GNU_AS $gnu_as
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3416 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3417 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3418 if test x
"$gas_flag" = x
"no"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3420 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3423 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3434 # If a non-executable a.out is present (e.g. created by GNU as above even if
3435 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3436 # file, even when creating an executable, so an execution test fails.
3437 # Remove possible default executable files to avoid this.
3439 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3440 # Autoconf includes it.
3441 rm -f a.out a.exe b.out
3443 # Find the native compiler
3445 ac_cpp
='$CPP $CPPFLAGS'
3446 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3449 if test -n "$ac_tool_prefix"; then
3450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3451 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_CC+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC
="$CC" # Let the user override the test.
3460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir
=.
3465 for ac_exec_ext
in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3488 if test -z "$ac_cv_prog_CC"; then
3490 # Extract the first word of "gcc", so it can be a program name with args.
3491 set dummy gcc
; ac_word
=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir
=.
3505 for ac_exec_ext
in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC
="gcc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3526 if test "x$ac_ct_CC" = x
; then
3529 case $cross_compiling:$ac_tool_warned in
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned
=yes ;;
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC
="$CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir
=.
3558 for ac_exec_ext
in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3582 if test -z "$CC"; then
3583 # Extract the first word of "cc", so it can be a program name with args.
3584 set dummy cc
; ac_word
=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC
="$CC" # Let the user override the test.
3594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir
=.
3599 for ac_exec_ext
in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3602 ac_prog_rejected
=yes
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 if test $ac_prog_rejected = yes; then
3614 # We found a bogon in the path, so make sure we never use it.
3615 set dummy
$ac_cv_prog_CC
3617 if test $# != 0; then
3618 # We chose a different compiler from the bogus one.
3619 # However, it has the same basename, so the bogon will be chosen
3620 # first if we set CC to just the basename; use the full file name.
3622 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog
in cl.exe
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC
="$CC" # Let the user override the test.
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 test -n "$CC" && break
3682 if test -z "$CC"; then
3684 for ac_prog
in cl.exe
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy
$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_ac_ct_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$ac_ct_CC"; then
3694 ac_cv_prog_ac_ct_CC
="$ac_ct_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_ac_ct_CC
="$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3714 if test -n "$ac_ct_CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3716 $as_echo "$ac_ct_CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$ac_ct_CC" && break
3726 if test "x$ac_ct_CC" = x
; then
3729 case $cross_compiling:$ac_tool_warned in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733 ac_tool_warned
=yes ;;
3742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error
"no acceptable C compiler found in \$PATH
3745 See \`config.log' for more details." "$LINENO" 5; }
3747 # Provide some information about the compiler.
3748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3751 for ac_option
in --version -v -V -qversion; do
3752 { { ac_try
="$ac_compiler $ac_option >&5"
3754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3761 if test -s conftest.err; then
3763 ... rest of stderr output deleted ...
3764 10q' conftest.err >conftest.er1
3765 cat conftest.er1 >&5
3766 rm -f conftest.er1 conftest.err
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 ac_clean_files_save=$ac_clean_files
3784 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3785 # Try to create an executable without -o first, disregard a.out.
3786 # It will help us diagnose broken compilers, and finding out an intuition
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3789 $as_echo_n "checking for C compiler default output file name... " >&6; }
3790 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3792 # The possible output files:
3793 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3796 for ac_file in $ac_files
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3805 if { { ac_try="$ac_link_default"
3807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3808 *) ac_try_echo
=$ac_try;;
3810 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link_default") 2>&5
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; then :
3816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3817 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3818 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3819 # so that the user can short-circuit this test for compilers unknown to
3821 for ac_file
in $ac_files ''
3823 test -f "$ac_file" ||
continue
3825 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3828 # We found the default executable, but exeext='' is most
3832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3834 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 # We set ac_cv_exeext here because the later test for it is not
3837 # safe: cross compilers may not add the suffix if given an `-o'
3838 # argument, so we may need to know it at that point already.
3839 # Even if this section looks crufty: it has the advantage of
3846 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3852 $as_echo "$ac_file" >&6; }
3853 if test -z "$ac_file"; then :
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.
$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 { as_fn_set_status
77
3860 as_fn_error
"C compiler cannot create executables
3861 See \`config.log' for more details." "$LINENO" 5; }; }
3863 ac_exeext
=$ac_cv_exeext
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 # If not cross compiling, check that we can run a simple program.
3870 if test "$cross_compiling" != yes; then
3871 if { ac_try
='./$ac_file'
3872 { { case "(($ac_try" in
3873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_try") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; }; then
3884 if test "$cross_compiling" = maybe; then
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "cannot run C compiled programs.
3890 If you meant to cross compile
, use \
`--host'.
3891 See \`config.log
' for more details." "$LINENO" 5; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3899 ac_clean_files=$ac_clean_files_save
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3903 $as_echo_n "checking whether we are cross compiling... " >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3905 $as_echo "$cross_compiling" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3908 $as_echo_n "checking for suffix of executables... " >&6; }
3909 if { { ac_try="$ac_link"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3921 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3922 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3924 for ac_file
in conftest.exe conftest conftest.
*; do
3925 test -f "$ac_file" ||
continue
3927 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3928 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3937 See \`config.log' for more details." "$LINENO" 5; }
3939 rm -f conftest
$ac_cv_exeext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3941 $as_echo "$ac_cv_exeext" >&6; }
3943 rm -f conftest.
$ac_ext
3944 EXEEXT
=$ac_cv_exeext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3947 $as_echo_n "checking for suffix of object files... " >&6; }
3948 if test "${ac_cv_objext+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 rm -f conftest.o conftest.obj
3963 if { { ac_try
="$ac_compile"
3965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compile") 2>&5
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 for ac_file in conftest.o conftest.obj conftest.*; do
3975 test -f "$ac_file" || continue;
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error "cannot compute suffix of object files
: cannot compile
3989 See \
`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3994 $as_echo "$ac_cv_objext" >&6; }
3995 OBJEXT=$ac_cv_objext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3999 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4016 if ac_fn_c_try_compile "$LINENO"; then :
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027 if test $ac_compiler_gnu = yes; then
4032 ac_test_CFLAGS=${CFLAGS+set}
4033 ac_save_CFLAGS=$CFLAGS
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4036 if test "${ac_cv_prog_cc_g+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 $as_echo "$ac_cv_prog_cc_g" >&6; }
4097 if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4106 if test "$GCC" = yes; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4117 ac_cv_prog_cc_c89=no
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4139 s = g (p, va_arg (v,int));
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4182 rm -f conftest.$ac_ext
4187 case "x$ac_cv_prog_cc_c89" in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 if test "x$CC" != xcc; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4211 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4214 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4216 set dummy $CC; ac_cc=`$as_echo "$2" |
4217 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4218 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4219 $as_echo_n "(cached) " >&6
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4232 # Make sure it works both with $CC and with simple cc.
4233 # We do the test twice because some compilers refuse to overwrite an
4234 # existing .o file with -o, though they will create one.
4235 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4237 if { { case "(($ac_try" in
4238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4239 *) ac_try_echo
=$ac_try;;
4241 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_try") 2>&5
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; } &&
4247 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_try") 2>&5
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; };
4258 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4259 if test "x$CC" != xcc; then
4260 # Test first that cc exists at all.
4261 if { ac_try='cc -c conftest.$ac_ext >&5'
4262 { { case "(($ac_try" in
4263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4264 *) ac_try_echo
=$ac_try;;
4266 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_try") 2>&5
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; }; then
4272 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4274 if { { case "(($ac_try" in
4275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$ac_try") 2>&5
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; } &&
4284 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4286 *) ac_try_echo
=$ac_try;;
4288 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; };
4298 # cc exists but doesn't like -o.
4299 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4304 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4306 rm -f core conftest
*
4309 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4316 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4320 # expand $ac_aux_dir to an absolute path
4321 am_aux_dir
=`cd $ac_aux_dir && pwd`
4323 # FIXME: we rely on the cache variable name because
4324 # there is no other way.
4326 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4327 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4328 if test "$am_t" != yes; then
4329 # Losing compiler, so override with the script.
4330 # FIXME: It is wrong to rewrite CC.
4331 # But if we don't then we get into trouble of one sort or another.
4332 # A longer-term fix would be to have automake use am__CC in this case,
4333 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4334 CC
="$am_aux_dir/compile $CC"
4339 ac_cpp
='$CXXCPP $CPPFLAGS'
4340 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4343 if test -z "$CXX"; then
4344 if test -n "$CCC"; then
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$CXX"; then
4358 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir
=.
4365 for ac_exec_ext
in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 if test -n "$CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4380 $as_echo "$CXX" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$CXX" && break
4390 if test -z "$CXX"; 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_prog", so it can be a program name with args.
4395 set dummy
$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_ac_ct_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$ac_ct_CXX"; then
4402 ac_cv_prog_ac_ct_CXX
="$ac_ct_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_ac_ct_CXX
="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4422 if test -n "$ac_ct_CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4424 $as_echo "$ac_ct_CXX" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$ac_ct_CXX" && break
4434 if test "x$ac_ct_CXX" = x
; then
4437 case $cross_compiling:$ac_tool_warned in
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned
=yes ;;
4449 # Provide some information about the compiler.
4450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4453 for ac_option
in --version -v -V -qversion; do
4454 { { ac_try
="$ac_compiler $ac_option >&5"
4456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4463 if test -s conftest.err; then
4465 ... rest of stderr output deleted ...
4466 10q' conftest.err >conftest.er1
4467 cat conftest.er1 >&5
4468 rm -f conftest.er1 conftest.err
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4475 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4476 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4503 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4504 if test $ac_compiler_gnu = yes; then
4509 ac_test_CXXFLAGS=${CXXFLAGS+set}
4510 ac_save_CXXFLAGS=$CXXFLAGS
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4512 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4513 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4517 ac_cxx_werror_flag=yes
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_cv_prog_cxx_g=yes
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4562 if ac_fn_cxx_try_compile "$LINENO"; then :
4563 ac_cv_prog_cxx_g=yes
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4573 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4574 if test "$ac_test_CXXFLAGS" = set; then
4575 CXXFLAGS=$ac_save_CXXFLAGS
4576 elif test $ac_cv_prog_cxx_g = yes; then
4577 if test "$GXX" = yes; then
4583 if test "$GXX" = yes; then
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$GNATBIND"; then
4607 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 GNATBIND=$ac_cv_prog_GNATBIND
4627 if test -n "$GNATBIND"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4629 $as_echo "$GNATBIND" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4637 if test -z "$ac_cv_prog_GNATBIND"; then
4638 ac_ct_GNATBIND=$GNATBIND
4639 # Extract the first word of "gnatbind", so it can be a program name with args.
4640 set dummy gnatbind; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$ac_ct_GNATBIND"; then
4647 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4667 if test -n "$ac_ct_GNATBIND"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4669 $as_echo "$ac_ct_GNATBIND" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_ct_GNATBIND" = x; then
4678 case $cross_compiling:$ac_tool_warned in
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4684 GNATBIND=$ac_ct_GNATBIND
4687 GNATBIND="$ac_cv_prog_GNATBIND"
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$GNATMAKE"; then
4699 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 GNATMAKE=$ac_cv_prog_GNATMAKE
4719 if test -n "$GNATMAKE"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4721 $as_echo "$GNATMAKE" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4729 if test -z "$ac_cv_prog_GNATMAKE"; then
4730 ac_ct_GNATMAKE=$GNATMAKE
4731 # Extract the first word of "gnatmake", so it can be a program name with args.
4732 set dummy gnatmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$ac_ct_GNATMAKE"; then
4739 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4759 if test -n "$ac_ct_GNATMAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4761 $as_echo "$ac_ct_GNATMAKE" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4767 if test "x$ac_ct_GNATMAKE" = x; then
4770 case $cross_compiling:$ac_tool_warned in
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4776 GNATMAKE=$ac_ct_GNATMAKE
4779 GNATMAKE="$ac_cv_prog_GNATMAKE"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4783 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4784 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4787 cat >conftest.adb <<EOF
4788 procedure conftest is begin null; end conftest;
4790 acx_cv_cc_gcc_supports_ada=no
4791 # There is a bug in old released versions of GCC which causes the
4792 # driver to exit successfully when the appropriate language module
4793 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4794 # Therefore we must check for the error message as well as an
4795 # unsuccessful exit.
4796 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4797 # given a .adb file, but produce no object file. So we must check
4798 # if an object file was really produced to guard against this.
4799 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4800 if test x"$errors" = x && test -f conftest.$ac_objext; then
4801 acx_cv_cc_gcc_supports_ada=yes
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4806 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4808 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4815 # autoconf is lame and doesn't give us any substitution variable for this.
4816 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4817 NO_MINUS_C_MINUS_O=yes
4819 OUTPUT_OPTION='-o $@'
4824 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4825 # optimizations to be activated explicitly by the toplevel.
4827 */prev-gcc/xgcc*) ;;
4828 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4832 # -------------------------
4833 # Check C compiler features
4834 # -------------------------
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4844 # On Suns, sometimes $CPP names a directory.
4845 if test -n "$CPP" && test -d "$CPP"; then
4848 if test -z "$CPP"; then
4849 if test "${ac_cv_prog_CPP+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4852 # Double quotes because CPP needs to be expanded
4853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4856 for ac_c_preproc_warn_flag in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4867 # include <limits.h>
4869 # include <assert.h>
4873 if ac_fn_c_try_cpp "$LINENO"; then :
4876 # Broken: fails on valid input.
4879 rm -f conftest.err conftest.$ac_ext
4881 # OK, works on sane cases. Now check whether nonexistent headers
4882 # can be detected and how.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888 # Broken: success on invalid input.
4891 # Passes both tests.
4895 rm -f conftest.err conftest.$ac_ext
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.
$ac_ext
4900 if $ac_preproc_ok; then :
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4913 $as_echo "$CPP" >&6; }
4915 for ac_c_preproc_warn_flag
in '' yes
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4926 # include <limits.h>
4928 # include <assert.h>
4932 if ac_fn_c_try_cpp
"$LINENO"; then :
4935 # Broken: fails on valid input.
4938 rm -f conftest.err conftest.
$ac_ext
4940 # OK, works on sane cases. Now check whether nonexistent headers
4941 # can be detected and how.
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4946 if ac_fn_c_try_cpp
"$LINENO"; then :
4947 # Broken: success on invalid input.
4950 # Passes both tests.
4954 rm -f conftest.err conftest.
$ac_ext
4957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4958 rm -f conftest.err conftest.
$ac_ext
4959 if $ac_preproc_ok; then :
4962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4965 See \`config.log' for more details." "$LINENO" 5; }
4969 ac_cpp
='$CPP $CPPFLAGS'
4970 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4977 if test "${ac_cv_path_GREP+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4980 if test -z "$GREP"; then
4981 ac_path_GREP_found
=false
4982 # Loop through the user's path and test for each of PROGNAME-LIST
4983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4984 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4987 test -z "$as_dir" && as_dir
=.
4988 for ac_prog
in grep ggrep
; do
4989 for ac_exec_ext
in '' $ac_executable_extensions; do
4990 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4992 # Check for GNU ac_path_GREP and select it if it is found.
4993 # Check for GNU $ac_path_GREP
4994 case `"$ac_path_GREP" --version 2>&1` in
4996 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4999 $as_echo_n 0123456789 >"conftest.in"
5002 cat "conftest.in" "conftest.in" >"conftest.tmp"
5003 mv "conftest.tmp" "conftest.in"
5004 cp "conftest.in" "conftest.nl"
5005 $as_echo 'GREP' >> "conftest.nl"
5006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5007 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5008 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5010 # Best one so far, save it but keep looking for a better one
5011 ac_cv_path_GREP
="$ac_path_GREP"
5012 ac_path_GREP_max
=$ac_count
5014 # 10*(2^10) chars as input seems more than enough
5015 test $ac_count -gt 10 && break
5017 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5020 $ac_path_GREP_found && break 3
5025 if test -z "$ac_cv_path_GREP"; then
5026 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5029 ac_cv_path_GREP
=$GREP
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5034 $as_echo "$ac_cv_path_GREP" >&6; }
5035 GREP
="$ac_cv_path_GREP"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5039 $as_echo_n "checking for egrep... " >&6; }
5040 if test "${ac_cv_path_EGREP+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5043 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5044 then ac_cv_path_EGREP
="$GREP -E"
5046 if test -z "$EGREP"; then
5047 ac_path_EGREP_found
=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5053 test -z "$as_dir" && as_dir
=.
5054 for ac_prog
in egrep; do
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5058 # Check for GNU ac_path_EGREP and select it if it is found.
5059 # Check for GNU $ac_path_EGREP
5060 case `"$ac_path_EGREP" --version 2>&1` in
5062 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5065 $as_echo_n 0123456789 >"conftest.in"
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo 'EGREP' >> "conftest.nl"
5072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5073 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5074 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_EGREP
="$ac_path_EGREP"
5078 ac_path_EGREP_max
=$ac_count
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5083 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5086 $ac_path_EGREP_found && break 3
5091 if test -z "$ac_cv_path_EGREP"; then
5092 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5095 ac_cv_path_EGREP
=$EGREP
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5101 $as_echo "$ac_cv_path_EGREP" >&6; }
5102 EGREP
="$ac_cv_path_EGREP"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5106 $as_echo_n "checking for ANSI C header files... " >&6; }
5107 if test "${ac_cv_header_stdc+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5125 if ac_fn_c_try_compile
"$LINENO"; then :
5126 ac_cv_header_stdc
=yes
5128 ac_cv_header_stdc
=no
5130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5132 if test $ac_cv_header_stdc = yes; then
5133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "memchr" >/dev
/null
2>&1; then :
5143 ac_cv_header_stdc
=no
5149 if test $ac_cv_header_stdc = yes; then
5150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157 $EGREP "free" >/dev
/null
2>&1; then :
5160 ac_cv_header_stdc
=no
5166 if test $ac_cv_header_stdc = yes; then
5167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5168 if test "$cross_compiling" = yes; then :
5171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5175 #if ((' ' & 0x0FF) == 0x020)
5176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5179 # define ISLOWER(c) \
5180 (('a' <= (c) && (c) <= 'i') \
5181 || ('j' <= (c) && (c) <= 'r') \
5182 || ('s' <= (c) && (c) <= 'z'))
5183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5191 for (i = 0; i < 256; i++)
5192 if (XOR (islower (i), ISLOWER (i))
5193 || toupper (i) != TOUPPER (i))
5198 if ac_fn_c_try_run
"$LINENO"; then :
5201 ac_cv_header_stdc
=no
5203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5210 $as_echo "$ac_cv_header_stdc" >&6; }
5211 if test $ac_cv_header_stdc = yes; then
5213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5218 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5219 inttypes.h stdint.h unistd.h
5221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5222 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5224 eval as_val
=\$
$as_ac_Header
5225 if test "x$as_val" = x
""yes; then :
5226 cat >>confdefs.h
<<_ACEOF
5227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5237 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5244 if test "$MINIX" = yes; then
5246 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5249 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252 $as_echo "#define _MINIX 1" >>confdefs.h
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5258 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5259 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5265 # define __EXTENSIONS__ 1
5266 $ac_includes_default
5275 if ac_fn_c_try_compile
"$LINENO"; then :
5276 ac_cv_safe_to_define___extensions__
=yes
5278 ac_cv_safe_to_define___extensions__
=no
5280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5283 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5284 test $ac_cv_safe_to_define___extensions__ = yes &&
5285 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5287 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5293 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5297 ac_cpp
='$CPP $CPPFLAGS'
5298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5303 # On Suns, sometimes $CPP names a directory.
5304 if test -n "$CPP" && test -d "$CPP"; then
5307 if test -z "$CPP"; then
5308 if test "${ac_cv_prog_CPP+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5311 # Double quotes because CPP needs to be expanded
5312 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5315 for ac_c_preproc_warn_flag
in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5326 # include <limits.h>
5328 # include <assert.h>
5332 if ac_fn_c_try_cpp
"$LINENO"; then :
5335 # Broken: fails on valid input.
5338 rm -f conftest.err conftest.
$ac_ext
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5346 if ac_fn_c_try_cpp
"$LINENO"; then :
5347 # Broken: success on invalid input.
5350 # Passes both tests.
5354 rm -f conftest.err conftest.
$ac_ext
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.err conftest.
$ac_ext
5359 if $ac_preproc_ok; then :
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5372 $as_echo "$CPP" >&6; }
5374 for ac_c_preproc_warn_flag
in '' yes
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5385 # include <limits.h>
5387 # include <assert.h>
5391 if ac_fn_c_try_cpp
"$LINENO"; then :
5394 # Broken: fails on valid input.
5397 rm -f conftest.err conftest.
$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <ac_nonexistent.h>
5405 if ac_fn_c_try_cpp
"$LINENO"; then :
5406 # Broken: success on invalid input.
5409 # Passes both tests.
5413 rm -f conftest.err conftest.
$ac_ext
5416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5417 rm -f conftest.err conftest.
$ac_ext
5418 if $ac_preproc_ok; then :
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5424 See \`config.log' for more details." "$LINENO" 5; }
5428 ac_cpp
='$CPP $CPPFLAGS'
5429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5434 $as_echo_n "checking for inline... " >&6; }
5435 if test "${ac_cv_c_inline+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5439 for ac_kw
in inline __inline__ __inline
; do
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5444 static $ac_kw foo_t static_foo () {return 0; }
5445 $ac_kw foo_t foo () {return 0; }
5449 if ac_fn_c_try_compile
"$LINENO"; then :
5450 ac_cv_c_inline
=$ac_kw
5452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 test "$ac_cv_c_inline" != no
&& break
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5458 $as_echo "$ac_cv_c_inline" >&6; }
5460 case $ac_cv_c_inline in
5463 case $ac_cv_c_inline in
5465 *) ac_val
=$ac_cv_c_inline;;
5467 cat >>confdefs.h
<<_ACEOF
5469 #define inline $ac_val
5476 # sizeof(char) is 1 by definition.
5477 # The cast to long int works around a bug in the HP C Compiler
5478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5480 # This bug is HP SR number 8606223364.
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5482 $as_echo_n "checking size of void *... " >&6; }
5483 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5486 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5489 if test "$ac_cv_type_void_p" = yes; then
5490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5492 { as_fn_set_status
77
5493 as_fn_error
"cannot compute sizeof (void *)
5494 See \`config.log' for more details." "$LINENO" 5; }; }
5496 ac_cv_sizeof_void_p
=0
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5502 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5506 cat >>confdefs.h
<<_ACEOF
5507 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5511 # The cast to long int works around a bug in the HP C Compiler
5512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5514 # This bug is HP SR number 8606223364.
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5516 $as_echo_n "checking size of short... " >&6; }
5517 if test "${ac_cv_sizeof_short+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5520 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5523 if test "$ac_cv_type_short" = yes; then
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 { as_fn_set_status
77
5527 as_fn_error
"cannot compute sizeof (short)
5528 See \`config.log' for more details." "$LINENO" 5; }; }
5530 ac_cv_sizeof_short
=0
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5536 $as_echo "$ac_cv_sizeof_short" >&6; }
5540 cat >>confdefs.h
<<_ACEOF
5541 #define SIZEOF_SHORT $ac_cv_sizeof_short
5545 # The cast to long int works around a bug in the HP C Compiler
5546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5548 # This bug is HP SR number 8606223364.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5550 $as_echo_n "checking size of int... " >&6; }
5551 if test "${ac_cv_sizeof_int+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5554 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5557 if test "$ac_cv_type_int" = yes; then
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 { as_fn_set_status
77
5561 as_fn_error
"cannot compute sizeof (int)
5562 See \`config.log' for more details." "$LINENO" 5; }; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5570 $as_echo "$ac_cv_sizeof_int" >&6; }
5574 cat >>confdefs.h
<<_ACEOF
5575 #define SIZEOF_INT $ac_cv_sizeof_int
5579 # The cast to long int works around a bug in the HP C Compiler
5580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5582 # This bug is HP SR number 8606223364.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5584 $as_echo_n "checking size of long... " >&6; }
5585 if test "${ac_cv_sizeof_long+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5588 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5591 if test "$ac_cv_type_long" = yes; then
5592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { as_fn_set_status
77
5595 as_fn_error
"cannot compute sizeof (long)
5596 See \`config.log' for more details." "$LINENO" 5; }; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5604 $as_echo "$ac_cv_sizeof_long" >&6; }
5608 cat >>confdefs.h
<<_ACEOF
5609 #define SIZEOF_LONG $ac_cv_sizeof_long
5613 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5614 if test "x$ac_cv_type_long_long" = x
""yes; then :
5616 cat >>confdefs.h
<<_ACEOF
5617 #define HAVE_LONG_LONG 1
5620 # The cast to long int works around a bug in the HP C Compiler
5621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5623 # This bug is HP SR number 8606223364.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5625 $as_echo_n "checking size of long long... " >&6; }
5626 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5629 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5632 if test "$ac_cv_type_long_long" = yes; then
5633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5635 { as_fn_set_status
77
5636 as_fn_error
"cannot compute sizeof (long long)
5637 See \`config.log' for more details." "$LINENO" 5; }; }
5639 ac_cv_sizeof_long_long
=0
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5649 cat >>confdefs.h
<<_ACEOF
5650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5656 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5657 if test "x$ac_cv_type___int64" = x
""yes; then :
5659 cat >>confdefs.h
<<_ACEOF
5660 #define HAVE___INT64 1
5663 # The cast to long int works around a bug in the HP C Compiler
5664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5666 # This bug is HP SR number 8606223364.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5668 $as_echo_n "checking size of __int64... " >&6; }
5669 if test "${ac_cv_sizeof___int64+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5672 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5675 if test "$ac_cv_type___int64" = yes; then
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 { as_fn_set_status
77
5679 as_fn_error
"cannot compute sizeof (__int64)
5680 See \`config.log' for more details." "$LINENO" 5; }; }
5682 ac_cv_sizeof___int64
=0
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5688 $as_echo "$ac_cv_sizeof___int64" >&6; }
5692 cat >>confdefs.h
<<_ACEOF
5693 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5699 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5700 case $ac_cv_c_int8_t in #(
5704 cat >>confdefs.h
<<_ACEOF
5705 #define int8_t $ac_cv_c_int8_t
5710 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5711 case $ac_cv_c_int16_t in #(
5715 cat >>confdefs.h
<<_ACEOF
5716 #define int16_t $ac_cv_c_int16_t
5721 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5722 case $ac_cv_c_int32_t in #(
5726 cat >>confdefs.h
<<_ACEOF
5727 #define int32_t $ac_cv_c_int32_t
5732 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5733 case $ac_cv_c_int64_t in #(
5737 cat >>confdefs.h
<<_ACEOF
5738 #define int64_t $ac_cv_c_int64_t
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5745 $as_echo_n "checking for long long int... " >&6; }
5746 if test "${ac_cv_type_long_long_int+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 /* For now, do not test the preprocessor; as of 2007 there are too many
5753 implementations with broken preprocessors. Perhaps this can
5754 be revisited in 2012. In the meantime, code should not expect
5755 #if to work with literals wider than 32 bits. */
5756 /* Test literals. */
5757 long long int ll = 9223372036854775807ll;
5758 long long int nll = -9223372036854775807LL;
5759 unsigned long long int ull = 18446744073709551615ULL;
5760 /* Test constant expressions. */
5761 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5763 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5769 /* Test availability of runtime routines for shift and division. */
5770 long long int llmax = 9223372036854775807ll;
5771 unsigned long long int ullmax = 18446744073709551615ull;
5772 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5773 | (llmax / ll) | (llmax % ll)
5774 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5775 | (ullmax / ull) | (ullmax % ull));
5781 if ac_fn_c_try_link
"$LINENO"; then :
5782 if test "$cross_compiling" = yes; then :
5783 ac_cv_type_long_long_int
=yes
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5790 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5791 # define LLONG_MAX (HALF - 1 + HALF)
5796 long long int n = 1;
5800 long long int m = n << i;
5803 if (LLONG_MAX / 2 < m)
5811 if ac_fn_c_try_run
"$LINENO"; then :
5812 ac_cv_type_long_long_int
=yes
5814 ac_cv_type_long_long_int
=no
5816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5821 ac_cv_type_long_long_int
=no
5823 rm -f core conftest.err conftest.
$ac_objext \
5824 conftest
$ac_exeext conftest.
$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5827 $as_echo "$ac_cv_type_long_long_int" >&6; }
5828 if test $ac_cv_type_long_long_int = yes; then
5830 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5836 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5837 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5839 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5842 test $ac_cv_type_long_long_int = yes \
5843 && ac_type
='long long int' \
5844 || ac_type
='long int'
5846 cat >>confdefs.h
<<_ACEOF
5847 #define intmax_t $ac_type
5854 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5855 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5857 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5860 for ac_type
in 'int' 'long int' 'long long int'; do
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 $ac_includes_default
5867 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5874 if ac_fn_c_try_compile
"$LINENO"; then :
5876 cat >>confdefs.h
<<_ACEOF
5877 #define intptr_t $ac_type
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 test -z "$ac_type" && break
5888 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5889 case $ac_cv_c_uint8_t in #(
5893 $as_echo "#define _UINT8_T 1" >>confdefs.h
5896 cat >>confdefs.h
<<_ACEOF
5897 #define uint8_t $ac_cv_c_uint8_t
5902 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5903 case $ac_cv_c_uint16_t in #(
5908 cat >>confdefs.h
<<_ACEOF
5909 #define uint16_t $ac_cv_c_uint16_t
5914 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5915 case $ac_cv_c_uint32_t in #(
5919 $as_echo "#define _UINT32_T 1" >>confdefs.h
5922 cat >>confdefs.h
<<_ACEOF
5923 #define uint32_t $ac_cv_c_uint32_t
5928 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5929 case $ac_cv_c_uint64_t in #(
5933 $as_echo "#define _UINT64_T 1" >>confdefs.h
5936 cat >>confdefs.h
<<_ACEOF
5937 #define uint64_t $ac_cv_c_uint64_t
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5944 $as_echo_n "checking for unsigned long long int... " >&6; }
5945 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 /* For now, do not test the preprocessor; as of 2007 there are too many
5952 implementations with broken preprocessors. Perhaps this can
5953 be revisited in 2012. In the meantime, code should not expect
5954 #if to work with literals wider than 32 bits. */
5955 /* Test literals. */
5956 long long int ll = 9223372036854775807ll;
5957 long long int nll = -9223372036854775807LL;
5958 unsigned long long int ull = 18446744073709551615ULL;
5959 /* Test constant expressions. */
5960 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5962 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5968 /* Test availability of runtime routines for shift and division. */
5969 long long int llmax = 9223372036854775807ll;
5970 unsigned long long int ullmax = 18446744073709551615ull;
5971 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5972 | (llmax / ll) | (llmax % ll)
5973 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5974 | (ullmax / ull) | (ullmax % ull));
5980 if ac_fn_c_try_link
"$LINENO"; then :
5981 ac_cv_type_unsigned_long_long_int
=yes
5983 ac_cv_type_unsigned_long_long_int
=no
5985 rm -f core conftest.err conftest.
$ac_objext \
5986 conftest
$ac_exeext conftest.
$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5989 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5990 if test $ac_cv_type_unsigned_long_long_int = yes; then
5992 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5998 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5999 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6001 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6004 test $ac_cv_type_unsigned_long_long_int = yes \
6005 && ac_type
='unsigned long long int' \
6006 || ac_type
='unsigned long int'
6008 cat >>confdefs.h
<<_ACEOF
6009 #define uintmax_t $ac_type
6016 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6017 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6019 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6022 for ac_type
in 'unsigned int' 'unsigned long int' \
6023 'unsigned long long int'; do
6024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 $ac_includes_default
6030 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6037 if ac_fn_c_try_compile
"$LINENO"; then :
6039 cat >>confdefs.h
<<_ACEOF
6040 #define uintptr_t $ac_type
6045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6046 test -z "$ac_type" && break
6064 # ---------------------
6065 # Warnings and checking
6066 # ---------------------
6068 # Check $CC warning features (if it's GCC).
6069 # We want to use -pedantic, but we don't want warnings about
6072 # * overlong strings
6073 # So, we only use -pedantic if we can disable those warnings.
6076 save_CFLAGS
="$CFLAGS"
6077 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6078 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6081 $as_echo_n "checking whether $CC supports $option... " >&6; }
6082 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6083 $as_echo_n "(cached) " >&6
6086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6097 if ac_fn_c_try_compile
"$LINENO"; then :
6098 eval "$as_acx_Woption=yes"
6100 eval "$as_acx_Woption=no"
6102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6105 eval ac_res
=\$
$as_acx_Woption
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6107 $as_echo "$ac_res" >&6; }
6108 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6109 loose_warn
="$loose_warn${loose_warn:+ }$option"
6112 CFLAGS
="$save_CFLAGS"
6115 save_CFLAGS
="$CFLAGS"
6116 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6117 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6120 $as_echo_n "checking whether $CC supports $option... " >&6; }
6121 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6122 $as_echo_n "(cached) " >&6
6125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6136 if ac_fn_c_try_compile
"$LINENO"; then :
6137 eval "$as_acx_Woption=yes"
6139 eval "$as_acx_Woption=no"
6141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 eval ac_res
=\$
$as_acx_Woption
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6146 $as_echo "$ac_res" >&6; }
6147 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6148 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6151 CFLAGS
="$save_CFLAGS"
6154 save_CFLAGS
="$CFLAGS"
6155 for option
in -Wmissing-format-attribute; do
6156 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6159 $as_echo_n "checking whether $CC supports $option... " >&6; }
6160 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6161 $as_echo_n "(cached) " >&6
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6175 if ac_fn_c_try_compile
"$LINENO"; then :
6176 eval "$as_acx_Woption=yes"
6178 eval "$as_acx_Woption=no"
6180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 eval ac_res
=\$
$as_acx_Woption
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6185 $as_echo "$ac_res" >&6; }
6186 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6187 strict_warn
="$strict_warn${strict_warn:+ }$option"
6190 CFLAGS
="$save_CFLAGS"
6193 save_CFLAGS
="$CFLAGS"
6194 for option
in -Wold-style-definition -Wc++-compat; do
6195 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6198 $as_echo_n "checking whether $CC supports $option... " >&6; }
6199 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6200 $as_echo_n "(cached) " >&6
6203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6214 if ac_fn_c_try_compile
"$LINENO"; then :
6215 eval "$as_acx_Woption=yes"
6217 eval "$as_acx_Woption=no"
6219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6222 eval ac_res
=\$
$as_acx_Woption
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6224 $as_echo "$ac_res" >&6; }
6225 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6226 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6229 CFLAGS
="$save_CFLAGS"
6231 if test "$GCC" = yes; then :
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6233 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6234 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6237 save_CFLAGS
="$CFLAGS"
6238 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6250 if ac_fn_c_try_compile
"$LINENO"; then :
6251 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6253 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6256 CFLAGS
="$save_CFLAGS"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6259 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6260 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6261 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6266 # Check whether --enable-werror-always was given.
6267 if test "${enable_werror_always+set}" = set; then :
6268 enableval
=$enable_werror_always;
6270 enable_werror_always
=no
6273 if test $enable_werror_always = yes; then :
6274 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6279 # The above macros do nothing if the compiler is not GCC. However, the
6280 # Makefile has more goo to add other flags, so these variables are used
6281 # to enable warnings only for GCC.
6284 if test "x$GCC" = "xyes"; then
6285 warn_cflags
='$(GCC_WARN_CFLAGS)'
6286 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6291 # Enable expensive internal checks
6293 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6297 # Check whether --enable-checking was given.
6298 if test "${enable_checking+set}" = set; then :
6299 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6302 # Determine the default checks.
6303 if test x
$is_release = x
; then
6304 ac_checking_flags
=yes
6306 ac_checking_flags
=release
6310 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6311 for check
in release
$ac_checking_flags
6314 # these set all the flags to specific states
6315 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6316 ac_fold_checking
= ; ac_gc_checking
=1 ;
6317 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6318 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6319 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6320 ac_types_checking
=1 ;;
6321 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6322 ac_fold_checking
= ; ac_gc_checking
= ;
6323 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6324 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6325 ac_tree_checking
= ; ac_valgrind_checking
= ;
6326 ac_types_checking
= ;;
6327 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6328 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6329 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6330 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6331 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6332 ac_types_checking
=1 ;;
6333 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6334 ac_fold_checking
= ; ac_gc_checking
= ;
6335 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6336 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6337 ac_tree_checking
= ; ac_valgrind_checking
= ;
6338 ac_types_checking
= ;;
6339 # these enable particular checks
6340 assert
) ac_assert_checking
=1 ;;
6341 df
) ac_df_checking
=1 ;;
6342 fold) ac_fold_checking
=1 ;;
6343 gc
) ac_gc_checking
=1 ;;
6344 gcac
) ac_gc_always_collect
=1 ;;
6345 gimple
) ac_gimple_checking
=1 ;;
6346 misc
) ac_checking
=1 ;;
6347 rtl
) ac_rtl_checking
=1 ;;
6348 rtlflag
) ac_rtlflag_checking
=1 ;;
6349 runtime
) ac_runtime_checking
=1 ;;
6350 tree
) ac_tree_checking
=1 ;;
6351 types
) ac_types_checking
=1 ;;
6352 valgrind
) ac_valgrind_checking
=1 ;;
6353 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6359 if test x
$ac_checking != x
; then
6361 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6363 nocommon_flag
=-fno-common
6366 if test x
$ac_df_checking != x
; then
6368 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6371 if test x
$ac_assert_checking != x
; then
6373 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6376 if test x
$ac_gimple_checking != x
; then
6378 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6382 if test x
$ac_runtime_checking != x
; then
6384 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6387 if test x
$ac_tree_checking != x
; then
6389 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6391 TREEBROWSER
=tree-browser.o
6393 if test x
$ac_types_checking != x
; then
6395 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6399 if test x
$ac_rtl_checking != x
; then
6401 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6404 if test x
$ac_rtlflag_checking != x
; then
6406 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6409 if test x
$ac_gc_checking != x
; then
6411 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6414 if test x
$ac_gc_always_collect != x
; then
6416 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6419 if test x
$ac_fold_checking != x
; then
6421 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6424 valgrind_path_defines
=
6427 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6428 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6436 if test x
$ac_valgrind_checking != x
; then
6437 # It is certainly possible that there's valgrind but no valgrind.h.
6438 # GCC relies on making annotations so we must have both.
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6440 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <valgrind/memcheck.h>
6444 #ifndef VALGRIND_DISCARD
6445 #error VALGRIND_DISCARD not defined
6448 if ac_fn_c_try_cpp
"$LINENO"; then :
6449 gcc_cv_header_valgrind_memcheck_h
=yes
6451 gcc_cv_header_valgrind_memcheck_h
=no
6453 rm -f conftest.err conftest.
$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6455 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6457 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <memcheck.h>
6461 #ifndef VALGRIND_DISCARD
6462 #error VALGRIND_DISCARD not defined
6465 if ac_fn_c_try_cpp
"$LINENO"; then :
6466 gcc_cv_header_memcheck_h
=yes
6468 gcc_cv_header_memcheck_h
=no
6470 rm -f conftest.err conftest.
$ac_ext
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6472 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6474 # Prepare PATH_SEPARATOR.
6475 # The user is always right.
6476 if test "${PATH_SEPARATOR+set}" != set; then
6477 echo "#! /bin/sh" >conf$$.sh
6478 echo "exit 0" >>conf$$.sh
6480 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6488 # Find out how to test for executable files. Don't use a zero-byte file,
6489 # as systems may use methods other than mode bits to determine executability.
6490 cat >conf$$.
file <<_ASEOF
6494 chmod +x conf$$.
file
6495 if test -x conf$$.
file >/dev
/null
2>&1; then
6496 ac_executable_p
="test -x"
6498 ac_executable_p
="test -f"
6502 # Extract the first word of "valgrind", so it can be a program name with args.
6503 set dummy valgrind
; ac_word
=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6509 case "$valgrind_path" in
6511 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6514 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6515 for ac_dir
in $PATH; do
6517 test -z "$ac_dir" && ac_dir
=.
6518 for ac_exec_ext
in '' $ac_executable_extensions; do
6519 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6520 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6521 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6531 valgrind_path
="$ac_cv_path_valgrind_path"
6532 if test -n "$valgrind_path"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6534 $as_echo "$valgrind_path" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6540 if test "x$valgrind_path" = "x" \
6541 ||
(test $have_valgrind_h = no \
6542 && test $gcc_cv_header_memcheck_h = no \
6543 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6544 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6546 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6547 valgrind_command
="$valgrind_path -q"
6549 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6551 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6553 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6556 if test $gcc_cv_header_memcheck_h = yes; then
6558 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6565 # Enable code coverage collection
6566 # Check whether --enable-coverage was given.
6567 if test "${enable_coverage+set}" = set; then :
6568 enableval
=$enable_coverage; case "${enableval}" in
6570 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6573 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6576 # a.k.a. --disable-coverage
6580 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6589 # Check whether --enable-gather-detailed-mem-stats was given.
6590 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6591 enableval
=$enable_gather_detailed_mem_stats;
6593 enable_gather_detailed_mem_stats
=no
6596 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6598 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6602 # -------------------------------
6603 # Miscenalleous configure options
6604 # -------------------------------
6606 # See if we are building gcc with C++.
6607 # Check whether --enable-build-with-cxx was given.
6608 if test "${enable_build_with_cxx+set}" = set; then :
6609 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6611 ENABLE_BUILD_WITH_CXX
=no
6618 # Check whether --with-stabs was given.
6619 if test "${with_stabs+set}" = set; then :
6620 withval
=$with_stabs; stabs
="$with_stabs"
6626 # Determine whether or not multilibs are enabled.
6627 # Check whether --enable-multilib was given.
6628 if test "${enable_multilib+set}" = set; then :
6629 enableval
=$enable_multilib;
6636 # Enable __cxa_atexit for C++.
6637 # Check whether --enable-__cxa_atexit was given.
6638 if test "${enable___cxa_atexit+set}" = set; then :
6639 enableval
=$enable___cxa_atexit;
6643 # Enable C extension for decimal float if target supports it.
6644 # Check whether --enable-decimal-float was given.
6645 if test "${enable_decimal_float+set}" = set; then :
6646 enableval
=$enable_decimal_float;
6647 case $enable_decimal_float in
6648 yes | no | bid | dpd
) ;;
6649 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6650 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6656 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6657 enable_decimal_float
=yes
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6661 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6662 enable_decimal_float
=no
6669 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6671 cat >>confdefs.h
<<_ACEOF
6672 #define ENABLE_DECIMAL_FLOAT $dfp
6676 # x86's use BID format instead of DPD
6677 case x
$enable_decimal_float in
6680 i?
86*-*-linux* | x86_64
*-*-linux*)
6681 enable_decimal_float
=bid
6684 enable_decimal_float
=dpd
6689 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6690 # dependency on libdecnumber.
6691 enable_decimal_float
=dpd
6696 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6698 cat >>confdefs.h
<<_ACEOF
6699 #define ENABLE_DECIMAL_BID_FORMAT $bid
6703 # Enable C extension for fixed-point arithmetic.
6704 # Check whether --enable-fixed-point was given.
6705 if test "${enable_fixed_point+set}" = set; then :
6706 enableval
=$enable_fixed_point;
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6715 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6716 enable_fixed_point
=no
6719 enable_fixed_point
=yes
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6725 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6726 enable_fixed_point
=no
6734 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6736 cat >>confdefs.h
<<_ACEOF
6737 #define ENABLE_FIXED_POINT $fixedpoint
6742 # Pass with no value to take the default
6743 # Pass with a value to specify a thread package
6744 # Check whether --enable-threads was given.
6745 if test "${enable_threads+set}" = set; then :
6746 enableval
=$enable_threads;
6752 # Check whether --enable-tls was given.
6753 if test "${enable_tls+set}" = set; then :
6754 enableval
=$enable_tls;
6757 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6758 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6766 # Check whether --enable-objc-gc was given.
6767 if test "${enable_objc_gc+set}" = set; then :
6768 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6779 # Check whether --with-dwarf2 was given.
6780 if test "${with_dwarf2+set}" = set; then :
6781 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6787 # Check whether --enable-shared was given.
6788 if test "${enable_shared+set}" = set; then :
6789 enableval
=$enable_shared;
6790 case $enable_shared in
6794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6795 for pkg
in $enableval; do
6796 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6811 # Check whether --with-build-sysroot was given.
6812 if test "${with_build_sysroot+set}" = set; then :
6813 withval
=$with_build_sysroot;
6818 # Check whether --with-sysroot was given.
6819 if test "${with_sysroot+set}" = set; then :
6820 withval
=$with_sysroot;
6821 case ${with_sysroot} in
6822 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6823 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6826 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6827 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6829 if test "x$prefix" = xNONE
; then
6830 test_prefix
=/usr
/local
6834 if test "x$exec_prefix" = xNONE
; then
6835 test_exec_prefix
=$test_prefix
6837 test_exec_prefix
=$exec_prefix
6839 case ${TARGET_SYSTEM_ROOT} in
6840 "${test_prefix}"|
"${test_prefix}/"*|\
6841 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6842 '${prefix}'|
'${prefix}/'*|\
6843 '${exec_prefix}'|
'${exec_prefix}/'*)
6844 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6845 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6852 TARGET_SYSTEM_ROOT_DEFINE
=
6853 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6862 # Check whether --with-specs was given.
6863 if test "${with_specs+set}" = set; then :
6864 withval
=$with_specs; CONFIGURE_SPECS
=$withval
6872 # Build with intermodule optimisations
6873 # Check whether --enable-intermodule was given.
6874 if test "${enable_intermodule+set}" = set; then :
6875 enableval
=$enable_intermodule; case ${enable_intermodule} in
6876 yes) onestep
="-onestep";;
6887 # Check whether --with-pkgversion was given.
6888 if test "${with_pkgversion+set}" = set; then :
6889 withval
=$with_pkgversion; case "$withval" in
6890 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6892 *) PKGVERSION
="($withval) " ;;
6903 # Check whether --with-bugurl was given.
6904 if test "${with_bugurl+set}" = set; then :
6905 withval
=$with_bugurl; case "$withval" in
6906 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6909 *) BUGURL
="$withval"
6913 BUGURL
="http://gcc.gnu.org/bugs.html"
6923 REPORT_BUGS_TO
="<$BUGURL>"
6924 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6931 # Sanity check enable_languages in case someone does not run the toplevel
6932 # configure # script.
6933 # Check whether --enable-languages was given.
6934 if test "${enable_languages+set}" = set; then :
6935 enableval
=$enable_languages; case ,${enable_languages}, in
6937 # go safe -- we cannot be much sure without the toplevel
6939 # analysis of which target libs are present and usable
6943 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6948 enable_languages
=c
,${enable_languages}
6957 # Check whether --with-multilib-list was given.
6958 if test "${with_multilib_list+set}" = set; then :
6959 withval
=$with_multilib_list; :
6961 with_multilib_list
=default
6965 # -------------------------
6966 # Checks for other programs
6967 # -------------------------
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6972 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6973 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6976 cat >conftest.
make <<\_ACEOF
6979 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6984 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6986 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6990 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 SET_MAKE
="MAKE=${MAKE-make}"
7001 # Find some useful tools
7002 for ac_prog
in gawk mawk nawk
awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy
$ac_prog; ac_word
=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_AWK+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir
=.
7019 for ac_exec_ext
in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_AWK
="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 if test -n "$AWK"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7034 $as_echo "$AWK" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7041 test -n "$AWK" && break
7044 # We need awk to create options.c and options.h.
7045 # Bail out if it's missing.
7047 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7051 $as_echo_n "checking whether ln -s works... " >&6; }
7052 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7059 gcc_cv_prog_LN_S
="ln -s"
7061 if ln conftestdata_f conftestdata_t
2>/dev
/null
7065 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7067 gcc_cv_prog_LN_S
="cp -p"
7073 rm -f conftestdata_f conftestdata_t
7076 LN_S
="$gcc_cv_prog_LN_S"
7077 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7081 if test "$gcc_cv_prog_LN_S" = "ln"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7083 $as_echo "no, using ln" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7086 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7091 $as_echo_n "checking whether ln works... " >&6; }
7092 if test "${acx_cv_prog_LN+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7095 rm -f conftestdata_t
7096 echo >conftestdata_f
7097 if ln conftestdata_f conftestdata_t
2>/dev
/null
7103 rm -f conftestdata_f conftestdata_t
7106 if test $acx_cv_prog_LN = no
; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7109 $as_echo "no, using $LN" >&6; }
7111 LN
="$acx_cv_prog_LN"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir
=.
7132 for ac_exec_ext
in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 RANLIB
=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7147 $as_echo "$RANLIB" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB
=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib
; ac_word
=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir
=.
7172 for ac_exec_ext
in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7187 $as_echo "$ac_ct_RANLIB" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7193 if test "x$ac_ct_RANLIB" = x
; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned
=yes ;;
7202 RANLIB
=$ac_ct_RANLIB
7205 RANLIB
="$ac_cv_prog_RANLIB"
7210 # By default, the Darwin ranlib will not treat common symbols as
7211 # definitions when building the archive table of contents. Other
7212 # ranlibs do that; pass an option to the Darwin ranlib that makes
7213 # it behave similarly.
7221 # Find a good install program. We prefer a C program (faster),
7222 # so one script is as good as another. But avoid the broken or
7223 # incompatible versions:
7224 # SysV /etc/install, /usr/sbin/install
7225 # SunOS /usr/etc/install
7226 # IRIX /sbin/install
7228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7232 $as_echo_n "checking for a BSD compatible install... " >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7237 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7238 for ac_dir
in $PATH; do
7239 # Account for people who put trailing slashes in PATH elements.
7241 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7243 # OSF1 and SCO ODT 3.0 have their own names for install.
7244 for ac_prog
in ginstall scoinst
install; do
7245 if test -f $ac_dir/$ac_prog; then
7246 if test $ac_prog = install &&
7247 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7248 # AIX install. It has an incompatible calling convention.
7249 # OSF/1 installbsd also uses dspmsg, but is usable.
7252 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7263 if test "${ac_cv_path_install+set}" = set; then
7264 INSTALL
="$ac_cv_path_install"
7266 # As a last resort, use the slow shell script. We don't cache a
7267 # path for INSTALL within a source directory, because that will
7268 # break other packages using the cache if that directory is
7269 # removed, or if the path is relative.
7270 INSTALL
="$ac_install_sh"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7274 $as_echo "$INSTALL" >&6; }
7276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7277 # It thinks the first close brace ends the variable substitution.
7278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7280 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7283 # See if cmp has --ignore-initial.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7285 $as_echo_n "checking for cmp's capabilities... " >&6; }
7286 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7291 gcc_cv_prog_cmp_skip
=slowcompare
7292 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7293 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7296 gcc_cv_prog_cmp_skip
=gnucompare
7299 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7300 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7301 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7304 gcc_cv_prog_cmp_skip
=fastcompare
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7312 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7313 make_compare_target
=$gcc_cv_prog_cmp_skip
7317 # See if we have the mktemp command.
7318 # Extract the first word of "mktemp", so it can be a program name with args.
7319 set dummy mktemp
; ac_word
=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$have_mktemp_command"; then
7326 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir
=.
7333 for ac_exec_ext
in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_have_mktemp_command
="yes"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7346 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7347 if test -n "$have_mktemp_command"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7349 $as_echo "$have_mktemp_command" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 # See if makeinfo has been installed and is modern enough
7358 # that we can use it.
7360 # Extract the first word of "makeinfo", so it can be a program name with args.
7361 set dummy makeinfo
; ac_word
=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7367 if test -n "$MAKEINFO"; then
7368 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir
=.
7375 for ac_exec_ext
in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_MAKEINFO
="makeinfo"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 MAKEINFO
=$ac_cv_prog_MAKEINFO
7388 if test -n "$MAKEINFO"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7390 $as_echo "$MAKEINFO" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 if test -n "$MAKEINFO"; then
7398 # Found it, now check the version.
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7400 $as_echo_n "checking for modern makeinfo... " >&6; }
7401 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7405 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7407 case $ac_prog_version in
7408 '') gcc_cv_prog_makeinfo_modern
=no
;;
7409 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7410 *) gcc_cv_prog_makeinfo_modern
=no
;;
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7415 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7417 gcc_cv_prog_makeinfo_modern
=no
7419 if test $gcc_cv_prog_makeinfo_modern = no
; then
7420 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7423 if test $gcc_cv_prog_makeinfo_modern = no
; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7425 *** Makeinfo is missing or too old.
7426 *** Info documentation will not be built." >&5
7427 $as_echo "$as_me: WARNING:
7428 *** Makeinfo is missing or too old.
7429 *** Info documentation will not be built." >&2;}
7436 # Is pod2man recent enough to regenerate manpages?
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7438 $as_echo_n "checking for recent Pod::Man... " >&6; }
7439 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441 $as_echo "yes" >&6; }
7442 GENERATED_MANPAGES
=generated-manpages
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7450 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy
$ac_prog; ac_word
=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if test "${ac_cv_prog_FLEX+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7462 if test -n "$FLEX"; then
7463 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir
=.
7470 for ac_exec_ext
in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_FLEX
="$ac_prog"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 FLEX
=$ac_cv_prog_FLEX
7483 if test -n "$FLEX"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7485 $as_echo "$FLEX" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 test -n "$FLEX" && break
7494 test -n "$FLEX" || FLEX
="$MISSING flex"
7498 for ac_prog
in bison
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy
$ac_prog; ac_word
=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_BISON+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$BISON"; then
7508 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir
=.
7515 for ac_exec_ext
in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_BISON
="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 BISON
=$ac_cv_prog_BISON
7528 if test -n "$BISON"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7530 $as_echo "$BISON" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$BISON" && break
7539 test -n "$BISON" || BISON
="$MISSING bison"
7542 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7543 # check for build == host before using them.
7546 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7547 && test -d ..
/binutils
; then
7548 NM
='$(objdir)/../binutils/nm-new'
7550 # Extract the first word of "nm", so it can be a program name with args.
7551 set dummy nm
; ac_word
=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_NM+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7557 if test -n "$NM"; then
7558 ac_cv_prog_NM
="$NM" # Let the user override the test.
7560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir
=.
7565 for ac_exec_ext
in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7579 if test -n "$NM"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7581 $as_echo "$NM" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7591 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7592 && test -d ..
/binutils
; then
7593 AR
='$(objdir)/../binutils/ar'
7595 # Extract the first word of "ar", so it can be a program name with args.
7596 set dummy
ar; ac_word
=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_AR+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7602 if test -n "$AR"; then
7603 ac_cv_prog_AR
="$AR" # Let the user override the test.
7605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir
=.
7610 for ac_exec_ext
in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7624 if test -n "$AR"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7626 $as_echo "$AR" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7636 # --------------------
7637 # Checks for C headers
7638 # --------------------
7640 # Need to reject headers which give warnings, so that the -Werror bootstrap
7641 # works later. *sigh* This needs to come before all header checks.
7643 ac_c_preproc_warn_flag
=yes
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7646 $as_echo_n "checking for ANSI C header files... " >&6; }
7647 if test "${ac_cv_header_stdc+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7665 if ac_fn_c_try_compile
"$LINENO"; then :
7666 ac_cv_header_stdc
=yes
7668 ac_cv_header_stdc
=no
7670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7672 if test $ac_cv_header_stdc = yes; then
7673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7680 $EGREP "memchr" >/dev
/null
2>&1; then :
7683 ac_cv_header_stdc
=no
7689 if test $ac_cv_header_stdc = yes; then
7690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "free" >/dev
/null
2>&1; then :
7700 ac_cv_header_stdc
=no
7706 if test $ac_cv_header_stdc = yes; then
7707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7708 if test "$cross_compiling" = yes; then :
7711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7715 #if ((' ' & 0x0FF) == 0x020)
7716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7719 # define ISLOWER(c) \
7720 (('a' <= (c) && (c) <= 'i') \
7721 || ('j' <= (c) && (c) <= 'r') \
7722 || ('s' <= (c) && (c) <= 'z'))
7723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7731 for (i = 0; i < 256; i++)
7732 if (XOR (islower (i), ISLOWER (i))
7733 || toupper (i) != TOUPPER (i))
7738 if ac_fn_c_try_run
"$LINENO"; then :
7741 ac_cv_header_stdc
=no
7743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7744 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7750 $as_echo "$ac_cv_header_stdc" >&6; }
7751 if test $ac_cv_header_stdc = yes; then
7753 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7758 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7759 if test "${ac_cv_header_time+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 #include <sys/types.h>
7765 #include <sys/time.h>
7771 if ((struct tm *) 0)
7777 if ac_fn_c_try_compile
"$LINENO"; then :
7778 ac_cv_header_time
=yes
7780 ac_cv_header_time
=no
7782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7785 $as_echo "$ac_cv_header_time" >&6; }
7786 if test $ac_cv_header_time = yes; then
7788 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7793 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7794 if test "${gcc_cv_header_string+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7800 #include <strings.h>
7809 if ac_fn_c_try_compile
"$LINENO"; then :
7810 gcc_cv_header_string
=yes
7812 gcc_cv_header_string
=no
7814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7817 $as_echo "$gcc_cv_header_string" >&6; }
7818 if test $gcc_cv_header_string = yes; then
7820 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7825 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7826 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <sys/wait.h>
7834 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7837 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7845 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7850 if ac_fn_c_try_compile
"$LINENO"; then :
7851 ac_cv_header_sys_wait_h
=yes
7853 ac_cv_header_sys_wait_h
=no
7855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7858 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7859 if test $ac_cv_header_sys_wait_h = yes; then
7861 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7865 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7866 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7867 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7868 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7870 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7872 eval as_val
=\$
$as_ac_Header
7873 if test "x$as_val" = x
""yes; then :
7874 cat >>confdefs.h
<<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7882 # Check for thread headers.
7883 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7884 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7890 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7891 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7898 # These tests can't be done till we know if we have limits.h.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7900 $as_echo_n "checking for CHAR_BIT... " >&6; }
7901 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #ifdef HAVE_LIMITS_H
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "found" >/dev
/null
2>&1; then :
7915 gcc_cv_decl_char_bit
=yes
7917 gcc_cv_decl_char_bit
=no
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7924 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7925 if test $gcc_cv_decl_char_bit = no
; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7927 $as_echo_n "checking number of bits in a byte... " >&6; }
7928 if test "${gcc_cv_c_nbby+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7933 while test $i -lt 65; do
7934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7941 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7942 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7948 if ac_fn_c_try_compile
"$LINENO"; then :
7949 gcc_cv_c_nbby
=$i; break
7951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7954 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7958 $as_echo "$gcc_cv_c_nbby" >&6; }
7959 if test $gcc_cv_c_nbby = failed
; then
7960 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7963 cat >>confdefs.h
<<_ACEOF
7964 #define CHAR_BIT $gcc_cv_c_nbby
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7970 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7971 if test "${ac_cv_c_bigendian+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7974 ac_cv_c_bigendian
=unknown
7975 # See if we're dealing with a universal compiler.
7976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #ifndef __APPLE_CC__
7979 not a universal capable compiler
7984 if ac_fn_c_try_compile
"$LINENO"; then :
7986 # Check for potential -arch flags. It is not universal unless
7987 # there are at least two -arch flags with different values.
7990 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7991 if test -n "$ac_prev"; then
7993 i?
86 | x86_64 | ppc | ppc64
)
7994 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7997 ac_cv_c_bigendian
=universal
8003 elif test "x$ac_word" = "x-arch"; then
8008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8009 if test $ac_cv_c_bigendian = unknown
; then
8010 # See if sys/param.h defines the BYTE_ORDER macro.
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <sys/types.h>
8014 #include <sys/param.h>
8019 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8020 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8029 if ac_fn_c_try_compile
"$LINENO"; then :
8030 # It does; now see whether it defined to BIG_ENDIAN or not.
8031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <sys/types.h>
8034 #include <sys/param.h>
8039 #if BYTE_ORDER != BIG_ENDIAN
8047 if ac_fn_c_try_compile
"$LINENO"; then :
8048 ac_cv_c_bigendian
=yes
8050 ac_cv_c_bigendian
=no
8052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8056 if test $ac_cv_c_bigendian = unknown
; then
8057 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8065 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8073 if ac_fn_c_try_compile
"$LINENO"; then :
8074 # It does; now see whether it defined to _BIG_ENDIAN or not.
8075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8090 if ac_fn_c_try_compile
"$LINENO"; then :
8091 ac_cv_c_bigendian
=yes
8093 ac_cv_c_bigendian
=no
8095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8099 if test $ac_cv_c_bigendian = unknown
; then
8100 # Compile a test program.
8101 if test "$cross_compiling" = yes; then :
8102 # Try to guess by grepping values from an object file.
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 short int ascii_mm[] =
8106 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8107 short int ascii_ii[] =
8108 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8109 int use_ascii (int i) {
8110 return ascii_mm[i] + ascii_ii[i];
8112 short int ebcdic_ii[] =
8113 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8114 short int ebcdic_mm[] =
8115 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8116 int use_ebcdic (int i) {
8117 return ebcdic_mm[i] + ebcdic_ii[i];
8124 return use_ascii (foo) == use_ebcdic (foo);
8129 if ac_fn_c_try_compile
"$LINENO"; then :
8130 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8131 ac_cv_c_bigendian
=yes
8133 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8134 if test "$ac_cv_c_bigendian" = unknown
; then
8135 ac_cv_c_bigendian
=no
8137 # finding both strings is unlikely to happen, but who knows?
8138 ac_cv_c_bigendian
=unknown
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 $ac_includes_default
8151 /* Are we little or big endian? From Harbison&Steele. */
8155 char c[sizeof (long int)];
8158 return u.c[sizeof (long int) - 1] == 1;
8164 if ac_fn_c_try_run
"$LINENO"; then :
8165 ac_cv_c_bigendian
=no
8167 ac_cv_c_bigendian
=yes
8169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8176 $as_echo "$ac_cv_c_bigendian" >&6; }
8177 case $ac_cv_c_bigendian in #(
8179 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8185 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8189 as_fn_error
"unknown endianness
8190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8199 # These libraries may be used by collect2.
8200 # We may need a special search path to get them linked.
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8202 $as_echo_n "checking for collect2 libraries... " >&6; }
8203 if test "${gcc_cv_collect2_libs+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8207 for libs
in '' -lld -lmld \
8208 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8209 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8215 /* Override any GCC internal prototype to avoid an error.
8216 Use char because int might match the return type of a GCC
8217 builtin and then its argument prototype would still apply. */
8230 if ac_fn_c_try_link
"$LINENO"; then :
8231 gcc_cv_collect2_libs
="$libs"; break
8233 rm -f core conftest.err conftest.
$ac_objext \
8234 conftest
$ac_exeext conftest.
$ac_ext
8237 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8240 $as_echo "$gcc_cv_collect2_libs" >&6; }
8241 case $gcc_cv_collect2_libs in
8243 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8247 # When building Ada code on Alpha, we need exc_resume which is usually in
8248 # -lexc. So test for it.
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8252 $as_echo_n "checking for library containing exc_resume... " >&6; }
8253 if test "${ac_cv_search_exc_resume+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8256 ac_func_search_save_LIBS
=$LIBS
8257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8270 return exc_resume ();
8275 for ac_lib
in '' exc
; do
8276 if test -z "$ac_lib"; then
8277 ac_res
="none required"
8280 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8282 if ac_fn_c_try_link
"$LINENO"; then :
8283 ac_cv_search_exc_resume
=$ac_res
8285 rm -f core conftest.err conftest.
$ac_objext \
8287 if test "${ac_cv_search_exc_resume+set}" = set; then :
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8294 ac_cv_search_exc_resume
=no
8297 LIBS
=$ac_func_search_save_LIBS
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8300 $as_echo "$ac_cv_search_exc_resume" >&6; }
8301 ac_res
=$ac_cv_search_exc_resume
8302 if test "$ac_res" != no
; then :
8303 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8311 # Some systems put ldexp and frexp in libm instead of libc; assume
8312 # they're both in the same place. jcf-dump needs them.
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8316 $as_echo_n "checking for library containing ldexp... " >&6; }
8317 if test "${ac_cv_search_ldexp+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 ac_func_search_save_LIBS
=$LIBS
8321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8339 for ac_lib
in '' m
; do
8340 if test -z "$ac_lib"; then
8341 ac_res
="none required"
8344 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8346 if ac_fn_c_try_link
"$LINENO"; then :
8347 ac_cv_search_ldexp
=$ac_res
8349 rm -f core conftest.err conftest.
$ac_objext \
8351 if test "${ac_cv_search_ldexp+set}" = set; then :
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8358 ac_cv_search_ldexp
=no
8361 LIBS
=$ac_func_search_save_LIBS
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8364 $as_echo "$ac_cv_search_ldexp" >&6; }
8365 ac_res
=$ac_cv_search_ldexp
8366 if test "$ac_res" != no
; then :
8367 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8375 # Use <inttypes.h> only if it exists,
8376 # doesn't clash with <sys/types.h>, and declares intmax_t.
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8378 $as_echo_n "checking for inttypes.h... " >&6; }
8379 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <inttypes.h>
8394 if ac_fn_c_try_compile
"$LINENO"; then :
8395 gcc_cv_header_inttypes_h
=yes
8397 gcc_cv_header_inttypes_h
=no
8399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8403 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8404 if test $gcc_cv_header_inttypes_h = yes; then
8406 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8412 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8413 sysconf strsignal getrusage nl_langinfo \
8414 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8415 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
8417 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8418 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8419 eval as_val
=\$
$as_ac_var
8420 if test "x$as_val" = x
""yes; then :
8421 cat >>confdefs.h
<<_ACEOF
8422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8429 save_CPPFLAGS
="$CPPFLAGS"
8431 LIBS
="$LIBS $LIBELFLIBS"
8432 for ac_func
in elf_getshdrstrndx
8434 ac_fn_c_check_func
"$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8435 if test "x$ac_cv_func_elf_getshdrstrndx" = x
""yes; then :
8436 cat >>confdefs.h
<<_ACEOF
8437 #define HAVE_ELF_GETSHDRSTRNDX 1
8441 for ac_func
in elf_getshstrndx
8443 ac_fn_c_check_func
"$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8444 if test "x$ac_cv_func_elf_getshstrndx" = x
""yes; then :
8445 cat >>confdefs.h
<<_ACEOF
8446 #define HAVE_ELF_GETSHSTRNDX 1
8448 if test "$cross_compiling" = yes; then :
8449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8451 as_fn_error
"cannot run test program while cross compiling
8452 See \`config.log' for more details." "$LINENO" 5; }
8454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8460 return elf_getshstrndx (NULL, 0) == 0;
8463 if ac_fn_c_try_run
"$LINENO"; then :
8465 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8468 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8469 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8480 CPPFLAGS
="$save_CPPFLAGS"
8482 if test x
$ac_cv_func_mbstowcs = xyes
; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8484 $as_echo_n "checking whether mbstowcs works... " >&6; }
8485 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8488 if test "$cross_compiling" = yes; then :
8489 gcc_cv_func_mbstowcs_works
=yes
8491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8500 if ac_fn_c_try_run
"$LINENO"; then :
8501 gcc_cv_func_mbstowcs_works
=yes
8503 gcc_cv_func_mbstowcs_works
=no
8505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8511 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8512 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8514 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8519 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8520 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8524 cat >>confdefs.h
<<_ACEOF
8530 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8531 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8535 cat >>confdefs.h
<<_ACEOF
8536 #define caddr_t char *
8543 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8544 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8545 gcc_header_sys_mman_h
=yes
8547 gcc_header_sys_mman_h
=no
8550 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8551 if test "x$ac_cv_func_mmap" = x
""yes; then :
8557 if test "$gcc_header_sys_mman_h" != yes \
8558 ||
test "$gcc_func_mmap" != yes; then
8559 gcc_cv_func_mmap_file
=no
8560 gcc_cv_func_mmap_dev_zero
=no
8561 gcc_cv_func_mmap_anon
=no
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8564 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8565 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8568 # Add a system to this blacklist if
8569 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8570 # memory area containing the same data that you'd get if you applied
8571 # read() to the same fd. The only system known to have a problem here
8572 # is VMS, where text files have record structure.
8575 gcc_cv_func_mmap_file
=no
;;
8577 gcc_cv_func_mmap_file
=yes;;
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8581 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8583 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8584 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8587 # Add a system to this blacklist if it has mmap() but /dev/zero
8588 # does not exist, or if mmapping /dev/zero does not give anonymous
8589 # zeroed pages with both the following properties:
8590 # 1. If you map N consecutive pages in with one call, and then
8591 # unmap any subset of those pages, the pages that were not
8592 # explicitly unmapped remain accessible.
8593 # 2. If you map two adjacent blocks of memory and then unmap them
8594 # both at once, they must both go away.
8595 # Systems known to be in this category are Windows (all variants),
8598 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8599 gcc_cv_func_mmap_dev_zero
=no
;;
8601 gcc_cv_func_mmap_dev_zero
=yes;;
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8605 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8607 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8609 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8610 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <sys/types.h>
8616 #include <sys/mman.h>
8619 #ifndef MAP_ANONYMOUS
8620 #define MAP_ANONYMOUS MAP_ANON
8626 int n = MAP_ANONYMOUS;
8631 if ac_fn_c_try_compile
"$LINENO"; then :
8632 gcc_cv_decl_map_anon
=yes
8634 gcc_cv_decl_map_anon
=no
8636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8639 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8641 if test $gcc_cv_decl_map_anon = no
; then
8642 gcc_cv_func_mmap_anon
=no
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8645 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8646 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8649 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8650 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8651 # doesn't give anonymous zeroed pages with the same properties listed
8652 # above for use of /dev/zero.
8653 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8655 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8656 gcc_cv_func_mmap_anon
=no
;;
8658 gcc_cv_func_mmap_anon
=yes;;
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8662 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8666 if test $gcc_cv_func_mmap_file = yes; then
8668 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8671 if test $gcc_cv_func_mmap_dev_zero = yes; then
8673 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8676 if test $gcc_cv_func_mmap_anon = yes; then
8678 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8685 # Under VMS, vfork works very differently than on Unix. The standard test
8686 # won't work, and it isn't easily adaptable. It makes more sense to
8688 ac_cv_func_vfork_works
=yes
8691 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8692 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8696 cat >>confdefs.h
<<_ACEOF
8702 for ac_header
in vfork.h
8704 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8705 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8706 cat >>confdefs.h
<<_ACEOF
8707 #define HAVE_VFORK_H 1
8713 for ac_func
in fork vfork
8715 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8716 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8717 eval as_val
=\$
$as_ac_var
8718 if test "x$as_val" = x
""yes; then :
8719 cat >>confdefs.h
<<_ACEOF
8720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8726 if test "x$ac_cv_func_fork" = xyes
; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8728 $as_echo_n "checking for working fork... " >&6; }
8729 if test "${ac_cv_func_fork_works+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8732 if test "$cross_compiling" = yes; then :
8733 ac_cv_func_fork_works
=cross
8735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 $ac_includes_default
8742 /* By Ruediger Kuhlmann. */
8749 if ac_fn_c_try_run
"$LINENO"; then :
8750 ac_cv_func_fork_works
=yes
8752 ac_cv_func_fork_works
=no
8754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8760 $as_echo "$ac_cv_func_fork_works" >&6; }
8763 ac_cv_func_fork_works
=$ac_cv_func_fork
8765 if test "x$ac_cv_func_fork_works" = xcross
; then
8767 *-*-amigaos* |
*-*-msdosdjgpp*)
8768 # Override, as these systems have only a dummy fork() stub
8769 ac_cv_func_fork_works
=no
8772 ac_cv_func_fork_works
=yes
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8776 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8778 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8779 if test "x$ac_cv_func_vfork" = xyes
; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8781 $as_echo_n "checking for working vfork... " >&6; }
8782 if test "${ac_cv_func_vfork_works+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8785 if test "$cross_compiling" = yes; then :
8786 ac_cv_func_vfork_works
=cross
8788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 /* Thanks to Paul Eggert for this test. */
8791 $ac_includes_default
8792 #include <sys/wait.h>
8796 /* On some sparc systems, changes by the child to local and incoming
8797 argument registers are propagated back to the parent. The compiler
8798 is told about this with #include <vfork.h>, but some compilers
8799 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8800 static variable whose address is put into a register that is
8801 clobbered by the vfork. */
8804 sparc_address_test (int arg)
8806 sparc_address_test (arg) int arg;
8827 pid_t parent = getpid ();
8830 sparc_address_test (0);
8835 /* Here is another test for sparc vfork register problems. This
8836 test uses lots of local variables, at least as many local
8837 variables as main has allocated so far including compiler
8838 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8839 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8840 reuse the register of parent for one of the local variables,
8841 since it will think that parent can't possibly be used any more
8842 in this routine. Assigning to the local variable will thus
8843 munge parent in the parent process. */
8845 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8846 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8847 /* Convince the compiler that p..p7 are live; otherwise, it might
8848 use the same hardware register for all 8 local variables. */
8849 if (p != p1 || p != p2 || p != p3 || p != p4
8850 || p != p5 || p != p6 || p != p7)
8853 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8854 from child file descriptors. If the child closes a descriptor
8855 before it execs or exits, this munges the parent's descriptor
8856 as well. Test for this by closing stdout in the child. */
8857 _exit(close(fileno(stdout)) != 0);
8862 while (wait(&status) != child)
8865 /* Was there some problem with vforking? */
8868 /* Did the child fail? (This shouldn't happen.) */
8871 /* Did the vfork/compiler bug occur? */
8872 || parent != getpid()
8874 /* Did the file descriptor bug occur? */
8875 || fstat(fileno(stdout), &st) != 0
8880 if ac_fn_c_try_run
"$LINENO"; then :
8881 ac_cv_func_vfork_works
=yes
8883 ac_cv_func_vfork_works
=no
8885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8891 $as_echo "$ac_cv_func_vfork_works" >&6; }
8894 if test "x$ac_cv_func_fork_works" = xcross
; then
8895 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8897 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8900 if test "x$ac_cv_func_vfork_works" = xyes
; then
8902 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8906 $as_echo "#define vfork fork" >>confdefs.h
8909 if test "x$ac_cv_func_fork_works" = xyes
; then
8911 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8917 if test "X$prefix" = "XNONE"; then
8918 acl_final_prefix
="$ac_default_prefix"
8920 acl_final_prefix
="$prefix"
8922 if test "X$exec_prefix" = "XNONE"; then
8923 acl_final_exec_prefix
='${prefix}'
8925 acl_final_exec_prefix
="$exec_prefix"
8927 acl_save_prefix
="$prefix"
8928 prefix
="$acl_final_prefix"
8929 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8930 prefix
="$acl_save_prefix"
8933 # Check whether --with-gnu-ld was given.
8934 if test "${with_gnu_ld+set}" = set; then :
8935 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8940 # Prepare PATH_SEPARATOR.
8941 # The user is always right.
8942 if test "${PATH_SEPARATOR+set}" != set; then
8943 echo "#! /bin/sh" >conf$$.sh
8944 echo "exit 0" >>conf$$.sh
8946 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8954 if test "$GCC" = yes; then
8955 # Check if gcc -print-prog-name=ld gives a path.
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8957 $as_echo_n "checking for ld used by GCC... " >&6; }
8960 # gcc leaves a trailing carriage return which upsets mingw
8961 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8963 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8966 # Accept absolute paths.
8967 [\\/]* |
[A-Za-z
]:[\\/]*)
8968 re_direlt
='/[^/][^/]*/\.\./'
8969 # Canonicalize the path of ld
8970 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8971 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8972 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8974 test -z "$LD" && LD
="$ac_prog"
8977 # If it fails, then pretend we aren't using GCC.
8981 # If it is relative, then search for the first ld in PATH.
8985 elif test "$with_gnu_ld" = yes; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8987 $as_echo_n "checking for GNU ld... " >&6; }
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8990 $as_echo_n "checking for non-GNU ld... " >&6; }
8992 if test "${acl_cv_path_LD+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
8995 if test -z "$LD"; then
8996 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8997 for ac_dir
in $PATH; do
8998 test -z "$ac_dir" && ac_dir
=.
8999 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9000 acl_cv_path_LD
="$ac_dir/$ac_prog"
9001 # Check to see if the program is GNU ld. I'd rather use --version,
9002 # but apparently some GNU ld's only accept -v.
9003 # Break only if it was the GNU/non-GNU ld that we prefer.
9004 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9005 test "$with_gnu_ld" != no
&& break
9007 test "$with_gnu_ld" != yes && break
9013 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9017 LD
="$acl_cv_path_LD"
9018 if test -n "$LD"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9020 $as_echo "$LD" >&6; }
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9025 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9028 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9029 $as_echo_n "(cached) " >&6
9031 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9032 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9033 acl_cv_prog_gnu_ld
=yes
9035 acl_cv_prog_gnu_ld
=no
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9039 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9040 with_gnu_ld
=$acl_cv_prog_gnu_ld
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9045 $as_echo_n "checking for shared library run path origin... " >&6; }
9046 if test "${acl_cv_rpath+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9050 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9051 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9058 $as_echo "$acl_cv_rpath" >&6; }
9060 libext
="$acl_cv_libext"
9061 shlibext
="$acl_cv_shlibext"
9062 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9063 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9064 hardcode_direct
="$acl_cv_hardcode_direct"
9065 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9066 # Check whether --enable-rpath was given.
9067 if test "${enable_rpath+set}" = set; then :
9068 enableval
=$enable_rpath; :
9082 acl_save_prefix
="$prefix"
9083 prefix
="$acl_final_prefix"
9084 acl_save_exec_prefix
="$exec_prefix"
9085 exec_prefix
="$acl_final_exec_prefix"
9087 eval additional_includedir
=\"$includedir\"
9088 eval additional_libdir
=\"$libdir\"
9090 exec_prefix
="$acl_save_exec_prefix"
9091 prefix
="$acl_save_prefix"
9094 # Check whether --with-libiconv-prefix was given.
9095 if test "${with_libiconv_prefix+set}" = set; then :
9096 withval
=$with_libiconv_prefix;
9097 if test "X$withval" = "Xno"; then
9100 if test "X$withval" = "X"; then
9102 acl_save_prefix
="$prefix"
9103 prefix
="$acl_final_prefix"
9104 acl_save_exec_prefix
="$exec_prefix"
9105 exec_prefix
="$acl_final_exec_prefix"
9107 eval additional_includedir
=\"$includedir\"
9108 eval additional_libdir
=\"$libdir\"
9110 exec_prefix
="$acl_save_exec_prefix"
9111 prefix
="$acl_save_prefix"
9114 additional_includedir
="$withval/include"
9115 additional_libdir
="$withval/lib"
9126 names_already_handled
=
9127 names_next_round
='iconv '
9128 while test -n "$names_next_round"; do
9129 names_this_round
="$names_next_round"
9131 for name
in $names_this_round; do
9133 for n
in $names_already_handled; do
9134 if test "$n" = "$name"; then
9139 if test -z "$already_handled"; then
9140 names_already_handled
="$names_already_handled $name"
9141 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9142 eval value
=\"\
$HAVE_LIB$uppername\"
9143 if test -n "$value"; then
9144 if test "$value" = yes; then
9145 eval value
=\"\
$LIB$uppername\"
9146 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9147 eval value
=\"\
$LTLIB$uppername\"
9148 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9157 if test $use_additional = yes; then
9158 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9159 found_dir
="$additional_libdir"
9160 found_so
="$additional_libdir/lib$name.$shlibext"
9161 if test -f "$additional_libdir/lib$name.la"; then
9162 found_la
="$additional_libdir/lib$name.la"
9165 if test -f "$additional_libdir/lib$name.$libext"; then
9166 found_dir
="$additional_libdir"
9167 found_a
="$additional_libdir/lib$name.$libext"
9168 if test -f "$additional_libdir/lib$name.la"; then
9169 found_la
="$additional_libdir/lib$name.la"
9174 if test "X$found_dir" = "X"; then
9175 for x
in $LDFLAGS $LTLIBICONV; do
9177 acl_save_prefix
="$prefix"
9178 prefix
="$acl_final_prefix"
9179 acl_save_exec_prefix
="$exec_prefix"
9180 exec_prefix
="$acl_final_exec_prefix"
9182 exec_prefix
="$acl_save_exec_prefix"
9183 prefix
="$acl_save_prefix"
9187 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9188 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9190 found_so
="$dir/lib$name.$shlibext"
9191 if test -f "$dir/lib$name.la"; then
9192 found_la
="$dir/lib$name.la"
9195 if test -f "$dir/lib$name.$libext"; then
9197 found_a
="$dir/lib$name.$libext"
9198 if test -f "$dir/lib$name.la"; then
9199 found_la
="$dir/lib$name.la"
9205 if test "X$found_dir" != "X"; then
9210 if test "X$found_dir" != "X"; then
9211 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9212 if test "X$found_so" != "X"; then
9213 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9214 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9217 for x
in $ltrpathdirs; do
9218 if test "X$x" = "X$found_dir"; then
9223 if test -z "$haveit"; then
9224 ltrpathdirs
="$ltrpathdirs $found_dir"
9226 if test "$hardcode_direct" = yes; then
9227 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9229 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9230 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9232 for x
in $rpathdirs; do
9233 if test "X$x" = "X$found_dir"; then
9238 if test -z "$haveit"; then
9239 rpathdirs
="$rpathdirs $found_dir"
9243 for x
in $LDFLAGS $LIBICONV; do
9245 acl_save_prefix
="$prefix"
9246 prefix
="$acl_final_prefix"
9247 acl_save_exec_prefix
="$exec_prefix"
9248 exec_prefix
="$acl_final_exec_prefix"
9250 exec_prefix
="$acl_save_exec_prefix"
9251 prefix
="$acl_save_prefix"
9253 if test "X$x" = "X-L$found_dir"; then
9258 if test -z "$haveit"; then
9259 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9261 if test "$hardcode_minus_L" != no
; then
9262 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9264 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9270 if test "X$found_a" != "X"; then
9271 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9273 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9276 additional_includedir
=
9277 case "$found_dir" in
9279 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9280 additional_includedir
="$basedir/include"
9283 if test "X$additional_includedir" != "X"; then
9284 if test "X$additional_includedir" != "X/usr/include"; then
9286 if test "X$additional_includedir" = "X/usr/local/include"; then
9287 if test -n "$GCC"; then
9289 linux
*) haveit
=yes;;
9293 if test -z "$haveit"; then
9294 for x
in $CPPFLAGS $INCICONV; do
9296 acl_save_prefix
="$prefix"
9297 prefix
="$acl_final_prefix"
9298 acl_save_exec_prefix
="$exec_prefix"
9299 exec_prefix
="$acl_final_exec_prefix"
9301 exec_prefix
="$acl_save_exec_prefix"
9302 prefix
="$acl_save_prefix"
9304 if test "X$x" = "X-I$additional_includedir"; then
9309 if test -z "$haveit"; then
9310 if test -d "$additional_includedir"; then
9311 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9317 if test -n "$found_la"; then
9318 save_libdir
="$libdir"
9320 */* |
*\\*) .
"$found_la" ;;
9321 *) .
"./$found_la" ;;
9323 libdir
="$save_libdir"
9324 for dep
in $dependency_libs; do
9327 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9328 if test "X$additional_libdir" != "X/usr/lib"; then
9330 if test "X$additional_libdir" = "X/usr/local/lib"; then
9331 if test -n "$GCC"; then
9333 linux
*) haveit
=yes;;
9337 if test -z "$haveit"; then
9339 for x
in $LDFLAGS $LIBICONV; do
9341 acl_save_prefix
="$prefix"
9342 prefix
="$acl_final_prefix"
9343 acl_save_exec_prefix
="$exec_prefix"
9344 exec_prefix
="$acl_final_exec_prefix"
9346 exec_prefix
="$acl_save_exec_prefix"
9347 prefix
="$acl_save_prefix"
9349 if test "X$x" = "X-L$additional_libdir"; then
9354 if test -z "$haveit"; then
9355 if test -d "$additional_libdir"; then
9356 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9360 for x
in $LDFLAGS $LTLIBICONV; do
9362 acl_save_prefix
="$prefix"
9363 prefix
="$acl_final_prefix"
9364 acl_save_exec_prefix
="$exec_prefix"
9365 exec_prefix
="$acl_final_exec_prefix"
9367 exec_prefix
="$acl_save_exec_prefix"
9368 prefix
="$acl_save_prefix"
9370 if test "X$x" = "X-L$additional_libdir"; then
9375 if test -z "$haveit"; then
9376 if test -d "$additional_libdir"; then
9377 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9384 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9385 if test "$enable_rpath" != no
; then
9387 for x
in $rpathdirs; do
9388 if test "X$x" = "X$dir"; then
9393 if test -z "$haveit"; then
9394 rpathdirs
="$rpathdirs $dir"
9397 for x
in $ltrpathdirs; do
9398 if test "X$x" = "X$dir"; then
9403 if test -z "$haveit"; then
9404 ltrpathdirs
="$ltrpathdirs $dir"
9409 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9412 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9415 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9416 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9422 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9423 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9429 if test "X$rpathdirs" != "X"; then
9430 if test -n "$hardcode_libdir_separator"; then
9432 for found_dir
in $rpathdirs; do
9433 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9435 acl_save_libdir
="$libdir"
9437 eval flag
=\"$hardcode_libdir_flag_spec\"
9438 libdir
="$acl_save_libdir"
9439 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9441 for found_dir
in $rpathdirs; do
9442 acl_save_libdir
="$libdir"
9444 eval flag
=\"$hardcode_libdir_flag_spec\"
9445 libdir
="$acl_save_libdir"
9446 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9450 if test "X$ltrpathdirs" != "X"; then
9451 for found_dir
in $ltrpathdirs; do
9452 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9462 am_save_CPPFLAGS
="$CPPFLAGS"
9464 for element
in $INCICONV; do
9466 for x
in $CPPFLAGS; do
9468 acl_save_prefix
="$prefix"
9469 prefix
="$acl_final_prefix"
9470 acl_save_exec_prefix
="$exec_prefix"
9471 exec_prefix
="$acl_final_exec_prefix"
9473 exec_prefix
="$acl_save_exec_prefix"
9474 prefix
="$acl_save_prefix"
9476 if test "X$x" = "X$element"; then
9481 if test -z "$haveit"; then
9482 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9488 $as_echo_n "checking for iconv... " >&6; }
9489 if test "${am_cv_func_iconv+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9493 am_cv_func_iconv
="no, consider installing GNU libiconv"
9495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9502 iconv_t cd = iconv_open("","");
9503 iconv(cd,NULL,NULL,NULL,NULL);
9509 if ac_fn_c_try_link
"$LINENO"; then :
9510 am_cv_func_iconv
=yes
9512 rm -f core conftest.err conftest.
$ac_objext \
9513 conftest
$ac_exeext conftest.
$ac_ext
9514 if test "$am_cv_func_iconv" != yes; then
9515 am_save_LIBS
="$LIBS"
9516 LIBS
="$LIBS $LIBICONV"
9517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9524 iconv_t cd = iconv_open("","");
9525 iconv(cd,NULL,NULL,NULL,NULL);
9531 if ac_fn_c_try_link
"$LINENO"; then :
9533 am_cv_func_iconv
=yes
9535 rm -f core conftest.err conftest.
$ac_objext \
9536 conftest
$ac_exeext conftest.
$ac_ext
9537 LIBS
="$am_save_LIBS"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9542 $as_echo "$am_cv_func_iconv" >&6; }
9543 if test "$am_cv_func_iconv" = yes; then
9545 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9548 if test "$am_cv_lib_iconv" = yes; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9550 $as_echo_n "checking how to link with libiconv... " >&6; }
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9552 $as_echo "$LIBICONV" >&6; }
9554 CPPFLAGS
="$am_save_CPPFLAGS"
9561 if test "$am_cv_func_iconv" = yes; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9563 $as_echo_n "checking for iconv declaration... " >&6; }
9564 if test "${am_cv_proto_iconv+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9577 #if defined(__STDC__) || defined(__cplusplus)
9578 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9591 if ac_fn_c_try_compile
"$LINENO"; then :
9592 am_cv_proto_iconv_arg1
=""
9594 am_cv_proto_iconv_arg1
="const"
9596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9597 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);"
9600 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9602 }$am_cv_proto_iconv" >&5
9604 }$am_cv_proto_iconv" >&6; }
9606 cat >>confdefs.h
<<_ACEOF
9607 #define ICONV_CONST $am_cv_proto_iconv_arg1
9612 # Until we have in-tree GNU iconv:
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9618 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9619 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9633 if ac_fn_c_try_link
"$LINENO"; then :
9634 am_cv_val_LC_MESSAGES
=yes
9636 am_cv_val_LC_MESSAGES
=no
9638 rm -f core conftest.err conftest.
$ac_objext \
9639 conftest
$ac_exeext conftest.
$ac_ext
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9642 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9643 if test $am_cv_val_LC_MESSAGES = yes; then
9645 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9652 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9653 if test "${am_cv_langinfo_codeset+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 #include <langinfo.h>
9662 char* cs = nl_langinfo(CODESET);
9667 if ac_fn_c_try_link
"$LINENO"; then :
9668 am_cv_langinfo_codeset
=yes
9670 am_cv_langinfo_codeset
=no
9672 rm -f core conftest.err conftest.
$ac_objext \
9673 conftest
$ac_exeext conftest.
$ac_ext
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9677 $as_echo "$am_cv_langinfo_codeset" >&6; }
9678 if test $am_cv_langinfo_codeset = yes; then
9680 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9685 # We will need to find libiberty.h and ansidecl.h
9686 saved_CFLAGS
="$CFLAGS"
9687 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9688 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9689 strsignal strstr strverscmp \
9690 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9691 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
9693 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9695 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9696 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9697 $as_echo_n "(cached) " >&6
9699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9702 #define $ac_tr_decl 1
9704 #include "ansidecl.h"
9711 char *(*pfn) = (char *(*)) $ac_func ;
9717 if ac_fn_c_try_compile
"$LINENO"; then :
9718 eval "gcc_cv_have_decl_$ac_func=yes"
9720 eval "gcc_cv_have_decl_$ac_func=no"
9722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9725 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9727 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9728 #define $ac_tr_decl 1
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9734 #define $ac_tr_decl 0
9742 for ac_func
in getrlimit setrlimit getrusage
9744 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9746 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9747 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9748 $as_echo_n "(cached) " >&6
9750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9753 #define $ac_tr_decl 1
9755 #include "ansidecl.h"
9757 #ifdef HAVE_SYS_RESOURCE_H
9758 #include <sys/resource.h>
9766 char *(*pfn) = (char *(*)) $ac_func ;
9772 if ac_fn_c_try_compile
"$LINENO"; then :
9773 eval "gcc_cv_have_decl_$ac_func=yes"
9775 eval "gcc_cv_have_decl_$ac_func=no"
9777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9780 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9782 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9783 #define $ac_tr_decl 1
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9789 #define $ac_tr_decl 0
9797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9800 #include "ansidecl.h"
9802 #ifdef HAVE_SYS_RESOURCE_H
9803 #include <sys/resource.h>
9814 if ac_fn_c_try_compile
"$LINENO"; then :
9818 $as_echo "#define rlim_t long" >>confdefs.h
9821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9823 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9824 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9825 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9826 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9827 for ac_func
in ldgetname
9829 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9831 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9832 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9833 $as_echo_n "(cached) " >&6
9835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9838 #define $ac_tr_decl 1
9840 #include "ansidecl.h"
9853 char *(*pfn) = (char *(*)) $ac_func ;
9859 if ac_fn_c_try_compile
"$LINENO"; then :
9860 eval "gcc_cv_have_decl_$ac_func=yes"
9862 eval "gcc_cv_have_decl_$ac_func=no"
9864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9867 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9869 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9870 #define $ac_tr_decl 1
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9876 #define $ac_tr_decl 0
9884 for ac_func
in times
9886 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9888 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9889 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9890 $as_echo_n "(cached) " >&6
9892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9895 #define $ac_tr_decl 1
9897 #include "ansidecl.h"
9899 #ifdef HAVE_SYS_TIMES_H
9900 #include <sys/times.h>
9908 char *(*pfn) = (char *(*)) $ac_func ;
9914 if ac_fn_c_try_compile
"$LINENO"; then :
9915 eval "gcc_cv_have_decl_$ac_func=yes"
9917 eval "gcc_cv_have_decl_$ac_func=no"
9919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9922 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9925 #define $ac_tr_decl 1
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9931 #define $ac_tr_decl 0
9939 for ac_func
in sigaltstack
9941 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9943 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9944 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9945 $as_echo_n "(cached) " >&6
9947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9950 #define $ac_tr_decl 1
9952 #include "ansidecl.h"
9961 char *(*pfn) = (char *(*)) $ac_func ;
9967 if ac_fn_c_try_compile
"$LINENO"; then :
9968 eval "gcc_cv_have_decl_$ac_func=yes"
9970 eval "gcc_cv_have_decl_$ac_func=no"
9972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9975 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9978 #define $ac_tr_decl 1
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9984 #define $ac_tr_decl 0
9992 # More time-related stuff.
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9994 $as_echo_n "checking for struct tms... " >&6; }
9995 if test "${ac_cv_struct_tms+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10002 #include "ansidecl.h"
10003 #include "system.h"
10004 #ifdef HAVE_SYS_TIMES_H
10005 #include <sys/times.h>
10016 if ac_fn_c_try_compile
"$LINENO"; then :
10017 ac_cv_struct_tms
=yes
10019 ac_cv_struct_tms
=no
10021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10024 $as_echo "$ac_cv_struct_tms" >&6; }
10025 if test $ac_cv_struct_tms = yes; then
10027 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10031 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10032 # revisit after autoconf 2.50.
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10034 $as_echo_n "checking for clock_t... " >&6; }
10035 if test "${gcc_cv_type_clock_t+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10042 #include "ansidecl.h"
10043 #include "system.h"
10053 if ac_fn_c_try_compile
"$LINENO"; then :
10054 gcc_cv_type_clock_t
=yes
10056 gcc_cv_type_clock_t
=no
10058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10061 $as_echo "$gcc_cv_type_clock_t" >&6; }
10062 if test $gcc_cv_type_clock_t = yes; then
10064 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10068 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10069 CFLAGS
="$saved_CFLAGS"
10071 # Check whether --enable-initfini-array was given.
10072 if test "${enable_initfini_array+set}" = set; then :
10073 enableval
=$enable_initfini_array;
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10077 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10078 if test "${gcc_cv_initfini_array+set}" = set; then :
10079 $as_echo_n "(cached) " >&6
10081 if test "$cross_compiling" = yes; then :
10082 gcc_cv_initfini_array
=no
10084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10088 int main (void) { return x; }
10089 int foo (void) { x = 0; }
10090 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10092 if ac_fn_c_try_run
"$LINENO"; then :
10093 gcc_cv_initfini_array
=yes
10095 gcc_cv_initfini_array
=no
10097 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10098 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10103 $as_echo "$gcc_cv_initfini_array" >&6; }
10104 enable_initfini_array
=$gcc_cv_initfini_array
10108 if test $enable_initfini_array = yes; then
10110 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10114 # mkdir takes a single argument on some systems.
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10116 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10117 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
10120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 #include <sys/types.h>
10124 #ifdef HAVE_SYS_STAT_H
10125 # include <sys/stat.h>
10127 #ifdef HAVE_UNISTD_H
10128 # include <unistd.h>
10130 #ifdef HAVE_DIRECT_H
10131 # include <direct.h>
10141 if ac_fn_c_try_compile
"$LINENO"; then :
10142 gcc_cv_mkdir_takes_one_arg
=no
10144 gcc_cv_mkdir_takes_one_arg
=yes
10146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10149 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10150 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10152 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10163 # With Setjmp/Longjmp based exception handling.
10164 # Check whether --enable-sjlj-exceptions was given.
10165 if test "${enable_sjlj_exceptions+set}" = set; then :
10166 enableval
=$enable_sjlj_exceptions; case $target in
10168 if test $enableval != yes; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10170 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10175 force_sjlj_exceptions
=yes
10179 force_sjlj_exceptions
=yes
10183 force_sjlj_exceptions
=no
10188 if test $force_sjlj_exceptions = yes; then
10189 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10191 cat >>confdefs.h
<<_ACEOF
10192 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10197 # For platforms with the unwind ABI which includes an unwind library,
10198 # libunwind, we can choose to use the system libunwind.
10199 # config.gcc also contains tests of with_system_libunwind.
10202 # Check whether --with-system-libunwind was given.
10203 if test "${with_system_libunwind+set}" = set; then :
10204 withval
=$with_system_libunwind;
10207 # If system-libunwind was not specifically set, pick a default setting.
10208 if test x
$with_system_libunwind = x
; then
10210 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10211 *) with_system_libunwind
=no
;;
10214 # Based on system-libunwind and target, do we have ipinfo?
10215 if test x
$with_system_libunwind = xyes
; then
10217 ia64-
*-*) have_unwind_getipinfo
=no
;;
10218 *) have_unwind_getipinfo
=yes ;;
10221 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10224 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10225 *) have_unwind_getipinfo
=yes ;;
10230 if test x
$have_unwind_getipinfo = xyes
; then
10232 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10237 # --------------------------------------------------------
10238 # Build, host, and target specific configuration fragments
10239 # --------------------------------------------------------
10241 # Collect build-machine-specific information.
10242 .
${srcdir}/config.build
10244 # Collect host-machine-specific information.
10245 .
${srcdir}/config.
host
10249 # Collect target-machine-specific information.
10250 .
${srcdir}/config.gcc
10252 extra_objs
="${host_extra_objs} ${extra_objs}"
10253 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10255 # Default the target-machine variables that were not explicitly set.
10256 if test x
"$tm_file" = x
10257 then tm_file
=$cpu_type/$cpu_type.h
; fi
10259 if test x
"$extra_headers" = x
10260 then extra_headers
=; fi
10262 if test x
$md_file = x
10263 then md_file
=$cpu_type/$cpu_type.md
; fi
10265 if test x
$out_file = x
10266 then out_file
=$cpu_type/$cpu_type.c
; fi
10268 if test x
"$tmake_file" = x
10269 then tmake_file
=$cpu_type/t-
$cpu_type
10272 if test x
"$dwarf2" = xyes
10273 then tm_file
="$tm_file tm-dwarf2.h"
10276 # Say what files are being used for the output code and MD file.
10277 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10278 echo "Using \`$srcdir/config/$md_file' as machine description file."
10280 # If any of the xm_file variables contain nonexistent files, warn
10281 # about them and drop them.
10284 for x
in $build_xm_file; do
10285 if test -f $srcdir/config
/$x
10287 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10288 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10291 build_xm_file
="$bx"
10294 for x
in $host_xm_file; do
10295 if test -f $srcdir/config
/$x
10297 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10298 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10304 for x
in $xm_file; do
10305 if test -f $srcdir/config
/$x
10307 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10308 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10314 for f
in $tm_file; do
10317 if test $count = ax
; then
10318 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10320 echo "Using the following target machine macro files:"
10321 for f
in $tm_file; do
10322 echo " $srcdir/config/$f"
10326 if test x
$need_64bit_hwint = xyes
; then
10328 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10332 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10334 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10339 for f
in $host_xm_file; do
10342 if test $count = a
; then
10344 elif test $count = ax
; then
10345 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10347 echo "Using the following host machine macro files:"
10348 for f
in $host_xm_file; do
10349 echo " $srcdir/config/$f"
10352 echo "Using ${out_host_hook_obj} for host machine hooks."
10354 if test "$host_xm_file" != "$build_xm_file"; then
10356 for f
in $build_xm_file; do
10359 if test $count = a
; then
10361 elif test $count = ax
; then
10362 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10364 echo "Using the following build machine macro files:"
10365 for f
in $build_xm_file; do
10366 echo " $srcdir/config/$f"
10372 powerpc
*-*-darwin*)
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10374 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10375 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 #include <sys/cdefs.h>
10382 #include <sys/signal.h>
10383 #include <ucontext.h>
10384 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10387 if ac_fn_c_try_compile
"$LINENO"; then :
10388 gcc_cv_mcontext_underscores
=no
10390 gcc_cv_mcontext_underscores
=yes
10392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10395 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10396 if test $gcc_cv_mcontext_underscores = yes; then
10398 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10408 # Check if a valid thread package
10409 case ${enable_threads} in
10412 target_thread_file
='single'
10416 target_thread_file
='single'
10418 aix | dce | gnat | irix | posix | posix95 | rtems | \
10419 single | solaris | vxworks | win32 | mipssde
)
10420 target_thread_file
=${enable_threads}
10423 echo "${enable_threads} is an unknown thread package" 1>&2
10428 if test x
${thread_file} = x
; then
10429 # No thread file set by target-specific clauses in config.gcc,
10430 # so use file chosen by default logic above
10431 thread_file
=${target_thread_file}
10434 # Make gthr-default.h if we have a thread file.
10436 if test $thread_file != single
; then
10437 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10438 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10439 rm -f gthr-default.h-t
10441 mv -f gthr-default.h-t gthr-default.h
10443 gthread_flags
=-DHAVE_GTHR_DEFAULT
10452 if test x
$enable___cxa_atexit = xyes || \
10453 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10454 if test x
$host = x
$target; then
10456 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10457 # keyed to flag_use_cxa_atexit
10462 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10463 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10466 echo "__cxa_atexit can't be enabled on this target"
10472 # We can't check for __cxa_atexit when building a cross, so assume
10476 if test x
$use_cxa_atexit = xyes
; then
10478 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10483 # Look for a file containing extra machine modes.
10484 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10485 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10488 cat >>confdefs.h
<<_ACEOF
10489 #define EXTRA_MODES_FILE "config/$extra_modes"
10494 # Convert extra_options into a form suitable for Makefile use.
10496 for f
in $extra_options; do
10497 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10501 # auto-host.h is the file containing items generated by autoconf and is
10502 # the first file included by config.h.
10503 # If host=build, it is correct to have bconfig include auto-host.h
10504 # as well. If host!=build, we are in error and need to do more
10505 # work to find out the build config parameters.
10506 if test x
$host = x
$build
10508 build_auto
=auto-host.h
10510 # We create a subdir, then run autoconf in the subdir.
10511 # To prevent recursion we set host and build for the new
10512 # invocation of configure to the build for this invocation
10519 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10520 *) realsrcdir
=..
/${srcdir};;
10522 saved_CFLAGS
="${CFLAGS}"
10523 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10524 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10525 ${realsrcdir}/configure \
10526 --enable-languages=${enable_languages-all} \
10527 --target=$target_alias --host=$build_alias --build=$build_alias
10528 CFLAGS
="${saved_CFLAGS}"
10530 # We just finished tests for the build machine, so rename
10531 # the file auto-build.h in the gcc directory.
10532 mv auto-host.h ..
/auto-build.h
10535 build_auto
=auto-build.h
10539 tm_file
="${tm_file} defaults.h"
10540 tm_p_file
="${tm_p_file} tm-preds.h"
10541 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10542 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10543 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10544 # put this back in temporarily.
10545 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10551 # Compile in configure arguments.
10552 if test -f configargs.h
; then
10553 # Being re-configured.
10554 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10555 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10557 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10560 # Double all backslashes and backslash all quotes to turn
10561 # gcc_config_arguments into a C string.
10562 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10563 $gcc_config_arguments
10565 gcc_config_arguments_str
=`cat conftest.out`
10568 cat > configargs.h
<<EOF
10569 /* Generated automatically. */
10570 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10571 static const char thread_model[] = "$thread_file";
10573 static const struct {
10574 const char *name, *value;
10575 } configure_default_options[] = $configure_default_options;
10578 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10579 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10580 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10581 if test -f $srcdir/REVISION
; then
10582 gcc_REVISION
=`cat $srcdir/REVISION`
10586 cat > plugin-version.h
<<EOF
10587 #include "configargs.h"
10589 static char basever[] = "$gcc_BASEVER";
10590 static char datestamp[] = "$gcc_DATESTAMP";
10591 static char devphase[] = "$gcc_DEVPHASE";
10592 static char revision[] = "$gcc_REVISION";
10594 /* FIXME plugins: We should make the version information more precise.
10595 One way to do is to add a checksum. */
10597 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10598 devphase, revision,
10599 configuration_arguments};
10602 # Internationalization
10603 # If we haven't got the data from the intl directory,
10604 # assume NLS is disabled.
10613 if test -f ..
/intl
/config.intl
; then
10614 . ..
/intl
/config.intl
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10617 $as_echo_n "checking whether NLS is requested... " >&6; }
10618 if test x
"$USE_NLS" != xyes
; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10623 $as_echo "yes" >&6; }
10625 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10629 $as_echo_n "checking for catalogs to be installed... " >&6; }
10630 # Look for .po and .gmo files in the source directory.
10633 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10634 # If there aren't any .gmo files the shell will give us the
10635 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10637 case "$cat" in *\
**)
10640 # The quadruple backslash is collapsed to a double backslash
10641 # by the backticks, then collapsed again by the double quotes,
10642 # leaving us with one backslash in the sed expression (right
10643 # before the dot that mustn't act as a wildcard).
10644 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10645 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10646 # The user is allowed to set LINGUAS to a list of languages to
10647 # install catalogs for. If it's empty that means "all of them."
10648 if test "x$LINGUAS" = x
; then
10649 CATALOGS
="$CATALOGS $cat"
10650 XLINGUAS
="$XLINGUAS $lang"
10652 case "$LINGUAS" in *$lang*)
10653 CATALOGS
="$CATALOGS $cat"
10654 XLINGUAS
="$XLINGUAS $lang"
10659 LINGUAS
="$XLINGUAS"
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10661 $as_echo "$LINGUAS" >&6; }
10674 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10675 # -liconv on the link line twice.
10676 case "$LIBINTL" in *$LIBICONV*)
10680 # Check whether --enable-secureplt was given.
10681 if test "${enable_secureplt+set}" = set; then :
10682 enableval
=$enable_secureplt;
10686 # Check whether --enable-cld was given.
10687 if test "${enable_cld+set}" = set; then :
10688 enableval
=$enable_cld;
10694 # Windows32 Registry support for specifying GCC installation paths.
10695 # Check whether --enable-win32-registry was given.
10696 if test "${enable_win32_registry+set}" = set; then :
10697 enableval
=$enable_win32_registry;
10702 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10703 if test "x$enable_win32_registry" != xno
; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10705 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10706 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10709 ac_func_search_save_LIBS
=$LIBS
10710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10719 char RegOpenKeyExA ();
10723 return RegOpenKeyExA ();
10728 for ac_lib
in '' advapi32
; do
10729 if test -z "$ac_lib"; then
10730 ac_res
="none required"
10733 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10735 if ac_fn_c_try_link
"$LINENO"; then :
10736 ac_cv_search_RegOpenKeyExA
=$ac_res
10738 rm -f core conftest.err conftest.
$ac_objext \
10740 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10744 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10747 ac_cv_search_RegOpenKeyExA
=no
10749 rm conftest.
$ac_ext
10750 LIBS
=$ac_func_search_save_LIBS
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10753 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10754 ac_res
=$ac_cv_search_RegOpenKeyExA
10755 if test "$ac_res" != no
; then :
10756 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10759 enable_win32_registry
=no
10764 if test "x$enable_win32_registry" != xno
; then
10766 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10769 if test "x$enable_win32_registry" != xyes \
10770 && test "x$enable_win32_registry" != x
; then
10772 cat >>confdefs.h
<<_ACEOF
10773 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10781 # Get an absolute path to the GCC top-level source directory
10782 holddir
=`${PWDCMD-pwd}`
10784 topdir
=`${PWDCMD-pwd}`
10787 # Conditionalize the makefile for this host machine.
10789 for f
in ${host_xmake_file}
10791 if test -f ${srcdir}/config
/$f
10793 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10797 # Conditionalize the makefile for this target machine.
10799 for f
in ${tmake_file}
10801 if test -f ${srcdir}/config
/$f
10803 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10806 tmake_file
="${tmake_file_}"
10808 out_object_file
=`basename $out_file .c`.o
10810 tm_file_list
="options.h"
10811 tm_include_list
="options.h"
10812 for f
in $tm_file; do
10815 f
=`echo $f | sed 's/^..//'`
10816 tm_file_list
="${tm_file_list} $f"
10817 tm_include_list
="${tm_include_list} $f"
10820 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10821 tm_include_list
="${tm_include_list} $f"
10824 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10825 tm_include_list
="${tm_include_list} config/$f"
10832 for f
in $tm_p_file; do
10835 tm_p_file_list
="${tm_p_file_list} $f"
10836 tm_p_include_list
="${tm_p_include_list} $f"
10839 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10840 tm_p_include_list
="${tm_p_include_list} config/$f"
10846 for f
in $xm_file; do
10849 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10850 xm_include_list
="${xm_include_list} $f"
10853 xm_file_list
="${xm_file_list} $f"
10854 xm_include_list
="${xm_include_list} $f"
10857 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10858 xm_include_list
="${xm_include_list} config/$f"
10864 host_xm_include_list
=
10865 for f
in $host_xm_file; do
10868 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10869 host_xm_include_list
="${host_xm_include_list} $f"
10872 host_xm_file_list
="${host_xm_file_list} $f"
10873 host_xm_include_list
="${host_xm_include_list} $f"
10876 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10877 host_xm_include_list
="${host_xm_include_list} config/$f"
10882 build_xm_file_list
=
10883 for f
in $build_xm_file; do
10886 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10887 build_xm_include_list
="${build_xm_include_list} $f"
10889 auto-build.h | auto-host.h
)
10890 build_xm_file_list
="${build_xm_file_list} $f"
10891 build_xm_include_list
="${build_xm_include_list} $f"
10894 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10895 build_xm_include_list
="${build_xm_include_list} config/$f"
10900 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10901 # cross-compiler which does not use the native headers and libraries.
10902 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10905 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10907 if test "x$with_build_sysroot" != x
; then
10908 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10910 # This value is used, even on a native system, because
10911 # CROSS_SYSTEM_HEADER_DIR is just
10912 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10913 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10916 if test x
$host != x
$target
10918 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10920 SYSTEM_HEADER_DIR
=$build_system_header_dir
10921 case "$host","$target" in
10922 # Darwin crosses can use the host system's libraries and headers,
10923 # because of the fat library support. Of course, it must be the
10924 # same version of Darwin on both sides. Allow the user to
10925 # just say --target=foo-darwin without a version number to mean
10926 # "the version on this system".
10927 *-*-darwin*,*-*-darwin*)
10928 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10929 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10930 if test $hostos = $targetos -o $targetos = darwin
; then
10932 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10937 i?
86-*-*,x86_64-
*-* \
10938 | powerpc
*-*-*,powerpc64
*-*-*)
10939 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10941 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10942 SYSTEM_HEADER_DIR
=$build_system_header_dir
10945 # If this is a cross-compiler that does not
10946 # have its own set of headers then define
10949 # If this is using newlib, without having the headers available now,
10950 # then define inhibit_libc in LIBGCC2_CFLAGS.
10951 # This prevents libgcc2 from containing any code which requires libc
10953 : ${inhibit_libc=false}
10954 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10955 test x
$with_newlib = xyes
; } &&
10956 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10961 # When building gcc with a cross-compiler, we need to adjust things so
10962 # that the generator programs are still built with the native compiler.
10963 # Also, we cannot run fixincludes.
10965 # These are the normal (build=host) settings:
10966 CC_FOR_BUILD
='$(CC)'
10967 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10968 BUILD_LDFLAGS
='$(LDFLAGS)'
10969 STMP_FIXINC
=stmp-fixinc
10971 # And these apply if build != host, or we are generating coverage data
10972 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10974 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10975 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
10978 # Expand extra_headers to include complete path.
10979 # This substitutes for lots of t-* files.
10980 extra_headers_list
=
10981 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10982 for file in ${extra_headers} ; do
10983 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10986 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10987 if test x
"$use_gcc_tgmath" = xyes
10988 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10991 # Define collect2 in Makefile.
10992 case $host_can_use_collect2 in
10994 *) collect2
='collect2$(exeext)' ;;
10998 # Add a definition of USE_COLLECT2 if system wants one.
10999 case $use_collect2 in
11000 no
) use_collect2
= ;;
11003 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11004 xm_defines
="${xm_defines} USE_COLLECT2"
11005 case $host_can_use_collect2 in
11007 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11013 # ---------------------------
11014 # Assembler & linker features
11015 # ---------------------------
11017 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11018 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11019 # However when ld-new is first executed from the build tree, libtool will
11020 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11021 # to the build tree. While doing this we need to use the previous-stage
11022 # linker, or we have an infinite loop. The presence of a shell script as
11023 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11024 # the gcc/collect-ld script. So we need to know how libtool works, or
11025 # exec-tool will fail.
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11031 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11036 macro_version
='2.2.7a'
11037 macro_revision
='1.3134'
11051 ltmain
="$ac_aux_dir/ltmain.sh"
11053 # Backslashify metacharacters that are still active within
11054 # double-quoted strings.
11055 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11057 # Same as above, but do not quote variable references.
11058 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11060 # Sed substitution to delay expansion of an escaped shell variable in a
11061 # double_quote_subst'ed string.
11062 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11064 # Sed substitution to delay expansion of an escaped single quote.
11065 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11067 # Sed substitution to avoid accidental globbing in evaled expressions
11068 no_glob_subst
='s/\*/\\\*/g'
11070 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11075 $as_echo_n "checking how to print strings... " >&6; }
11076 # Test print first, because it will be a builtin if present.
11077 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11078 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11080 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11083 # Use this function as a fallback that always works.
11084 func_fallback_echo ()
11086 eval 'cat <<_LTECHO_EOF
11090 ECHO='func_fallback_echo
'
11093 # func_echo_all arg...
11094 # Invoke $ECHO with all args, space-separated.
11101 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11102 $as_echo "printf" >&6; } ;;
11103 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11104 $as_echo "print -r" >&6; } ;;
11105 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11106 $as_echo "cat" >&6; } ;;
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11124 if test "${ac_cv_path_SED+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11128 for ac_i in 1 2 3 4 5 6 7; do
11129 ac_script="$ac_script$as_nl$ac_script"
11131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11132 { ac_script=; unset ac_script;}
11133 if test -z "$SED"; then
11134 ac_path_SED_found=false
11135 # Loop through the user's path and
test for each of PROGNAME-LIST
11136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11137 for as_dir
in $PATH
11140 test -z "$as_dir" && as_dir
=.
11141 for ac_prog
in sed gsed
; do
11142 for ac_exec_ext
in '' $ac_executable_extensions; do
11143 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11144 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11145 # Check for GNU ac_path_SED and select it if it is found.
11146 # Check for GNU $ac_path_SED
11147 case `"$ac_path_SED" --version 2>&1` in
11149 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11152 $as_echo_n 0123456789 >"conftest.in"
11155 cat "conftest.in" "conftest.in" >"conftest.tmp"
11156 mv "conftest.tmp" "conftest.in"
11157 cp "conftest.in" "conftest.nl"
11158 $as_echo '' >> "conftest.nl"
11159 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11160 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11161 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11162 if test $ac_count -gt ${ac_path_SED_max-0}; then
11163 # Best one so far, save it but keep looking for a better one
11164 ac_cv_path_SED
="$ac_path_SED"
11165 ac_path_SED_max
=$ac_count
11167 # 10*(2^10) chars as input seems more than enough
11168 test $ac_count -gt 10 && break
11170 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11173 $ac_path_SED_found && break 3
11178 if test -z "$ac_cv_path_SED"; then
11179 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11182 ac_cv_path_SED
=$SED
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11187 $as_echo "$ac_cv_path_SED" >&6; }
11188 SED
="$ac_cv_path_SED"
11191 test -z "$SED" && SED
=sed
11192 Xsed
="$SED -e 1s/^X//"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11205 $as_echo_n "checking for fgrep... " >&6; }
11206 if test "${ac_cv_path_FGREP+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11209 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11210 then ac_cv_path_FGREP
="$GREP -F"
11212 if test -z "$FGREP"; then
11213 ac_path_FGREP_found
=false
11214 # Loop through the user's path and test for each of PROGNAME-LIST
11215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11216 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11219 test -z "$as_dir" && as_dir
=.
11220 for ac_prog
in fgrep
; do
11221 for ac_exec_ext
in '' $ac_executable_extensions; do
11222 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11223 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11224 # Check for GNU ac_path_FGREP and select it if it is found.
11225 # Check for GNU $ac_path_FGREP
11226 case `"$ac_path_FGREP" --version 2>&1` in
11228 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11231 $as_echo_n 0123456789 >"conftest.in"
11234 cat "conftest.in" "conftest.in" >"conftest.tmp"
11235 mv "conftest.tmp" "conftest.in"
11236 cp "conftest.in" "conftest.nl"
11237 $as_echo 'FGREP' >> "conftest.nl"
11238 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11239 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11240 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11241 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11242 # Best one so far, save it but keep looking for a better one
11243 ac_cv_path_FGREP
="$ac_path_FGREP"
11244 ac_path_FGREP_max
=$ac_count
11246 # 10*(2^10) chars as input seems more than enough
11247 test $ac_count -gt 10 && break
11249 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11252 $ac_path_FGREP_found && break 3
11257 if test -z "$ac_cv_path_FGREP"; then
11258 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11261 ac_cv_path_FGREP
=$FGREP
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11267 $as_echo "$ac_cv_path_FGREP" >&6; }
11268 FGREP
="$ac_cv_path_FGREP"
11271 test -z "$GREP" && GREP
=grep
11291 # Check whether --with-gnu-ld was given.
11292 if test "${with_gnu_ld+set}" = set; then :
11293 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11299 if test "$GCC" = yes; then
11300 # Check if gcc -print-prog-name=ld gives a path.
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11302 $as_echo_n "checking for ld used by $CC... " >&6; }
11305 # gcc leaves a trailing carriage return which upsets mingw
11306 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11308 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11311 # Accept absolute paths.
11313 re_direlt
='/[^/][^/]*/\.\./'
11314 # Canonicalize the pathname of ld
11315 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11316 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11317 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11319 test -z "$LD" && LD
="$ac_prog"
11322 # If it fails, then pretend we aren't using GCC.
11326 # If it is relative, then search for the first ld in PATH.
11327 with_gnu_ld
=unknown
11330 elif test "$with_gnu_ld" = yes; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11332 $as_echo_n "checking for GNU ld... " >&6; }
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11335 $as_echo_n "checking for non-GNU ld... " >&6; }
11337 if test "${lt_cv_path_LD+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
11340 if test -z "$LD"; then
11341 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11342 for ac_dir
in $PATH; do
11344 test -z "$ac_dir" && ac_dir
=.
11345 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11346 lt_cv_path_LD
="$ac_dir/$ac_prog"
11347 # Check to see if the program is GNU ld. I'd rather use --version,
11348 # but apparently some variants of GNU ld only accept -v.
11349 # Break only if it was the GNU/non-GNU ld that we prefer.
11350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11351 *GNU
* |
*'with BFD'*)
11352 test "$with_gnu_ld" != no
&& break
11355 test "$with_gnu_ld" != yes && break
11362 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11366 LD
="$lt_cv_path_LD"
11367 if test -n "$LD"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11369 $as_echo "$LD" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11374 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11376 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11377 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11380 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11381 case `$LD -v 2>&1 </dev/null` in
11382 *GNU
* |
*'with BFD'*)
11383 lt_cv_prog_gnu_ld
=yes
11386 lt_cv_prog_gnu_ld
=no
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11391 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11392 with_gnu_ld
=$lt_cv_prog_gnu_ld
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11403 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11404 if test "${lt_cv_path_NM+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11407 if test -n "$NM"; then
11408 # Let the user override the test.
11409 lt_cv_path_NM
="$NM"
11411 lt_nm_to_check
="${ac_tool_prefix}nm"
11412 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11413 lt_nm_to_check
="$lt_nm_to_check nm"
11415 for lt_tmp_nm
in $lt_nm_to_check; do
11416 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11417 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11419 test -z "$ac_dir" && ac_dir
=.
11420 tmp_nm
="$ac_dir/$lt_tmp_nm"
11421 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11422 # Check to see if the nm accepts a BSD-compat flag.
11423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11424 # nm: unknown option "B" ignored
11425 # Tru64's nm complains that /dev/null is an invalid object file
11426 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11427 */dev
/null
* |
*'Invalid file or object type'*)
11428 lt_cv_path_NM
="$tmp_nm -B"
11432 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11434 lt_cv_path_NM
="$tmp_nm -p"
11438 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11439 continue # so that we can try to find one that supports BSD flags
11448 : ${lt_cv_path_NM=no}
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11452 $as_echo "$lt_cv_path_NM" >&6; }
11453 if test "$lt_cv_path_NM" != "no"; then
11454 NM
="$lt_cv_path_NM"
11456 # Didn't find any BSD compatible name lister, look for dumpbin.
11457 if test -n "$DUMPBIN"; then :
11458 # Let the user override the test.
11460 if test -n "$ac_tool_prefix"; then
11461 for ac_prog
in dumpbin
"link -dump"
11463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11464 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11470 if test -n "$DUMPBIN"; then
11471 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11474 for as_dir
in $PATH
11477 test -z "$as_dir" && as_dir
=.
11478 for ac_exec_ext
in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 DUMPBIN
=$ac_cv_prog_DUMPBIN
11491 if test -n "$DUMPBIN"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11493 $as_echo "$DUMPBIN" >&6; }
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11500 test -n "$DUMPBIN" && break
11503 if test -z "$DUMPBIN"; then
11504 ac_ct_DUMPBIN
=$DUMPBIN
11505 for ac_prog
in dumpbin
"link -dump"
11507 # Extract the first word of "$ac_prog", so it can be a program name with args.
11508 set dummy
$ac_prog; ac_word
=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11514 if test -n "$ac_ct_DUMPBIN"; then
11515 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11518 for as_dir
in $PATH
11521 test -z "$as_dir" && as_dir
=.
11522 for ac_exec_ext
in '' $ac_executable_extensions; do
11523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11524 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11535 if test -n "$ac_ct_DUMPBIN"; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11537 $as_echo "$ac_ct_DUMPBIN" >&6; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 $as_echo "no" >&6; }
11544 test -n "$ac_ct_DUMPBIN" && break
11547 if test "x$ac_ct_DUMPBIN" = x
; then
11550 case $cross_compiling:$ac_tool_warned in
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11554 ac_tool_warned
=yes ;;
11556 DUMPBIN
=$ac_ct_DUMPBIN
11560 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11562 DUMPBIN
="$DUMPBIN -symbols"
11570 if test "$DUMPBIN" != ":"; then
11574 test -z "$NM" && NM
=nm
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11582 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11583 if test "${lt_cv_nm_interface+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11586 lt_cv_nm_interface
="BSD nm"
11587 echo "int some_variable = 0;" > conftest.
$ac_ext
11588 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11589 (eval "$ac_compile" 2>conftest.err
)
11590 cat conftest.err
>&5
11591 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11592 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11593 cat conftest.err
>&5
11594 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11595 cat conftest.out
>&5
11596 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11597 lt_cv_nm_interface
="MS dumpbin"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11602 $as_echo "$lt_cv_nm_interface" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11605 $as_echo_n "checking whether ln -s works... " >&6; }
11607 if test "$LN_S" = "ln -s"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11612 $as_echo "no, using $LN_S" >&6; }
11615 # find the maximum length of command line arguments
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11617 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11618 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
11626 # On DJGPP, this test can blow up pretty badly due to problems in libc
11627 # (any single argument exceeding 2000 bytes causes a buffer overrun
11628 # during glob expansion). Even if it were fixed, the result of this
11629 # check would be larger than it should be.
11630 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11634 # Under GNU Hurd, this test is not required because there is
11635 # no limit to the length of command line arguments.
11636 # Libtool will interpret -1 as no limit whatsoever
11637 lt_cv_sys_max_cmd_len
=-1;
11640 cygwin
* | mingw
* | cegcc
*)
11641 # On Win9x/ME, this test blows up -- it succeeds, but takes
11642 # about 5 minutes as the teststring grows exponentially.
11643 # Worse, since 9x/ME are not pre-emptively multitasking,
11644 # you end up with a "frozen" computer, even though with patience
11645 # the test eventually succeeds (with a max line length of 256k).
11646 # Instead, let's just punt: use the minimum linelength reported by
11647 # all of the supported platforms: 8192 (on NT/2K/XP).
11648 lt_cv_sys_max_cmd_len
=8192;
11652 # On MiNT this can take a long time and run out of memory.
11653 lt_cv_sys_max_cmd_len
=8192;
11657 # On AmigaOS with pdksh, this test takes hours, literally.
11658 # So we just punt and use a minimum line length of 8192.
11659 lt_cv_sys_max_cmd_len
=8192;
11662 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11663 # This has been around since 386BSD, at least. Likely further.
11664 if test -x /sbin
/sysctl
; then
11665 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11666 elif test -x /usr
/sbin
/sysctl
; then
11667 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11669 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11671 # And add a safety zone
11672 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11673 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11677 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11678 lt_cv_sys_max_cmd_len
=196608
11682 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11683 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11684 # nice to cause kernel panics so lets avoid the loop below.
11685 # First set a reasonable default.
11686 lt_cv_sys_max_cmd_len
=16384
11688 if test -x /sbin
/sysconfig
; then
11689 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11690 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11695 lt_cv_sys_max_cmd_len
=102400
11697 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11698 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11699 if test -n "$kargmax"; then
11700 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11702 lt_cv_sys_max_cmd_len
=32768
11706 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11707 if test -n "$lt_cv_sys_max_cmd_len"; then
11708 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11709 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11711 # Make teststring a little bigger before we do anything with it.
11712 # a 1K string should be a reasonable start.
11713 for i
in 1 2 3 4 5 6 7 8 ; do
11714 teststring
=$teststring$teststring
11716 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11717 # If test is not a shell built-in, we'll probably end up computing a
11718 # maximum length that is only half of the actual maximum length, but
11720 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11721 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11722 test $i != 17 # 1/2 MB should be enough
11725 teststring
=$teststring$teststring
11727 # Only check the string length outside the loop.
11728 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11730 # Add a significant safety factor because C++ compilers can tack on
11731 # massive amounts of additional arguments before passing them to the
11732 # linker. It appears as though 1/2 is a usable value.
11733 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11740 if test -n $lt_cv_sys_max_cmd_len ; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11742 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11745 $as_echo "none" >&6; }
11747 max_cmd_len
=$lt_cv_sys_max_cmd_len
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11759 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11760 # Try some XSI features
11762 ( _lt_dummy
="a/b/c"
11763 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11765 && eval 'test $(( 1 + 1 )) -eq 2 \
11766 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11769 $as_echo "$xsi_shell" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11773 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11775 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11777 && lt_shell_append=yes
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11779 $as_echo "$lt_shell_append" >&6; }
11782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11792 # test EBCDIC or ASCII
11793 case `echo X|tr X '\101'` in
11794 A) # ASCII based system
11795 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11796 lt_SP2NL='tr \040 \012'
11797 lt_NL2SP='tr \015\012 \040\040'
11799 *) # EBCDIC based system
11800 lt_SP2NL='tr \100 \n'
11801 lt_NL2SP='tr \r\n \100\100'
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11814 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11815 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11816 $as_echo_n "(cached
) " >&6
11818 lt_cv_ld_reload_flag='-r'
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11821 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11822 reload_flag=$lt_cv_ld_reload_flag
11823 case $reload_flag in
11825 *) reload_flag=" $reload_flag" ;;
11827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11830 if test "$GCC" = yes; then
11831 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11846 if test -n "$ac_tool_prefix"; then
11847 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11848 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11850 $as_echo_n "checking
for $ac_word...
" >&6; }
11851 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11852 $as_echo_n "(cached
) " >&6
11854 if test -n "$OBJDUMP"; then
11855 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11874 OBJDUMP=$ac_cv_prog_OBJDUMP
11875 if test -n "$OBJDUMP"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11877 $as_echo "$OBJDUMP" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11880 $as_echo "no
" >&6; }
11885 if test -z "$ac_cv_prog_OBJDUMP"; then
11886 ac_ct_OBJDUMP=$OBJDUMP
11887 # Extract the first word of "objdump
", so it can be a program name with args.
11888 set dummy objdump; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11890 $as_echo_n "checking
for $ac_word...
" >&6; }
11891 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11892 $as_echo_n "(cached
) " >&6
11894 if test -n "$ac_ct_OBJDUMP"; then
11895 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11914 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11915 if test -n "$ac_ct_OBJDUMP"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11917 $as_echo "$ac_ct_OBJDUMP" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11920 $as_echo "no
" >&6; }
11923 if test "x
$ac_ct_OBJDUMP" = x; then
11926 case $cross_compiling:$ac_tool_warned in
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11929 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11930 ac_tool_warned=yes ;;
11932 OBJDUMP=$ac_ct_OBJDUMP
11935 OBJDUMP="$ac_cv_prog_OBJDUMP"
11938 test -z "$OBJDUMP" && OBJDUMP=objdump
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11949 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11950 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11951 $as_echo_n "(cached
) " >&6
11953 lt_cv_file_magic_cmd='$MAGIC_CMD'
11954 lt_cv_file_magic_test_file=
11955 lt_cv_deplibs_check_method='unknown'
11956 # Need to set the preceding variable on all platforms that support
11957 # interlibrary dependencies.
11958 # 'none' -- dependencies not supported.
11959 # `unknown' -- same as none, but documents that we really don't know.
11960 # 'pass_all' -- all dependencies passed with no checks.
11961 # 'test_compile' -- check by making test program.
11962 # 'file_magic [[regex]]' -- check by looking for files in library path
11963 # which responds to the $file_magic_cmd with a given extended regex.
11964 # If you have `file' or equivalent on your system and you're not sure
11965 # whether `pass_all' will *always* work, you probably want this one.
11969 lt_cv_deplibs_check_method=pass_all
11973 lt_cv_deplibs_check_method=pass_all
11977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11978 lt_cv_file_magic_cmd='/usr/bin/file -L'
11979 lt_cv_file_magic_test_file=/shlib/libc.so
11983 # func_win32_libid is a shell function defined in ltmain.sh
11984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11985 lt_cv_file_magic_cmd='func_win32_libid'
11989 # Base MSYS/MinGW do not provide the 'file' command needed by
11990 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11991 # unless we find 'file', for example because we are cross-compiling.
11992 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11993 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
11994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11995 lt_cv_file_magic_cmd='func_win32_libid'
11997 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11998 lt_cv_file_magic_cmd='$OBJDUMP -f'
12003 # use the weaker test based on 'objdump'. See mingw*.
12004 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12005 lt_cv_file_magic_cmd='$OBJDUMP -f'
12008 darwin* | rhapsody*)
12009 lt_cv_deplibs_check_method=pass_all
12012 freebsd* | dragonfly*)
12013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12016 # Not sure whether the presence of OpenBSD here was a mistake.
12017 # Let's accept both of them until this is cleared up.
12018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12019 lt_cv_file_magic_cmd=/usr/bin/file
12020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12024 lt_cv_deplibs_check_method=pass_all
12029 lt_cv_deplibs_check_method=pass_all
12033 lt_cv_deplibs_check_method=pass_all
12036 hpux10.20* | hpux11*)
12037 lt_cv_file_magic_cmd=/usr/bin/file
12040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12044 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]'
12045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12055 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12059 irix5* | irix6* | nonstopux*)
12061 *-32|*"-32 ") libmagic=32-bit;;
12062 *-n32|*"-n32 ") libmagic=N32;;
12063 *-64|*"-64 ") libmagic=64-bit;;
12064 *) libmagic=never-match;;
12066 lt_cv_deplibs_check_method=pass_all
12069 # This must be Linux ELF.
12070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12071 lt_cv_deplibs_check_method=pass_all
12075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12084 lt_cv_file_magic_cmd=/usr/bin/file
12085 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12089 lt_cv_deplibs_check_method=pass_all
12093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12100 osf3* | osf4* | osf5*)
12101 lt_cv_deplibs_check_method=pass_all
12105 lt_cv_deplibs_check_method=pass_all
12109 lt_cv_deplibs_check_method=pass_all
12112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12113 lt_cv_deplibs_check_method=pass_all
12117 case $host_vendor in
12119 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]'
12120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12123 lt_cv_deplibs_check_method=pass_all
12126 lt_cv_file_magic_cmd='/bin/file'
12127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12130 lt_cv_file_magic_cmd='/bin/file'
12131 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12132 lt_cv_file_magic_test_file=/lib/libc.so
12135 lt_cv_deplibs_check_method=pass_all
12138 lt_cv_deplibs_check_method=pass_all
12144 lt_cv_deplibs_check_method=pass_all
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12150 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12151 file_magic_cmd=$lt_cv_file_magic_cmd
12152 deplibs_check_method=$lt_cv_deplibs_check_method
12153 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12166 if test -n "$ac_tool_prefix"; then
12167 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12168 set dummy ${ac_tool_prefix}ar; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12170 $as_echo_n "checking
for $ac_word...
" >&6; }
12171 if test "${ac_cv_prog_AR+set}" = set; then :
12172 $as_echo_n "(cached
) " >&6
12174 if test -n "$AR"; then
12175 ac_cv_prog_AR="$AR" # Let the user override the test.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184 ac_cv_prog_AR="${ac_tool_prefix}ar"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12195 if test -n "$AR"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12197 $as_echo "$AR" >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12200 $as_echo "no
" >&6; }
12205 if test -z "$ac_cv_prog_AR"; then
12207 # Extract the first word of "ar", so it can be a program name with args.
12208 set dummy ar; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12210 $as_echo_n "checking
for $ac_word...
" >&6; }
12211 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12212 $as_echo_n "(cached
) " >&6
12214 if test -n "$ac_ct_AR"; then
12215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224 ac_cv_prog_ac_ct_AR="ar"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12235 if test -n "$ac_ct_AR"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12237 $as_echo "$ac_ct_AR" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12240 $as_echo "no
" >&6; }
12243 if test "x
$ac_ct_AR" = x; then
12246 case $cross_compiling:$ac_tool_warned in
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12249 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12250 ac_tool_warned=yes ;;
12255 AR="$ac_cv_prog_AR"
12258 test -z "$AR" && AR=ar
12259 test -z "$AR_FLAGS" && AR_FLAGS=cru
12271 if test -n "$ac_tool_prefix"; then
12272 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12273 set dummy ${ac_tool_prefix}strip; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12275 $as_echo_n "checking
for $ac_word...
" >&6; }
12276 if test "${ac_cv_prog_STRIP+set}" = set; then :
12277 $as_echo_n "(cached
) " >&6
12279 if test -n "$STRIP"; then
12280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12299 STRIP=$ac_cv_prog_STRIP
12300 if test -n "$STRIP"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12302 $as_echo "$STRIP" >&6; }
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12305 $as_echo "no
" >&6; }
12310 if test -z "$ac_cv_prog_STRIP"; then
12312 # Extract the first word of "strip
", so it can be a program name with args.
12313 set dummy strip; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12315 $as_echo_n "checking
for $ac_word...
" >&6; }
12316 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12317 $as_echo_n "(cached
) " >&6
12319 if test -n "$ac_ct_STRIP"; then
12320 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_ac_ct_STRIP="strip
"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12339 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12340 if test -n "$ac_ct_STRIP"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12342 $as_echo "$ac_ct_STRIP" >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12345 $as_echo "no
" >&6; }
12348 if test "x
$ac_ct_STRIP" = x; then
12351 case $cross_compiling:$ac_tool_warned in
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12354 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12355 ac_tool_warned=yes ;;
12360 STRIP="$ac_cv_prog_STRIP"
12363 test -z "$STRIP" && STRIP=:
12370 if test -n "$ac_tool_prefix"; then
12371 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12372 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12374 $as_echo_n "checking
for $ac_word...
" >&6; }
12375 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12376 $as_echo_n "(cached
) " >&6
12378 if test -n "$RANLIB"; then
12379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12398 RANLIB=$ac_cv_prog_RANLIB
12399 if test -n "$RANLIB"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12401 $as_echo "$RANLIB" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12404 $as_echo "no
" >&6; }
12409 if test -z "$ac_cv_prog_RANLIB"; then
12410 ac_ct_RANLIB=$RANLIB
12411 # Extract the first word of "ranlib
", so it can be a program name with args.
12412 set dummy ranlib; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12414 $as_echo_n "checking
for $ac_word...
" >&6; }
12415 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12416 $as_echo_n "(cached
) " >&6
12418 if test -n "$ac_ct_RANLIB"; then
12419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12439 if test -n "$ac_ct_RANLIB"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12441 $as_echo "$ac_ct_RANLIB" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12444 $as_echo "no
" >&6; }
12447 if test "x
$ac_ct_RANLIB" = x; then
12450 case $cross_compiling:$ac_tool_warned in
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12453 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12454 ac_tool_warned=yes ;;
12456 RANLIB=$ac_ct_RANLIB
12459 RANLIB="$ac_cv_prog_RANLIB"
12462 test -z "$RANLIB" && RANLIB=:
12469 # Determine commands to create old-style static archives.
12470 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12471 old_postinstall_cmds='chmod 644 $oldlib'
12472 old_postuninstall_cmds=
12474 if test -n "$RANLIB"; then
12477 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12480 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12483 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12488 lock_old_archive_extraction=yes ;;
12490 lock_old_archive_extraction=no ;;
12531 # If no C compiler was specified, use CC.
12534 # If no C compiler flags were specified, use CFLAGS.
12535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12537 # Allow CC to be a program name with arguments.
12541 # Check for command to grab the raw symbol name followed by C symbol from nm.
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12543 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12544 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12545 $as_echo_n "(cached
) " >&6
12548 # These are sane defaults that work on at least a few old systems.
12549 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12551 # Character class describing NM global symbol codes.
12552 symcode='[BCDEGRST]'
12554 # Regexp to match symbols that can be accessed directly from C.
12555 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12557 # Define system-specific variables.
12562 cygwin* | mingw* | pw32* | cegcc*)
12563 symcode='[ABCDGISTW]'
12566 if test "$host_cpu" = ia64; then
12567 symcode='[ABCDEGRST]'
12570 irix* | nonstopux*)
12571 symcode='[BCDEGRST]'
12574 symcode='[BCDEGQRST]'
12585 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12593 # If we're using GNU nm, then use its standard symbol codes.
12594 case `$NM -V 2>&1` in
12595 *GNU* | *'with BFD'*)
12596 symcode='[ABCDGIRSTW]' ;;
12599 # Transform an extracted symbol line into a proper C declaration.
12600 # Some systems (esp. on ia64) link data and code symbols differently,
12601 # so use this general approach.
12602 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12604 # Transform an extracted symbol line into symbol name and symbol address
12605 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12606 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'"
12608 # Handle CRLF in mingw tool chain
12612 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12616 # Try without a prefix underscore, then with it.
12617 for ac_symprfx in "" "_
"; do
12619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12620 symxfrm="\\1 $ac_symprfx\\2 \\2"
12622 # Write the raw and C identifiers.
12623 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12624 # Fake it for dumpbin and say T for any non-static function
12625 # and D for any global variable.
12626 # Also find C++ and __fastcall symbols from MSVC++,
12627 # which start with @ or ?.
12628 lt_cv_sys_global_symbol_pipe="$AWK '"\
12629 " {last_section=section; section=\$ 3};"\
12630 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12631 " \$ 0!~/External *\|/{next};"\
12632 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12633 " {if(hide[section]) next};"\
12634 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12635 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12636 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12637 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12638 " ' prfx
=^
$ac_symprfx"
12640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12643 # Check to see that the pipe works correctly.
12647 cat > conftest.$ac_ext <<_LT_EOF
12652 void nm_test_func(void);
12653 void nm_test_func(void){}
12657 int main(){nm_test_var='a';nm_test_func();return(0);}
12660 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12661 (eval $ac_compile) 2>&5
12663 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12664 test $ac_status = 0; }; then
12665 # Now try to grab the symbols.
12667 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12668 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12671 test $ac_status = 0; } && test -s "$nlist"; then
12672 # Try sorting and uniquifying the output.
12673 if sort "$nlist" | uniq > "$nlist"T; then
12674 mv -f "$nlist"T "$nlist"
12679 # Make sure that we snagged all the symbols we need.
12680 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12681 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12682 cat <<_LT_EOF > conftest.$ac_ext
12688 # Now generate the symbol file.
12689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12691 cat <<_LT_EOF >> conftest.$ac_ext
12693 /* The mapping between symbol names and symbols. */
12698 lt__PROGRAM__LTX_preloaded_symbols[] =
12700 { "@PROGRAM@
", (void *) 0 },
12702 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12703 cat <<\_LT_EOF >> conftest.$ac_ext
12707 /* This works around a problem in FreeBSD linker */
12708 #ifdef FREEBSD_WORKAROUND
12709 static const void *lt_preloaded_setup() {
12710 return lt__PROGRAM__LTX_preloaded_symbols;
12718 # Now try linking the two files.
12719 mv conftest.$ac_objext conftstm.$ac_objext
12720 lt_save_LIBS="$LIBS"
12721 lt_save_CFLAGS="$CFLAGS"
12722 LIBS="conftstm.
$ac_objext"
12723 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12724 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12725 (eval $ac_link) 2>&5
12727 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12728 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12731 LIBS="$lt_save_LIBS"
12732 CFLAGS="$lt_save_CFLAGS"
12734 echo "cannot
find nm_test_func
in $nlist" >&5
12737 echo "cannot
find nm_test_var
in $nlist" >&5
12740 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12743 echo "$progname: failed program was
:" >&5
12744 cat conftest.$ac_ext >&5
12746 rm -rf conftest* conftst*
12748 # Do not use the global_symbol_pipe unless it works.
12749 if test "$pipe_works" = yes; then
12752 lt_cv_sys_global_symbol_pipe=
12758 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12759 lt_cv_sys_global_symbol_to_cdecl=
12761 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12763 $as_echo "failed
" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12766 $as_echo "ok
" >&6; }
12790 # Check whether --enable-libtool-lock was given.
12791 if test "${enable_libtool_lock+set}" = set; then :
12792 enableval=$enable_libtool_lock;
12795 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12797 # Some flags need to be propagated to the compiler or linker for good
12801 # Find out which ABI we are using.
12802 echo 'int i;' > conftest.$ac_ext
12803 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12804 (eval $ac_compile) 2>&5
12806 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12807 test $ac_status = 0; }; then
12808 case `/usr/bin/file conftest.$ac_objext` in
12810 HPUX_IA64_MODE="32"
12813 HPUX_IA64_MODE="64"
12820 # Find out which ABI we are using.
12821 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
12822 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12823 (eval $ac_compile) 2>&5
12825 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12826 test $ac_status = 0; }; then
12827 if test "$lt_cv_prog_gnu_ld" = yes; then
12828 case `/usr/bin/file conftest.$ac_objext` in
12830 LD="${LD-ld} -melf32bsmip"
12833 LD="${LD-ld} -melf32bmipn32"
12836 LD="${LD-ld} -melf64bmip"
12840 case `/usr/bin/file conftest.$ac_objext` in
12856 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12857 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12858 # Find out which ABI we are using.
12859 echo 'int i;' > conftest.$ac_ext
12860 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12861 (eval $ac_compile) 2>&5
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12864 test $ac_status = 0; }; then
12865 case `/usr/bin/file conftest.o` in
12868 x86_64-*kfreebsd*-gnu)
12869 LD="${LD-ld} -m elf_i386_fbsd
"
12872 LD="${LD-ld} -m elf_i386
"
12874 ppc64-*linux*|powerpc64-*linux*)
12875 LD="${LD-ld} -m elf32ppclinux
"
12878 LD="${LD-ld} -m elf_s390
"
12881 LD="${LD-ld} -m elf32_sparc
"
12887 x86_64-*kfreebsd*-gnu)
12888 LD="${LD-ld} -m elf_x86_64_fbsd
"
12891 LD="${LD-ld} -m elf_x86_64
"
12893 ppc*-*linux*|powerpc*-*linux*)
12894 LD="${LD-ld} -m elf64ppc
"
12896 s390*-*linux*|s390*-*tpf*)
12897 LD="${LD-ld} -m elf64_s390
"
12900 LD="${LD-ld} -m elf64_sparc
"
12910 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12911 SAVE_CFLAGS="$CFLAGS"
12912 CFLAGS="$CFLAGS -belf"
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12914 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12915 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12916 $as_echo_n "(cached
) " >&6
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12935 if ac_fn_c_try_link "$LINENO"; then :
12936 lt_cv_cc_needs_belf=yes
12938 lt_cv_cc_needs_belf=no
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12943 ac_cpp='$CPP $CPPFLAGS'
12944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12950 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12953 CFLAGS="$SAVE_CFLAGS"
12957 # Find out which ABI we are using.
12958 echo 'int i;' > conftest.$ac_ext
12959 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12960 (eval $ac_compile) 2>&5
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 case `/usr/bin/file conftest.o` in
12966 case $lt_cv_prog_gnu_ld in
12967 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12969 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12981 need_locks="$enable_libtool_lock"
12985 rhapsody* | darwin*)
12986 if test -n "$ac_tool_prefix"; then
12987 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
12988 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12990 $as_echo_n "checking
for $ac_word...
" >&6; }
12991 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12992 $as_echo_n "(cached
) " >&6
12994 if test -n "$DSYMUTIL"; then
12995 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13014 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13015 if test -n "$DSYMUTIL"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13017 $as_echo "$DSYMUTIL" >&6; }
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13020 $as_echo "no
" >&6; }
13025 if test -z "$ac_cv_prog_DSYMUTIL"; then
13026 ac_ct_DSYMUTIL=$DSYMUTIL
13027 # Extract the first word of "dsymutil
", so it can be a program name with args.
13028 set dummy dsymutil; ac_word=$2
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13030 $as_echo_n "checking
for $ac_word...
" >&6; }
13031 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13032 $as_echo_n "(cached
) " >&6
13034 if test -n "$ac_ct_DSYMUTIL"; then
13035 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13054 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13055 if test -n "$ac_ct_DSYMUTIL"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13057 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13060 $as_echo "no
" >&6; }
13063 if test "x
$ac_ct_DSYMUTIL" = x; then
13066 case $cross_compiling:$ac_tool_warned in
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13069 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13070 ac_tool_warned=yes ;;
13072 DSYMUTIL=$ac_ct_DSYMUTIL
13075 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13078 if test -n "$ac_tool_prefix"; then
13079 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13080 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13082 $as_echo_n "checking
for $ac_word...
" >&6; }
13083 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13084 $as_echo_n "(cached
) " >&6
13086 if test -n "$NMEDIT"; then
13087 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13096 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13106 NMEDIT=$ac_cv_prog_NMEDIT
13107 if test -n "$NMEDIT"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13109 $as_echo "$NMEDIT" >&6; }
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13112 $as_echo "no
" >&6; }
13117 if test -z "$ac_cv_prog_NMEDIT"; then
13118 ac_ct_NMEDIT=$NMEDIT
13119 # Extract the first word of "nmedit
", so it can be a program name with args.
13120 set dummy nmedit; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13122 $as_echo_n "checking
for $ac_word...
" >&6; }
13123 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13124 $as_echo_n "(cached
) " >&6
13126 if test -n "$ac_ct_NMEDIT"; then
13127 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13146 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13147 if test -n "$ac_ct_NMEDIT"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13149 $as_echo "$ac_ct_NMEDIT" >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13152 $as_echo "no
" >&6; }
13155 if test "x
$ac_ct_NMEDIT" = x; then
13158 case $cross_compiling:$ac_tool_warned in
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13161 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13162 ac_tool_warned=yes ;;
13164 NMEDIT=$ac_ct_NMEDIT
13167 NMEDIT="$ac_cv_prog_NMEDIT"
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13174 $as_echo_n "checking
for $ac_word...
" >&6; }
13175 if test "${ac_cv_prog_LIPO+set}" = set; then :
13176 $as_echo_n "(cached
) " >&6
13178 if test -n "$LIPO"; then
13179 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13198 LIPO=$ac_cv_prog_LIPO
13199 if test -n "$LIPO"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13201 $as_echo "$LIPO" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13204 $as_echo "no
" >&6; }
13209 if test -z "$ac_cv_prog_LIPO"; then
13211 # Extract the first word of "lipo
", so it can be a program name with args.
13212 set dummy lipo; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13214 $as_echo_n "checking
for $ac_word...
" >&6; }
13215 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13216 $as_echo_n "(cached
) " >&6
13218 if test -n "$ac_ct_LIPO"; then
13219 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_LIPO="lipo
"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13238 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13239 if test -n "$ac_ct_LIPO"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13241 $as_echo "$ac_ct_LIPO" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13244 $as_echo "no
" >&6; }
13247 if test "x
$ac_ct_LIPO" = x; then
13250 case $cross_compiling:$ac_tool_warned in
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13253 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13254 ac_tool_warned=yes ;;
13259 LIPO="$ac_cv_prog_LIPO"
13262 if test -n "$ac_tool_prefix"; then
13263 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13264 set dummy ${ac_tool_prefix}otool; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13266 $as_echo_n "checking
for $ac_word...
" >&6; }
13267 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13268 $as_echo_n "(cached
) " >&6
13270 if test -n "$OTOOL"; then
13271 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13290 OTOOL=$ac_cv_prog_OTOOL
13291 if test -n "$OTOOL"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13293 $as_echo "$OTOOL" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13296 $as_echo "no
" >&6; }
13301 if test -z "$ac_cv_prog_OTOOL"; then
13303 # Extract the first word of "otool
", so it can be a program name with args.
13304 set dummy otool; ac_word=$2
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13306 $as_echo_n "checking
for $ac_word...
" >&6; }
13307 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13308 $as_echo_n "(cached
) " >&6
13310 if test -n "$ac_ct_OTOOL"; then
13311 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314 for as_dir in $PATH
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13320 ac_cv_prog_ac_ct_OTOOL="otool
"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13330 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13331 if test -n "$ac_ct_OTOOL"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13333 $as_echo "$ac_ct_OTOOL" >&6; }
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13336 $as_echo "no
" >&6; }
13339 if test "x
$ac_ct_OTOOL" = x; then
13342 case $cross_compiling:$ac_tool_warned in
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13345 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13346 ac_tool_warned=yes ;;
13351 OTOOL="$ac_cv_prog_OTOOL"
13354 if test -n "$ac_tool_prefix"; then
13355 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13356 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13358 $as_echo_n "checking
for $ac_word...
" >&6; }
13359 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13360 $as_echo_n "(cached
) " >&6
13362 if test -n "$OTOOL64"; then
13363 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13372 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13382 OTOOL64=$ac_cv_prog_OTOOL64
13383 if test -n "$OTOOL64"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13385 $as_echo "$OTOOL64" >&6; }
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13388 $as_echo "no
" >&6; }
13393 if test -z "$ac_cv_prog_OTOOL64"; then
13394 ac_ct_OTOOL64=$OTOOL64
13395 # Extract the first word of "otool64
", so it can be a program name with args.
13396 set dummy otool64; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13398 $as_echo_n "checking
for $ac_word...
" >&6; }
13399 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13400 $as_echo_n "(cached
) " >&6
13402 if test -n "$ac_ct_OTOOL64"; then
13403 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13412 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13422 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13423 if test -n "$ac_ct_OTOOL64"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13425 $as_echo "$ac_ct_OTOOL64" >&6; }
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13428 $as_echo "no
" >&6; }
13431 if test "x
$ac_ct_OTOOL64" = x; then
13434 case $cross_compiling:$ac_tool_warned in
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13437 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13438 ac_tool_warned=yes ;;
13440 OTOOL64=$ac_ct_OTOOL64
13443 OTOOL64="$ac_cv_prog_OTOOL64"
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13473 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13474 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13475 $as_echo_n "(cached
) " >&6
13477 lt_cv_apple_cc_single_mod=no
13478 if test -z "${LT_MULTI_MODULE}"; then
13479 # By default we will add the -single_module flag. You can override
13480 # by either setting the environment variable LT_MULTI_MODULE
13481 # non-empty at configure time, or by adding -multi_module to the
13483 rm -rf libconftest.dylib*
13484 echo "int foo
(void
){return 1;}" > conftest.c
13485 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13486 -dynamiclib -Wl,-single_module conftest.c
" >&5
13487 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13488 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13490 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13491 lt_cv_apple_cc_single_mod=yes
13493 cat conftest.err >&5
13495 rm -rf libconftest.dylib*
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13500 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13502 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13503 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13504 $as_echo_n "(cached
) " >&6
13506 lt_cv_ld_exported_symbols_list=no
13507 save_LDFLAGS=$LDFLAGS
13508 echo "_main
" > conftest.sym
13509 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13521 if ac_fn_c_try_link "$LINENO"; then :
13522 lt_cv_ld_exported_symbols_list=yes
13524 lt_cv_ld_exported_symbols_list=no
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LDFLAGS="$save_LDFLAGS"
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13532 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13534 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13535 if test "${lt_cv_ld_force_load+set}" = set; then :
13536 $as_echo_n "(cached
) " >&6
13538 lt_cv_ld_force_load=no
13539 cat > conftest.c << _LT_EOF
13540 int forced_loaded() { return 2;}
13542 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13543 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13544 echo "$AR cru libconftest.a conftest.o
" >&5
13545 $AR cru libconftest.a conftest.o 2>&5
13546 cat > conftest.c << _LT_EOF
13547 int main() { return 0;}
13549 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13550 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13552 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13553 lt_cv_ld_force_load=yes
13555 cat conftest.err >&5
13557 rm -f conftest.err libconftest.a conftest conftest.c
13558 rm -rf conftest.dSYM
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13562 $as_echo "$lt_cv_ld_force_load" >&6; }
13564 rhapsody* | darwin1.[012])
13565 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13568 darwin*) # darwin 5.x on
13569 # if running on 10.5 or later, the deployment target defaults
13570 # to the OS version, if on x86, and 10.4, the deployment
13571 # target defaults to 10.4. Don't you love it?
13572 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13573 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13574 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13582 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13583 _lt_dar_single_mod='$single_module'
13585 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13586 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13590 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13591 _lt_dsymutil='~$DSYMUTIL $lib || :'
13598 for ac_header in dlfcn.h
13600 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13601 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13602 cat >>confdefs.h <<_ACEOF
13603 #define HAVE_DLFCN_H 1
13621 enable_win32_dll=no
13624 # Check whether --enable-shared was given.
13625 if test "${enable_shared+set}" = set; then :
13626 enableval=$enable_shared; p=${PACKAGE-default}
13628 yes) enable_shared=yes ;;
13629 no) enable_shared=no ;;
13632 # Look at the argument we got. We use all the common list separators.
13633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13634 for pkg in $enableval; do
13636 if test "X
$pkg" = "X
$p"; then
13655 # Check whether --enable-static was given.
13656 if test "${enable_static+set}" = set; then :
13657 enableval=$enable_static; p=${PACKAGE-default}
13659 yes) enable_static=yes ;;
13660 no) enable_static=no ;;
13663 # Look at the argument we got. We use all the common list separators.
13664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13665 for pkg in $enableval; do
13667 if test "X
$pkg" = "X
$p"; then
13687 # Check whether --with-pic was given.
13688 if test "${with_pic+set}" = set; then :
13689 withval=$with_pic; pic_mode="$withval"
13695 test -z "$pic_mode" && pic_mode=default
13703 # Check whether --enable-fast-install was given.
13704 if test "${enable_fast_install+set}" = set; then :
13705 enableval=$enable_fast_install; p=${PACKAGE-default}
13707 yes) enable_fast_install=yes ;;
13708 no) enable_fast_install=no ;;
13710 enable_fast_install=no
13711 # Look at the argument we got. We use all the common list separators.
13712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13713 for pkg in $enableval; do
13715 if test "X
$pkg" = "X
$p"; then
13716 enable_fast_install=yes
13723 enable_fast_install=yes
13736 # This can be used to rebuild libtool when needed
13737 LIBTOOL_DEPS="$ltmain"
13739 # Always use our own libtool.
13740 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13767 test -z "$LN_S" && LN_S="ln -s"
13782 if test -n "${ZSH_VERSION+set}" ; then
13783 setopt NO_GLOB_SUBST
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13787 $as_echo_n "checking
for objdir...
" >&6; }
13788 if test "${lt_cv_objdir+set}" = set; then :
13789 $as_echo_n "(cached
) " >&6
13791 rm -f .libs 2>/dev/null
13792 mkdir .libs 2>/dev/null
13793 if test -d .libs; then
13796 # MS-DOS does not allow filenames that begin with a dot.
13799 rmdir .libs 2>/dev/null
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13802 $as_echo "$lt_cv_objdir" >&6; }
13803 objdir=$lt_cv_objdir
13809 cat >>confdefs.h <<_ACEOF
13810 #define LT_OBJDIR "$lt_cv_objdir/"
13818 # AIX sometimes has problems with the GCC collect2 program. For some
13819 # reason, if we set the COLLECT_NAMES environment variable, the problems
13820 # vanish in a puff of smoke.
13821 if test "X
${COLLECT_NAMES+set}" != Xset; then
13823 export COLLECT_NAMES
13828 # Global variables:
13830 can_build_shared=yes
13832 # All known linkers require a `.a' archive for static linking (except MSVC,
13833 # which needs '.lib').
13836 with_gnu_ld="$lt_cv_prog_gnu_ld"
13839 old_CFLAGS="$CFLAGS"
13841 # Set sane defaults for various variables
13842 test -z "$CC" && CC=cc
13843 test -z "$LTCC" && LTCC=$CC
13844 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13845 test -z "$LD" && LD=ld
13846 test -z "$ac_objext" && ac_objext=o
13848 for cc_temp in $compiler""; do
13850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13856 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
13859 # Only perform the check for file, if the check method requires it
13860 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13861 case $deplibs_check_method in
13863 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
13865 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
13866 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13867 $as_echo_n "(cached
) " >&6
13871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13874 lt_save_MAGIC_CMD="$MAGIC_CMD"
13875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13876 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13877 for ac_dir in $ac_dummy; do
13879 test -z "$ac_dir" && ac_dir=.
13880 if test -f $ac_dir/${ac_tool_prefix}file; then
13881 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13882 if test -n "$file_magic_test_file"; then
13883 case $deplibs_check_method in
13885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13888 $EGREP "$file_magic_regex" > /dev/null; then
13893 *** Warning: the command libtool uses to detect shared libraries,
13894 *** $file_magic_cmd, produces output that libtool cannot recognize.
13895 *** The result is that libtool may fail to recognize shared libraries
13896 *** as such. This will affect the creation of libtool libraries that
13897 *** depend on shared libraries, but programs linked with such libtool
13898 *** libraries will work regardless of this problem. Nevertheless, you
13899 *** may want to report the problem to your system manager and/or to
13900 *** bug-libtool@gnu.org
13910 MAGIC_CMD="$lt_save_MAGIC_CMD"
13915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13916 if test -n "$MAGIC_CMD"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13918 $as_echo "$MAGIC_CMD" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13921 $as_echo "no
" >&6; }
13928 if test -z "$lt_cv_path_MAGIC_CMD"; then
13929 if test -n "$ac_tool_prefix"; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
13931 $as_echo_n "checking
for file...
" >&6; }
13932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13933 $as_echo_n "(cached
) " >&6
13937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13940 lt_save_MAGIC_CMD="$MAGIC_CMD"
13941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13942 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13943 for ac_dir in $ac_dummy; do
13945 test -z "$ac_dir" && ac_dir=.
13946 if test -f $ac_dir/file; then
13947 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13948 if test -n "$file_magic_test_file"; then
13949 case $deplibs_check_method in
13951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13954 $EGREP "$file_magic_regex" > /dev/null; then
13959 *** Warning: the command libtool uses to detect shared libraries,
13960 *** $file_magic_cmd, produces output that libtool cannot recognize.
13961 *** The result is that libtool may fail to recognize shared libraries
13962 *** as such. This will affect the creation of libtool libraries that
13963 *** depend on shared libraries, but programs linked with such libtool
13964 *** libraries will work regardless of this problem. Nevertheless, you
13965 *** may want to report the problem to your system manager and/or to
13966 *** bug-libtool@gnu.org
13976 MAGIC_CMD="$lt_save_MAGIC_CMD"
13981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13982 if test -n "$MAGIC_CMD"; then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13984 $as_echo "$MAGIC_CMD" >&6; }
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13987 $as_echo "no
" >&6; }
14000 # Use C for the default configuration in the libtool script
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14010 # Source file extension for C test sources.
14013 # Object file extension for compiled C test sources.
14017 # Code to be used in simple compile tests
14018 lt_simple_compile_test_code="int some_variable
= 0;"
14020 # Code to be used in simple link tests
14021 lt_simple_link_test_code='int main(){return(0);}'
14029 # If no C compiler was specified, use CC.
14032 # If no C compiler flags were specified, use CFLAGS.
14033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14035 # Allow CC to be a program name with arguments.
14038 # Save the default compiler, since it gets overwritten when the other
14039 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14040 compiler_DEFAULT=$CC
14042 # save warnings/boilerplate of simple test code
14043 ac_outfile=conftest.$ac_objext
14044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14046 _lt_compiler_boilerplate=`cat conftest.err`
14049 ac_outfile=conftest.$ac_objext
14050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14052 _lt_linker_boilerplate=`cat conftest.err`
14057 ## There is no encapsulation within the following macros, do not change
14058 ## the running order or otherwise move them around unless you know exactly
14059 ## what you are doing...
14060 if test -n "$compiler"; then
14062 lt_prog_compiler_no_builtin_flag=
14064 if test "$GCC" = yes; then
14065 case $cc_basename in
14067 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14069 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14073 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14074 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14075 $as_echo_n "(cached
) " >&6
14077 lt_cv_prog_compiler_rtti_exceptions=no
14078 ac_outfile=conftest.$ac_objext
14079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14080 lt_compiler_flag="-fno-rtti -fno-exceptions"
14081 # Insert the option either (1) after the last *FLAGS variable, or
14082 # (2) before a word containing "conftest.
", or (3) at the end.
14083 # Note that $ac_compile itself does not contain backslashes and begins
14084 # with a dollar sign (not a hyphen), so the echo should work correctly.
14085 # The option is referenced via a variable to avoid confusing sed.
14086 lt_compile=`echo "$ac_compile" | $SED \
14087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14089 -e 's:$: $lt_compiler_flag:'`
14090 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14091 (eval "$lt_compile" 2>conftest.err)
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14095 if (exit $ac_status) && test -s "$ac_outfile"; then
14096 # The compiler can only warn and ignore the option if not recognized
14097 # So say no if there are warnings other than the usual output.
14098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14101 lt_cv_prog_compiler_rtti_exceptions=yes
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14108 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14110 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14111 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14123 lt_prog_compiler_wl=
14124 lt_prog_compiler_pic=
14125 lt_prog_compiler_static=
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14128 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14130 if test "$GCC" = yes; then
14131 lt_prog_compiler_wl='-Wl,'
14132 lt_prog_compiler_static='-static'
14136 # All AIX code is PIC.
14137 if test "$host_cpu" = ia64; then
14138 # AIX 5 now supports IA64 processor
14139 lt_prog_compiler_static='-Bstatic'
14146 # see comment about AmigaOS4 .so support
14147 lt_prog_compiler_pic='-fPIC'
14150 # FIXME: we need at least 68020 code to build shared libraries, but
14151 # adding the `-m68020' flag to GCC prevents building anything better,
14153 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14158 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14159 # PIC is the default for these OSes.
14162 mingw* | cygwin* | pw32* | os2* | cegcc*)
14163 # This hack is so that the source file can tell whether it is being
14164 # built for inclusion in a dll (and should export symbols for example).
14165 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14166 # (--disable-auto-import) libraries
14167 lt_prog_compiler_pic='-DDLL_EXPORT'
14170 darwin* | rhapsody*)
14171 # PIC is the default on this platform
14172 # Common symbols not allowed in MH_DYLIB files
14173 lt_prog_compiler_pic='-fno-common'
14177 # PIC is the default for Haiku.
14178 # The "-static" flag exists, but is broken.
14179 lt_prog_compiler_static=
14183 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14184 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14185 # sets the default TLS model and affects inlining.
14191 lt_prog_compiler_pic='-fPIC'
14197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14198 # Instead, we relocate shared libraries at runtime.
14202 # Just because we use GCC doesn't mean we suddenly get shared libraries
14203 # on systems that don't support them.
14204 lt_prog_compiler_can_build_shared=no
14209 # QNX uses GNU C++, but need to define -shared option too, otherwise
14210 # it will coredump.
14211 lt_prog_compiler_pic='-fPIC -shared'
14215 if test -d /usr/nec; then
14216 lt_prog_compiler_pic=-Kconform_pic
14221 lt_prog_compiler_pic='-fPIC'
14225 case $cc_basename in
14226 nvcc*) # Cuda Compiler Driver 2.2
14227 lt_prog_compiler_wl='-Xlinker '
14228 lt_prog_compiler_pic='-Xcompiler -fPIC'
14232 # PORTME Check for flag to pass linker flags through the system compiler.
14235 lt_prog_compiler_wl='-Wl,'
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static='-Bstatic'
14240 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14244 mingw* | cygwin* | pw32* | os2* | cegcc*)
14245 # This hack is so that the source file can tell whether it is being
14246 # built for inclusion in a dll (and should export symbols for example).
14247 lt_prog_compiler_pic='-DDLL_EXPORT'
14250 hpux9* | hpux10* | hpux11*)
14251 lt_prog_compiler_wl='-Wl,'
14252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14253 # not for PA HP-UX.
14259 lt_prog_compiler_pic='+Z'
14262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14263 lt_prog_compiler_static='${wl}-a ${wl}archive'
14266 irix5* | irix6* | nonstopux*)
14267 lt_prog_compiler_wl='-Wl,'
14268 # PIC (with -KPIC) is the default.
14269 lt_prog_compiler_static='-non_shared'
14272 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14273 case $cc_basename in
14274 # old Intel for x86_64 which still supported -KPIC.
14276 lt_prog_compiler_wl='-Wl,'
14277 lt_prog_compiler_pic='-KPIC'
14278 lt_prog_compiler_static='-static'
14280 # icc used to be incompatible with GCC.
14281 # ICC 10 doesn't accept -KPIC any more.
14283 lt_prog_compiler_wl='-Wl,'
14284 lt_prog_compiler_pic='-fPIC'
14285 lt_prog_compiler_static='-static'
14287 # Lahey Fortran 8.1.
14289 lt_prog_compiler_wl='-Wl,'
14290 lt_prog_compiler_pic='--shared'
14291 lt_prog_compiler_static='--static'
14293 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14294 # Portland Group compilers (*not* the Pentium gcc compiler,
14295 # which looks to be a dead project)
14296 lt_prog_compiler_wl='-Wl,'
14297 lt_prog_compiler_pic='-fpic'
14298 lt_prog_compiler_static='-Bstatic'
14301 lt_prog_compiler_wl='-Wl,'
14302 # All Alpha code is PIC.
14303 lt_prog_compiler_static='-non_shared'
14305 xl* | bgxl* | bgf* | mpixl*)
14306 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14307 lt_prog_compiler_wl='-Wl,'
14308 lt_prog_compiler_pic='-qpic'
14309 lt_prog_compiler_static='-qstaticlink'
14312 case `$CC -V 2>&1 | sed 5q` in
14313 *Sun\ F* | *Sun*Fortran*)
14314 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14315 lt_prog_compiler_pic='-KPIC'
14316 lt_prog_compiler_static='-Bstatic'
14317 lt_prog_compiler_wl=''
14321 lt_prog_compiler_pic='-KPIC'
14322 lt_prog_compiler_static='-Bstatic'
14323 lt_prog_compiler_wl='-Wl,'
14331 lt_prog_compiler_pic='-KPIC'
14332 lt_prog_compiler_static='-Bstatic'
14336 # QNX uses GNU C++, but need to define -shared option too, otherwise
14337 # it will coredump.
14338 lt_prog_compiler_pic='-fPIC -shared'
14341 osf3* | osf4* | osf5*)
14342 lt_prog_compiler_wl='-Wl,'
14343 # All OSF/1 code is PIC.
14344 lt_prog_compiler_static='-non_shared'
14348 lt_prog_compiler_static='-non_shared'
14352 lt_prog_compiler_pic='-KPIC'
14353 lt_prog_compiler_static='-Bstatic'
14354 case $cc_basename in
14355 f77* | f90* | f95*)
14356 lt_prog_compiler_wl='-Qoption ld ';;
14358 lt_prog_compiler_wl='-Wl,';;
14363 lt_prog_compiler_wl='-Qoption ld '
14364 lt_prog_compiler_pic='-PIC'
14365 lt_prog_compiler_static='-Bstatic'
14368 sysv4 | sysv4.2uw2* | sysv4.3*)
14369 lt_prog_compiler_wl='-Wl,'
14370 lt_prog_compiler_pic='-KPIC'
14371 lt_prog_compiler_static='-Bstatic'
14375 if test -d /usr/nec ;then
14376 lt_prog_compiler_pic='-Kconform_pic'
14377 lt_prog_compiler_static='-Bstatic'
14381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14382 lt_prog_compiler_wl='-Wl,'
14383 lt_prog_compiler_pic='-KPIC'
14384 lt_prog_compiler_static='-Bstatic'
14388 lt_prog_compiler_wl='-Wl,'
14389 lt_prog_compiler_can_build_shared=no
14393 lt_prog_compiler_pic='-pic'
14394 lt_prog_compiler_static='-Bstatic'
14398 lt_prog_compiler_can_build_shared=no
14404 # For platforms which do not support PIC, -DPIC is meaningless:
14406 lt_prog_compiler_pic=
14409 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14413 $as_echo "$lt_prog_compiler_pic" >&6; }
14421 # Check to make sure the PIC flag actually works.
14423 if test -n "$lt_prog_compiler_pic"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14425 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14426 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14427 $as_echo_n "(cached
) " >&6
14429 lt_cv_prog_compiler_pic_works=no
14430 ac_outfile=conftest.$ac_objext
14431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14432 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14433 # Insert the option either (1) after the last *FLAGS variable, or
14434 # (2) before a word containing "conftest.
", or (3) at the end.
14435 # Note that $ac_compile itself does not contain backslashes and begins
14436 # with a dollar sign (not a hyphen), so the echo should work correctly.
14437 # The option is referenced via a variable to avoid confusing sed.
14438 lt_compile=`echo "$ac_compile" | $SED \
14439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441 -e 's:$: $lt_compiler_flag:'`
14442 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14443 (eval "$lt_compile" 2>conftest.err)
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14447 if (exit $ac_status) && test -s "$ac_outfile"; then
14448 # The compiler can only warn and ignore the option if not recognized
14449 # So say no if there are warnings other than the usual output.
14450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14453 lt_cv_prog_compiler_pic_works=yes
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14460 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14462 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14463 case $lt_prog_compiler_pic in
14465 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14468 lt_prog_compiler_pic=
14469 lt_prog_compiler_can_build_shared=no
14480 # Check to make sure the static flag actually works.
14482 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14484 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14485 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14486 $as_echo_n "(cached
) " >&6
14488 lt_cv_prog_compiler_static_works=no
14489 save_LDFLAGS="$LDFLAGS"
14490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14493 # The linker can only warn and ignore the option if not recognized
14494 # So say no if there are warnings
14495 if test -s conftest.err; then
14496 # Append any errors to the config.log.
14497 cat conftest.err 1>&5
14498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14500 if diff conftest.exp conftest.er2 >/dev/null; then
14501 lt_cv_prog_compiler_static_works=yes
14504 lt_cv_prog_compiler_static_works=yes
14508 LDFLAGS="$save_LDFLAGS"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14512 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14514 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14517 lt_prog_compiler_static=
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14527 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14528 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14529 $as_echo_n "(cached
) " >&6
14531 lt_cv_prog_compiler_c_o=no
14532 $RM -r conftest 2>/dev/null
14536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14539 # Insert the option either (1) after the last *FLAGS variable, or
14540 # (2) before a word containing "conftest.
", or (3) at the end.
14541 # Note that $ac_compile itself does not contain backslashes and begins
14542 # with a dollar sign (not a hyphen), so the echo should work correctly.
14543 lt_compile=`echo "$ac_compile" | $SED \
14544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546 -e 's:$: $lt_compiler_flag:'`
14547 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14548 (eval "$lt_compile" 2>out/conftest.err)
14550 cat out/conftest.err >&5
14551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14554 # The compiler can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559 lt_cv_prog_compiler_c_o=yes
14564 # SGI C++ compiler will create directory out/ii_files/ for
14565 # template instantiation
14566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567 $RM out/* && rmdir out
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14582 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14583 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14584 $as_echo_n "(cached
) " >&6
14586 lt_cv_prog_compiler_c_o=no
14587 $RM -r conftest 2>/dev/null
14591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14593 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14594 # Insert the option either (1) after the last *FLAGS variable, or
14595 # (2) before a word containing "conftest.
", or (3) at the end.
14596 # Note that $ac_compile itself does not contain backslashes and begins
14597 # with a dollar sign (not a hyphen), so the echo should work correctly.
14598 lt_compile=`echo "$ac_compile" | $SED \
14599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601 -e 's:$: $lt_compiler_flag:'`
14602 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14603 (eval "$lt_compile" 2>out/conftest.err)
14605 cat out/conftest.err >&5
14606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14609 # The compiler can only warn and ignore the option if not recognized
14610 # So say no if there are warnings
14611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14614 lt_cv_prog_compiler_c_o=yes
14619 # SGI C++ compiler will create directory out/ii_files/ for
14620 # template instantiation
14621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14622 $RM out/* && rmdir out
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14629 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14634 hard_links="nottested
"
14635 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14636 # do not overwrite the value of need_locks provided by the user
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14638 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14643 ln conftest.a conftest.b 2>&5 || hard_links=no
14644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14646 $as_echo "$hard_links" >&6; }
14647 if test "$hard_links" = no; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14649 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14662 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14665 allow_undefined_flag=
14666 always_export_symbols=no
14668 archive_expsym_cmds=
14669 compiler_needs_object=no
14670 enable_shared_with_static_runtimes=no
14671 export_dynamic_flag_spec=
14672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14673 hardcode_automatic=no
14675 hardcode_direct_absolute=no
14676 hardcode_libdir_flag_spec=
14677 hardcode_libdir_flag_spec_ld=
14678 hardcode_libdir_separator=
14679 hardcode_minus_L=no
14680 hardcode_shlibpath_var=unsupported
14682 link_all_deplibs=unknown
14684 module_expsym_cmds=
14685 old_archive_from_new_cmds=
14686 old_archive_from_expsyms_cmds=
14687 thread_safe_flag_spec=
14688 whole_archive_flag_spec=
14689 # include_expsyms should be a list of space-separated symbols to be *always*
14690 # included in the symbol list
14692 # exclude_expsyms can be an extended regexp of symbols to exclude
14693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14695 # as well as any symbol that contains `d'.
14696 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14698 # platforms (ab)use it in PIC code, but their linkers get confused if
14699 # the symbol is explicitly referenced. Since portable code cannot
14700 # rely on this symbol name, it's probably fine to never include it in
14701 # preloaded symbol tables.
14702 # Exclude shared library initialization/finalization symbols.
14703 extract_expsyms_cmds=
14706 cygwin* | mingw* | pw32* | cegcc*)
14707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14708 # When not using gcc, we currently assume that we are using
14709 # Microsoft Visual C++.
14710 if test "$GCC" != yes; then
14715 # we just hope/assume this is gcc and not c89 (= MSVC++)
14725 # On some targets, GNU ld is compatible enough with the native linker
14726 # that we're better off using the native interface for both.
14727 lt_use_gnu_ld_interface=no
14728 if test "$with_gnu_ld" = yes; then
14731 # The AIX port of GNU ld has always aspired to compatibility
14732 # with the native linker. However, as the warning in the GNU ld
14733 # block says, versions before 2.19.5* couldn't really create working
14734 # shared libraries, regardless of the interface used.
14735 case `$LD -v 2>&1` in
14736 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14737 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14738 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14740 lt_use_gnu_ld_interface=yes
14745 lt_use_gnu_ld_interface=yes
14750 if test "$lt_use_gnu_ld_interface" = yes; then
14751 # If archive_cmds runs LD, not CC, wlarc should be empty
14754 # Set some defaults for GNU ld with shared library support. These
14755 # are reset later if shared libraries are not supported. Putting them
14756 # here allows them to be overridden if necessary.
14757 runpath_var=LD_RUN_PATH
14758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14759 export_dynamic_flag_spec='${wl}--export-dynamic'
14760 # ancient GNU ld didn't support --whole-archive et. al.
14761 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14762 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14764 whole_archive_flag_spec=
14766 supports_anon_versioning=no
14767 case `$LD -v 2>&1` in
14768 *GNU\ gold*) supports_anon_versioning=yes ;;
14769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14772 *\ 2.11.*) ;; # other 2.11 versions
14773 *) supports_anon_versioning=yes ;;
14776 # See if GNU ld supports shared libraries.
14779 # On AIX/PPC, the GNU linker is very broken
14780 if test "$host_cpu" != ia64; then
14784 *** Warning: the GNU linker, at least up to release 2.19, is reported
14785 *** to be unable to reliably create shared libraries on AIX.
14786 *** Therefore, libtool is disabling shared libraries support. If you
14787 *** really care for shared libraries, you may want to install binutils
14788 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14789 *** You will then need to restart the configuration process.
14798 # see comment about AmigaOS4 .so support
14799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14800 archive_expsym_cmds=''
14803 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)'
14804 hardcode_libdir_flag_spec
='-L$libdir'
14805 hardcode_minus_L
=yes
14811 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14812 allow_undefined_flag
=unsupported
14813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14814 # support --undefined. This deserves some investigation. FIXME
14815 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14821 cygwin
* | mingw
* | pw32
* | cegcc
*)
14822 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14823 # as there is no search path for DLLs.
14824 hardcode_libdir_flag_spec
='-L$libdir'
14825 export_dynamic_flag_spec
='${wl}--export-all-symbols'
14826 allow_undefined_flag
=unsupported
14827 always_export_symbols
=no
14828 enable_shared_with_static_runtimes
=yes
14829 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14831 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14832 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14833 # If the export-symbols file already is a .def file (1st line
14834 # is EXPORTS), use it as is; otherwise, prepend...
14835 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14836 cp $export_symbols $output_objdir/$soname.def;
14838 echo EXPORTS > $output_objdir/$soname.def;
14839 cat $export_symbols >> $output_objdir/$soname.def;
14841 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14848 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849 link_all_deplibs
=yes
14854 hardcode_shlibpath_var
=no
14855 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14856 export_dynamic_flag_spec
='${wl}-E'
14857 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14858 # Instead, shared libraries are loaded at an image base (0x10000000 by
14859 # default) and relocated if they conflict, which is a slow very memory
14860 # consuming and fragmenting process. To avoid this, we pick a random,
14861 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14862 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14863 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14864 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'
14867 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14869 if test "$host_os" = linux-dietlibc
; then
14870 case $cc_basename in
14871 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14874 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14875 && test "$tmp_diet" = no
14878 tmp_sharedflag
='-shared'
14879 case $cc_basename,$host_cpu in
14880 pgcc
*) # Portland Group C compiler
14881 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'
14882 tmp_addflag
=' $pic_flag'
14884 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
14885 # Portland Group f77 and f90 compilers
14886 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'
14887 tmp_addflag
=' $pic_flag -Mnomain' ;;
14888 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14889 tmp_addflag
=' -i_dynamic' ;;
14890 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14891 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14892 ifc
* | ifort
*) # Intel Fortran compiler
14893 tmp_addflag
=' -nofor_main' ;;
14894 lf95
*) # Lahey Fortran 8.1
14895 whole_archive_flag_spec
=
14896 tmp_sharedflag
='--shared' ;;
14897 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14898 tmp_sharedflag
='-qmkshrobj'
14900 nvcc
*) # Cuda Compiler Driver 2.2
14901 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'
14902 compiler_needs_object
=yes
14905 case `$CC -V 2>&1 | sed 5q` in
14906 *Sun\ C
*) # Sun C 5.9
14907 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'
14908 compiler_needs_object
=yes
14909 tmp_sharedflag
='-G' ;;
14910 *Sun\ F
*) # Sun Fortran 8.3
14911 tmp_sharedflag
='-G' ;;
14913 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14915 if test "x$supports_anon_versioning" = xyes
; then
14916 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14918 echo "local: *; };" >> $output_objdir/$libname.ver~
14919 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14922 case $cc_basename in
14923 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
14924 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14925 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14926 hardcode_libdir_flag_spec
=
14927 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14928 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14929 if test "x$supports_anon_versioning" = xyes
; then
14930 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14931 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14932 echo "local: *; };" >> $output_objdir/$libname.ver~
14933 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14943 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14944 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14947 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14948 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14953 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
14957 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14958 *** create shared libraries on Solaris systems. Therefore, libtool
14959 *** is disabling shared libraries support. We urge you to upgrade GNU
14960 *** binutils to release 2.9.1 or newer. Another option is to modify
14961 *** your PATH or compiler configuration so that the native linker is
14962 *** used, and then restart.
14965 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14966 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14973 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14974 case `$LD -v 2>&1` in
14975 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14979 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14980 *** reliably create shared libraries on SCO systems. Therefore, libtool
14981 *** is disabling shared libraries support. We urge you to upgrade GNU
14982 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14983 *** your PATH or compiler configuration so that the native linker is
14984 *** used, and then restart.
14989 # For security reasons, it is highly recommended that you always
14990 # use absolute paths for naming shared libraries, and exclude the
14991 # DT_RUNPATH tag from executables and libraries. But doing so
14992 # requires that you compile everything twice, which is a pain.
14993 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14994 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14995 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15005 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15007 hardcode_direct
=yes
15008 hardcode_shlibpath_var
=no
15012 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15013 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15021 if test "$ld_shlibs" = no
; then
15023 hardcode_libdir_flag_spec
=
15024 export_dynamic_flag_spec
=
15025 whole_archive_flag_spec
=
15028 # PORTME fill in a description of your system's linker (not GNU ld)
15031 allow_undefined_flag
=unsupported
15032 always_export_symbols
=yes
15033 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'
15034 # Note: this linker hardcodes the directories in LIBPATH if there
15035 # are no directories specified by -L.
15036 hardcode_minus_L
=yes
15037 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15038 # Neither direct hardcoding nor static linking is supported with a
15040 hardcode_direct
=unsupported
15045 if test "$host_cpu" = ia64
; then
15046 # On IA64, the linker does run time linking by default, so we don't
15047 # have to do anything special.
15048 aix_use_runtimelinking
=no
15049 exp_sym_flag
='-Bexport'
15052 # If we're using GNU nm, then we don't want the "-C" option.
15053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15054 # Also, AIX nm treats weak defined symbols like other global
15055 # defined symbols, whereas GNU nm marks them as "W".
15056 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15057 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'
15059 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'
15061 aix_use_runtimelinking
=no
15063 # Test if we are trying to use run time linking or normal
15064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15065 # need to do runtime linking.
15066 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15067 for ld_flag
in $LDFLAGS; do
15068 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15069 aix_use_runtimelinking
=yes
15076 exp_sym_flag
='-bexport'
15077 no_entry_flag
='-bnoentry'
15080 # When large executables or shared objects are built, AIX ld can
15081 # have problems creating the table of contents. If linking a library
15082 # or program results in "error TOC overflow" add -mminimal-toc to
15083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15087 hardcode_direct
=yes
15088 hardcode_direct_absolute
=yes
15089 hardcode_libdir_separator
=':'
15090 link_all_deplibs
=yes
15091 file_list_spec
='${wl}-f,'
15093 if test "$GCC" = yes; then
15094 case $host_os in aix4.
[012]|aix4.
[012].
*)
15095 # We only want to do this on AIX 4.2 and lower, the check
15096 # below for broken collect2 doesn't work under 4.3+
15097 collect2name
=`${CC} -print-prog-name=collect2`
15098 if test -f "$collect2name" &&
15099 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15101 # We have reworked collect2
15104 # We have old collect2
15105 hardcode_direct
=unsupported
15106 # It fails to find uninstalled libraries when the uninstalled
15107 # path is not listed in the libpath. Setting hardcode_minus_L
15108 # to unsupported forces relinking
15109 hardcode_minus_L
=yes
15110 hardcode_libdir_flag_spec
='-L$libdir'
15111 hardcode_libdir_separator
=
15115 shared_flag
='-shared'
15116 if test "$aix_use_runtimelinking" = yes; then
15117 shared_flag
="$shared_flag "'${wl}-G'
15121 if test "$host_cpu" = ia64
; then
15122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15123 # chokes on -Wl,-G. The following line is correct:
15126 if test "$aix_use_runtimelinking" = yes; then
15127 shared_flag
='${wl}-G'
15129 shared_flag
='${wl}-bM:SRE'
15134 export_dynamic_flag_spec
='${wl}-bexpall'
15135 # It seems that -bexpall does not export symbols beginning with
15136 # underscore (_), so it is better to generate a list of symbols to export.
15137 always_export_symbols
=yes
15138 if test "$aix_use_runtimelinking" = yes; then
15139 # Warning - without using the other runtime loading flags (-brtl),
15140 # -berok will link without error, but may produce a broken library.
15141 allow_undefined_flag
='-berok'
15142 # Determine the default libpath from the value encoded in an
15143 # empty executable.
15144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15155 if ac_fn_c_try_link
"$LINENO"; then :
15157 lt_aix_libpath_sed
='
15158 /Import File Strings/,/^$/ {
15164 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15165 # Check for a 64-bit object if we didn't find anything.
15166 if test -z "$aix_libpath"; then
15167 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170 rm -f core conftest.err conftest.
$ac_objext \
15171 conftest
$ac_exeext conftest.
$ac_ext
15172 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15174 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15175 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"
15177 if test "$host_cpu" = ia64
; then
15178 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15179 allow_undefined_flag
="-z nodefs"
15180 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"
15182 # Determine the default libpath from the value encoded in an
15183 # empty executable.
15184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15195 if ac_fn_c_try_link
"$LINENO"; then :
15197 lt_aix_libpath_sed
='
15198 /Import File Strings/,/^$/ {
15204 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15205 # Check for a 64-bit object if we didn't find anything.
15206 if test -z "$aix_libpath"; then
15207 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15210 rm -f core conftest.err conftest.
$ac_objext \
15211 conftest
$ac_exeext conftest.
$ac_ext
15212 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15214 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15215 # Warning - without using the other run time loading flags,
15216 # -berok will link without error, but may produce a broken library.
15217 no_undefined_flag
=' ${wl}-bernotok'
15218 allow_undefined_flag
=' ${wl}-berok'
15219 if test "$with_gnu_ld" = yes; then
15220 # We only use this code for GNU lds that support --whole-archive.
15221 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15223 # Exported symbols can be pulled into shared objects from archives
15224 whole_archive_flag_spec
='$convenience'
15226 archive_cmds_need_lc
=yes
15227 # This is similar to how AIX traditionally builds its shared libraries.
15228 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'
15236 # see comment about AmigaOS4 .so support
15237 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15238 archive_expsym_cmds
=''
15241 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)'
15242 hardcode_libdir_flag_spec
='-L$libdir'
15243 hardcode_minus_L
=yes
15249 export_dynamic_flag_spec
=-rdynamic
15252 cygwin
* | mingw
* | pw32
* | cegcc
*)
15253 # When not using gcc, we currently assume that we are using
15254 # Microsoft Visual C++.
15255 # hardcode_libdir_flag_spec is actually meaningless, as there is
15256 # no search path for DLLs.
15257 hardcode_libdir_flag_spec
=' '
15258 allow_undefined_flag
=unsupported
15259 # Tell ltmain to make .lib files, not .a files.
15261 # Tell ltmain to make .dll files, not .so files.
15263 # FIXME: Setting linknames here is a bad hack.
15264 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15265 # The linker will automatically build a .lib file if we build a DLL.
15266 old_archive_from_new_cmds
='true'
15267 # FIXME: Should let the user specify the lib program.
15268 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15269 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15270 enable_shared_with_static_runtimes
=yes
15273 darwin
* | rhapsody
*)
15276 archive_cmds_need_lc
=no
15278 hardcode_automatic
=yes
15279 hardcode_shlibpath_var
=unsupported
15280 if test "$lt_cv_ld_force_load" = "yes"; then
15281 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\"`'
15283 whole_archive_flag_spec
=''
15285 link_all_deplibs
=yes
15286 allow_undefined_flag
="$_lt_dar_allow_undefined"
15287 case $cc_basename in
15288 ifort
*) _lt_dar_can_shared
=yes ;;
15289 *) _lt_dar_can_shared
=$GCC ;;
15291 if test "$_lt_dar_can_shared" = "yes"; then
15292 output_verbose_link_cmd
=func_echo_all
15293 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15294 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15295 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}"
15296 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}"
15305 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_libdir_flag_spec
='-L$libdir'
15307 hardcode_shlibpath_var
=no
15314 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15315 # support. Future versions do this automatically, but an explicit c++rt0.o
15316 # does not break anything, and helps significantly (at the cost of a little
15319 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15320 hardcode_libdir_flag_spec
='-R$libdir'
15321 hardcode_direct
=yes
15322 hardcode_shlibpath_var
=no
15325 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15327 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15328 hardcode_direct
=yes
15329 hardcode_minus_L
=yes
15330 hardcode_shlibpath_var
=no
15333 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15334 freebsd
* | dragonfly
*)
15335 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15336 hardcode_libdir_flag_spec
='-R$libdir'
15337 hardcode_direct
=yes
15338 hardcode_shlibpath_var
=no
15342 if test "$GCC" = yes; then
15343 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'
15345 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'
15347 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15348 hardcode_libdir_separator
=:
15349 hardcode_direct
=yes
15351 # hardcode_minus_L: Not really in the search PATH,
15352 # but as the default location of the library.
15353 hardcode_minus_L
=yes
15354 export_dynamic_flag_spec
='${wl}-E'
15358 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15359 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15363 if test "$with_gnu_ld" = no
; then
15364 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15365 hardcode_libdir_flag_spec_ld
='+b $libdir'
15366 hardcode_libdir_separator
=:
15367 hardcode_direct
=yes
15368 hardcode_direct_absolute
=yes
15369 export_dynamic_flag_spec
='${wl}-E'
15370 # hardcode_minus_L: Not really in the search PATH,
15371 # but as the default location of the library.
15372 hardcode_minus_L
=yes
15377 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15380 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15383 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15386 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15392 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15395 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15399 # Older versions of the 11.00 compiler do not understand -b yet
15400 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15402 $as_echo_n "checking if $CC understands -b... " >&6; }
15403 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15404 $as_echo_n "(cached) " >&6
15406 lt_cv_prog_compiler__b
=no
15407 save_LDFLAGS
="$LDFLAGS"
15408 LDFLAGS
="$LDFLAGS -b"
15409 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15410 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15411 # The linker can only warn and ignore the option if not recognized
15412 # So say no if there are warnings
15413 if test -s conftest.err
; then
15414 # Append any errors to the config.log.
15415 cat conftest.err
1>&5
15416 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15417 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15418 if diff conftest.exp conftest.er2
>/dev
/null
; then
15419 lt_cv_prog_compiler__b
=yes
15422 lt_cv_prog_compiler__b
=yes
15426 LDFLAGS
="$save_LDFLAGS"
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15430 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15432 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15433 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15435 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15441 if test "$with_gnu_ld" = no
; then
15442 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15443 hardcode_libdir_separator
=:
15448 hardcode_shlibpath_var
=no
15451 hardcode_direct
=yes
15452 hardcode_direct_absolute
=yes
15453 export_dynamic_flag_spec
='${wl}-E'
15455 # hardcode_minus_L: Not really in the search PATH,
15456 # but as the default location of the library.
15457 hardcode_minus_L
=yes
15463 irix5
* | irix6
* | nonstopux
*)
15464 if test "$GCC" = yes; then
15465 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'
15466 # Try to use the -exported_symbol ld option, if it does not
15467 # work, assume that -exports_file does not work either and
15468 # implicitly export all symbols.
15469 save_LDFLAGS
="$LDFLAGS"
15470 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15475 if ac_fn_c_try_link
"$LINENO"; then :
15476 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'
15479 rm -f core conftest.err conftest.
$ac_objext \
15480 conftest
$ac_exeext conftest.
$ac_ext
15481 LDFLAGS
="$save_LDFLAGS"
15483 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'
15484 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'
15486 archive_cmds_need_lc
='no'
15487 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15488 hardcode_libdir_separator
=:
15490 link_all_deplibs
=yes
15494 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15495 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15497 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15499 hardcode_libdir_flag_spec
='-R$libdir'
15500 hardcode_direct
=yes
15501 hardcode_shlibpath_var
=no
15505 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_direct
=yes
15507 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15508 hardcode_libdir_separator
=:
15509 hardcode_shlibpath_var
=no
15516 if test -f /usr
/libexec
/ld.so
; then
15517 hardcode_direct
=yes
15518 hardcode_shlibpath_var
=no
15519 hardcode_direct_absolute
=yes
15520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15521 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15522 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15523 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15524 export_dynamic_flag_spec
='${wl}-E'
15527 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15528 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15529 hardcode_libdir_flag_spec
='-R$libdir'
15532 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15533 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15543 hardcode_libdir_flag_spec
='-L$libdir'
15544 hardcode_minus_L
=yes
15545 allow_undefined_flag
=unsupported
15546 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'
15547 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15551 if test "$GCC" = yes; then
15552 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15553 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'
15555 allow_undefined_flag
=' -expect_unresolved \*'
15556 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'
15558 archive_cmds_need_lc
='no'
15559 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15560 hardcode_libdir_separator
=:
15563 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15564 if test "$GCC" = yes; then
15565 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15566 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'
15567 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15569 allow_undefined_flag
=' -expect_unresolved \*'
15570 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'
15571 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~
15572 $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'
15574 # Both c and cxx compiler support -rpath directly
15575 hardcode_libdir_flag_spec
='-rpath $libdir'
15577 archive_cmds_need_lc
='no'
15578 hardcode_libdir_separator
=:
15582 no_undefined_flag
=' -z defs'
15583 if test "$GCC" = yes; then
15585 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15587 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15589 case `$CC -V 2>&1` in
15592 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15593 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15594 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15598 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15600 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15604 hardcode_libdir_flag_spec
='-R$libdir'
15605 hardcode_shlibpath_var
=no
15607 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15609 # The compiler driver will combine and reorder linker options,
15610 # but understands `-z linker_flag'. GCC discards it without `$wl',
15611 # but is careful enough not to reorder.
15612 # Supported since Solaris 2.6 (maybe 2.5.1?)
15613 if test "$GCC" = yes; then
15614 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15616 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15620 link_all_deplibs
=yes
15624 if test "x$host_vendor" = xsequent
; then
15625 # Use $CC to link under sequent, because it throws in some extra .o
15626 # files that make .init and .fini sections work.
15627 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15629 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15631 hardcode_libdir_flag_spec
='-L$libdir'
15632 hardcode_direct
=yes
15633 hardcode_minus_L
=yes
15634 hardcode_shlibpath_var
=no
15638 case $host_vendor in
15640 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641 hardcode_direct
=yes # is this really true???
15644 ## LD is ld it makes a PLAMLIB
15645 ## CC just makes a GrossModule.
15646 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15647 reload_cmds
='$CC -r -o $output$reload_objs'
15651 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15655 runpath_var
='LD_RUN_PATH'
15656 hardcode_shlibpath_var
=no
15660 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661 hardcode_shlibpath_var
=no
15662 export_dynamic_flag_spec
='-Bexport'
15666 if test -d /usr
/nec
; then
15667 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15668 hardcode_shlibpath_var
=no
15669 runpath_var
=LD_RUN_PATH
15670 hardcode_runpath_var
=yes
15675 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15676 no_undefined_flag
='${wl}-z,text'
15677 archive_cmds_need_lc
=no
15678 hardcode_shlibpath_var
=no
15679 runpath_var
='LD_RUN_PATH'
15681 if test "$GCC" = yes; then
15682 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15685 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15686 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 sysv5
* | sco3.2v5
* | sco5v6
*)
15691 # Note: We can NOT use -z defs as we might desire, because we do not
15692 # link with -lc, and that would cause any symbols used from libc to
15693 # always be unresolved, which means just about no library would
15694 # ever link correctly. If we're not using GNU ld we use -z text
15695 # though, which does catch some bad symbols but isn't as heavy-handed
15697 no_undefined_flag
='${wl}-z,text'
15698 allow_undefined_flag
='${wl}-z,nodefs'
15699 archive_cmds_need_lc
=no
15700 hardcode_shlibpath_var
=no
15701 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15702 hardcode_libdir_separator
=':'
15703 link_all_deplibs
=yes
15704 export_dynamic_flag_spec
='${wl}-Bexport'
15705 runpath_var
='LD_RUN_PATH'
15707 if test "$GCC" = yes; then
15708 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15711 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15717 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_libdir_flag_spec
='-L$libdir'
15719 hardcode_shlibpath_var
=no
15727 if test x
$host_vendor = xsni
; then
15729 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15730 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15737 $as_echo "$ld_shlibs" >&6; }
15738 test "$ld_shlibs" = no
&& can_build_shared
=no
15740 with_gnu_ld
=$with_gnu_ld
15757 # Do we need to explicitly link libc?
15759 case "x$archive_cmds_need_lc" in
15761 # Assume -lc should be added
15762 archive_cmds_need_lc
=yes
15764 if test "$enable_shared" = yes && test "$GCC" = yes; then
15765 case $archive_cmds in
15767 # FIXME: we may have to deal with multi-command sequences.
15770 # Test whether the compiler implicitly links with -lc since on some
15771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15772 # to ld, don't add -lc before -lgcc.
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15774 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15775 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15779 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15782 (eval $ac_compile) 2>&5
15784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785 test $ac_status = 0; } 2>conftest.err
; then
15788 libobjs
=conftest.
$ac_objext
15790 wl
=$lt_prog_compiler_wl
15791 pic_flag
=$lt_prog_compiler_pic
15797 lt_save_allow_undefined_flag
=$allow_undefined_flag
15798 allow_undefined_flag
=
15799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15800 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15803 test $ac_status = 0; }
15805 lt_cv_archive_cmds_need_lc
=no
15807 lt_cv_archive_cmds_need_lc
=yes
15809 allow_undefined_flag
=$lt_save_allow_undefined_flag
15811 cat conftest.err
1>&5
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15817 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15818 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15984 if test "$GCC" = yes; then
15986 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
15987 *) lt_awk_arg
="/^libraries:/" ;;
15990 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
15991 *) lt_sed_strip_eq
="s,=/,/,g" ;;
15993 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15994 case $lt_search_path_spec in
15996 # if the path contains ";" then we assume it to be the separator
15997 # otherwise default to the standard path separator (i.e. ":") - it is
15998 # assumed that no part of a normal pathname contains ";" but that should
15999 # okay in the real world where ";" in dirpaths is itself problematic.
16000 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16003 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16006 # Ok, now we have the path, separated by spaces, we can step through it
16007 # and add multilib dir if necessary.
16008 lt_tmp_lt_search_path_spec
=
16009 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16010 for lt_sys_path
in $lt_search_path_spec; do
16011 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16012 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16014 test -d "$lt_sys_path" && \
16015 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16018 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16019 BEGIN {RS=" "; FS="/|\n";} {
16022 for (lt_i = NF; lt_i > 0; lt_i--) {
16023 if ($lt_i != "" && $lt_i != ".") {
16024 if ($lt_i == "..") {
16027 if (lt_count == 0) {
16028 lt_foo="/" $lt_i lt_foo;
16035 if (lt_foo != "") { lt_freq[lt_foo]++; }
16036 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16038 # AWK program above erroneously prepends '/' to C:/dos/paths
16041 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16042 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16044 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16046 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16048 library_names_spec
=
16049 libname_spec
='lib$name'
16053 postuninstall_cmds
=
16057 shlibpath_overrides_runpath
=unknown
16059 dynamic_linker
="$host_os ld.so"
16060 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16061 need_lib_prefix
=unknown
16062 hardcode_into_libs
=no
16064 # when you set need_version to no, make sure it does not cause -set_version
16065 # flags to be left without arguments
16066 need_version
=unknown
16071 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16072 shlibpath_var
=LIBPATH
16074 # AIX 3 has no versioning support, so we append a major version to the name.
16075 soname_spec
='${libname}${release}${shared_ext}$major'
16082 hardcode_into_libs
=yes
16083 if test "$host_cpu" = ia64
; then
16084 # AIX 5 supports IA64
16085 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16086 shlibpath_var
=LD_LIBRARY_PATH
16088 # With GCC up to 2.95.x, collect2 would create an import file
16089 # for dependence libraries. The import file would start with
16090 # the line `#! .'. This would cause the generated library to
16091 # depend on `.', always an invalid library. This was fixed in
16092 # development snapshots of GCC prior to 3.0.
16094 aix4 | aix4.
[01] | aix4.
[01].
*)
16095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16097 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16100 can_build_shared
=no
16104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16105 # soname into executable. Probably we can add versioning support to
16106 # collect2, so additional links can be useful in future.
16107 if test "$aix_use_runtimelinking" = yes; then
16108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16109 # instead of lib<name>.a to let people know that these are not
16110 # typical AIX shared libraries.
16111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113 # We preserve .a as extension for shared libraries through AIX4.2
16114 # and later when we are not doing run time linking.
16115 library_names_spec
='${libname}${release}.a $libname.a'
16116 soname_spec
='${libname}${release}${shared_ext}$major'
16118 shlibpath_var
=LIBPATH
16125 # Since July 2007 AmigaOS4 officially supports .so libraries.
16126 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130 library_names_spec
='$libname.ixlibrary $libname.a'
16131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16132 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'
16138 library_names_spec
='${libname}${shared_ext}'
16139 dynamic_linker
="$host_os ld.so"
16140 shlibpath_var
=LIBRARY_PATH
16146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec
='${libname}${release}${shared_ext}$major'
16148 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16149 shlibpath_var
=LD_LIBRARY_PATH
16150 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16151 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16152 # the default ld.so.conf also contains /usr/contrib/lib and
16153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16154 # libtool to hard-code these into programs
16157 cygwin
* | mingw
* | pw32
* | cegcc
*)
16158 version_type
=windows
16163 case $GCC,$host_os in
16164 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16165 library_names_spec
='$libname.dll.a'
16166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16167 postinstall_cmds
='base_file=`basename \${file}`~
16168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16169 dldir=$destdir/`dirname \$dlpath`~
16170 test -d \$dldir || mkdir -p \$dldir~
16171 $install_prog $dir/$dlname \$dldir/$dlname~
16172 chmod a+x \$dldir/$dlname~
16173 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16174 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16176 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16177 dlpath=$dir/\$dldll~
16179 shlibpath_overrides_runpath
=yes
16183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16184 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16186 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16189 # MinGW DLLs use traditional 'lib' prefix
16190 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16193 # pw32 DLLs use 'pw' prefix rather than 'lib'
16194 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16200 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16203 dynamic_linker
='Win32 ld.exe'
16204 # FIXME: first we should search . and the directory the executable is in
16208 darwin
* | rhapsody
*)
16209 dynamic_linker
="$host_os dyld"
16210 version_type
=darwin
16213 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16214 soname_spec
='${libname}${release}${major}$shared_ext'
16215 shlibpath_overrides_runpath
=yes
16216 shlibpath_var
=DYLD_LIBRARY_PATH
16217 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16219 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16220 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16228 soname_spec
='${libname}${release}${shared_ext}$major'
16229 shlibpath_var
=LD_LIBRARY_PATH
16236 freebsd
* | dragonfly
*)
16237 # DragonFly does not have aout. When/if they implement a new
16238 # versioning mechanism, adjust this.
16239 if test -x /usr
/bin
/objformat
; then
16240 objformat
=`/usr/bin/objformat`
16243 freebsd
[123]*) objformat
=aout
;;
16244 *) objformat
=elf
;;
16247 version_type
=freebsd-
$objformat
16248 case $version_type in
16250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16255 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16259 shlibpath_var
=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath
=yes
16264 freebsd3.
[01]* | freebsdelf3.
[01]*)
16265 shlibpath_overrides_runpath
=yes
16266 hardcode_into_libs
=yes
16268 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16269 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16270 shlibpath_overrides_runpath
=no
16271 hardcode_into_libs
=yes
16273 *) # from 4.6 on, and DragonFly
16274 shlibpath_overrides_runpath
=yes
16275 hardcode_into_libs
=yes
16284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16285 soname_spec
='${libname}${release}${shared_ext}$major'
16286 shlibpath_var
=LD_LIBRARY_PATH
16287 hardcode_into_libs
=yes
16294 dynamic_linker
="$host_os runtime_loader"
16295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16296 soname_spec
='${libname}${release}${shared_ext}$major'
16297 shlibpath_var
=LIBRARY_PATH
16298 shlibpath_overrides_runpath
=yes
16299 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16300 hardcode_into_libs
=yes
16303 hpux9
* | hpux10
* | hpux11
*)
16304 # Give a soname corresponding to the major version so that dld.sl refuses to
16305 # link against other versions.
16312 hardcode_into_libs
=yes
16313 dynamic_linker
="$host_os dld.so"
16314 shlibpath_var
=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317 soname_spec
='${libname}${release}${shared_ext}$major'
16318 if test "X$HPUX_IA64_MODE" = X32
; then
16319 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16321 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16323 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16327 hardcode_into_libs
=yes
16328 dynamic_linker
="$host_os dld.sl"
16329 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16330 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec
='${libname}${release}${shared_ext}$major'
16333 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16334 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16338 dynamic_linker
="$host_os dld.sl"
16339 shlibpath_var
=SHLIB_PATH
16340 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec
='${libname}${release}${shared_ext}$major'
16345 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16346 postinstall_cmds
='chmod 555 $lib'
16347 # or fails outright, so override atomically:
16348 install_override_mode
=555
16355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16356 soname_spec
='${libname}${release}${shared_ext}$major'
16357 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16358 shlibpath_var
=LD_LIBRARY_PATH
16359 shlibpath_overrides_runpath
=no
16360 hardcode_into_libs
=yes
16363 irix5
* | irix6
* | nonstopux
*)
16365 nonstopux
*) version_type
=nonstopux
;;
16367 if test "$lt_cv_prog_gnu_ld" = yes; then
16375 soname_spec
='${libname}${release}${shared_ext}$major'
16376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16378 irix5
* | nonstopux
*)
16379 libsuff
= shlibsuff
=
16382 case $LD in # libtool.m4 will add one of these switches to LD
16383 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16384 libsuff
= shlibsuff
= libmagic
=32-bit;;
16385 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16386 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16387 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16388 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16389 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16393 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16394 shlibpath_overrides_runpath
=no
16395 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16396 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16397 hardcode_into_libs
=yes
16400 # No shared lib support for Linux oldld, aout, or coff.
16401 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16405 # This must be Linux ELF.
16406 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 soname_spec
='${libname}${release}${shared_ext}$major'
16412 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16413 shlibpath_var
=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath
=no
16416 # Some binutils ld are patched to set DT_RUNPATH
16417 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16420 lt_cv_shlibpath_overrides_runpath
=no
16421 save_LDFLAGS
=$LDFLAGS
16422 save_libdir
=$libdir
16423 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16424 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16436 if ac_fn_c_try_link
"$LINENO"; then :
16437 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16438 lt_cv_shlibpath_overrides_runpath
=yes
16441 rm -f core conftest.err conftest.
$ac_objext \
16442 conftest
$ac_exeext conftest.
$ac_ext
16443 LDFLAGS
=$save_LDFLAGS
16444 libdir
=$save_libdir
16448 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16450 # This implies no fast_install, which is unacceptable.
16451 # Some rework will be needed to allow for fast_install
16452 # before this can be enabled.
16453 hardcode_into_libs
=yes
16455 # Append ld.so.conf contents to the search path
16456 if test -f /etc
/ld.so.conf
; then
16457 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' ' '`
16458 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16461 # We used to test for /lib/ld.so.1 and disable shared libraries on
16462 # powerpc, because MkLinux only supported shared libraries with the
16463 # GNU dynamic linker. Since this was broken with cross compilers,
16464 # most powerpc-linux boxes support dynamic linking these days and
16465 # people can always --disable-shared, the test was removed, and we
16466 # assume the GNU/Linux dynamic linker is in use.
16467 dynamic_linker
='GNU/Linux ld.so'
16474 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16476 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16477 dynamic_linker
='NetBSD (a.out) ld.so'
16479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16480 soname_spec
='${libname}${release}${shared_ext}$major'
16481 dynamic_linker
='NetBSD ld.elf_so'
16483 shlibpath_var
=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath
=yes
16485 hardcode_into_libs
=yes
16490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 shlibpath_var
=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath
=yes
16499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 soname_spec
='${libname}${release}${shared_ext}$major'
16501 shlibpath_var
=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath
=no
16503 hardcode_into_libs
=yes
16504 dynamic_linker
='ldqnx.so'
16509 sys_lib_dlsearch_path_spec
="/usr/lib"
16511 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16513 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16514 *) need_version
=no
;;
16516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16517 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16518 shlibpath_var
=LD_LIBRARY_PATH
16519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16521 openbsd2.
[89] | openbsd2.
[89].
*)
16522 shlibpath_overrides_runpath
=no
16525 shlibpath_overrides_runpath
=yes
16529 shlibpath_overrides_runpath
=yes
16534 libname_spec
='$name'
16537 library_names_spec
='$libname${shared_ext} $libname.a'
16538 dynamic_linker
='OS/2 ld.exe'
16539 shlibpath_var
=LIBPATH
16542 osf3
* | osf4
* | osf5
*)
16546 soname_spec
='${libname}${release}${shared_ext}$major'
16547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548 shlibpath_var
=LD_LIBRARY_PATH
16549 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16550 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec
='${libname}${release}${shared_ext}$major'
16563 shlibpath_var
=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath
=yes
16565 hardcode_into_libs
=yes
16566 # ldd complains unless libraries are executable
16567 postinstall_cmds
='chmod +x $lib'
16572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16573 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16574 shlibpath_var
=LD_LIBRARY_PATH
16575 shlibpath_overrides_runpath
=yes
16576 if test "$with_gnu_ld" = yes; then
16584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585 soname_spec
='${libname}${release}${shared_ext}$major'
16586 shlibpath_var
=LD_LIBRARY_PATH
16587 case $host_vendor in
16589 shlibpath_overrides_runpath
=no
16591 runpath_var
=LD_RUN_PATH
16599 shlibpath_overrides_runpath
=no
16600 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16606 if test -d /usr
/nec
;then
16608 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16609 soname_spec
='$libname${shared_ext}.$major'
16610 shlibpath_var
=LD_LIBRARY_PATH
16614 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16615 version_type
=freebsd-elf
16618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16619 soname_spec
='${libname}${release}${shared_ext}$major'
16620 shlibpath_var
=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath
=yes
16622 hardcode_into_libs
=yes
16623 if test "$with_gnu_ld" = yes; then
16624 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16626 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16629 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16633 sys_lib_dlsearch_path_spec
='/usr/lib'
16637 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16641 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 shlibpath_var
=LD_LIBRARY_PATH
16643 shlibpath_overrides_runpath
=no
16644 hardcode_into_libs
=yes
16649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec
='${libname}${release}${shared_ext}$major'
16651 shlibpath_var
=LD_LIBRARY_PATH
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16659 $as_echo "$dynamic_linker" >&6; }
16660 test "$dynamic_linker" = no
&& can_build_shared
=no
16662 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16663 if test "$GCC" = yes; then
16664 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16667 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16668 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16670 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16671 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16766 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16768 if test -n "$hardcode_libdir_flag_spec" ||
16769 test -n "$runpath_var" ||
16770 test "X$hardcode_automatic" = "Xyes" ; then
16772 # We can hardcode non-existent directories.
16773 if test "$hardcode_direct" != no
&&
16774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16775 # have to relink, otherwise we might link with an installed library
16776 # when we should be linking with a yet-to-be-installed one
16777 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16778 test "$hardcode_minus_L" != no
; then
16779 # Linking always hardcodes the temporary library directory.
16780 hardcode_action
=relink
16782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16783 hardcode_action
=immediate
16786 # We cannot hardcode anything, or else we can only hardcode existing
16788 hardcode_action
=unsupported
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16791 $as_echo "$hardcode_action" >&6; }
16793 if test "$hardcode_action" = relink ||
16794 test "$inherit_rpath" = yes; then
16795 # Fast installation is not supported
16796 enable_fast_install
=no
16797 elif test "$shlibpath_overrides_runpath" = yes ||
16798 test "$enable_shared" = no
; then
16799 # Fast installation is not necessary
16800 enable_fast_install
=needless
16808 if test "x$enable_dlopen" != xyes
; then
16809 enable_dlopen
=unknown
16810 enable_dlopen_self
=unknown
16811 enable_dlopen_self_static
=unknown
16818 lt_cv_dlopen
="load_add_on"
16820 lt_cv_dlopen_self
=yes
16823 mingw
* | pw32
* | cegcc
*)
16824 lt_cv_dlopen
="LoadLibrary"
16829 lt_cv_dlopen
="dlopen"
16834 # if libdl is installed we need to link against it
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16836 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16840 ac_check_lib_save_LIBS
=$LIBS
16842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16845 /* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
16860 if ac_fn_c_try_link
"$LINENO"; then :
16861 ac_cv_lib_dl_dlopen
=yes
16863 ac_cv_lib_dl_dlopen
=no
16865 rm -f core conftest.err conftest.
$ac_objext \
16866 conftest
$ac_exeext conftest.
$ac_ext
16867 LIBS
=$ac_check_lib_save_LIBS
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16870 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16871 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16872 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16875 lt_cv_dlopen
="dyld"
16877 lt_cv_dlopen_self
=yes
16884 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16885 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16886 lt_cv_dlopen
="shl_load"
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16889 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16891 $as_echo_n "(cached) " >&6
16893 ac_check_lib_save_LIBS
=$LIBS
16895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16898 /* Override any GCC internal prototype to avoid an error.
16899 Use char because int might match the return type of a GCC
16900 builtin and then its argument prototype would still apply. */
16908 return shl_load ();
16913 if ac_fn_c_try_link
"$LINENO"; then :
16914 ac_cv_lib_dld_shl_load
=yes
16916 ac_cv_lib_dld_shl_load
=no
16918 rm -f core conftest.err conftest.
$ac_objext \
16919 conftest
$ac_exeext conftest.
$ac_ext
16920 LIBS
=$ac_check_lib_save_LIBS
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16923 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16924 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16925 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16927 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16928 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16929 lt_cv_dlopen
="dlopen"
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16932 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16934 $as_echo_n "(cached) " >&6
16936 ac_check_lib_save_LIBS
=$LIBS
16938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16941 /* Override any GCC internal prototype to avoid an error.
16942 Use char because int might match the return type of a GCC
16943 builtin and then its argument prototype would still apply. */
16956 if ac_fn_c_try_link
"$LINENO"; then :
16957 ac_cv_lib_dl_dlopen
=yes
16959 ac_cv_lib_dl_dlopen
=no
16961 rm -f core conftest.err conftest.
$ac_objext \
16962 conftest
$ac_exeext conftest.
$ac_ext
16963 LIBS
=$ac_check_lib_save_LIBS
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16967 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16968 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16973 $as_echo_n "(cached) " >&6
16975 ac_check_lib_save_LIBS
=$LIBS
16976 LIBS
="-lsvld $LIBS"
16977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16980 /* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
16995 if ac_fn_c_try_link
"$LINENO"; then :
16996 ac_cv_lib_svld_dlopen
=yes
16998 ac_cv_lib_svld_dlopen
=no
17000 rm -f core conftest.err conftest.
$ac_objext \
17001 conftest
$ac_exeext conftest.
$ac_ext
17002 LIBS
=$ac_check_lib_save_LIBS
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17005 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17006 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17007 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17010 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17014 ac_check_lib_save_LIBS
=$LIBS
17016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17019 /* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17029 return dld_link ();
17034 if ac_fn_c_try_link
"$LINENO"; then :
17035 ac_cv_lib_dld_dld_link
=yes
17037 ac_cv_lib_dld_dld_link
=no
17039 rm -f core conftest.err conftest.
$ac_objext \
17040 conftest
$ac_exeext conftest.
$ac_ext
17041 LIBS
=$ac_check_lib_save_LIBS
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17044 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17045 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17046 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17067 if test "x$lt_cv_dlopen" != xno
; then
17073 case $lt_cv_dlopen in
17075 save_CPPFLAGS
="$CPPFLAGS"
17076 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17078 save_LDFLAGS
="$LDFLAGS"
17079 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17082 LIBS
="$lt_cv_dlopen_libs $LIBS"
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17085 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17086 if test "${lt_cv_dlopen_self+set}" = set; then :
17087 $as_echo_n "(cached) " >&6
17089 if test "$cross_compiling" = yes; then :
17090 lt_cv_dlopen_self
=cross
17092 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17093 lt_status
=$lt_dlunknown
17094 cat > conftest.
$ac_ext <<_LT_EOF
17095 #line 17095 "configure"
17096 #include "confdefs.h"
17105 # define LT_DLGLOBAL RTLD_GLOBAL
17108 # define LT_DLGLOBAL DL_GLOBAL
17110 # define LT_DLGLOBAL 0
17114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17115 find out it does not work in some platform. */
17116 #ifndef LT_DLLAZY_OR_NOW
17118 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17121 # define LT_DLLAZY_OR_NOW DL_LAZY
17124 # define LT_DLLAZY_OR_NOW RTLD_NOW
17127 # define LT_DLLAZY_OR_NOW DL_NOW
17129 # define LT_DLLAZY_OR_NOW 0
17136 /* When -fvisbility=hidden is used, assume the code has been annotated
17137 correspondingly for the symbols needed. */
17138 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17139 void fnord () __attribute__((visibility("default")));
17142 void fnord () { int i=42; }
17145 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17146 int status = $lt_dlunknown;
17150 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17153 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17154 else puts (dlerror ());
17156 /* dlclose (self); */
17164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17165 (eval $ac_link) 2>&5
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17169 (.
/conftest
; exit; ) >&5 2>/dev
/null
17171 case x
$lt_status in
17172 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17173 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17174 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17177 # compilation failed
17178 lt_cv_dlopen_self
=no
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17186 $as_echo "$lt_cv_dlopen_self" >&6; }
17188 if test "x$lt_cv_dlopen_self" = xyes
; then
17189 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17191 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17192 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17193 $as_echo_n "(cached) " >&6
17195 if test "$cross_compiling" = yes; then :
17196 lt_cv_dlopen_self_static
=cross
17198 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17199 lt_status
=$lt_dlunknown
17200 cat > conftest.
$ac_ext <<_LT_EOF
17201 #line 17201 "configure"
17202 #include "confdefs.h"
17211 # define LT_DLGLOBAL RTLD_GLOBAL
17214 # define LT_DLGLOBAL DL_GLOBAL
17216 # define LT_DLGLOBAL 0
17220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17221 find out it does not work in some platform. */
17222 #ifndef LT_DLLAZY_OR_NOW
17224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17227 # define LT_DLLAZY_OR_NOW DL_LAZY
17230 # define LT_DLLAZY_OR_NOW RTLD_NOW
17233 # define LT_DLLAZY_OR_NOW DL_NOW
17235 # define LT_DLLAZY_OR_NOW 0
17242 /* When -fvisbility=hidden is used, assume the code has been annotated
17243 correspondingly for the symbols needed. */
17244 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17245 void fnord () __attribute__((visibility("default")));
17248 void fnord () { int i=42; }
17251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17252 int status = $lt_dlunknown;
17256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17259 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17260 else puts (dlerror ());
17262 /* dlclose (self); */
17270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17271 (eval $ac_link) 2>&5
17273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17274 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17275 (.
/conftest
; exit; ) >&5 2>/dev
/null
17277 case x
$lt_status in
17278 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17279 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17280 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17283 # compilation failed
17284 lt_cv_dlopen_self_static
=no
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17292 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17295 CPPFLAGS
="$save_CPPFLAGS"
17296 LDFLAGS
="$save_LDFLAGS"
17301 case $lt_cv_dlopen_self in
17302 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17303 *) enable_dlopen_self
=unknown
;;
17306 case $lt_cv_dlopen_self_static in
17307 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17308 *) enable_dlopen_self_static
=unknown
;;
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17331 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17332 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17333 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17334 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17336 $as_echo "yes" >&6; }
17338 # FIXME - insert some real tests, host_os isn't really good enough
17341 if test -n "$STRIP" ; then
17342 striplib
="$STRIP -x"
17343 old_striplib
="$STRIP -S"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17345 $as_echo "yes" >&6; }
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17369 # Report which library types will actually be built
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17371 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17373 $as_echo "$can_build_shared" >&6; }
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17376 $as_echo_n "checking whether to build shared libraries... " >&6; }
17377 test "$can_build_shared" = "no" && enable_shared
=no
17379 # On AIX, shared libraries and static libraries use the same namespace, and
17380 # are all built from PIC.
17383 test "$enable_shared" = yes && enable_static
=no
17384 if test -n "$RANLIB"; then
17385 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17386 postinstall_cmds
='$RANLIB $lib'
17391 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17392 test "$enable_shared" = yes && enable_static
=no
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17397 $as_echo "$enable_shared" >&6; }
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17400 $as_echo_n "checking whether to build static libraries... " >&6; }
17401 # Make sure either enable_shared or enable_static is yes.
17402 test "$enable_shared" = yes || enable_static
=yes
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17404 $as_echo "$enable_static" >&6; }
17411 ac_cpp
='$CPP $CPPFLAGS'
17412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17418 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17419 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17420 (test "X$CXX" != "Xg++"))) ; then
17422 ac_cpp
='$CXXCPP $CPPFLAGS'
17423 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17424 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17425 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17427 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17428 if test -z "$CXXCPP"; then
17429 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17430 $as_echo_n "(cached) " >&6
17432 # Double quotes because CXXCPP needs to be expanded
17433 for CXXCPP
in "$CXX -E" "/lib/cpp"
17435 ac_preproc_ok
=false
17436 for ac_cxx_preproc_warn_flag
in '' yes
17438 # Use a header file that comes with gcc, so configuring glibc
17439 # with a fresh cross-compiler works.
17440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17441 # <limits.h> exists even on freestanding compilers.
17442 # On the NeXT, cc -E runs the code through the compiler's parser,
17443 # not just through cpp. "Syntax error" is here to catch this case.
17444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17447 # include <limits.h>
17449 # include <assert.h>
17453 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17456 # Broken: fails on valid input.
17459 rm -f conftest.err conftest.
$ac_ext
17461 # OK, works on sane cases. Now check whether nonexistent headers
17462 # can be detected and how.
17463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 #include <ac_nonexistent.h>
17467 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17468 # Broken: success on invalid input.
17471 # Passes both tests.
17475 rm -f conftest.err conftest.
$ac_ext
17478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17479 rm -f conftest.err conftest.
$ac_ext
17480 if $ac_preproc_ok; then :
17485 ac_cv_prog_CXXCPP
=$CXXCPP
17488 CXXCPP
=$ac_cv_prog_CXXCPP
17490 ac_cv_prog_CXXCPP
=$CXXCPP
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17493 $as_echo "$CXXCPP" >&6; }
17494 ac_preproc_ok
=false
17495 for ac_cxx_preproc_warn_flag
in '' yes
17497 # Use a header file that comes with gcc, so configuring glibc
17498 # with a fresh cross-compiler works.
17499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 # <limits.h> exists even on freestanding compilers.
17501 # On the NeXT, cc -E runs the code through the compiler's parser,
17502 # not just through cpp. "Syntax error" is here to catch this case.
17503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17506 # include <limits.h>
17508 # include <assert.h>
17512 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17515 # Broken: fails on valid input.
17518 rm -f conftest.err conftest.
$ac_ext
17520 # OK, works on sane cases. Now check whether nonexistent headers
17521 # can be detected and how.
17522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524 #include <ac_nonexistent.h>
17526 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17527 # Broken: success on invalid input.
17530 # Passes both tests.
17534 rm -f conftest.err conftest.
$ac_ext
17537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17538 rm -f conftest.err conftest.
$ac_ext
17539 if $ac_preproc_ok; then :
17542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17544 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17545 See \`config.log' for more details." "$LINENO" 5; }
17549 ac_cpp
='$CPP $CPPFLAGS'
17550 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17555 _lt_caught_CXX_error
=yes
17559 ac_cpp
='$CXXCPP $CPPFLAGS'
17560 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17564 archive_cmds_need_lc_CXX
=no
17565 allow_undefined_flag_CXX
=
17566 always_export_symbols_CXX
=no
17567 archive_expsym_cmds_CXX
=
17568 compiler_needs_object_CXX
=no
17569 export_dynamic_flag_spec_CXX
=
17570 hardcode_direct_CXX
=no
17571 hardcode_direct_absolute_CXX
=no
17572 hardcode_libdir_flag_spec_CXX
=
17573 hardcode_libdir_flag_spec_ld_CXX
=
17574 hardcode_libdir_separator_CXX
=
17575 hardcode_minus_L_CXX
=no
17576 hardcode_shlibpath_var_CXX
=unsupported
17577 hardcode_automatic_CXX
=no
17578 inherit_rpath_CXX
=no
17580 module_expsym_cmds_CXX
=
17581 link_all_deplibs_CXX
=unknown
17582 old_archive_cmds_CXX
=$old_archive_cmds
17583 reload_flag_CXX
=$reload_flag
17584 reload_cmds_CXX
=$reload_cmds
17585 no_undefined_flag_CXX
=
17586 whole_archive_flag_spec_CXX
=
17587 enable_shared_with_static_runtimes_CXX
=no
17589 # Source file extension for C++ test sources.
17592 # Object file extension for compiled C++ test sources.
17596 # No sense in running all these tests if we already determined that
17597 # the CXX compiler isn't working. Some variables (like enable_shared)
17598 # are currently assumed to apply to all compilers on this platform,
17599 # and will be corrupted by setting them based on a non-working compiler.
17600 if test "$_lt_caught_CXX_error" != yes; then
17601 # Code to be used in simple compile tests
17602 lt_simple_compile_test_code
="int some_variable = 0;"
17604 # Code to be used in simple link tests
17605 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17614 # If no C compiler was specified, use CC.
17617 # If no C compiler flags were specified, use CFLAGS.
17618 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17620 # Allow CC to be a program name with arguments.
17624 # save warnings/boilerplate of simple test code
17625 ac_outfile
=conftest.
$ac_objext
17626 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17627 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17628 _lt_compiler_boilerplate
=`cat conftest.err`
17631 ac_outfile
=conftest.
$ac_objext
17632 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17633 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17634 _lt_linker_boilerplate
=`cat conftest.err`
17638 # Allow CC to be a program name with arguments.
17643 lt_save_with_gnu_ld
=$with_gnu_ld
17644 lt_save_path_LD
=$lt_cv_path_LD
17645 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17646 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17648 $as_unset lt_cv_prog_gnu_ld
17650 if test -n "${lt_cv_path_LDCXX+set}"; then
17651 lt_cv_path_LD
=$lt_cv_path_LDCXX
17653 $as_unset lt_cv_path_LD
17655 test -z "${LDCXX+set}" || LD
=$LDCXX
17659 for cc_temp
in $compiler""; do
17661 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17662 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17667 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17670 if test -n "$compiler"; then
17671 # We don't want -fno-exception when compiling C++ code, so set the
17672 # no_builtin_flag separately
17673 if test "$GXX" = yes; then
17674 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17676 lt_prog_compiler_no_builtin_flag_CXX
=
17679 if test "$GXX" = yes; then
17680 # Set up default GNU C++ configuration
17684 # Check whether --with-gnu-ld was given.
17685 if test "${with_gnu_ld+set}" = set; then :
17686 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17692 if test "$GCC" = yes; then
17693 # Check if gcc -print-prog-name=ld gives a path.
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17695 $as_echo_n "checking for ld used by $CC... " >&6; }
17698 # gcc leaves a trailing carriage return which upsets mingw
17699 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17701 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17704 # Accept absolute paths.
17706 re_direlt
='/[^/][^/]*/\.\./'
17707 # Canonicalize the pathname of ld
17708 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17709 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17710 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17712 test -z "$LD" && LD
="$ac_prog"
17715 # If it fails, then pretend we aren't using GCC.
17719 # If it is relative, then search for the first ld in PATH.
17720 with_gnu_ld
=unknown
17723 elif test "$with_gnu_ld" = yes; then
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17725 $as_echo_n "checking for GNU ld... " >&6; }
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17728 $as_echo_n "checking for non-GNU ld... " >&6; }
17730 if test "${lt_cv_path_LD+set}" = set; then :
17731 $as_echo_n "(cached) " >&6
17733 if test -z "$LD"; then
17734 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17735 for ac_dir
in $PATH; do
17737 test -z "$ac_dir" && ac_dir
=.
17738 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17739 lt_cv_path_LD
="$ac_dir/$ac_prog"
17740 # Check to see if the program is GNU ld. I'd rather use --version,
17741 # but apparently some variants of GNU ld only accept -v.
17742 # Break only if it was the GNU/non-GNU ld that we prefer.
17743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17744 *GNU
* |
*'with BFD'*)
17745 test "$with_gnu_ld" != no
&& break
17748 test "$with_gnu_ld" != yes && break
17755 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17759 LD
="$lt_cv_path_LD"
17760 if test -n "$LD"; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17762 $as_echo "$LD" >&6; }
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17767 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17769 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17770 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17771 $as_echo_n "(cached) " >&6
17773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17774 case `$LD -v 2>&1 </dev/null` in
17775 *GNU
* |
*'with BFD'*)
17776 lt_cv_prog_gnu_ld
=yes
17779 lt_cv_prog_gnu_ld
=no
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17784 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17785 with_gnu_ld
=$lt_cv_prog_gnu_ld
17793 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17794 # archiving commands below assume that GNU ld is being used.
17795 if test "$with_gnu_ld" = yes; then
17796 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17797 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'
17799 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17800 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17802 # If archive_cmds runs LD, not CC, wlarc should be empty
17803 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17804 # investigate it a little bit more. (MM)
17807 # ancient GNU ld didn't support --whole-archive et. al.
17808 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17809 $GREP 'no-whole-archive' > /dev
/null
; then
17810 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17812 whole_archive_flag_spec_CXX
=
17818 # A generic and very simple default shared library creation
17819 # command for GNU C++ for the case where it uses the native
17820 # linker, instead of GNU ld. If possible, this setting should
17821 # overridden to take advantage of the native linker features on
17822 # the platform it is being used on.
17823 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17826 # Commands to make compiler produce verbose output that lists
17827 # what "hidden" libraries, object files and flags are used when
17828 # linking a shared library.
17829 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17837 # PORTME: fill in a description of your system's C++ link characteristics
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17843 # FIXME: insert proper C++ library support
17847 if test "$host_cpu" = ia64
; then
17848 # On IA64, the linker does run time linking by default, so we don't
17849 # have to do anything special.
17850 aix_use_runtimelinking
=no
17851 exp_sym_flag
='-Bexport'
17854 aix_use_runtimelinking
=no
17856 # Test if we are trying to use run time linking or normal
17857 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17858 # need to do runtime linking.
17859 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17860 for ld_flag
in $LDFLAGS; do
17863 aix_use_runtimelinking
=yes
17871 exp_sym_flag
='-bexport'
17872 no_entry_flag
='-bnoentry'
17875 # When large executables or shared objects are built, AIX ld can
17876 # have problems creating the table of contents. If linking a library
17877 # or program results in "error TOC overflow" add -mminimal-toc to
17878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17881 archive_cmds_CXX
=''
17882 hardcode_direct_CXX
=yes
17883 hardcode_direct_absolute_CXX
=yes
17884 hardcode_libdir_separator_CXX
=':'
17885 link_all_deplibs_CXX
=yes
17886 file_list_spec_CXX
='${wl}-f,'
17888 if test "$GXX" = yes; then
17889 case $host_os in aix4.
[012]|aix4.
[012].
*)
17890 # We only want to do this on AIX 4.2 and lower, the check
17891 # below for broken collect2 doesn't work under 4.3+
17892 collect2name
=`${CC} -print-prog-name=collect2`
17893 if test -f "$collect2name" &&
17894 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17896 # We have reworked collect2
17899 # We have old collect2
17900 hardcode_direct_CXX
=unsupported
17901 # It fails to find uninstalled libraries when the uninstalled
17902 # path is not listed in the libpath. Setting hardcode_minus_L
17903 # to unsupported forces relinking
17904 hardcode_minus_L_CXX
=yes
17905 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17906 hardcode_libdir_separator_CXX
=
17909 shared_flag
='-shared'
17910 if test "$aix_use_runtimelinking" = yes; then
17911 shared_flag
="$shared_flag "'${wl}-G'
17915 if test "$host_cpu" = ia64
; then
17916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17917 # chokes on -Wl,-G. The following line is correct:
17920 if test "$aix_use_runtimelinking" = yes; then
17921 shared_flag
='${wl}-G'
17923 shared_flag
='${wl}-bM:SRE'
17928 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17929 # It seems that -bexpall does not export symbols beginning with
17930 # underscore (_), so it is better to generate a list of symbols to
17932 always_export_symbols_CXX
=yes
17933 if test "$aix_use_runtimelinking" = yes; then
17934 # Warning - without using the other runtime loading flags (-brtl),
17935 # -berok will link without error, but may produce a broken library.
17936 allow_undefined_flag_CXX
='-berok'
17937 # Determine the default libpath from the value encoded in an empty
17939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17950 if ac_fn_cxx_try_link
"$LINENO"; then :
17952 lt_aix_libpath_sed
='
17953 /Import File Strings/,/^$/ {
17959 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17960 # Check for a 64-bit object if we didn't find anything.
17961 if test -z "$aix_libpath"; then
17962 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 rm -f core conftest.err conftest.
$ac_objext \
17966 conftest
$ac_exeext conftest.
$ac_ext
17967 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17969 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17971 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"
17973 if test "$host_cpu" = ia64
; then
17974 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
17975 allow_undefined_flag_CXX
="-z nodefs"
17976 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"
17978 # Determine the default libpath from the value encoded in an
17979 # empty executable.
17980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h. */
17991 if ac_fn_cxx_try_link
"$LINENO"; then :
17993 lt_aix_libpath_sed
='
17994 /Import File Strings/,/^$/ {
18000 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18001 # Check for a 64-bit object if we didn't find anything.
18002 if test -z "$aix_libpath"; then
18003 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18006 rm -f core conftest.err conftest.
$ac_objext \
18007 conftest
$ac_exeext conftest.
$ac_ext
18008 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18010 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18011 # Warning - without using the other run time loading flags,
18012 # -berok will link without error, but may produce a broken library.
18013 no_undefined_flag_CXX
=' ${wl}-bernotok'
18014 allow_undefined_flag_CXX
=' ${wl}-berok'
18015 if test "$with_gnu_ld" = yes; then
18016 # We only use this code for GNU lds that support --whole-archive.
18017 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18019 # Exported symbols can be pulled into shared objects from archives
18020 whole_archive_flag_spec_CXX
='$convenience'
18022 archive_cmds_need_lc_CXX
=yes
18023 # This is similar to how AIX traditionally builds its shared
18025 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'
18031 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18032 allow_undefined_flag_CXX
=unsupported
18033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18034 # support --undefined. This deserves some investigation. FIXME
18035 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18042 case $cc_basename in
18044 # FIXME: insert proper C++ library support
18050 cygwin
* | mingw
* | pw32
* | cegcc
*)
18051 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18052 # as there is no search path for DLLs.
18053 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18054 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18055 allow_undefined_flag_CXX
=unsupported
18056 always_export_symbols_CXX
=no
18057 enable_shared_with_static_runtimes_CXX
=yes
18059 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18060 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'
18061 # If the export-symbols file already is a .def file (1st line
18062 # is EXPORTS), use it as is; otherwise, prepend...
18063 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18064 cp $export_symbols $output_objdir/$soname.def;
18066 echo EXPORTS > $output_objdir/$soname.def;
18067 cat $export_symbols >> $output_objdir/$soname.def;
18069 $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'
18074 darwin
* | rhapsody
*)
18077 archive_cmds_need_lc_CXX
=no
18078 hardcode_direct_CXX
=no
18079 hardcode_automatic_CXX
=yes
18080 hardcode_shlibpath_var_CXX
=unsupported
18081 if test "$lt_cv_ld_force_load" = "yes"; then
18082 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\"`'
18084 whole_archive_flag_spec_CXX
=''
18086 link_all_deplibs_CXX
=yes
18087 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18088 case $cc_basename in
18089 ifort
*) _lt_dar_can_shared
=yes ;;
18090 *) _lt_dar_can_shared
=$GCC ;;
18092 if test "$_lt_dar_can_shared" = "yes"; then
18093 output_verbose_link_cmd
=func_echo_all
18094 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}"
18095 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18096 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}"
18097 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}"
18098 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18099 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}"
18100 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}"
18110 case $cc_basename in
18112 # FIXME: insert proper C++ library support
18116 # Green Hills C++ Compiler
18117 # FIXME: insert proper C++ library support
18121 # FIXME: insert proper C++ library support
18128 # C++ shared libraries reported to be fairly broken before
18134 archive_cmds_need_lc_CXX
=no
18137 freebsd
* | dragonfly
*)
18138 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18147 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18148 link_all_deplibs_CXX
=yes
18152 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18153 hardcode_libdir_separator_CXX
=:
18154 export_dynamic_flag_spec_CXX
='${wl}-E'
18155 hardcode_direct_CXX
=yes
18156 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18157 # but as the default
18158 # location of the library.
18160 case $cc_basename in
18162 # FIXME: insert proper C++ library support
18166 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'
18167 # Commands to make compiler produce verbose output that lists
18168 # what "hidden" libraries, object files and flags are used when
18169 # linking a shared library.
18171 # There doesn't appear to be a way to prevent this compiler from
18172 # explicitly linking system object files so we need to strip them
18173 # from the output so that they don't get included in the library
18175 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"'
18178 if test "$GXX" = yes; then
18179 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'
18181 # FIXME: insert proper C++ library support
18189 if test $with_gnu_ld = no
; then
18190 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18191 hardcode_libdir_separator_CXX
=:
18197 export_dynamic_flag_spec_CXX
='${wl}-E'
18203 hardcode_direct_CXX
=no
18204 hardcode_shlibpath_var_CXX
=no
18207 hardcode_direct_CXX
=yes
18208 hardcode_direct_absolute_CXX
=yes
18209 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18210 # but as the default
18211 # location of the library.
18215 case $cc_basename in
18217 # FIXME: insert proper C++ library support
18223 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18226 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18229 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18232 # Commands to make compiler produce verbose output that lists
18233 # what "hidden" libraries, object files and flags are used when
18234 # linking a shared library.
18236 # There doesn't appear to be a way to prevent this compiler from
18237 # explicitly linking system object files so we need to strip them
18238 # from the output so that they don't get included in the library
18240 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"'
18243 if test "$GXX" = yes; then
18244 if test $with_gnu_ld = no
; then
18247 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18250 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18253 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'
18258 # FIXME: insert proper C++ library support
18266 hardcode_direct_CXX
=no
18267 hardcode_shlibpath_var_CXX
=no
18268 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18269 export_dynamic_flag_spec_CXX
='${wl}-E'
18270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18271 # Instead, shared libraries are loaded at an image base (0x10000000 by
18272 # default) and relocated if they conflict, which is a slow very memory
18273 # consuming and fragmenting process. To avoid this, we pick a random,
18274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18276 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'
18277 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'
18280 case $cc_basename in
18283 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'
18285 # Archives containing C++ object files must be created using
18286 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18287 # necessary to make sure instantiated templates are included
18289 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18292 if test "$GXX" = yes; then
18293 if test "$with_gnu_ld" = no
; then
18294 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'
18296 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'
18299 link_all_deplibs_CXX
=yes
18302 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18303 hardcode_libdir_separator_CXX
=:
18304 inherit_rpath_CXX
=yes
18307 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18308 case $cc_basename in
18310 # Kuck and Associates, Inc. (KAI) C++ Compiler
18312 # KCC will only create a shared library if the output file
18313 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18314 # to its proper name (with version) after linking.
18315 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'
18316 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'
18317 # Commands to make compiler produce verbose output that lists
18318 # what "hidden" libraries, object files and flags are used when
18319 # linking a shared library.
18321 # There doesn't appear to be a way to prevent this compiler from
18322 # explicitly linking system object files so we need to strip them
18323 # from the output so that they don't get included in the library
18325 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"'
18327 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18328 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18330 # Archives containing C++ object files must be created using
18331 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18332 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18337 # version 8.0 and above of icpc choke on multiply defined symbols
18338 # if we add $predep_objects and $postdep_objects, however 7.1 and
18339 # earlier do not add the objects themselves.
18340 case `$CC -V 2>&1` in
18342 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 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'
18345 *) # Version 8.0 or newer
18348 ia64
*) tmp_idyn
=' -i_dynamic';;
18350 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18351 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'
18354 archive_cmds_need_lc_CXX
=no
18355 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18356 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18357 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18360 # Portland Group C++ compiler
18362 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18363 prelink_cmds_CXX
='tpldir=Template.dir~
18365 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18366 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18367 old_archive_cmds_CXX
='tpldir=Template.dir~
18369 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18370 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18372 archive_cmds_CXX
='tpldir=Template.dir~
18374 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18375 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18376 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18378 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18379 $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'
18381 *) # Version 6 and above use weak symbols
18382 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18383 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'
18387 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18388 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18389 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'
18393 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18394 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'
18396 runpath_var
=LD_RUN_PATH
18397 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18398 hardcode_libdir_separator_CXX
=:
18400 # Commands to make compiler produce verbose output that lists
18401 # what "hidden" libraries, object files and flags are used when
18402 # linking a shared library.
18404 # There doesn't appear to be a way to prevent this compiler from
18405 # explicitly linking system object files so we need to strip them
18406 # from the output so that they don't get included in the library
18408 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'
18410 xl
* | mpixl
* | bgxl
*)
18411 # IBM XL 8.0 on PPC, with GNU ld
18412 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18413 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18414 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18415 if test "x$supports_anon_versioning" = xyes
; then
18416 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18418 echo "local: *; };" >> $output_objdir/$libname.ver~
18419 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18423 case `$CC -V 2>&1 | sed 5q` in
18426 no_undefined_flag_CXX
=' -zdefs'
18427 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18428 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'
18429 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18430 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'
18431 compiler_needs_object_CXX
=yes
18433 # Not sure whether something based on
18434 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18436 output_verbose_link_cmd
='func_echo_all'
18438 # Archives containing C++ object files must be created using
18439 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18440 # necessary to make sure instantiated templates are included
18442 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18450 # FIXME: insert proper C++ library support
18455 # FIXME: insert proper C++ library support
18460 case $cc_basename in
18462 # FIXME: insert proper C++ library support
18466 # FIXME: insert proper C++ library support
18473 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18474 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18476 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18477 hardcode_direct_CXX
=yes
18478 hardcode_shlibpath_var_CXX
=no
18480 # Workaround some broken pre-1.5 toolchains
18481 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18489 # C++ shared libraries are fairly broken
18494 if test -f /usr
/libexec
/ld.so
; then
18495 hardcode_direct_CXX
=yes
18496 hardcode_shlibpath_var_CXX
=no
18497 hardcode_direct_absolute_CXX
=yes
18498 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18499 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18501 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18502 export_dynamic_flag_spec_CXX
='${wl}-E'
18503 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18505 output_verbose_link_cmd
=func_echo_all
18511 osf3
* | osf4
* | osf5
*)
18512 case $cc_basename in
18514 # Kuck and Associates, Inc. (KAI) C++ Compiler
18516 # KCC will only create a shared library if the output file
18517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18518 # to its proper name (with version) after linking.
18519 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'
18521 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18522 hardcode_libdir_separator_CXX
=:
18524 # Archives containing C++ object files must be created using
18525 # the KAI C++ compiler.
18527 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18528 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18532 # Rational C++ 2.4.1
18533 # FIXME: insert proper C++ library support
18539 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18540 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'
18541 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18544 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18545 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'
18546 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18547 echo "-hidden">> $lib.exp~
18548 $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~
18550 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18554 hardcode_libdir_separator_CXX
=:
18556 # Commands to make compiler produce verbose output that lists
18557 # what "hidden" libraries, object files and flags are used when
18558 # linking a shared library.
18560 # There doesn't appear to be a way to prevent this compiler from
18561 # explicitly linking system object files so we need to strip them
18562 # from the output so that they don't get included in the library
18564 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"'
18567 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18568 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18571 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'
18574 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'
18578 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18579 hardcode_libdir_separator_CXX
=:
18581 # Commands to make compiler produce verbose output that lists
18582 # what "hidden" libraries, object files and flags are used when
18583 # linking a shared library.
18584 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18587 # FIXME: insert proper C++ library support
18595 # FIXME: insert proper C++ library support
18600 case $cc_basename in
18603 # FIXME: insert proper C++ library support
18608 # FIXME: insert proper C++ library support
18612 # FIXME: insert proper C++ library support
18619 case $cc_basename in
18621 # Sun C++ 4.2, 5.x and Centerline C++
18622 archive_cmds_need_lc_CXX
=yes
18623 no_undefined_flag_CXX
=' -zdefs'
18624 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18625 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18626 $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'
18628 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18629 hardcode_shlibpath_var_CXX
=no
18631 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18633 # The compiler driver will combine and reorder linker options,
18634 # but understands `-z linker_flag'.
18635 # Supported since Solaris 2.6 (maybe 2.5.1?)
18636 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18639 link_all_deplibs_CXX
=yes
18641 output_verbose_link_cmd
='func_echo_all'
18643 # Archives containing C++ object files must be created using
18644 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18645 # necessary to make sure instantiated templates are included
18647 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18650 # Green Hills C++ Compiler
18651 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18653 # The C++ compiler must be used to create the archive.
18654 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18657 # GNU C++ compiler with Solaris linker
18658 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18659 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18660 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18661 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18662 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18663 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18665 # Commands to make compiler produce verbose output that lists
18666 # what "hidden" libraries, object files and flags are used when
18667 # linking a shared library.
18668 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18670 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18672 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18673 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18674 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18676 # Commands to make compiler produce verbose output that lists
18677 # what "hidden" libraries, object files and flags are used when
18678 # linking a shared library.
18679 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18682 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18684 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18686 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18694 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18695 no_undefined_flag_CXX
='${wl}-z,text'
18696 archive_cmds_need_lc_CXX
=no
18697 hardcode_shlibpath_var_CXX
=no
18698 runpath_var
='LD_RUN_PATH'
18700 case $cc_basename in
18702 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18703 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18706 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18707 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18712 sysv5
* | sco3.2v5
* | sco5v6
*)
18713 # Note: We can NOT use -z defs as we might desire, because we do not
18714 # link with -lc, and that would cause any symbols used from libc to
18715 # always be unresolved, which means just about no library would
18716 # ever link correctly. If we're not using GNU ld we use -z text
18717 # though, which does catch some bad symbols but isn't as heavy-handed
18719 no_undefined_flag_CXX
='${wl}-z,text'
18720 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18721 archive_cmds_need_lc_CXX
=no
18722 hardcode_shlibpath_var_CXX
=no
18723 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18724 hardcode_libdir_separator_CXX
=':'
18725 link_all_deplibs_CXX
=yes
18726 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18727 runpath_var
='LD_RUN_PATH'
18729 case $cc_basename in
18731 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18732 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18733 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18734 '"$old_archive_cmds_CXX"
18735 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18736 '"$reload_cmds_CXX"
18739 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18740 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18746 case $cc_basename in
18748 # NonStop-UX NCC 3.20
18749 # FIXME: insert proper C++ library support
18753 # FIXME: insert proper C++ library support
18760 # FIXME: insert proper C++ library support
18765 # FIXME: insert proper C++ library support
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18771 $as_echo "$ld_shlibs_CXX" >&6; }
18772 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18778 ## There is no encapsulation within the following macros, do not change
18779 ## the running order or otherwise move them around unless you know exactly
18780 ## what you are doing...
18781 # Dependencies to place before and after the object being linked:
18782 predep_objects_CXX
=
18783 postdep_objects_CXX
=
18786 compiler_lib_search_path_CXX
=
18788 cat > conftest.
$ac_ext <<_LT_EOF
18792 Foo (void) { a = 0; }
18798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18799 (eval $ac_compile) 2>&5
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }; then
18803 # Parse the compiler output and extract the necessary
18804 # objects, libraries and library flags.
18806 # Sentinel used to keep track of whether or not we are before
18807 # the conftest object file.
18808 pre_test_object_deps_done
=no
18810 for p
in `eval "$output_verbose_link_cmd"`; do
18814 # Some compilers place space between "-{L,R}" and the path.
18815 # Remove the space.
18816 if test $p = "-L" ||
18817 test $p = "-R"; then
18824 if test "$pre_test_object_deps_done" = no
; then
18827 # Internal compiler library paths should come after those
18828 # provided the user. The postdeps already come after the
18829 # user supplied libs so there is no need to process them.
18830 if test -z "$compiler_lib_search_path_CXX"; then
18831 compiler_lib_search_path_CXX
="${prev}${p}"
18833 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18836 # The "-l" case would never come before the object being
18837 # linked, so don't bother handling this case.
18840 if test -z "$postdeps_CXX"; then
18841 postdeps_CXX
="${prev}${p}"
18843 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18849 # This assumes that the test object file only shows up
18850 # once in the compiler output.
18851 if test "$p" = "conftest.$objext"; then
18852 pre_test_object_deps_done
=yes
18856 if test "$pre_test_object_deps_done" = no
; then
18857 if test -z "$predep_objects_CXX"; then
18858 predep_objects_CXX
="$p"
18860 predep_objects_CXX
="$predep_objects_CXX $p"
18863 if test -z "$postdep_objects_CXX"; then
18864 postdep_objects_CXX
="$p"
18866 postdep_objects_CXX
="$postdep_objects_CXX $p"
18871 *) ;; # Ignore the rest.
18879 echo "libtool.m4: error: problem compiling CXX test program"
18882 $RM -f confest.
$objext
18884 # PORTME: override above test on systems where it is broken
18887 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18888 # hack all around it, let's just trust "g++" to DTRT.
18889 predep_objects_CXX
=
18890 postdep_objects_CXX
=
18895 case `$CC -V 2>&1 | sed 5q` in
18899 # The more standards-conforming stlport4 library is
18900 # incompatible with the Cstd library. Avoid specifying
18901 # it if it's in CXXFLAGS. Ignore libCrun as
18902 # -library=stlport4 depends on it.
18903 case " $CXX $CXXFLAGS " in
18904 *" -library=stlport4 "*)
18905 solaris_use_stlport4
=yes
18909 if test "$solaris_use_stlport4" != yes; then
18910 postdeps_CXX
='-library=Cstd -library=Crun'
18917 case $cc_basename in
18919 # The more standards-conforming stlport4 library is
18920 # incompatible with the Cstd library. Avoid specifying
18921 # it if it's in CXXFLAGS. Ignore libCrun as
18922 # -library=stlport4 depends on it.
18923 case " $CXX $CXXFLAGS " in
18924 *" -library=stlport4 "*)
18925 solaris_use_stlport4
=yes
18929 # Adding this requires a known-good setup of shared libraries for
18930 # Sun compiler versions before 5.6, else PIC objects from an old
18931 # archive will be linked into the output, leading to subtle bugs.
18932 if test "$solaris_use_stlport4" != yes; then
18933 postdeps_CXX
='-library=Cstd -library=Crun'
18941 case " $postdeps_CXX " in
18942 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18944 compiler_lib_search_dirs_CXX
=
18945 if test -n "${compiler_lib_search_path_CXX}"; then
18946 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18979 lt_prog_compiler_wl_CXX
=
18980 lt_prog_compiler_pic_CXX
=
18981 lt_prog_compiler_static_CXX
=
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18986 # C++ specific cases for pic, static, wl, etc.
18987 if test "$GXX" = yes; then
18988 lt_prog_compiler_wl_CXX
='-Wl,'
18989 lt_prog_compiler_static_CXX
='-static'
18993 # All AIX code is PIC.
18994 if test "$host_cpu" = ia64
; then
18995 # AIX 5 now supports IA64 processor
18996 lt_prog_compiler_static_CXX
='-Bstatic'
19003 # see comment about AmigaOS4 .so support
19004 lt_prog_compiler_pic_CXX
='-fPIC'
19007 # FIXME: we need at least 68020 code to build shared libraries, but
19008 # adding the `-m68020' flag to GCC prevents building anything better,
19010 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19015 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19016 # PIC is the default for these OSes.
19018 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19019 # This hack is so that the source file can tell whether it is being
19020 # built for inclusion in a dll (and should export symbols for example).
19021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19022 # (--disable-auto-import) libraries
19023 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19025 darwin
* | rhapsody
*)
19026 # PIC is the default on this platform
19027 # Common symbols not allowed in MH_DYLIB files
19028 lt_prog_compiler_pic_CXX
='-fno-common'
19031 # DJGPP does not support shared libraries at all
19032 lt_prog_compiler_pic_CXX
=
19035 # PIC is the default for Haiku.
19036 # The "-static" flag exists, but is broken.
19037 lt_prog_compiler_static_CXX
=
19040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19041 # Instead, we relocate shared libraries at runtime.
19044 if test -d /usr
/nec
; then
19045 lt_prog_compiler_pic_CXX
=-Kconform_pic
19049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19051 # sets the default TLS model and affects inlining.
19056 lt_prog_compiler_pic_CXX
='-fPIC'
19061 # QNX uses GNU C++, but need to define -shared option too, otherwise
19062 # it will coredump.
19063 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19066 lt_prog_compiler_pic_CXX
='-fPIC'
19072 # All AIX code is PIC.
19073 if test "$host_cpu" = ia64
; then
19074 # AIX 5 now supports IA64 processor
19075 lt_prog_compiler_static_CXX
='-Bstatic'
19077 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19081 case $cc_basename in
19083 # Green Hills C++ Compiler
19084 # _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"
19089 case $cc_basename in
19091 lt_prog_compiler_pic_CXX
='-KPIC'
19094 # Green Hills C++ Compiler
19095 lt_prog_compiler_pic_CXX
='-pic'
19101 freebsd
* | dragonfly
*)
19102 # FreeBSD uses GNU C++
19104 hpux9
* | hpux10
* | hpux11
*)
19105 case $cc_basename in
19107 lt_prog_compiler_wl_CXX
='-Wl,'
19108 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19109 if test "$host_cpu" != ia64
; then
19110 lt_prog_compiler_pic_CXX
='+Z'
19114 lt_prog_compiler_wl_CXX
='-Wl,'
19115 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19121 lt_prog_compiler_pic_CXX
='+Z'
19130 # This is c89, which is MS Visual C++ (no shared libs)
19131 # Anyone wants to do a port?
19133 irix5
* | irix6
* | nonstopux
*)
19134 case $cc_basename in
19136 lt_prog_compiler_wl_CXX
='-Wl,'
19137 lt_prog_compiler_static_CXX
='-non_shared'
19138 # CC pic flag -KPIC is the default.
19144 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19145 case $cc_basename in
19148 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19149 lt_prog_compiler_pic_CXX
='-fPIC'
19152 # old Intel C++ for x86_64 which still supported -KPIC.
19153 lt_prog_compiler_wl_CXX
='-Wl,'
19154 lt_prog_compiler_pic_CXX
='-KPIC'
19155 lt_prog_compiler_static_CXX
='-static'
19158 # Intel C++, used to be incompatible with GCC.
19159 # ICC 10 doesn't accept -KPIC any more.
19160 lt_prog_compiler_wl_CXX
='-Wl,'
19161 lt_prog_compiler_pic_CXX
='-fPIC'
19162 lt_prog_compiler_static_CXX
='-static'
19165 # Portland Group C++ compiler
19166 lt_prog_compiler_wl_CXX
='-Wl,'
19167 lt_prog_compiler_pic_CXX
='-fpic'
19168 lt_prog_compiler_static_CXX
='-Bstatic'
19172 # Make sure the PIC flag is empty. It appears that all Alpha
19173 # Linux and Compaq Tru64 Unix objects are PIC.
19174 lt_prog_compiler_pic_CXX
=
19175 lt_prog_compiler_static_CXX
='-non_shared'
19177 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19178 # IBM XL 8.0, 9.0 on PPC and BlueGene
19179 lt_prog_compiler_wl_CXX
='-Wl,'
19180 lt_prog_compiler_pic_CXX
='-qpic'
19181 lt_prog_compiler_static_CXX
='-qstaticlink'
19184 case `$CC -V 2>&1 | sed 5q` in
19187 lt_prog_compiler_pic_CXX
='-KPIC'
19188 lt_prog_compiler_static_CXX
='-Bstatic'
19189 lt_prog_compiler_wl_CXX
='-Qoption ld '
19200 case $cc_basename in
19202 lt_prog_compiler_pic_CXX
='-W c,exportall'
19211 # QNX uses GNU C++, but need to define -shared option too, otherwise
19212 # it will coredump.
19213 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19215 osf3
* | osf4
* | osf5
*)
19216 case $cc_basename in
19218 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19221 # Rational C++ 2.4.1
19222 lt_prog_compiler_pic_CXX
='-pic'
19225 # Digital/Compaq C++
19226 lt_prog_compiler_wl_CXX
='-Wl,'
19227 # Make sure the PIC flag is empty. It appears that all Alpha
19228 # Linux and Compaq Tru64 Unix objects are PIC.
19229 lt_prog_compiler_pic_CXX
=
19230 lt_prog_compiler_static_CXX
='-non_shared'
19239 case $cc_basename in
19241 # Sun C++ 4.2, 5.x and Centerline C++
19242 lt_prog_compiler_pic_CXX
='-KPIC'
19243 lt_prog_compiler_static_CXX
='-Bstatic'
19244 lt_prog_compiler_wl_CXX
='-Qoption ld '
19247 # Green Hills C++ Compiler
19248 lt_prog_compiler_pic_CXX
='-PIC'
19255 case $cc_basename in
19258 lt_prog_compiler_pic_CXX
='-pic'
19259 lt_prog_compiler_static_CXX
='-Bstatic'
19263 lt_prog_compiler_pic_CXX
='-pic'
19269 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19270 case $cc_basename in
19272 lt_prog_compiler_wl_CXX
='-Wl,'
19273 lt_prog_compiler_pic_CXX
='-KPIC'
19274 lt_prog_compiler_static_CXX
='-Bstatic'
19279 case $cc_basename in
19281 # NonStop-UX NCC 3.20
19282 lt_prog_compiler_pic_CXX
='-KPIC'
19291 lt_prog_compiler_can_build_shared_CXX
=no
19297 # For platforms which do not support PIC, -DPIC is meaningless:
19299 lt_prog_compiler_pic_CXX
=
19302 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19306 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19311 # Check to make sure the PIC flag actually works.
19313 if test -n "$lt_prog_compiler_pic_CXX"; then
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19315 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19316 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19317 $as_echo_n "(cached) " >&6
19319 lt_cv_prog_compiler_pic_works_CXX
=no
19320 ac_outfile
=conftest.
$ac_objext
19321 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19322 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19323 # Insert the option either (1) after the last *FLAGS variable, or
19324 # (2) before a word containing "conftest.", or (3) at the end.
19325 # Note that $ac_compile itself does not contain backslashes and begins
19326 # with a dollar sign (not a hyphen), so the echo should work correctly.
19327 # The option is referenced via a variable to avoid confusing sed.
19328 lt_compile
=`echo "$ac_compile" | $SED \
19329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19331 -e 's:$: $lt_compiler_flag:'`
19332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19333 (eval "$lt_compile" 2>conftest.err
)
19335 cat conftest.err
>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 if (exit $ac_status) && test -s "$ac_outfile"; then
19338 # The compiler can only warn and ignore the option if not recognized
19339 # So say no if there are warnings other than the usual output.
19340 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19341 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19342 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19343 lt_cv_prog_compiler_pic_works_CXX
=yes
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19350 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19352 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19353 case $lt_prog_compiler_pic_CXX in
19355 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19358 lt_prog_compiler_pic_CXX
=
19359 lt_prog_compiler_can_build_shared_CXX
=no
19367 # Check to make sure the static flag actually works.
19369 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19372 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19375 lt_cv_prog_compiler_static_works_CXX
=no
19376 save_LDFLAGS
="$LDFLAGS"
19377 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19378 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19379 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19380 # The linker can only warn and ignore the option if not recognized
19381 # So say no if there are warnings
19382 if test -s conftest.err
; then
19383 # Append any errors to the config.log.
19384 cat conftest.err
1>&5
19385 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19386 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19387 if diff conftest.exp conftest.er2
>/dev
/null
; then
19388 lt_cv_prog_compiler_static_works_CXX
=yes
19391 lt_cv_prog_compiler_static_works_CXX
=yes
19395 LDFLAGS
="$save_LDFLAGS"
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19399 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19401 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19404 lt_prog_compiler_static_CXX
=
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19412 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19413 $as_echo_n "(cached) " >&6
19415 lt_cv_prog_compiler_c_o_CXX
=no
19416 $RM -r conftest
2>/dev
/null
19420 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19422 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19423 # Insert the option either (1) after the last *FLAGS variable, or
19424 # (2) before a word containing "conftest.", or (3) at the end.
19425 # Note that $ac_compile itself does not contain backslashes and begins
19426 # with a dollar sign (not a hyphen), so the echo should work correctly.
19427 lt_compile
=`echo "$ac_compile" | $SED \
19428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19430 -e 's:$: $lt_compiler_flag:'`
19431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19432 (eval "$lt_compile" 2>out
/conftest.err
)
19434 cat out
/conftest.err
>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19438 # The compiler can only warn and ignore the option if not recognized
19439 # So say no if there are warnings
19440 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19441 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19442 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19443 lt_cv_prog_compiler_c_o_CXX
=yes
19448 # SGI C++ compiler will create directory out/ii_files/ for
19449 # template instantiation
19450 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19451 $RM out
/* && rmdir out
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19458 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19464 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19465 $as_echo_n "(cached) " >&6
19467 lt_cv_prog_compiler_c_o_CXX
=no
19468 $RM -r conftest
2>/dev
/null
19472 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19474 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19475 # Insert the option either (1) after the last *FLAGS variable, or
19476 # (2) before a word containing "conftest.", or (3) at the end.
19477 # Note that $ac_compile itself does not contain backslashes and begins
19478 # with a dollar sign (not a hyphen), so the echo should work correctly.
19479 lt_compile
=`echo "$ac_compile" | $SED \
19480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19482 -e 's:$: $lt_compiler_flag:'`
19483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19484 (eval "$lt_compile" 2>out
/conftest.err
)
19486 cat out
/conftest.err
>&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19490 # The compiler can only warn and ignore the option if not recognized
19491 # So say no if there are warnings
19492 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19493 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19494 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19495 lt_cv_prog_compiler_c_o_CXX
=yes
19500 # SGI C++ compiler will create directory out/ii_files/ for
19501 # template instantiation
19502 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19503 $RM out
/* && rmdir out
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19510 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19515 hard_links
="nottested"
19516 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19517 # do not overwrite the value of need_locks provided by the user
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19519 $as_echo_n "checking if we can lock with hard links... " >&6; }
19522 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19524 ln conftest.a conftest.b
2>&5 || hard_links
=no
19525 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19527 $as_echo "$hard_links" >&6; }
19528 if test "$hard_links" = no
; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19530 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19542 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19545 # If we're using GNU nm, then we don't want the "-C" option.
19546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19547 # Also, AIX nm treats weak defined symbols like other global defined
19548 # symbols, whereas GNU nm marks them as "W".
19549 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19550 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'
19552 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'
19556 export_symbols_cmds_CXX
="$ltdll_cmds"
19558 cygwin
* | mingw
* | cegcc
*)
19559 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'
19562 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19565 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19568 $as_echo "$ld_shlibs_CXX" >&6; }
19569 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19571 with_gnu_ld_CXX
=$with_gnu_ld
19579 # Do we need to explicitly link libc?
19581 case "x$archive_cmds_need_lc_CXX" in
19583 # Assume -lc should be added
19584 archive_cmds_need_lc_CXX
=yes
19586 if test "$enable_shared" = yes && test "$GCC" = yes; then
19587 case $archive_cmds_CXX in
19589 # FIXME: we may have to deal with multi-command sequences.
19592 # Test whether the compiler implicitly links with -lc since on some
19593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19594 # to ld, don't add -lc before -lgcc.
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19596 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19597 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19598 $as_echo_n "(cached) " >&6
19601 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19604 (eval $ac_compile) 2>&5
19606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19607 test $ac_status = 0; } 2>conftest.err
; then
19610 libobjs
=conftest.
$ac_objext
19612 wl
=$lt_prog_compiler_wl_CXX
19613 pic_flag
=$lt_prog_compiler_pic_CXX
19619 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19620 allow_undefined_flag_CXX
=
19621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19622 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19625 test $ac_status = 0; }
19627 lt_cv_archive_cmds_need_lc_CXX
=no
19629 lt_cv_archive_cmds_need_lc_CXX
=yes
19631 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19633 cat conftest.err
1>&5
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19639 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19640 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19713 library_names_spec
=
19714 libname_spec
='lib$name'
19718 postuninstall_cmds
=
19722 shlibpath_overrides_runpath
=unknown
19724 dynamic_linker
="$host_os ld.so"
19725 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19726 need_lib_prefix
=unknown
19727 hardcode_into_libs
=no
19729 # when you set need_version to no, make sure it does not cause -set_version
19730 # flags to be left without arguments
19731 need_version
=unknown
19736 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19737 shlibpath_var
=LIBPATH
19739 # AIX 3 has no versioning support, so we append a major version to the name.
19740 soname_spec
='${libname}${release}${shared_ext}$major'
19747 hardcode_into_libs
=yes
19748 if test "$host_cpu" = ia64
; then
19749 # AIX 5 supports IA64
19750 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19751 shlibpath_var
=LD_LIBRARY_PATH
19753 # With GCC up to 2.95.x, collect2 would create an import file
19754 # for dependence libraries. The import file would start with
19755 # the line `#! .'. This would cause the generated library to
19756 # depend on `.', always an invalid library. This was fixed in
19757 # development snapshots of GCC prior to 3.0.
19759 aix4 | aix4.
[01] | aix4.
[01].
*)
19760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19762 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19765 can_build_shared
=no
19769 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19770 # soname into executable. Probably we can add versioning support to
19771 # collect2, so additional links can be useful in future.
19772 if test "$aix_use_runtimelinking" = yes; then
19773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19774 # instead of lib<name>.a to let people know that these are not
19775 # typical AIX shared libraries.
19776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19778 # We preserve .a as extension for shared libraries through AIX4.2
19779 # and later when we are not doing run time linking.
19780 library_names_spec
='${libname}${release}.a $libname.a'
19781 soname_spec
='${libname}${release}${shared_ext}$major'
19783 shlibpath_var
=LIBPATH
19790 # Since July 2007 AmigaOS4 officially supports .so libraries.
19791 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19795 library_names_spec
='$libname.ixlibrary $libname.a'
19796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19797 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'
19803 library_names_spec
='${libname}${shared_ext}'
19804 dynamic_linker
="$host_os ld.so"
19805 shlibpath_var
=LIBRARY_PATH
19811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812 soname_spec
='${libname}${release}${shared_ext}$major'
19813 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19814 shlibpath_var
=LD_LIBRARY_PATH
19815 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19816 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19817 # the default ld.so.conf also contains /usr/contrib/lib and
19818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19819 # libtool to hard-code these into programs
19822 cygwin
* | mingw
* | pw32
* | cegcc
*)
19823 version_type
=windows
19828 case $GCC,$host_os in
19829 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19830 library_names_spec
='$libname.dll.a'
19831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19832 postinstall_cmds
='base_file=`basename \${file}`~
19833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19834 dldir=$destdir/`dirname \$dlpath`~
19835 test -d \$dldir || mkdir -p \$dldir~
19836 $install_prog $dir/$dlname \$dldir/$dlname~
19837 chmod a+x \$dldir/$dlname~
19838 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19839 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19841 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19842 dlpath=$dir/\$dldll~
19844 shlibpath_overrides_runpath
=yes
19848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19849 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19853 # MinGW DLLs use traditional 'lib' prefix
19854 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19857 # pw32 DLLs use 'pw' prefix rather than 'lib'
19858 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19864 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19867 dynamic_linker
='Win32 ld.exe'
19868 # FIXME: first we should search . and the directory the executable is in
19872 darwin
* | rhapsody
*)
19873 dynamic_linker
="$host_os dyld"
19874 version_type
=darwin
19877 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19878 soname_spec
='${libname}${release}${major}$shared_ext'
19879 shlibpath_overrides_runpath
=yes
19880 shlibpath_var
=DYLD_LIBRARY_PATH
19881 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19883 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19891 soname_spec
='${libname}${release}${shared_ext}$major'
19892 shlibpath_var
=LD_LIBRARY_PATH
19899 freebsd
* | dragonfly
*)
19900 # DragonFly does not have aout. When/if they implement a new
19901 # versioning mechanism, adjust this.
19902 if test -x /usr
/bin
/objformat
; then
19903 objformat
=`/usr/bin/objformat`
19906 freebsd
[123]*) objformat
=aout
;;
19907 *) objformat
=elf
;;
19910 version_type
=freebsd-
$objformat
19911 case $version_type in
19913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19918 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19922 shlibpath_var
=LD_LIBRARY_PATH
19925 shlibpath_overrides_runpath
=yes
19927 freebsd3.
[01]* | freebsdelf3.
[01]*)
19928 shlibpath_overrides_runpath
=yes
19929 hardcode_into_libs
=yes
19931 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19932 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19933 shlibpath_overrides_runpath
=no
19934 hardcode_into_libs
=yes
19936 *) # from 4.6 on, and DragonFly
19937 shlibpath_overrides_runpath
=yes
19938 hardcode_into_libs
=yes
19947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19948 soname_spec
='${libname}${release}${shared_ext}$major'
19949 shlibpath_var
=LD_LIBRARY_PATH
19950 hardcode_into_libs
=yes
19957 dynamic_linker
="$host_os runtime_loader"
19958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19959 soname_spec
='${libname}${release}${shared_ext}$major'
19960 shlibpath_var
=LIBRARY_PATH
19961 shlibpath_overrides_runpath
=yes
19962 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19963 hardcode_into_libs
=yes
19966 hpux9
* | hpux10
* | hpux11
*)
19967 # Give a soname corresponding to the major version so that dld.sl refuses to
19968 # link against other versions.
19975 hardcode_into_libs
=yes
19976 dynamic_linker
="$host_os dld.so"
19977 shlibpath_var
=LD_LIBRARY_PATH
19978 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19980 soname_spec
='${libname}${release}${shared_ext}$major'
19981 if test "X$HPUX_IA64_MODE" = X32
; then
19982 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19984 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19986 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19990 hardcode_into_libs
=yes
19991 dynamic_linker
="$host_os dld.sl"
19992 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19993 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995 soname_spec
='${libname}${release}${shared_ext}$major'
19996 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19997 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20001 dynamic_linker
="$host_os dld.sl"
20002 shlibpath_var
=SHLIB_PATH
20003 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005 soname_spec
='${libname}${release}${shared_ext}$major'
20008 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20009 postinstall_cmds
='chmod 555 $lib'
20010 # or fails outright, so override atomically:
20011 install_override_mode
=555
20018 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20019 soname_spec
='${libname}${release}${shared_ext}$major'
20020 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20021 shlibpath_var
=LD_LIBRARY_PATH
20022 shlibpath_overrides_runpath
=no
20023 hardcode_into_libs
=yes
20026 irix5
* | irix6
* | nonstopux
*)
20028 nonstopux
*) version_type
=nonstopux
;;
20030 if test "$lt_cv_prog_gnu_ld" = yes; then
20038 soname_spec
='${libname}${release}${shared_ext}$major'
20039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20041 irix5
* | nonstopux
*)
20042 libsuff
= shlibsuff
=
20045 case $LD in # libtool.m4 will add one of these switches to LD
20046 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20047 libsuff
= shlibsuff
= libmagic
=32-bit;;
20048 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20049 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20050 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20051 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20052 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20056 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20057 shlibpath_overrides_runpath
=no
20058 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20059 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20060 hardcode_into_libs
=yes
20063 # No shared lib support for Linux oldld, aout, or coff.
20064 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20068 # This must be Linux ELF.
20069 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20074 soname_spec
='${libname}${release}${shared_ext}$major'
20075 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20076 shlibpath_var
=LD_LIBRARY_PATH
20077 shlibpath_overrides_runpath
=no
20079 # Some binutils ld are patched to set DT_RUNPATH
20080 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20081 $as_echo_n "(cached) " >&6
20083 lt_cv_shlibpath_overrides_runpath
=no
20084 save_LDFLAGS
=$LDFLAGS
20085 save_libdir
=$libdir
20086 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20087 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20089 /* end confdefs.h. */
20099 if ac_fn_cxx_try_link
"$LINENO"; then :
20100 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20101 lt_cv_shlibpath_overrides_runpath
=yes
20104 rm -f core conftest.err conftest.
$ac_objext \
20105 conftest
$ac_exeext conftest.
$ac_ext
20106 LDFLAGS
=$save_LDFLAGS
20107 libdir
=$save_libdir
20111 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20113 # This implies no fast_install, which is unacceptable.
20114 # Some rework will be needed to allow for fast_install
20115 # before this can be enabled.
20116 hardcode_into_libs
=yes
20118 # Append ld.so.conf contents to the search path
20119 if test -f /etc
/ld.so.conf
; then
20120 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' ' '`
20121 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20124 # We used to test for /lib/ld.so.1 and disable shared libraries on
20125 # powerpc, because MkLinux only supported shared libraries with the
20126 # GNU dynamic linker. Since this was broken with cross compilers,
20127 # most powerpc-linux boxes support dynamic linking these days and
20128 # people can always --disable-shared, the test was removed, and we
20129 # assume the GNU/Linux dynamic linker is in use.
20130 dynamic_linker
='GNU/Linux ld.so'
20137 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20139 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20140 dynamic_linker
='NetBSD (a.out) ld.so'
20142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20143 soname_spec
='${libname}${release}${shared_ext}$major'
20144 dynamic_linker
='NetBSD ld.elf_so'
20146 shlibpath_var
=LD_LIBRARY_PATH
20147 shlibpath_overrides_runpath
=yes
20148 hardcode_into_libs
=yes
20153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154 shlibpath_var
=LD_LIBRARY_PATH
20155 shlibpath_overrides_runpath
=yes
20162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20163 soname_spec
='${libname}${release}${shared_ext}$major'
20164 shlibpath_var
=LD_LIBRARY_PATH
20165 shlibpath_overrides_runpath
=no
20166 hardcode_into_libs
=yes
20167 dynamic_linker
='ldqnx.so'
20172 sys_lib_dlsearch_path_spec
="/usr/lib"
20174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20176 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20177 *) need_version
=no
;;
20179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20180 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20181 shlibpath_var
=LD_LIBRARY_PATH
20182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20184 openbsd2.
[89] | openbsd2.
[89].
*)
20185 shlibpath_overrides_runpath
=no
20188 shlibpath_overrides_runpath
=yes
20192 shlibpath_overrides_runpath
=yes
20197 libname_spec
='$name'
20200 library_names_spec
='$libname${shared_ext} $libname.a'
20201 dynamic_linker
='OS/2 ld.exe'
20202 shlibpath_var
=LIBPATH
20205 osf3
* | osf4
* | osf5
*)
20209 soname_spec
='${libname}${release}${shared_ext}$major'
20210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20211 shlibpath_var
=LD_LIBRARY_PATH
20212 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20213 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225 soname_spec
='${libname}${release}${shared_ext}$major'
20226 shlibpath_var
=LD_LIBRARY_PATH
20227 shlibpath_overrides_runpath
=yes
20228 hardcode_into_libs
=yes
20229 # ldd complains unless libraries are executable
20230 postinstall_cmds
='chmod +x $lib'
20235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20236 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20237 shlibpath_var
=LD_LIBRARY_PATH
20238 shlibpath_overrides_runpath
=yes
20239 if test "$with_gnu_ld" = yes; then
20247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20248 soname_spec
='${libname}${release}${shared_ext}$major'
20249 shlibpath_var
=LD_LIBRARY_PATH
20250 case $host_vendor in
20252 shlibpath_overrides_runpath
=no
20254 runpath_var
=LD_RUN_PATH
20262 shlibpath_overrides_runpath
=no
20263 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20269 if test -d /usr
/nec
;then
20271 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20272 soname_spec
='$libname${shared_ext}.$major'
20273 shlibpath_var
=LD_LIBRARY_PATH
20277 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20278 version_type
=freebsd-elf
20281 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20282 soname_spec
='${libname}${release}${shared_ext}$major'
20283 shlibpath_var
=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath
=yes
20285 hardcode_into_libs
=yes
20286 if test "$with_gnu_ld" = yes; then
20287 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20289 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20292 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20296 sys_lib_dlsearch_path_spec
='/usr/lib'
20300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20305 shlibpath_var
=LD_LIBRARY_PATH
20306 shlibpath_overrides_runpath
=no
20307 hardcode_into_libs
=yes
20312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313 soname_spec
='${libname}${release}${shared_ext}$major'
20314 shlibpath_var
=LD_LIBRARY_PATH
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20322 $as_echo "$dynamic_linker" >&6; }
20323 test "$dynamic_linker" = no
&& can_build_shared
=no
20325 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20326 if test "$GCC" = yes; then
20327 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20330 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20331 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20333 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20334 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20375 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20376 hardcode_action_CXX
=
20377 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20378 test -n "$runpath_var_CXX" ||
20379 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20381 # We can hardcode non-existent directories.
20382 if test "$hardcode_direct_CXX" != no
&&
20383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20384 # have to relink, otherwise we might link with an installed library
20385 # when we should be linking with a yet-to-be-installed one
20386 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20387 test "$hardcode_minus_L_CXX" != no
; then
20388 # Linking always hardcodes the temporary library directory.
20389 hardcode_action_CXX
=relink
20391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20392 hardcode_action_CXX
=immediate
20395 # We cannot hardcode anything, or else we can only hardcode existing
20397 hardcode_action_CXX
=unsupported
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20400 $as_echo "$hardcode_action_CXX" >&6; }
20402 if test "$hardcode_action_CXX" = relink ||
20403 test "$inherit_rpath_CXX" = yes; then
20404 # Fast installation is not supported
20405 enable_fast_install
=no
20406 elif test "$shlibpath_overrides_runpath" = yes ||
20407 test "$enable_shared" = no
; then
20408 # Fast installation is not necessary
20409 enable_fast_install
=needless
20418 fi # test -n "$compiler"
20424 with_gnu_ld
=$lt_save_with_gnu_ld
20425 lt_cv_path_LDCXX
=$lt_cv_path_LD
20426 lt_cv_path_LD
=$lt_save_path_LD
20427 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20428 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20429 fi # test "$_lt_caught_CXX_error" != yes
20432 ac_cpp
='$CPP $CPPFLAGS'
20433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20452 # Only expand once:
20458 # Identify the assembler which will work hand-in-glove with the newly
20459 # built GCC, so that we can examine its features. This is the assembler
20460 # which will be driven by the driver program.
20462 # If build != host, and we aren't building gas in-tree, we identify a
20463 # build->target assembler and hope that it will have the same features
20464 # as the host->target assembler we'll be using.
20465 gcc_cv_gas_major_version
=
20466 gcc_cv_gas_minor_version
=
20467 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20469 if test "${gcc_cv_as+set}" = set; then :
20473 if test -x "$DEFAULT_ASSEMBLER"; then
20474 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20475 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20476 && test -f ..
/gas
/Makefile \
20477 && test x
$build = x
$host; then
20478 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20479 elif test -x as
$build_exeext; then
20480 # Build using assembler in the current directory.
20481 gcc_cv_as
=.
/as
$build_exeext
20482 elif test -x $AS_FOR_TARGET; then
20483 gcc_cv_as
="$AS_FOR_TARGET"
20485 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20486 set dummy
$AS_FOR_TARGET; ac_word
=$2
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20488 $as_echo_n "checking for $ac_word... " >&6; }
20489 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20490 $as_echo_n "(cached) " >&6
20494 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20498 for as_dir
in $PATH
20501 test -z "$as_dir" && as_dir
=.
20502 for ac_exec_ext
in '' $ac_executable_extensions; do
20503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20504 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20515 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20516 if test -n "$gcc_cv_as"; then
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20518 $as_echo "$gcc_cv_as" >&6; }
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20521 $as_echo "no" >&6; }
20528 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20530 case "$ORIGINAL_AS_FOR_TARGET" in
20531 .
/as | .
/as
$build_exeext) ;;
20532 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20537 $as_echo_n "checking what assembler to use... " >&6; }
20538 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20539 # Single tree build which includes gas. We want to prefer it
20540 # over whatever linker top-level may have detected, since
20541 # we'll use what we're building after installation anyway.
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20543 $as_echo "newly built gas" >&6; }
20545 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20546 for f
in $gcc_cv_as_bfd_srcdir/configure \
20547 $gcc_cv_as_gas_srcdir/configure \
20548 $gcc_cv_as_gas_srcdir/configure.
in \
20549 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20550 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20551 if test x
$gcc_cv_gas_version != x
; then
20555 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20556 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20557 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20558 case $gcc_cv_gas_patch_version in
20559 "") gcc_cv_gas_patch_version
="0" ;;
20561 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20562 + $gcc_cv_gas_minor_version \) \* 1000 \
20563 + $gcc_cv_gas_patch_version`
20565 in_tree_gas_is_elf
=no
20566 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20567 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20568 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20570 in_tree_gas_is_elf
=yes
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20574 $as_echo "$gcc_cv_as" >&6; }
20578 # Identify the linker which will work hand-in-glove with the newly
20579 # built GCC, so that we can examine its features. This is the linker
20580 # which will be driven by the driver program.
20582 # If build != host, and we aren't building gas in-tree, we identify a
20583 # build->target linker and hope that it will have the same features
20584 # as the host->target linker we'll be using.
20585 gcc_cv_gld_major_version
=
20586 gcc_cv_gld_minor_version
=
20587 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20588 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20590 if test "${gcc_cv_ld+set}" = set; then :
20594 if test -x "$DEFAULT_LINKER"; then
20595 gcc_cv_ld
="$DEFAULT_LINKER"
20596 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20597 && test -f ..
/ld
/Makefile \
20598 && test x
$build = x
$host; then
20599 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20600 elif test -x collect-ld
$build_exeext; then
20601 # Build using linker in the current directory.
20602 gcc_cv_ld
=.
/collect-ld
$build_exeext
20603 elif test -x $LD_FOR_TARGET; then
20604 gcc_cv_ld
="$LD_FOR_TARGET"
20606 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20607 set dummy
$LD_FOR_TARGET; ac_word
=$2
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20609 $as_echo_n "checking for $ac_word... " >&6; }
20610 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20615 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20619 for as_dir
in $PATH
20622 test -z "$as_dir" && as_dir
=.
20623 for ac_exec_ext
in '' $ac_executable_extensions; do
20624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20625 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20636 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20637 if test -n "$gcc_cv_ld"; then
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20639 $as_echo "$gcc_cv_ld" >&6; }
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 $as_echo "no" >&6; }
20649 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20650 PLUGIN_LD
=`basename $gcc_cv_ld`
20652 # Check whether --with-plugin-ld was given.
20653 if test "${with_plugin_ld+set}" = set; then :
20654 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20655 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20656 PLUGIN_LD
="$withval"
20662 cat >>confdefs.h
<<_ACEOF
20663 #define PLUGIN_LD "$PLUGIN_LD"
20667 # Check to see if we are using gold instead of ld
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20669 $as_echo_n "checking whether we are using gold... " >&6; }
20671 if test x
$gcc_cv_ld != x
; then
20672 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
20673 |
grep "GNU gold" > /dev
/null
; then
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20678 $as_echo "$ld_is_gold" >&6; }
20680 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20682 case "$ORIGINAL_LD_FOR_TARGET" in
20683 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20684 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20689 $as_echo_n "checking what linker to use... " >&6; }
20690 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20691 # Single tree build which includes ld. We want to prefer it
20692 # over whatever linker top-level may have detected, since
20693 # we'll use what we're building after installation anyway.
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20695 $as_echo "newly built ld" >&6; }
20697 in_tree_ld_is_elf
=no
20698 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20699 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20700 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20701 in_tree_ld_is_elf
=yes
20703 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
20705 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20706 if test x
$gcc_cv_gld_version != x
; then
20710 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20711 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20714 $as_echo "$gcc_cv_ld" >&6; }
20718 # Figure out what nm we will be using.
20719 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20720 if test "${gcc_cv_nm+set}" = set; then :
20724 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20725 && test -f ..
/binutils
/Makefile \
20726 && test x
$build = x
$host; then
20727 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20728 elif test -x nm
$build_exeext; then
20729 gcc_cv_nm
=.
/nm
$build_exeext
20730 elif test -x $NM_FOR_TARGET; then
20731 gcc_cv_nm
="$NM_FOR_TARGET"
20733 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20734 set dummy
$NM_FOR_TARGET; ac_word
=$2
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20736 $as_echo_n "checking for $ac_word... " >&6; }
20737 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20738 $as_echo_n "(cached) " >&6
20742 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20746 for as_dir
in $PATH
20749 test -z "$as_dir" && as_dir
=.
20750 for ac_exec_ext
in '' $ac_executable_extensions; do
20751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20752 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20763 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20764 if test -n "$gcc_cv_nm"; then
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20766 $as_echo "$gcc_cv_nm" >&6; }
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20769 $as_echo "no" >&6; }
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20777 $as_echo_n "checking what nm to use... " >&6; }
20778 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20779 # Single tree build which includes binutils.
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20781 $as_echo "newly built nm" >&6; }
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20785 $as_echo "$gcc_cv_nm" >&6; }
20789 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20791 case "$ORIGINAL_NM_FOR_TARGET" in
20792 .
/nm | .
/nm
$build_exeext) ;;
20793 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20798 # Figure out what objdump we will be using.
20799 if test "${gcc_cv_objdump+set}" = set; then :
20803 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20804 && test -f ..
/binutils
/Makefile \
20805 && test x
$build = x
$host; then
20806 # Single tree build which includes binutils.
20807 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20808 elif test -x objdump
$build_exeext; then
20809 gcc_cv_objdump
=.
/objdump
$build_exeext
20810 elif test -x $OBJDUMP_FOR_TARGET; then
20811 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20813 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20814 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20816 $as_echo_n "checking for $ac_word... " >&6; }
20817 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20818 $as_echo_n "(cached) " >&6
20820 case $gcc_cv_objdump in
20822 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20826 for as_dir
in $PATH
20829 test -z "$as_dir" && as_dir
=.
20830 for ac_exec_ext
in '' $ac_executable_extensions; do
20831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20832 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20843 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20844 if test -n "$gcc_cv_objdump"; then
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20846 $as_echo "$gcc_cv_objdump" >&6; }
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20849 $as_echo "no" >&6; }
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20857 $as_echo_n "checking what objdump to use... " >&6; }
20858 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20859 # Single tree build which includes binutils.
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20861 $as_echo "newly built objdump" >&6; }
20862 elif test x
$gcc_cv_objdump = x
; then
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20864 $as_echo "not found" >&6; }
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20867 $as_echo "$gcc_cv_objdump" >&6; }
20870 # Figure out what readelf we will be using.
20871 if test "${gcc_cv_readelf+set}" = set; then :
20875 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20876 && test -f ..
/binutils
/Makefile \
20877 && test x
$build = x
$host; then
20878 # Single tree build which includes binutils.
20879 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20880 elif test -x readelf
$build_exeext; then
20881 gcc_cv_readelf
=.
/readelf
$build_exeext
20883 # Extract the first word of "readelf", so it can be a program name with args.
20884 set dummy readelf
; ac_word
=$2
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20886 $as_echo_n "checking for $ac_word... " >&6; }
20887 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20888 $as_echo_n "(cached) " >&6
20890 case $gcc_cv_readelf in
20892 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20896 for as_dir
in $PATH
20899 test -z "$as_dir" && as_dir
=.
20900 for ac_exec_ext
in '' $ac_executable_extensions; do
20901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20902 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20913 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20914 if test -n "$gcc_cv_readelf"; then
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20916 $as_echo "$gcc_cv_readelf" >&6; }
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20919 $as_echo "no" >&6; }
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20927 $as_echo_n "checking what readelf to use... " >&6; }
20928 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20929 # Single tree build which includes binutils.
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20931 $as_echo "newly built readelf" >&6; }
20932 elif test x
$gcc_cv_readelf = x
; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20934 $as_echo "not found" >&6; }
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20937 $as_echo "$gcc_cv_readelf" >&6; }
20940 # Figure out what assembler alignment features are present.
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20942 $as_echo_n "checking assembler flags... " >&6; }
20943 if test "${gcc_cv_as_flags+set}" = set; then :
20944 $as_echo_n "(cached) " >&6
20947 i
[34567]86-*-linux*)
20948 gcc_cv_as_flags
="--32"
20951 gcc_cv_as_flags
=" "
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20956 $as_echo "$gcc_cv_as_flags" >&6; }
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20959 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20960 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20961 $as_echo_n "(cached) " >&6
20963 gcc_cv_as_balign_and_p2align
=no
20964 if test $in_tree_gas = yes; then
20965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20966 then gcc_cv_as_balign_and_p2align
=yes
20968 elif test x
$gcc_cv_as != x
; then
20970 .p2align 2' > conftest.s
20971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20973 (eval $ac_try) 2>&5
20975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20976 test $ac_status = 0; }; }
20978 gcc_cv_as_balign_and_p2align
=yes
20980 echo "configure: failed program was" >&5
20983 rm -f conftest.o conftest.s
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20987 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20988 if test $gcc_cv_as_balign_and_p2align = yes; then
20990 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20995 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20996 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20997 $as_echo_n "(cached) " >&6
20999 gcc_cv_as_max_skip_p2align
=no
21000 if test $in_tree_gas = yes; then
21001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21002 then gcc_cv_as_max_skip_p2align
=yes
21004 elif test x
$gcc_cv_as != x
; then
21005 echo '.p2align 4,,7' > conftest.s
21006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21008 (eval $ac_try) 2>&5
21010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21011 test $ac_status = 0; }; }
21013 gcc_cv_as_max_skip_p2align
=yes
21015 echo "configure: failed program was" >&5
21018 rm -f conftest.o conftest.s
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21022 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21023 if test $gcc_cv_as_max_skip_p2align = yes; then
21025 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21030 $as_echo_n "checking assembler for .literal16... " >&6; }
21031 if test "${gcc_cv_as_literal16+set}" = set; then :
21032 $as_echo_n "(cached) " >&6
21034 gcc_cv_as_literal16
=no
21035 if test $in_tree_gas = yes; then
21036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21037 then gcc_cv_as_literal16
=yes
21039 elif test x
$gcc_cv_as != x
; then
21040 echo '.literal16' > conftest.s
21041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21043 (eval $ac_try) 2>&5
21045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21046 test $ac_status = 0; }; }
21048 gcc_cv_as_literal16
=yes
21050 echo "configure: failed program was" >&5
21053 rm -f conftest.o conftest.s
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21057 $as_echo "$gcc_cv_as_literal16" >&6; }
21058 if test $gcc_cv_as_literal16 = yes; then
21060 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21065 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21066 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21067 $as_echo_n "(cached) " >&6
21069 gcc_cv_as_subsection_m1
=no
21070 if test $in_tree_gas = yes; then
21071 if test $in_tree_gas_is_elf = yes \
21072 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21073 then gcc_cv_as_subsection_m1
=yes
21075 elif test x
$gcc_cv_as != x
; then
21076 echo 'conftest_label1: .word 0
21078 conftest_label2: .word 0
21079 .previous' > conftest.s
21080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21082 (eval $ac_try) 2>&5
21084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21085 test $ac_status = 0; }; }
21087 if test x
$gcc_cv_nm != x
; then
21088 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21089 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21090 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21092 else gcc_cv_as_subsection_m1
=yes
21094 rm -f conftest.nm1 conftest.nm2
21097 echo "configure: failed program was" >&5
21100 rm -f conftest.o conftest.s
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21104 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21105 if test $gcc_cv_as_subsection_m1 = yes; then
21107 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21112 $as_echo_n "checking assembler for .weak... " >&6; }
21113 if test "${gcc_cv_as_weak+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21117 if test $in_tree_gas = yes; then
21118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21119 then gcc_cv_as_weak
=yes
21121 elif test x
$gcc_cv_as != x
; then
21122 echo ' .weak foobar' > conftest.s
21123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21125 (eval $ac_try) 2>&5
21127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21128 test $ac_status = 0; }; }
21132 echo "configure: failed program was" >&5
21135 rm -f conftest.o conftest.s
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21139 $as_echo "$gcc_cv_as_weak" >&6; }
21140 if test $gcc_cv_as_weak = yes; then
21142 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21147 $as_echo_n "checking assembler for .weakref... " >&6; }
21148 if test "${gcc_cv_as_weakref+set}" = set; then :
21149 $as_echo_n "(cached) " >&6
21151 gcc_cv_as_weakref
=no
21152 if test $in_tree_gas = yes; then
21153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21154 then gcc_cv_as_weakref
=yes
21156 elif test x
$gcc_cv_as != x
; then
21157 echo ' .weakref foobar, barfnot' > conftest.s
21158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21160 (eval $ac_try) 2>&5
21162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21163 test $ac_status = 0; }; }
21165 gcc_cv_as_weakref
=yes
21167 echo "configure: failed program was" >&5
21170 rm -f conftest.o conftest.s
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21174 $as_echo "$gcc_cv_as_weakref" >&6; }
21175 if test $gcc_cv_as_weakref = yes; then
21177 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21182 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21183 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21184 $as_echo_n "(cached) " >&6
21186 gcc_cv_as_nsubspa_comdat
=no
21187 if test $in_tree_gas = yes; then
21188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21189 then gcc_cv_as_nsubspa_comdat
=yes
21191 elif test x
$gcc_cv_as != x
; then
21192 echo ' .SPACE $TEXT$
21193 .NSUBSPA $CODE$,COMDAT' > conftest.s
21194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21196 (eval $ac_try) 2>&5
21198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21199 test $ac_status = 0; }; }
21201 gcc_cv_as_nsubspa_comdat
=yes
21203 echo "configure: failed program was" >&5
21206 rm -f conftest.o conftest.s
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21210 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21211 if test $gcc_cv_as_nsubspa_comdat = yes; then
21213 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21217 # .hidden needs to be supported in both the assembler and the linker,
21218 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21219 # This is irritatingly difficult to feature test for; we have to check the
21220 # date string after the version number. If we've got an in-tree
21221 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21223 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21225 $as_echo_n "checking assembler for .hidden... " >&6; }
21226 if test "${gcc_cv_as_hidden+set}" = set; then :
21227 $as_echo_n "(cached) " >&6
21229 gcc_cv_as_hidden
=no
21230 if test $in_tree_gas = yes; then
21231 if test $in_tree_gas_is_elf = yes \
21232 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21233 then gcc_cv_as_hidden
=yes
21235 elif test x
$gcc_cv_as != x
; then
21236 echo ' .hidden foobar
21237 foobar:' > conftest.s
21238 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21240 (eval $ac_try) 2>&5
21242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21243 test $ac_status = 0; }; }
21245 gcc_cv_as_hidden
=yes
21247 echo "configure: failed program was" >&5
21250 rm -f conftest.o conftest.s
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21254 $as_echo "$gcc_cv_as_hidden" >&6; }
21257 if test $in_tree_ld != yes ; then
21258 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21259 if test x
"$ld_is_gold" = xyes
; then
21260 gcc_cv_ld_hidden
=yes
21261 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21262 ld_vers
=`echo $ld_ver | sed -n \
21263 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21264 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'`
21265 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21266 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21267 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21269 case "${target}" in
21272 # Solaris 2 ld -V output looks like this for a regular version:
21274 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21276 # but test versions add stuff at the end:
21278 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21280 ld_ver
=`$gcc_cv_ld -V 2>&1`
21281 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21282 ld_vers
=`echo $ld_ver | sed -n \
21283 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21284 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21285 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21293 $as_echo_n "checking linker for .hidden support... " >&6; }
21294 if test "${gcc_cv_ld_hidden+set}" = set; then :
21295 $as_echo_n "(cached) " >&6
21297 if test $in_tree_ld = yes ; then
21298 gcc_cv_ld_hidden
=no
21299 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 \
21300 && test $in_tree_ld_is_elf = yes; then
21301 gcc_cv_ld_hidden
=yes
21304 gcc_cv_ld_hidden
=yes
21305 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21306 if test 0"$ld_date" -lt 20020404; then
21307 if test -n "$ld_date"; then
21308 # If there was date string, but was earlier than 2002-04-04, fail
21309 gcc_cv_ld_hidden
=no
21310 elif test -z "$ld_vers"; then
21311 # If there was no date string nor ld version number, something is wrong
21312 gcc_cv_ld_hidden
=no
21314 test -z "$ld_vers_patch" && ld_vers_patch
=0
21315 if test "$ld_vers_major" -lt 2; then
21316 gcc_cv_ld_hidden
=no
21317 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21318 gcc_cv_ld_hidden
="no"
21319 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21320 gcc_cv_ld_hidden
=no
21325 case "${target}" in
21326 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21327 gcc_cv_ld_hidden
=yes
21329 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21330 gcc_cv_ld_hidden
=yes
21333 gcc_cv_ld_hidden
=no
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21340 $as_echo "$gcc_cv_ld_hidden" >&6; }
21341 libgcc_visibility
=no
21344 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21345 libgcc_visibility
=yes
21347 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21352 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21353 gcc_cv_ld_ro_rw_mix
=unknown
21354 if test $in_tree_ld = yes ; then
21355 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 \
21356 && test $in_tree_ld_is_elf = yes; then
21357 gcc_cv_ld_ro_rw_mix
=read-write
21359 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21360 echo '.section myfoosect, "a"' > conftest1.s
21361 echo '.section myfoosect, "aw"' > conftest2.s
21362 echo '.byte 1' >> conftest2.s
21363 echo '.section myfoosect, "a"' > conftest3.s
21364 echo '.byte 0' >> conftest3.s
21365 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21366 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21367 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21368 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21369 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21370 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21371 | sed -e '/myfoosect/!d' -e N`
21372 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21373 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21374 gcc_cv_ld_ro_rw_mix
=read-only
21376 gcc_cv_ld_ro_rw_mix
=read-write
21380 rm -f conftest.
* conftest
[123].
*
21382 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21384 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21388 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21390 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21392 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21393 if test "${gcc_cv_as_leb128+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21396 gcc_cv_as_leb128
=no
21397 if test $in_tree_gas = yes; then
21398 if test $in_tree_gas_is_elf = yes \
21399 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21400 then gcc_cv_as_leb128
=yes
21402 elif test x
$gcc_cv_as != x
; then
21409 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21411 (eval $ac_try) 2>&5
21413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21414 test $ac_status = 0; }; }
21416 # GAS versions before 2.11 do not support uleb128,
21417 # despite appearing to.
21418 # ??? There exists an elf-specific test that will crash
21419 # the assembler. Perhaps it's better to figure out whether
21420 # arbitrary sections are supported and try the test.
21421 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21422 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21423 as_vers
=`echo $as_ver | sed -n \
21424 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21425 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21426 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21427 if test $as_major -eq 2 && test $as_minor -lt 11
21429 else gcc_cv_as_leb128
=yes
21433 echo "configure: failed program was" >&5
21436 rm -f conftest.o conftest.s
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21440 $as_echo "$gcc_cv_as_leb128" >&6; }
21441 if test $gcc_cv_as_leb128 = yes; then
21443 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21447 # Check if we have assembler support for unwind directives.
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21449 $as_echo_n "checking assembler for cfi directives... " >&6; }
21450 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21451 $as_echo_n "(cached) " >&6
21453 gcc_cv_as_cfi_directive
=no
21454 if test x
$gcc_cv_as != x
; then
21460 .cfi_escape 1, 2, 3, 4, 5
21461 .cfi_endproc' > conftest.s
21462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21464 (eval $ac_try) 2>&5
21466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21467 test $ac_status = 0; }; }
21471 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21472 # read-only and read-write sections, we need to make sure that the
21473 # assembler used emits read-write .eh_frame sections.
21474 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21475 if test "x$gcc_cv_objdump" != x
; then
21476 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21477 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21478 gcc_cv_as_cfi_directive
=no
21481 i?
86-*-solaris2.1
[0-9]*)
21482 # On Solaris/x86, make sure that GCC and gas agree on using
21483 # read-only .eh_frame sections for 64-bit.
21484 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21485 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21486 sed -e /.eh_frame
/!d
-e N | \
21487 grep READONLY
> /dev
/null
; then
21488 gcc_cv_as_cfi_directive
=yes
21490 gcc_cv_as_cfi_directive
=no
21494 gcc_cv_as_cfi_directive
=yes
21499 # no objdump, err on the side of caution
21500 gcc_cv_as_cfi_directive
=no
21503 gcc_cv_as_cfi_directive
=yes
21507 gcc_cv_as_cfi_directive
=yes
21511 echo "configure: failed program was" >&5
21514 rm -f conftest.o conftest.s
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21518 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21520 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21522 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21523 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21524 $as_echo_n "(cached) " >&6
21526 gcc_cv_as_cfi_advance_working
=no
21527 if test x
$gcc_cv_as != x
; then
21530 .cfi_adjust_cfa_offset 64
21532 .cfi_adjust_cfa_offset 128
21533 .cfi_endproc' > conftest.s
21534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21536 (eval $ac_try) 2>&5
21538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21539 test $ac_status = 0; }; }
21542 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21543 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21544 gcc_cv_as_cfi_advance_working
=yes
21548 echo "configure: failed program was" >&5
21551 rm -f conftest.o conftest.s
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21555 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21558 # no readelf, err on the side of caution
21559 gcc_cv_as_cfi_advance_working
=no
21562 cat >>confdefs.h
<<_ACEOF
21563 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21564 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21569 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21570 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21571 $as_echo_n "(cached) " >&6
21573 gcc_cv_as_cfi_personality_directive
=no
21574 if test x
$gcc_cv_as != x
; then
21577 .cfi_personality 0, symbol
21578 .cfi_endproc' > conftest.s
21579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21581 (eval $ac_try) 2>&5
21583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21584 test $ac_status = 0; }; }
21586 gcc_cv_as_cfi_personality_directive
=yes
21588 echo "configure: failed program was" >&5
21591 rm -f conftest.o conftest.s
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21595 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21598 cat >>confdefs.h
<<_ACEOF
21599 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21600 then echo 1; else echo 0; fi`
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21605 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21606 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21607 $as_echo_n "(cached) " >&6
21609 gcc_cv_as_cfi_sections_directive
=no
21610 if test x
$gcc_cv_as != x
; then
21612 .cfi_sections .debug_frame, .eh_frame
21614 .cfi_endproc' > conftest.s
21615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21617 (eval $ac_try) 2>&5
21619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21620 test $ac_status = 0; }; }
21622 gcc_cv_as_cfi_sections_directive
=yes
21624 echo "configure: failed program was" >&5
21627 rm -f conftest.o conftest.s
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21631 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21634 cat >>confdefs.h
<<_ACEOF
21635 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21636 then echo 1; else echo 0; fi`
21640 # GAS versions up to and including 2.11.0 may mis-optimize
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21643 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21644 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21645 $as_echo_n "(cached) " >&6
21647 gcc_cv_as_eh_frame
=no
21648 if test $in_tree_gas = yes; then
21649 if test $in_tree_gas_is_elf = yes \
21650 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21651 then gcc_cv_as_eh_frame
=yes
21653 elif test x
$gcc_cv_as != x
; then
21660 .section .eh_frame,"aw",@progbits
21662 .4byte .LECIE1-.LSCIE1
21676 .4byte .LEFDE1-.LASFDE1
21678 .4byte .LASFDE1-__FRAME_BEGIN__
21685 .LEFDE1:' > conftest.s
21686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21688 (eval $ac_try) 2>&5
21690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21691 test $ac_status = 0; }; }
21693 cat > conftest.lit
<<EOF
21694 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21695 0010 01000000 12000000 18000000 00000000 ................
21696 0020 08000000 04080000 0044 .........D
21698 cat > conftest.big
<<EOF
21699 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21700 0010 00000001 00000012 00000018 00000000 ................
21701 0020 00000008 04000000 0844 .........D
21703 # If the assembler didn't choke, and we can objdump,
21704 # and we got the correct data, then succeed.
21705 # The text in the here-document typically retains its unix-style line
21706 # endings, while the output of objdump will use host line endings.
21707 # Therefore, use diff -b for the comparisons.
21708 if test x
$gcc_cv_objdump != x \
21709 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21710 |
tail -3 > conftest.got \
21711 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21712 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21714 gcc_cv_as_eh_frame
=yes
21715 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; }; then
21721 gcc_cv_as_eh_frame
=buggy
21723 # Uh oh, what do we do now?
21724 gcc_cv_as_eh_frame
=no
21727 echo "configure: failed program was" >&5
21730 rm -f conftest.o conftest.s
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21734 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21737 if test $gcc_cv_as_eh_frame = buggy
; then
21739 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21744 $as_echo_n "checking assembler for section merging support... " >&6; }
21745 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21748 gcc_cv_as_shf_merge
=no
21749 if test $in_tree_gas = yes; then
21750 if test $in_tree_gas_is_elf = yes \
21751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21752 then gcc_cv_as_shf_merge
=yes
21754 elif test x
$gcc_cv_as != x
; then
21755 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21758 (eval $ac_try) 2>&5
21760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21761 test $ac_status = 0; }; }
21763 gcc_cv_as_shf_merge
=yes
21765 echo "configure: failed program was" >&5
21768 rm -f conftest.o conftest.s
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21772 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21774 if test $gcc_cv_as_shf_merge = no
; then
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21776 $as_echo_n "checking assembler for section merging support... " >&6; }
21777 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21778 $as_echo_n "(cached) " >&6
21780 gcc_cv_as_shf_merge
=no
21781 if test $in_tree_gas = yes; then
21782 if test $in_tree_gas_is_elf = yes \
21783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21784 then gcc_cv_as_shf_merge
=yes
21786 elif test x
$gcc_cv_as != x
; then
21787 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21790 (eval $ac_try) 2>&5
21792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793 test $ac_status = 0; }; }
21795 gcc_cv_as_shf_merge
=yes
21797 echo "configure: failed program was" >&5
21800 rm -f conftest.o conftest.s
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21804 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21808 cat >>confdefs.h
<<_ACEOF
21809 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21814 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21815 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21818 gcc_cv_as_comdat_group
=no
21819 if test $in_tree_gas = yes; then
21820 if test $in_tree_gas_is_elf = yes \
21821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21822 then gcc_cv_as_comdat_group
=yes
21824 elif test x
$gcc_cv_as != x
; then
21825 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21828 (eval $ac_try) 2>&5
21830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21831 test $ac_status = 0; }; }
21833 gcc_cv_as_comdat_group
=yes
21835 echo "configure: failed program was" >&5
21838 rm -f conftest.o conftest.s
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21842 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21844 if test $gcc_cv_as_comdat_group = yes; then
21845 gcc_cv_as_comdat_group_percent
=no
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21848 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21849 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21852 gcc_cv_as_comdat_group_percent
=no
21853 if test $in_tree_gas = yes; then
21854 if test $in_tree_gas_is_elf = yes \
21855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21856 then gcc_cv_as_comdat_group_percent
=yes
21858 elif test x
$gcc_cv_as != x
; then
21859 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21862 (eval $ac_try) 2>&5
21864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21865 test $ac_status = 0; }; }
21867 gcc_cv_as_comdat_group_percent
=yes
21869 echo "configure: failed program was" >&5
21872 rm -f conftest.o conftest.s
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21876 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21879 if test x
"$ld_is_gold" = xyes
; then
21881 elif test $in_tree_ld = yes ; then
21883 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 \
21884 && test $in_tree_ld_is_elf = yes; then
21887 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21889 if test 0"$ld_date" -lt 20050308; then
21890 if test -n "$ld_date"; then
21891 # If there was date string, but was earlier than 2005-03-08, fail
21893 elif test "$ld_vers_major" -lt 2; then
21895 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21900 case "${target}" in
21901 *-*-solaris2.1
[1-9]*)
21902 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21903 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21906 # FIXME: Maybe need to refine later when COMDAT group support with
21907 # Sun as is implemented.
21908 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
21915 # Assume linkers other than GNU ld don't support COMDAT group.
21920 # Allow overriding the automatic COMDAT group tests above.
21921 # Check whether --enable-comdat was given.
21922 if test "${enable_comdat+set}" = set; then :
21923 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
21926 if test $comdat_group = no
; then
21927 gcc_cv_as_comdat_group
=no
21928 gcc_cv_as_comdat_group_percent
=no
21931 cat >>confdefs.h
<<_ACEOF
21932 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21937 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21938 if test "${gcc_cv_as_discriminator+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21941 gcc_cv_as_discriminator
=no
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21944 then gcc_cv_as_discriminator
=yes
21946 elif test x
$gcc_cv_as != x
; then
21949 .loc 1 1 0 discriminator 1' > conftest.s
21950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21952 (eval $ac_try) 2>&5
21954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21955 test $ac_status = 0; }; }
21957 gcc_cv_as_discriminator
=yes
21959 echo "configure: failed program was" >&5
21962 rm -f conftest.o conftest.s
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21966 $as_echo "$gcc_cv_as_discriminator" >&6; }
21967 if test $gcc_cv_as_discriminator = yes; then
21969 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21973 # Thread-local storage - the check is heavily parameterized.
21981 .section ".tdata","awT",@progbits
21984 ldq $27,__tls_get_addr($29) !literal!1
21985 lda $16,foo($29) !tlsgd!1
21986 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21987 ldq $27,__tls_get_addr($29) !literal!2
21988 lda $16,foo($29) !tlsldm!2
21989 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21990 ldq $1,foo($29) !gotdtprel
21991 ldah $2,foo($29) !dtprelhi
21992 lda $3,foo($2) !dtprello
21993 lda $4,foo($29) !dtprel
21994 ldq $1,foo($29) !gottprel
21995 ldah $2,foo($29) !tprelhi
21996 lda $3,foo($2) !tprello
21997 lda $4,foo($29) !tprel'
22000 tls_as_opt
=--fatal-warnings
22002 cris-
*-*|crisv32-
*-*)
22004 .section ".tdata","awT",@progbits
22011 tls_as_opt
=--fatal-warnings
22015 .section ".tdata","awT",@progbits
22018 call #gettlsoff(x)'
22027 .section ".tdata","awT",@progbits
22031 addil LT%foo-$tls_gdidx$,gp
22032 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22035 addil LT%foo-$tls_ldidx$,gp
22037 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22038 addil LR%foo-$tls_dtpoff$,%ret0
22039 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22041 addil LT%foo-$tls_ieoff$,gp
22042 ldw RT%foo-$tls_ieoff$(%r1),%t2
22045 addil LR%foo-$tls_leoff$,%t1
22046 ldo RR%foo-$tls_leoff$(%r1),%t2'
22049 tls_as_opt
=--fatal-warnings
22053 .section ".tdata","awT",%progbits
22056 .word foo(gottpoff)
22066 i
[34567]86-*-solaris2.
[89]*)
22067 # TLS was introduced in the Solaris 9 4/04 release but
22068 # we do not enable it by default on Solaris 9 either.
22069 if test "x$enable_tls" = xyes
; then
22075 i
[34567]86-*-solaris2.
*)
22082 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22084 .section .tdata,"awt",@progbits'
22088 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22092 .section ".tdata","awT",@progbits'
22095 tls_as_opt
="--fatal-warnings"
22097 conftest_s
="$conftest_s
22101 leal foo@tlsgd(,%ebx,1), %eax
22102 leal foo@tlsldm(%ebx), %eax
22103 leal foo@dtpoff(%eax), %edx
22104 movl foo@gottpoff(%ebx), %eax
22105 subl foo@gottpoff(%ebx), %eax
22106 addl foo@gotntpoff(%ebx), %eax
22107 movl foo@indntpoff, %eax
22108 movl \$foo@tpoff, %eax
22109 subl \$foo@tpoff, %eax
22110 leal foo@ntpoff(%ecx), %eax"
22114 .section ".tdata","awT",@progbits
22118 leaq foo@TLSGD(%rip), %rdi
22119 leaq foo@TLSLD(%rip), %rdi
22120 leaq foo@DTPOFF(%rax), %rdx
22121 movq foo@GOTTPOFF(%rip), %rax
22122 movq $foo@TPOFF, %rax'
22125 tls_as_opt
=--fatal-warnings
22129 .section ".tdata","awT",@progbits
22132 addl r16 = @ltoff(@dtpmod(foo#)), gp
22133 addl r17 = @ltoff(@dtprel(foo#)), gp
22134 addl r18 = @ltoff(@tprel(foo#)), gp
22135 addl r19 = @dtprel(foo#), gp
22136 adds r21 = @dtprel(foo#), r13
22137 movl r23 = @dtprel(foo#)
22138 addl r20 = @tprel(foo#), gp
22139 adds r22 = @tprel(foo#), r13
22140 movl r24 = @tprel(foo#)'
22143 tls_as_opt
=--fatal-warnings
22147 .section .tdata,"awT",@progbits
22151 addiu $4, $28, %tlsgd(x)
22152 addiu $4, $28, %tlsldm(x)
22153 lui $4, %dtprel_hi(x)
22154 addiu $4, $4, %dtprel_lo(x)
22155 lw $4, %gottprel(x)($28)
22156 lui $4, %tprel_hi(x)
22157 addiu $4, $4, %tprel_lo(x)'
22160 tls_as_opt
='-32 --fatal-warnings'
22164 .section .tdata,"awT",@progbits
22169 move.l x@TLSGD(%a5),%a0
22170 move.l x@TLSLDM(%a5),%a0
22171 move.l x@TLSLDO(%a5),%a0
22172 move.l x@TLSIE(%a5),%a0
22173 move.l x@TLSLE(%a5),%a0'
22176 tls_as_opt
='--fatal-warnings'
22180 .section ".tdata","awT",@progbits
22188 addi 3,31,ld0@got@tlsgd
22190 addi 3,31,x1@got@tlsld
22193 addis 9,3,x2@dtprel@ha
22194 addi 9,9,x2@dtprel@l
22195 lwz 9,x3@got@tprel(31)
22198 addis 9,2,x2@tprel@ha
22199 addi 9,9,x2@tprel@l'
22202 tls_as_opt
="-a32 --fatal-warnings"
22206 .section ".tdata","awT",@progbits
22214 addi 3,2,ld0@got@tlsgd
22220 addi 3,2,x1@got@tlsld
22226 addis 9,3,x2@dtprel@ha
22227 addi 9,9,x2@dtprel@l
22230 ld 9,x3@got@dtprel(2)
22236 tls_as_opt
="-a64 --fatal-warnings"
22240 .section ".tdata","awT",@progbits
22247 .long foo@GOTNTPOFF
22248 .long foo@INDNTPOFF
22249 l %r1,foo@GOTNTPOFF(%r12)
22250 l %r1,0(%r1):tls_load:foo
22251 bas %r14,0(%r1,%r13):tls_gdcall:foo
22252 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22255 tls_as_opt
="-m31 --fatal-warnings"
22259 .section ".tdata","awT",@progbits
22266 .quad foo@GOTNTPOFF
22267 lg %r1,foo@GOTNTPOFF(%r12)
22268 larl %r1,foo@INDNTPOFF
22269 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22270 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22273 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22275 sh-
*-* | sh
[34]-*-*)
22277 .section ".tdata","awT",@progbits
22287 tls_as_opt
=--fatal-warnings
22291 sparc
*-sun-solaris2.
[89]*)
22292 # TLS was introduced in the Solaris 9 4/04 release but
22293 # we do not enable it by default on Solaris 9 either.
22294 if test "x$enable_tls" = xyes
; then
22300 sparc
*-sun-solaris2.
*)
22307 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22309 .section ".tdata",#alloc,#write,#tls
22312 sethi %tgd_hi22(foo), %o0
22313 add %o0, %tgd_lo10(foo), %o1
22314 add %l7, %o1, %o0, %tgd_add(foo)
22315 call __tls_get_addr, %tgd_call(foo)
22316 sethi %tldm_hi22(foo), %l1
22317 add %l1, %tldm_lo10(foo), %l2
22318 add %l7, %l2, %o0, %tldm_add(foo)
22319 call __tls_get_addr, %tldm_call(foo)
22320 sethi %tldo_hix22(foo), %l3
22321 xor %l3, %tldo_lox10(foo), %l4
22322 add %o0, %l4, %l5, %tldo_add(foo)
22323 sethi %tie_hi22(foo), %o3
22324 add %o3, %tie_lo10(foo), %o3
22325 ld [%l7 + %o3], %o2, %tie_ld(foo)
22326 add %g7, %o2, %o4, %tie_add(foo)
22327 sethi %tle_hix22(foo), %l1
22328 xor %l1, %tle_lox10(foo), %o5
22329 ld [%g7 + %o5], %o1'
22334 .section ".tdata","awT",@progbits
22337 sethi %tgd_hi22(foo), %o0
22338 add %o0, %tgd_lo10(foo), %o1
22339 add %l7, %o1, %o0, %tgd_add(foo)
22340 call __tls_get_addr, %tgd_call(foo)
22341 sethi %tldm_hi22(foo), %l1
22342 add %l1, %tldm_lo10(foo), %l2
22343 add %l7, %l2, %o0, %tldm_add(foo)
22344 call __tls_get_addr, %tldm_call(foo)
22345 sethi %tldo_hix22(foo), %l3
22346 xor %l3, %tldo_lox10(foo), %l4
22347 add %o0, %l4, %l5, %tldo_add(foo)
22348 sethi %tie_hi22(foo), %o3
22349 add %o3, %tie_lo10(foo), %o3
22350 ld [%l7 + %o3], %o2, %tie_ld(foo)
22351 add %g7, %o2, %o4, %tie_add(foo)
22352 sethi %tle_hix22(foo), %l1
22353 xor %l1, %tle_lox10(foo), %o5
22354 ld [%g7 + %o5], %o1'
22357 tls_as_opt
="-32 --fatal-warnings"
22362 .section ".tdata","awT",@progbits
22365 movi a8, foo@TLSFUNC
22366 movi a10, foo@TLSARG
22367 callx8.tls a8, foo@TLSCALL'
22373 if test "x$enable_tls" = xno
; then
22374 : # TLS explicitly disabled.
22375 elif test "x$enable_tls" = xyes
; then
22376 set_have_as_tls
=yes # TLS explicitly enabled.
22377 elif test -z "$tls_first_major"; then
22378 : # If we don't have a check, assume no support.
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22381 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22382 if test "${gcc_cv_as_tls+set}" = set; then :
22383 $as_echo_n "(cached) " >&6
22386 if test $in_tree_gas = yes; then
22387 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22388 then gcc_cv_as_tls
=yes
22390 elif test x
$gcc_cv_as != x
; then
22391 echo "$conftest_s" > conftest.s
22392 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22394 (eval $ac_try) 2>&5
22396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22397 test $ac_status = 0; }; }
22401 echo "configure: failed program was" >&5
22404 rm -f conftest.o conftest.s
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22408 $as_echo "$gcc_cv_as_tls" >&6; }
22409 if test $gcc_cv_as_tls = yes; then
22410 set_have_as_tls
=yes
22413 if test $set_have_as_tls = yes ; then
22415 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22419 # Target-specific assembler checks.
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22422 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22423 gcc_cv_ld_static_dynamic
=no
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; then
22426 gcc_cv_ld_static_dynamic
=yes
22428 elif test x
$gcc_cv_ld != x
; then
22429 # Check if linker supports -Bstatic/-Bdynamic option
22430 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22431 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22432 gcc_cv_ld_static_dynamic
=yes
22435 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22437 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22441 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22443 if test x
"$demangler_in_ld" = xyes
; then
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22445 $as_echo_n "checking linker --demangle support... " >&6; }
22446 gcc_cv_ld_demangle
=no
22447 if test $in_tree_ld = yes; then
22448 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 \
22449 gcc_cv_ld_demangle
=yes
22451 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22452 # Check if the GNU linker supports --demangle option
22453 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22454 gcc_cv_ld_demangle
=yes
22457 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22459 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22463 $as_echo "$gcc_cv_ld_demangle" >&6; }
22467 # All TARGET_ABI_OSF targets.
22468 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22470 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22471 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22472 $as_echo_n "(cached) " >&6
22474 gcc_cv_as_alpha_explicit_relocs
=no
22475 if test $in_tree_gas = yes; then
22476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22477 then gcc_cv_as_alpha_explicit_relocs
=yes
22479 elif test x
$gcc_cv_as != x
; then
22480 echo ' .set nomacro
22482 extbl $3, $2, $3 !lituse_bytoff!1
22483 ldq $2, a($29) !literal!1
22484 ldq $4, b($29) !literal!2
22485 ldq_u $3, 0($2) !lituse_base!1
22486 ldq $27, f($29) !literal!5
22487 jsr $26, ($27), f !lituse_jsr!5
22488 ldah $29, 0($26) !gpdisp!3
22489 lda $0, c($29) !gprel
22490 ldah $1, d($29) !gprelhigh
22491 lda $1, d($1) !gprellow
22492 lda $29, 0($29) !gpdisp!3' > conftest.s
22493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22495 (eval $ac_try) 2>&5
22497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22498 test $ac_status = 0; }; }
22500 gcc_cv_as_alpha_explicit_relocs
=yes
22502 echo "configure: failed program was" >&5
22505 rm -f conftest.o conftest.s
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22509 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22510 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22512 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22516 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22517 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22520 gcc_cv_as_alpha_jsrdirect_relocs
=no
22521 if test $in_tree_gas = yes; then
22522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22523 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22525 elif test x
$gcc_cv_as != x
; then
22526 echo ' .set nomacro
22528 ldq $27, a($29) !literal!1
22529 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22532 (eval $ac_try) 2>&5
22534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22535 test $ac_status = 0; }; }
22537 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22539 echo "configure: failed program was" >&5
22542 rm -f conftest.o conftest.s
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22546 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22547 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22549 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22556 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22557 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22558 $as_echo_n "(cached) " >&6
22560 gcc_cv_as_cris_no_mul_bug
=no
22561 if test $in_tree_gas = yes; then
22562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22563 then gcc_cv_as_cris_no_mul_bug
=yes
22565 elif test x
$gcc_cv_as != x
; then
22566 echo '.text' > conftest.s
22567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569 (eval $ac_try) 2>&5
22571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572 test $ac_status = 0; }; }
22574 gcc_cv_as_cris_no_mul_bug
=yes
22576 echo "configure: failed program was" >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22583 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22584 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22586 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22593 $as_echo_n "checking assembler for .register... " >&6; }
22594 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22597 gcc_cv_as_sparc_register_op
=no
22598 if test x
$gcc_cv_as != x
; then
22599 echo '.register %g2, #scratch' > conftest.s
22600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602 (eval $ac_try) 2>&5
22604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605 test $ac_status = 0; }; }
22607 gcc_cv_as_sparc_register_op
=yes
22609 echo "configure: failed program was" >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22616 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22617 if test $gcc_cv_as_sparc_register_op = yes; then
22619 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22624 $as_echo_n "checking assembler for -relax option... " >&6; }
22625 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22626 $as_echo_n "(cached) " >&6
22628 gcc_cv_as_sparc_relax
=no
22629 if test x
$gcc_cv_as != x
; then
22630 echo '.text' > conftest.s
22631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22633 (eval $ac_try) 2>&5
22635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22636 test $ac_status = 0; }; }
22638 gcc_cv_as_sparc_relax
=yes
22640 echo "configure: failed program was" >&5
22643 rm -f conftest.o conftest.s
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22647 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22648 if test $gcc_cv_as_sparc_relax = yes; then
22650 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22655 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22656 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22657 $as_echo_n "(cached) " >&6
22659 gcc_cv_as_sparc_gotdata_op
=no
22660 if test x
$gcc_cv_as != x
; then
22665 sethi %gdop_hix22(foo), %g1
22666 xor %g1, %gdop_lox10(foo), %g1
22667 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22670 (eval $ac_try) 2>&5
22672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22673 test $ac_status = 0; }; }
22675 if test x
$gcc_cv_ld != x \
22676 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22677 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
22678 if test x
$gcc_cv_objdump != x
; then
22679 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
22680 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
22681 gcc_cv_as_sparc_gotdata_op
=no
22683 gcc_cv_as_sparc_gotdata_op
=yes
22687 gcc_cv_as_sparc_gotdata_op
=yes
22692 echo "configure: failed program was" >&5
22695 rm -f conftest.o conftest.s
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22699 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22700 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22702 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22707 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22708 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22711 gcc_cv_as_sparc_ua_pcrel
=no
22712 if test x
$gcc_cv_as != x
; then
22719 .uaword %r_disp32(foo)' > conftest.s
22720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722 (eval $ac_try) 2>&5
22724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725 test $ac_status = 0; }; }
22727 if test x
$gcc_cv_ld != x \
22728 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22729 gcc_cv_as_sparc_ua_pcrel
=yes
22733 echo "configure: failed program was" >&5
22736 rm -f conftest.o conftest.s
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22740 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22741 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22743 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22747 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22748 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22749 $as_echo_n "(cached) " >&6
22751 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22752 if test x
$gcc_cv_as != x
; then
22756 .uaword %r_disp32(foo)
22757 .byte 0x32, 0x33, 0x34
22761 .skip 4' > conftest.s
22762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22764 (eval $ac_try) 2>&5
22766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22767 test $ac_status = 0; }; }
22769 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22770 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22771 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22772 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22773 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22774 |
grep 'DISP32' > /dev
/null
2>&1; then
22777 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22782 echo "configure: failed program was" >&5
22785 rm -f conftest.o conftest.s
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22789 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22790 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22792 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22796 fi # unaligned pcrel relocs
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22799 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22800 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22803 gcc_cv_as_sparc_offsetable_lo10
=no
22804 if test x
$gcc_cv_as != x
; then
22806 or %g1, %lo(ab) + 12, %g1
22807 or %g1, %lo(ab + 12), %g1' > conftest.s
22808 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22810 (eval $ac_try) 2>&5
22812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }; }
22815 if test x
$gcc_cv_objdump != x \
22816 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22817 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22818 gcc_cv_as_sparc_offsetable_lo10
=yes
22821 echo "configure: failed program was" >&5
22824 rm -f conftest.o conftest.s
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22828 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22829 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22831 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22836 i
[34567]86-*-* | x86_64-
*-*)
22839 # Full C++ conformance when using a shared libstdc++-v3 requires some
22840 # support from the Cygwin DLL, which in more recent versions exports
22841 # wrappers to aid in interposing and redirecting operators new, delete,
22842 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22843 # are configuring for a version of Cygwin that exports the wrappers.
22844 if test x
$host = x
$target; then
22845 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22846 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
22847 gcc_ac_cygwin_dll_wrappers
=yes
22849 gcc_ac_cygwin_dll_wrappers
=no
22853 # Can't check presence of libc functions during cross-compile, so
22854 # we just have to assume we're building for an up-to-date target.
22855 gcc_ac_cygwin_dll_wrappers
=yes
22858 cat >>confdefs.h
<<_ACEOF
22859 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22864 cygwin
* | pe | mingw32
*)
22865 # Recent binutils allows the three-operand form of ".comm" on PE. This
22866 # definition is used unconditionally to initialise the default state of
22867 # the target option variable that governs usage of the feature.
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22869 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22870 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22873 gcc_cv_as_comm_has_align
=no
22874 if test $in_tree_gas = yes; then
22875 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22876 then gcc_cv_as_comm_has_align
=yes
22878 elif test x
$gcc_cv_as != x
; then
22879 echo '.comm foo,1,32' > conftest.s
22880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22882 (eval $ac_try) 2>&5
22884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22885 test $ac_status = 0; }; }
22887 gcc_cv_as_comm_has_align
=yes
22889 echo "configure: failed program was" >&5
22892 rm -f conftest.o conftest.s
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22896 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22899 cat >>confdefs.h
<<_ACEOF
22900 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22903 # Used for DWARF 2 in PE
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22905 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22906 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22909 gcc_cv_as_ix86_pe_secrel32
=no
22910 if test $in_tree_gas = yes; then
22911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22912 then gcc_cv_as_ix86_pe_secrel32
=yes
22914 elif test x
$gcc_cv_as != x
; then
22918 .secrel32 foo' > conftest.s
22919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22921 (eval $ac_try) 2>&5
22923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22924 test $ac_status = 0; }; }
22926 if test x
$gcc_cv_ld != x \
22927 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22928 gcc_cv_as_ix86_pe_secrel32
=yes
22932 echo "configure: failed program was" >&5
22935 rm -f conftest.o conftest.s
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22939 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22940 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22942 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22949 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22950 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22951 $as_echo_n "(cached) " >&6
22953 gcc_cv_as_ix86_filds
=no
22954 if test x
$gcc_cv_as != x
; then
22955 echo 'filds mem; fists mem' > conftest.s
22956 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22958 (eval $ac_try) 2>&5
22960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22961 test $ac_status = 0; }; }
22963 gcc_cv_as_ix86_filds
=yes
22965 echo "configure: failed program was" >&5
22968 rm -f conftest.o conftest.s
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22972 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22973 if test $gcc_cv_as_ix86_filds = yes; then
22975 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22980 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22981 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22982 $as_echo_n "(cached) " >&6
22984 gcc_cv_as_ix86_fildq
=no
22985 if test x
$gcc_cv_as != x
; then
22986 echo 'fildq mem; fistpq mem' > conftest.s
22987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989 (eval $ac_try) 2>&5
22991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992 test $ac_status = 0; }; }
22994 gcc_cv_as_ix86_fildq
=yes
22996 echo "configure: failed program was" >&5
22999 rm -f conftest.o conftest.s
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23003 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23004 if test $gcc_cv_as_ix86_fildq = yes; then
23006 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23011 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23012 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23015 gcc_cv_as_ix86_cmov_sun_syntax
=no
23016 if test x
$gcc_cv_as != x
; then
23017 echo 'cmovl.l %edx, %eax' > conftest.s
23018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23020 (eval $ac_try) 2>&5
23022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023 test $ac_status = 0; }; }
23025 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23027 echo "configure: failed program was" >&5
23030 rm -f conftest.o conftest.s
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23034 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23035 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23037 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23042 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23043 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23046 gcc_cv_as_ix86_ffreep
=no
23047 if test x
$gcc_cv_as != x
; then
23048 echo 'ffreep %st(1)' > conftest.s
23049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23051 (eval $ac_try) 2>&5
23053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23054 test $ac_status = 0; }; }
23056 gcc_cv_as_ix86_ffreep
=yes
23058 echo "configure: failed program was" >&5
23061 rm -f conftest.o conftest.s
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23065 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23066 if test $gcc_cv_as_ix86_ffreep = yes; then
23068 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23073 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23074 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23077 gcc_cv_as_ix86_sahf
=no
23078 if test x
$gcc_cv_as != x
; then
23079 echo 'sahf' > conftest.s
23080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23082 (eval $ac_try) 2>&5
23084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23085 test $ac_status = 0; }; }
23087 gcc_cv_as_ix86_sahf
=yes
23089 echo "configure: failed program was" >&5
23092 rm -f conftest.o conftest.s
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23096 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23097 if test $gcc_cv_as_ix86_sahf = yes; then
23099 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23104 $as_echo_n "checking assembler for swap suffix... " >&6; }
23105 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23106 $as_echo_n "(cached) " >&6
23108 gcc_cv_as_ix86_swap
=no
23109 if test x
$gcc_cv_as != x
; then
23110 echo 'movl.s %esp, %ebp' > conftest.s
23111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23118 gcc_cv_as_ix86_swap
=yes
23120 echo "configure: failed program was" >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23127 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23128 if test $gcc_cv_as_ix86_swap = yes; then
23130 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23135 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23136 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23137 $as_echo_n "(cached) " >&6
23139 gcc_cv_as_ix86_diff_sect_delta
=no
23140 if test x
$gcc_cv_as != x
; then
23141 echo '.section .rodata
23147 .L2: nop' > conftest.s
23148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23155 gcc_cv_as_ix86_diff_sect_delta
=yes
23157 echo "configure: failed program was" >&5
23160 rm -f conftest.o conftest.s
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23164 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23165 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23167 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23171 # This one is used unconditionally by i386.[ch]; it is to be defined
23172 # to 1 if the feature is present, 0 otherwise.
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23174 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23175 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23176 $as_echo_n "(cached) " >&6
23178 gcc_cv_as_ix86_gotoff_in_data
=no
23179 if test $in_tree_gas = yes; then
23180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23181 then gcc_cv_as_ix86_gotoff_in_data
=yes
23183 elif test x
$gcc_cv_as != x
; then
23188 .long .L0@GOTOFF' > conftest.s
23189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23191 (eval $ac_try) 2>&5
23193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23194 test $ac_status = 0; }; }
23196 gcc_cv_as_ix86_gotoff_in_data
=yes
23198 echo "configure: failed program was" >&5
23201 rm -f conftest.o conftest.s
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23205 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23208 cat >>confdefs.h
<<_ACEOF
23209 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23216 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23217 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23218 $as_echo_n "(cached) " >&6
23220 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23221 if test $in_tree_gas = yes; then
23222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23223 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23225 elif test x
$gcc_cv_as != x
; then
23227 addl r15 = @ltoffx(x#), gp
23229 ld8.mov r16 = [r15], x#' > conftest.s
23230 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23232 (eval $ac_try) 2>&5
23234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23235 test $ac_status = 0; }; }
23237 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23239 echo "configure: failed program was" >&5
23242 rm -f conftest.o conftest.s
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23246 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23247 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23249 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23257 *-*-aix*) conftest_s
=' .machine "pwr5"
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23262 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23263 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23264 $as_echo_n "(cached) " >&6
23266 gcc_cv_as_machine_directive
=no
23267 if test x
$gcc_cv_as != x
; then
23268 echo ' .machine ppc7400' > conftest.s
23269 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23271 (eval $ac_try) 2>&5
23273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23274 test $ac_status = 0; }; }
23276 gcc_cv_as_machine_directive
=yes
23278 echo "configure: failed program was" >&5
23281 rm -f conftest.o conftest.s
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23285 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23287 if test x
$gcc_cv_as_machine_directive != xyes
; then
23288 echo "*** This target requires an assembler supporting \".machine\"" >&2
23289 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23290 test x
$build = x
$target && exit 1
23294 *) conftest_s
=' .machine power4
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23300 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23301 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23302 $as_echo_n "(cached) " >&6
23304 gcc_cv_as_powerpc_mfcrf
=no
23305 if test $in_tree_gas = yes; then
23306 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23307 then gcc_cv_as_powerpc_mfcrf
=yes
23309 elif test x
$gcc_cv_as != x
; then
23310 echo "$conftest_s" > conftest.s
23311 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23313 (eval $ac_try) 2>&5
23315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23316 test $ac_status = 0; }; }
23318 gcc_cv_as_powerpc_mfcrf
=yes
23320 echo "configure: failed program was" >&5
23323 rm -f conftest.o conftest.s
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23327 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23328 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23330 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23335 *-*-aix*) conftest_s
=' .machine "pwr5"
23338 *) conftest_s
=' .machine power5
23343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23344 $as_echo_n "checking assembler for popcntb support... " >&6; }
23345 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23346 $as_echo_n "(cached) " >&6
23348 gcc_cv_as_powerpc_popcntb
=no
23349 if test $in_tree_gas = yes; then
23350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23351 then gcc_cv_as_powerpc_popcntb
=yes
23353 elif test x
$gcc_cv_as != x
; then
23354 echo "$conftest_s" > conftest.s
23355 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23357 (eval $ac_try) 2>&5
23359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23360 test $ac_status = 0; }; }
23362 gcc_cv_as_powerpc_popcntb
=yes
23364 echo "configure: failed program was" >&5
23367 rm -f conftest.o conftest.s
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23371 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23372 if test $gcc_cv_as_powerpc_popcntb = yes; then
23374 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23379 *-*-aix*) conftest_s
=' .machine "pwr5x"
23382 *) conftest_s
=' .machine power5
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23388 $as_echo_n "checking assembler for fp round support... " >&6; }
23389 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23392 gcc_cv_as_powerpc_fprnd
=no
23393 if test $in_tree_gas = yes; then
23394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23395 then gcc_cv_as_powerpc_fprnd
=yes
23397 elif test x
$gcc_cv_as != x
; then
23398 echo "$conftest_s" > conftest.s
23399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23401 (eval $ac_try) 2>&5
23403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23404 test $ac_status = 0; }; }
23406 gcc_cv_as_powerpc_fprnd
=yes
23408 echo "configure: failed program was" >&5
23411 rm -f conftest.o conftest.s
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23415 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23416 if test $gcc_cv_as_powerpc_fprnd = yes; then
23418 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23423 *-*-aix*) conftest_s
=' .machine "pwr6"
23426 *) conftest_s
=' .machine power6
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23432 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23433 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23434 $as_echo_n "(cached) " >&6
23436 gcc_cv_as_powerpc_mfpgpr
=no
23437 if test $in_tree_gas = yes; then
23438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23439 then gcc_cv_as_powerpc_mfpgpr
=yes
23441 elif test x
$gcc_cv_as != x
; then
23442 echo "$conftest_s" > conftest.s
23443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445 (eval $ac_try) 2>&5
23447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448 test $ac_status = 0; }; }
23450 gcc_cv_as_powerpc_mfpgpr
=yes
23452 echo "configure: failed program was" >&5
23455 rm -f conftest.o conftest.s
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23459 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23460 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23462 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23467 *-*-aix*) conftest_s
=' .csect .text[PR]
23469 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23473 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23474 *) conftest_s
=' .text
23476 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23480 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23481 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23484 gcc_cv_as_powerpc_rel16
=no
23485 if test $in_tree_gas = yes; then
23486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23487 then gcc_cv_as_powerpc_rel16
=yes
23489 elif test x
$gcc_cv_as != x
; then
23490 echo "$conftest_s" > conftest.s
23491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23493 (eval $ac_try) 2>&5
23495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23496 test $ac_status = 0; }; }
23498 gcc_cv_as_powerpc_rel16
=yes
23500 echo "configure: failed program was" >&5
23503 rm -f conftest.o conftest.s
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23507 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23508 if test $gcc_cv_as_powerpc_rel16 = yes; then
23510 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23515 *-*-aix*) conftest_s
=' .machine "pwr6"
23518 *) conftest_s
=' .machine power6
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23524 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23525 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23526 $as_echo_n "(cached) " >&6
23528 gcc_cv_as_powerpc_cmpb
=no
23529 if test $in_tree_gas = yes; then
23530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23531 then gcc_cv_as_powerpc_cmpb
=yes
23533 elif test x
$gcc_cv_as != x
; then
23534 echo "$conftest_s" > conftest.s
23535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23542 gcc_cv_as_powerpc_cmpb
=yes
23544 echo "configure: failed program was" >&5
23547 rm -f conftest.o conftest.s
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23551 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23552 if test $gcc_cv_as_powerpc_cmpb = yes; then
23554 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23559 *-*-aix*) conftest_s
=' .machine "pwr6"
23562 *) conftest_s
=' .machine power6
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23568 $as_echo_n "checking assembler for decimal float support... " >&6; }
23569 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23570 $as_echo_n "(cached) " >&6
23572 gcc_cv_as_powerpc_dfp
=no
23573 if test $in_tree_gas = yes; then
23574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23575 then gcc_cv_as_powerpc_dfp
=yes
23577 elif test x
$gcc_cv_as != x
; then
23578 echo "$conftest_s" > conftest.s
23579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23586 gcc_cv_as_powerpc_dfp
=yes
23588 echo "configure: failed program was" >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23595 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23596 if test $gcc_cv_as_powerpc_dfp = yes; then
23598 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23603 *-*-aix*) conftest_s
=' .machine "pwr7"
23606 *) conftest_s
=' .machine power7
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23612 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23613 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23614 $as_echo_n "(cached) " >&6
23616 gcc_cv_as_powerpc_vsx
=no
23617 if test $in_tree_gas = yes; then
23618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23619 then gcc_cv_as_powerpc_vsx
=yes
23621 elif test x
$gcc_cv_as != x
; then
23622 echo "$conftest_s" > conftest.s
23623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23625 (eval $ac_try) 2>&5
23627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23628 test $ac_status = 0; }; }
23630 gcc_cv_as_powerpc_vsx
=yes
23632 echo "configure: failed program was" >&5
23635 rm -f conftest.o conftest.s
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23639 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23640 if test $gcc_cv_as_powerpc_vsx = yes; then
23642 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23647 *-*-aix*) conftest_s
=' .machine "pwr7"
23650 *) conftest_s
=' .machine power7
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23656 $as_echo_n "checking assembler for popcntd support... " >&6; }
23657 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23660 gcc_cv_as_powerpc_popcntd
=no
23661 if test $in_tree_gas = yes; then
23662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23663 then gcc_cv_as_powerpc_popcntd
=yes
23665 elif test x
$gcc_cv_as != x
; then
23666 echo "$conftest_s" > conftest.s
23667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23669 (eval $ac_try) 2>&5
23671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23672 test $ac_status = 0; }; }
23674 gcc_cv_as_powerpc_popcntd
=yes
23676 echo "configure: failed program was" >&5
23679 rm -f conftest.o conftest.s
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23683 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23684 if test $gcc_cv_as_powerpc_popcntd = yes; then
23686 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23691 *-*-aix*) conftest_s
=' .csect .text[PR]
23693 *) conftest_s
=' .text
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23698 $as_echo_n "checking assembler for lwsync support... " >&6; }
23699 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23700 $as_echo_n "(cached) " >&6
23702 gcc_cv_as_powerpc_lwsync
=no
23703 if test $in_tree_gas = yes; then
23704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23705 then gcc_cv_as_powerpc_lwsync
=yes
23707 elif test x
$gcc_cv_as != x
; then
23708 echo "$conftest_s" > conftest.s
23709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23711 (eval $ac_try) 2>&5
23713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23714 test $ac_status = 0; }; }
23716 gcc_cv_as_powerpc_lwsync
=yes
23718 echo "configure: failed program was" >&5
23721 rm -f conftest.o conftest.s
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23725 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23726 if test $gcc_cv_as_powerpc_lwsync = yes; then
23728 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23733 *-*-aix*) conftest_s
=' .machine "476"
23736 *) conftest_s
=' .machine "476"
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23742 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23743 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23744 $as_echo_n "(cached) " >&6
23746 gcc_cv_as_powerpc_dci
=no
23747 if test $in_tree_gas = yes; then
23748 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23749 then gcc_cv_as_powerpc_dci
=yes
23751 elif test x
$gcc_cv_as != x
; then
23752 echo "$conftest_s" > conftest.s
23753 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23755 (eval $ac_try) 2>&5
23757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758 test $ac_status = 0; }; }
23760 gcc_cv_as_powerpc_dci
=yes
23762 echo "configure: failed program was" >&5
23765 rm -f conftest.o conftest.s
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23769 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23770 if test $gcc_cv_as_powerpc_dci = yes; then
23772 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23777 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23778 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23779 $as_echo_n "(cached) " >&6
23781 gcc_cv_as_powerpc_gnu_attribute
=no
23782 if test $in_tree_gas = yes; then
23783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23784 then gcc_cv_as_powerpc_gnu_attribute
=yes
23786 elif test x
$gcc_cv_as != x
; then
23787 echo '.gnu_attribute 4,1' > conftest.s
23788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23790 (eval $ac_try) 2>&5
23792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23793 test $ac_status = 0; }; }
23795 gcc_cv_as_powerpc_gnu_attribute
=yes
23797 echo "configure: failed program was" >&5
23800 rm -f conftest.o conftest.s
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23804 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23805 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23807 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23812 $as_echo_n "checking assembler for tls marker support... " >&6; }
23813 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23814 $as_echo_n "(cached) " >&6
23816 gcc_cv_as_powerpc_tls_markers
=no
23817 if test $in_tree_gas = yes; then
23818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23819 then gcc_cv_as_powerpc_tls_markers
=yes
23821 elif test x
$gcc_cv_as != x
; then
23822 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23825 (eval $ac_try) 2>&5
23827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23828 test $ac_status = 0; }; }
23830 gcc_cv_as_powerpc_tls_markers
=yes
23832 echo "configure: failed program was" >&5
23835 rm -f conftest.o conftest.s
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23839 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23840 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23842 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23849 $as_echo_n "checking assembler for .ref support... " >&6; }
23850 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23851 $as_echo_n "(cached) " >&6
23853 gcc_cv_as_aix_ref
=no
23854 if test $in_tree_gas = yes; then
23855 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23858 elif test x
$gcc_cv_as != x
; then
23859 echo ' .csect stuff[rw]
23865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23867 (eval $ac_try) 2>&5
23869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23870 test $ac_status = 0; }; }
23872 gcc_cv_as_aix_ref
=yes
23874 echo "configure: failed program was" >&5
23877 rm -f conftest.o conftest.s
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
23881 $as_echo "$gcc_cv_as_aix_ref" >&6; }
23882 if test $gcc_cv_as_aix_ref = yes; then
23884 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23893 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23894 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23895 $as_echo_n "(cached) " >&6
23897 gcc_cv_as_mips_explicit_relocs
=no
23898 if test $in_tree_gas = yes; then
23899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23900 then gcc_cv_as_mips_explicit_relocs
=yes
23902 elif test x
$gcc_cv_as != x
; then
23903 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906 (eval $ac_try) 2>&5
23908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909 test $ac_status = 0; }; }
23911 gcc_cv_as_mips_explicit_relocs
=yes
23913 echo "configure: failed program was" >&5
23916 rm -f conftest.o conftest.s
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23920 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23921 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23922 if test x
$target_cpu_default = x
23923 then target_cpu_default
=MASK_EXPLICIT_RELOCS
23924 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23928 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23929 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23930 $as_echo_n "(cached) " >&6
23932 gcc_cv_as_mips_no_shared
=no
23933 if test $in_tree_gas = yes; then
23934 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23935 then gcc_cv_as_mips_no_shared
=yes
23937 elif test x
$gcc_cv_as != x
; then
23938 echo 'nop' > conftest.s
23939 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
23940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23941 (eval $ac_try) 2>&5
23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944 test $ac_status = 0; }; }
23946 gcc_cv_as_mips_no_shared
=yes
23948 echo "configure: failed program was" >&5
23951 rm -f conftest.o conftest.s
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23955 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23956 if test $gcc_cv_as_mips_no_shared = yes; then
23958 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23963 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23964 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23965 $as_echo_n "(cached) " >&6
23967 gcc_cv_as_mips_gnu_attribute
=no
23968 if test $in_tree_gas = yes; then
23969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23970 then gcc_cv_as_mips_gnu_attribute
=yes
23972 elif test x
$gcc_cv_as != x
; then
23973 echo '.gnu_attribute 4,1' > conftest.s
23974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23981 gcc_cv_as_mips_gnu_attribute
=yes
23983 echo "configure: failed program was" >&5
23986 rm -f conftest.o conftest.s
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23990 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23991 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23993 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23998 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23999 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24000 $as_echo_n "(cached) " >&6
24002 gcc_cv_as_mips_dtprelword
=no
24003 if test $in_tree_gas = yes; then
24004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24005 then gcc_cv_as_mips_dtprelword
=yes
24007 elif test x
$gcc_cv_as != x
; then
24008 echo '.section .tdata,"awT",@progbits
24012 .dtprelword x+0x8000' > conftest.s
24013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24015 (eval $ac_try) 2>&5
24017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24018 test $ac_status = 0; }; }
24020 gcc_cv_as_mips_dtprelword
=yes
24022 echo "configure: failed program was" >&5
24025 rm -f conftest.o conftest.s
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24029 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24030 if test $gcc_cv_as_mips_dtprelword = yes; then
24032 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24037 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24038 gcc_cv_as_ld_jalr_reloc
=no
24039 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24040 if test $in_tree_ld = yes ; then
24041 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 \
24042 && test $in_tree_ld_is_elf = yes; then
24043 gcc_cv_as_ld_jalr_reloc
=yes
24045 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24046 echo ' .ent x' > conftest.s
24047 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24048 echo ' ld $25,%call16(y)($28)' >> conftest.s
24049 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24050 echo '1: jalr $25' >> conftest.s
24051 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24052 echo '1: jalr $25' >> conftest.s
24053 echo ' .end x' >> conftest.s
24054 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24055 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24056 if $gcc_cv_objdump -d conftest.so |
grep -q jalr \
24057 && $gcc_cv_objdump -d conftest.so |
grep -q "bal.*<x>"; then
24058 gcc_cv_as_ld_jalr_reloc
=yes
24064 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24065 if test x
$target_cpu_default = x
; then
24066 target_cpu_default
=MASK_RELAX_PIC_CALLS
24068 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24072 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24075 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24076 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24079 gcc_cv_ld_mips_personality_relaxation
=no
24080 if test $in_tree_ld = yes ; then
24081 if test "$gcc_cv_gld_major_version" -eq 2 \
24082 -a "$gcc_cv_gld_minor_version" -ge 21 \
24083 -o "$gcc_cv_gld_major_version" -gt 2; then
24084 gcc_cv_ld_mips_personality_relaxation
=yes
24086 elif test x
$gcc_cv_as != x \
24087 -a x
$gcc_cv_ld != x \
24088 -a x
$gcc_cv_readelf != x
; then
24089 cat > conftest.s
<<EOF
24091 .cfi_personality 0x80,indirect_ptr
24098 .section .data,"aw",@progbits
24102 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24103 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24104 if $gcc_cv_readelf -d conftest
2>&1 \
24105 |
grep TEXTREL
> /dev
/null
2>&1; then
24107 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24108 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24111 gcc_cv_ld_mips_personality_relaxation
=yes
24115 rm -f conftest.s conftest.o conftest
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24118 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24119 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24121 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24127 # Mips and HP-UX need the GNU assembler.
24128 # Linux on IA64 might be able to use the Intel assembler.
24131 mips
*-*-* |
*-*-hpux* )
24132 if test x
$gas_flag = xyes \
24133 ||
test x
"$host" != x
"$build" \
24134 ||
test ! -x "$gcc_cv_as" \
24135 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24138 echo "*** This configuration requires the GNU assembler" >&2
24144 # ??? Not all targets support dwarf2 debug_line, even within a version
24145 # of gas. Moreover, we need to emit a valid instruction to trigger any
24146 # info to the output file. So, as supported targets are added to gas 2.11,
24147 # add some instruction here to (also) show we expect this might work.
24148 # ??? Once 2.11 is released, probably need to add first known working
24149 # version to the per-target configury.
24151 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
24152 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
24153 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
24154 | spu-
*-* | fido
*-*-* | m32c-
*-*)
24157 ia64
*-*-* | s390
*-*-*)
24164 if test x
"$insn" != x
; then
24166 .file 1 \"conftest.s\"
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24170 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24171 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24172 $as_echo_n "(cached) " >&6
24174 gcc_cv_as_dwarf2_debug_line
=no
24175 if test $in_tree_gas = yes; then
24176 if test $in_tree_gas_is_elf = yes \
24177 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24178 then gcc_cv_as_dwarf2_debug_line
=yes
24180 elif test x
$gcc_cv_as != x
; then
24181 echo "$conftest_s" > conftest.s
24182 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24184 (eval $ac_try) 2>&5
24186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24187 test $ac_status = 0; }; }
24189 if test x
$gcc_cv_objdump != x \
24190 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24191 |
grep debug_line
> /dev
/null
2>&1; then
24192 gcc_cv_as_dwarf2_debug_line
=yes
24195 echo "configure: failed program was" >&5
24198 rm -f conftest.o conftest.s
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24202 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24205 # The .debug_line file table must be in the exact order that
24206 # we specified the files, since these indices are also used
24207 # by DW_AT_decl_file. Approximate this test by testing if
24208 # the assembler bitches if the same index is assigned twice.
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24210 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24211 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24212 $as_echo_n "(cached) " >&6
24214 gcc_cv_as_dwarf2_file_buggy
=no
24215 if test x
$gcc_cv_as != x
; then
24216 echo ' .file 1 "foo.s"
24217 .file 1 "bar.s"' > conftest.s
24218 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24220 (eval $ac_try) 2>&5
24222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24223 test $ac_status = 0; }; }
24225 gcc_cv_as_dwarf2_file_buggy
=yes
24227 echo "configure: failed program was" >&5
24230 rm -f conftest.o conftest.s
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24234 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24237 if test $gcc_cv_as_dwarf2_debug_line = yes \
24238 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24240 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24245 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24246 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24247 $as_echo_n "(cached) " >&6
24249 gcc_cv_as_gdwarf2_flag
=no
24250 if test $in_tree_gas = yes; then
24251 if test $in_tree_gas_is_elf = yes \
24252 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24253 then gcc_cv_as_gdwarf2_flag
=yes
24255 elif test x
$gcc_cv_as != x
; then
24256 echo "$insn" > conftest.s
24257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24264 gcc_cv_as_gdwarf2_flag
=yes
24266 echo "configure: failed program was" >&5
24269 rm -f conftest.o conftest.s
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24273 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24274 if test $gcc_cv_as_gdwarf2_flag = yes; then
24276 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24281 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24282 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24285 gcc_cv_as_gstabs_flag
=no
24286 if test $in_tree_gas = yes; then
24287 if test $in_tree_gas_is_elf = yes \
24288 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24289 then gcc_cv_as_gstabs_flag
=yes
24291 elif test x
$gcc_cv_as != x
; then
24292 echo "$insn" > conftest.s
24293 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24295 (eval $ac_try) 2>&5
24297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24298 test $ac_status = 0; }; }
24300 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24301 # and warns about it, but still exits successfully. So check for
24303 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }
24310 else gcc_cv_as_gstabs_flag
=yes
24313 echo "configure: failed program was" >&5
24316 rm -f conftest.o conftest.s
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24320 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24321 if test $gcc_cv_as_gstabs_flag = yes; then
24323 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24328 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24329 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24332 gcc_cv_as_debug_prefix_map_flag
=no
24333 if test $in_tree_gas = yes; then
24334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24335 then gcc_cv_as_debug_prefix_map_flag
=yes
24337 elif test x
$gcc_cv_as != x
; then
24338 echo "$insn" > conftest.s
24339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24341 (eval $ac_try) 2>&5
24343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24344 test $ac_status = 0; }; }
24346 gcc_cv_as_debug_prefix_map_flag
=yes
24348 echo "configure: failed program was" >&5
24351 rm -f conftest.o conftest.s
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24355 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24356 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24358 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24364 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24365 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24366 $as_echo_n "(cached) " >&6
24368 gcc_cv_as_lcomm_with_alignment
=no
24369 if test x
$gcc_cv_as != x
; then
24370 echo '.lcomm bar,4,16' > conftest.s
24371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24378 gcc_cv_as_lcomm_with_alignment
=yes
24380 echo "configure: failed program was" >&5
24383 rm -f conftest.o conftest.s
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24387 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24388 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24390 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24394 # Check whether --enable-gnu-unique-object was given.
24395 if test "${enable_gnu_unique_object+set}" = set; then :
24396 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24398 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24399 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24403 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24404 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24405 $as_echo_n "(cached) " >&6
24407 gcc_cv_as_gnu_unique_object
=no
24408 if test $in_tree_gas = yes; then
24409 if test $in_tree_gas_is_elf = yes \
24410 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24411 then gcc_cv_as_gnu_unique_object
=yes
24413 elif test x
$gcc_cv_as != x
; then
24414 echo '.type foo, @gnu_unique_object' > conftest.s
24415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24422 gcc_cv_as_gnu_unique_object
=yes
24424 echo "configure: failed program was" >&5
24427 rm -f conftest.o conftest.s
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24431 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24432 if test $gcc_cv_as_gnu_unique_object = yes; then
24433 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24434 if test x
$host = x
$build -a x
$host = x
$target &&
24435 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24436 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24437 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24438 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24439 if test "$glibcnum" -ge 2011 ; then
24440 enable_gnu_unique_object
=yes
24446 if test x
$enable_gnu_unique_object = xyes
; then
24448 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24453 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24454 if test "${gcc_cv_as_line_zero+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 gcc_cv_as_line_zero
=no
24458 if test $in_tree_gas = yes; then
24459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24460 then gcc_cv_as_line_zero
=yes
24462 elif test "x$gcc_cv_as" != x
; then
24463 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24464 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; } &&
24470 test "x`cat conftest.out`" = x
24472 gcc_cv_as_line_zero
=yes
24474 echo "configure: failed program was" >&5
24476 echo "configure: error output was" >&5
24477 cat conftest.out
>&5
24479 rm -f conftest.o conftest.s conftest.out
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24483 $as_echo "$gcc_cv_as_line_zero" >&6; }
24484 if test "x$gcc_cv_as_line_zero" = xyes
; then
24486 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24491 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24492 gcc_cv_ld_eh_frame_hdr
=no
24493 if test $in_tree_ld = yes ; then
24494 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 \
24495 && test $in_tree_ld_is_elf = yes; then
24496 gcc_cv_ld_eh_frame_hdr
=yes
24498 elif test x
$gcc_cv_ld != x
; then
24499 # Check if linker supports --eh-frame-hdr option
24500 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24501 gcc_cv_ld_eh_frame_hdr
=yes
24505 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24507 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24511 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24514 $as_echo_n "checking linker position independent executable support... " >&6; }
24516 if test $in_tree_ld = yes ; then
24517 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 \
24518 && test $in_tree_ld_is_elf = yes; then
24521 elif test x
$gcc_cv_ld != x
; then
24522 # Check if linker supports -pie option
24523 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24527 if test x
"$gcc_cv_ld_pie" = xyes
; then
24529 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24533 $as_echo "$gcc_cv_ld_pie" >&6; }
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24536 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24537 gcc_cv_ld_eh_gc_sections
=no
24538 if test $in_tree_ld = yes ; then
24539 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 \
24540 && test $in_tree_ld_is_elf = yes; then
24541 gcc_cv_ld_eh_gc_sections
=yes
24543 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24544 cat > conftest.s
<<EOF
24547 .type _start, @function
24550 .size _start, .-_start
24551 .section .text.foo,"ax",@progbits
24552 .type foo, @function
24556 .section .gcc_except_table.foo,"a",@progbits
24559 .section .eh_frame,"a",@progbits
24562 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24563 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24564 |
grep "gc-sections option ignored" > /dev
/null
; then
24565 gcc_cv_ld_eh_gc_sections
=no
24566 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24567 gcc_cv_ld_eh_gc_sections
=yes
24568 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24569 if test x
$gcc_cv_as_comdat_group != xyes
; then
24570 gcc_cv_ld_eh_gc_sections
=no
24571 cat > conftest.s
<<EOF
24574 .type _start, @function
24577 .size _start, .-_start
24578 .section .gnu.linkonce.t.foo,"ax",@progbits
24579 .type foo, @function
24583 .section .gcc_except_table.foo,"a",@progbits
24586 .section .eh_frame,"a",@progbits
24589 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24590 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24591 |
grep "gc-sections option ignored" > /dev
/null
; then
24592 gcc_cv_ld_eh_gc_sections
=no
24593 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24594 gcc_cv_ld_eh_gc_sections
=yes
24600 rm -f conftest.s conftest.o conftest
24604 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24605 gcc_cv_ld_eh_gc_sections
=no
24608 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24610 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24614 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24621 $as_echo_n "checking linker --as-needed support... " >&6; }
24622 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24625 gcc_cv_ld_as_needed
=no
24626 if test $in_tree_ld = yes ; then
24627 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 \
24628 && test $in_tree_ld_is_elf = yes; then
24629 gcc_cv_ld_as_needed
=yes
24631 elif test x
$gcc_cv_ld != x
; then
24632 # Check if linker supports --as-needed and --no-as-needed options
24633 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24634 gcc_cv_ld_as_needed
=yes
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24640 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24641 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24643 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24647 case "$target:$tm_file" in
24648 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24650 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24651 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24652 $as_echo_n "(cached) " >&6
24654 gcc_cv_ld_no_dot_syms
=no
24655 if test $in_tree_ld = yes ; then
24656 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
24657 gcc_cv_ld_no_dot_syms
=yes
24659 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24660 cat > conftest1.s
<<EOF
24664 cat > conftest2.s
<<EOF
24665 .section ".opd","aw"
24668 .type foo,@function
24670 .quad .LEfoo,.TOC.@tocbase,0
24676 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24677 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24678 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24679 gcc_cv_ld_no_dot_syms
=yes
24681 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24686 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24687 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24689 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24696 $as_echo_n "checking linker --build-id support... " >&6; }
24697 if test "${gcc_cv_ld_buildid+set}" = set; then :
24698 $as_echo_n "(cached) " >&6
24700 gcc_cv_ld_buildid
=no
24701 if test $in_tree_ld = yes ; then
24702 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24703 "$gcc_cv_gld_minor_version" -ge 18 -o \
24704 "$gcc_cv_gld_major_version" -gt 2 \
24705 && test $in_tree_ld_is_elf = yes; then
24706 gcc_cv_ld_buildid
=yes
24708 elif test x
$gcc_cv_ld != x
; then
24709 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
24710 gcc_cv_ld_buildid
=yes
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24715 $as_echo "$gcc_cv_ld_buildid" >&6; }
24716 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24718 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24722 # Check whether --enable-linker-build-id was given.
24723 if test "${enable_linker_build_id+set}" = set; then :
24724 enableval
=$enable_linker_build_id;
24726 enable_linker_build_id
=no
24730 if test x
"$enable_linker_build_id" = xyes
; then
24731 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24733 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24737 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24742 $as_echo_n "checking linker --sysroot support... " >&6; }
24743 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24744 $as_echo_n "(cached) " >&6
24746 gcc_cv_ld_sysroot
=no
24747 if test $in_tree_ld = yes ; then
24748 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
24749 gcc_cv_ld_sysroot
=yes
24751 elif test x
$gcc_cv_ld != x
; then
24752 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24753 gcc_cv_ld_sysroot
=yes
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24758 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24759 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24761 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24765 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24766 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24767 && test "$prefix" != "NONE"; then
24769 cat >>confdefs.h
<<_ACEOF
24770 #define PREFIX_INCLUDE_DIR "$prefix/include"
24775 # Test for stack protector support in target C library.
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24777 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24778 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24779 $as_echo_n "(cached) " >&6
24781 gcc_cv_libc_provides_ssp
=no
24783 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
24784 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24785 if test "x$with_headers" != x
; then
24786 glibc_header_dir
=$with_headers
24787 elif test "x$with_sysroot" = x
; then
24788 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24789 elif test "x$with_build_sysroot" != "x"; then
24790 glibc_header_dir
="${with_build_sysroot}/usr/include"
24791 elif test "x$with_sysroot" = xyes
; then
24792 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24794 glibc_header_dir
="${with_sysroot}/usr/include"
24797 glibc_header_dir
=/usr
/include
24799 # glibc 2.4 and later provides __stack_chk_fail and
24800 # either __stack_chk_guard, or TLS access to stack guard canary.
24801 if test -f $glibc_header_dir/features.h \
24802 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24803 $glibc_header_dir/features.h
> /dev
/null
; then
24804 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24805 $glibc_header_dir/features.h
> /dev
/null
; then
24806 gcc_cv_libc_provides_ssp
=yes
24807 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24808 $glibc_header_dir/features.h
> /dev
/null \
24809 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24810 $glibc_header_dir/features.h
> /dev
/null
; then
24811 gcc_cv_libc_provides_ssp
=yes
24812 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24813 $glibc_header_dir/features.h
> /dev
/null
&& \
24814 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24815 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24816 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24817 gcc_cv_libc_provides_ssp
=yes
24822 # Avoid complicated tests (see
24823 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24824 # simply assert that glibc does provide this, which is true for all
24825 # realistically usable GNU/Hurd configurations.
24826 gcc_cv_libc_provides_ssp
=yes;;
24827 *-*-darwin* |
*-*-freebsd*)
24828 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24829 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
24830 gcc_cv_libc_provides_ssp
=yes
24832 echo "no __stack_chk_fail on this target"
24836 *) gcc_cv_libc_provides_ssp
=no
;;
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24840 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24842 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
24844 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24848 # Check if TFmode long double should be used by default or not.
24849 # Some glibc targets used DFmode long double, but with glibc 2.4
24850 # and later they can use TFmode.
24852 powerpc
*-*-linux* | \
24853 powerpc
*-*-gnu* | \
24854 sparc
*-*-linux* | \
24858 # Check whether --with-long-double-128 was given.
24859 if test "${with_long_double_128+set}" = set; then :
24860 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
24862 gcc_cv_target_ldbl128
=no
24863 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24864 if test "x$with_sysroot" = x
; then
24865 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24866 elif test "x$with_build_sysroot" != "x"; then
24867 glibc_header_dir
="${with_build_sysroot}/usr/include"
24868 elif test "x$with_sysroot" = xyes
; then
24869 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24871 glibc_header_dir
="${with_sysroot}/usr/include"
24874 glibc_header_dir
=/usr
/include
24876 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24877 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
24878 && gcc_cv_target_ldbl128
=yes
24884 if test x
$gcc_cv_target_ldbl128 = xyes
; then
24886 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24890 # Find out what GC implementation we want, or may, use.
24892 # Check whether --with-gc was given.
24893 if test "${with_gc+set}" = set; then :
24894 withval
=$with_gc; case "$withval" in
24901 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24905 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
24913 echo "Using $GGC for garbage collection."
24915 # Libraries to use on the host. This will normally be set by the top
24916 # level Makefile. Here we simply capture the value for our Makefile.
24917 if test -z "${HOST_LIBS+set}"; then
24922 # Use the system's zlib library.
24924 zlibinc
="-I\$(srcdir)/../zlib"
24926 # Check whether --with-system-zlib was given.
24927 if test "${with_system_zlib+set}" = set; then :
24928 withval
=$with_system_zlib; zlibdir
=
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24938 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24939 # Check whether --enable-maintainer-mode was given.
24940 if test "${enable_maintainer_mode+set}" = set; then :
24941 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24948 $as_echo "$maintainer_mode" >&6; }
24950 if test "$maintainer_mode" = "yes"; then
24960 # Make empty files to contain the specs and options for each language.
24961 # Then add #include lines to for a compiler that has specs and/or options.
24967 # These (without "all_") are set in each config-lang.in.
24968 # `language' must be a single word so is spelled singularly.
24971 all_outputs
='Makefile gccbug'
24972 # List of language makefile fragments.
24973 all_lang_makefrags
=
24974 # List of language subdirectory makefiles. Deprecated.
24975 all_lang_makefiles
=
24976 # Additional files for gengtype
24977 all_gtfiles
="$target_gtfiles"
24979 # These are the languages that are set in --enable-languages,
24980 # and are available in the GCC tree.
24981 all_selected_languages
=
24983 # Add the language fragments.
24984 # Languages are added via two mechanisms. Some information must be
24985 # recorded in makefile variables, these are defined in config-lang.in.
24986 # We accumulate them and plug them into the main Makefile.
24987 # The other mechanism is a set of hooks for each of the main targets
24988 # like `clean', `install', etc.
24990 language_hooks
="Make-hooks"
24992 for lang
in ${srcdir}/*/config-lang.
in
24994 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24996 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24997 if test "x$lang_alias" = x
24999 echo "$lang doesn't set \$language." 1>&2
25002 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25003 subdirs
="$subdirs $subdir"
25005 # $gcc_subdir is where the gcc integration files are to be found
25006 # for a language, both for internal compiler purposes (compiler
25007 # sources implementing front-end to GCC tree converters), and for
25008 # build infrastructure purposes (Make-lang.in, etc.)
25010 # This will be <subdir> (relative to $srcdir) if a line like
25011 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25012 # is found in <langdir>/config-lang.in, and will remain <langdir>
25015 # Except for the language alias (fetched above), the regular
25016 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25017 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25018 # only this and the language alias.
25020 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25021 if [ "$gcc_subdir" = "" ]; then
25022 gcc_subdir
="$subdir"
25025 case ",$enable_languages," in
25027 all_selected_languages
="$all_selected_languages $lang_alias"
25028 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
25029 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25040 .
${srcdir}/$gcc_subdir/config-lang.
in
25041 if test "x$language" = x
25043 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25048 case ",$enable_languages," in
25049 *,$lang_alias,*) ;;
25051 for i
in $subdir_requires; do
25052 test -f "${srcdir}/$i/config-lang.in" && continue
25060 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25061 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25062 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25064 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25065 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25067 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
25068 then all_lang_makefiles
="$gcc_subdir/Makefile"
25070 all_languages
="$all_languages $language"
25071 all_compilers
="$all_compilers $compilers"
25072 all_outputs
="$all_outputs $outputs"
25073 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25074 case ",$enable_languages," in
25077 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25086 # Pick up gtfiles for c
25088 .
${srcdir}/c-config-lang.
in
25089 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25092 for language
in $all_selected_languages
25094 check_languages
="$check_languages check-$language"
25097 # We link each language in with a set of hooks, reached indirectly via
25098 # lang.${target}. Only do so for selected languages.
25102 target_list
="all.cross start.encap rest.encap tags \
25103 install-common install-man install-info install-pdf install-html dvi \
25104 pdf html uninstall info man srcextra srcman srcinfo \
25105 mostlyclean clean distclean maintainer-clean install-plugin"
25107 for t
in $target_list
25110 for lang
in $all_selected_languages
25114 echo "lang.$t: $x" >> Make-hooks
25123 echo "dir ." > .gdbinit
25124 echo "dir ${srcdir}" >> .gdbinit
25125 if test x
$gdb_needs_out_file_path = xyes
25127 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25129 if test "x$subdirs" != x
; then
25132 echo "dir ${srcdir}/$s" >> .gdbinit
25135 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25137 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25141 # Find a directory in which to install a shared libgcc.
25143 # Check whether --enable-version-specific-runtime-libs was given.
25144 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25145 enableval
=$enable_version_specific_runtime_libs;
25150 # Check whether --with-slibdir was given.
25151 if test "${with_slibdir+set}" = set; then :
25152 withval
=$with_slibdir; slibdir
="$with_slibdir"
25154 if test "${enable_version_specific_runtime_libs+set}" = set; then
25155 slibdir
='$(libsubdir)'
25156 elif test "$host" != "$target"; then
25157 slibdir
='$(build_tooldir)/lib'
25159 slibdir
='$(libdir)'
25165 # Substitute configuration variables
25228 if test x
${build} = x
${host} ; then
25229 if test x
${host} = x
${target} ; then
25230 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25232 echo "Links are now set up to build a cross-compiler" 1>&2
25233 echo " from ${host} to ${target}." 1>&2
25236 if test x
${host} = x
${target} ; then
25237 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25238 echo " for ${target}." 1>&2
25240 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25241 echo " from ${host} to ${target}." 1>&2
25253 if test "x${CLOOGLIBS}" != "x" ; then
25255 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25261 if test "x${LIBELFLIBS}" != "x" ; then
25263 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25267 # Check for plugin support
25268 # Check whether --enable-plugin was given.
25269 if test "${enable_plugin+set}" = set; then :
25270 enableval
=$enable_plugin; enable_plugin
=$enableval
25272 enable_plugin
=yes; default_plugin
=yes
25277 if test x
"$enable_plugin" = x
"yes"; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25280 $as_echo_n "checking for exported symbols... " >&6; }
25281 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25282 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25283 if $gcc_cv_objdump -T conftest |
grep foobar
> /dev
/null
; then
25284 : # No need to use a flag
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25287 $as_echo_n "checking for -rdynamic... " >&6; }
25288 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25289 if $gcc_cv_objdump -T conftest |
grep foobar
> /dev
/null
; then
25290 plugin_rdynamic
=yes
25291 pluginlibs
="-rdynamic"
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25297 $as_echo "$plugin_rdynamic" >&6; }
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25303 $as_echo_n "checking for library containing dlopen... " >&6; }
25304 if test "${ac_cv_search_dlopen+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25307 ac_func_search_save_LIBS
=$LIBS
25308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h. */
25311 /* Override any GCC internal prototype to avoid an error.
25312 Use char because int might match the return type of a GCC
25313 builtin and then its argument prototype would still apply. */
25326 for ac_lib
in '' dl
; do
25327 if test -z "$ac_lib"; then
25328 ac_res
="none required"
25331 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25333 if ac_fn_c_try_link
"$LINENO"; then :
25334 ac_cv_search_dlopen
=$ac_res
25336 rm -f core conftest.err conftest.
$ac_objext \
25338 if test "${ac_cv_search_dlopen+set}" = set; then :
25342 if test "${ac_cv_search_dlopen+set}" = set; then :
25345 ac_cv_search_dlopen
=no
25347 rm conftest.
$ac_ext
25348 LIBS
=$ac_func_search_save_LIBS
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25351 $as_echo "$ac_cv_search_dlopen" >&6; }
25352 ac_res
=$ac_cv_search_dlopen
25353 if test "$ac_res" != no
; then :
25354 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25358 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25359 pluginlibs
="$pluginlibs -ldl"
25363 # Check that we can build shared objects with -fPIC -shared
25364 saved_LDFLAGS
="$LDFLAGS"
25365 LDFLAGS
="$LDFLAGS -fPIC -shared"
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25367 $as_echo_n "checking for -fPIC -shared... " >&6; }
25368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25379 if ac_fn_c_try_link
"$LINENO"; then :
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25381 $as_echo "yes" >&6; }; have_pic_shared
=yes
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25384 $as_echo "no" >&6; }; have_pic_shared
=no
25386 rm -f core conftest.err conftest.
$ac_objext \
25387 conftest
$ac_exeext conftest.
$ac_ext
25388 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25392 LDFLAGS
="$saved_LDFLAGS"
25394 # If plugin support had been requested but not available, fail.
25395 if test x
"$enable_plugin" = x
"no" ; then
25396 if test x
"$default_plugin" != x
"yes"; then
25398 Building GCC with plugin support requires a host that supports
25399 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25406 if test x
"$enable_plugin" = x
"yes"; then
25408 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25412 # Configure the subdirectories
25413 # AC_CONFIG_SUBDIRS($subdirs)
25415 # Create the Makefile
25416 # and configure language subdirectories
25417 ac_config_files
="$ac_config_files $all_outputs"
25420 ac_config_commands
="$ac_config_commands default"
25422 cat >confcache
<<\_ACEOF
25423 # This file is a shell script that caches the results of configure
25424 # tests run on this system so they can be shared between configure
25425 # scripts and configure runs, see configure's option --config-cache.
25426 # It is not useful on other systems. If it contains results you don't
25427 # want to keep, you may remove or edit it.
25429 # config.status only pays attention to the cache file if you give it
25430 # the --recheck option to rerun configure.
25432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25434 # following values.
25438 # The following way of writing the cache mishandles newlines in values,
25439 # but we know of no workaround that is simple, portable, and efficient.
25440 # So, we kill variables containing newlines.
25441 # Ultrix sh set writes to stderr and can't be redirected directly,
25442 # and sets the high bit in the cache file unless we assign to the vars.
25444 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25445 eval ac_val
=\$
$ac_var
25449 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25453 _ | IFS | as_nl
) ;; #(
25454 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25455 *) { eval $ac_var=; unset $ac_var;} ;;
25461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25462 *${as_nl}ac_space
=\
*)
25463 # `set' does not quote correctly, so add quotes: double-quote
25464 # substitution turns \\\\ into \\, and sed turns \\ into \.
25467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25470 # `set' quotes correctly as required by POSIX, so do not add quotes.
25471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25484 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25485 if test -w "$cache_file"; then
25486 test "x$cache_file" != "x/dev/null" &&
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25488 $as_echo "$as_me: updating cache $cache_file" >&6;}
25489 cat confcache
>$cache_file
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25492 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25497 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25498 # Let make expand exec_prefix.
25499 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25501 DEFS
=-DHAVE_CONFIG_H
25505 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25506 # 1. Remove the extension, and $U if already installed.
25507 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25508 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25510 # will be set to the directory where LIBOBJS objects are built.
25511 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25512 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25514 LIBOBJS
=$ac_libobjs
25516 LTLIBOBJS
=$ac_ltlibobjs
25521 : ${CONFIG_STATUS=./config.status}
25523 ac_clean_files_save
=$ac_clean_files
25524 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25528 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25530 # Generated by $as_me.
25531 # Run this file to recreate the current configuration.
25532 # Compiler output produced by configure, useful for debugging
25533 # configure, is in config.log if it exists.
25536 ac_cs_recheck=false
25539 SHELL=\${CONFIG_SHELL-$SHELL}
25542 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25543 ## -------------------- ##
25544 ## M4sh Initialization. ##
25545 ## -------------------- ##
25547 # Be more Bourne compatible
25548 DUALCASE
=1; export DUALCASE
# for MKS sh
25549 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25553 # is contrary to our usage. Disable this feature.
25554 alias -g '${1+"$@"}'='"$@"'
25555 setopt NO_GLOB_SUBST
25557 case `(set -o) 2>/dev/null` in #(
25569 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25570 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25573 # Prefer a ksh shell builtin over an external printf program on Solaris,
25574 # but without wasting forks for bash or zsh.
25575 if test -z "$BASH_VERSION$ZSH_VERSION" \
25576 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25577 as_echo='print
-r --'
25578 as_echo_n='print
-rn --'
25579 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25580 as_echo='printf %s
\n'
25581 as_echo_n='printf %s
'
25583 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25584 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25585 as_echo_n='/usr
/ucb
/echo -n'
25587 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25588 as_echo_n_body='eval
25592 expr "X$arg" : "X\\(.*\\)$as_nl";
25593 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25595 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25597 export as_echo_n_body
25598 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25600 export as_echo_body
25601 as_echo='sh
-c $as_echo_body as_echo
'
25604 # The user is always right.
25605 if test "${PATH_SEPARATOR+set}" != set; then
25607 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25608 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25615 # We need space, tab and new line, in precisely that order. Quoting is
25616 # there to prevent editors from complaining about space-tab.
25617 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25618 # splitting by setting IFS to empty value.)
25621 # Find who we are. Look in the path if we contain no directory separator.
25623 *[\\/]* ) as_myself=$0 ;;
25624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25625 for as_dir in $PATH
25628 test -z "$as_dir" && as_dir=.
25629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25635 # We did not find ourselves, most probably we were run as `sh COMMAND'
25636 # in which case we are not to be found in the path.
25637 if test "x$as_myself" = x
; then
25640 if test ! -f "$as_myself"; then
25641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25645 # Unset variables that we do not need and which cause bugs (e.g. in
25646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25647 # suppresses any "Segmentation fault" message there. '((' could
25648 # trigger a bug in pdksh 5.2.14.
25649 for as_var
in BASH_ENV ENV MAIL MAILPATH
25650 do eval test x\
${$as_var+set} = xset \
25651 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25664 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25667 # as_fn_error ERROR [LINENO LOG_FD]
25668 # ---------------------------------
25669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25671 # script with status $?, using 1 if that was 0.
25674 as_status
=$?
; test $as_status -eq 0 && as_status
=1
25676 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25679 $as_echo "$as_me: error: $1" >&2
25680 as_fn_exit
$as_status
25684 # as_fn_set_status STATUS
25685 # -----------------------
25686 # Set $? to STATUS, without forking.
25687 as_fn_set_status
()
25690 } # as_fn_set_status
25692 # as_fn_exit STATUS
25693 # -----------------
25694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25698 as_fn_set_status
$1
25704 # Portably unset VAR.
25707 { eval $1=; unset $1;}
25709 as_unset
=as_fn_unset
25710 # as_fn_append VAR VALUE
25711 # ----------------------
25712 # Append the text in VALUE to the end of the definition contained in VAR. Take
25713 # advantage of any shell optimizations that allow amortized linear growth over
25714 # repeated appends, instead of the typical quadratic growth present in naive
25716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25717 eval 'as_fn_append ()
25728 # as_fn_arith ARG...
25729 # ------------------
25730 # Perform arithmetic evaluation on the ARGs, and store the result in the
25731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25732 # must be portable across $(()) and expr.
25733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25734 eval 'as_fn_arith ()
25741 as_val
=`expr "$@" || test $? -eq 1`
25746 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25747 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25753 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25754 as_basename
=basename
25759 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25765 as_me
=`$as_basename -- "$0" ||
25766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25767 X"$0" : 'X\(//\)$' \| \
25768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25770 sed '/^.*\/\([^/][^/]*\)\/*$/{
25784 # Avoid depending upon Character Ranges.
25785 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25786 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25787 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25788 as_cr_digits
='0123456789'
25789 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25791 ECHO_C
= ECHO_N
= ECHO_T
=
25792 case `echo -n x` in #(((((
25794 case `echo 'xy\c'` in
25795 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25797 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25804 rm -f conf$$ conf$$.exe conf$$.
file
25805 if test -d conf$$.dir
; then
25806 rm -f conf$$.dir
/conf$$.
file
25809 mkdir conf$$.dir
2>/dev
/null
25811 if (echo >conf$$.
file) 2>/dev
/null
; then
25812 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25814 # ... but there are two gotchas:
25815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25817 # In both cases, we have to default to `cp -p'.
25818 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25820 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25828 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25829 rmdir conf$$.dir
2>/dev
/null
25834 # Create "$as_dir" as a directory, including parents if necessary.
25839 -*) as_dir
=.
/$as_dir;;
25841 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25845 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25846 *) as_qdir
=$as_dir;;
25848 as_dirs
="'$as_qdir' $as_dirs"
25849 as_dir
=`$as_dirname -- "$as_dir" ||
25850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25851 X"$as_dir" : 'X\(//\)[^/]' \| \
25852 X"$as_dir" : 'X\(//\)$' \| \
25853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25854 $as_echo X"$as_dir" |
25855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25859 /^X\(\/\/\)[^/].*/{
25872 test -d "$as_dir" && break
25874 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25875 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
25879 if mkdir
-p .
2>/dev
/null
; then
25880 as_mkdir_p
='mkdir -p "$as_dir"'
25882 test -d .
/-p && rmdir .
/-p
25886 if test -x / >/dev
/null
2>&1; then
25887 as_test_x
='test -x'
25889 if ls -dL / >/dev
/null
2>&1; then
25896 if test -d "$1"; then
25902 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25903 ???[sx]*):;;*)false;;esac;fi
25907 as_executable_p
=$as_test_x
25909 # Sed expression to map a string onto a valid CPP name.
25910 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25912 # Sed expression to map a string onto a valid variable name.
25913 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25917 ## ----------------------------------- ##
25918 ## Main body of $CONFIG_STATUS script. ##
25919 ## ----------------------------------- ##
25921 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25924 # Save the log message, to keep $0 and so on meaningful, and to
25925 # report actual input values of CONFIG_FILES etc. instead of their
25926 # values after options handling.
25928 This file was extended by $as_me, which was
25929 generated by GNU Autoconf 2.64. Invocation command line was
25931 CONFIG_FILES = $CONFIG_FILES
25932 CONFIG_HEADERS = $CONFIG_HEADERS
25933 CONFIG_LINKS = $CONFIG_LINKS
25934 CONFIG_COMMANDS = $CONFIG_COMMANDS
25937 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25942 case $ac_config_files in *"
25943 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25946 case $ac_config_headers in *"
25947 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25952 # Files that config.status was made for.
25953 config_files="$ac_config_files"
25954 config_headers="$ac_config_headers"
25955 config_commands="$ac_config_commands"
25959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25961 \`$as_me' instantiates files and other configuration actions
25962 from templates according to the current configuration. Unless the files
25963 and actions are specified as TAGs, all are instantiated by default.
25965 Usage: $0 [OPTION]... [TAG]...
25967 -h, --help print this help, then exit
25968 -V, --version print version number and configuration settings, then exit
25969 -q, --quiet, --silent
25970 do not print progress messages
25971 -d, --debug don't remove temporary files
25972 --recheck update $as_me by reconfiguring in the same conditions
25973 --file=FILE[:TEMPLATE]
25974 instantiate the configuration file FILE
25975 --header=FILE[:TEMPLATE]
25976 instantiate the configuration header FILE
25978 Configuration files:
25981 Configuration headers:
25984 Configuration commands:
25987 Report bugs to the package provider."
25990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25993 configured by $0, generated by GNU Autoconf 2.64,
25994 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25996 Copyright (C) 2009 Free Software Foundation, Inc.
25997 This config.status script is free software; the Free Software Foundation
25998 gives unlimited permission to copy, distribute and modify it."
26003 test -n "\$AWK" || AWK=awk
26006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26007 # The default lists apply if the user does not specify any file.
26013 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26014 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26025 # Handling of the options.
26026 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26028 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26029 $as_echo "$ac_cs_version"; exit ;;
26030 --debug |
--debu |
--deb |
--de |
--d |
-d )
26032 --file |
--fil |
--fi |
--f )
26035 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26037 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26038 ac_need_defaults
=false
;;
26039 --header |
--heade |
--head |
--hea )
26042 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26044 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26045 ac_need_defaults
=false
;;
26047 # Conflict between --help and --header
26048 as_fn_error
"ambiguous option: \`$1'
26049 Try \`$0 --help' for more information.";;
26050 --help |
--hel |
-h )
26051 $as_echo "$ac_cs_usage"; exit ;;
26052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26053 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26056 # This is an error.
26057 -*) as_fn_error
"unrecognized option: \`$1'
26058 Try \`$0 --help' for more information." ;;
26060 *) as_fn_append ac_config_targets
" $1"
26061 ac_need_defaults
=false
;;
26067 ac_configure_extra_args
=
26069 if $ac_cs_silent; then
26071 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26076 if \$ac_cs_recheck; then
26077 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26080 CONFIG_SHELL='$SHELL'
26081 export CONFIG_SHELL
26086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26091 ## Running $as_me. ##
26097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26107 # Handling of arguments.
26108 for ac_config_target
in $ac_config_targets
26110 case $ac_config_target in
26111 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26112 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26113 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26114 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26115 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26116 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26118 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26123 # If the user did not use the arguments to specify the items to instantiate,
26124 # then the envvar interface is used. Set only those that are not.
26125 # We use the long form for the default assignment because of an extremely
26126 # bizarre bug on SunOS 4.1.3.
26127 if $ac_need_defaults; then
26128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26133 # Have a temporary directory for convenience. Make it in the build tree
26134 # simply because there is no reason against having it here, and in addition,
26135 # creating and moving files from /tmp can sometimes cause problems.
26136 # Hook for its removal unless debugging.
26137 # Note that there is a small window in which the directory will not be cleaned:
26138 # after its creation but before its name has been assigned to `$tmp'.
26142 trap 'exit_status=$?
26143 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26145 trap 'as_fn_exit 1' 1 2 13 15
26147 # Create a (secure) tmp directory for tmp files.
26150 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26151 test -n "$tmp" && test -d "$tmp"
26154 tmp
=.
/conf$$
-$RANDOM
26155 (umask 077 && mkdir
"$tmp")
26156 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26158 # Set up the scripts for CONFIG_FILES section.
26159 # No need to generate them if there are no CONFIG_FILES.
26160 # This happens for instance with `./config.status config.h'.
26161 if test -n "$CONFIG_FILES"; then
26163 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26164 ac_cs_awk_getline
=:
26165 ac_cs_awk_pipe_init
=
26166 ac_cs_awk_read_file
='
26167 while ((getline aline < (F[key])) > 0)
26170 ac_cs_awk_pipe_fini
=
26172 ac_cs_awk_getline
=false
26173 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26174 ac_cs_awk_read_file
='
26176 print "cat " F[key] " &&"
26177 '$ac_cs_awk_pipe_init
26178 # The final `:' finishes the AND list.
26179 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26181 ac_cr
=`echo X | tr X '\015'`
26182 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26183 # But we know of no other shell where ac_cr would be empty at this
26184 # point, so we can use a bashism as a fallback.
26185 if test "x$ac_cr" = x
; then
26186 eval ac_cr
=\$
\'\\r
\'
26188 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26192 ac_cs_awk_cr
=$ac_cr
26195 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26198 # Create commands to substitute file output variables.
26200 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26201 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26202 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26205 } >conf$
$files.sh
&&
26206 . .
/conf$
$files.sh ||
26207 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26208 rm -f conf$
$files.sh
26211 echo "cat >conf$$subs.awk <<_ACEOF" &&
26212 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26214 } >conf$$subs.sh ||
26215 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26216 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26218 for ac_last_try in false false false false false :; do
26219 . ./conf$$subs.sh ||
26220 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26222 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26223 if test $ac_delim_n = $ac_delim_num; then
26225 elif $ac_last_try; then
26226 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26228 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26231 rm -f conf$$subs.sh
26233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26234 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26238 s/^/S["/; s
/!.
*/"]=/
26248 s/\(.\{148\}\).*/\1/
26250 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26255 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26262 s/\(.\{148\}\).*/\1/
26264 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26268 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26273 ' <conf$$subs.awk | sed '
26278 ' >>$CONFIG_STATUS || ac_write_fail=1
26279 rm -f conf$$subs.awk
26280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26282 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26283 for (key in S) S_is_set[key] = 1
26285 \$ac_cs_awk_pipe_init
26289 nfields = split(line, field, "@
")
26291 len = length(field[1])
26292 for (i = 2; i < nfields; i++) {
26294 keylen = length(key)
26295 if (S_is_set[key]) {
26297 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26298 len += length(value) + length(field[++i])
26303 if (nfields == 3 && !substed) {
26305 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26306 \$ac_cs_awk_read_file
26312 \$ac_cs_awk_pipe_fini
26315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26316 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26317 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26320 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26321 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26324 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26325 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26326 # trailing colons and then remove the whole line if VPATH becomes empty
26327 # (actually we leave an empty line to preserve line numbers).
26328 if test "x
$srcdir" = x.; then
26329 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26330 s/:*\$(srcdir):*/:/
26331 s/:*\${srcdir}:*/:/
26333 s/^\([^=]*=[ ]*\):*/\1/
26339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26340 fi # test -n "$CONFIG_FILES"
26342 # Set up the scripts for CONFIG_HEADERS section.
26343 # No need to generate them if there are no CONFIG_HEADERS.
26344 # This happens for instance with `./config.status Makefile'.
26345 if test -n "$CONFIG_HEADERS"; then
26346 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26350 # Transform confdefs.h into an awk script `defines.awk', embedded as
26351 # here-document in config.status, that substitutes the proper values into
26352 # config.h.in to produce config.h.
26354 # Create a delimiter string that does not exist in confdefs.h, to ease
26355 # handling of long lines.
26357 for ac_last_try in false false :; do
26358 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26359 if test -z "$ac_t"; then
26361 elif $ac_last_try; then
26362 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26364 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26368 # For the awk script, D is an array of macro values keyed by name,
26369 # likewise P contains macro parameters if any. Preserve backslash
26370 # newline sequences.
26372 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26374 s/.\{148\}/&'"$ac_delim"'/g
26377 s/^[ ]*#[ ]*define[ ][ ]*/ /
26384 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26386 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26391 D["\
1"]=" \
3\\\\\\n
"\\/p
26393 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26398 s/.\{148\}/&'"$ac_delim"'/g
26403 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26406 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26408 ' <confdefs.h | sed '
26409 s/'"$ac_delim"'/"\\\
26410 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26413 for (key in D) D_is_set[key] = 1
26416 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26418 split(line, arg, " ")
26419 if (arg[1] == "#") {
26423 defundef
= substr
(arg
[1], 2)
26426 split(mac1
, mac2
, "(") #)
26428 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26429 if (D_is_set
[macro
]) {
26430 # Preserve the white space surrounding the "#".
26431 print prefix
"define", macro P
[macro
] D
[macro
]
26434 # Replace #undef with comments. This is necessary, for example,
26435 # in the case of _POSIX_SOURCE, which is predefined and required
26436 # on some systems where configure will not decide to define it.
26437 if (defundef
== "undef") {
26438 print
"/*", prefix defundef
, macro
, "*/"
26446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26447 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26448 fi # test -n "$CONFIG_HEADERS"
26451 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26456 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26458 case $ac_mode$ac_tag in
26460 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26461 :[FH
]-) ac_tag
=-:-;;
26462 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26479 -) ac_f
="$tmp/stdin";;
26480 *) # Look for the file first in the build tree, then in the source tree
26481 # (if the path is not absolute). The absolute path cannot be DOS-style,
26482 # because $ac_f cannot contain `:'.
26486 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26488 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26490 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26491 as_fn_append ac_file_inputs
" '$ac_f'"
26494 # Let's still pretend it is `configure' which instantiates (i.e., don't
26495 # use $as_me), people would be surprised to read:
26496 # /* config.h. Generated by config.status. */
26497 configure_input
='Generated from '`
26498 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26500 if test x
"$ac_file" != x-
; then
26501 configure_input
="$ac_file. $configure_input"
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26503 $as_echo "$as_me: creating $ac_file" >&6;}
26505 # Neutralize special characters interpreted by sed in replacement strings.
26506 case $configure_input in #(
26507 *\
&* |
*\|
* |
*\\* )
26508 ac_sed_conf_input
=`$as_echo "$configure_input" |
26509 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26510 *) ac_sed_conf_input
=$configure_input;;
26514 *:-:* |
*:-) cat >"$tmp/stdin" \
26515 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26520 ac_dir
=`$as_dirname -- "$ac_file" ||
26521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26522 X"$ac_file" : 'X\(//\)[^/]' \| \
26523 X"$ac_file" : 'X\(//\)$' \| \
26524 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26525 $as_echo X"$ac_file" |
26526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26530 /^X\(\/\/\)[^/].*/{
26543 as_dir
="$ac_dir"; as_fn_mkdir_p
26547 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26549 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26550 # A ".." for each directory in $ac_dir_suffix.
26551 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26552 case $ac_top_builddir_sub in
26553 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26554 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26557 ac_abs_top_builddir
=$ac_pwd
26558 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26559 # for backward compatibility:
26560 ac_top_builddir
=$ac_top_build_prefix
26563 .
) # We are building in place.
26565 ac_top_srcdir
=$ac_top_builddir_sub
26566 ac_abs_top_srcdir
=$ac_pwd ;;
26567 [\\/]* | ?
:[\\/]* ) # Absolute name.
26568 ac_srcdir
=$srcdir$ac_dir_suffix;
26569 ac_top_srcdir
=$srcdir
26570 ac_abs_top_srcdir
=$srcdir ;;
26571 *) # Relative name.
26572 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26573 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26574 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26576 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26588 # If the template does not know about datarootdir, expand it.
26589 # FIXME: This hack should be removed a few years after 2.60.
26590 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26601 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26602 *datarootdir
*) ac_datarootdir_seen
=yes;;
26603 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26605 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26608 ac_datarootdir_hack='
26609 s&@datadir@&$datadir&g
26610 s&@docdir@&$docdir&g
26611 s&@infodir@&$infodir&g
26612 s&@localedir@&$localedir&g
26613 s&@mandir@&$mandir&g
26614 s&\\\${datarootdir}&$datarootdir&g' ;;
26618 # Neutralize VPATH when `$srcdir' = `.'.
26619 # Shell code in configure.ac might set extrasub.
26620 # FIXME: do we really want to maintain this feature?
26621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26622 ac_sed_extra="$ac_vpsub
26625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26627 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26628 s|@configure_input@|
$ac_sed_conf_input|
;t t
26629 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26630 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26631 s
&@srcdir@
&$ac_srcdir&;t t
26632 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26633 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26634 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26635 s
&@builddir@
&$ac_builddir&;t t
26636 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26637 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26638 $ac_datarootdir_hack
26640 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26641 if $ac_cs_awk_getline; then
26642 $AWK -f "$tmp/subs.
awk"
26644 $AWK -f "$tmp/subs.
awk" | $SHELL
26646 || as_fn_error "could not create
$ac_file" "$LINENO" 5
26648 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26649 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26650 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26652 which seems to be undefined. Please make sure it is defined." >&5
26653 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26654 which seems to be undefined. Please make sure it is defined." >&2;}
26658 -) cat "$tmp/out" && rm -f "$tmp/out";;
26659 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26661 || as_fn_error "could not create $ac_file" "$LINENO" 5
26667 if test x"$ac_file" != x-; then
26669 $as_echo "/* $configure_input */" \
26670 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26671 } >"$tmp/config.h" \
26672 || as_fn_error "could not create $ac_file" "$LINENO" 5
26673 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26675 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26678 mv "$tmp/config.h" "$ac_file" \
26679 || as_fn_error "could not create $ac_file" "$LINENO" 5
26682 $as_echo "/* $configure_input */" \
26683 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26684 || as_fn_error "could not create -" "$LINENO" 5
26688 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26689 $as_echo "$as_me: executing $ac_file commands" >&6;}
26694 case $ac_file$ac_mode in
26695 "as":F) chmod +x as ;;
26696 "collect-ld":F) chmod +x collect-ld ;;
26697 "nm":F) chmod +x nm ;;
26699 case ${CONFIG_HEADERS} in
26700 *auto-host.h:config.in*)
26703 # Make sure all the subdirs exist.
26704 for d in $subdirs doc build
26706 test -d $d || mkdir $d
26716 ac_clean_files=$ac_clean_files_save
26718 test $ac_write_fail = 0 ||
26719 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26722 # configure is writing to config.log, and then calls config.status.
26723 # config.status does its own redirection, appending to config.log.
26724 # Unfortunately, on DOS this fails, as config.log is still kept open
26725 # by configure, so config.status won't be able to
write to it
; its
26726 # output is simply discarded. So we exec the FD to /dev/null,
26727 # effectively closing config.log, so it can be properly (re)opened and
26728 # appended to by config.status. When coming back to configure, we
26729 # need to make the FD available again.
26730 if test "$no_create" != yes; then
26732 ac_config_status_args
=
26733 test "$silent" = yes &&
26734 ac_config_status_args
="$ac_config_status_args --quiet"
26736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26739 # would make configure fail if this is the last instruction.
26740 $ac_cs_success || as_fn_exit $?
26742 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26744 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}