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
684 ORIGINAL_NM_FOR_TARGET
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 ORIGINAL_AS_FOR_TARGET
762 CROSS_SYSTEM_HEADER_DIR
763 TARGET_SYSTEM_ROOT_DEFINE
769 ENABLE_BUILD_WITH_CXX
772 valgrind_path_defines
844 program_transform_name
855 ac_subst_files
='language_hooks'
857 enable_option_checking
862 enable_generated_files_in_srcdir
871 enable_gather_detailed_mem_stats
872 enable_build_with_cxx
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
897 enable_leading_mingw64_underscores
899 enable_win32_registry
906 enable_gnu_unique_object
907 enable_linker_build_id
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
916 ac_precious_vars
='build_alias
939 # Initialize some variables set by options.
941 ac_init_version
=false
942 ac_unrecognized_opts
=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name
=s
,x
,x
,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir
='${exec_prefix}/bin'
968 sbindir
='${exec_prefix}/sbin'
969 libexecdir
='${exec_prefix}/libexec'
970 datarootdir
='${prefix}/share'
971 datadir
='${datarootdir}'
972 sysconfdir
='${prefix}/etc'
973 sharedstatedir
='${prefix}/com'
974 localstatedir
='${prefix}/var'
975 includedir
='${prefix}/include'
976 oldincludedir
='/usr/include'
977 docdir
='${datarootdir}/doc/${PACKAGE}'
978 infodir
='${datarootdir}/info'
983 libdir
='${exec_prefix}/lib'
984 localedir
='${datarootdir}/locale'
985 mandir
='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\
$ac_option
999 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1009 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1011 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1012 bindir
=$ac_optarg ;;
1014 -build |
--build |
--buil |
--bui |
--bu)
1015 ac_prev
=build_alias
;;
1016 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1017 build_alias
=$ac_optarg ;;
1019 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1020 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1021 ac_prev
=cache_file
;;
1022 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1023 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1024 cache_file
=$ac_optarg ;;
1026 --config-cache |
-C)
1027 cache_file
=config.cache
;;
1029 -datadir |
--datadir |
--datadi |
--datad)
1031 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1032 datadir
=$ac_optarg ;;
1034 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1035 |
--dataroo |
--dataro |
--datar)
1036 ac_prev
=datarootdir
;;
1037 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1038 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1039 datarootdir
=$ac_optarg ;;
1041 -disable-* |
--disable-*)
1042 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1045 as_fn_error
"invalid feature name: $ac_useropt"
1046 ac_useropt_orig
=$ac_useropt
1047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_
$ac_useropt"
1052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep
=', ';;
1055 eval enable_
$ac_useropt=no
;;
1057 -docdir |
--docdir |
--docdi |
--doc |
--do)
1059 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1060 docdir
=$ac_optarg ;;
1062 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1064 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1065 dvidir
=$ac_optarg ;;
1067 -enable-* |
--enable-*)
1068 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1071 as_fn_error
"invalid feature name: $ac_useropt"
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_
$ac_useropt"
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval enable_
$ac_useropt=\
$ac_optarg ;;
1083 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1084 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1085 |
--exec |
--exe |
--ex)
1086 ac_prev
=exec_prefix
;;
1087 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1088 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1089 |
--exec=* |
--exe=* |
--ex=*)
1090 exec_prefix
=$ac_optarg ;;
1092 -gas |
--gas |
--ga |
--g)
1093 # Obsolete; use --with-gas.
1096 -help |
--help |
--hel |
--he |
-h)
1097 ac_init_help
=long
;;
1098 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1099 ac_init_help
=recursive
;;
1100 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1101 ac_init_help
=short
;;
1103 -host |
--host |
--hos |
--ho)
1104 ac_prev
=host_alias
;;
1105 -host=* |
--host=* |
--hos=* |
--ho=*)
1106 host_alias
=$ac_optarg ;;
1108 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1110 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1112 htmldir
=$ac_optarg ;;
1114 -includedir |
--includedir |
--includedi |
--included |
--include \
1115 |
--includ |
--inclu |
--incl |
--inc)
1116 ac_prev
=includedir
;;
1117 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1118 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1119 includedir
=$ac_optarg ;;
1121 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1123 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1124 infodir
=$ac_optarg ;;
1126 -libdir |
--libdir |
--libdi |
--libd)
1128 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1129 libdir
=$ac_optarg ;;
1131 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1132 |
--libexe |
--libex |
--libe)
1133 ac_prev
=libexecdir
;;
1134 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1135 |
--libexe=* |
--libex=* |
--libe=*)
1136 libexecdir
=$ac_optarg ;;
1138 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1139 ac_prev
=localedir
;;
1140 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1141 localedir
=$ac_optarg ;;
1143 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1144 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1145 ac_prev
=localstatedir
;;
1146 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1147 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1148 localstatedir
=$ac_optarg ;;
1150 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1152 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1153 mandir
=$ac_optarg ;;
1155 -nfp |
--nfp |
--nf)
1156 # Obsolete; use --without-fp.
1159 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1160 |
--no-cr |
--no-c |
-n)
1163 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1164 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1167 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1168 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1169 |
--oldin |
--oldi |
--old |
--ol |
--o)
1170 ac_prev
=oldincludedir
;;
1171 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1172 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1173 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1174 oldincludedir
=$ac_optarg ;;
1176 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1178 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1179 prefix
=$ac_optarg ;;
1181 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1182 |
--program-pre |
--program-pr |
--program-p)
1183 ac_prev
=program_prefix
;;
1184 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1185 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1186 program_prefix
=$ac_optarg ;;
1188 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1189 |
--program-suf |
--program-su |
--program-s)
1190 ac_prev
=program_suffix
;;
1191 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1192 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1193 program_suffix
=$ac_optarg ;;
1195 -program-transform-name |
--program-transform-name \
1196 |
--program-transform-nam |
--program-transform-na \
1197 |
--program-transform-n |
--program-transform- \
1198 |
--program-transform |
--program-transfor \
1199 |
--program-transfo |
--program-transf \
1200 |
--program-trans |
--program-tran \
1201 |
--progr-tra |
--program-tr |
--program-t)
1202 ac_prev
=program_transform_name
;;
1203 -program-transform-name=* |
--program-transform-name=* \
1204 |
--program-transform-nam=* |
--program-transform-na=* \
1205 |
--program-transform-n=* |
--program-transform-=* \
1206 |
--program-transform=* |
--program-transfor=* \
1207 |
--program-transfo=* |
--program-transf=* \
1208 |
--program-trans=* |
--program-tran=* \
1209 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1210 program_transform_name
=$ac_optarg ;;
1212 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1214 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1215 pdfdir
=$ac_optarg ;;
1217 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1219 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1222 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1223 |
-silent |
--silent |
--silen |
--sile |
--sil)
1226 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1228 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1230 sbindir
=$ac_optarg ;;
1232 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1233 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1234 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1236 ac_prev
=sharedstatedir
;;
1237 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1238 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1239 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1241 sharedstatedir
=$ac_optarg ;;
1243 -site |
--site |
--sit)
1245 -site=* |
--site=* |
--sit=*)
1248 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1250 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1251 srcdir
=$ac_optarg ;;
1253 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1254 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1255 ac_prev
=sysconfdir
;;
1256 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1257 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1258 sysconfdir
=$ac_optarg ;;
1260 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1261 ac_prev
=target_alias
;;
1262 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1263 target_alias
=$ac_optarg ;;
1265 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1268 -version |
--version |
--versio |
--versi |
--vers |
-V)
1269 ac_init_version
=: ;;
1272 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1275 as_fn_error
"invalid package name: $ac_useropt"
1276 ac_useropt_orig
=$ac_useropt
1277 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep
=', ';;
1285 eval with_
$ac_useropt=\
$ac_optarg ;;
1287 -without-* |
--without-*)
1288 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1291 as_fn_error
"invalid package name: $ac_useropt"
1292 ac_useropt_orig
=$ac_useropt
1293 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1298 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep
=', ';;
1301 eval with_
$ac_useropt=no
;;
1304 # Obsolete; use --with-x.
1307 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1308 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1309 ac_prev
=x_includes
;;
1310 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1311 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1312 x_includes
=$ac_optarg ;;
1314 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1315 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1316 ac_prev
=x_libraries
;;
1317 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1318 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1319 x_libraries
=$ac_optarg ;;
1321 -*) as_fn_error
"unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1326 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1330 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1332 eval $ac_envvar=\
$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 if test -n "$ac_prev"; then
1347 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error
"missing argument to $ac_option"
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1354 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 # Check all directory arguments for consistency.
1360 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val
=\$
$ac_var
1366 # Remove trailing slashes.
1369 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\
$ac_val;;
1372 # Be sure to have absolute directory names.
1374 [\\/$
]* | ?
:[\\/]* ) continue;;
1375 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1377 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1385 target
=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x
; then
1389 if test "x$build_alias" = x
; then
1390 cross_compiling
=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1399 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1401 test "$silent" = yes && exec 6>/dev
/null
1404 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di
=`ls -di .` &&
1406 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error
"working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error
"pwd does not report name of working directory"
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted
=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir
=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1444 ac_srcdir_defaulted
=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1448 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1450 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1462 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 for ac_var
in $ac_precious_vars; do
1465 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1467 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1478 \`configure' configures this package to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1541 --build=BUILD configure
for building on BUILD
[guessed
]
1542 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1543 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1547 if test -n "$ac_init_help"; then
1552 --disable-option-checking ignore unrecognized
--enable/--with options
1553 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1554 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1555 --enable-generated-files-in-srcdir
1556 put copies of generated files
in source dir
1557 intended
for creating
source tarballs
for users
1558 without texinfo bison or flex.
1559 --enable-werror-always enable -Werror despite compiler version
1560 --enable-checking=LIST
1561 enable expensive run-time checks. With LIST
,
1562 enable only specific categories of checks.
1563 Categories are
: yes,no
,all
,none
,release.
1564 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1565 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1566 --enable-coverage=LEVEL
1567 enable compiler
's code coverage collection.
1568 Use to measure compiler performance and locate
1569 unused parts of the compiler. With LEVEL, specify
1570 optimization. Values are opt, noopt,
1572 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1573 --enable-build-with-cxx build with C++ compiler instead of C compiler
1574 --enable-multilib enable library support for multiple ABIs
1575 --enable-__cxa_atexit enable __cxa_atexit for C++
1576 --enable-decimal-float={no,yes,bid,dpd}
1577 enable decimal float extension to C. Selecting 'bid
'
1578 or 'dpd
' choses which decimal floating point format
1580 --enable-fixed-point enable fixed-point arithmetic extension to C
1581 --enable-threads enable thread usage for target GCC
1582 --enable-threads=LIB use LIB thread package for target GCC
1583 --enable-tls enable or disable generation of tls code
1584 overriding the assembler check for tls support
1585 --enable-objc-gc enable the use of Boehm's garbage collector with
1586 the GNU Objective-C runtime
1587 --disable-shared don
't provide a shared libgcc
1588 --enable-intermodule build the compiler in one step
1589 --enable-languages=LIST specify which front-ends to build
1590 --disable-rpath do not hardcode runtime library paths
1591 --enable-initfini-array use .init_array/.fini_array sections
1592 --enable-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-leading-mingw64-underscores
1596 Enable leading underscores on 64 bit mingw targets
1597 --enable-cld enable -mcld by default for 32bit x86
1598 --disable-win32-registry
1599 disable lookup of installation paths in the
1600 Registry on Windows hosts
1601 --enable-win32-registry enable registry lookup (default)
1602 --enable-win32-registry=KEY
1603 use KEY instead of GCC version as the last portion
1605 --enable-shared[=PKGS] build shared libraries [default=yes]
1606 --enable-static[=PKGS] build static libraries [default=yes]
1607 --enable-fast-install[=PKGS]
1608 optimize for fast installation [default=yes]
1609 --disable-libtool-lock avoid locking (might break parallel builds)
1610 --enable-comdat enable COMDAT group support
1611 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1613 --enable-linker-build-id
1614 compiler will always pass --build-id to linker
1615 --enable-maintainer-mode
1616 enable make rules and dependencies not useful
1617 (and sometimes confusing) to the casual installer
1618 --enable-version-specific-runtime-libs
1619 specify that runtime libraries should be
1620 installed in a compiler-specific directory
1621 --enable-plugin enable plugin support
1624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1626 --with-build-libsubdir=DIR Directory where to find libraries for build system
1627 --with-local-prefix=DIR specifies directory to put local include
1628 --with-gxx-include-dir=DIR
1629 specifies directory to put g++ header files
1630 --with-cpp-install-dir=DIR
1631 install the user visible C preprocessor in DIR
1632 (relative to PREFIX) as well as PREFIX/bin
1633 --with-gnu-ld arrange to work with GNU ld.
1634 --with-ld arrange to use the specified ld (full pathname)
1635 --with-demangler-in-ld try to use demangler in GNU ld.
1636 --with-gnu-as arrange to work with GNU as
1637 --with-as arrange to use the specified as (full pathname)
1638 --with-stabs arrange to use stabs instead of host debug format
1639 --with-dwarf2 force the default debug format to be DWARF 2
1640 --with-build-sysroot=sysroot
1641 use sysroot as the system root during the build
1642 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1643 --with-specs=SPECS add SPECS to driver command-line processing
1644 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1645 --with-bugurl=URL Direct users to URL to report a bug
1646 --with-multilib-list Select multilibs (SH only)
1647 --with-gnu-ld assume the C compiler uses GNU ld default=no
1648 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1649 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1650 --with-system-libunwind use installed libunwind
1651 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1653 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1654 --with-plugin-ld=[ARG
] specify the plugin linker
1655 --with-long-double-128 Use
128-bit long double by default.
1656 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1658 --with-system-zlib use installed libz
1659 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1661 Some influential environment variables
:
1662 CC C compiler
command
1663 CFLAGS C compiler flags
1664 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1665 nonstandard directory
<lib dir
>
1666 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1667 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1668 you have headers
in a nonstandard directory
<include dir
>
1669 CXX C
++ compiler
command
1670 CXXFLAGS C
++ compiler flags
1672 CXXCPP C
++ preprocessor
1673 GMPLIBS How to link GMP
1674 GMPINC How to
find GMP include files
1675 PPLLIBS How to link PPL
1676 PPLINC How to
find PPL include files
1677 CLOOGLIBS How to link CLOOG
1678 CLOOGINC How to
find CLOOG include files
1679 LIBELFLIBS How to link libelf
1680 LIBELFINC How to
find libelf include files
1682 Use these variables to override the choices made by
`configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1685 Report bugs to the package provider.
1690 if test "$ac_init_help" = "recursive"; then
1691 # If there are subdirs, report their specific --help.
1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693 test -d "$ac_dir" ||
1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1702 # A ".." for each directory in $ac_dir_suffix.
1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1704 case $ac_top_builddir_sub in
1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1715 .) # We are building in place.
1717 ac_top_srcdir=$ac_top_builddir_sub
1718 ac_abs_top_srcdir=$ac_pwd ;;
1719 [\\/]* | ?:[\\/]* ) # Absolute name.
1720 ac_srcdir=$srcdir$ac_dir_suffix;
1721 ac_top_srcdir=$srcdir
1722 ac_abs_top_srcdir=$srcdir ;;
1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725 ac_top_srcdir=$ac_top_build_prefix$srcdir
1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1730 cd "$ac_dir" || { ac_status=$?; continue; }
1731 # Check for guested configure.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1749 generated by GNU Autoconf 2.64
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1772 *) ac_try_echo
=$ac_try;;
1774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1778 if test -s conftest.err
; then
1779 grep -v '^ *+' conftest.err
>conftest.er1
1780 cat conftest.er1
>&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.
$ac_objext; then :
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.
$ac_ext >&5
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1798 } # ac_fn_c_try_compile
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile
()
1805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1806 rm -f conftest.
$ac_objext
1807 if { { ac_try
="$ac_compile"
1809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_cxx_try_compile
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1847 *) ac_try_echo
=$ac_try;;
1849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853 if test -s conftest.err
; then
1854 grep -v '^ *+' conftest.err
>conftest.er1
1855 cat conftest.er1
>&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev
/null
&& {
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.
$ac_ext >&5
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1880 ac_fn_c_check_header_mongrel
()
1882 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1883 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1901 if ac_fn_c_try_compile
"$LINENO"; then :
1902 ac_header_compiler
=yes
1904 ac_header_compiler
=no
1906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1917 if ac_fn_c_try_cpp
"$LINENO"; then :
1918 ac_header_preproc
=yes
1920 ac_header_preproc
=no
1922 rm -f conftest.err conftest.
$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1952 eval "$3=\$ac_header_compiler"
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1968 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1969 if { { ac_try
="$ac_link"
1971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1982 *) ac_try_echo
=$ac_try;;
1984 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.
$ac_ext >&5
1996 ac_retval
=$ac_status
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile
()
2010 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 if ac_fn_c_try_compile
"$LINENO"; then :
2026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2040 ac_fn_c_compute_int
()
2042 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2043 if test "$cross_compiling" = yes; then
2044 # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2058 if ac_fn_c_try_compile
"$LINENO"; then :
2061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2074 if ac_fn_c_try_compile
"$LINENO"; then :
2075 ac_hi
=$ac_mid; break
2077 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2078 if test $ac_lo -le $ac_mid; then
2082 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 static int test_array [1 - 2 * !(($2) < 0)];
2100 if ac_fn_c_try_compile
"$LINENO"; then :
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2116 if ac_fn_c_try_compile
"$LINENO"; then :
2117 ac_lo
=$ac_mid; break
2119 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2120 if test $ac_mid -le $ac_hi; then
2124 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 if ac_fn_c_try_compile
"$LINENO"; then :
2153 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2173 FILE *f = fopen ("conftest.val", "w");
2178 long int i = longval ();
2181 fprintf (f, "%ld", i);
2185 unsigned long int i = ulongval ();
2188 fprintf (f, "%lu", i);
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2198 if ac_fn_c_try_run
"$LINENO"; then :
2199 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2211 } # ac_fn_c_compute_int
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type
()
2219 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 $as_echo_n "(cached) " >&6
2226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2238 if ac_fn_c_try_compile
"$LINENO"; then :
2239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2251 if ac_fn_c_try_compile
"$LINENO"; then :
2256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2265 } # ac_fn_c_check_type
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2271 ac_fn_c_find_intX_t
()
2273 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2280 for ac_type
in int
$2_t 'int' 'long int' \
2281 'long long int' 'short int' 'signed char'; do
2282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $ac_includes_default
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2295 if ac_fn_c_try_compile
"$LINENO"; then :
2296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2310 if ac_fn_c_try_compile
"$LINENO"; then :
2317 eval "$3=\$ac_type" ;;
2320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2324 if test "x$as_val" = x
""no
; then :
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2336 } # ac_fn_c_find_intX_t
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2343 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2344 rm -f conftest.
$ac_objext conftest
$ac_exeext
2345 if { { ac_try
="$ac_link"
2347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>conftest.err
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_c_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest$ac_exeext && {
2364 test "$cross_compiling" = yes ||
2365 $as_test_x conftest$ac_exeext
2369 $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2374 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376 # interfere with the next link command; also delete a directory that is
2377 # left behind by Apple's compiler. We do this before executing the actions.
2378 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 } # ac_fn_c_try_link
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2388 ac_fn_c_find_uintX_t ()
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394 $as_echo_n "(cached) " >&6
2397 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $ac_includes_default
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2412 if ac_fn_c_try_compile "$LINENO"; then :
2417 eval "$3=\$ac_type" ;;
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 if test "x$as_val" = x""no; then :
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2434 } # ac_fn_c_find_uintX_t
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2456 rm -f conftest.err conftest.$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 } # ac_fn_c_check_header_preproc
2465 # ac_fn_c_check_func LINENO FUNC VAR
2466 # ----------------------------------
2467 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2468 ac_fn_c_check_func ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2480 #define $2 innocuous_$2
2482 /* System header to define __stub macros and hopefully few prototypes,
2483 which can conflict with char $2 (); below.
2484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 <limits.h> exists even on freestanding compilers. */
2488 # include <limits.h>
2490 # include <assert.h>
2495 /* Override any GCC internal prototype to avoid an error.
2496 Use char because int might match the return type of a GCC
2497 builtin and then its argument prototype would still apply. */
2502 /* The GNU C library defines this for functions which it implements
2503 to always fail with ENOSYS. Some functions are actually named
2504 something starting with __ and the normal name is an alias. */
2505 #if defined __stub_$2 || defined __stub___$2
2517 if ac_fn_c_try_link "$LINENO"; then :
2522 rm -f core conftest.err conftest.$ac_objext \
2523 conftest$ac_exeext conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530 } # ac_fn_c_check_func
2532 # ac_fn_cxx_try_cpp LINENO
2533 # ------------------------
2534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_cxx_try_cpp ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 if { { ac_try="$ac_cpp conftest.$ac_ext"
2540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2541 *) ac_try_echo
=$ac_try;;
2543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 $as_echo "$ac_try_echo"; } >&5
2545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2547 if test -s conftest.err
; then
2548 grep -v '^ *+' conftest.err
>conftest.er1
2549 cat conftest.er1
>&5
2550 mv -f conftest.er1 conftest.err
2552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553 test $ac_status = 0; } >/dev
/null
&& {
2554 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2555 test ! -s conftest.err
2559 $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.
$ac_ext >&5
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2567 } # ac_fn_cxx_try_cpp
2569 # ac_fn_cxx_try_link LINENO
2570 # -------------------------
2571 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 ac_fn_cxx_try_link
()
2574 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2575 rm -f conftest.
$ac_objext conftest
$ac_exeext
2576 if { { ac_try
="$ac_link"
2578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583 (eval "$ac_link") 2>conftest.err
2585 if test -s conftest.err; then
2586 grep -v '^ *+' conftest.err >conftest.er1
2587 cat conftest.er1 >&5
2588 mv -f conftest.er1 conftest.err
2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; } && {
2592 test -z "$ac_cxx_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest$ac_exeext && {
2595 test "$cross_compiling" = yes ||
2596 $as_test_x conftest$ac_exeext
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2607 # interfere with the next link command; also delete a directory that is
2608 # left behind by Apple's compiler. We do this before executing the actions.
2609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613 } # ac_fn_cxx_try_link
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2618 It was created by $as_me, which was
2619 generated by GNU Autoconf 2.64. Invocation command line was
2631 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2632 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2633 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2634 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2635 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2637 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2638 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2640 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2641 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2642 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2643 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2644 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2645 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2646 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 $as_echo "PATH: $as_dir"
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2679 ac_must_keep_next=false
2685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687 | -silent | --silent | --silen | --sile | --sil)
2690 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2693 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2695 as_fn_append ac_configure_args1 " '$ac_arg'"
2696 if test $ac_must_keep_next = true; then
2697 ac_must_keep_next=false # Got value, back to normal.
2700 *=* | --config-cache | -C | -disable-* | --disable-* \
2701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703 | -with-* | --with-* | -without-* | --without-* | --x)
2704 case "$ac_configure_args0 " in
2705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2708 -* ) ac_must_keep_next=true ;;
2711 as_fn_append ac_configure_args " '$ac_arg'"
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log. We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725 # Save into config.log some information that might help in debugging.
2730 ## ---------------- ##
2731 ## Cache variables. ##
2732 ## ---------------- ##
2735 # The following way of writing the cache mishandles newlines in values,
2737 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2738 eval ac_val=\$$ac_var
2742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2746 _ | IFS | as_nl) ;; #(
2747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748 *) { eval $ac_var=; unset $ac_var;} ;;
2753 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2754 *${as_nl}ac_space=\ *)
2756 "s/'\''/'\''\\\\'\'''\''/g;
2757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2768 ## ----------------- ##
2769 ## Output variables. ##
2770 ## ----------------- ##
2773 for ac_var in $ac_subst_vars
2775 eval ac_val=\$$ac_var
2777 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 $as_echo "$ac_var='\''$ac_val'\''"
2783 if test -n "$ac_subst_files"; then
2785 ## ------------------- ##
2786 ## File substitutions. ##
2787 ## ------------------- ##
2790 for ac_var in $ac_subst_files
2792 eval ac_val=\$$ac_var
2794 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 $as_echo "$ac_var='\''$ac_val'\''"
2801 if test -s confdefs.h; then
2811 test "$ac_signal" != 0 &&
2812 $as_echo "$as_me: caught signal $ac_signal"
2813 $as_echo "$as_me: exit $exit_status"
2815 rm -f core *.core core.conftest.* &&
2816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2819 for ac_signal in 1 2 13 15; do
2820 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2825 rm -f -r conftest* confdefs.h
2827 $as_echo "/* confdefs.h */" > confdefs.h
2829 # Predefined preprocessor variables.
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_NAME "$PACKAGE_NAME"
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_STRING "$PACKAGE_STRING"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_URL "$PACKAGE_URL"
2856 # Let the site file select an alternate cache file if it wants to.
2857 # Prefer an explicitly selected file to automatically selected ones.
2860 if test -n "$CONFIG_SITE"; then
2861 ac_site_file1=$CONFIG_SITE
2862 elif test "x$prefix" != xNONE; then
2863 ac_site_file1=$prefix/share/config.site
2864 ac_site_file2=$prefix/etc/config.site
2866 ac_site_file1=$ac_default_prefix/share/config.site
2867 ac_site_file2=$ac_default_prefix/etc/config.site
2869 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2871 test "x$ac_site_file" = xNONE && continue
2872 if test -r "$ac_site_file"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2874 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2875 sed 's/^/| /' "$ac_site_file" >&5
2880 if test -r "$cache_file"; then
2881 # Some versions of bash will fail to source /dev/null (special
2882 # files actually), so we avoid doing that.
2883 if test -f "$cache_file"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2887 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888 *) . "./$cache_file";;
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2897 # Check that the precious variables saved in the cache have kept the same
2899 ac_cache_corrupted=false
2900 for ac_var in $ac_precious_vars; do
2901 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2902 eval ac_new_set=\$ac_env_${ac_var}_set
2903 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2904 eval ac_new_val=\$ac_env_${ac_var}_value
2905 case $ac_old_set,$ac_new_set in
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2908 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2912 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2916 if test "x$ac_old_val" != "x$ac_new_val"; then
2917 # differences in whitespace do not lead to failure.
2918 ac_old_val_w=`echo x
$ac_old_val`
2919 ac_new_val_w=`echo x
$ac_new_val`
2920 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2922 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2923 ac_cache_corrupted=:
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2926 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2927 eval $ac_var=\$ac_old_val
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2930 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2932 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2935 # Pass precious variables to config.status.
2936 if test "$ac_new_set" = set; then
2938 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2939 *) ac_arg=$ac_var=$ac_new_val ;;
2941 case " $ac_configure_args " in
2942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2943 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2947 if $ac_cache_corrupted; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2951 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2952 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2954 ## -------------------- ##
2955 ## Main body of script. ##
2956 ## -------------------- ##
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2972 gcc_version=`cat $srcdir/BASE-VER
`
2974 # Determine the host, build, and target systems
2976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2977 for ac_t in install-sh install.sh shtool; do
2978 if test -f "$ac_dir/$ac_t"; then
2980 ac_install_sh="$ac_aux_dir/$ac_t -c"
2985 if test -z "$ac_aux_dir"; then
2986 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2989 # These three variables are undocumented and unsupported,
2990 # and are intended to be withdrawn in a future Autoconf release.
2991 # They can cause serious problems if a builder's source tree is in a directory
2992 # whose full name contains unusual characters.
2993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2998 # Make sure we can run config.sub.
2999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3000 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3003 $as_echo_n "checking build system type... " >&6; }
3004 if test "${ac_cv_build+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3007 ac_build_alias=$build_alias
3008 test "x$ac_build_alias" = x &&
3009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3010 test "x$ac_build_alias" = x &&
3011 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3013 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3017 $as_echo "$ac_cv_build" >&6; }
3018 case $ac_cv_build in
3020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3023 ac_save_IFS=$IFS; IFS='-'
3029 # Remember, the first character of IFS is used to create $*,
3030 # except with old shells:
3033 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3037 $as_echo_n "checking host system type... " >&6; }
3038 if test "${ac_cv_host+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3041 if test "x$host_alias" = x; then
3042 ac_cv_host=$ac_cv_build
3044 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3045 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3050 $as_echo "$ac_cv_host" >&6; }
3053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3056 ac_save_IFS=$IFS; IFS='-'
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3066 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3070 $as_echo_n "checking target system type... " >&6; }
3071 if test "${ac_cv_target+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3074 if test "x$target_alias" = x; then
3075 ac_cv_target=$ac_cv_host
3077 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3078 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3083 $as_echo "$ac_cv_target" >&6; }
3084 case $ac_cv_target in
3086 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3088 target=$ac_cv_target
3089 ac_save_IFS=$IFS; IFS='-'
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3099 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3102 # The aliases save the names the user supplied, while $host etc.
3103 # will get canonicalized.
3104 test -n "$target_alias" &&
3105 test "$program_prefix$program_suffix$program_transform_name" = \
3107 program_prefix=${target_alias}-
3109 # Determine the noncanonical target name, for directory use.
3110 case ${build_alias} in
3111 "") build_noncanonical=${build} ;;
3112 *) build_noncanonical=${build_alias} ;;
3115 case ${host_alias} in
3116 "") host_noncanonical=${build_noncanonical} ;;
3117 *) host_noncanonical=${host_alias} ;;
3120 case ${target_alias} in
3121 "") target_noncanonical=${host_noncanonical} ;;
3122 *) target_noncanonical=${target_alias} ;;
3128 # Determine the target- and build-specific subdirectories
3130 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3131 # have matching libraries, they should use host libraries: Makefile.tpl
3132 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3133 # However, they still use the build modules, because the corresponding
3134 # host modules (e.g. bison) are only built for the host when bootstrap
3136 # - build_subdir is where we find build modules, and never changes.
3137 # - build_libsubdir is where we find build libraries, and can be overridden.
3139 # Prefix 'build-' so this never conflicts with target_subdir.
3140 build_subdir="build-${build_noncanonical}"
3142 # Check whether --with-build-libsubdir was given.
3143 if test "${with_build_libsubdir+set}" = set; then :
3144 withval=$with_build_libsubdir; build_libsubdir="$withval"
3146 build_libsubdir="$build_subdir"
3149 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3150 if ( test $srcdir = . && test -d gcc ) \
3151 || test -d $srcdir/../host-${host_noncanonical}; then
3152 host_subdir="host-${host_noncanonical}"
3157 target_subdir=${target_noncanonical}
3160 # Set program_transform_name
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s
,x
,x
', remove it if useless.
3168 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3172 # Check for bogus environment variables.
3173 # Test if LIBRARY_PATH contains the notation for the current directory
3174 # since this would lead to problems installing/building glibc.
3175 # LIBRARY_PATH contains the current directory if one of the following
3177 # - one of the terminals (":" and ";") is the first or last sign
3178 # - two terminals occur directly after each other
3179 # - the path contains an element with a dot in it
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3181 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3182 case ${LIBRARY_PATH} in
3183 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3184 library_path_setting="contains current directory"
3187 library_path_setting="ok"
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3191 $as_echo "$library_path_setting" >&6; }
3192 if test "$library_path_setting" != "ok"; then
3194 *** LIBRARY_PATH shouldn't contain the current directory when
3195 *** building gcc. Please change the environment variable
3196 *** and run configure again.
" "$LINENO" 5
3199 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3200 # since this would lead to problems installing/building glibc.
3201 # GCC_EXEC_PREFIX contains the current directory if one of the following
3203 # - one of the terminals (":" and ";") is the first or last sign
3204 # - two terminals occur directly after each other
3205 # - the path contains an element with a dot in it
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3207 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3208 case ${GCC_EXEC_PREFIX} in
3209 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3210 gcc_exec_prefix_setting="contains current directory
"
3213 gcc_exec_prefix_setting="ok
"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3217 $as_echo "$gcc_exec_prefix_setting" >&6; }
3218 if test "$gcc_exec_prefix_setting" != "ok
"; then
3220 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3221 *** building gcc. Please change the environment variable
3222 *** and run configure again." "$LINENO" 5
3229 # Specify the local prefix
3232 # Check whether --with-local-prefix was given.
3233 if test "${with_local_prefix+set}" = set; then :
3234 withval=$with_local_prefix; case "${withval}" in
3235 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3237 *) local_prefix=$with_local_prefix ;;
3242 # Default local prefix if it is empty
3243 if test x$local_prefix = x; then
3244 local_prefix=/usr/local
3247 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3248 # passed in by the toplevel make and thus we'd get different behavior
3249 # depending on where we built the sources.
3250 gcc_gxx_include_dir
=
3251 # Specify the g++ header file directory
3253 # Check whether --with-gxx-include-dir was given.
3254 if test "${with_gxx_include_dir+set}" = set; then :
3255 withval
=$with_gxx_include_dir; case "${withval}" in
3256 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3258 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3263 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3264 if test x
${gcc_gxx_include_dir} = x
; then
3265 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3266 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3268 libstdcxx_incdir
='include/c++/$(version)'
3269 if test x
$host != x
$target; then
3270 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3272 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277 # Check whether --with-cpp_install_dir was given.
3278 if test "${with_cpp_install_dir+set}" = set; then :
3279 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3280 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3281 elif test x
$withval != xno
; then
3282 cpp_install_dir
=$withval
3287 # We would like to our source tree to be readonly. However when releases or
3288 # pre-releases are generated, the flex/bison generated files as well as the
3289 # various formats of manuals need to be included along with the rest of the
3290 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3294 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3295 # Check whether --enable-generated-files-in-srcdir was given.
3296 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3297 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3299 generated_files_in_srcdir
=no
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3304 $as_echo "$generated_files_in_srcdir" >&6; }
3306 if test "$generated_files_in_srcdir" = "yes"; then
3313 # -------------------
3314 # Find default linker
3315 # -------------------
3319 # Check whether --with-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then :
3321 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3327 # With pre-defined ld
3329 # Check whether --with-ld was given.
3330 if test "${with_ld+set}" = set; then :
3331 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3334 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3335 if test ! -x "$DEFAULT_LINKER"; then
3336 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3337 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3341 cat >>confdefs.h
<<_ACEOF
3342 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3349 cat >>confdefs.h
<<_ACEOF
3350 #define HAVE_GNU_LD $gnu_ld
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3355 $as_echo_n "checking whether a default linker was specified... " >&6; }
3356 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3357 if test x
"$gnu_ld_flag" = x
"no"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3359 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3362 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3369 # With demangler in GNU ld
3371 # Check whether --with-demangler-in-ld was given.
3372 if test "${with_demangler_in_ld+set}" = set; then :
3373 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3379 # ----------------------
3380 # Find default assembler
3381 # ----------------------
3385 # Check whether --with-gnu-as was given.
3386 if test "${with_gnu_as+set}" = set; then :
3387 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3394 # Check whether --with-as was given.
3395 if test "${with_as+set}" = set; then :
3396 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3399 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3400 if test ! -x "$DEFAULT_ASSEMBLER"; then
3401 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3402 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3406 cat >>confdefs.h
<<_ACEOF
3407 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3414 cat >>confdefs.h
<<_ACEOF
3415 #define HAVE_GNU_AS $gnu_as
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3420 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3421 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3422 if test x
"$gas_flag" = x
"no"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3424 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3427 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3438 # If a non-executable a.out is present (e.g. created by GNU as above even if
3439 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3440 # file, even when creating an executable, so an execution test fails.
3441 # Remove possible default executable files to avoid this.
3443 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3444 # Autoconf includes it.
3445 rm -f a.out a.exe b.out
3447 # Find the native compiler
3449 ac_cpp
='$CPP $CPPFLAGS'
3450 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC
="$CC" # Let the user override the test.
3464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir
=.
3469 for ac_exec_ext
in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$ac_cv_prog_CC"; then
3494 # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc
; ac_word
=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_ac_ct_CC
="gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3530 if test "x$ac_ct_CC" = x
; then
3533 case $cross_compiling:$ac_tool_warned in
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned
=yes ;;
3545 if test -z "$CC"; then
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3548 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC
="$CC" # Let the user override the test.
3557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir
=.
3562 for ac_exec_ext
in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3586 if test -z "$CC"; then
3587 # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc
; ac_word
=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC
="$CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606 ac_prog_rejected
=yes
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 if test $ac_prog_rejected = yes; then
3618 # We found a bogon in the path, so make sure we never use it.
3619 set dummy
$ac_cv_prog_CC
3621 if test $# != 0; then
3622 # We chose a different compiler from the bogus one.
3623 # However, it has the same basename, so the bogon will be chosen
3624 # first if we set CC to just the basename; use the full file name.
3626 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 for ac_prog
in cl.exe
3646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC
="$CC" # Let the user override the test.
3656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir
=.
3661 for ac_exec_ext
in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$CC" && break
3686 if test -z "$CC"; then
3688 for ac_prog
in cl.exe
3690 # Extract the first word of "$ac_prog", so it can be a program name with args.
3691 set dummy
$ac_prog; ac_word
=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$ac_ct_CC"; then
3698 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir
=.
3705 for ac_exec_ext
in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_ac_ct_CC
="$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720 $as_echo "$ac_ct_CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$ac_ct_CC" && break
3730 if test "x$ac_ct_CC" = x
; then
3733 case $cross_compiling:$ac_tool_warned in
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned
=yes ;;
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error
"no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; }
3751 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3755 for ac_option
in --version -v -V -qversion; do
3756 { { ac_try
="$ac_compiler $ac_option >&5"
3758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3765 if test -s conftest.err; then
3767 ... rest of stderr output deleted ...
3768 10q' conftest.err >conftest.er1
3769 cat conftest.er1 >&5
3770 rm -f conftest.er1 conftest.err
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3787 ac_clean_files_save=$ac_clean_files
3788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3789 # Try to create an executable without -o first, disregard a.out.
3790 # It will help us diagnose broken compilers, and finding out an intuition
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3796 # The possible output files:
3797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3800 for ac_file in $ac_files
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809 if { { ac_try="$ac_link_default"
3811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3812 *) ac_try_echo
=$ac_try;;
3814 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link_default") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3825 for ac_file
in $ac_files ''
3827 test -f "$ac_file" ||
continue
3829 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3832 # We found the default executable, but exeext='' is most
3836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3838 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 # We set ac_cv_exeext here because the later test for it is not
3841 # safe: cross compilers may not add the suffix if given an `-o'
3842 # argument, so we may need to know it at that point already.
3843 # Even if this section looks crufty: it has the advantage of
3850 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856 $as_echo "$ac_file" >&6; }
3857 if test -z "$ac_file"; then :
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.
$ac_ext >&5
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status
77
3864 as_fn_error
"C compiler cannot create executables
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3867 ac_exeext
=$ac_cv_exeext
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3872 $as_echo_n "checking whether the C compiler works... " >&6; }
3873 # If not cross compiling, check that we can run a simple program.
3874 if test "$cross_compiling" != yes; then
3875 if { ac_try
='./$ac_file'
3876 { { case "(($ac_try" in
3877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_try") 2>&5
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; }; then
3888 if test "$cross_compiling" = maybe; then
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot run C compiled programs.
3894 If you meant to cross compile
, use \
`--host'.
3895 See \`config.log
' for more details." "$LINENO" 5; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3902 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3903 ac_clean_files=$ac_clean_files_save
3904 # Check that the compiler produces executables we can run. If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3925 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3928 for ac_file
in conftest.exe conftest conftest.
*; do
3929 test -f "$ac_file" ||
continue
3931 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3932 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details." "$LINENO" 5; }
3943 rm -f conftest
$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3947 rm -f conftest.
$ac_ext
3948 EXEEXT
=$ac_cv_exeext
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 $as_echo_n "checking for suffix of object files... " >&6; }
3952 if test "${ac_cv_objext+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try
="$ac_compile"
3969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_compile") 2>&5
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 for ac_file in conftest.o conftest.obj conftest.*; do
3979 test -f "$ac_file" || continue;
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of object files
: cannot compile
3993 See \
`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4020 if ac_fn_c_try_compile "$LINENO"; then :
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4058 if ac_fn_c_try_compile "$LINENO"; then :
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_c_try_compile "$LINENO"; then :
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_c_werror_flag=$ac_save_c_werror_flag
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4100 $as_echo "$ac_cv_prog_cc_g" >&6; }
4101 if test "$ac_test_CFLAGS" = set; then
4102 CFLAGS=$ac_save_CFLAGS
4103 elif test $ac_cv_prog_cc_g = yes; then
4104 if test "$GCC" = yes; then
4110 if test "$GCC" = yes; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4121 ac_cv_prog_cc_c89=no
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 #include <sys/stat.h>
4129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4130 struct buf { int x; };
4131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132 static char *e (p, i)
4138 static char *f (char * (*g) (char **, int), char **p, ...)
4143 s = g (p, va_arg (v,int));
4148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4149 function prototypes and stuff, but not '\xHH' hex character constants.
4150 These don't provoke an error unfortunately, instead are silently treated
4151 as 'x'. The following induces an error, until -std is added to get
4152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4153 array size at least. It's necessary to write '\x00'==0 to get something
4154 that's true only with -std. */
4155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158 inside strings and character constants. */
4160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4162 int test (int i, double x);
4163 struct s1 {int (*f) (int a);};
4164 struct s2 {int (*f) (double a);};
4165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4179 CC="$ac_save_CC $ac_arg"
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_c89=$ac_arg
4183 rm -f core conftest.err conftest.$ac_objext
4184 test "x$ac_cv_prog_cc_c89" != "xno" && break
4186 rm -f conftest.$ac_ext
4191 case "x$ac_cv_prog_cc_c89" in
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4199 CC="$CC $ac_cv_prog_cc_c89"
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4203 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 if test "x$CC" != xcc; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4215 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4218 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4220 set dummy $CC; ac_cc=`$as_echo "$2" |
4221 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4223 $as_echo_n "(cached) " >&6
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4236 # Make sure it works both with $CC and with simple cc.
4237 # We do the test twice because some compilers refuse to overwrite an
4238 # existing .o file with -o, though they will create one.
4239 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4241 if { { case "(($ac_try" in
4242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4243 *) ac_try_echo
=$ac_try;;
4245 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_try") 2>&5
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; } &&
4251 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_try") 2>&5
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; };
4262 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4263 if test "x$CC" != xcc; then
4264 # Test first that cc exists at all.
4265 if { ac_try='cc -c conftest.$ac_ext >&5'
4266 { { case "(($ac_try" in
4267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4268 *) ac_try_echo
=$ac_try;;
4270 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$ac_try") 2>&5
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }; }; then
4276 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4278 if { { case "(($ac_try" in
4279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_try") 2>&5
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; } &&
4288 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4290 *) ac_try_echo
=$ac_try;;
4292 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; };
4302 # cc exists but doesn't like -o.
4303 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4308 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4310 rm -f core conftest
*
4313 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315 $as_echo "yes" >&6; }
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4320 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4324 # expand $ac_aux_dir to an absolute path
4325 am_aux_dir
=`cd $ac_aux_dir && pwd`
4327 # FIXME: we rely on the cache variable name because
4328 # there is no other way.
4330 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4331 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4332 if test "$am_t" != yes; then
4333 # Losing compiler, so override with the script.
4334 # FIXME: It is wrong to rewrite CC.
4335 # But if we don't then we get into trouble of one sort or another.
4336 # A longer-term fix would be to have automake use am__CC in this case,
4337 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4338 CC
="$am_aux_dir/compile $CC"
4343 ac_cpp
='$CXXCPP $CPPFLAGS'
4344 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4347 if test -z "$CXX"; then
4348 if test -n "$CCC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_CXX+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4361 if test -n "$CXX"; then
4362 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir
=.
4369 for ac_exec_ext
in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 if test -n "$CXX"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4384 $as_echo "$CXX" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$CXX" && break
4394 if test -z "$CXX"; then
4396 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy
$ac_prog; ac_word
=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$ac_ct_CXX"; then
4406 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir
=.
4413 for ac_exec_ext
in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4426 if test -n "$ac_ct_CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4428 $as_echo "$ac_ct_CXX" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$ac_ct_CXX" && break
4438 if test "x$ac_ct_CXX" = x
; then
4441 case $cross_compiling:$ac_tool_warned in
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned
=yes ;;
4453 # Provide some information about the compiler.
4454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4457 for ac_option
in --version -v -V -qversion; do
4458 { { ac_try
="$ac_compiler $ac_option >&5"
4460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4467 if test -s conftest.err; then
4469 ... rest of stderr output deleted ...
4470 10q' conftest.err >conftest.er1
4471 cat conftest.er1 >&5
4472 rm -f conftest.er1 conftest.err
4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475 test $ac_status = 0; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4480 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4508 if test $ac_compiler_gnu = yes; then
4513 ac_test_CXXFLAGS=${CXXFLAGS+set}
4514 ac_save_CXXFLAGS=$CXXFLAGS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4517 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4520 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4521 ac_cxx_werror_flag=yes
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 ac_cv_prog_cxx_g=yes
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4550 if ac_fn_cxx_try_compile "$LINENO"; then :
4553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4566 if ac_fn_cxx_try_compile "$LINENO"; then :
4567 ac_cv_prog_cxx_g=yes
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4578 if test "$ac_test_CXXFLAGS" = set; then
4579 CXXFLAGS=$ac_save_CXXFLAGS
4580 elif test $ac_cv_prog_cxx_g = yes; then
4581 if test "$GXX" = yes; then
4587 if test "$GXX" = yes; then
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4610 if test -n "$GNATBIND"; then
4611 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 GNATBIND=$ac_cv_prog_GNATBIND
4631 if test -n "$GNATBIND"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4633 $as_echo "$GNATBIND" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4641 if test -z "$ac_cv_prog_GNATBIND"; then
4642 ac_ct_GNATBIND=$GNATBIND
4643 # Extract the first word of "gnatbind", so it can be a program name with args.
4644 set dummy gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$ac_ct_GNATBIND"; then
4651 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4671 if test -n "$ac_ct_GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4673 $as_echo "$ac_ct_GNATBIND" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4679 if test "x$ac_ct_GNATBIND" = x; then
4682 case $cross_compiling:$ac_tool_warned in
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4688 GNATBIND=$ac_ct_GNATBIND
4691 GNATBIND="$ac_cv_prog_GNATBIND"
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$GNATMAKE"; then
4703 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 GNATMAKE=$ac_cv_prog_GNATMAKE
4723 if test -n "$GNATMAKE"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4725 $as_echo "$GNATMAKE" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4733 if test -z "$ac_cv_prog_GNATMAKE"; then
4734 ac_ct_GNATMAKE=$GNATMAKE
4735 # Extract the first word of "gnatmake", so it can be a program name with args.
4736 set dummy gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$ac_ct_GNATMAKE"; then
4743 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4763 if test -n "$ac_ct_GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4765 $as_echo "$ac_ct_GNATMAKE" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4771 if test "x$ac_ct_GNATMAKE" = x; then
4774 case $cross_compiling:$ac_tool_warned in
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4780 GNATMAKE=$ac_ct_GNATMAKE
4783 GNATMAKE="$ac_cv_prog_GNATMAKE"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4787 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4788 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 cat >conftest.adb <<EOF
4792 procedure conftest is begin null; end conftest;
4794 acx_cv_cc_gcc_supports_ada=no
4795 # There is a bug in old released versions of GCC which causes the
4796 # driver to exit successfully when the appropriate language module
4797 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4798 # Therefore we must check for the error message as well as an
4799 # unsuccessful exit.
4800 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4801 # given a .adb file, but produce no object file. So we must check
4802 # if an object file was really produced to guard against this.
4803 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4804 if test x"$errors" = x && test -f conftest.$ac_objext; then
4805 acx_cv_cc_gcc_supports_ada=yes
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4810 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4812 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4819 # autoconf is lame and doesn't give us any substitution variable for this.
4820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4821 NO_MINUS_C_MINUS_O=yes
4823 OUTPUT_OPTION='-o $@'
4828 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4829 # optimizations to be activated explicitly by the toplevel.
4831 */prev-gcc/xgcc*) ;;
4832 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4852 if test -z "$CPP"; then
4853 if test "${ac_cv_prog_CPP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 # Double quotes because CPP needs to be expanded
4857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4860 for ac_c_preproc_warn_flag in '' yes
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4871 # include <limits.h>
4873 # include <assert.h>
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4880 # Broken: fails on valid input.
4883 rm -f conftest.err conftest.$ac_ext
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: success on invalid input.
4895 # Passes both tests.
4899 rm -f conftest.err conftest.$ac_ext
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.
$ac_ext
4904 if $ac_preproc_ok; then :
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4919 for ac_c_preproc_warn_flag
in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4930 # include <limits.h>
4932 # include <assert.h>
4936 if ac_fn_c_try_cpp
"$LINENO"; then :
4939 # Broken: fails on valid input.
4942 rm -f conftest.err conftest.
$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4950 if ac_fn_c_try_cpp
"$LINENO"; then :
4951 # Broken: success on invalid input.
4954 # Passes both tests.
4958 rm -f conftest.err conftest.
$ac_ext
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.
$ac_ext
4963 if $ac_preproc_ok; then :
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4973 ac_cpp
='$CPP $CPPFLAGS'
4974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4984 if test -z "$GREP"; then
4985 ac_path_GREP_found
=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4988 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4991 test -z "$as_dir" && as_dir
=.
4992 for ac_prog
in grep ggrep
; do
4993 for ac_exec_ext
in '' $ac_executable_extensions; do
4994 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997 # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
5000 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5003 $as_echo_n 0123456789 >"conftest.in"
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'GREP' >> "conftest.nl"
5010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5011 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5012 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_GREP
="$ac_path_GREP"
5016 ac_path_GREP_max
=$ac_count
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5021 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5024 $ac_path_GREP_found && break 3
5029 if test -z "$ac_cv_path_GREP"; then
5030 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033 ac_cv_path_GREP
=$GREP
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039 GREP
="$ac_cv_path_GREP"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5047 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5048 then ac_cv_path_EGREP
="$GREP -E"
5050 if test -z "$EGREP"; then
5051 ac_path_EGREP_found
=false
5052 # Loop through the user's path and test for each of PROGNAME-LIST
5053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5057 test -z "$as_dir" && as_dir
=.
5058 for ac_prog
in egrep; do
5059 for ac_exec_ext
in '' $ac_executable_extensions; do
5060 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063 # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5066 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5069 $as_echo_n 0123456789 >"conftest.in"
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 $as_echo 'EGREP' >> "conftest.nl"
5076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5078 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_EGREP
="$ac_path_EGREP"
5082 ac_path_EGREP_max
=$ac_count
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5090 $ac_path_EGREP_found && break 3
5095 if test -z "$ac_cv_path_EGREP"; then
5096 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099 ac_cv_path_EGREP
=$EGREP
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106 EGREP
="$ac_cv_path_EGREP"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5129 if ac_fn_c_try_compile
"$LINENO"; then :
5130 ac_cv_header_stdc
=yes
5132 ac_cv_header_stdc
=no
5134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5136 if test $ac_cv_header_stdc = yes; then
5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "memchr" >/dev
/null
2>&1; then :
5147 ac_cv_header_stdc
=no
5153 if test $ac_cv_header_stdc = yes; then
5154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev
/null
2>&1; then :
5164 ac_cv_header_stdc
=no
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then :
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5183 # define ISLOWER(c) \
5184 (('a' <= (c) && (c) <= 'i') \
5185 || ('j' <= (c) && (c) <= 'r') \
5186 || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 for (i = 0; i < 256; i++)
5196 if (XOR (islower (i), ISLOWER (i))
5197 || toupper (i) != TOUPPER (i))
5202 if ac_fn_c_try_run
"$LINENO"; then :
5205 ac_cv_header_stdc
=no
5207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5223 inttypes.h stdint.h unistd.h
5225 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5228 eval as_val
=\$
$as_ac_Header
5229 if test "x$as_val" = x
""yes; then :
5230 cat >>confdefs.h
<<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5248 if test "$MINIX" = yes; then
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5269 # define __EXTENSIONS__ 1
5270 $ac_includes_default
5279 if ac_fn_c_try_compile
"$LINENO"; then :
5280 ac_cv_safe_to_define___extensions__
=yes
5282 ac_cv_safe_to_define___extensions__
=no
5284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288 test $ac_cv_safe_to_define___extensions__ = yes &&
5289 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5291 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5295 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5297 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5301 ac_cpp
='$CPP $CPPFLAGS'
5302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5311 if test -z "$CPP"; then
5312 if test "${ac_cv_prog_CPP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5315 # Double quotes because CPP needs to be expanded
5316 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5319 for ac_c_preproc_warn_flag
in '' yes
5321 # Use a header file that comes with gcc, so configuring glibc
5322 # with a fresh cross-compiler works.
5323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324 # <limits.h> exists even on freestanding compilers.
5325 # On the NeXT, cc -E runs the code through the compiler's parser,
5326 # not just through cpp. "Syntax error" is here to catch this case.
5327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5330 # include <limits.h>
5332 # include <assert.h>
5336 if ac_fn_c_try_cpp
"$LINENO"; then :
5339 # Broken: fails on valid input.
5342 rm -f conftest.err conftest.
$ac_ext
5344 # OK, works on sane cases. Now check whether nonexistent headers
5345 # can be detected and how.
5346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #include <ac_nonexistent.h>
5350 if ac_fn_c_try_cpp
"$LINENO"; then :
5351 # Broken: success on invalid input.
5354 # Passes both tests.
5358 rm -f conftest.err conftest.
$ac_ext
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.
$ac_ext
5363 if $ac_preproc_ok; then :
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5378 for ac_c_preproc_warn_flag
in '' yes
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 # include <limits.h>
5391 # include <assert.h>
5395 if ac_fn_c_try_cpp
"$LINENO"; then :
5398 # Broken: fails on valid input.
5401 rm -f conftest.err conftest.
$ac_ext
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if ac_fn_c_try_cpp
"$LINENO"; then :
5410 # Broken: success on invalid input.
5413 # Passes both tests.
5417 rm -f conftest.err conftest.
$ac_ext
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.
$ac_ext
5422 if $ac_preproc_ok; then :
5425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5432 ac_cpp
='$CPP $CPPFLAGS'
5433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5443 for ac_kw
in inline __inline__ __inline
; do
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5453 if ac_fn_c_try_compile
"$LINENO"; then :
5454 ac_cv_c_inline
=$ac_kw
5456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5457 test "$ac_cv_c_inline" != no
&& break
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5464 case $ac_cv_c_inline in
5467 case $ac_cv_c_inline in
5469 *) ac_val
=$ac_cv_c_inline;;
5471 cat >>confdefs.h
<<_ACEOF
5473 #define inline $ac_val
5480 # sizeof(char) is 1 by definition.
5481 # The cast to long int works around a bug in the HP C Compiler
5482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5484 # This bug is HP SR number 8606223364.
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5486 $as_echo_n "checking size of void *... " >&6; }
5487 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5490 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5493 if test "$ac_cv_type_void_p" = yes; then
5494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5496 { as_fn_set_status
77
5497 as_fn_error
"cannot compute sizeof (void *)
5498 See \`config.log' for more details." "$LINENO" 5; }; }
5500 ac_cv_sizeof_void_p
=0
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5506 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5510 cat >>confdefs.h
<<_ACEOF
5511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5515 # The cast to long int works around a bug in the HP C Compiler
5516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5518 # This bug is HP SR number 8606223364.
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5520 $as_echo_n "checking size of short... " >&6; }
5521 if test "${ac_cv_sizeof_short+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5524 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5527 if test "$ac_cv_type_short" = yes; then
5528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { as_fn_set_status
77
5531 as_fn_error
"cannot compute sizeof (short)
5532 See \`config.log' for more details." "$LINENO" 5; }; }
5534 ac_cv_sizeof_short
=0
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5540 $as_echo "$ac_cv_sizeof_short" >&6; }
5544 cat >>confdefs.h
<<_ACEOF
5545 #define SIZEOF_SHORT $ac_cv_sizeof_short
5549 # The cast to long int works around a bug in the HP C Compiler
5550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5552 # This bug is HP SR number 8606223364.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5554 $as_echo_n "checking size of int... " >&6; }
5555 if test "${ac_cv_sizeof_int+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5558 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5561 if test "$ac_cv_type_int" = yes; then
5562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5564 { as_fn_set_status
77
5565 as_fn_error
"cannot compute sizeof (int)
5566 See \`config.log' for more details." "$LINENO" 5; }; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5574 $as_echo "$ac_cv_sizeof_int" >&6; }
5578 cat >>confdefs.h
<<_ACEOF
5579 #define SIZEOF_INT $ac_cv_sizeof_int
5583 # The cast to long int works around a bug in the HP C Compiler
5584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5586 # This bug is HP SR number 8606223364.
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5588 $as_echo_n "checking size of long... " >&6; }
5589 if test "${ac_cv_sizeof_long+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5592 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5595 if test "$ac_cv_type_long" = yes; then
5596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5598 { as_fn_set_status
77
5599 as_fn_error
"cannot compute sizeof (long)
5600 See \`config.log' for more details." "$LINENO" 5; }; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5608 $as_echo "$ac_cv_sizeof_long" >&6; }
5612 cat >>confdefs.h
<<_ACEOF
5613 #define SIZEOF_LONG $ac_cv_sizeof_long
5617 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5618 if test "x$ac_cv_type_long_long" = x
""yes; then :
5620 cat >>confdefs.h
<<_ACEOF
5621 #define HAVE_LONG_LONG 1
5624 # The cast to long int works around a bug in the HP C Compiler
5625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5627 # This bug is HP SR number 8606223364.
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5629 $as_echo_n "checking size of long long... " >&6; }
5630 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5636 if test "$ac_cv_type_long_long" = yes; then
5637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639 { as_fn_set_status
77
5640 as_fn_error
"cannot compute sizeof (long long)
5641 See \`config.log' for more details." "$LINENO" 5; }; }
5643 ac_cv_sizeof_long_long
=0
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5649 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5653 cat >>confdefs.h
<<_ACEOF
5654 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5660 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5661 if test "x$ac_cv_type___int64" = x
""yes; then :
5663 cat >>confdefs.h
<<_ACEOF
5664 #define HAVE___INT64 1
5667 # The cast to long int works around a bug in the HP C Compiler
5668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5670 # This bug is HP SR number 8606223364.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5672 $as_echo_n "checking size of __int64... " >&6; }
5673 if test "${ac_cv_sizeof___int64+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5676 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5679 if test "$ac_cv_type___int64" = yes; then
5680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5682 { as_fn_set_status
77
5683 as_fn_error
"cannot compute sizeof (__int64)
5684 See \`config.log' for more details." "$LINENO" 5; }; }
5686 ac_cv_sizeof___int64
=0
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5692 $as_echo "$ac_cv_sizeof___int64" >&6; }
5696 cat >>confdefs.h
<<_ACEOF
5697 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5703 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5704 case $ac_cv_c_int8_t in #(
5708 cat >>confdefs.h
<<_ACEOF
5709 #define int8_t $ac_cv_c_int8_t
5714 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5715 case $ac_cv_c_int16_t in #(
5719 cat >>confdefs.h
<<_ACEOF
5720 #define int16_t $ac_cv_c_int16_t
5725 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5726 case $ac_cv_c_int32_t in #(
5730 cat >>confdefs.h
<<_ACEOF
5731 #define int32_t $ac_cv_c_int32_t
5736 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5737 case $ac_cv_c_int64_t in #(
5741 cat >>confdefs.h
<<_ACEOF
5742 #define int64_t $ac_cv_c_int64_t
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5749 $as_echo_n "checking for long long int... " >&6; }
5750 if test "${ac_cv_type_long_long_int+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5756 /* For now, do not test the preprocessor; as of 2007 there are too many
5757 implementations with broken preprocessors. Perhaps this can
5758 be revisited in 2012. In the meantime, code should not expect
5759 #if to work with literals wider than 32 bits. */
5760 /* Test literals. */
5761 long long int ll = 9223372036854775807ll;
5762 long long int nll = -9223372036854775807LL;
5763 unsigned long long int ull = 18446744073709551615ULL;
5764 /* Test constant expressions. */
5765 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5767 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5773 /* Test availability of runtime routines for shift and division. */
5774 long long int llmax = 9223372036854775807ll;
5775 unsigned long long int ullmax = 18446744073709551615ull;
5776 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5777 | (llmax / ll) | (llmax % ll)
5778 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5779 | (ullmax / ull) | (ullmax % ull));
5785 if ac_fn_c_try_link
"$LINENO"; then :
5786 if test "$cross_compiling" = yes; then :
5787 ac_cv_type_long_long_int
=yes
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5794 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5795 # define LLONG_MAX (HALF - 1 + HALF)
5800 long long int n = 1;
5804 long long int m = n << i;
5807 if (LLONG_MAX / 2 < m)
5815 if ac_fn_c_try_run
"$LINENO"; then :
5816 ac_cv_type_long_long_int
=yes
5818 ac_cv_type_long_long_int
=no
5820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5825 ac_cv_type_long_long_int
=no
5827 rm -f core conftest.err conftest.
$ac_objext \
5828 conftest
$ac_exeext conftest.
$ac_ext
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5831 $as_echo "$ac_cv_type_long_long_int" >&6; }
5832 if test $ac_cv_type_long_long_int = yes; then
5834 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5840 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5841 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5843 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5846 test $ac_cv_type_long_long_int = yes \
5847 && ac_type
='long long int' \
5848 || ac_type
='long int'
5850 cat >>confdefs.h
<<_ACEOF
5851 #define intmax_t $ac_type
5858 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5859 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5861 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5864 for ac_type
in 'int' 'long int' 'long long int'; do
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 $ac_includes_default
5871 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5878 if ac_fn_c_try_compile
"$LINENO"; then :
5880 cat >>confdefs.h
<<_ACEOF
5881 #define intptr_t $ac_type
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 test -z "$ac_type" && break
5892 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5893 case $ac_cv_c_uint8_t in #(
5897 $as_echo "#define _UINT8_T 1" >>confdefs.h
5900 cat >>confdefs.h
<<_ACEOF
5901 #define uint8_t $ac_cv_c_uint8_t
5906 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5907 case $ac_cv_c_uint16_t in #(
5912 cat >>confdefs.h
<<_ACEOF
5913 #define uint16_t $ac_cv_c_uint16_t
5918 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5919 case $ac_cv_c_uint32_t in #(
5923 $as_echo "#define _UINT32_T 1" >>confdefs.h
5926 cat >>confdefs.h
<<_ACEOF
5927 #define uint32_t $ac_cv_c_uint32_t
5932 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5933 case $ac_cv_c_uint64_t in #(
5937 $as_echo "#define _UINT64_T 1" >>confdefs.h
5940 cat >>confdefs.h
<<_ACEOF
5941 #define uint64_t $ac_cv_c_uint64_t
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5948 $as_echo_n "checking for unsigned long long int... " >&6; }
5949 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 /* For now, do not test the preprocessor; as of 2007 there are too many
5956 implementations with broken preprocessors. Perhaps this can
5957 be revisited in 2012. In the meantime, code should not expect
5958 #if to work with literals wider than 32 bits. */
5959 /* Test literals. */
5960 long long int ll = 9223372036854775807ll;
5961 long long int nll = -9223372036854775807LL;
5962 unsigned long long int ull = 18446744073709551615ULL;
5963 /* Test constant expressions. */
5964 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5966 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5972 /* Test availability of runtime routines for shift and division. */
5973 long long int llmax = 9223372036854775807ll;
5974 unsigned long long int ullmax = 18446744073709551615ull;
5975 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976 | (llmax / ll) | (llmax % ll)
5977 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978 | (ullmax / ull) | (ullmax % ull));
5984 if ac_fn_c_try_link
"$LINENO"; then :
5985 ac_cv_type_unsigned_long_long_int
=yes
5987 ac_cv_type_unsigned_long_long_int
=no
5989 rm -f core conftest.err conftest.
$ac_objext \
5990 conftest
$ac_exeext conftest.
$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5993 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5994 if test $ac_cv_type_unsigned_long_long_int = yes; then
5996 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6002 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6003 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6005 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6008 test $ac_cv_type_unsigned_long_long_int = yes \
6009 && ac_type
='unsigned long long int' \
6010 || ac_type
='unsigned long int'
6012 cat >>confdefs.h
<<_ACEOF
6013 #define uintmax_t $ac_type
6020 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6021 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6023 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6026 for ac_type
in 'unsigned int' 'unsigned long int' \
6027 'unsigned long long int'; do
6028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 $ac_includes_default
6034 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6041 if ac_fn_c_try_compile
"$LINENO"; then :
6043 cat >>confdefs.h
<<_ACEOF
6044 #define uintptr_t $ac_type
6049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6050 test -z "$ac_type" && break
6068 # ---------------------
6069 # Warnings and checking
6070 # ---------------------
6072 # Check $CC warning features (if it's GCC).
6073 # We want to use -pedantic, but we don't want warnings about
6076 # * overlong strings
6077 # So, we only use -pedantic if we can disable those warnings.
6080 save_CFLAGS
="$CFLAGS"
6081 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6082 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6085 $as_echo_n "checking whether $CC supports $option... " >&6; }
6086 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6087 $as_echo_n "(cached) " >&6
6090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6101 if ac_fn_c_try_compile
"$LINENO"; then :
6102 eval "$as_acx_Woption=yes"
6104 eval "$as_acx_Woption=no"
6106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6109 eval ac_res
=\$
$as_acx_Woption
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6111 $as_echo "$ac_res" >&6; }
6112 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6113 loose_warn
="$loose_warn${loose_warn:+ }$option"
6116 CFLAGS
="$save_CFLAGS"
6119 save_CFLAGS
="$CFLAGS"
6120 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6121 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6124 $as_echo_n "checking whether $CC supports $option... " >&6; }
6125 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6126 $as_echo_n "(cached) " >&6
6129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6140 if ac_fn_c_try_compile
"$LINENO"; then :
6141 eval "$as_acx_Woption=yes"
6143 eval "$as_acx_Woption=no"
6145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6148 eval ac_res
=\$
$as_acx_Woption
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6150 $as_echo "$ac_res" >&6; }
6151 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6152 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6155 CFLAGS
="$save_CFLAGS"
6158 save_CFLAGS
="$CFLAGS"
6159 for option
in -Wmissing-format-attribute; do
6160 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6163 $as_echo_n "checking whether $CC supports $option... " >&6; }
6164 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6165 $as_echo_n "(cached) " >&6
6168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6179 if ac_fn_c_try_compile
"$LINENO"; then :
6180 eval "$as_acx_Woption=yes"
6182 eval "$as_acx_Woption=no"
6184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6187 eval ac_res
=\$
$as_acx_Woption
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6189 $as_echo "$ac_res" >&6; }
6190 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6191 strict_warn
="$strict_warn${strict_warn:+ }$option"
6194 CFLAGS
="$save_CFLAGS"
6197 save_CFLAGS
="$CFLAGS"
6198 for option
in -Wold-style-definition -Wc++-compat; do
6199 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6202 $as_echo_n "checking whether $CC supports $option... " >&6; }
6203 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6204 $as_echo_n "(cached) " >&6
6207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6218 if ac_fn_c_try_compile
"$LINENO"; then :
6219 eval "$as_acx_Woption=yes"
6221 eval "$as_acx_Woption=no"
6223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6226 eval ac_res
=\$
$as_acx_Woption
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6228 $as_echo "$ac_res" >&6; }
6229 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6230 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6233 CFLAGS
="$save_CFLAGS"
6235 if test "$GCC" = yes; then :
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6237 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6238 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6241 save_CFLAGS
="$CFLAGS"
6242 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6254 if ac_fn_c_try_compile
"$LINENO"; then :
6255 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6257 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 CFLAGS
="$save_CFLAGS"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6263 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6264 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6265 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6270 # Check whether --enable-werror-always was given.
6271 if test "${enable_werror_always+set}" = set; then :
6272 enableval
=$enable_werror_always;
6274 enable_werror_always
=no
6277 if test $enable_werror_always = yes; then :
6278 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6283 # The above macros do nothing if the compiler is not GCC. However, the
6284 # Makefile has more goo to add other flags, so these variables are used
6285 # to enable warnings only for GCC.
6288 if test "x$GCC" = "xyes"; then
6289 warn_cflags
='$(GCC_WARN_CFLAGS)'
6290 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6295 # Enable expensive internal checks
6297 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6301 # Check whether --enable-checking was given.
6302 if test "${enable_checking+set}" = set; then :
6303 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6306 # Determine the default checks.
6307 if test x
$is_release = x
; then
6308 ac_checking_flags
=yes
6310 ac_checking_flags
=release
6314 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6315 for check
in release
$ac_checking_flags
6318 # these set all the flags to specific states
6319 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6320 ac_fold_checking
= ; ac_gc_checking
=1 ;
6321 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6322 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6323 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6324 ac_types_checking
=1 ;;
6325 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6326 ac_fold_checking
= ; ac_gc_checking
= ;
6327 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6328 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6329 ac_tree_checking
= ; ac_valgrind_checking
= ;
6330 ac_types_checking
= ;;
6331 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6332 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6333 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6334 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6335 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6336 ac_types_checking
=1 ;;
6337 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6338 ac_fold_checking
= ; ac_gc_checking
= ;
6339 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6340 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6341 ac_tree_checking
= ; ac_valgrind_checking
= ;
6342 ac_types_checking
= ;;
6343 # these enable particular checks
6344 assert
) ac_assert_checking
=1 ;;
6345 df
) ac_df_checking
=1 ;;
6346 fold) ac_fold_checking
=1 ;;
6347 gc
) ac_gc_checking
=1 ;;
6348 gcac
) ac_gc_always_collect
=1 ;;
6349 gimple
) ac_gimple_checking
=1 ;;
6350 misc
) ac_checking
=1 ;;
6351 rtl
) ac_rtl_checking
=1 ;;
6352 rtlflag
) ac_rtlflag_checking
=1 ;;
6353 runtime
) ac_runtime_checking
=1 ;;
6354 tree
) ac_tree_checking
=1 ;;
6355 types
) ac_types_checking
=1 ;;
6356 valgrind
) ac_valgrind_checking
=1 ;;
6357 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6363 if test x
$ac_checking != x
; then
6365 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6367 nocommon_flag
=-fno-common
6370 if test x
$ac_df_checking != x
; then
6372 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6375 if test x
$ac_assert_checking != x
; then
6377 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6380 if test x
$ac_gimple_checking != x
; then
6382 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6386 if test x
$ac_runtime_checking != x
; then
6388 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6391 if test x
$ac_tree_checking != x
; then
6393 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6395 TREEBROWSER
=tree-browser.o
6397 if test x
$ac_types_checking != x
; then
6399 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6403 if test x
$ac_rtl_checking != x
; then
6405 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6408 if test x
$ac_rtlflag_checking != x
; then
6410 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6413 if test x
$ac_gc_checking != x
; then
6415 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6418 if test x
$ac_gc_always_collect != x
; then
6420 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6423 if test x
$ac_fold_checking != x
; then
6425 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6428 valgrind_path_defines
=
6431 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6432 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6440 if test x
$ac_valgrind_checking != x
; then
6441 # It is certainly possible that there's valgrind but no valgrind.h.
6442 # GCC relies on making annotations so we must have both.
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6444 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 #include <valgrind/memcheck.h>
6448 #ifndef VALGRIND_DISCARD
6449 #error VALGRIND_DISCARD not defined
6452 if ac_fn_c_try_cpp
"$LINENO"; then :
6453 gcc_cv_header_valgrind_memcheck_h
=yes
6455 gcc_cv_header_valgrind_memcheck_h
=no
6457 rm -f conftest.err conftest.
$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6459 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6461 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <memcheck.h>
6465 #ifndef VALGRIND_DISCARD
6466 #error VALGRIND_DISCARD not defined
6469 if ac_fn_c_try_cpp
"$LINENO"; then :
6470 gcc_cv_header_memcheck_h
=yes
6472 gcc_cv_header_memcheck_h
=no
6474 rm -f conftest.err conftest.
$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6476 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6478 # Prepare PATH_SEPARATOR.
6479 # The user is always right.
6480 if test "${PATH_SEPARATOR+set}" != set; then
6481 echo "#! /bin/sh" >conf$$.sh
6482 echo "exit 0" >>conf$$.sh
6484 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6492 # Find out how to test for executable files. Don't use a zero-byte file,
6493 # as systems may use methods other than mode bits to determine executability.
6494 cat >conf$$.
file <<_ASEOF
6498 chmod +x conf$$.
file
6499 if test -x conf$$.
file >/dev
/null
2>&1; then
6500 ac_executable_p
="test -x"
6502 ac_executable_p
="test -f"
6506 # Extract the first word of "valgrind", so it can be a program name with args.
6507 set dummy valgrind
; ac_word
=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6513 case "$valgrind_path" in
6515 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6518 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6519 for ac_dir
in $PATH; do
6521 test -z "$ac_dir" && ac_dir
=.
6522 for ac_exec_ext
in '' $ac_executable_extensions; do
6523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6524 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6525 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6535 valgrind_path
="$ac_cv_path_valgrind_path"
6536 if test -n "$valgrind_path"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6538 $as_echo "$valgrind_path" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6544 if test "x$valgrind_path" = "x" \
6545 ||
(test $have_valgrind_h = no \
6546 && test $gcc_cv_header_memcheck_h = no \
6547 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6548 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6550 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6551 valgrind_command
="$valgrind_path -q"
6553 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6555 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6557 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6560 if test $gcc_cv_header_memcheck_h = yes; then
6562 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6569 # Enable code coverage collection
6570 # Check whether --enable-coverage was given.
6571 if test "${enable_coverage+set}" = set; then :
6572 enableval
=$enable_coverage; case "${enableval}" in
6574 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6577 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6580 # a.k.a. --disable-coverage
6584 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6593 # Check whether --enable-gather-detailed-mem-stats was given.
6594 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6595 enableval
=$enable_gather_detailed_mem_stats;
6597 enable_gather_detailed_mem_stats
=no
6600 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6602 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6606 # -------------------------------
6607 # Miscenalleous configure options
6608 # -------------------------------
6610 # See if we are building gcc with C++.
6611 # Check whether --enable-build-with-cxx was given.
6612 if test "${enable_build_with_cxx+set}" = set; then :
6613 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6615 ENABLE_BUILD_WITH_CXX
=no
6622 # Check whether --with-stabs was given.
6623 if test "${with_stabs+set}" = set; then :
6624 withval
=$with_stabs; stabs
="$with_stabs"
6630 # Determine whether or not multilibs are enabled.
6631 # Check whether --enable-multilib was given.
6632 if test "${enable_multilib+set}" = set; then :
6633 enableval
=$enable_multilib;
6640 # Enable __cxa_atexit for C++.
6641 # Check whether --enable-__cxa_atexit was given.
6642 if test "${enable___cxa_atexit+set}" = set; then :
6643 enableval
=$enable___cxa_atexit;
6647 # Enable C extension for decimal float if target supports it.
6648 # Check whether --enable-decimal-float was given.
6649 if test "${enable_decimal_float+set}" = set; then :
6650 enableval
=$enable_decimal_float;
6651 case $enable_decimal_float in
6652 yes | no | bid | dpd
) ;;
6653 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6654 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6660 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6661 enable_decimal_float
=yes
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6665 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6666 enable_decimal_float
=no
6673 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6675 cat >>confdefs.h
<<_ACEOF
6676 #define ENABLE_DECIMAL_FLOAT $dfp
6680 # x86's use BID format instead of DPD
6681 case x
$enable_decimal_float in
6684 i?
86*-*-linux* | x86_64
*-*-linux*)
6685 enable_decimal_float
=bid
6688 enable_decimal_float
=dpd
6693 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6694 # dependency on libdecnumber.
6695 enable_decimal_float
=dpd
6700 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6702 cat >>confdefs.h
<<_ACEOF
6703 #define ENABLE_DECIMAL_BID_FORMAT $bid
6707 # Enable C extension for fixed-point arithmetic.
6708 # Check whether --enable-fixed-point was given.
6709 if test "${enable_fixed_point+set}" = set; then :
6710 enableval
=$enable_fixed_point;
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6719 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6720 enable_fixed_point
=no
6723 enable_fixed_point
=yes
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6729 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6730 enable_fixed_point
=no
6738 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6740 cat >>confdefs.h
<<_ACEOF
6741 #define ENABLE_FIXED_POINT $fixedpoint
6746 # Pass with no value to take the default
6747 # Pass with a value to specify a thread package
6748 # Check whether --enable-threads was given.
6749 if test "${enable_threads+set}" = set; then :
6750 enableval
=$enable_threads;
6756 # Check whether --enable-tls was given.
6757 if test "${enable_tls+set}" = set; then :
6758 enableval
=$enable_tls;
6761 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6762 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6770 # Check whether --enable-objc-gc was given.
6771 if test "${enable_objc_gc+set}" = set; then :
6772 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6783 # Check whether --with-dwarf2 was given.
6784 if test "${with_dwarf2+set}" = set; then :
6785 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6791 # Check whether --enable-shared was given.
6792 if test "${enable_shared+set}" = set; then :
6793 enableval
=$enable_shared;
6794 case $enable_shared in
6798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6799 for pkg
in $enableval; do
6800 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6815 # Check whether --with-build-sysroot was given.
6816 if test "${with_build_sysroot+set}" = set; then :
6817 withval
=$with_build_sysroot;
6822 # Check whether --with-sysroot was given.
6823 if test "${with_sysroot+set}" = set; then :
6824 withval
=$with_sysroot;
6825 case ${with_sysroot} in
6826 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6827 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6830 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6831 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6833 if test "x$prefix" = xNONE
; then
6834 test_prefix
=/usr
/local
6838 if test "x$exec_prefix" = xNONE
; then
6839 test_exec_prefix
=$test_prefix
6841 test_exec_prefix
=$exec_prefix
6843 case ${TARGET_SYSTEM_ROOT} in
6844 "${test_prefix}"|
"${test_prefix}/"*|\
6845 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6846 '${prefix}'|
'${prefix}/'*|\
6847 '${exec_prefix}'|
'${exec_prefix}/'*)
6848 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6849 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6856 TARGET_SYSTEM_ROOT_DEFINE
=
6857 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6866 # Check whether --with-specs was given.
6867 if test "${with_specs+set}" = set; then :
6868 withval
=$with_specs; CONFIGURE_SPECS
=$withval
6876 # Build with intermodule optimisations
6877 # Check whether --enable-intermodule was given.
6878 if test "${enable_intermodule+set}" = set; then :
6879 enableval
=$enable_intermodule; case ${enable_intermodule} in
6880 yes) onestep
="-onestep";;
6891 # Check whether --with-pkgversion was given.
6892 if test "${with_pkgversion+set}" = set; then :
6893 withval
=$with_pkgversion; case "$withval" in
6894 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6896 *) PKGVERSION
="($withval) " ;;
6907 # Check whether --with-bugurl was given.
6908 if test "${with_bugurl+set}" = set; then :
6909 withval
=$with_bugurl; case "$withval" in
6910 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6913 *) BUGURL
="$withval"
6917 BUGURL
="http://gcc.gnu.org/bugs.html"
6927 REPORT_BUGS_TO
="<$BUGURL>"
6928 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6935 # Sanity check enable_languages in case someone does not run the toplevel
6936 # configure # script.
6937 # Check whether --enable-languages was given.
6938 if test "${enable_languages+set}" = set; then :
6939 enableval
=$enable_languages; case ,${enable_languages}, in
6941 # go safe -- we cannot be much sure without the toplevel
6943 # analysis of which target libs are present and usable
6947 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6952 enable_languages
=c
,${enable_languages}
6961 # Check whether --with-multilib-list was given.
6962 if test "${with_multilib_list+set}" = set; then :
6963 withval
=$with_multilib_list; :
6965 with_multilib_list
=default
6969 # -------------------------
6970 # Checks for other programs
6971 # -------------------------
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6976 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6977 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6978 $as_echo_n "(cached) " >&6
6980 cat >conftest.
make <<\_ACEOF
6983 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6985 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6988 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6990 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6994 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6996 $as_echo "yes" >&6; }
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 SET_MAKE
="MAKE=${MAKE-make}"
7005 # Find some useful tools
7006 for ac_prog
in gawk mawk nawk
awk
7008 # Extract the first word of "$ac_prog", so it can be a program name with args.
7009 set dummy
$ac_prog; ac_word
=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_AWK+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7015 if test -n "$AWK"; then
7016 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7022 test -z "$as_dir" && as_dir
=.
7023 for ac_exec_ext
in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_AWK
="$ac_prog"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 if test -n "$AWK"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7038 $as_echo "$AWK" >&6; }
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7045 test -n "$AWK" && break
7048 # We need awk to create options.c and options.h.
7049 # Bail out if it's missing.
7051 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7055 $as_echo_n "checking whether ln -s works... " >&6; }
7056 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7059 rm -f conftestdata_t
7060 echo >conftestdata_f
7061 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7063 gcc_cv_prog_LN_S
="ln -s"
7065 if ln conftestdata_f conftestdata_t
2>/dev
/null
7069 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7071 gcc_cv_prog_LN_S
="cp -p"
7077 rm -f conftestdata_f conftestdata_t
7080 LN_S
="$gcc_cv_prog_LN_S"
7081 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7083 $as_echo "yes" >&6; }
7085 if test "$gcc_cv_prog_LN_S" = "ln"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7087 $as_echo "no, using ln" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7090 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7095 $as_echo_n "checking whether ln works... " >&6; }
7096 if test "${acx_cv_prog_LN+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7099 rm -f conftestdata_t
7100 echo >conftestdata_f
7101 if ln conftestdata_f conftestdata_t
2>/dev
/null
7107 rm -f conftestdata_f conftestdata_t
7110 if test $acx_cv_prog_LN = no
; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7113 $as_echo "no, using $LN" >&6; }
7115 LN
="$acx_cv_prog_LN"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7117 $as_echo "yes" >&6; }
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7122 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7128 if test -n "$RANLIB"; then
7129 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir
=.
7136 for ac_exec_ext
in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 RANLIB
=$ac_cv_prog_RANLIB
7149 if test -n "$RANLIB"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7151 $as_echo "$RANLIB" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7159 if test -z "$ac_cv_prog_RANLIB"; then
7160 ac_ct_RANLIB
=$RANLIB
7161 # Extract the first word of "ranlib", so it can be a program name with args.
7162 set dummy ranlib
; ac_word
=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7168 if test -n "$ac_ct_RANLIB"; then
7169 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir
=.
7176 for ac_exec_ext
in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7189 if test -n "$ac_ct_RANLIB"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7191 $as_echo "$ac_ct_RANLIB" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7197 if test "x$ac_ct_RANLIB" = x
; then
7200 case $cross_compiling:$ac_tool_warned in
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned
=yes ;;
7206 RANLIB
=$ac_ct_RANLIB
7209 RANLIB
="$ac_cv_prog_RANLIB"
7214 # By default, the Darwin ranlib will not treat common symbols as
7215 # definitions when building the archive table of contents. Other
7216 # ranlibs do that; pass an option to the Darwin ranlib that makes
7217 # it behave similarly.
7225 # Find a good install program. We prefer a C program (faster),
7226 # so one script is as good as another. But avoid the broken or
7227 # incompatible versions:
7228 # SysV /etc/install, /usr/sbin/install
7229 # SunOS /usr/etc/install
7230 # IRIX /sbin/install
7232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7234 # ./install, which can be erroneously created by make from ./install.sh.
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7236 $as_echo_n "checking for a BSD compatible install... " >&6; }
7237 if test -z "$INSTALL"; then
7238 if test "${ac_cv_path_install+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7241 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7242 for ac_dir
in $PATH; do
7243 # Account for people who put trailing slashes in PATH elements.
7245 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7247 # OSF1 and SCO ODT 3.0 have their own names for install.
7248 for ac_prog
in ginstall scoinst
install; do
7249 if test -f $ac_dir/$ac_prog; then
7250 if test $ac_prog = install &&
7251 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7252 # AIX install. It has an incompatible calling convention.
7253 # OSF/1 installbsd also uses dspmsg, but is usable.
7256 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7267 if test "${ac_cv_path_install+set}" = set; then
7268 INSTALL
="$ac_cv_path_install"
7270 # As a last resort, use the slow shell script. We don't cache a
7271 # path for INSTALL within a source directory, because that will
7272 # break other packages using the cache if that directory is
7273 # removed, or if the path is relative.
7274 INSTALL
="$ac_install_sh"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7278 $as_echo "$INSTALL" >&6; }
7280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7281 # It thinks the first close brace ends the variable substitution.
7282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7284 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7287 # See if cmp has --ignore-initial.
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7289 $as_echo_n "checking for cmp's capabilities... " >&6; }
7290 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7295 gcc_cv_prog_cmp_skip
=slowcompare
7296 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7297 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7300 gcc_cv_prog_cmp_skip
=gnucompare
7303 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7304 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7305 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7308 gcc_cv_prog_cmp_skip
=fastcompare
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7316 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7317 make_compare_target
=$gcc_cv_prog_cmp_skip
7321 # See if we have the mktemp command.
7322 # Extract the first word of "mktemp", so it can be a program name with args.
7323 set dummy mktemp
; ac_word
=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7329 if test -n "$have_mktemp_command"; then
7330 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir
=.
7337 for ac_exec_ext
in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_have_mktemp_command
="yes"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7350 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7351 if test -n "$have_mktemp_command"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7353 $as_echo "$have_mktemp_command" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7361 # See if makeinfo has been installed and is modern enough
7362 # that we can use it.
7364 # Extract the first word of "makeinfo", so it can be a program name with args.
7365 set dummy makeinfo
; ac_word
=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$MAKEINFO"; then
7372 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir
=.
7379 for ac_exec_ext
in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_MAKEINFO
="makeinfo"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 MAKEINFO
=$ac_cv_prog_MAKEINFO
7392 if test -n "$MAKEINFO"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7394 $as_echo "$MAKEINFO" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7401 if test -n "$MAKEINFO"; then
7402 # Found it, now check the version.
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7404 $as_echo_n "checking for modern makeinfo... " >&6; }
7405 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7408 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7409 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7411 case $ac_prog_version in
7412 '') gcc_cv_prog_makeinfo_modern
=no
;;
7413 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7414 *) gcc_cv_prog_makeinfo_modern
=no
;;
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7419 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7421 gcc_cv_prog_makeinfo_modern
=no
7423 if test $gcc_cv_prog_makeinfo_modern = no
; then
7424 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7427 if test $gcc_cv_prog_makeinfo_modern = no
; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7429 *** Makeinfo is missing or too old.
7430 *** Info documentation will not be built." >&5
7431 $as_echo "$as_me: WARNING:
7432 *** Makeinfo is missing or too old.
7433 *** Info documentation will not be built." >&2;}
7440 # Is pod2man recent enough to regenerate manpages?
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7442 $as_echo_n "checking for recent Pod::Man... " >&6; }
7443 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7445 $as_echo "yes" >&6; }
7446 GENERATED_MANPAGES
=generated-manpages
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7454 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7459 # Extract the first word of "$ac_prog", so it can be a program name with args.
7460 set dummy
$ac_prog; ac_word
=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_FLEX+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7466 if test -n "$FLEX"; then
7467 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir
=.
7474 for ac_exec_ext
in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_FLEX
="$ac_prog"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 FLEX
=$ac_cv_prog_FLEX
7487 if test -n "$FLEX"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7489 $as_echo "$FLEX" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7496 test -n "$FLEX" && break
7498 test -n "$FLEX" || FLEX
="$MISSING flex"
7502 for ac_prog
in bison
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy
$ac_prog; ac_word
=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_BISON+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7511 if test -n "$BISON"; then
7512 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir
=.
7519 for ac_exec_ext
in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_BISON
="$ac_prog"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 BISON
=$ac_cv_prog_BISON
7532 if test -n "$BISON"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7534 $as_echo "$BISON" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7541 test -n "$BISON" && break
7543 test -n "$BISON" || BISON
="$MISSING bison"
7546 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7547 # check for build == host before using them.
7550 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7551 && test -d ..
/binutils
; then
7552 NM
='$(objdir)/../binutils/nm-new'
7554 # Extract the first word of "nm", so it can be a program name with args.
7555 set dummy nm
; ac_word
=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_NM+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7561 if test -n "$NM"; then
7562 ac_cv_prog_NM
="$NM" # Let the user override the test.
7564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir
=.
7569 for ac_exec_ext
in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7583 if test -n "$NM"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7585 $as_echo "$NM" >&6; }
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7595 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7596 && test -d ..
/binutils
; then
7597 AR
='$(objdir)/../binutils/ar'
7599 # Extract the first word of "ar", so it can be a program name with args.
7600 set dummy
ar; ac_word
=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_AR+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$AR"; then
7607 ac_cv_prog_AR
="$AR" # Let the user override the test.
7609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir
=.
7614 for ac_exec_ext
in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7628 if test -n "$AR"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7630 $as_echo "$AR" >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7640 # --------------------
7641 # Checks for C headers
7642 # --------------------
7644 # Need to reject headers which give warnings, so that the -Werror bootstrap
7645 # works later. *sigh* This needs to come before all header checks.
7647 ac_c_preproc_warn_flag
=yes
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7650 $as_echo_n "checking for ANSI C header files... " >&6; }
7651 if test "${ac_cv_header_stdc+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7669 if ac_fn_c_try_compile
"$LINENO"; then :
7670 ac_cv_header_stdc
=yes
7672 ac_cv_header_stdc
=no
7674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7676 if test $ac_cv_header_stdc = yes; then
7677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684 $EGREP "memchr" >/dev
/null
2>&1; then :
7687 ac_cv_header_stdc
=no
7693 if test $ac_cv_header_stdc = yes; then
7694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701 $EGREP "free" >/dev
/null
2>&1; then :
7704 ac_cv_header_stdc
=no
7710 if test $ac_cv_header_stdc = yes; then
7711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7712 if test "$cross_compiling" = yes; then :
7715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7719 #if ((' ' & 0x0FF) == 0x020)
7720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7723 # define ISLOWER(c) \
7724 (('a' <= (c) && (c) <= 'i') \
7725 || ('j' <= (c) && (c) <= 'r') \
7726 || ('s' <= (c) && (c) <= 'z'))
7727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7735 for (i = 0; i < 256; i++)
7736 if (XOR (islower (i), ISLOWER (i))
7737 || toupper (i) != TOUPPER (i))
7742 if ac_fn_c_try_run
"$LINENO"; then :
7745 ac_cv_header_stdc
=no
7747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7754 $as_echo "$ac_cv_header_stdc" >&6; }
7755 if test $ac_cv_header_stdc = yes; then
7757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7762 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7763 if test "${ac_cv_header_time+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 #include <sys/types.h>
7769 #include <sys/time.h>
7775 if ((struct tm *) 0)
7781 if ac_fn_c_try_compile
"$LINENO"; then :
7782 ac_cv_header_time
=yes
7784 ac_cv_header_time
=no
7786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7789 $as_echo "$ac_cv_header_time" >&6; }
7790 if test $ac_cv_header_time = yes; then
7792 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7797 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7798 if test "${gcc_cv_header_string+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7804 #include <strings.h>
7813 if ac_fn_c_try_compile
"$LINENO"; then :
7814 gcc_cv_header_string
=yes
7816 gcc_cv_header_string
=no
7818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7821 $as_echo "$gcc_cv_header_string" >&6; }
7822 if test $gcc_cv_header_string = yes; then
7824 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7829 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7830 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <sys/types.h>
7836 #include <sys/wait.h>
7838 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7841 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7849 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7854 if ac_fn_c_try_compile
"$LINENO"; then :
7855 ac_cv_header_sys_wait_h
=yes
7857 ac_cv_header_sys_wait_h
=no
7859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7862 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7863 if test $ac_cv_header_sys_wait_h = yes; then
7865 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7869 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7870 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7871 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7872 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7874 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7875 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7876 eval as_val
=\$
$as_ac_Header
7877 if test "x$as_val" = x
""yes; then :
7878 cat >>confdefs.h
<<_ACEOF
7879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7886 # Check for thread headers.
7887 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7888 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7894 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7895 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7902 # These tests can't be done till we know if we have limits.h.
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7904 $as_echo_n "checking for CHAR_BIT... " >&6; }
7905 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 #ifdef HAVE_LIMITS_H
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "found" >/dev
/null
2>&1; then :
7919 gcc_cv_decl_char_bit
=yes
7921 gcc_cv_decl_char_bit
=no
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7928 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7929 if test $gcc_cv_decl_char_bit = no
; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7931 $as_echo_n "checking number of bits in a byte... " >&6; }
7932 if test "${gcc_cv_c_nbby+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7937 while test $i -lt 65; do
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7945 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7946 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7952 if ac_fn_c_try_compile
"$LINENO"; then :
7953 gcc_cv_c_nbby
=$i; break
7955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7958 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7962 $as_echo "$gcc_cv_c_nbby" >&6; }
7963 if test $gcc_cv_c_nbby = failed
; then
7964 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7967 cat >>confdefs.h
<<_ACEOF
7968 #define CHAR_BIT $gcc_cv_c_nbby
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7974 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7975 if test "${ac_cv_c_bigendian+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7978 ac_cv_c_bigendian
=unknown
7979 # See if we're dealing with a universal compiler.
7980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #ifndef __APPLE_CC__
7983 not a universal capable compiler
7988 if ac_fn_c_try_compile
"$LINENO"; then :
7990 # Check for potential -arch flags. It is not universal unless
7991 # there are at least two -arch flags with different values.
7994 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7995 if test -n "$ac_prev"; then
7997 i?
86 | x86_64 | ppc | ppc64
)
7998 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8001 ac_cv_c_bigendian
=universal
8007 elif test "x$ac_word" = "x-arch"; then
8012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8013 if test $ac_cv_c_bigendian = unknown
; then
8014 # See if sys/param.h defines the BYTE_ORDER macro.
8015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 #include <sys/types.h>
8018 #include <sys/param.h>
8023 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8024 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8033 if ac_fn_c_try_compile
"$LINENO"; then :
8034 # It does; now see whether it defined to BIG_ENDIAN or not.
8035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <sys/types.h>
8038 #include <sys/param.h>
8043 #if BYTE_ORDER != BIG_ENDIAN
8051 if ac_fn_c_try_compile
"$LINENO"; then :
8052 ac_cv_c_bigendian
=yes
8054 ac_cv_c_bigendian
=no
8056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8060 if test $ac_cv_c_bigendian = unknown
; then
8061 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8069 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8077 if ac_fn_c_try_compile
"$LINENO"; then :
8078 # It does; now see whether it defined to _BIG_ENDIAN or not.
8079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8094 if ac_fn_c_try_compile
"$LINENO"; then :
8095 ac_cv_c_bigendian
=yes
8097 ac_cv_c_bigendian
=no
8099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8103 if test $ac_cv_c_bigendian = unknown
; then
8104 # Compile a test program.
8105 if test "$cross_compiling" = yes; then :
8106 # Try to guess by grepping values from an object file.
8107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 short int ascii_mm[] =
8110 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8111 short int ascii_ii[] =
8112 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8113 int use_ascii (int i) {
8114 return ascii_mm[i] + ascii_ii[i];
8116 short int ebcdic_ii[] =
8117 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8118 short int ebcdic_mm[] =
8119 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8120 int use_ebcdic (int i) {
8121 return ebcdic_mm[i] + ebcdic_ii[i];
8128 return use_ascii (foo) == use_ebcdic (foo);
8133 if ac_fn_c_try_compile
"$LINENO"; then :
8134 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8135 ac_cv_c_bigendian
=yes
8137 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8138 if test "$ac_cv_c_bigendian" = unknown
; then
8139 ac_cv_c_bigendian
=no
8141 # finding both strings is unlikely to happen, but who knows?
8142 ac_cv_c_bigendian
=unknown
8146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 $ac_includes_default
8155 /* Are we little or big endian? From Harbison&Steele. */
8159 char c[sizeof (long int)];
8162 return u.c[sizeof (long int) - 1] == 1;
8168 if ac_fn_c_try_run
"$LINENO"; then :
8169 ac_cv_c_bigendian
=no
8171 ac_cv_c_bigendian
=yes
8173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8180 $as_echo "$ac_cv_c_bigendian" >&6; }
8181 case $ac_cv_c_bigendian in #(
8183 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8189 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8193 as_fn_error
"unknown endianness
8194 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8203 # These libraries may be used by collect2.
8204 # We may need a special search path to get them linked.
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8206 $as_echo_n "checking for collect2 libraries... " >&6; }
8207 if test "${gcc_cv_collect2_libs+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8211 for libs
in '' -lld -lmld \
8212 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8213 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8219 /* Override any GCC internal prototype to avoid an error.
8220 Use char because int might match the return type of a GCC
8221 builtin and then its argument prototype would still apply. */
8234 if ac_fn_c_try_link
"$LINENO"; then :
8235 gcc_cv_collect2_libs
="$libs"; break
8237 rm -f core conftest.err conftest.
$ac_objext \
8238 conftest
$ac_exeext conftest.
$ac_ext
8241 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8244 $as_echo "$gcc_cv_collect2_libs" >&6; }
8245 case $gcc_cv_collect2_libs in
8247 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8251 # When building Ada code on Alpha, we need exc_resume which is usually in
8252 # -lexc. So test for it.
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8256 $as_echo_n "checking for library containing exc_resume... " >&6; }
8257 if test "${ac_cv_search_exc_resume+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8260 ac_func_search_save_LIBS
=$LIBS
8261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8264 /* Override any GCC internal prototype to avoid an error.
8265 Use char because int might match the return type of a GCC
8266 builtin and then its argument prototype would still apply. */
8274 return exc_resume ();
8279 for ac_lib
in '' exc
; do
8280 if test -z "$ac_lib"; then
8281 ac_res
="none required"
8284 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8286 if ac_fn_c_try_link
"$LINENO"; then :
8287 ac_cv_search_exc_resume
=$ac_res
8289 rm -f core conftest.err conftest.
$ac_objext \
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8295 if test "${ac_cv_search_exc_resume+set}" = set; then :
8298 ac_cv_search_exc_resume
=no
8301 LIBS
=$ac_func_search_save_LIBS
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8304 $as_echo "$ac_cv_search_exc_resume" >&6; }
8305 ac_res
=$ac_cv_search_exc_resume
8306 if test "$ac_res" != no
; then :
8307 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8315 # Some systems put ldexp and frexp in libm instead of libc; assume
8316 # they're both in the same place. jcf-dump needs them.
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8320 $as_echo_n "checking for library containing ldexp... " >&6; }
8321 if test "${ac_cv_search_ldexp+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8324 ac_func_search_save_LIBS
=$LIBS
8325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8328 /* Override any GCC internal prototype to avoid an error.
8329 Use char because int might match the return type of a GCC
8330 builtin and then its argument prototype would still apply. */
8343 for ac_lib
in '' m
; do
8344 if test -z "$ac_lib"; then
8345 ac_res
="none required"
8348 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8350 if ac_fn_c_try_link
"$LINENO"; then :
8351 ac_cv_search_ldexp
=$ac_res
8353 rm -f core conftest.err conftest.
$ac_objext \
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8359 if test "${ac_cv_search_ldexp+set}" = set; then :
8362 ac_cv_search_ldexp
=no
8365 LIBS
=$ac_func_search_save_LIBS
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8368 $as_echo "$ac_cv_search_ldexp" >&6; }
8369 ac_res
=$ac_cv_search_ldexp
8370 if test "$ac_res" != no
; then :
8371 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8379 # Use <inttypes.h> only if it exists,
8380 # doesn't clash with <sys/types.h>, and declares intmax_t.
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8382 $as_echo_n "checking for inttypes.h... " >&6; }
8383 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 #include <sys/types.h>
8389 #include <inttypes.h>
8398 if ac_fn_c_try_compile
"$LINENO"; then :
8399 gcc_cv_header_inttypes_h
=yes
8401 gcc_cv_header_inttypes_h
=no
8403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8407 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8408 if test $gcc_cv_header_inttypes_h = yes; then
8410 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8416 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8417 sysconf strsignal getrusage nl_langinfo \
8418 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8419 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
8421 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8422 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8423 eval as_val
=\$
$as_ac_var
8424 if test "x$as_val" = x
""yes; then :
8425 cat >>confdefs.h
<<_ACEOF
8426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8433 save_CPPFLAGS
="$CPPFLAGS"
8435 LIBS
="$LIBS $LIBELFLIBS"
8436 for ac_func
in elf_getshdrstrndx
8438 ac_fn_c_check_func
"$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8439 if test "x$ac_cv_func_elf_getshdrstrndx" = x
""yes; then :
8440 cat >>confdefs.h
<<_ACEOF
8441 #define HAVE_ELF_GETSHDRSTRNDX 1
8445 for ac_func
in elf_getshstrndx
8447 ac_fn_c_check_func
"$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8448 if test "x$ac_cv_func_elf_getshstrndx" = x
""yes; then :
8449 cat >>confdefs.h
<<_ACEOF
8450 #define HAVE_ELF_GETSHSTRNDX 1
8452 if test "$cross_compiling" = yes; then :
8453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8455 as_fn_error
"cannot run test program while cross compiling
8456 See \`config.log' for more details." "$LINENO" 5; }
8458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8464 return elf_getshstrndx (NULL, 0) == 0;
8467 if ac_fn_c_try_run
"$LINENO"; then :
8469 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8472 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8473 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8484 CPPFLAGS
="$save_CPPFLAGS"
8486 if test x
$ac_cv_func_mbstowcs = xyes
; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8488 $as_echo_n "checking whether mbstowcs works... " >&6; }
8489 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8492 if test "$cross_compiling" = yes; then :
8493 gcc_cv_func_mbstowcs_works
=yes
8495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8504 if ac_fn_c_try_run
"$LINENO"; then :
8505 gcc_cv_func_mbstowcs_works
=yes
8507 gcc_cv_func_mbstowcs_works
=no
8509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8515 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8516 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8518 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8523 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8524 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8528 cat >>confdefs.h
<<_ACEOF
8534 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8535 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8539 cat >>confdefs.h
<<_ACEOF
8540 #define caddr_t char *
8547 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8548 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8549 gcc_header_sys_mman_h
=yes
8551 gcc_header_sys_mman_h
=no
8554 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8555 if test "x$ac_cv_func_mmap" = x
""yes; then :
8561 if test "$gcc_header_sys_mman_h" != yes \
8562 ||
test "$gcc_func_mmap" != yes; then
8563 gcc_cv_func_mmap_file
=no
8564 gcc_cv_func_mmap_dev_zero
=no
8565 gcc_cv_func_mmap_anon
=no
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8568 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8569 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8572 # Add a system to this blacklist if
8573 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8574 # memory area containing the same data that you'd get if you applied
8575 # read() to the same fd. The only system known to have a problem here
8576 # is VMS, where text files have record structure.
8579 gcc_cv_func_mmap_file
=no
;;
8581 gcc_cv_func_mmap_file
=yes;;
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8585 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8587 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8588 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8591 # Add a system to this blacklist if it has mmap() but /dev/zero
8592 # does not exist, or if mmapping /dev/zero does not give anonymous
8593 # zeroed pages with both the following properties:
8594 # 1. If you map N consecutive pages in with one call, and then
8595 # unmap any subset of those pages, the pages that were not
8596 # explicitly unmapped remain accessible.
8597 # 2. If you map two adjacent blocks of memory and then unmap them
8598 # both at once, they must both go away.
8599 # Systems known to be in this category are Windows (all variants),
8602 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8603 gcc_cv_func_mmap_dev_zero
=no
;;
8605 gcc_cv_func_mmap_dev_zero
=yes;;
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8609 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8611 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8613 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8614 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/mman.h>
8623 #ifndef MAP_ANONYMOUS
8624 #define MAP_ANONYMOUS MAP_ANON
8630 int n = MAP_ANONYMOUS;
8635 if ac_fn_c_try_compile
"$LINENO"; then :
8636 gcc_cv_decl_map_anon
=yes
8638 gcc_cv_decl_map_anon
=no
8640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8643 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8645 if test $gcc_cv_decl_map_anon = no
; then
8646 gcc_cv_func_mmap_anon
=no
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8649 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8650 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8653 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8654 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8655 # doesn't give anonymous zeroed pages with the same properties listed
8656 # above for use of /dev/zero.
8657 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8659 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8660 gcc_cv_func_mmap_anon
=no
;;
8662 gcc_cv_func_mmap_anon
=yes;;
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8666 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8670 if test $gcc_cv_func_mmap_file = yes; then
8672 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8675 if test $gcc_cv_func_mmap_dev_zero = yes; then
8677 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8680 if test $gcc_cv_func_mmap_anon = yes; then
8682 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8689 # Under VMS, vfork works very differently than on Unix. The standard test
8690 # won't work, and it isn't easily adaptable. It makes more sense to
8692 ac_cv_func_vfork_works
=yes
8695 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8696 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8700 cat >>confdefs.h
<<_ACEOF
8706 for ac_header
in vfork.h
8708 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8709 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8710 cat >>confdefs.h
<<_ACEOF
8711 #define HAVE_VFORK_H 1
8717 for ac_func
in fork vfork
8719 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8720 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8721 eval as_val
=\$
$as_ac_var
8722 if test "x$as_val" = x
""yes; then :
8723 cat >>confdefs.h
<<_ACEOF
8724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8730 if test "x$ac_cv_func_fork" = xyes
; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8732 $as_echo_n "checking for working fork... " >&6; }
8733 if test "${ac_cv_func_fork_works+set}" = set; then :
8734 $as_echo_n "(cached) " >&6
8736 if test "$cross_compiling" = yes; then :
8737 ac_cv_func_fork_works
=cross
8739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 $ac_includes_default
8746 /* By Ruediger Kuhlmann. */
8753 if ac_fn_c_try_run
"$LINENO"; then :
8754 ac_cv_func_fork_works
=yes
8756 ac_cv_func_fork_works
=no
8758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8759 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8764 $as_echo "$ac_cv_func_fork_works" >&6; }
8767 ac_cv_func_fork_works
=$ac_cv_func_fork
8769 if test "x$ac_cv_func_fork_works" = xcross
; then
8771 *-*-amigaos* |
*-*-msdosdjgpp*)
8772 # Override, as these systems have only a dummy fork() stub
8773 ac_cv_func_fork_works
=no
8776 ac_cv_func_fork_works
=yes
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8780 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8782 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8783 if test "x$ac_cv_func_vfork" = xyes
; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8785 $as_echo_n "checking for working vfork... " >&6; }
8786 if test "${ac_cv_func_vfork_works+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8789 if test "$cross_compiling" = yes; then :
8790 ac_cv_func_vfork_works
=cross
8792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 /* Thanks to Paul Eggert for this test. */
8795 $ac_includes_default
8796 #include <sys/wait.h>
8800 /* On some sparc systems, changes by the child to local and incoming
8801 argument registers are propagated back to the parent. The compiler
8802 is told about this with #include <vfork.h>, but some compilers
8803 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8804 static variable whose address is put into a register that is
8805 clobbered by the vfork. */
8808 sparc_address_test (int arg)
8810 sparc_address_test (arg) int arg;
8831 pid_t parent = getpid ();
8834 sparc_address_test (0);
8839 /* Here is another test for sparc vfork register problems. This
8840 test uses lots of local variables, at least as many local
8841 variables as main has allocated so far including compiler
8842 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8843 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8844 reuse the register of parent for one of the local variables,
8845 since it will think that parent can't possibly be used any more
8846 in this routine. Assigning to the local variable will thus
8847 munge parent in the parent process. */
8849 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8850 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8851 /* Convince the compiler that p..p7 are live; otherwise, it might
8852 use the same hardware register for all 8 local variables. */
8853 if (p != p1 || p != p2 || p != p3 || p != p4
8854 || p != p5 || p != p6 || p != p7)
8857 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8858 from child file descriptors. If the child closes a descriptor
8859 before it execs or exits, this munges the parent's descriptor
8860 as well. Test for this by closing stdout in the child. */
8861 _exit(close(fileno(stdout)) != 0);
8866 while (wait(&status) != child)
8869 /* Was there some problem with vforking? */
8872 /* Did the child fail? (This shouldn't happen.) */
8875 /* Did the vfork/compiler bug occur? */
8876 || parent != getpid()
8878 /* Did the file descriptor bug occur? */
8879 || fstat(fileno(stdout), &st) != 0
8884 if ac_fn_c_try_run
"$LINENO"; then :
8885 ac_cv_func_vfork_works
=yes
8887 ac_cv_func_vfork_works
=no
8889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8895 $as_echo "$ac_cv_func_vfork_works" >&6; }
8898 if test "x$ac_cv_func_fork_works" = xcross
; then
8899 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8901 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8904 if test "x$ac_cv_func_vfork_works" = xyes
; then
8906 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8910 $as_echo "#define vfork fork" >>confdefs.h
8913 if test "x$ac_cv_func_fork_works" = xyes
; then
8915 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8921 if test "X$prefix" = "XNONE"; then
8922 acl_final_prefix
="$ac_default_prefix"
8924 acl_final_prefix
="$prefix"
8926 if test "X$exec_prefix" = "XNONE"; then
8927 acl_final_exec_prefix
='${prefix}'
8929 acl_final_exec_prefix
="$exec_prefix"
8931 acl_save_prefix
="$prefix"
8932 prefix
="$acl_final_prefix"
8933 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8934 prefix
="$acl_save_prefix"
8937 # Check whether --with-gnu-ld was given.
8938 if test "${with_gnu_ld+set}" = set; then :
8939 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8944 # Prepare PATH_SEPARATOR.
8945 # The user is always right.
8946 if test "${PATH_SEPARATOR+set}" != set; then
8947 echo "#! /bin/sh" >conf$$.sh
8948 echo "exit 0" >>conf$$.sh
8950 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8958 if test "$GCC" = yes; then
8959 # Check if gcc -print-prog-name=ld gives a path.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8961 $as_echo_n "checking for ld used by GCC... " >&6; }
8964 # gcc leaves a trailing carriage return which upsets mingw
8965 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8967 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8970 # Accept absolute paths.
8971 [\\/]* |
[A-Za-z
]:[\\/]*)
8972 re_direlt
='/[^/][^/]*/\.\./'
8973 # Canonicalize the path of ld
8974 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8975 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8976 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8978 test -z "$LD" && LD
="$ac_prog"
8981 # If it fails, then pretend we aren't using GCC.
8985 # If it is relative, then search for the first ld in PATH.
8989 elif test "$with_gnu_ld" = yes; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8991 $as_echo_n "checking for GNU ld... " >&6; }
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8994 $as_echo_n "checking for non-GNU ld... " >&6; }
8996 if test "${acl_cv_path_LD+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8999 if test -z "$LD"; then
9000 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9001 for ac_dir
in $PATH; do
9002 test -z "$ac_dir" && ac_dir
=.
9003 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9004 acl_cv_path_LD
="$ac_dir/$ac_prog"
9005 # Check to see if the program is GNU ld. I'd rather use --version,
9006 # but apparently some GNU ld's only accept -v.
9007 # Break only if it was the GNU/non-GNU ld that we prefer.
9008 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9009 test "$with_gnu_ld" != no
&& break
9011 test "$with_gnu_ld" != yes && break
9017 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9021 LD
="$acl_cv_path_LD"
9022 if test -n "$LD"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9024 $as_echo "$LD" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9029 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9031 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9032 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9035 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9036 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9037 acl_cv_prog_gnu_ld
=yes
9039 acl_cv_prog_gnu_ld
=no
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9043 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9044 with_gnu_ld
=$acl_cv_prog_gnu_ld
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9049 $as_echo_n "checking for shared library run path origin... " >&6; }
9050 if test "${acl_cv_rpath+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9054 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9055 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9062 $as_echo "$acl_cv_rpath" >&6; }
9064 libext
="$acl_cv_libext"
9065 shlibext
="$acl_cv_shlibext"
9066 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9067 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9068 hardcode_direct
="$acl_cv_hardcode_direct"
9069 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9070 # Check whether --enable-rpath was given.
9071 if test "${enable_rpath+set}" = set; then :
9072 enableval
=$enable_rpath; :
9086 acl_save_prefix
="$prefix"
9087 prefix
="$acl_final_prefix"
9088 acl_save_exec_prefix
="$exec_prefix"
9089 exec_prefix
="$acl_final_exec_prefix"
9091 eval additional_includedir
=\"$includedir\"
9092 eval additional_libdir
=\"$libdir\"
9094 exec_prefix
="$acl_save_exec_prefix"
9095 prefix
="$acl_save_prefix"
9098 # Check whether --with-libiconv-prefix was given.
9099 if test "${with_libiconv_prefix+set}" = set; then :
9100 withval
=$with_libiconv_prefix;
9101 if test "X$withval" = "Xno"; then
9104 if test "X$withval" = "X"; then
9106 acl_save_prefix
="$prefix"
9107 prefix
="$acl_final_prefix"
9108 acl_save_exec_prefix
="$exec_prefix"
9109 exec_prefix
="$acl_final_exec_prefix"
9111 eval additional_includedir
=\"$includedir\"
9112 eval additional_libdir
=\"$libdir\"
9114 exec_prefix
="$acl_save_exec_prefix"
9115 prefix
="$acl_save_prefix"
9118 additional_includedir
="$withval/include"
9119 additional_libdir
="$withval/lib"
9130 names_already_handled
=
9131 names_next_round
='iconv '
9132 while test -n "$names_next_round"; do
9133 names_this_round
="$names_next_round"
9135 for name
in $names_this_round; do
9137 for n
in $names_already_handled; do
9138 if test "$n" = "$name"; then
9143 if test -z "$already_handled"; then
9144 names_already_handled
="$names_already_handled $name"
9145 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9146 eval value
=\"\
$HAVE_LIB$uppername\"
9147 if test -n "$value"; then
9148 if test "$value" = yes; then
9149 eval value
=\"\
$LIB$uppername\"
9150 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9151 eval value
=\"\
$LTLIB$uppername\"
9152 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9161 if test $use_additional = yes; then
9162 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9163 found_dir
="$additional_libdir"
9164 found_so
="$additional_libdir/lib$name.$shlibext"
9165 if test -f "$additional_libdir/lib$name.la"; then
9166 found_la
="$additional_libdir/lib$name.la"
9169 if test -f "$additional_libdir/lib$name.$libext"; then
9170 found_dir
="$additional_libdir"
9171 found_a
="$additional_libdir/lib$name.$libext"
9172 if test -f "$additional_libdir/lib$name.la"; then
9173 found_la
="$additional_libdir/lib$name.la"
9178 if test "X$found_dir" = "X"; then
9179 for x
in $LDFLAGS $LTLIBICONV; do
9181 acl_save_prefix
="$prefix"
9182 prefix
="$acl_final_prefix"
9183 acl_save_exec_prefix
="$exec_prefix"
9184 exec_prefix
="$acl_final_exec_prefix"
9186 exec_prefix
="$acl_save_exec_prefix"
9187 prefix
="$acl_save_prefix"
9191 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9192 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9194 found_so
="$dir/lib$name.$shlibext"
9195 if test -f "$dir/lib$name.la"; then
9196 found_la
="$dir/lib$name.la"
9199 if test -f "$dir/lib$name.$libext"; then
9201 found_a
="$dir/lib$name.$libext"
9202 if test -f "$dir/lib$name.la"; then
9203 found_la
="$dir/lib$name.la"
9209 if test "X$found_dir" != "X"; then
9214 if test "X$found_dir" != "X"; then
9215 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9216 if test "X$found_so" != "X"; then
9217 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9218 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9221 for x
in $ltrpathdirs; do
9222 if test "X$x" = "X$found_dir"; then
9227 if test -z "$haveit"; then
9228 ltrpathdirs
="$ltrpathdirs $found_dir"
9230 if test "$hardcode_direct" = yes; then
9231 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9233 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9234 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9236 for x
in $rpathdirs; do
9237 if test "X$x" = "X$found_dir"; then
9242 if test -z "$haveit"; then
9243 rpathdirs
="$rpathdirs $found_dir"
9247 for x
in $LDFLAGS $LIBICONV; do
9249 acl_save_prefix
="$prefix"
9250 prefix
="$acl_final_prefix"
9251 acl_save_exec_prefix
="$exec_prefix"
9252 exec_prefix
="$acl_final_exec_prefix"
9254 exec_prefix
="$acl_save_exec_prefix"
9255 prefix
="$acl_save_prefix"
9257 if test "X$x" = "X-L$found_dir"; then
9262 if test -z "$haveit"; then
9263 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9265 if test "$hardcode_minus_L" != no
; then
9266 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9268 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9274 if test "X$found_a" != "X"; then
9275 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9277 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9280 additional_includedir
=
9281 case "$found_dir" in
9283 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9284 additional_includedir
="$basedir/include"
9287 if test "X$additional_includedir" != "X"; then
9288 if test "X$additional_includedir" != "X/usr/include"; then
9290 if test "X$additional_includedir" = "X/usr/local/include"; then
9291 if test -n "$GCC"; then
9293 linux
*) haveit
=yes;;
9297 if test -z "$haveit"; then
9298 for x
in $CPPFLAGS $INCICONV; do
9300 acl_save_prefix
="$prefix"
9301 prefix
="$acl_final_prefix"
9302 acl_save_exec_prefix
="$exec_prefix"
9303 exec_prefix
="$acl_final_exec_prefix"
9305 exec_prefix
="$acl_save_exec_prefix"
9306 prefix
="$acl_save_prefix"
9308 if test "X$x" = "X-I$additional_includedir"; then
9313 if test -z "$haveit"; then
9314 if test -d "$additional_includedir"; then
9315 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9321 if test -n "$found_la"; then
9322 save_libdir
="$libdir"
9324 */* |
*\\*) .
"$found_la" ;;
9325 *) .
"./$found_la" ;;
9327 libdir
="$save_libdir"
9328 for dep
in $dependency_libs; do
9331 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9332 if test "X$additional_libdir" != "X/usr/lib"; then
9334 if test "X$additional_libdir" = "X/usr/local/lib"; then
9335 if test -n "$GCC"; then
9337 linux
*) haveit
=yes;;
9341 if test -z "$haveit"; then
9343 for x
in $LDFLAGS $LIBICONV; do
9345 acl_save_prefix
="$prefix"
9346 prefix
="$acl_final_prefix"
9347 acl_save_exec_prefix
="$exec_prefix"
9348 exec_prefix
="$acl_final_exec_prefix"
9350 exec_prefix
="$acl_save_exec_prefix"
9351 prefix
="$acl_save_prefix"
9353 if test "X$x" = "X-L$additional_libdir"; then
9358 if test -z "$haveit"; then
9359 if test -d "$additional_libdir"; then
9360 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9364 for x
in $LDFLAGS $LTLIBICONV; do
9366 acl_save_prefix
="$prefix"
9367 prefix
="$acl_final_prefix"
9368 acl_save_exec_prefix
="$exec_prefix"
9369 exec_prefix
="$acl_final_exec_prefix"
9371 exec_prefix
="$acl_save_exec_prefix"
9372 prefix
="$acl_save_prefix"
9374 if test "X$x" = "X-L$additional_libdir"; then
9379 if test -z "$haveit"; then
9380 if test -d "$additional_libdir"; then
9381 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9388 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9389 if test "$enable_rpath" != no
; then
9391 for x
in $rpathdirs; do
9392 if test "X$x" = "X$dir"; then
9397 if test -z "$haveit"; then
9398 rpathdirs
="$rpathdirs $dir"
9401 for x
in $ltrpathdirs; do
9402 if test "X$x" = "X$dir"; then
9407 if test -z "$haveit"; then
9408 ltrpathdirs
="$ltrpathdirs $dir"
9413 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9416 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9419 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9420 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9426 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9427 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9433 if test "X$rpathdirs" != "X"; then
9434 if test -n "$hardcode_libdir_separator"; then
9436 for found_dir
in $rpathdirs; do
9437 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9439 acl_save_libdir
="$libdir"
9441 eval flag
=\"$hardcode_libdir_flag_spec\"
9442 libdir
="$acl_save_libdir"
9443 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9445 for found_dir
in $rpathdirs; do
9446 acl_save_libdir
="$libdir"
9448 eval flag
=\"$hardcode_libdir_flag_spec\"
9449 libdir
="$acl_save_libdir"
9450 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9454 if test "X$ltrpathdirs" != "X"; then
9455 for found_dir
in $ltrpathdirs; do
9456 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9466 am_save_CPPFLAGS
="$CPPFLAGS"
9468 for element
in $INCICONV; do
9470 for x
in $CPPFLAGS; do
9472 acl_save_prefix
="$prefix"
9473 prefix
="$acl_final_prefix"
9474 acl_save_exec_prefix
="$exec_prefix"
9475 exec_prefix
="$acl_final_exec_prefix"
9477 exec_prefix
="$acl_save_exec_prefix"
9478 prefix
="$acl_save_prefix"
9480 if test "X$x" = "X$element"; then
9485 if test -z "$haveit"; then
9486 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9492 $as_echo_n "checking for iconv... " >&6; }
9493 if test "${am_cv_func_iconv+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9497 am_cv_func_iconv
="no, consider installing GNU libiconv"
9499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9506 iconv_t cd = iconv_open("","");
9507 iconv(cd,NULL,NULL,NULL,NULL);
9513 if ac_fn_c_try_link
"$LINENO"; then :
9514 am_cv_func_iconv
=yes
9516 rm -f core conftest.err conftest.
$ac_objext \
9517 conftest
$ac_exeext conftest.
$ac_ext
9518 if test "$am_cv_func_iconv" != yes; then
9519 am_save_LIBS
="$LIBS"
9520 LIBS
="$LIBS $LIBICONV"
9521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9528 iconv_t cd = iconv_open("","");
9529 iconv(cd,NULL,NULL,NULL,NULL);
9535 if ac_fn_c_try_link
"$LINENO"; then :
9537 am_cv_func_iconv
=yes
9539 rm -f core conftest.err conftest.
$ac_objext \
9540 conftest
$ac_exeext conftest.
$ac_ext
9541 LIBS
="$am_save_LIBS"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9546 $as_echo "$am_cv_func_iconv" >&6; }
9547 if test "$am_cv_func_iconv" = yes; then
9549 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9552 if test "$am_cv_lib_iconv" = yes; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9554 $as_echo_n "checking how to link with libiconv... " >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9556 $as_echo "$LIBICONV" >&6; }
9558 CPPFLAGS
="$am_save_CPPFLAGS"
9565 if test "$am_cv_func_iconv" = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9567 $as_echo_n "checking for iconv declaration... " >&6; }
9568 if test "${am_cv_proto_iconv+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9581 #if defined(__STDC__) || defined(__cplusplus)
9582 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9595 if ac_fn_c_try_compile
"$LINENO"; then :
9596 am_cv_proto_iconv_arg1
=""
9598 am_cv_proto_iconv_arg1
="const"
9600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9601 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);"
9604 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9606 }$am_cv_proto_iconv" >&5
9608 }$am_cv_proto_iconv" >&6; }
9610 cat >>confdefs.h
<<_ACEOF
9611 #define ICONV_CONST $am_cv_proto_iconv_arg1
9616 # Until we have in-tree GNU iconv:
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9622 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9623 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9637 if ac_fn_c_try_link
"$LINENO"; then :
9638 am_cv_val_LC_MESSAGES
=yes
9640 am_cv_val_LC_MESSAGES
=no
9642 rm -f core conftest.err conftest.
$ac_objext \
9643 conftest
$ac_exeext conftest.
$ac_ext
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9646 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9647 if test $am_cv_val_LC_MESSAGES = yes; then
9649 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9656 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9657 if test "${am_cv_langinfo_codeset+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 #include <langinfo.h>
9666 char* cs = nl_langinfo(CODESET);
9671 if ac_fn_c_try_link
"$LINENO"; then :
9672 am_cv_langinfo_codeset
=yes
9674 am_cv_langinfo_codeset
=no
9676 rm -f core conftest.err conftest.
$ac_objext \
9677 conftest
$ac_exeext conftest.
$ac_ext
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9681 $as_echo "$am_cv_langinfo_codeset" >&6; }
9682 if test $am_cv_langinfo_codeset = yes; then
9684 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9689 # We will need to find libiberty.h and ansidecl.h
9690 saved_CFLAGS
="$CFLAGS"
9691 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9692 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9693 strsignal strstr strverscmp \
9694 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9695 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
9697 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9699 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9700 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9701 $as_echo_n "(cached) " >&6
9703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9706 #define $ac_tr_decl 1
9708 #include "ansidecl.h"
9715 char *(*pfn) = (char *(*)) $ac_func ;
9721 if ac_fn_c_try_compile
"$LINENO"; then :
9722 eval "gcc_cv_have_decl_$ac_func=yes"
9724 eval "gcc_cv_have_decl_$ac_func=no"
9726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9729 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9731 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9732 #define $ac_tr_decl 1
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9738 #define $ac_tr_decl 0
9746 for ac_func
in getrlimit setrlimit getrusage
9748 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9750 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9751 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9752 $as_echo_n "(cached) " >&6
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9757 #define $ac_tr_decl 1
9759 #include "ansidecl.h"
9761 #ifdef HAVE_SYS_RESOURCE_H
9762 #include <sys/resource.h>
9770 char *(*pfn) = (char *(*)) $ac_func ;
9776 if ac_fn_c_try_compile
"$LINENO"; then :
9777 eval "gcc_cv_have_decl_$ac_func=yes"
9779 eval "gcc_cv_have_decl_$ac_func=no"
9781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9784 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9787 #define $ac_tr_decl 1
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9793 #define $ac_tr_decl 0
9801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9804 #include "ansidecl.h"
9806 #ifdef HAVE_SYS_RESOURCE_H
9807 #include <sys/resource.h>
9818 if ac_fn_c_try_compile
"$LINENO"; then :
9822 $as_echo "#define rlim_t long" >>confdefs.h
9825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9827 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9828 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9829 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9830 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9831 for ac_func
in ldgetname
9833 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9835 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9836 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9837 $as_echo_n "(cached) " >&6
9839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9842 #define $ac_tr_decl 1
9844 #include "ansidecl.h"
9857 char *(*pfn) = (char *(*)) $ac_func ;
9863 if ac_fn_c_try_compile
"$LINENO"; then :
9864 eval "gcc_cv_have_decl_$ac_func=yes"
9866 eval "gcc_cv_have_decl_$ac_func=no"
9868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9871 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9873 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9874 #define $ac_tr_decl 1
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9880 #define $ac_tr_decl 0
9888 for ac_func
in times
9890 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9892 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9893 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9894 $as_echo_n "(cached) " >&6
9896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 #define $ac_tr_decl 1
9901 #include "ansidecl.h"
9903 #ifdef HAVE_SYS_TIMES_H
9904 #include <sys/times.h>
9912 char *(*pfn) = (char *(*)) $ac_func ;
9918 if ac_fn_c_try_compile
"$LINENO"; then :
9919 eval "gcc_cv_have_decl_$ac_func=yes"
9921 eval "gcc_cv_have_decl_$ac_func=no"
9923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9926 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9929 #define $ac_tr_decl 1
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9935 #define $ac_tr_decl 0
9943 for ac_func
in sigaltstack
9945 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9947 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9948 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9949 $as_echo_n "(cached) " >&6
9951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9954 #define $ac_tr_decl 1
9956 #include "ansidecl.h"
9965 char *(*pfn) = (char *(*)) $ac_func ;
9971 if ac_fn_c_try_compile
"$LINENO"; then :
9972 eval "gcc_cv_have_decl_$ac_func=yes"
9974 eval "gcc_cv_have_decl_$ac_func=no"
9976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9979 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9982 #define $ac_tr_decl 1
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9988 #define $ac_tr_decl 0
9996 # More time-related stuff.
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9998 $as_echo_n "checking for struct tms... " >&6; }
9999 if test "${ac_cv_struct_tms+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10006 #include "ansidecl.h"
10007 #include "system.h"
10008 #ifdef HAVE_SYS_TIMES_H
10009 #include <sys/times.h>
10020 if ac_fn_c_try_compile
"$LINENO"; then :
10021 ac_cv_struct_tms
=yes
10023 ac_cv_struct_tms
=no
10025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10028 $as_echo "$ac_cv_struct_tms" >&6; }
10029 if test $ac_cv_struct_tms = yes; then
10031 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10035 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10036 # revisit after autoconf 2.50.
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10038 $as_echo_n "checking for clock_t... " >&6; }
10039 if test "${gcc_cv_type_clock_t+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10046 #include "ansidecl.h"
10047 #include "system.h"
10057 if ac_fn_c_try_compile
"$LINENO"; then :
10058 gcc_cv_type_clock_t
=yes
10060 gcc_cv_type_clock_t
=no
10062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10065 $as_echo "$gcc_cv_type_clock_t" >&6; }
10066 if test $gcc_cv_type_clock_t = yes; then
10068 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10072 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10073 CFLAGS
="$saved_CFLAGS"
10075 # Check whether --enable-initfini-array was given.
10076 if test "${enable_initfini_array+set}" = set; then :
10077 enableval
=$enable_initfini_array;
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10081 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10082 if test "${gcc_cv_initfini_array+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10085 if test "$cross_compiling" = yes; then :
10086 gcc_cv_initfini_array
=no
10088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10092 int main (void) { return x; }
10093 int foo (void) { x = 0; }
10094 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10096 if ac_fn_c_try_run
"$LINENO"; then :
10097 gcc_cv_initfini_array
=yes
10099 gcc_cv_initfini_array
=no
10101 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10102 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10107 $as_echo "$gcc_cv_initfini_array" >&6; }
10108 enable_initfini_array
=$gcc_cv_initfini_array
10112 if test $enable_initfini_array = yes; then
10114 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10118 # mkdir takes a single argument on some systems.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10120 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10121 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10127 #include <sys/types.h>
10128 #ifdef HAVE_SYS_STAT_H
10129 # include <sys/stat.h>
10131 #ifdef HAVE_UNISTD_H
10132 # include <unistd.h>
10134 #ifdef HAVE_DIRECT_H
10135 # include <direct.h>
10145 if ac_fn_c_try_compile
"$LINENO"; then :
10146 gcc_cv_mkdir_takes_one_arg
=no
10148 gcc_cv_mkdir_takes_one_arg
=yes
10150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10153 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10154 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10156 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10167 # With Setjmp/Longjmp based exception handling.
10168 # Check whether --enable-sjlj-exceptions was given.
10169 if test "${enable_sjlj_exceptions+set}" = set; then :
10170 enableval
=$enable_sjlj_exceptions; case $target in
10172 if test $enableval != yes; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10174 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10179 force_sjlj_exceptions
=yes
10183 force_sjlj_exceptions
=yes
10187 force_sjlj_exceptions
=no
10192 if test $force_sjlj_exceptions = yes; then
10193 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10195 cat >>confdefs.h
<<_ACEOF
10196 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10201 # For platforms with the unwind ABI which includes an unwind library,
10202 # libunwind, we can choose to use the system libunwind.
10203 # config.gcc also contains tests of with_system_libunwind.
10206 # Check whether --with-system-libunwind was given.
10207 if test "${with_system_libunwind+set}" = set; then :
10208 withval
=$with_system_libunwind;
10211 # If system-libunwind was not specifically set, pick a default setting.
10212 if test x
$with_system_libunwind = x
; then
10214 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10215 *) with_system_libunwind
=no
;;
10218 # Based on system-libunwind and target, do we have ipinfo?
10219 if test x
$with_system_libunwind = xyes
; then
10221 ia64-
*-*) have_unwind_getipinfo
=no
;;
10222 *) have_unwind_getipinfo
=yes ;;
10225 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10228 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10229 *) have_unwind_getipinfo
=yes ;;
10234 if test x
$have_unwind_getipinfo = xyes
; then
10236 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10241 # --------------------------------------------------------
10242 # Build, host, and target specific configuration fragments
10243 # --------------------------------------------------------
10245 # Collect build-machine-specific information.
10246 .
${srcdir}/config.build
10248 # Collect host-machine-specific information.
10249 .
${srcdir}/config.
host
10253 # Collect target-machine-specific information.
10254 .
${srcdir}/config.gcc
10256 extra_objs
="${host_extra_objs} ${extra_objs}"
10257 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10259 # Default the target-machine variables that were not explicitly set.
10260 if test x
"$tm_file" = x
10261 then tm_file
=$cpu_type/$cpu_type.h
; fi
10263 if test x
"$extra_headers" = x
10264 then extra_headers
=; fi
10266 if test x
$md_file = x
10267 then md_file
=$cpu_type/$cpu_type.md
; fi
10269 if test x
$out_file = x
10270 then out_file
=$cpu_type/$cpu_type.c
; fi
10272 if test x
"$tmake_file" = x
10273 then tmake_file
=$cpu_type/t-
$cpu_type
10276 if test x
"$dwarf2" = xyes
10277 then tm_file
="$tm_file tm-dwarf2.h"
10280 # Say what files are being used for the output code and MD file.
10281 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10282 echo "Using \`$srcdir/config/$md_file' as machine description file."
10284 # If any of the xm_file variables contain nonexistent files, warn
10285 # about them and drop them.
10288 for x
in $build_xm_file; do
10289 if test -f $srcdir/config
/$x
10291 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10292 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10295 build_xm_file
="$bx"
10298 for x
in $host_xm_file; do
10299 if test -f $srcdir/config
/$x
10301 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10302 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10308 for x
in $xm_file; do
10309 if test -f $srcdir/config
/$x
10311 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10312 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10318 for f
in $tm_file; do
10321 if test $count = ax
; then
10322 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10324 echo "Using the following target machine macro files:"
10325 for f
in $tm_file; do
10326 echo " $srcdir/config/$f"
10330 if test x
$need_64bit_hwint = xyes
; then
10332 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10336 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10338 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10343 for f
in $host_xm_file; do
10346 if test $count = a
; then
10348 elif test $count = ax
; then
10349 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10351 echo "Using the following host machine macro files:"
10352 for f
in $host_xm_file; do
10353 echo " $srcdir/config/$f"
10356 echo "Using ${out_host_hook_obj} for host machine hooks."
10358 if test "$host_xm_file" != "$build_xm_file"; then
10360 for f
in $build_xm_file; do
10363 if test $count = a
; then
10365 elif test $count = ax
; then
10366 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10368 echo "Using the following build machine macro files:"
10369 for f
in $build_xm_file; do
10370 echo " $srcdir/config/$f"
10376 powerpc
*-*-darwin*)
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10378 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10379 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 #include <sys/cdefs.h>
10386 #include <sys/signal.h>
10387 #include <ucontext.h>
10388 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10391 if ac_fn_c_try_compile
"$LINENO"; then :
10392 gcc_cv_mcontext_underscores
=no
10394 gcc_cv_mcontext_underscores
=yes
10396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10399 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10400 if test $gcc_cv_mcontext_underscores = yes; then
10402 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10412 # Check if a valid thread package
10413 case ${enable_threads} in
10416 target_thread_file
='single'
10420 target_thread_file
='single'
10422 aix | dce | gnat | irix | posix | posix95 | rtems | \
10423 single | solaris | vxworks | win32 | mipssde
)
10424 target_thread_file
=${enable_threads}
10427 echo "${enable_threads} is an unknown thread package" 1>&2
10432 if test x
${thread_file} = x
; then
10433 # No thread file set by target-specific clauses in config.gcc,
10434 # so use file chosen by default logic above
10435 thread_file
=${target_thread_file}
10438 # Make gthr-default.h if we have a thread file.
10440 if test $thread_file != single
; then
10441 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10442 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10443 rm -f gthr-default.h-t
10445 mv -f gthr-default.h-t gthr-default.h
10447 gthread_flags
=-DHAVE_GTHR_DEFAULT
10456 if test x
$enable___cxa_atexit = xyes || \
10457 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10458 if test x
$host = x
$target; then
10460 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10461 # keyed to flag_use_cxa_atexit
10466 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10467 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10470 echo "__cxa_atexit can't be enabled on this target"
10476 # We can't check for __cxa_atexit when building a cross, so assume
10480 if test x
$use_cxa_atexit = xyes
; then
10482 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10487 # Look for a file containing extra machine modes.
10488 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10489 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10492 cat >>confdefs.h
<<_ACEOF
10493 #define EXTRA_MODES_FILE "config/$extra_modes"
10498 # Convert extra_options into a form suitable for Makefile use.
10500 for f
in $extra_options; do
10501 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10505 # auto-host.h is the file containing items generated by autoconf and is
10506 # the first file included by config.h.
10507 # If host=build, it is correct to have bconfig include auto-host.h
10508 # as well. If host!=build, we are in error and need to do more
10509 # work to find out the build config parameters.
10510 if test x
$host = x
$build
10512 build_auto
=auto-host.h
10514 # We create a subdir, then run autoconf in the subdir.
10515 # To prevent recursion we set host and build for the new
10516 # invocation of configure to the build for this invocation
10523 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10524 *) realsrcdir
=..
/${srcdir};;
10526 saved_CFLAGS
="${CFLAGS}"
10527 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10528 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10529 ${realsrcdir}/configure \
10530 --enable-languages=${enable_languages-all} \
10531 --target=$target_alias --host=$build_alias --build=$build_alias
10532 CFLAGS
="${saved_CFLAGS}"
10534 # We just finished tests for the build machine, so rename
10535 # the file auto-build.h in the gcc directory.
10536 mv auto-host.h ..
/auto-build.h
10539 build_auto
=auto-build.h
10543 tm_file
="${tm_file} defaults.h"
10544 tm_p_file
="${tm_p_file} tm-preds.h"
10545 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10546 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10547 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10548 # put this back in temporarily.
10549 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10555 # Compile in configure arguments.
10556 if test -f configargs.h
; then
10557 # Being re-configured.
10558 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10559 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10561 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10564 # Double all backslashes and backslash all quotes to turn
10565 # gcc_config_arguments into a C string.
10566 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10567 $gcc_config_arguments
10569 gcc_config_arguments_str
=`cat conftest.out`
10572 cat > configargs.h
<<EOF
10573 /* Generated automatically. */
10574 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10575 static const char thread_model[] = "$thread_file";
10577 static const struct {
10578 const char *name, *value;
10579 } configure_default_options[] = $configure_default_options;
10582 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10583 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10584 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10585 if test -f $srcdir/REVISION
; then
10586 gcc_REVISION
=`cat $srcdir/REVISION`
10590 cat > plugin-version.h
<<EOF
10591 #include "configargs.h"
10593 static char basever[] = "$gcc_BASEVER";
10594 static char datestamp[] = "$gcc_DATESTAMP";
10595 static char devphase[] = "$gcc_DEVPHASE";
10596 static char revision[] = "$gcc_REVISION";
10598 /* FIXME plugins: We should make the version information more precise.
10599 One way to do is to add a checksum. */
10601 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10602 devphase, revision,
10603 configuration_arguments};
10606 # Internationalization
10607 # If we haven't got the data from the intl directory,
10608 # assume NLS is disabled.
10617 if test -f ..
/intl
/config.intl
; then
10618 . ..
/intl
/config.intl
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10621 $as_echo_n "checking whether NLS is requested... " >&6; }
10622 if test x
"$USE_NLS" != xyes
; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627 $as_echo "yes" >&6; }
10629 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10633 $as_echo_n "checking for catalogs to be installed... " >&6; }
10634 # Look for .po and .gmo files in the source directory.
10637 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10638 # If there aren't any .gmo files the shell will give us the
10639 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10641 case "$cat" in *\
**)
10644 # The quadruple backslash is collapsed to a double backslash
10645 # by the backticks, then collapsed again by the double quotes,
10646 # leaving us with one backslash in the sed expression (right
10647 # before the dot that mustn't act as a wildcard).
10648 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10649 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10650 # The user is allowed to set LINGUAS to a list of languages to
10651 # install catalogs for. If it's empty that means "all of them."
10652 if test "x$LINGUAS" = x
; then
10653 CATALOGS
="$CATALOGS $cat"
10654 XLINGUAS
="$XLINGUAS $lang"
10656 case "$LINGUAS" in *$lang*)
10657 CATALOGS
="$CATALOGS $cat"
10658 XLINGUAS
="$XLINGUAS $lang"
10663 LINGUAS
="$XLINGUAS"
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10665 $as_echo "$LINGUAS" >&6; }
10678 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10679 # -liconv on the link line twice.
10680 case "$LIBINTL" in *$LIBICONV*)
10684 # Check whether --enable-secureplt was given.
10685 if test "${enable_secureplt+set}" = set; then :
10686 enableval
=$enable_secureplt;
10690 # Check whether --enable-leading-mingw64-underscores was given.
10691 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10692 enableval
=$enable_leading_mingw64_underscores;
10695 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
10697 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10701 # Check whether --enable-cld was given.
10702 if test "${enable_cld+set}" = set; then :
10703 enableval
=$enable_cld;
10709 # Windows32 Registry support for specifying GCC installation paths.
10710 # Check whether --enable-win32-registry was given.
10711 if test "${enable_win32_registry+set}" = set; then :
10712 enableval
=$enable_win32_registry;
10717 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10718 if test "x$enable_win32_registry" != xno
; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10720 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10721 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10724 ac_func_search_save_LIBS
=$LIBS
10725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10734 char RegOpenKeyExA ();
10738 return RegOpenKeyExA ();
10743 for ac_lib
in '' advapi32
; do
10744 if test -z "$ac_lib"; then
10745 ac_res
="none required"
10748 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10750 if ac_fn_c_try_link
"$LINENO"; then :
10751 ac_cv_search_RegOpenKeyExA
=$ac_res
10753 rm -f core conftest.err conftest.
$ac_objext \
10755 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10759 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10762 ac_cv_search_RegOpenKeyExA
=no
10764 rm conftest.
$ac_ext
10765 LIBS
=$ac_func_search_save_LIBS
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10768 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10769 ac_res
=$ac_cv_search_RegOpenKeyExA
10770 if test "$ac_res" != no
; then :
10771 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10774 enable_win32_registry
=no
10779 if test "x$enable_win32_registry" != xno
; then
10781 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10784 if test "x$enable_win32_registry" != xyes \
10785 && test "x$enable_win32_registry" != x
; then
10787 cat >>confdefs.h
<<_ACEOF
10788 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10796 # Get an absolute path to the GCC top-level source directory
10797 holddir
=`${PWDCMD-pwd}`
10799 topdir
=`${PWDCMD-pwd}`
10802 # Conditionalize the makefile for this host machine.
10804 for f
in ${host_xmake_file}
10806 if test -f ${srcdir}/config
/$f
10808 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10812 # Conditionalize the makefile for this target machine.
10814 for f
in ${tmake_file}
10816 if test -f ${srcdir}/config
/$f
10818 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10821 tmake_file
="${tmake_file_}"
10823 out_object_file
=`basename $out_file .c`.o
10825 tm_file_list
="options.h"
10826 tm_include_list
="options.h"
10827 for f
in $tm_file; do
10830 f
=`echo $f | sed 's/^..//'`
10831 tm_file_list
="${tm_file_list} $f"
10832 tm_include_list
="${tm_include_list} $f"
10835 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10836 tm_include_list
="${tm_include_list} $f"
10839 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10840 tm_include_list
="${tm_include_list} config/$f"
10847 for f
in $tm_p_file; do
10850 tm_p_file_list
="${tm_p_file_list} $f"
10851 tm_p_include_list
="${tm_p_include_list} $f"
10854 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10855 tm_p_include_list
="${tm_p_include_list} config/$f"
10861 for f
in $xm_file; do
10864 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10865 xm_include_list
="${xm_include_list} $f"
10868 xm_file_list
="${xm_file_list} $f"
10869 xm_include_list
="${xm_include_list} $f"
10872 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10873 xm_include_list
="${xm_include_list} config/$f"
10879 host_xm_include_list
=
10880 for f
in $host_xm_file; do
10883 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10884 host_xm_include_list
="${host_xm_include_list} $f"
10887 host_xm_file_list
="${host_xm_file_list} $f"
10888 host_xm_include_list
="${host_xm_include_list} $f"
10891 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10892 host_xm_include_list
="${host_xm_include_list} config/$f"
10897 build_xm_file_list
=
10898 for f
in $build_xm_file; do
10901 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10902 build_xm_include_list
="${build_xm_include_list} $f"
10904 auto-build.h | auto-host.h
)
10905 build_xm_file_list
="${build_xm_file_list} $f"
10906 build_xm_include_list
="${build_xm_include_list} $f"
10909 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10910 build_xm_include_list
="${build_xm_include_list} config/$f"
10915 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10916 # cross-compiler which does not use the native headers and libraries.
10917 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10920 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10922 if test "x$with_build_sysroot" != x
; then
10923 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10925 # This value is used, even on a native system, because
10926 # CROSS_SYSTEM_HEADER_DIR is just
10927 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10928 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10931 if test x
$host != x
$target
10933 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10935 SYSTEM_HEADER_DIR
=$build_system_header_dir
10936 case "$host","$target" in
10937 # Darwin crosses can use the host system's libraries and headers,
10938 # because of the fat library support. Of course, it must be the
10939 # same version of Darwin on both sides. Allow the user to
10940 # just say --target=foo-darwin without a version number to mean
10941 # "the version on this system".
10942 *-*-darwin*,*-*-darwin*)
10943 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10944 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10945 if test $hostos = $targetos -o $targetos = darwin
; then
10947 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10952 i?
86-*-*,x86_64-
*-* \
10953 | powerpc
*-*-*,powerpc64
*-*-*)
10954 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10956 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10957 SYSTEM_HEADER_DIR
=$build_system_header_dir
10960 # If this is a cross-compiler that does not
10961 # have its own set of headers then define
10964 # If this is using newlib, without having the headers available now,
10965 # then define inhibit_libc in LIBGCC2_CFLAGS.
10966 # This prevents libgcc2 from containing any code which requires libc
10968 : ${inhibit_libc=false}
10969 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10970 test x
$with_newlib = xyes
; } &&
10971 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10976 # When building gcc with a cross-compiler, we need to adjust things so
10977 # that the generator programs are still built with the native compiler.
10978 # Also, we cannot run fixincludes.
10980 # These are the normal (build=host) settings:
10981 CC_FOR_BUILD
='$(CC)'
10982 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10983 BUILD_LDFLAGS
='$(LDFLAGS)'
10984 STMP_FIXINC
=stmp-fixinc
10986 # And these apply if build != host, or we are generating coverage data
10987 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10989 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10990 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
10993 # Expand extra_headers to include complete path.
10994 # This substitutes for lots of t-* files.
10995 extra_headers_list
=
10996 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10997 for file in ${extra_headers} ; do
10998 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11001 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11002 if test x
"$use_gcc_tgmath" = xyes
11003 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11006 # Define collect2 in Makefile.
11007 case $host_can_use_collect2 in
11009 *) collect2
='collect2$(exeext)' ;;
11013 # Add a definition of USE_COLLECT2 if system wants one.
11014 case $use_collect2 in
11015 no
) use_collect2
= ;;
11018 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11019 xm_defines
="${xm_defines} USE_COLLECT2"
11020 case $host_can_use_collect2 in
11022 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11028 # ---------------------------
11029 # Assembler & linker features
11030 # ---------------------------
11032 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11033 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11034 # However when ld-new is first executed from the build tree, libtool will
11035 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11036 # to the build tree. While doing this we need to use the previous-stage
11037 # linker, or we have an infinite loop. The presence of a shell script as
11038 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11039 # the gcc/collect-ld script. So we need to know how libtool works, or
11040 # exec-tool will fail.
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11046 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11051 macro_version
='2.2.7a'
11052 macro_revision
='1.3134'
11066 ltmain
="$ac_aux_dir/ltmain.sh"
11068 # Backslashify metacharacters that are still active within
11069 # double-quoted strings.
11070 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11072 # Same as above, but do not quote variable references.
11073 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11075 # Sed substitution to delay expansion of an escaped shell variable in a
11076 # double_quote_subst'ed string.
11077 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11079 # Sed substitution to delay expansion of an escaped single quote.
11080 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11082 # Sed substitution to avoid accidental globbing in evaled expressions
11083 no_glob_subst
='s/\*/\\\*/g'
11085 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11087 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11090 $as_echo_n "checking how to print strings... " >&6; }
11091 # Test print first, because it will be a builtin if present.
11092 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11093 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11095 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11098 # Use this function as a fallback that always works.
11099 func_fallback_echo ()
11101 eval 'cat <<_LTECHO_EOF
11105 ECHO='func_fallback_echo
'
11108 # func_echo_all arg...
11109 # Invoke $ECHO with all args, space-separated.
11116 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11117 $as_echo "printf" >&6; } ;;
11118 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11119 $as_echo "print -r" >&6; } ;;
11120 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11121 $as_echo "cat" >&6; } ;;
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11138 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11139 if test "${ac_cv_path_SED+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11143 for ac_i in 1 2 3 4 5 6 7; do
11144 ac_script="$ac_script$as_nl$ac_script"
11146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11147 { ac_script=; unset ac_script;}
11148 if test -z "$SED"; then
11149 ac_path_SED_found=false
11150 # Loop through the user's path and
test for each of PROGNAME-LIST
11151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11152 for as_dir
in $PATH
11155 test -z "$as_dir" && as_dir
=.
11156 for ac_prog
in sed gsed
; do
11157 for ac_exec_ext
in '' $ac_executable_extensions; do
11158 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11160 # Check for GNU ac_path_SED and select it if it is found.
11161 # Check for GNU $ac_path_SED
11162 case `"$ac_path_SED" --version 2>&1` in
11164 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11167 $as_echo_n 0123456789 >"conftest.in"
11170 cat "conftest.in" "conftest.in" >"conftest.tmp"
11171 mv "conftest.tmp" "conftest.in"
11172 cp "conftest.in" "conftest.nl"
11173 $as_echo '' >> "conftest.nl"
11174 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11175 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11176 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11177 if test $ac_count -gt ${ac_path_SED_max-0}; then
11178 # Best one so far, save it but keep looking for a better one
11179 ac_cv_path_SED
="$ac_path_SED"
11180 ac_path_SED_max
=$ac_count
11182 # 10*(2^10) chars as input seems more than enough
11183 test $ac_count -gt 10 && break
11185 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11188 $ac_path_SED_found && break 3
11193 if test -z "$ac_cv_path_SED"; then
11194 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11197 ac_cv_path_SED
=$SED
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11202 $as_echo "$ac_cv_path_SED" >&6; }
11203 SED
="$ac_cv_path_SED"
11206 test -z "$SED" && SED
=sed
11207 Xsed
="$SED -e 1s/^X//"
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11220 $as_echo_n "checking for fgrep... " >&6; }
11221 if test "${ac_cv_path_FGREP+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11224 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11225 then ac_cv_path_FGREP
="$GREP -F"
11227 if test -z "$FGREP"; then
11228 ac_path_FGREP_found
=false
11229 # Loop through the user's path and test for each of PROGNAME-LIST
11230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11231 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11234 test -z "$as_dir" && as_dir
=.
11235 for ac_prog
in fgrep
; do
11236 for ac_exec_ext
in '' $ac_executable_extensions; do
11237 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11238 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11239 # Check for GNU ac_path_FGREP and select it if it is found.
11240 # Check for GNU $ac_path_FGREP
11241 case `"$ac_path_FGREP" --version 2>&1` in
11243 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11246 $as_echo_n 0123456789 >"conftest.in"
11249 cat "conftest.in" "conftest.in" >"conftest.tmp"
11250 mv "conftest.tmp" "conftest.in"
11251 cp "conftest.in" "conftest.nl"
11252 $as_echo 'FGREP' >> "conftest.nl"
11253 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11254 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11255 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11256 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11257 # Best one so far, save it but keep looking for a better one
11258 ac_cv_path_FGREP
="$ac_path_FGREP"
11259 ac_path_FGREP_max
=$ac_count
11261 # 10*(2^10) chars as input seems more than enough
11262 test $ac_count -gt 10 && break
11264 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11267 $ac_path_FGREP_found && break 3
11272 if test -z "$ac_cv_path_FGREP"; then
11273 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11276 ac_cv_path_FGREP
=$FGREP
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11282 $as_echo "$ac_cv_path_FGREP" >&6; }
11283 FGREP
="$ac_cv_path_FGREP"
11286 test -z "$GREP" && GREP
=grep
11306 # Check whether --with-gnu-ld was given.
11307 if test "${with_gnu_ld+set}" = set; then :
11308 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11314 if test "$GCC" = yes; then
11315 # Check if gcc -print-prog-name=ld gives a path.
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11317 $as_echo_n "checking for ld used by $CC... " >&6; }
11320 # gcc leaves a trailing carriage return which upsets mingw
11321 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11323 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11326 # Accept absolute paths.
11328 re_direlt
='/[^/][^/]*/\.\./'
11329 # Canonicalize the pathname of ld
11330 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11331 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11332 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11334 test -z "$LD" && LD
="$ac_prog"
11337 # If it fails, then pretend we aren't using GCC.
11341 # If it is relative, then search for the first ld in PATH.
11342 with_gnu_ld
=unknown
11345 elif test "$with_gnu_ld" = yes; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11347 $as_echo_n "checking for GNU ld... " >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11350 $as_echo_n "checking for non-GNU ld... " >&6; }
11352 if test "${lt_cv_path_LD+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11355 if test -z "$LD"; then
11356 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11357 for ac_dir
in $PATH; do
11359 test -z "$ac_dir" && ac_dir
=.
11360 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11361 lt_cv_path_LD
="$ac_dir/$ac_prog"
11362 # Check to see if the program is GNU ld. I'd rather use --version,
11363 # but apparently some variants of GNU ld only accept -v.
11364 # Break only if it was the GNU/non-GNU ld that we prefer.
11365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11366 *GNU
* |
*'with BFD'*)
11367 test "$with_gnu_ld" != no
&& break
11370 test "$with_gnu_ld" != yes && break
11377 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11381 LD
="$lt_cv_path_LD"
11382 if test -n "$LD"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11384 $as_echo "$LD" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11389 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11396 case `$LD -v 2>&1 </dev/null` in
11397 *GNU
* |
*'with BFD'*)
11398 lt_cv_prog_gnu_ld
=yes
11401 lt_cv_prog_gnu_ld
=no
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11407 with_gnu_ld
=$lt_cv_prog_gnu_ld
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11418 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11419 if test "${lt_cv_path_NM+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11422 if test -n "$NM"; then
11423 # Let the user override the test.
11424 lt_cv_path_NM
="$NM"
11426 lt_nm_to_check
="${ac_tool_prefix}nm"
11427 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11428 lt_nm_to_check
="$lt_nm_to_check nm"
11430 for lt_tmp_nm
in $lt_nm_to_check; do
11431 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11432 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11434 test -z "$ac_dir" && ac_dir
=.
11435 tmp_nm
="$ac_dir/$lt_tmp_nm"
11436 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11437 # Check to see if the nm accepts a BSD-compat flag.
11438 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11439 # nm: unknown option "B" ignored
11440 # Tru64's nm complains that /dev/null is an invalid object file
11441 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11442 */dev
/null
* |
*'Invalid file or object type'*)
11443 lt_cv_path_NM
="$tmp_nm -B"
11447 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11449 lt_cv_path_NM
="$tmp_nm -p"
11453 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11454 continue # so that we can try to find one that supports BSD flags
11463 : ${lt_cv_path_NM=no}
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11467 $as_echo "$lt_cv_path_NM" >&6; }
11468 if test "$lt_cv_path_NM" != "no"; then
11469 NM
="$lt_cv_path_NM"
11471 # Didn't find any BSD compatible name lister, look for dumpbin.
11472 if test -n "$DUMPBIN"; then :
11473 # Let the user override the test.
11475 if test -n "$ac_tool_prefix"; then
11476 for ac_prog
in dumpbin
"link -dump"
11478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11479 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
11485 if test -n "$DUMPBIN"; then
11486 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11489 for as_dir
in $PATH
11492 test -z "$as_dir" && as_dir
=.
11493 for ac_exec_ext
in '' $ac_executable_extensions; do
11494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11495 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 DUMPBIN
=$ac_cv_prog_DUMPBIN
11506 if test -n "$DUMPBIN"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11508 $as_echo "$DUMPBIN" >&6; }
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11515 test -n "$DUMPBIN" && break
11518 if test -z "$DUMPBIN"; then
11519 ac_ct_DUMPBIN
=$DUMPBIN
11520 for ac_prog
in dumpbin
"link -dump"
11522 # Extract the first word of "$ac_prog", so it can be a program name with args.
11523 set dummy
$ac_prog; ac_word
=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11529 if test -n "$ac_ct_DUMPBIN"; then
11530 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11533 for as_dir
in $PATH
11536 test -z "$as_dir" && as_dir
=.
11537 for ac_exec_ext
in '' $ac_executable_extensions; do
11538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11539 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11550 if test -n "$ac_ct_DUMPBIN"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11552 $as_echo "$ac_ct_DUMPBIN" >&6; }
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11559 test -n "$ac_ct_DUMPBIN" && break
11562 if test "x$ac_ct_DUMPBIN" = x
; then
11565 case $cross_compiling:$ac_tool_warned in
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11569 ac_tool_warned
=yes ;;
11571 DUMPBIN
=$ac_ct_DUMPBIN
11575 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11577 DUMPBIN
="$DUMPBIN -symbols"
11585 if test "$DUMPBIN" != ":"; then
11589 test -z "$NM" && NM
=nm
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11597 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11598 if test "${lt_cv_nm_interface+set}" = set; then :
11599 $as_echo_n "(cached) " >&6
11601 lt_cv_nm_interface
="BSD nm"
11602 echo "int some_variable = 0;" > conftest.
$ac_ext
11603 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11604 (eval "$ac_compile" 2>conftest.err
)
11605 cat conftest.err
>&5
11606 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11607 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11608 cat conftest.err
>&5
11609 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11610 cat conftest.out
>&5
11611 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11612 lt_cv_nm_interface
="MS dumpbin"
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11617 $as_echo "$lt_cv_nm_interface" >&6; }
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11620 $as_echo_n "checking whether ln -s works... " >&6; }
11622 if test "$LN_S" = "ln -s"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11627 $as_echo "no, using $LN_S" >&6; }
11630 # find the maximum length of command line arguments
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11632 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11641 # On DJGPP, this test can blow up pretty badly due to problems in libc
11642 # (any single argument exceeding 2000 bytes causes a buffer overrun
11643 # during glob expansion). Even if it were fixed, the result of this
11644 # check would be larger than it should be.
11645 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11649 # Under GNU Hurd, this test is not required because there is
11650 # no limit to the length of command line arguments.
11651 # Libtool will interpret -1 as no limit whatsoever
11652 lt_cv_sys_max_cmd_len
=-1;
11655 cygwin
* | mingw
* | cegcc
*)
11656 # On Win9x/ME, this test blows up -- it succeeds, but takes
11657 # about 5 minutes as the teststring grows exponentially.
11658 # Worse, since 9x/ME are not pre-emptively multitasking,
11659 # you end up with a "frozen" computer, even though with patience
11660 # the test eventually succeeds (with a max line length of 256k).
11661 # Instead, let's just punt: use the minimum linelength reported by
11662 # all of the supported platforms: 8192 (on NT/2K/XP).
11663 lt_cv_sys_max_cmd_len
=8192;
11667 # On MiNT this can take a long time and run out of memory.
11668 lt_cv_sys_max_cmd_len
=8192;
11672 # On AmigaOS with pdksh, this test takes hours, literally.
11673 # So we just punt and use a minimum line length of 8192.
11674 lt_cv_sys_max_cmd_len
=8192;
11677 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11678 # This has been around since 386BSD, at least. Likely further.
11679 if test -x /sbin
/sysctl
; then
11680 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11681 elif test -x /usr
/sbin
/sysctl
; then
11682 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11684 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11686 # And add a safety zone
11687 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11688 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11692 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11693 lt_cv_sys_max_cmd_len
=196608
11697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11699 # nice to cause kernel panics so lets avoid the loop below.
11700 # First set a reasonable default.
11701 lt_cv_sys_max_cmd_len
=16384
11703 if test -x /sbin
/sysconfig
; then
11704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11705 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11710 lt_cv_sys_max_cmd_len
=102400
11712 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11713 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11714 if test -n "$kargmax"; then
11715 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11717 lt_cv_sys_max_cmd_len
=32768
11721 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11722 if test -n "$lt_cv_sys_max_cmd_len"; then
11723 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11724 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11726 # Make teststring a little bigger before we do anything with it.
11727 # a 1K string should be a reasonable start.
11728 for i
in 1 2 3 4 5 6 7 8 ; do
11729 teststring
=$teststring$teststring
11731 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11732 # If test is not a shell built-in, we'll probably end up computing a
11733 # maximum length that is only half of the actual maximum length, but
11735 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11736 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11737 test $i != 17 # 1/2 MB should be enough
11740 teststring
=$teststring$teststring
11742 # Only check the string length outside the loop.
11743 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11745 # Add a significant safety factor because C++ compilers can tack on
11746 # massive amounts of additional arguments before passing them to the
11747 # linker. It appears as though 1/2 is a usable value.
11748 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11755 if test -n $lt_cv_sys_max_cmd_len ; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11760 $as_echo "none" >&6; }
11762 max_cmd_len
=$lt_cv_sys_max_cmd_len
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11775 # Try some XSI features
11777 ( _lt_dummy
="a/b/c"
11778 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11780 && eval 'test $(( 1 + 1 )) -eq 2 \
11781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11784 $as_echo "$xsi_shell" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11788 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11790 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11792 && lt_shell_append=yes
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11794 $as_echo "$lt_shell_append" >&6; }
11797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11807 # test EBCDIC or ASCII
11808 case `echo X|tr X '\101'` in
11809 A) # ASCII based system
11810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11811 lt_SP2NL='tr \040 \012'
11812 lt_NL2SP='tr \015\012 \040\040'
11814 *) # EBCDIC based system
11815 lt_SP2NL='tr \100 \n'
11816 lt_NL2SP='tr \r\n \100\100'
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11829 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11830 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11831 $as_echo_n "(cached
) " >&6
11833 lt_cv_ld_reload_flag='-r'
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11836 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11837 reload_flag=$lt_cv_ld_reload_flag
11838 case $reload_flag in
11840 *) reload_flag=" $reload_flag" ;;
11842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11845 if test "$GCC" = yes; then
11846 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11861 if test -n "$ac_tool_prefix"; then
11862 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11863 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11865 $as_echo_n "checking
for $ac_word...
" >&6; }
11866 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11867 $as_echo_n "(cached
) " >&6
11869 if test -n "$OBJDUMP"; then
11870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11889 OBJDUMP=$ac_cv_prog_OBJDUMP
11890 if test -n "$OBJDUMP"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11892 $as_echo "$OBJDUMP" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11895 $as_echo "no
" >&6; }
11900 if test -z "$ac_cv_prog_OBJDUMP"; then
11901 ac_ct_OBJDUMP=$OBJDUMP
11902 # Extract the first word of "objdump
", so it can be a program name with args.
11903 set dummy objdump; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11905 $as_echo_n "checking
for $ac_word...
" >&6; }
11906 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11907 $as_echo_n "(cached
) " >&6
11909 if test -n "$ac_ct_OBJDUMP"; then
11910 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11929 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11930 if test -n "$ac_ct_OBJDUMP"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11932 $as_echo "$ac_ct_OBJDUMP" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11935 $as_echo "no
" >&6; }
11938 if test "x
$ac_ct_OBJDUMP" = x; then
11941 case $cross_compiling:$ac_tool_warned in
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11944 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11945 ac_tool_warned=yes ;;
11947 OBJDUMP=$ac_ct_OBJDUMP
11950 OBJDUMP="$ac_cv_prog_OBJDUMP"
11953 test -z "$OBJDUMP" && OBJDUMP=objdump
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11964 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11965 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11966 $as_echo_n "(cached
) " >&6
11968 lt_cv_file_magic_cmd='$MAGIC_CMD'
11969 lt_cv_file_magic_test_file=
11970 lt_cv_deplibs_check_method='unknown'
11971 # Need to set the preceding variable on all platforms that support
11972 # interlibrary dependencies.
11973 # 'none' -- dependencies not supported.
11974 # `unknown' -- same as none, but documents that we really don't know.
11975 # 'pass_all' -- all dependencies passed with no checks.
11976 # 'test_compile' -- check by making test program.
11977 # 'file_magic [[regex]]' -- check by looking for files in library path
11978 # which responds to the $file_magic_cmd with a given extended regex.
11979 # If you have `file' or equivalent on your system and you're not sure
11980 # whether `pass_all' will *always* work, you probably want this one.
11984 lt_cv_deplibs_check_method=pass_all
11988 lt_cv_deplibs_check_method=pass_all
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11993 lt_cv_file_magic_cmd='/usr/bin/file -L'
11994 lt_cv_file_magic_test_file=/shlib/libc.so
11998 # func_win32_libid is a shell function defined in ltmain.sh
11999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12000 lt_cv_file_magic_cmd='func_win32_libid'
12004 # Base MSYS/MinGW do not provide the 'file' command needed by
12005 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12006 # unless we find 'file', for example because we are cross-compiling.
12007 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12008 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12010 lt_cv_file_magic_cmd='func_win32_libid'
12012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12013 lt_cv_file_magic_cmd='$OBJDUMP -f'
12018 # use the weaker test based on 'objdump'. See mingw*.
12019 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12020 lt_cv_file_magic_cmd='$OBJDUMP -f'
12023 darwin* | rhapsody*)
12024 lt_cv_deplibs_check_method=pass_all
12027 freebsd* | dragonfly*)
12028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12031 # Not sure whether the presence of OpenBSD here was a mistake.
12032 # Let's accept both of them until this is cleared up.
12033 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12034 lt_cv_file_magic_cmd=/usr/bin/file
12035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12039 lt_cv_deplibs_check_method=pass_all
12044 lt_cv_deplibs_check_method=pass_all
12048 lt_cv_deplibs_check_method=pass_all
12051 hpux10.20* | hpux11*)
12052 lt_cv_file_magic_cmd=/usr/bin/file
12055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12059 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]'
12060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12074 irix5* | irix6* | nonstopux*)
12076 *-32|*"-32 ") libmagic=32-bit;;
12077 *-n32|*"-n32 ") libmagic=N32;;
12078 *-64|*"-64 ") libmagic=64-bit;;
12079 *) libmagic=never-match;;
12081 lt_cv_deplibs_check_method=pass_all
12084 # This must be Linux ELF.
12085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12086 lt_cv_deplibs_check_method=pass_all
12090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12099 lt_cv_file_magic_cmd=/usr/bin/file
12100 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12104 lt_cv_deplibs_check_method=pass_all
12108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12115 osf3* | osf4* | osf5*)
12116 lt_cv_deplibs_check_method=pass_all
12120 lt_cv_deplibs_check_method=pass_all
12124 lt_cv_deplibs_check_method=pass_all
12127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12128 lt_cv_deplibs_check_method=pass_all
12132 case $host_vendor in
12134 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]'
12135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12138 lt_cv_deplibs_check_method=pass_all
12141 lt_cv_file_magic_cmd='/bin/file'
12142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12145 lt_cv_file_magic_cmd='/bin/file'
12146 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12147 lt_cv_file_magic_test_file=/lib/libc.so
12150 lt_cv_deplibs_check_method=pass_all
12153 lt_cv_deplibs_check_method=pass_all
12159 lt_cv_deplibs_check_method=pass_all
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12165 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12166 file_magic_cmd=$lt_cv_file_magic_cmd
12167 deplibs_check_method=$lt_cv_deplibs_check_method
12168 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12181 if test -n "$ac_tool_prefix"; then
12182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12183 set dummy ${ac_tool_prefix}ar; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12185 $as_echo_n "checking
for $ac_word...
" >&6; }
12186 if test "${ac_cv_prog_AR+set}" = set; then :
12187 $as_echo_n "(cached
) " >&6
12189 if test -n "$AR"; then
12190 ac_cv_prog_AR="$AR" # Let the user override the test.
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199 ac_cv_prog_AR="${ac_tool_prefix}ar"
12200 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12210 if test -n "$AR"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12212 $as_echo "$AR" >&6; }
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12215 $as_echo "no
" >&6; }
12220 if test -z "$ac_cv_prog_AR"; then
12222 # Extract the first word of "ar", so it can be a program name with args.
12223 set dummy ar; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12225 $as_echo_n "checking
for $ac_word...
" >&6; }
12226 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12227 $as_echo_n "(cached
) " >&6
12229 if test -n "$ac_ct_AR"; then
12230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_ac_ct_AR="ar"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12250 if test -n "$ac_ct_AR"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12252 $as_echo "$ac_ct_AR" >&6; }
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12255 $as_echo "no
" >&6; }
12258 if test "x
$ac_ct_AR" = x; then
12261 case $cross_compiling:$ac_tool_warned in
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12264 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12265 ac_tool_warned=yes ;;
12270 AR="$ac_cv_prog_AR"
12273 test -z "$AR" && AR=ar
12274 test -z "$AR_FLAGS" && AR_FLAGS=cru
12286 if test -n "$ac_tool_prefix"; then
12287 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12288 set dummy ${ac_tool_prefix}strip; ac_word=$2
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12290 $as_echo_n "checking
for $ac_word...
" >&6; }
12291 if test "${ac_cv_prog_STRIP+set}" = set; then :
12292 $as_echo_n "(cached
) " >&6
12294 if test -n "$STRIP"; then
12295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12301 test -z "$as_dir" && as_dir=.
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12304 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12305 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12314 STRIP=$ac_cv_prog_STRIP
12315 if test -n "$STRIP"; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12317 $as_echo "$STRIP" >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12320 $as_echo "no
" >&6; }
12325 if test -z "$ac_cv_prog_STRIP"; then
12327 # Extract the first word of "strip
", so it can be a program name with args.
12328 set dummy strip; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12330 $as_echo_n "checking
for $ac_word...
" >&6; }
12331 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12332 $as_echo_n "(cached
) " >&6
12334 if test -n "$ac_ct_STRIP"; then
12335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12344 ac_cv_prog_ac_ct_STRIP="strip
"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12354 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12355 if test -n "$ac_ct_STRIP"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12357 $as_echo "$ac_ct_STRIP" >&6; }
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12360 $as_echo "no
" >&6; }
12363 if test "x
$ac_ct_STRIP" = x; then
12366 case $cross_compiling:$ac_tool_warned in
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12369 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12370 ac_tool_warned=yes ;;
12375 STRIP="$ac_cv_prog_STRIP"
12378 test -z "$STRIP" && STRIP=:
12385 if test -n "$ac_tool_prefix"; then
12386 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12389 $as_echo_n "checking
for $ac_word...
" >&6; }
12390 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12391 $as_echo_n "(cached
) " >&6
12393 if test -n "$RANLIB"; then
12394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12413 RANLIB=$ac_cv_prog_RANLIB
12414 if test -n "$RANLIB"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12416 $as_echo "$RANLIB" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12419 $as_echo "no
" >&6; }
12424 if test -z "$ac_cv_prog_RANLIB"; then
12425 ac_ct_RANLIB=$RANLIB
12426 # Extract the first word of "ranlib
", so it can be a program name with args.
12427 set dummy ranlib; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12429 $as_echo_n "checking
for $ac_word...
" >&6; }
12430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12431 $as_echo_n "(cached
) " >&6
12433 if test -n "$ac_ct_RANLIB"; then
12434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12454 if test -n "$ac_ct_RANLIB"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12456 $as_echo "$ac_ct_RANLIB" >&6; }
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12459 $as_echo "no
" >&6; }
12462 if test "x
$ac_ct_RANLIB" = x; then
12465 case $cross_compiling:$ac_tool_warned in
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12468 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12469 ac_tool_warned=yes ;;
12471 RANLIB=$ac_ct_RANLIB
12474 RANLIB="$ac_cv_prog_RANLIB"
12477 test -z "$RANLIB" && RANLIB=:
12484 # Determine commands to create old-style static archives.
12485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12486 old_postinstall_cmds='chmod 644 $oldlib'
12487 old_postuninstall_cmds=
12489 if test -n "$RANLIB"; then
12492 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12495 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12498 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12503 lock_old_archive_extraction=yes ;;
12505 lock_old_archive_extraction=no ;;
12546 # If no C compiler was specified, use CC.
12549 # If no C compiler flags were specified, use CFLAGS.
12550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12552 # Allow CC to be a program name with arguments.
12556 # Check for command to grab the raw symbol name followed by C symbol from nm.
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12558 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12560 $as_echo_n "(cached
) " >&6
12563 # These are sane defaults that work on at least a few old systems.
12564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12566 # Character class describing NM global symbol codes.
12567 symcode='[BCDEGRST]'
12569 # Regexp to match symbols that can be accessed directly from C.
12570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12572 # Define system-specific variables.
12577 cygwin* | mingw* | pw32* | cegcc*)
12578 symcode='[ABCDGISTW]'
12581 if test "$host_cpu" = ia64; then
12582 symcode='[ABCDEGRST]'
12585 irix* | nonstopux*)
12586 symcode='[BCDEGRST]'
12589 symcode='[BCDEGQRST]'
12600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12608 # If we're using GNU nm, then use its standard symbol codes.
12609 case `$NM -V 2>&1` in
12610 *GNU* | *'with BFD'*)
12611 symcode='[ABCDGIRSTW]' ;;
12614 # Transform an extracted symbol line into a proper C declaration.
12615 # Some systems (esp. on ia64) link data and code symbols differently,
12616 # so use this general approach.
12617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12619 # Transform an extracted symbol line into symbol name and symbol address
12620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12621 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'"
12623 # Handle CRLF in mingw tool chain
12627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12631 # Try without a prefix underscore, then with it.
12632 for ac_symprfx in "" "_
"; do
12634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12635 symxfrm="\\1 $ac_symprfx\\2 \\2"
12637 # Write the raw and C identifiers.
12638 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12639 # Fake it for dumpbin and say T for any non-static function
12640 # and D for any global variable.
12641 # Also find C++ and __fastcall symbols from MSVC++,
12642 # which start with @ or ?.
12643 lt_cv_sys_global_symbol_pipe="$AWK '"\
12644 " {last_section=section; section=\$ 3};"\
12645 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12646 " \$ 0!~/External *\|/{next};"\
12647 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12648 " {if(hide[section]) next};"\
12649 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12650 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12651 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12652 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12653 " ' prfx
=^
$ac_symprfx"
12655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12658 # Check to see that the pipe works correctly.
12662 cat > conftest.$ac_ext <<_LT_EOF
12667 void nm_test_func(void);
12668 void nm_test_func(void){}
12672 int main(){nm_test_var='a';nm_test_func();return(0);}
12675 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12676 (eval $ac_compile) 2>&5
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12679 test $ac_status = 0; }; then
12680 # Now try to grab the symbols.
12682 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12683 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12685 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12686 test $ac_status = 0; } && test -s "$nlist"; then
12687 # Try sorting and uniquifying the output.
12688 if sort "$nlist" | uniq > "$nlist"T; then
12689 mv -f "$nlist"T "$nlist"
12694 # Make sure that we snagged all the symbols we need.
12695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12697 cat <<_LT_EOF > conftest.$ac_ext
12703 # Now generate the symbol file.
12704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12706 cat <<_LT_EOF >> conftest.$ac_ext
12708 /* The mapping between symbol names and symbols. */
12713 lt__PROGRAM__LTX_preloaded_symbols[] =
12715 { "@PROGRAM@
", (void *) 0 },
12717 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12718 cat <<\_LT_EOF >> conftest.$ac_ext
12722 /* This works around a problem in FreeBSD linker */
12723 #ifdef FREEBSD_WORKAROUND
12724 static const void *lt_preloaded_setup() {
12725 return lt__PROGRAM__LTX_preloaded_symbols;
12733 # Now try linking the two files.
12734 mv conftest.$ac_objext conftstm.$ac_objext
12735 lt_save_LIBS="$LIBS"
12736 lt_save_CFLAGS="$CFLAGS"
12737 LIBS="conftstm.
$ac_objext"
12738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12739 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12740 (eval $ac_link) 2>&5
12742 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12743 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12746 LIBS="$lt_save_LIBS"
12747 CFLAGS="$lt_save_CFLAGS"
12749 echo "cannot
find nm_test_func
in $nlist" >&5
12752 echo "cannot
find nm_test_var
in $nlist" >&5
12755 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12758 echo "$progname: failed program was
:" >&5
12759 cat conftest.$ac_ext >&5
12761 rm -rf conftest* conftst*
12763 # Do not use the global_symbol_pipe unless it works.
12764 if test "$pipe_works" = yes; then
12767 lt_cv_sys_global_symbol_pipe=
12773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12774 lt_cv_sys_global_symbol_to_cdecl=
12776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12778 $as_echo "failed
" >&6; }
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12781 $as_echo "ok
" >&6; }
12805 # Check whether --enable-libtool-lock was given.
12806 if test "${enable_libtool_lock+set}" = set; then :
12807 enableval=$enable_libtool_lock;
12810 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12812 # Some flags need to be propagated to the compiler or linker for good
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819 (eval $ac_compile) 2>&5
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12822 test $ac_status = 0; }; then
12823 case `/usr/bin/file conftest.$ac_objext` in
12825 HPUX_IA64_MODE="32"
12828 HPUX_IA64_MODE="64"
12835 # Find out which ABI we are using.
12836 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
12837 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12838 (eval $ac_compile) 2>&5
12840 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12841 test $ac_status = 0; }; then
12842 if test "$lt_cv_prog_gnu_ld" = yes; then
12843 case `/usr/bin/file conftest.$ac_objext` in
12845 LD="${LD-ld} -melf32bsmip"
12848 LD="${LD-ld} -melf32bmipn32"
12851 LD="${LD-ld} -melf64bmip"
12855 case `/usr/bin/file conftest.$ac_objext` in
12871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12873 # Find out which ABI we are using.
12874 echo 'int i;' > conftest.$ac_ext
12875 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12876 (eval $ac_compile) 2>&5
12878 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12879 test $ac_status = 0; }; then
12880 case `/usr/bin/file conftest.o` in
12883 x86_64-*kfreebsd*-gnu)
12884 LD="${LD-ld} -m elf_i386_fbsd
"
12887 LD="${LD-ld} -m elf_i386
"
12889 ppc64-*linux*|powerpc64-*linux*)
12890 LD="${LD-ld} -m elf32ppclinux
"
12893 LD="${LD-ld} -m elf_s390
"
12896 LD="${LD-ld} -m elf32_sparc
"
12902 x86_64-*kfreebsd*-gnu)
12903 LD="${LD-ld} -m elf_x86_64_fbsd
"
12906 LD="${LD-ld} -m elf_x86_64
"
12908 ppc*-*linux*|powerpc*-*linux*)
12909 LD="${LD-ld} -m elf64ppc
"
12911 s390*-*linux*|s390*-*tpf*)
12912 LD="${LD-ld} -m elf64_s390
"
12915 LD="${LD-ld} -m elf64_sparc
"
12925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12926 SAVE_CFLAGS="$CFLAGS"
12927 CFLAGS="$CFLAGS -belf"
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12929 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12930 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12931 $as_echo_n "(cached
) " >&6
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12950 if ac_fn_c_try_link "$LINENO"; then :
12951 lt_cv_cc_needs_belf=yes
12953 lt_cv_cc_needs_belf=no
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12965 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12968 CFLAGS="$SAVE_CFLAGS"
12972 # Find out which ABI we are using.
12973 echo 'int i;' > conftest.$ac_ext
12974 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12975 (eval $ac_compile) 2>&5
12977 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12978 test $ac_status = 0; }; then
12979 case `/usr/bin/file conftest.o` in
12981 case $lt_cv_prog_gnu_ld in
12982 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12996 need_locks="$enable_libtool_lock"
13000 rhapsody* | darwin*)
13001 if test -n "$ac_tool_prefix"; then
13002 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13005 $as_echo_n "checking
for $ac_word...
" >&6; }
13006 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13007 $as_echo_n "(cached
) " >&6
13009 if test -n "$DSYMUTIL"; then
13010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13029 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13030 if test -n "$DSYMUTIL"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13032 $as_echo "$DSYMUTIL" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13035 $as_echo "no
" >&6; }
13040 if test -z "$ac_cv_prog_DSYMUTIL"; then
13041 ac_ct_DSYMUTIL=$DSYMUTIL
13042 # Extract the first word of "dsymutil
", so it can be a program name with args.
13043 set dummy dsymutil; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13045 $as_echo_n "checking
for $ac_word...
" >&6; }
13046 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13047 $as_echo_n "(cached
) " >&6
13049 if test -n "$ac_ct_DSYMUTIL"; then
13050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13070 if test -n "$ac_ct_DSYMUTIL"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13072 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13075 $as_echo "no
" >&6; }
13078 if test "x
$ac_ct_DSYMUTIL" = x; then
13081 case $cross_compiling:$ac_tool_warned in
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13084 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13085 ac_tool_warned=yes ;;
13087 DSYMUTIL=$ac_ct_DSYMUTIL
13090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13093 if test -n "$ac_tool_prefix"; then
13094 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13097 $as_echo_n "checking
for $ac_word...
" >&6; }
13098 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13099 $as_echo_n "(cached
) " >&6
13101 if test -n "$NMEDIT"; then
13102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13121 NMEDIT=$ac_cv_prog_NMEDIT
13122 if test -n "$NMEDIT"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13124 $as_echo "$NMEDIT" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13127 $as_echo "no
" >&6; }
13132 if test -z "$ac_cv_prog_NMEDIT"; then
13133 ac_ct_NMEDIT=$NMEDIT
13134 # Extract the first word of "nmedit
", so it can be a program name with args.
13135 set dummy nmedit; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13137 $as_echo_n "checking
for $ac_word...
" >&6; }
13138 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13139 $as_echo_n "(cached
) " >&6
13141 if test -n "$ac_ct_NMEDIT"; then
13142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13161 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13162 if test -n "$ac_ct_NMEDIT"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13164 $as_echo "$ac_ct_NMEDIT" >&6; }
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13167 $as_echo "no
" >&6; }
13170 if test "x
$ac_ct_NMEDIT" = x; then
13173 case $cross_compiling:$ac_tool_warned in
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13176 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13177 ac_tool_warned=yes ;;
13179 NMEDIT=$ac_ct_NMEDIT
13182 NMEDIT="$ac_cv_prog_NMEDIT"
13185 if test -n "$ac_tool_prefix"; then
13186 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13187 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13189 $as_echo_n "checking
for $ac_word...
" >&6; }
13190 if test "${ac_cv_prog_LIPO+set}" = set; then :
13191 $as_echo_n "(cached
) " >&6
13193 if test -n "$LIPO"; then
13194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13213 LIPO=$ac_cv_prog_LIPO
13214 if test -n "$LIPO"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13216 $as_echo "$LIPO" >&6; }
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13219 $as_echo "no
" >&6; }
13224 if test -z "$ac_cv_prog_LIPO"; then
13226 # Extract the first word of "lipo
", so it can be a program name with args.
13227 set dummy lipo; ac_word=$2
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13229 $as_echo_n "checking
for $ac_word...
" >&6; }
13230 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13231 $as_echo_n "(cached
) " >&6
13233 if test -n "$ac_ct_LIPO"; then
13234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in $PATH
13240 test -z "$as_dir" && as_dir=.
13241 for ac_exec_ext in '' $ac_executable_extensions; do
13242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13243 ac_cv_prog_ac_ct_LIPO="lipo
"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13253 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13254 if test -n "$ac_ct_LIPO"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13256 $as_echo "$ac_ct_LIPO" >&6; }
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13259 $as_echo "no
" >&6; }
13262 if test "x
$ac_ct_LIPO" = x; then
13265 case $cross_compiling:$ac_tool_warned in
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13268 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13269 ac_tool_warned=yes ;;
13274 LIPO="$ac_cv_prog_LIPO"
13277 if test -n "$ac_tool_prefix"; then
13278 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13279 set dummy ${ac_tool_prefix}otool; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13281 $as_echo_n "checking
for $ac_word...
" >&6; }
13282 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13283 $as_echo_n "(cached
) " >&6
13285 if test -n "$OTOOL"; then
13286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13292 test -z "$as_dir" && as_dir=.
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13296 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13305 OTOOL=$ac_cv_prog_OTOOL
13306 if test -n "$OTOOL"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13308 $as_echo "$OTOOL" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13311 $as_echo "no
" >&6; }
13316 if test -z "$ac_cv_prog_OTOOL"; then
13318 # Extract the first word of "otool
", so it can be a program name with args.
13319 set dummy otool; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13321 $as_echo_n "checking
for $ac_word...
" >&6; }
13322 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13323 $as_echo_n "(cached
) " >&6
13325 if test -n "$ac_ct_OTOOL"; then
13326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_prog_ac_ct_OTOOL="otool
"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13345 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13346 if test -n "$ac_ct_OTOOL"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13348 $as_echo "$ac_ct_OTOOL" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13351 $as_echo "no
" >&6; }
13354 if test "x
$ac_ct_OTOOL" = x; then
13357 case $cross_compiling:$ac_tool_warned in
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13360 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13361 ac_tool_warned=yes ;;
13366 OTOOL="$ac_cv_prog_OTOOL"
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13373 $as_echo_n "checking
for $ac_word...
" >&6; }
13374 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13375 $as_echo_n "(cached
) " >&6
13377 if test -n "$OTOOL64"; then
13378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13397 OTOOL64=$ac_cv_prog_OTOOL64
13398 if test -n "$OTOOL64"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13400 $as_echo "$OTOOL64" >&6; }
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13403 $as_echo "no
" >&6; }
13408 if test -z "$ac_cv_prog_OTOOL64"; then
13409 ac_ct_OTOOL64=$OTOOL64
13410 # Extract the first word of "otool64
", so it can be a program name with args.
13411 set dummy otool64; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13413 $as_echo_n "checking
for $ac_word...
" >&6; }
13414 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13415 $as_echo_n "(cached
) " >&6
13417 if test -n "$ac_ct_OTOOL64"; then
13418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13437 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13438 if test -n "$ac_ct_OTOOL64"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13440 $as_echo "$ac_ct_OTOOL64" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13443 $as_echo "no
" >&6; }
13446 if test "x
$ac_ct_OTOOL64" = x; then
13449 case $cross_compiling:$ac_tool_warned in
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13452 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13453 ac_tool_warned=yes ;;
13455 OTOOL64=$ac_ct_OTOOL64
13458 OTOOL64="$ac_cv_prog_OTOOL64"
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13488 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13489 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13490 $as_echo_n "(cached
) " >&6
13492 lt_cv_apple_cc_single_mod=no
13493 if test -z "${LT_MULTI_MODULE}"; then
13494 # By default we will add the -single_module flag. You can override
13495 # by either setting the environment variable LT_MULTI_MODULE
13496 # non-empty at configure time, or by adding -multi_module to the
13498 rm -rf libconftest.dylib*
13499 echo "int foo
(void
){return 1;}" > conftest.c
13500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13501 -dynamiclib -Wl,-single_module conftest.c
" >&5
13502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13506 lt_cv_apple_cc_single_mod=yes
13508 cat conftest.err >&5
13510 rm -rf libconftest.dylib*
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13517 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13519 $as_echo_n "(cached
) " >&6
13521 lt_cv_ld_exported_symbols_list=no
13522 save_LDFLAGS=$LDFLAGS
13523 echo "_main
" > conftest.sym
13524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13536 if ac_fn_c_try_link "$LINENO"; then :
13537 lt_cv_ld_exported_symbols_list=yes
13539 lt_cv_ld_exported_symbols_list=no
13541 rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 LDFLAGS="$save_LDFLAGS"
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13547 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13549 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13550 if test "${lt_cv_ld_force_load+set}" = set; then :
13551 $as_echo_n "(cached
) " >&6
13553 lt_cv_ld_force_load=no
13554 cat > conftest.c << _LT_EOF
13555 int forced_loaded() { return 2;}
13557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13559 echo "$AR cru libconftest.a conftest.o
" >&5
13560 $AR cru libconftest.a conftest.o 2>&5
13561 cat > conftest.c << _LT_EOF
13562 int main() { return 0;}
13564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13567 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13568 lt_cv_ld_force_load=yes
13570 cat conftest.err >&5
13572 rm -f conftest.err libconftest.a conftest conftest.c
13573 rm -rf conftest.dSYM
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13577 $as_echo "$lt_cv_ld_force_load" >&6; }
13579 rhapsody* | darwin1.[012])
13580 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13583 darwin*) # darwin 5.x on
13584 # if running on 10.5 or later, the deployment target defaults
13585 # to the OS version, if on x86, and 10.4, the deployment
13586 # target defaults to 10.4. Don't you love it?
13587 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13588 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13597 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13598 _lt_dar_single_mod='$single_module'
13600 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13601 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13603 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13605 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13606 _lt_dsymutil='~$DSYMUTIL $lib || :'
13613 for ac_header in dlfcn.h
13615 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13616 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_DLFCN_H 1
13636 enable_win32_dll=no
13639 # Check whether --enable-shared was given.
13640 if test "${enable_shared+set}" = set; then :
13641 enableval=$enable_shared; p=${PACKAGE-default}
13643 yes) enable_shared=yes ;;
13644 no) enable_shared=no ;;
13647 # Look at the argument we got. We use all the common list separators.
13648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13649 for pkg in $enableval; do
13651 if test "X
$pkg" = "X
$p"; then
13670 # Check whether --enable-static was given.
13671 if test "${enable_static+set}" = set; then :
13672 enableval=$enable_static; p=${PACKAGE-default}
13674 yes) enable_static=yes ;;
13675 no) enable_static=no ;;
13678 # Look at the argument we got. We use all the common list separators.
13679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13680 for pkg in $enableval; do
13682 if test "X
$pkg" = "X
$p"; then
13702 # Check whether --with-pic was given.
13703 if test "${with_pic+set}" = set; then :
13704 withval=$with_pic; pic_mode="$withval"
13710 test -z "$pic_mode" && pic_mode=default
13718 # Check whether --enable-fast-install was given.
13719 if test "${enable_fast_install+set}" = set; then :
13720 enableval=$enable_fast_install; p=${PACKAGE-default}
13722 yes) enable_fast_install=yes ;;
13723 no) enable_fast_install=no ;;
13725 enable_fast_install=no
13726 # Look at the argument we got. We use all the common list separators.
13727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13728 for pkg in $enableval; do
13730 if test "X
$pkg" = "X
$p"; then
13731 enable_fast_install=yes
13738 enable_fast_install=yes
13751 # This can be used to rebuild libtool when needed
13752 LIBTOOL_DEPS="$ltmain"
13754 # Always use our own libtool.
13755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13782 test -z "$LN_S" && LN_S="ln -s"
13797 if test -n "${ZSH_VERSION+set}" ; then
13798 setopt NO_GLOB_SUBST
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13802 $as_echo_n "checking
for objdir...
" >&6; }
13803 if test "${lt_cv_objdir+set}" = set; then :
13804 $as_echo_n "(cached
) " >&6
13806 rm -f .libs 2>/dev/null
13807 mkdir .libs 2>/dev/null
13808 if test -d .libs; then
13811 # MS-DOS does not allow filenames that begin with a dot.
13814 rmdir .libs 2>/dev/null
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13817 $as_echo "$lt_cv_objdir" >&6; }
13818 objdir=$lt_cv_objdir
13824 cat >>confdefs.h <<_ACEOF
13825 #define LT_OBJDIR "$lt_cv_objdir/"
13833 # AIX sometimes has problems with the GCC collect2 program. For some
13834 # reason, if we set the COLLECT_NAMES environment variable, the problems
13835 # vanish in a puff of smoke.
13836 if test "X
${COLLECT_NAMES+set}" != Xset; then
13838 export COLLECT_NAMES
13843 # Global variables:
13845 can_build_shared=yes
13847 # All known linkers require a `.a' archive for static linking (except MSVC,
13848 # which needs '.lib').
13851 with_gnu_ld="$lt_cv_prog_gnu_ld"
13854 old_CFLAGS="$CFLAGS"
13856 # Set sane defaults for various variables
13857 test -z "$CC" && CC=cc
13858 test -z "$LTCC" && LTCC=$CC
13859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13860 test -z "$LD" && LD=ld
13861 test -z "$ac_objext" && ac_objext=o
13863 for cc_temp in $compiler""; do
13865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13871 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
13874 # Only perform the check for file, if the check method requires it
13875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13876 case $deplibs_check_method in
13878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
13880 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
13881 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13882 $as_echo_n "(cached
) " >&6
13886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13889 lt_save_MAGIC_CMD="$MAGIC_CMD"
13890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13891 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13892 for ac_dir in $ac_dummy; do
13894 test -z "$ac_dir" && ac_dir=.
13895 if test -f $ac_dir/${ac_tool_prefix}file; then
13896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13897 if test -n "$file_magic_test_file"; then
13898 case $deplibs_check_method in
13900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13903 $EGREP "$file_magic_regex" > /dev/null; then
13908 *** Warning: the command libtool uses to detect shared libraries,
13909 *** $file_magic_cmd, produces output that libtool cannot recognize.
13910 *** The result is that libtool may fail to recognize shared libraries
13911 *** as such. This will affect the creation of libtool libraries that
13912 *** depend on shared libraries, but programs linked with such libtool
13913 *** libraries will work regardless of this problem. Nevertheless, you
13914 *** may want to report the problem to your system manager and/or to
13915 *** bug-libtool@gnu.org
13925 MAGIC_CMD="$lt_save_MAGIC_CMD"
13930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13931 if test -n "$MAGIC_CMD"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13933 $as_echo "$MAGIC_CMD" >&6; }
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13936 $as_echo "no
" >&6; }
13943 if test -z "$lt_cv_path_MAGIC_CMD"; then
13944 if test -n "$ac_tool_prefix"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
13946 $as_echo_n "checking
for file...
" >&6; }
13947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13948 $as_echo_n "(cached
) " >&6
13952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13955 lt_save_MAGIC_CMD="$MAGIC_CMD"
13956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13957 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13958 for ac_dir in $ac_dummy; do
13960 test -z "$ac_dir" && ac_dir=.
13961 if test -f $ac_dir/file; then
13962 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13963 if test -n "$file_magic_test_file"; then
13964 case $deplibs_check_method in
13966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13969 $EGREP "$file_magic_regex" > /dev/null; then
13974 *** Warning: the command libtool uses to detect shared libraries,
13975 *** $file_magic_cmd, produces output that libtool cannot recognize.
13976 *** The result is that libtool may fail to recognize shared libraries
13977 *** as such. This will affect the creation of libtool libraries that
13978 *** depend on shared libraries, but programs linked with such libtool
13979 *** libraries will work regardless of this problem. Nevertheless, you
13980 *** may want to report the problem to your system manager and/or to
13981 *** bug-libtool@gnu.org
13991 MAGIC_CMD="$lt_save_MAGIC_CMD"
13996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13997 if test -n "$MAGIC_CMD"; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13999 $as_echo "$MAGIC_CMD" >&6; }
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14002 $as_echo "no
" >&6; }
14015 # Use C for the default configuration in the libtool script
14019 ac_cpp='$CPP $CPPFLAGS'
14020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14025 # Source file extension for C test sources.
14028 # Object file extension for compiled C test sources.
14032 # Code to be used in simple compile tests
14033 lt_simple_compile_test_code="int some_variable
= 0;"
14035 # Code to be used in simple link tests
14036 lt_simple_link_test_code='int main(){return(0);}'
14044 # If no C compiler was specified, use CC.
14047 # If no C compiler flags were specified, use CFLAGS.
14048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14050 # Allow CC to be a program name with arguments.
14053 # Save the default compiler, since it gets overwritten when the other
14054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14055 compiler_DEFAULT=$CC
14057 # save warnings/boilerplate of simple test code
14058 ac_outfile=conftest.$ac_objext
14059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14061 _lt_compiler_boilerplate=`cat conftest.err`
14064 ac_outfile=conftest.$ac_objext
14065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14067 _lt_linker_boilerplate=`cat conftest.err`
14072 ## There is no encapsulation within the following macros, do not change
14073 ## the running order or otherwise move them around unless you know exactly
14074 ## what you are doing...
14075 if test -n "$compiler"; then
14077 lt_prog_compiler_no_builtin_flag=
14079 if test "$GCC" = yes; then
14080 case $cc_basename in
14082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14088 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14090 $as_echo_n "(cached
) " >&6
14092 lt_cv_prog_compiler_rtti_exceptions=no
14093 ac_outfile=conftest.$ac_objext
14094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14095 lt_compiler_flag="-fno-rtti -fno-exceptions"
14096 # Insert the option either (1) after the last *FLAGS variable, or
14097 # (2) before a word containing "conftest.
", or (3) at the end.
14098 # Note that $ac_compile itself does not contain backslashes and begins
14099 # with a dollar sign (not a hyphen), so the echo should work correctly.
14100 # The option is referenced via a variable to avoid confusing sed.
14101 lt_compile=`echo "$ac_compile" | $SED \
14102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104 -e 's:$: $lt_compiler_flag:'`
14105 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14106 (eval "$lt_compile" 2>conftest.err)
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14110 if (exit $ac_status) && test -s "$ac_outfile"; then
14111 # The compiler can only warn and ignore the option if not recognized
14112 # So say no if there are warnings other than the usual output.
14113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14116 lt_cv_prog_compiler_rtti_exceptions=yes
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14138 lt_prog_compiler_wl=
14139 lt_prog_compiler_pic=
14140 lt_prog_compiler_static=
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14143 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14145 if test "$GCC" = yes; then
14146 lt_prog_compiler_wl='-Wl,'
14147 lt_prog_compiler_static='-static'
14151 # All AIX code is PIC.
14152 if test "$host_cpu" = ia64; then
14153 # AIX 5 now supports IA64 processor
14154 lt_prog_compiler_static='-Bstatic'
14161 # see comment about AmigaOS4 .so support
14162 lt_prog_compiler_pic='-fPIC'
14165 # FIXME: we need at least 68020 code to build shared libraries, but
14166 # adding the `-m68020' flag to GCC prevents building anything better,
14168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14174 # PIC is the default for these OSes.
14177 mingw* | cygwin* | pw32* | os2* | cegcc*)
14178 # This hack is so that the source file can tell whether it is being
14179 # built for inclusion in a dll (and should export symbols for example).
14180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14181 # (--disable-auto-import) libraries
14182 lt_prog_compiler_pic='-DDLL_EXPORT'
14185 darwin* | rhapsody*)
14186 # PIC is the default on this platform
14187 # Common symbols not allowed in MH_DYLIB files
14188 lt_prog_compiler_pic='-fno-common'
14192 # PIC is the default for Haiku.
14193 # The "-static" flag exists, but is broken.
14194 lt_prog_compiler_static=
14198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14200 # sets the default TLS model and affects inlining.
14206 lt_prog_compiler_pic='-fPIC'
14212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14213 # Instead, we relocate shared libraries at runtime.
14217 # Just because we use GCC doesn't mean we suddenly get shared libraries
14218 # on systems that don't support them.
14219 lt_prog_compiler_can_build_shared=no
14224 # QNX uses GNU C++, but need to define -shared option too, otherwise
14225 # it will coredump.
14226 lt_prog_compiler_pic='-fPIC -shared'
14230 if test -d /usr/nec; then
14231 lt_prog_compiler_pic=-Kconform_pic
14236 lt_prog_compiler_pic='-fPIC'
14240 case $cc_basename in
14241 nvcc*) # Cuda Compiler Driver 2.2
14242 lt_prog_compiler_wl='-Xlinker '
14243 lt_prog_compiler_pic='-Xcompiler -fPIC'
14247 # PORTME Check for flag to pass linker flags through the system compiler.
14250 lt_prog_compiler_wl='-Wl,'
14251 if test "$host_cpu" = ia64; then
14252 # AIX 5 now supports IA64 processor
14253 lt_prog_compiler_static='-Bstatic'
14255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14259 mingw* | cygwin* | pw32* | os2* | cegcc*)
14260 # This hack is so that the source file can tell whether it is being
14261 # built for inclusion in a dll (and should export symbols for example).
14262 lt_prog_compiler_pic='-DDLL_EXPORT'
14265 hpux9* | hpux10* | hpux11*)
14266 lt_prog_compiler_wl='-Wl,'
14267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14268 # not for PA HP-UX.
14274 lt_prog_compiler_pic='+Z'
14277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14278 lt_prog_compiler_static='${wl}-a ${wl}archive'
14281 irix5* | irix6* | nonstopux*)
14282 lt_prog_compiler_wl='-Wl,'
14283 # PIC (with -KPIC) is the default.
14284 lt_prog_compiler_static='-non_shared'
14287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14288 case $cc_basename in
14289 # old Intel for x86_64 which still supported -KPIC.
14291 lt_prog_compiler_wl='-Wl,'
14292 lt_prog_compiler_pic='-KPIC'
14293 lt_prog_compiler_static='-static'
14295 # icc used to be incompatible with GCC.
14296 # ICC 10 doesn't accept -KPIC any more.
14298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-fPIC'
14300 lt_prog_compiler_static='-static'
14302 # Lahey Fortran 8.1.
14304 lt_prog_compiler_wl='-Wl,'
14305 lt_prog_compiler_pic='--shared'
14306 lt_prog_compiler_static='--static'
14308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14309 # Portland Group compilers (*not* the Pentium gcc compiler,
14310 # which looks to be a dead project)
14311 lt_prog_compiler_wl='-Wl,'
14312 lt_prog_compiler_pic='-fpic'
14313 lt_prog_compiler_static='-Bstatic'
14316 lt_prog_compiler_wl='-Wl,'
14317 # All Alpha code is PIC.
14318 lt_prog_compiler_static='-non_shared'
14320 xl* | bgxl* | bgf* | mpixl*)
14321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14322 lt_prog_compiler_wl='-Wl,'
14323 lt_prog_compiler_pic='-qpic'
14324 lt_prog_compiler_static='-qstaticlink'
14327 case `$CC -V 2>&1 | sed 5q` in
14328 *Sun\ F* | *Sun*Fortran*)
14329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-Bstatic'
14332 lt_prog_compiler_wl=''
14336 lt_prog_compiler_pic='-KPIC'
14337 lt_prog_compiler_static='-Bstatic'
14338 lt_prog_compiler_wl='-Wl,'
14346 lt_prog_compiler_pic='-KPIC'
14347 lt_prog_compiler_static='-Bstatic'
14351 # QNX uses GNU C++, but need to define -shared option too, otherwise
14352 # it will coredump.
14353 lt_prog_compiler_pic='-fPIC -shared'
14356 osf3* | osf4* | osf5*)
14357 lt_prog_compiler_wl='-Wl,'
14358 # All OSF/1 code is PIC.
14359 lt_prog_compiler_static='-non_shared'
14363 lt_prog_compiler_static='-non_shared'
14367 lt_prog_compiler_pic='-KPIC'
14368 lt_prog_compiler_static='-Bstatic'
14369 case $cc_basename in
14370 f77* | f90* | f95*)
14371 lt_prog_compiler_wl='-Qoption ld ';;
14373 lt_prog_compiler_wl='-Wl,';;
14378 lt_prog_compiler_wl='-Qoption ld '
14379 lt_prog_compiler_pic='-PIC'
14380 lt_prog_compiler_static='-Bstatic'
14383 sysv4 | sysv4.2uw2* | sysv4.3*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14390 if test -d /usr/nec ;then
14391 lt_prog_compiler_pic='-Kconform_pic'
14392 lt_prog_compiler_static='-Bstatic'
14396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_pic='-KPIC'
14399 lt_prog_compiler_static='-Bstatic'
14403 lt_prog_compiler_wl='-Wl,'
14404 lt_prog_compiler_can_build_shared=no
14408 lt_prog_compiler_pic='-pic'
14409 lt_prog_compiler_static='-Bstatic'
14413 lt_prog_compiler_can_build_shared=no
14419 # For platforms which do not support PIC, -DPIC is meaningless:
14421 lt_prog_compiler_pic=
14424 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14428 $as_echo "$lt_prog_compiler_pic" >&6; }
14436 # Check to make sure the PIC flag actually works.
14438 if test -n "$lt_prog_compiler_pic"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14440 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14441 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14442 $as_echo_n "(cached
) " >&6
14444 lt_cv_prog_compiler_pic_works=no
14445 ac_outfile=conftest.$ac_objext
14446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14448 # Insert the option either (1) after the last *FLAGS variable, or
14449 # (2) before a word containing "conftest.
", or (3) at the end.
14450 # Note that $ac_compile itself does not contain backslashes and begins
14451 # with a dollar sign (not a hyphen), so the echo should work correctly.
14452 # The option is referenced via a variable to avoid confusing sed.
14453 lt_compile=`echo "$ac_compile" | $SED \
14454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14456 -e 's:$: $lt_compiler_flag:'`
14457 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14458 (eval "$lt_compile" 2>conftest.err)
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14462 if (exit $ac_status) && test -s "$ac_outfile"; then
14463 # The compiler can only warn and ignore the option if not recognized
14464 # So say no if there are warnings other than the usual output.
14465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14468 lt_cv_prog_compiler_pic_works=yes
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14478 case $lt_prog_compiler_pic in
14480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14483 lt_prog_compiler_pic=
14484 lt_prog_compiler_can_build_shared=no
14495 # Check to make sure the static flag actually works.
14497 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14499 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14500 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14501 $as_echo_n "(cached
) " >&6
14503 lt_cv_prog_compiler_static_works=no
14504 save_LDFLAGS="$LDFLAGS"
14505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14508 # The linker can only warn and ignore the option if not recognized
14509 # So say no if there are warnings
14510 if test -s conftest.err; then
14511 # Append any errors to the config.log.
14512 cat conftest.err 1>&5
14513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14515 if diff conftest.exp conftest.er2 >/dev/null; then
14516 lt_cv_prog_compiler_static_works=yes
14519 lt_cv_prog_compiler_static_works=yes
14523 LDFLAGS="$save_LDFLAGS"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14527 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14529 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14532 lt_prog_compiler_static=
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14542 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14544 $as_echo_n "(cached
) " >&6
14546 lt_cv_prog_compiler_c_o=no
14547 $RM -r conftest 2>/dev/null
14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14553 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14554 # Insert the option either (1) after the last *FLAGS variable, or
14555 # (2) before a word containing "conftest.
", or (3) at the end.
14556 # Note that $ac_compile itself does not contain backslashes and begins
14557 # with a dollar sign (not a hyphen), so the echo should work correctly.
14558 lt_compile=`echo "$ac_compile" | $SED \
14559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14561 -e 's:$: $lt_compiler_flag:'`
14562 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14563 (eval "$lt_compile" 2>out/conftest.err)
14565 cat out/conftest.err >&5
14566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14569 # The compiler can only warn and ignore the option if not recognized
14570 # So say no if there are warnings
14571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14574 lt_cv_prog_compiler_c_o=yes
14579 # SGI C++ compiler will create directory out/ii_files/ for
14580 # template instantiation
14581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14582 $RM out/* && rmdir out
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14597 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14598 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14599 $as_echo_n "(cached
) " >&6
14601 lt_cv_prog_compiler_c_o=no
14602 $RM -r conftest 2>/dev/null
14606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14608 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14609 # Insert the option either (1) after the last *FLAGS variable, or
14610 # (2) before a word containing "conftest.
", or (3) at the end.
14611 # Note that $ac_compile itself does not contain backslashes and begins
14612 # with a dollar sign (not a hyphen), so the echo should work correctly.
14613 lt_compile=`echo "$ac_compile" | $SED \
14614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14616 -e 's:$: $lt_compiler_flag:'`
14617 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14618 (eval "$lt_compile" 2>out/conftest.err)
14620 cat out/conftest.err >&5
14621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14624 # The compiler can only warn and ignore the option if not recognized
14625 # So say no if there are warnings
14626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14629 lt_cv_prog_compiler_c_o=yes
14634 # SGI C++ compiler will create directory out/ii_files/ for
14635 # template instantiation
14636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14637 $RM out/* && rmdir out
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14644 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14649 hard_links="nottested
"
14650 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14651 # do not overwrite the value of need_locks provided by the user
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14653 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14658 ln conftest.a conftest.b 2>&5 || hard_links=no
14659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14661 $as_echo "$hard_links" >&6; }
14662 if test "$hard_links" = no; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14664 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14677 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14680 allow_undefined_flag=
14681 always_export_symbols=no
14683 archive_expsym_cmds=
14684 compiler_needs_object=no
14685 enable_shared_with_static_runtimes=no
14686 export_dynamic_flag_spec=
14687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688 hardcode_automatic=no
14690 hardcode_direct_absolute=no
14691 hardcode_libdir_flag_spec=
14692 hardcode_libdir_flag_spec_ld=
14693 hardcode_libdir_separator=
14694 hardcode_minus_L=no
14695 hardcode_shlibpath_var=unsupported
14697 link_all_deplibs=unknown
14699 module_expsym_cmds=
14700 old_archive_from_new_cmds=
14701 old_archive_from_expsyms_cmds=
14702 thread_safe_flag_spec=
14703 whole_archive_flag_spec=
14704 # include_expsyms should be a list of space-separated symbols to be *always*
14705 # included in the symbol list
14707 # exclude_expsyms can be an extended regexp of symbols to exclude
14708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14710 # as well as any symbol that contains `d'.
14711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14713 # platforms (ab)use it in PIC code, but their linkers get confused if
14714 # the symbol is explicitly referenced. Since portable code cannot
14715 # rely on this symbol name, it's probably fine to never include it in
14716 # preloaded symbol tables.
14717 # Exclude shared library initialization/finalization symbols.
14718 extract_expsyms_cmds=
14721 cygwin* | mingw* | pw32* | cegcc*)
14722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14723 # When not using gcc, we currently assume that we are using
14724 # Microsoft Visual C++.
14725 if test "$GCC" != yes; then
14730 # we just hope/assume this is gcc and not c89 (= MSVC++)
14740 # On some targets, GNU ld is compatible enough with the native linker
14741 # that we're better off using the native interface for both.
14742 lt_use_gnu_ld_interface=no
14743 if test "$with_gnu_ld" = yes; then
14746 # The AIX port of GNU ld has always aspired to compatibility
14747 # with the native linker. However, as the warning in the GNU ld
14748 # block says, versions before 2.19.5* couldn't really create working
14749 # shared libraries, regardless of the interface used.
14750 case `$LD -v 2>&1` in
14751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14755 lt_use_gnu_ld_interface=yes
14760 lt_use_gnu_ld_interface=yes
14765 if test "$lt_use_gnu_ld_interface" = yes; then
14766 # If archive_cmds runs LD, not CC, wlarc should be empty
14769 # Set some defaults for GNU ld with shared library support. These
14770 # are reset later if shared libraries are not supported. Putting them
14771 # here allows them to be overridden if necessary.
14772 runpath_var=LD_RUN_PATH
14773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14774 export_dynamic_flag_spec='${wl}--export-dynamic'
14775 # ancient GNU ld didn't support --whole-archive et. al.
14776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14779 whole_archive_flag_spec=
14781 supports_anon_versioning=no
14782 case `$LD -v 2>&1` in
14783 *GNU\ gold*) supports_anon_versioning=yes ;;
14784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14787 *\ 2.11.*) ;; # other 2.11 versions
14788 *) supports_anon_versioning=yes ;;
14791 # See if GNU ld supports shared libraries.
14794 # On AIX/PPC, the GNU linker is very broken
14795 if test "$host_cpu" != ia64; then
14799 *** Warning: the GNU linker, at least up to release 2.19, is reported
14800 *** to be unable to reliably create shared libraries on AIX.
14801 *** Therefore, libtool is disabling shared libraries support. If you
14802 *** really care for shared libraries, you may want to install binutils
14803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14804 *** You will then need to restart the configuration process.
14813 # see comment about AmigaOS4 .so support
14814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 archive_expsym_cmds=''
14818 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)'
14819 hardcode_libdir_flag_spec
='-L$libdir'
14820 hardcode_minus_L
=yes
14826 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14827 allow_undefined_flag
=unsupported
14828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14829 # support --undefined. This deserves some investigation. FIXME
14830 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14836 cygwin
* | mingw
* | pw32
* | cegcc
*)
14837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14838 # as there is no search path for DLLs.
14839 hardcode_libdir_flag_spec
='-L$libdir'
14840 export_dynamic_flag_spec
='${wl}--export-all-symbols'
14841 allow_undefined_flag
=unsupported
14842 always_export_symbols
=no
14843 enable_shared_with_static_runtimes
=yes
14844 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14846 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14847 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14848 # If the export-symbols file already is a .def file (1st line
14849 # is EXPORTS), use it as is; otherwise, prepend...
14850 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14851 cp $export_symbols $output_objdir/$soname.def;
14853 echo EXPORTS > $output_objdir/$soname.def;
14854 cat $export_symbols >> $output_objdir/$soname.def;
14856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14863 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864 link_all_deplibs
=yes
14869 hardcode_shlibpath_var
=no
14870 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14871 export_dynamic_flag_spec
='${wl}-E'
14872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14873 # Instead, shared libraries are loaded at an image base (0x10000000 by
14874 # default) and relocated if they conflict, which is a slow very memory
14875 # consuming and fragmenting process. To avoid this, we pick a random,
14876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14878 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14879 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'
14882 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14884 if test "$host_os" = linux-dietlibc
; then
14885 case $cc_basename in
14886 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14889 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14890 && test "$tmp_diet" = no
14893 tmp_sharedflag
='-shared'
14894 case $cc_basename,$host_cpu in
14895 pgcc
*) # Portland Group C compiler
14896 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'
14897 tmp_addflag
=' $pic_flag'
14899 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
14900 # Portland Group f77 and f90 compilers
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 tmp_addflag
=' $pic_flag -Mnomain' ;;
14903 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14904 tmp_addflag
=' -i_dynamic' ;;
14905 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14906 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14907 ifc
* | ifort
*) # Intel Fortran compiler
14908 tmp_addflag
=' -nofor_main' ;;
14909 lf95
*) # Lahey Fortran 8.1
14910 whole_archive_flag_spec
=
14911 tmp_sharedflag
='--shared' ;;
14912 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14913 tmp_sharedflag
='-qmkshrobj'
14915 nvcc
*) # Cuda Compiler Driver 2.2
14916 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'
14917 compiler_needs_object
=yes
14920 case `$CC -V 2>&1 | sed 5q` in
14921 *Sun\ C
*) # Sun C 5.9
14922 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'
14923 compiler_needs_object
=yes
14924 tmp_sharedflag
='-G' ;;
14925 *Sun\ F
*) # Sun Fortran 8.3
14926 tmp_sharedflag
='-G' ;;
14928 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 if test "x$supports_anon_versioning" = xyes
; then
14931 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14933 echo "local: *; };" >> $output_objdir/$libname.ver~
14934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14937 case $cc_basename in
14938 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
14939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14940 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14941 hardcode_libdir_flag_spec
=
14942 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14943 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14944 if test "x$supports_anon_versioning" = xyes
; then
14945 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947 echo "local: *; };" >> $output_objdir/$libname.ver~
14948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14958 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14959 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14962 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14963 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14968 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
14972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14973 *** create shared libraries on Solaris systems. Therefore, libtool
14974 *** is disabling shared libraries support. We urge you to upgrade GNU
14975 *** binutils to release 2.9.1 or newer. Another option is to modify
14976 *** your PATH or compiler configuration so that the native linker is
14977 *** used, and then restart.
14980 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14981 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14988 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14989 case `$LD -v 2>&1` in
14990 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14995 *** reliably create shared libraries on SCO systems. Therefore, libtool
14996 *** is disabling shared libraries support. We urge you to upgrade GNU
14997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14998 *** your PATH or compiler configuration so that the native linker is
14999 *** used, and then restart.
15004 # For security reasons, it is highly recommended that you always
15005 # use absolute paths for naming shared libraries, and exclude the
15006 # DT_RUNPATH tag from executables and libraries. But doing so
15007 # requires that you compile everything twice, which is a pain.
15008 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15009 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15010 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15020 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15022 hardcode_direct
=yes
15023 hardcode_shlibpath_var
=no
15027 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15028 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15036 if test "$ld_shlibs" = no
; then
15038 hardcode_libdir_flag_spec
=
15039 export_dynamic_flag_spec
=
15040 whole_archive_flag_spec
=
15043 # PORTME fill in a description of your system's linker (not GNU ld)
15046 allow_undefined_flag
=unsupported
15047 always_export_symbols
=yes
15048 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'
15049 # Note: this linker hardcodes the directories in LIBPATH if there
15050 # are no directories specified by -L.
15051 hardcode_minus_L
=yes
15052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15053 # Neither direct hardcoding nor static linking is supported with a
15055 hardcode_direct
=unsupported
15060 if test "$host_cpu" = ia64
; then
15061 # On IA64, the linker does run time linking by default, so we don't
15062 # have to do anything special.
15063 aix_use_runtimelinking
=no
15064 exp_sym_flag
='-Bexport'
15067 # If we're using GNU nm, then we don't want the "-C" option.
15068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15069 # Also, AIX nm treats weak defined symbols like other global
15070 # defined symbols, whereas GNU nm marks them as "W".
15071 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15072 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'
15074 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'
15076 aix_use_runtimelinking
=no
15078 # Test if we are trying to use run time linking or normal
15079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15080 # need to do runtime linking.
15081 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15082 for ld_flag
in $LDFLAGS; do
15083 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15084 aix_use_runtimelinking
=yes
15091 exp_sym_flag
='-bexport'
15092 no_entry_flag
='-bnoentry'
15095 # When large executables or shared objects are built, AIX ld can
15096 # have problems creating the table of contents. If linking a library
15097 # or program results in "error TOC overflow" add -mminimal-toc to
15098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15102 hardcode_direct
=yes
15103 hardcode_direct_absolute
=yes
15104 hardcode_libdir_separator
=':'
15105 link_all_deplibs
=yes
15106 file_list_spec
='${wl}-f,'
15108 if test "$GCC" = yes; then
15109 case $host_os in aix4.
[012]|aix4.
[012].
*)
15110 # We only want to do this on AIX 4.2 and lower, the check
15111 # below for broken collect2 doesn't work under 4.3+
15112 collect2name
=`${CC} -print-prog-name=collect2`
15113 if test -f "$collect2name" &&
15114 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15116 # We have reworked collect2
15119 # We have old collect2
15120 hardcode_direct
=unsupported
15121 # It fails to find uninstalled libraries when the uninstalled
15122 # path is not listed in the libpath. Setting hardcode_minus_L
15123 # to unsupported forces relinking
15124 hardcode_minus_L
=yes
15125 hardcode_libdir_flag_spec
='-L$libdir'
15126 hardcode_libdir_separator
=
15130 shared_flag
='-shared'
15131 if test "$aix_use_runtimelinking" = yes; then
15132 shared_flag
="$shared_flag "'${wl}-G'
15136 if test "$host_cpu" = ia64
; then
15137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15138 # chokes on -Wl,-G. The following line is correct:
15141 if test "$aix_use_runtimelinking" = yes; then
15142 shared_flag
='${wl}-G'
15144 shared_flag
='${wl}-bM:SRE'
15149 export_dynamic_flag_spec
='${wl}-bexpall'
15150 # It seems that -bexpall does not export symbols beginning with
15151 # underscore (_), so it is better to generate a list of symbols to export.
15152 always_export_symbols
=yes
15153 if test "$aix_use_runtimelinking" = yes; then
15154 # Warning - without using the other runtime loading flags (-brtl),
15155 # -berok will link without error, but may produce a broken library.
15156 allow_undefined_flag
='-berok'
15157 # Determine the default libpath from the value encoded in an
15158 # empty executable.
15159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15170 if ac_fn_c_try_link
"$LINENO"; then :
15172 lt_aix_libpath_sed
='
15173 /Import File Strings/,/^$/ {
15179 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15180 # Check for a 64-bit object if we didn't find anything.
15181 if test -z "$aix_libpath"; then
15182 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185 rm -f core conftest.err conftest.
$ac_objext \
15186 conftest
$ac_exeext conftest.
$ac_ext
15187 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15189 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15190 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"
15192 if test "$host_cpu" = ia64
; then
15193 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15194 allow_undefined_flag
="-z nodefs"
15195 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"
15197 # Determine the default libpath from the value encoded in an
15198 # empty executable.
15199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15210 if ac_fn_c_try_link
"$LINENO"; then :
15212 lt_aix_libpath_sed
='
15213 /Import File Strings/,/^$/ {
15219 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15220 # Check for a 64-bit object if we didn't find anything.
15221 if test -z "$aix_libpath"; then
15222 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15225 rm -f core conftest.err conftest.
$ac_objext \
15226 conftest
$ac_exeext conftest.
$ac_ext
15227 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15229 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15230 # Warning - without using the other run time loading flags,
15231 # -berok will link without error, but may produce a broken library.
15232 no_undefined_flag
=' ${wl}-bernotok'
15233 allow_undefined_flag
=' ${wl}-berok'
15234 if test "$with_gnu_ld" = yes; then
15235 # We only use this code for GNU lds that support --whole-archive.
15236 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15238 # Exported symbols can be pulled into shared objects from archives
15239 whole_archive_flag_spec
='$convenience'
15241 archive_cmds_need_lc
=yes
15242 # This is similar to how AIX traditionally builds its shared libraries.
15243 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'
15251 # see comment about AmigaOS4 .so support
15252 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 archive_expsym_cmds
=''
15256 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)'
15257 hardcode_libdir_flag_spec
='-L$libdir'
15258 hardcode_minus_L
=yes
15264 export_dynamic_flag_spec
=-rdynamic
15267 cygwin
* | mingw
* | pw32
* | cegcc
*)
15268 # When not using gcc, we currently assume that we are using
15269 # Microsoft Visual C++.
15270 # hardcode_libdir_flag_spec is actually meaningless, as there is
15271 # no search path for DLLs.
15272 hardcode_libdir_flag_spec
=' '
15273 allow_undefined_flag
=unsupported
15274 # Tell ltmain to make .lib files, not .a files.
15276 # Tell ltmain to make .dll files, not .so files.
15278 # FIXME: Setting linknames here is a bad hack.
15279 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15280 # The linker will automatically build a .lib file if we build a DLL.
15281 old_archive_from_new_cmds
='true'
15282 # FIXME: Should let the user specify the lib program.
15283 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15284 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15285 enable_shared_with_static_runtimes
=yes
15288 darwin
* | rhapsody
*)
15291 archive_cmds_need_lc
=no
15293 hardcode_automatic
=yes
15294 hardcode_shlibpath_var
=unsupported
15295 if test "$lt_cv_ld_force_load" = "yes"; then
15296 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\"`'
15298 whole_archive_flag_spec
=''
15300 link_all_deplibs
=yes
15301 allow_undefined_flag
="$_lt_dar_allow_undefined"
15302 case $cc_basename in
15303 ifort
*) _lt_dar_can_shared
=yes ;;
15304 *) _lt_dar_can_shared
=$GCC ;;
15306 if test "$_lt_dar_can_shared" = "yes"; then
15307 output_verbose_link_cmd
=func_echo_all
15308 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15309 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15310 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}"
15311 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}"
15320 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_libdir_flag_spec
='-L$libdir'
15322 hardcode_shlibpath_var
=no
15329 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15330 # support. Future versions do this automatically, but an explicit c++rt0.o
15331 # does not break anything, and helps significantly (at the cost of a little
15334 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15335 hardcode_libdir_flag_spec
='-R$libdir'
15336 hardcode_direct
=yes
15337 hardcode_shlibpath_var
=no
15340 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15342 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_direct
=yes
15344 hardcode_minus_L
=yes
15345 hardcode_shlibpath_var
=no
15348 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15349 freebsd
* | dragonfly
*)
15350 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15351 hardcode_libdir_flag_spec
='-R$libdir'
15352 hardcode_direct
=yes
15353 hardcode_shlibpath_var
=no
15357 if test "$GCC" = yes; then
15358 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'
15360 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'
15362 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15363 hardcode_libdir_separator
=:
15364 hardcode_direct
=yes
15366 # hardcode_minus_L: Not really in the search PATH,
15367 # but as the default location of the library.
15368 hardcode_minus_L
=yes
15369 export_dynamic_flag_spec
='${wl}-E'
15373 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15374 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15378 if test "$with_gnu_ld" = no
; then
15379 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15380 hardcode_libdir_flag_spec_ld
='+b $libdir'
15381 hardcode_libdir_separator
=:
15382 hardcode_direct
=yes
15383 hardcode_direct_absolute
=yes
15384 export_dynamic_flag_spec
='${wl}-E'
15385 # hardcode_minus_L: Not really in the search PATH,
15386 # but as the default location of the library.
15387 hardcode_minus_L
=yes
15392 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15395 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15398 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15401 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15407 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15410 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15414 # Older versions of the 11.00 compiler do not understand -b yet
15415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15417 $as_echo_n "checking if $CC understands -b... " >&6; }
15418 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15421 lt_cv_prog_compiler__b
=no
15422 save_LDFLAGS
="$LDFLAGS"
15423 LDFLAGS
="$LDFLAGS -b"
15424 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15425 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15426 # The linker can only warn and ignore the option if not recognized
15427 # So say no if there are warnings
15428 if test -s conftest.err
; then
15429 # Append any errors to the config.log.
15430 cat conftest.err
1>&5
15431 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15432 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15433 if diff conftest.exp conftest.er2
>/dev
/null
; then
15434 lt_cv_prog_compiler__b
=yes
15437 lt_cv_prog_compiler__b
=yes
15441 LDFLAGS
="$save_LDFLAGS"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15445 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15447 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15448 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15450 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15456 if test "$with_gnu_ld" = no
; then
15457 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15458 hardcode_libdir_separator
=:
15463 hardcode_shlibpath_var
=no
15466 hardcode_direct
=yes
15467 hardcode_direct_absolute
=yes
15468 export_dynamic_flag_spec
='${wl}-E'
15470 # hardcode_minus_L: Not really in the search PATH,
15471 # but as the default location of the library.
15472 hardcode_minus_L
=yes
15478 irix5
* | irix6
* | nonstopux
*)
15479 if test "$GCC" = yes; then
15480 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'
15481 # Try to use the -exported_symbol ld option, if it does not
15482 # work, assume that -exports_file does not work either and
15483 # implicitly export all symbols.
15484 save_LDFLAGS
="$LDFLAGS"
15485 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15490 if ac_fn_c_try_link
"$LINENO"; then :
15491 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'
15494 rm -f core conftest.err conftest.
$ac_objext \
15495 conftest
$ac_exeext conftest.
$ac_ext
15496 LDFLAGS
="$save_LDFLAGS"
15498 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'
15499 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'
15501 archive_cmds_need_lc
='no'
15502 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15503 hardcode_libdir_separator
=:
15505 link_all_deplibs
=yes
15509 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15510 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15512 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15514 hardcode_libdir_flag_spec
='-R$libdir'
15515 hardcode_direct
=yes
15516 hardcode_shlibpath_var
=no
15520 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct
=yes
15522 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15523 hardcode_libdir_separator
=:
15524 hardcode_shlibpath_var
=no
15531 if test -f /usr
/libexec
/ld.so
; then
15532 hardcode_direct
=yes
15533 hardcode_shlibpath_var
=no
15534 hardcode_direct_absolute
=yes
15535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15536 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15538 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15539 export_dynamic_flag_spec
='${wl}-E'
15542 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15543 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_libdir_flag_spec
='-R$libdir'
15547 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15548 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15558 hardcode_libdir_flag_spec
='-L$libdir'
15559 hardcode_minus_L
=yes
15560 allow_undefined_flag
=unsupported
15561 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'
15562 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15566 if test "$GCC" = yes; then
15567 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15568 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'
15570 allow_undefined_flag
=' -expect_unresolved \*'
15571 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'
15573 archive_cmds_need_lc
='no'
15574 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15575 hardcode_libdir_separator
=:
15578 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15579 if test "$GCC" = yes; then
15580 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15581 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'
15582 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15584 allow_undefined_flag
=' -expect_unresolved \*'
15585 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'
15586 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~
15587 $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'
15589 # Both c and cxx compiler support -rpath directly
15590 hardcode_libdir_flag_spec
='-rpath $libdir'
15592 archive_cmds_need_lc
='no'
15593 hardcode_libdir_separator
=:
15597 no_undefined_flag
=' -z defs'
15598 if test "$GCC" = yes; then
15600 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15602 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15604 case `$CC -V 2>&1` in
15607 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15613 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15615 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15619 hardcode_libdir_flag_spec
='-R$libdir'
15620 hardcode_shlibpath_var
=no
15622 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15624 # The compiler driver will combine and reorder linker options,
15625 # but understands `-z linker_flag'. GCC discards it without `$wl',
15626 # but is careful enough not to reorder.
15627 # Supported since Solaris 2.6 (maybe 2.5.1?)
15628 if test "$GCC" = yes; then
15629 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15631 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15635 link_all_deplibs
=yes
15639 if test "x$host_vendor" = xsequent
; then
15640 # Use $CC to link under sequent, because it throws in some extra .o
15641 # files that make .init and .fini sections work.
15642 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15644 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15646 hardcode_libdir_flag_spec
='-L$libdir'
15647 hardcode_direct
=yes
15648 hardcode_minus_L
=yes
15649 hardcode_shlibpath_var
=no
15653 case $host_vendor in
15655 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656 hardcode_direct
=yes # is this really true???
15659 ## LD is ld it makes a PLAMLIB
15660 ## CC just makes a GrossModule.
15661 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15662 reload_cmds
='$CC -r -o $output$reload_objs'
15666 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15667 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15670 runpath_var
='LD_RUN_PATH'
15671 hardcode_shlibpath_var
=no
15675 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676 hardcode_shlibpath_var
=no
15677 export_dynamic_flag_spec
='-Bexport'
15681 if test -d /usr
/nec
; then
15682 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683 hardcode_shlibpath_var
=no
15684 runpath_var
=LD_RUN_PATH
15685 hardcode_runpath_var
=yes
15690 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15691 no_undefined_flag
='${wl}-z,text'
15692 archive_cmds_need_lc
=no
15693 hardcode_shlibpath_var
=no
15694 runpath_var
='LD_RUN_PATH'
15696 if test "$GCC" = yes; then
15697 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15698 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15700 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15701 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15705 sysv5
* | sco3.2v5
* | sco5v6
*)
15706 # Note: We can NOT use -z defs as we might desire, because we do not
15707 # link with -lc, and that would cause any symbols used from libc to
15708 # always be unresolved, which means just about no library would
15709 # ever link correctly. If we're not using GNU ld we use -z text
15710 # though, which does catch some bad symbols but isn't as heavy-handed
15712 no_undefined_flag
='${wl}-z,text'
15713 allow_undefined_flag
='${wl}-z,nodefs'
15714 archive_cmds_need_lc
=no
15715 hardcode_shlibpath_var
=no
15716 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15717 hardcode_libdir_separator
=':'
15718 link_all_deplibs
=yes
15719 export_dynamic_flag_spec
='${wl}-Bexport'
15720 runpath_var
='LD_RUN_PATH'
15722 if test "$GCC" = yes; then
15723 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_libdir_flag_spec
='-L$libdir'
15734 hardcode_shlibpath_var
=no
15742 if test x
$host_vendor = xsni
; then
15744 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15745 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15752 $as_echo "$ld_shlibs" >&6; }
15753 test "$ld_shlibs" = no
&& can_build_shared
=no
15755 with_gnu_ld
=$with_gnu_ld
15772 # Do we need to explicitly link libc?
15774 case "x$archive_cmds_need_lc" in
15776 # Assume -lc should be added
15777 archive_cmds_need_lc
=yes
15779 if test "$enable_shared" = yes && test "$GCC" = yes; then
15780 case $archive_cmds in
15782 # FIXME: we may have to deal with multi-command sequences.
15785 # Test whether the compiler implicitly links with -lc since on some
15786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15787 # to ld, don't add -lc before -lgcc.
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15789 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15790 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15791 $as_echo_n "(cached) " >&6
15794 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15797 (eval $ac_compile) 2>&5
15799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800 test $ac_status = 0; } 2>conftest.err
; then
15803 libobjs
=conftest.
$ac_objext
15805 wl
=$lt_prog_compiler_wl
15806 pic_flag
=$lt_prog_compiler_pic
15812 lt_save_allow_undefined_flag
=$allow_undefined_flag
15813 allow_undefined_flag
=
15814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15815 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15818 test $ac_status = 0; }
15820 lt_cv_archive_cmds_need_lc
=no
15822 lt_cv_archive_cmds_need_lc
=yes
15824 allow_undefined_flag
=$lt_save_allow_undefined_flag
15826 cat conftest.err
1>&5
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15832 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15833 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15999 if test "$GCC" = yes; then
16001 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16002 *) lt_awk_arg
="/^libraries:/" ;;
16005 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16006 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16008 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16009 case $lt_search_path_spec in
16011 # if the path contains ";" then we assume it to be the separator
16012 # otherwise default to the standard path separator (i.e. ":") - it is
16013 # assumed that no part of a normal pathname contains ";" but that should
16014 # okay in the real world where ";" in dirpaths is itself problematic.
16015 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16018 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16021 # Ok, now we have the path, separated by spaces, we can step through it
16022 # and add multilib dir if necessary.
16023 lt_tmp_lt_search_path_spec
=
16024 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16025 for lt_sys_path
in $lt_search_path_spec; do
16026 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16027 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16029 test -d "$lt_sys_path" && \
16030 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16033 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16034 BEGIN {RS=" "; FS="/|\n";} {
16037 for (lt_i = NF; lt_i > 0; lt_i--) {
16038 if ($lt_i != "" && $lt_i != ".") {
16039 if ($lt_i == "..") {
16042 if (lt_count == 0) {
16043 lt_foo="/" $lt_i lt_foo;
16050 if (lt_foo != "") { lt_freq[lt_foo]++; }
16051 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16053 # AWK program above erroneously prepends '/' to C:/dos/paths
16056 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16057 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16059 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16061 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16063 library_names_spec
=
16064 libname_spec
='lib$name'
16068 postuninstall_cmds
=
16072 shlibpath_overrides_runpath
=unknown
16074 dynamic_linker
="$host_os ld.so"
16075 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16076 need_lib_prefix
=unknown
16077 hardcode_into_libs
=no
16079 # when you set need_version to no, make sure it does not cause -set_version
16080 # flags to be left without arguments
16081 need_version
=unknown
16086 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16087 shlibpath_var
=LIBPATH
16089 # AIX 3 has no versioning support, so we append a major version to the name.
16090 soname_spec
='${libname}${release}${shared_ext}$major'
16097 hardcode_into_libs
=yes
16098 if test "$host_cpu" = ia64
; then
16099 # AIX 5 supports IA64
16100 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16101 shlibpath_var
=LD_LIBRARY_PATH
16103 # With GCC up to 2.95.x, collect2 would create an import file
16104 # for dependence libraries. The import file would start with
16105 # the line `#! .'. This would cause the generated library to
16106 # depend on `.', always an invalid library. This was fixed in
16107 # development snapshots of GCC prior to 3.0.
16109 aix4 | aix4.
[01] | aix4.
[01].
*)
16110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16112 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16115 can_build_shared
=no
16119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16120 # soname into executable. Probably we can add versioning support to
16121 # collect2, so additional links can be useful in future.
16122 if test "$aix_use_runtimelinking" = yes; then
16123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16124 # instead of lib<name>.a to let people know that these are not
16125 # typical AIX shared libraries.
16126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128 # We preserve .a as extension for shared libraries through AIX4.2
16129 # and later when we are not doing run time linking.
16130 library_names_spec
='${libname}${release}.a $libname.a'
16131 soname_spec
='${libname}${release}${shared_ext}$major'
16133 shlibpath_var
=LIBPATH
16140 # Since July 2007 AmigaOS4 officially supports .so libraries.
16141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16145 library_names_spec
='$libname.ixlibrary $libname.a'
16146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16147 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'
16153 library_names_spec
='${libname}${shared_ext}'
16154 dynamic_linker
="$host_os ld.so"
16155 shlibpath_var
=LIBRARY_PATH
16161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 soname_spec
='${libname}${release}${shared_ext}$major'
16163 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16164 shlibpath_var
=LD_LIBRARY_PATH
16165 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16166 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16167 # the default ld.so.conf also contains /usr/contrib/lib and
16168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16169 # libtool to hard-code these into programs
16172 cygwin
* | mingw
* | pw32
* | cegcc
*)
16173 version_type
=windows
16178 case $GCC,$host_os in
16179 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16180 library_names_spec
='$libname.dll.a'
16181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16182 postinstall_cmds
='base_file=`basename \${file}`~
16183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16184 dldir=$destdir/`dirname \$dlpath`~
16185 test -d \$dldir || mkdir -p \$dldir~
16186 $install_prog $dir/$dlname \$dldir/$dlname~
16187 chmod a+x \$dldir/$dlname~
16188 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16189 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16191 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16192 dlpath=$dir/\$dldll~
16194 shlibpath_overrides_runpath
=yes
16198 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16199 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16201 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16204 # MinGW DLLs use traditional 'lib' prefix
16205 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16208 # pw32 DLLs use 'pw' prefix rather than 'lib'
16209 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16215 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16218 dynamic_linker
='Win32 ld.exe'
16219 # FIXME: first we should search . and the directory the executable is in
16223 darwin
* | rhapsody
*)
16224 dynamic_linker
="$host_os dyld"
16225 version_type
=darwin
16228 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16229 soname_spec
='${libname}${release}${major}$shared_ext'
16230 shlibpath_overrides_runpath
=yes
16231 shlibpath_var
=DYLD_LIBRARY_PATH
16232 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16234 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16235 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16243 soname_spec
='${libname}${release}${shared_ext}$major'
16244 shlibpath_var
=LD_LIBRARY_PATH
16251 freebsd
* | dragonfly
*)
16252 # DragonFly does not have aout. When/if they implement a new
16253 # versioning mechanism, adjust this.
16254 if test -x /usr
/bin
/objformat
; then
16255 objformat
=`/usr/bin/objformat`
16258 freebsd
[123]*) objformat
=aout
;;
16259 *) objformat
=elf
;;
16262 version_type
=freebsd-
$objformat
16263 case $version_type in
16265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16270 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16274 shlibpath_var
=LD_LIBRARY_PATH
16277 shlibpath_overrides_runpath
=yes
16279 freebsd3.
[01]* | freebsdelf3.
[01]*)
16280 shlibpath_overrides_runpath
=yes
16281 hardcode_into_libs
=yes
16283 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16284 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16285 shlibpath_overrides_runpath
=no
16286 hardcode_into_libs
=yes
16288 *) # from 4.6 on, and DragonFly
16289 shlibpath_overrides_runpath
=yes
16290 hardcode_into_libs
=yes
16299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16300 soname_spec
='${libname}${release}${shared_ext}$major'
16301 shlibpath_var
=LD_LIBRARY_PATH
16302 hardcode_into_libs
=yes
16309 dynamic_linker
="$host_os runtime_loader"
16310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16311 soname_spec
='${libname}${release}${shared_ext}$major'
16312 shlibpath_var
=LIBRARY_PATH
16313 shlibpath_overrides_runpath
=yes
16314 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16315 hardcode_into_libs
=yes
16318 hpux9
* | hpux10
* | hpux11
*)
16319 # Give a soname corresponding to the major version so that dld.sl refuses to
16320 # link against other versions.
16327 hardcode_into_libs
=yes
16328 dynamic_linker
="$host_os dld.so"
16329 shlibpath_var
=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32
; then
16334 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16336 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16338 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16342 hardcode_into_libs
=yes
16343 dynamic_linker
="$host_os dld.sl"
16344 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16345 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec
='${libname}${release}${shared_ext}$major'
16348 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16349 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16353 dynamic_linker
="$host_os dld.sl"
16354 shlibpath_var
=SHLIB_PATH
16355 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec
='${libname}${release}${shared_ext}$major'
16360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16361 postinstall_cmds
='chmod 555 $lib'
16362 # or fails outright, so override atomically:
16363 install_override_mode
=555
16370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16371 soname_spec
='${libname}${release}${shared_ext}$major'
16372 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16373 shlibpath_var
=LD_LIBRARY_PATH
16374 shlibpath_overrides_runpath
=no
16375 hardcode_into_libs
=yes
16378 irix5
* | irix6
* | nonstopux
*)
16380 nonstopux
*) version_type
=nonstopux
;;
16382 if test "$lt_cv_prog_gnu_ld" = yes; then
16390 soname_spec
='${libname}${release}${shared_ext}$major'
16391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16393 irix5
* | nonstopux
*)
16394 libsuff
= shlibsuff
=
16397 case $LD in # libtool.m4 will add one of these switches to LD
16398 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16399 libsuff
= shlibsuff
= libmagic
=32-bit;;
16400 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16401 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16402 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16403 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16404 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16408 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16409 shlibpath_overrides_runpath
=no
16410 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16411 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16412 hardcode_into_libs
=yes
16415 # No shared lib support for Linux oldld, aout, or coff.
16416 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16420 # This must be Linux ELF.
16421 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16425 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec
='${libname}${release}${shared_ext}$major'
16427 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16428 shlibpath_var
=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath
=no
16431 # Some binutils ld are patched to set DT_RUNPATH
16432 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16433 $as_echo_n "(cached) " >&6
16435 lt_cv_shlibpath_overrides_runpath
=no
16436 save_LDFLAGS
=$LDFLAGS
16437 save_libdir
=$libdir
16438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16451 if ac_fn_c_try_link
"$LINENO"; then :
16452 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16453 lt_cv_shlibpath_overrides_runpath
=yes
16456 rm -f core conftest.err conftest.
$ac_objext \
16457 conftest
$ac_exeext conftest.
$ac_ext
16458 LDFLAGS
=$save_LDFLAGS
16459 libdir
=$save_libdir
16463 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16465 # This implies no fast_install, which is unacceptable.
16466 # Some rework will be needed to allow for fast_install
16467 # before this can be enabled.
16468 hardcode_into_libs
=yes
16470 # Append ld.so.conf contents to the search path
16471 if test -f /etc
/ld.so.conf
; then
16472 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' ' '`
16473 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16476 # We used to test for /lib/ld.so.1 and disable shared libraries on
16477 # powerpc, because MkLinux only supported shared libraries with the
16478 # GNU dynamic linker. Since this was broken with cross compilers,
16479 # most powerpc-linux boxes support dynamic linking these days and
16480 # people can always --disable-shared, the test was removed, and we
16481 # assume the GNU/Linux dynamic linker is in use.
16482 dynamic_linker
='GNU/Linux ld.so'
16489 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16491 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16492 dynamic_linker
='NetBSD (a.out) ld.so'
16494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16495 soname_spec
='${libname}${release}${shared_ext}$major'
16496 dynamic_linker
='NetBSD ld.elf_so'
16498 shlibpath_var
=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath
=yes
16500 hardcode_into_libs
=yes
16505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 shlibpath_var
=LD_LIBRARY_PATH
16507 shlibpath_overrides_runpath
=yes
16514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec
='${libname}${release}${shared_ext}$major'
16516 shlibpath_var
=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath
=no
16518 hardcode_into_libs
=yes
16519 dynamic_linker
='ldqnx.so'
16524 sys_lib_dlsearch_path_spec
="/usr/lib"
16526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16528 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16529 *) need_version
=no
;;
16531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16532 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16533 shlibpath_var
=LD_LIBRARY_PATH
16534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16536 openbsd2.
[89] | openbsd2.
[89].
*)
16537 shlibpath_overrides_runpath
=no
16540 shlibpath_overrides_runpath
=yes
16544 shlibpath_overrides_runpath
=yes
16549 libname_spec
='$name'
16552 library_names_spec
='$libname${shared_ext} $libname.a'
16553 dynamic_linker
='OS/2 ld.exe'
16554 shlibpath_var
=LIBPATH
16557 osf3
* | osf4
* | osf5
*)
16561 soname_spec
='${libname}${release}${shared_ext}$major'
16562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 shlibpath_var
=LD_LIBRARY_PATH
16564 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16565 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 soname_spec
='${libname}${release}${shared_ext}$major'
16578 shlibpath_var
=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath
=yes
16580 hardcode_into_libs
=yes
16581 # ldd complains unless libraries are executable
16582 postinstall_cmds
='chmod +x $lib'
16587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16588 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16589 shlibpath_var
=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath
=yes
16591 if test "$with_gnu_ld" = yes; then
16599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec
='${libname}${release}${shared_ext}$major'
16601 shlibpath_var
=LD_LIBRARY_PATH
16602 case $host_vendor in
16604 shlibpath_overrides_runpath
=no
16606 runpath_var
=LD_RUN_PATH
16614 shlibpath_overrides_runpath
=no
16615 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16621 if test -d /usr
/nec
;then
16623 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16624 soname_spec
='$libname${shared_ext}.$major'
16625 shlibpath_var
=LD_LIBRARY_PATH
16629 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16630 version_type
=freebsd-elf
16633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16634 soname_spec
='${libname}${release}${shared_ext}$major'
16635 shlibpath_var
=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath
=yes
16637 hardcode_into_libs
=yes
16638 if test "$with_gnu_ld" = yes; then
16639 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16641 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16644 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16648 sys_lib_dlsearch_path_spec
='/usr/lib'
16652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 shlibpath_var
=LD_LIBRARY_PATH
16658 shlibpath_overrides_runpath
=no
16659 hardcode_into_libs
=yes
16664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec
='${libname}${release}${shared_ext}$major'
16666 shlibpath_var
=LD_LIBRARY_PATH
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16674 $as_echo "$dynamic_linker" >&6; }
16675 test "$dynamic_linker" = no
&& can_build_shared
=no
16677 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16678 if test "$GCC" = yes; then
16679 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16682 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16683 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16685 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16686 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16781 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16783 if test -n "$hardcode_libdir_flag_spec" ||
16784 test -n "$runpath_var" ||
16785 test "X$hardcode_automatic" = "Xyes" ; then
16787 # We can hardcode non-existent directories.
16788 if test "$hardcode_direct" != no
&&
16789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16790 # have to relink, otherwise we might link with an installed library
16791 # when we should be linking with a yet-to-be-installed one
16792 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16793 test "$hardcode_minus_L" != no
; then
16794 # Linking always hardcodes the temporary library directory.
16795 hardcode_action
=relink
16797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16798 hardcode_action
=immediate
16801 # We cannot hardcode anything, or else we can only hardcode existing
16803 hardcode_action
=unsupported
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16806 $as_echo "$hardcode_action" >&6; }
16808 if test "$hardcode_action" = relink ||
16809 test "$inherit_rpath" = yes; then
16810 # Fast installation is not supported
16811 enable_fast_install
=no
16812 elif test "$shlibpath_overrides_runpath" = yes ||
16813 test "$enable_shared" = no
; then
16814 # Fast installation is not necessary
16815 enable_fast_install
=needless
16823 if test "x$enable_dlopen" != xyes
; then
16824 enable_dlopen
=unknown
16825 enable_dlopen_self
=unknown
16826 enable_dlopen_self_static
=unknown
16833 lt_cv_dlopen
="load_add_on"
16835 lt_cv_dlopen_self
=yes
16838 mingw
* | pw32
* | cegcc
*)
16839 lt_cv_dlopen
="LoadLibrary"
16844 lt_cv_dlopen
="dlopen"
16849 # if libdl is installed we need to link against it
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16855 ac_check_lib_save_LIBS
=$LIBS
16857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16860 /* Override any GCC internal prototype to avoid an error.
16861 Use char because int might match the return type of a GCC
16862 builtin and then its argument prototype would still apply. */
16875 if ac_fn_c_try_link
"$LINENO"; then :
16876 ac_cv_lib_dl_dlopen
=yes
16878 ac_cv_lib_dl_dlopen
=no
16880 rm -f core conftest.err conftest.
$ac_objext \
16881 conftest
$ac_exeext conftest.
$ac_ext
16882 LIBS
=$ac_check_lib_save_LIBS
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16886 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16887 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16890 lt_cv_dlopen
="dyld"
16892 lt_cv_dlopen_self
=yes
16899 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16900 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16901 lt_cv_dlopen
="shl_load"
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16905 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16908 ac_check_lib_save_LIBS
=$LIBS
16910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16913 /* Override any GCC internal prototype to avoid an error.
16914 Use char because int might match the return type of a GCC
16915 builtin and then its argument prototype would still apply. */
16923 return shl_load ();
16928 if ac_fn_c_try_link
"$LINENO"; then :
16929 ac_cv_lib_dld_shl_load
=yes
16931 ac_cv_lib_dld_shl_load
=no
16933 rm -f core conftest.err conftest.
$ac_objext \
16934 conftest
$ac_exeext conftest.
$ac_ext
16935 LIBS
=$ac_check_lib_save_LIBS
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16939 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16940 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16942 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16943 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16944 lt_cv_dlopen
="dlopen"
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16951 ac_check_lib_save_LIBS
=$LIBS
16953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16956 /* Override any GCC internal prototype to avoid an error.
16957 Use char because int might match the return type of a GCC
16958 builtin and then its argument prototype would still apply. */
16971 if ac_fn_c_try_link
"$LINENO"; then :
16972 ac_cv_lib_dl_dlopen
=yes
16974 ac_cv_lib_dl_dlopen
=no
16976 rm -f core conftest.err conftest.
$ac_objext \
16977 conftest
$ac_exeext conftest.
$ac_ext
16978 LIBS
=$ac_check_lib_save_LIBS
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16982 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16983 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16986 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16987 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16988 $as_echo_n "(cached) " >&6
16990 ac_check_lib_save_LIBS
=$LIBS
16991 LIBS
="-lsvld $LIBS"
16992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16995 /* Override any GCC internal prototype to avoid an error.
16996 Use char because int might match the return type of a GCC
16997 builtin and then its argument prototype would still apply. */
17010 if ac_fn_c_try_link
"$LINENO"; then :
17011 ac_cv_lib_svld_dlopen
=yes
17013 ac_cv_lib_svld_dlopen
=no
17015 rm -f core conftest.err conftest.
$ac_objext \
17016 conftest
$ac_exeext conftest.
$ac_ext
17017 LIBS
=$ac_check_lib_save_LIBS
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17021 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17022 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17027 $as_echo_n "(cached) " >&6
17029 ac_check_lib_save_LIBS
=$LIBS
17031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17044 return dld_link ();
17049 if ac_fn_c_try_link
"$LINENO"; then :
17050 ac_cv_lib_dld_dld_link
=yes
17052 ac_cv_lib_dld_dld_link
=no
17054 rm -f core conftest.err conftest.
$ac_objext \
17055 conftest
$ac_exeext conftest.
$ac_ext
17056 LIBS
=$ac_check_lib_save_LIBS
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17059 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17060 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17061 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17082 if test "x$lt_cv_dlopen" != xno
; then
17088 case $lt_cv_dlopen in
17090 save_CPPFLAGS
="$CPPFLAGS"
17091 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17093 save_LDFLAGS
="$LDFLAGS"
17094 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17097 LIBS
="$lt_cv_dlopen_libs $LIBS"
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17100 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17101 if test "${lt_cv_dlopen_self+set}" = set; then :
17102 $as_echo_n "(cached) " >&6
17104 if test "$cross_compiling" = yes; then :
17105 lt_cv_dlopen_self
=cross
17107 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17108 lt_status
=$lt_dlunknown
17109 cat > conftest.
$ac_ext <<_LT_EOF
17110 #line 17110 "configure"
17111 #include "confdefs.h"
17120 # define LT_DLGLOBAL RTLD_GLOBAL
17123 # define LT_DLGLOBAL DL_GLOBAL
17125 # define LT_DLGLOBAL 0
17129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17130 find out it does not work in some platform. */
17131 #ifndef LT_DLLAZY_OR_NOW
17133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17136 # define LT_DLLAZY_OR_NOW DL_LAZY
17139 # define LT_DLLAZY_OR_NOW RTLD_NOW
17142 # define LT_DLLAZY_OR_NOW DL_NOW
17144 # define LT_DLLAZY_OR_NOW 0
17151 /* When -fvisbility=hidden is used, assume the code has been annotated
17152 correspondingly for the symbols needed. */
17153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17154 void fnord () __attribute__((visibility("default")));
17157 void fnord () { int i=42; }
17160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17161 int status = $lt_dlunknown;
17165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17169 else puts (dlerror ());
17171 /* dlclose (self); */
17179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17180 (eval $ac_link) 2>&5
17182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17183 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17184 (.
/conftest
; exit; ) >&5 2>/dev
/null
17186 case x
$lt_status in
17187 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17188 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17189 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17192 # compilation failed
17193 lt_cv_dlopen_self
=no
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17201 $as_echo "$lt_cv_dlopen_self" >&6; }
17203 if test "x$lt_cv_dlopen_self" = xyes
; then
17204 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17206 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17207 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17208 $as_echo_n "(cached) " >&6
17210 if test "$cross_compiling" = yes; then :
17211 lt_cv_dlopen_self_static
=cross
17213 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17214 lt_status
=$lt_dlunknown
17215 cat > conftest.
$ac_ext <<_LT_EOF
17216 #line 17216 "configure"
17217 #include "confdefs.h"
17226 # define LT_DLGLOBAL RTLD_GLOBAL
17229 # define LT_DLGLOBAL DL_GLOBAL
17231 # define LT_DLGLOBAL 0
17235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17236 find out it does not work in some platform. */
17237 #ifndef LT_DLLAZY_OR_NOW
17239 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17242 # define LT_DLLAZY_OR_NOW DL_LAZY
17245 # define LT_DLLAZY_OR_NOW RTLD_NOW
17248 # define LT_DLLAZY_OR_NOW DL_NOW
17250 # define LT_DLLAZY_OR_NOW 0
17257 /* When -fvisbility=hidden is used, assume the code has been annotated
17258 correspondingly for the symbols needed. */
17259 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17260 void fnord () __attribute__((visibility("default")));
17263 void fnord () { int i=42; }
17266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17267 int status = $lt_dlunknown;
17271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17275 else puts (dlerror ());
17277 /* dlclose (self); */
17285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17286 (eval $ac_link) 2>&5
17288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17289 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17290 (.
/conftest
; exit; ) >&5 2>/dev
/null
17292 case x
$lt_status in
17293 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17294 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17295 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17298 # compilation failed
17299 lt_cv_dlopen_self_static
=no
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17307 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17310 CPPFLAGS
="$save_CPPFLAGS"
17311 LDFLAGS
="$save_LDFLAGS"
17316 case $lt_cv_dlopen_self in
17317 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17318 *) enable_dlopen_self
=unknown
;;
17321 case $lt_cv_dlopen_self_static in
17322 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17323 *) enable_dlopen_self_static
=unknown
;;
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17346 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17347 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17348 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17349 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17351 $as_echo "yes" >&6; }
17353 # FIXME - insert some real tests, host_os isn't really good enough
17356 if test -n "$STRIP" ; then
17357 striplib
="$STRIP -x"
17358 old_striplib
="$STRIP -S"
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363 $as_echo "no" >&6; }
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17384 # Report which library types will actually be built
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17386 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17388 $as_echo "$can_build_shared" >&6; }
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17391 $as_echo_n "checking whether to build shared libraries... " >&6; }
17392 test "$can_build_shared" = "no" && enable_shared
=no
17394 # On AIX, shared libraries and static libraries use the same namespace, and
17395 # are all built from PIC.
17398 test "$enable_shared" = yes && enable_static
=no
17399 if test -n "$RANLIB"; then
17400 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17401 postinstall_cmds
='$RANLIB $lib'
17406 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17407 test "$enable_shared" = yes && enable_static
=no
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17412 $as_echo "$enable_shared" >&6; }
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17415 $as_echo_n "checking whether to build static libraries... " >&6; }
17416 # Make sure either enable_shared or enable_static is yes.
17417 test "$enable_shared" = yes || enable_static
=yes
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17419 $as_echo "$enable_static" >&6; }
17426 ac_cpp
='$CPP $CPPFLAGS'
17427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17433 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17434 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17435 (test "X$CXX" != "Xg++"))) ; then
17437 ac_cpp
='$CXXCPP $CPPFLAGS'
17438 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17442 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17443 if test -z "$CXXCPP"; then
17444 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17445 $as_echo_n "(cached) " >&6
17447 # Double quotes because CXXCPP needs to be expanded
17448 for CXXCPP
in "$CXX -E" "/lib/cpp"
17450 ac_preproc_ok
=false
17451 for ac_cxx_preproc_warn_flag
in '' yes
17453 # Use a header file that comes with gcc, so configuring glibc
17454 # with a fresh cross-compiler works.
17455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 # <limits.h> exists even on freestanding compilers.
17457 # On the NeXT, cc -E runs the code through the compiler's parser,
17458 # not just through cpp. "Syntax error" is here to catch this case.
17459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17462 # include <limits.h>
17464 # include <assert.h>
17468 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17471 # Broken: fails on valid input.
17474 rm -f conftest.err conftest.
$ac_ext
17476 # OK, works on sane cases. Now check whether nonexistent headers
17477 # can be detected and how.
17478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 #include <ac_nonexistent.h>
17482 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17483 # Broken: success on invalid input.
17486 # Passes both tests.
17490 rm -f conftest.err conftest.
$ac_ext
17493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17494 rm -f conftest.err conftest.
$ac_ext
17495 if $ac_preproc_ok; then :
17500 ac_cv_prog_CXXCPP
=$CXXCPP
17503 CXXCPP
=$ac_cv_prog_CXXCPP
17505 ac_cv_prog_CXXCPP
=$CXXCPP
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17508 $as_echo "$CXXCPP" >&6; }
17509 ac_preproc_ok
=false
17510 for ac_cxx_preproc_warn_flag
in '' yes
17512 # Use a header file that comes with gcc, so configuring glibc
17513 # with a fresh cross-compiler works.
17514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17515 # <limits.h> exists even on freestanding compilers.
17516 # On the NeXT, cc -E runs the code through the compiler's parser,
17517 # not just through cpp. "Syntax error" is here to catch this case.
17518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17521 # include <limits.h>
17523 # include <assert.h>
17527 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17530 # Broken: fails on valid input.
17533 rm -f conftest.err conftest.
$ac_ext
17535 # OK, works on sane cases. Now check whether nonexistent headers
17536 # can be detected and how.
17537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539 #include <ac_nonexistent.h>
17541 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17542 # Broken: success on invalid input.
17545 # Passes both tests.
17549 rm -f conftest.err conftest.
$ac_ext
17552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17553 rm -f conftest.err conftest.
$ac_ext
17554 if $ac_preproc_ok; then :
17557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17559 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17560 See \`config.log' for more details." "$LINENO" 5; }
17564 ac_cpp
='$CPP $CPPFLAGS'
17565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17570 _lt_caught_CXX_error
=yes
17574 ac_cpp
='$CXXCPP $CPPFLAGS'
17575 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17576 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17577 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17579 archive_cmds_need_lc_CXX
=no
17580 allow_undefined_flag_CXX
=
17581 always_export_symbols_CXX
=no
17582 archive_expsym_cmds_CXX
=
17583 compiler_needs_object_CXX
=no
17584 export_dynamic_flag_spec_CXX
=
17585 hardcode_direct_CXX
=no
17586 hardcode_direct_absolute_CXX
=no
17587 hardcode_libdir_flag_spec_CXX
=
17588 hardcode_libdir_flag_spec_ld_CXX
=
17589 hardcode_libdir_separator_CXX
=
17590 hardcode_minus_L_CXX
=no
17591 hardcode_shlibpath_var_CXX
=unsupported
17592 hardcode_automatic_CXX
=no
17593 inherit_rpath_CXX
=no
17595 module_expsym_cmds_CXX
=
17596 link_all_deplibs_CXX
=unknown
17597 old_archive_cmds_CXX
=$old_archive_cmds
17598 reload_flag_CXX
=$reload_flag
17599 reload_cmds_CXX
=$reload_cmds
17600 no_undefined_flag_CXX
=
17601 whole_archive_flag_spec_CXX
=
17602 enable_shared_with_static_runtimes_CXX
=no
17604 # Source file extension for C++ test sources.
17607 # Object file extension for compiled C++ test sources.
17611 # No sense in running all these tests if we already determined that
17612 # the CXX compiler isn't working. Some variables (like enable_shared)
17613 # are currently assumed to apply to all compilers on this platform,
17614 # and will be corrupted by setting them based on a non-working compiler.
17615 if test "$_lt_caught_CXX_error" != yes; then
17616 # Code to be used in simple compile tests
17617 lt_simple_compile_test_code
="int some_variable = 0;"
17619 # Code to be used in simple link tests
17620 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17629 # If no C compiler was specified, use CC.
17632 # If no C compiler flags were specified, use CFLAGS.
17633 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17635 # Allow CC to be a program name with arguments.
17639 # save warnings/boilerplate of simple test code
17640 ac_outfile
=conftest.
$ac_objext
17641 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17642 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17643 _lt_compiler_boilerplate
=`cat conftest.err`
17646 ac_outfile
=conftest.
$ac_objext
17647 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17648 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17649 _lt_linker_boilerplate
=`cat conftest.err`
17653 # Allow CC to be a program name with arguments.
17658 lt_save_with_gnu_ld
=$with_gnu_ld
17659 lt_save_path_LD
=$lt_cv_path_LD
17660 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17661 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17663 $as_unset lt_cv_prog_gnu_ld
17665 if test -n "${lt_cv_path_LDCXX+set}"; then
17666 lt_cv_path_LD
=$lt_cv_path_LDCXX
17668 $as_unset lt_cv_path_LD
17670 test -z "${LDCXX+set}" || LD
=$LDCXX
17674 for cc_temp
in $compiler""; do
17676 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17677 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17682 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17685 if test -n "$compiler"; then
17686 # We don't want -fno-exception when compiling C++ code, so set the
17687 # no_builtin_flag separately
17688 if test "$GXX" = yes; then
17689 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17691 lt_prog_compiler_no_builtin_flag_CXX
=
17694 if test "$GXX" = yes; then
17695 # Set up default GNU C++ configuration
17699 # Check whether --with-gnu-ld was given.
17700 if test "${with_gnu_ld+set}" = set; then :
17701 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17707 if test "$GCC" = yes; then
17708 # Check if gcc -print-prog-name=ld gives a path.
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17710 $as_echo_n "checking for ld used by $CC... " >&6; }
17713 # gcc leaves a trailing carriage return which upsets mingw
17714 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17716 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17719 # Accept absolute paths.
17721 re_direlt
='/[^/][^/]*/\.\./'
17722 # Canonicalize the pathname of ld
17723 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17724 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17725 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17727 test -z "$LD" && LD
="$ac_prog"
17730 # If it fails, then pretend we aren't using GCC.
17734 # If it is relative, then search for the first ld in PATH.
17735 with_gnu_ld
=unknown
17738 elif test "$with_gnu_ld" = yes; then
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17740 $as_echo_n "checking for GNU ld... " >&6; }
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17743 $as_echo_n "checking for non-GNU ld... " >&6; }
17745 if test "${lt_cv_path_LD+set}" = set; then :
17746 $as_echo_n "(cached) " >&6
17748 if test -z "$LD"; then
17749 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17750 for ac_dir
in $PATH; do
17752 test -z "$ac_dir" && ac_dir
=.
17753 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17754 lt_cv_path_LD
="$ac_dir/$ac_prog"
17755 # Check to see if the program is GNU ld. I'd rather use --version,
17756 # but apparently some variants of GNU ld only accept -v.
17757 # Break only if it was the GNU/non-GNU ld that we prefer.
17758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17759 *GNU
* |
*'with BFD'*)
17760 test "$with_gnu_ld" != no
&& break
17763 test "$with_gnu_ld" != yes && break
17770 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17774 LD
="$lt_cv_path_LD"
17775 if test -n "$LD"; then
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17777 $as_echo "$LD" >&6; }
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17780 $as_echo "no" >&6; }
17782 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17785 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17789 case `$LD -v 2>&1 </dev/null` in
17790 *GNU
* |
*'with BFD'*)
17791 lt_cv_prog_gnu_ld
=yes
17794 lt_cv_prog_gnu_ld
=no
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17799 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17800 with_gnu_ld
=$lt_cv_prog_gnu_ld
17808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17809 # archiving commands below assume that GNU ld is being used.
17810 if test "$with_gnu_ld" = yes; then
17811 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17812 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'
17814 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17815 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17817 # If archive_cmds runs LD, not CC, wlarc should be empty
17818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17819 # investigate it a little bit more. (MM)
17822 # ancient GNU ld didn't support --whole-archive et. al.
17823 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17824 $GREP 'no-whole-archive' > /dev
/null
; then
17825 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17827 whole_archive_flag_spec_CXX
=
17833 # A generic and very simple default shared library creation
17834 # command for GNU C++ for the case where it uses the native
17835 # linker, instead of GNU ld. If possible, this setting should
17836 # overridden to take advantage of the native linker features on
17837 # the platform it is being used on.
17838 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17841 # Commands to make compiler produce verbose output that lists
17842 # what "hidden" libraries, object files and flags are used when
17843 # linking a shared library.
17844 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17852 # PORTME: fill in a description of your system's C++ link characteristics
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17858 # FIXME: insert proper C++ library support
17862 if test "$host_cpu" = ia64
; then
17863 # On IA64, the linker does run time linking by default, so we don't
17864 # have to do anything special.
17865 aix_use_runtimelinking
=no
17866 exp_sym_flag
='-Bexport'
17869 aix_use_runtimelinking
=no
17871 # Test if we are trying to use run time linking or normal
17872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17873 # need to do runtime linking.
17874 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17875 for ld_flag
in $LDFLAGS; do
17878 aix_use_runtimelinking
=yes
17886 exp_sym_flag
='-bexport'
17887 no_entry_flag
='-bnoentry'
17890 # When large executables or shared objects are built, AIX ld can
17891 # have problems creating the table of contents. If linking a library
17892 # or program results in "error TOC overflow" add -mminimal-toc to
17893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17896 archive_cmds_CXX
=''
17897 hardcode_direct_CXX
=yes
17898 hardcode_direct_absolute_CXX
=yes
17899 hardcode_libdir_separator_CXX
=':'
17900 link_all_deplibs_CXX
=yes
17901 file_list_spec_CXX
='${wl}-f,'
17903 if test "$GXX" = yes; then
17904 case $host_os in aix4.
[012]|aix4.
[012].
*)
17905 # We only want to do this on AIX 4.2 and lower, the check
17906 # below for broken collect2 doesn't work under 4.3+
17907 collect2name
=`${CC} -print-prog-name=collect2`
17908 if test -f "$collect2name" &&
17909 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17911 # We have reworked collect2
17914 # We have old collect2
17915 hardcode_direct_CXX
=unsupported
17916 # It fails to find uninstalled libraries when the uninstalled
17917 # path is not listed in the libpath. Setting hardcode_minus_L
17918 # to unsupported forces relinking
17919 hardcode_minus_L_CXX
=yes
17920 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17921 hardcode_libdir_separator_CXX
=
17924 shared_flag
='-shared'
17925 if test "$aix_use_runtimelinking" = yes; then
17926 shared_flag
="$shared_flag "'${wl}-G'
17930 if test "$host_cpu" = ia64
; then
17931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17932 # chokes on -Wl,-G. The following line is correct:
17935 if test "$aix_use_runtimelinking" = yes; then
17936 shared_flag
='${wl}-G'
17938 shared_flag
='${wl}-bM:SRE'
17943 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17944 # It seems that -bexpall does not export symbols beginning with
17945 # underscore (_), so it is better to generate a list of symbols to
17947 always_export_symbols_CXX
=yes
17948 if test "$aix_use_runtimelinking" = yes; then
17949 # Warning - without using the other runtime loading flags (-brtl),
17950 # -berok will link without error, but may produce a broken library.
17951 allow_undefined_flag_CXX
='-berok'
17952 # Determine the default libpath from the value encoded in an empty
17954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h. */
17965 if ac_fn_cxx_try_link
"$LINENO"; then :
17967 lt_aix_libpath_sed
='
17968 /Import File Strings/,/^$/ {
17974 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17975 # Check for a 64-bit object if we didn't find anything.
17976 if test -z "$aix_libpath"; then
17977 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17980 rm -f core conftest.err conftest.
$ac_objext \
17981 conftest
$ac_exeext conftest.
$ac_ext
17982 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17984 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17986 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"
17988 if test "$host_cpu" = ia64
; then
17989 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
17990 allow_undefined_flag_CXX
="-z nodefs"
17991 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"
17993 # Determine the default libpath from the value encoded in an
17994 # empty executable.
17995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
18006 if ac_fn_cxx_try_link
"$LINENO"; then :
18008 lt_aix_libpath_sed
='
18009 /Import File Strings/,/^$/ {
18015 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18016 # Check for a 64-bit object if we didn't find anything.
18017 if test -z "$aix_libpath"; then
18018 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18021 rm -f core conftest.err conftest.
$ac_objext \
18022 conftest
$ac_exeext conftest.
$ac_ext
18023 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18025 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18026 # Warning - without using the other run time loading flags,
18027 # -berok will link without error, but may produce a broken library.
18028 no_undefined_flag_CXX
=' ${wl}-bernotok'
18029 allow_undefined_flag_CXX
=' ${wl}-berok'
18030 if test "$with_gnu_ld" = yes; then
18031 # We only use this code for GNU lds that support --whole-archive.
18032 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18034 # Exported symbols can be pulled into shared objects from archives
18035 whole_archive_flag_spec_CXX
='$convenience'
18037 archive_cmds_need_lc_CXX
=yes
18038 # This is similar to how AIX traditionally builds its shared
18040 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'
18046 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18047 allow_undefined_flag_CXX
=unsupported
18048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18049 # support --undefined. This deserves some investigation. FIXME
18050 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18057 case $cc_basename in
18059 # FIXME: insert proper C++ library support
18065 cygwin
* | mingw
* | pw32
* | cegcc
*)
18066 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18067 # as there is no search path for DLLs.
18068 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18069 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18070 allow_undefined_flag_CXX
=unsupported
18071 always_export_symbols_CXX
=no
18072 enable_shared_with_static_runtimes_CXX
=yes
18074 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18075 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'
18076 # If the export-symbols file already is a .def file (1st line
18077 # is EXPORTS), use it as is; otherwise, prepend...
18078 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18079 cp $export_symbols $output_objdir/$soname.def;
18081 echo EXPORTS > $output_objdir/$soname.def;
18082 cat $export_symbols >> $output_objdir/$soname.def;
18084 $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'
18089 darwin
* | rhapsody
*)
18092 archive_cmds_need_lc_CXX
=no
18093 hardcode_direct_CXX
=no
18094 hardcode_automatic_CXX
=yes
18095 hardcode_shlibpath_var_CXX
=unsupported
18096 if test "$lt_cv_ld_force_load" = "yes"; then
18097 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\"`'
18099 whole_archive_flag_spec_CXX
=''
18101 link_all_deplibs_CXX
=yes
18102 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18103 case $cc_basename in
18104 ifort
*) _lt_dar_can_shared
=yes ;;
18105 *) _lt_dar_can_shared
=$GCC ;;
18107 if test "$_lt_dar_can_shared" = "yes"; then
18108 output_verbose_link_cmd
=func_echo_all
18109 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}"
18110 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18111 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}"
18112 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}"
18113 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18114 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}"
18115 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}"
18125 case $cc_basename in
18127 # FIXME: insert proper C++ library support
18131 # Green Hills C++ Compiler
18132 # FIXME: insert proper C++ library support
18136 # FIXME: insert proper C++ library support
18143 # C++ shared libraries reported to be fairly broken before
18149 archive_cmds_need_lc_CXX
=no
18152 freebsd
* | dragonfly
*)
18153 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18162 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18163 link_all_deplibs_CXX
=yes
18167 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18168 hardcode_libdir_separator_CXX
=:
18169 export_dynamic_flag_spec_CXX
='${wl}-E'
18170 hardcode_direct_CXX
=yes
18171 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18172 # but as the default
18173 # location of the library.
18175 case $cc_basename in
18177 # FIXME: insert proper C++ library support
18181 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'
18182 # Commands to make compiler produce verbose output that lists
18183 # what "hidden" libraries, object files and flags are used when
18184 # linking a shared library.
18186 # There doesn't appear to be a way to prevent this compiler from
18187 # explicitly linking system object files so we need to strip them
18188 # from the output so that they don't get included in the library
18190 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"'
18193 if test "$GXX" = yes; then
18194 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'
18196 # FIXME: insert proper C++ library support
18204 if test $with_gnu_ld = no
; then
18205 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18206 hardcode_libdir_separator_CXX
=:
18212 export_dynamic_flag_spec_CXX
='${wl}-E'
18218 hardcode_direct_CXX
=no
18219 hardcode_shlibpath_var_CXX
=no
18222 hardcode_direct_CXX
=yes
18223 hardcode_direct_absolute_CXX
=yes
18224 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18225 # but as the default
18226 # location of the library.
18230 case $cc_basename in
18232 # FIXME: insert proper C++ library support
18238 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18241 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18244 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18247 # Commands to make compiler produce verbose output that lists
18248 # what "hidden" libraries, object files and flags are used when
18249 # linking a shared library.
18251 # There doesn't appear to be a way to prevent this compiler from
18252 # explicitly linking system object files so we need to strip them
18253 # from the output so that they don't get included in the library
18255 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"'
18258 if test "$GXX" = yes; then
18259 if test $with_gnu_ld = no
; then
18262 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18265 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18268 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'
18273 # FIXME: insert proper C++ library support
18281 hardcode_direct_CXX
=no
18282 hardcode_shlibpath_var_CXX
=no
18283 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18284 export_dynamic_flag_spec_CXX
='${wl}-E'
18285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18286 # Instead, shared libraries are loaded at an image base (0x10000000 by
18287 # default) and relocated if they conflict, which is a slow very memory
18288 # consuming and fragmenting process. To avoid this, we pick a random,
18289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18291 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'
18292 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'
18295 case $cc_basename in
18298 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'
18300 # Archives containing C++ object files must be created using
18301 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18302 # necessary to make sure instantiated templates are included
18304 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18307 if test "$GXX" = yes; then
18308 if test "$with_gnu_ld" = no
; then
18309 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'
18311 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'
18314 link_all_deplibs_CXX
=yes
18317 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18318 hardcode_libdir_separator_CXX
=:
18319 inherit_rpath_CXX
=yes
18322 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18323 case $cc_basename in
18325 # Kuck and Associates, Inc. (KAI) C++ Compiler
18327 # KCC will only create a shared library if the output file
18328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18329 # to its proper name (with version) after linking.
18330 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'
18331 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'
18332 # Commands to make compiler produce verbose output that lists
18333 # what "hidden" libraries, object files and flags are used when
18334 # linking a shared library.
18336 # There doesn't appear to be a way to prevent this compiler from
18337 # explicitly linking system object files so we need to strip them
18338 # from the output so that they don't get included in the library
18340 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"'
18342 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18343 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18345 # Archives containing C++ object files must be created using
18346 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18347 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18352 # version 8.0 and above of icpc choke on multiply defined symbols
18353 # if we add $predep_objects and $postdep_objects, however 7.1 and
18354 # earlier do not add the objects themselves.
18355 case `$CC -V 2>&1` in
18357 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18358 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'
18360 *) # Version 8.0 or newer
18363 ia64
*) tmp_idyn
=' -i_dynamic';;
18365 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18366 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'
18369 archive_cmds_need_lc_CXX
=no
18370 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18371 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18372 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18375 # Portland Group C++ compiler
18377 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18378 prelink_cmds_CXX
='tpldir=Template.dir~
18380 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18381 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18382 old_archive_cmds_CXX
='tpldir=Template.dir~
18384 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18385 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18387 archive_cmds_CXX
='tpldir=Template.dir~
18389 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18390 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18391 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18393 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18394 $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'
18396 *) # Version 6 and above use weak symbols
18397 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18398 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'
18402 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18403 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18404 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'
18408 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18409 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'
18411 runpath_var
=LD_RUN_PATH
18412 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18413 hardcode_libdir_separator_CXX
=:
18415 # Commands to make compiler produce verbose output that lists
18416 # what "hidden" libraries, object files and flags are used when
18417 # linking a shared library.
18419 # There doesn't appear to be a way to prevent this compiler from
18420 # explicitly linking system object files so we need to strip them
18421 # from the output so that they don't get included in the library
18423 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'
18425 xl
* | mpixl
* | bgxl
*)
18426 # IBM XL 8.0 on PPC, with GNU ld
18427 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18428 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18429 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18430 if test "x$supports_anon_versioning" = xyes
; then
18431 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18433 echo "local: *; };" >> $output_objdir/$libname.ver~
18434 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18438 case `$CC -V 2>&1 | sed 5q` in
18441 no_undefined_flag_CXX
=' -zdefs'
18442 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18443 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'
18444 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18445 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'
18446 compiler_needs_object_CXX
=yes
18448 # Not sure whether something based on
18449 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18451 output_verbose_link_cmd
='func_echo_all'
18453 # Archives containing C++ object files must be created using
18454 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18455 # necessary to make sure instantiated templates are included
18457 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18465 # FIXME: insert proper C++ library support
18470 # FIXME: insert proper C++ library support
18475 case $cc_basename in
18477 # FIXME: insert proper C++ library support
18481 # FIXME: insert proper C++ library support
18488 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18489 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18491 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18492 hardcode_direct_CXX
=yes
18493 hardcode_shlibpath_var_CXX
=no
18495 # Workaround some broken pre-1.5 toolchains
18496 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18504 # C++ shared libraries are fairly broken
18509 if test -f /usr
/libexec
/ld.so
; then
18510 hardcode_direct_CXX
=yes
18511 hardcode_shlibpath_var_CXX
=no
18512 hardcode_direct_absolute_CXX
=yes
18513 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18514 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18516 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18517 export_dynamic_flag_spec_CXX
='${wl}-E'
18518 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18520 output_verbose_link_cmd
=func_echo_all
18526 osf3
* | osf4
* | osf5
*)
18527 case $cc_basename in
18529 # Kuck and Associates, Inc. (KAI) C++ Compiler
18531 # KCC will only create a shared library if the output file
18532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18533 # to its proper name (with version) after linking.
18534 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'
18536 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18537 hardcode_libdir_separator_CXX
=:
18539 # Archives containing C++ object files must be created using
18540 # the KAI C++ compiler.
18542 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18543 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18547 # Rational C++ 2.4.1
18548 # FIXME: insert proper C++ library support
18554 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18555 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'
18556 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18559 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18560 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'
18561 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18562 echo "-hidden">> $lib.exp~
18563 $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~
18565 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18569 hardcode_libdir_separator_CXX
=:
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18575 # There doesn't appear to be a way to prevent this compiler from
18576 # explicitly linking system object files so we need to strip them
18577 # from the output so that they don't get included in the library
18579 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"'
18582 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18583 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18586 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'
18589 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'
18593 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18594 hardcode_libdir_separator_CXX
=:
18596 # Commands to make compiler produce verbose output that lists
18597 # what "hidden" libraries, object files and flags are used when
18598 # linking a shared library.
18599 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18602 # FIXME: insert proper C++ library support
18610 # FIXME: insert proper C++ library support
18615 case $cc_basename in
18618 # FIXME: insert proper C++ library support
18623 # FIXME: insert proper C++ library support
18627 # FIXME: insert proper C++ library support
18634 case $cc_basename in
18636 # Sun C++ 4.2, 5.x and Centerline C++
18637 archive_cmds_need_lc_CXX
=yes
18638 no_undefined_flag_CXX
=' -zdefs'
18639 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18640 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18641 $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'
18643 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18644 hardcode_shlibpath_var_CXX
=no
18646 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18648 # The compiler driver will combine and reorder linker options,
18649 # but understands `-z linker_flag'.
18650 # Supported since Solaris 2.6 (maybe 2.5.1?)
18651 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18654 link_all_deplibs_CXX
=yes
18656 output_verbose_link_cmd
='func_echo_all'
18658 # Archives containing C++ object files must be created using
18659 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18660 # necessary to make sure instantiated templates are included
18662 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18665 # Green Hills C++ Compiler
18666 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18668 # The C++ compiler must be used to create the archive.
18669 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18672 # GNU C++ compiler with Solaris linker
18673 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18674 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18675 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18676 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18677 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18678 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18680 # Commands to make compiler produce verbose output that lists
18681 # what "hidden" libraries, object files and flags are used when
18682 # linking a shared library.
18683 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18685 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18687 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18688 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18689 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18691 # Commands to make compiler produce verbose output that lists
18692 # what "hidden" libraries, object files and flags are used when
18693 # linking a shared library.
18694 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18697 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18699 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18701 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18709 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18710 no_undefined_flag_CXX
='${wl}-z,text'
18711 archive_cmds_need_lc_CXX
=no
18712 hardcode_shlibpath_var_CXX
=no
18713 runpath_var
='LD_RUN_PATH'
18715 case $cc_basename in
18717 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18718 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18721 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18722 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18727 sysv5
* | sco3.2v5
* | sco5v6
*)
18728 # Note: We can NOT use -z defs as we might desire, because we do not
18729 # link with -lc, and that would cause any symbols used from libc to
18730 # always be unresolved, which means just about no library would
18731 # ever link correctly. If we're not using GNU ld we use -z text
18732 # though, which does catch some bad symbols but isn't as heavy-handed
18734 no_undefined_flag_CXX
='${wl}-z,text'
18735 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18736 archive_cmds_need_lc_CXX
=no
18737 hardcode_shlibpath_var_CXX
=no
18738 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18739 hardcode_libdir_separator_CXX
=':'
18740 link_all_deplibs_CXX
=yes
18741 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18742 runpath_var
='LD_RUN_PATH'
18744 case $cc_basename in
18746 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18747 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18748 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18749 '"$old_archive_cmds_CXX"
18750 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18751 '"$reload_cmds_CXX"
18754 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18761 case $cc_basename in
18763 # NonStop-UX NCC 3.20
18764 # FIXME: insert proper C++ library support
18768 # FIXME: insert proper C++ library support
18775 # FIXME: insert proper C++ library support
18780 # FIXME: insert proper C++ library support
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18786 $as_echo "$ld_shlibs_CXX" >&6; }
18787 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18793 ## There is no encapsulation within the following macros, do not change
18794 ## the running order or otherwise move them around unless you know exactly
18795 ## what you are doing...
18796 # Dependencies to place before and after the object being linked:
18797 predep_objects_CXX
=
18798 postdep_objects_CXX
=
18801 compiler_lib_search_path_CXX
=
18803 cat > conftest.
$ac_ext <<_LT_EOF
18807 Foo (void) { a = 0; }
18813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18814 (eval $ac_compile) 2>&5
18816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18817 test $ac_status = 0; }; then
18818 # Parse the compiler output and extract the necessary
18819 # objects, libraries and library flags.
18821 # Sentinel used to keep track of whether or not we are before
18822 # the conftest object file.
18823 pre_test_object_deps_done
=no
18825 for p
in `eval "$output_verbose_link_cmd"`; do
18829 # Some compilers place space between "-{L,R}" and the path.
18830 # Remove the space.
18831 if test $p = "-L" ||
18832 test $p = "-R"; then
18839 if test "$pre_test_object_deps_done" = no
; then
18842 # Internal compiler library paths should come after those
18843 # provided the user. The postdeps already come after the
18844 # user supplied libs so there is no need to process them.
18845 if test -z "$compiler_lib_search_path_CXX"; then
18846 compiler_lib_search_path_CXX
="${prev}${p}"
18848 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18851 # The "-l" case would never come before the object being
18852 # linked, so don't bother handling this case.
18855 if test -z "$postdeps_CXX"; then
18856 postdeps_CXX
="${prev}${p}"
18858 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18864 # This assumes that the test object file only shows up
18865 # once in the compiler output.
18866 if test "$p" = "conftest.$objext"; then
18867 pre_test_object_deps_done
=yes
18871 if test "$pre_test_object_deps_done" = no
; then
18872 if test -z "$predep_objects_CXX"; then
18873 predep_objects_CXX
="$p"
18875 predep_objects_CXX
="$predep_objects_CXX $p"
18878 if test -z "$postdep_objects_CXX"; then
18879 postdep_objects_CXX
="$p"
18881 postdep_objects_CXX
="$postdep_objects_CXX $p"
18886 *) ;; # Ignore the rest.
18894 echo "libtool.m4: error: problem compiling CXX test program"
18897 $RM -f confest.
$objext
18899 # PORTME: override above test on systems where it is broken
18902 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18903 # hack all around it, let's just trust "g++" to DTRT.
18904 predep_objects_CXX
=
18905 postdep_objects_CXX
=
18910 case `$CC -V 2>&1 | sed 5q` in
18914 # The more standards-conforming stlport4 library is
18915 # incompatible with the Cstd library. Avoid specifying
18916 # it if it's in CXXFLAGS. Ignore libCrun as
18917 # -library=stlport4 depends on it.
18918 case " $CXX $CXXFLAGS " in
18919 *" -library=stlport4 "*)
18920 solaris_use_stlport4
=yes
18924 if test "$solaris_use_stlport4" != yes; then
18925 postdeps_CXX
='-library=Cstd -library=Crun'
18932 case $cc_basename in
18934 # The more standards-conforming stlport4 library is
18935 # incompatible with the Cstd library. Avoid specifying
18936 # it if it's in CXXFLAGS. Ignore libCrun as
18937 # -library=stlport4 depends on it.
18938 case " $CXX $CXXFLAGS " in
18939 *" -library=stlport4 "*)
18940 solaris_use_stlport4
=yes
18944 # Adding this requires a known-good setup of shared libraries for
18945 # Sun compiler versions before 5.6, else PIC objects from an old
18946 # archive will be linked into the output, leading to subtle bugs.
18947 if test "$solaris_use_stlport4" != yes; then
18948 postdeps_CXX
='-library=Cstd -library=Crun'
18956 case " $postdeps_CXX " in
18957 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18959 compiler_lib_search_dirs_CXX
=
18960 if test -n "${compiler_lib_search_path_CXX}"; then
18961 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18994 lt_prog_compiler_wl_CXX
=
18995 lt_prog_compiler_pic_CXX
=
18996 lt_prog_compiler_static_CXX
=
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18999 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19001 # C++ specific cases for pic, static, wl, etc.
19002 if test "$GXX" = yes; then
19003 lt_prog_compiler_wl_CXX
='-Wl,'
19004 lt_prog_compiler_static_CXX
='-static'
19008 # All AIX code is PIC.
19009 if test "$host_cpu" = ia64
; then
19010 # AIX 5 now supports IA64 processor
19011 lt_prog_compiler_static_CXX
='-Bstatic'
19018 # see comment about AmigaOS4 .so support
19019 lt_prog_compiler_pic_CXX
='-fPIC'
19022 # FIXME: we need at least 68020 code to build shared libraries, but
19023 # adding the `-m68020' flag to GCC prevents building anything better,
19025 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19030 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19031 # PIC is the default for these OSes.
19033 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19034 # This hack is so that the source file can tell whether it is being
19035 # built for inclusion in a dll (and should export symbols for example).
19036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19037 # (--disable-auto-import) libraries
19038 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19040 darwin
* | rhapsody
*)
19041 # PIC is the default on this platform
19042 # Common symbols not allowed in MH_DYLIB files
19043 lt_prog_compiler_pic_CXX
='-fno-common'
19046 # DJGPP does not support shared libraries at all
19047 lt_prog_compiler_pic_CXX
=
19050 # PIC is the default for Haiku.
19051 # The "-static" flag exists, but is broken.
19052 lt_prog_compiler_static_CXX
=
19055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19056 # Instead, we relocate shared libraries at runtime.
19059 if test -d /usr
/nec
; then
19060 lt_prog_compiler_pic_CXX
=-Kconform_pic
19064 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19065 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19066 # sets the default TLS model and affects inlining.
19071 lt_prog_compiler_pic_CXX
='-fPIC'
19076 # QNX uses GNU C++, but need to define -shared option too, otherwise
19077 # it will coredump.
19078 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19081 lt_prog_compiler_pic_CXX
='-fPIC'
19087 # All AIX code is PIC.
19088 if test "$host_cpu" = ia64
; then
19089 # AIX 5 now supports IA64 processor
19090 lt_prog_compiler_static_CXX
='-Bstatic'
19092 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19096 case $cc_basename in
19098 # Green Hills C++ Compiler
19099 # _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"
19104 case $cc_basename in
19106 lt_prog_compiler_pic_CXX
='-KPIC'
19109 # Green Hills C++ Compiler
19110 lt_prog_compiler_pic_CXX
='-pic'
19116 freebsd
* | dragonfly
*)
19117 # FreeBSD uses GNU C++
19119 hpux9
* | hpux10
* | hpux11
*)
19120 case $cc_basename in
19122 lt_prog_compiler_wl_CXX
='-Wl,'
19123 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19124 if test "$host_cpu" != ia64
; then
19125 lt_prog_compiler_pic_CXX
='+Z'
19129 lt_prog_compiler_wl_CXX
='-Wl,'
19130 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19136 lt_prog_compiler_pic_CXX
='+Z'
19145 # This is c89, which is MS Visual C++ (no shared libs)
19146 # Anyone wants to do a port?
19148 irix5
* | irix6
* | nonstopux
*)
19149 case $cc_basename in
19151 lt_prog_compiler_wl_CXX
='-Wl,'
19152 lt_prog_compiler_static_CXX
='-non_shared'
19153 # CC pic flag -KPIC is the default.
19159 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19160 case $cc_basename in
19163 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19164 lt_prog_compiler_pic_CXX
='-fPIC'
19167 # old Intel C++ for x86_64 which still supported -KPIC.
19168 lt_prog_compiler_wl_CXX
='-Wl,'
19169 lt_prog_compiler_pic_CXX
='-KPIC'
19170 lt_prog_compiler_static_CXX
='-static'
19173 # Intel C++, used to be incompatible with GCC.
19174 # ICC 10 doesn't accept -KPIC any more.
19175 lt_prog_compiler_wl_CXX
='-Wl,'
19176 lt_prog_compiler_pic_CXX
='-fPIC'
19177 lt_prog_compiler_static_CXX
='-static'
19180 # Portland Group C++ compiler
19181 lt_prog_compiler_wl_CXX
='-Wl,'
19182 lt_prog_compiler_pic_CXX
='-fpic'
19183 lt_prog_compiler_static_CXX
='-Bstatic'
19187 # Make sure the PIC flag is empty. It appears that all Alpha
19188 # Linux and Compaq Tru64 Unix objects are PIC.
19189 lt_prog_compiler_pic_CXX
=
19190 lt_prog_compiler_static_CXX
='-non_shared'
19192 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19193 # IBM XL 8.0, 9.0 on PPC and BlueGene
19194 lt_prog_compiler_wl_CXX
='-Wl,'
19195 lt_prog_compiler_pic_CXX
='-qpic'
19196 lt_prog_compiler_static_CXX
='-qstaticlink'
19199 case `$CC -V 2>&1 | sed 5q` in
19202 lt_prog_compiler_pic_CXX
='-KPIC'
19203 lt_prog_compiler_static_CXX
='-Bstatic'
19204 lt_prog_compiler_wl_CXX
='-Qoption ld '
19215 case $cc_basename in
19217 lt_prog_compiler_pic_CXX
='-W c,exportall'
19226 # QNX uses GNU C++, but need to define -shared option too, otherwise
19227 # it will coredump.
19228 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19230 osf3
* | osf4
* | osf5
*)
19231 case $cc_basename in
19233 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19236 # Rational C++ 2.4.1
19237 lt_prog_compiler_pic_CXX
='-pic'
19240 # Digital/Compaq C++
19241 lt_prog_compiler_wl_CXX
='-Wl,'
19242 # Make sure the PIC flag is empty. It appears that all Alpha
19243 # Linux and Compaq Tru64 Unix objects are PIC.
19244 lt_prog_compiler_pic_CXX
=
19245 lt_prog_compiler_static_CXX
='-non_shared'
19254 case $cc_basename in
19256 # Sun C++ 4.2, 5.x and Centerline C++
19257 lt_prog_compiler_pic_CXX
='-KPIC'
19258 lt_prog_compiler_static_CXX
='-Bstatic'
19259 lt_prog_compiler_wl_CXX
='-Qoption ld '
19262 # Green Hills C++ Compiler
19263 lt_prog_compiler_pic_CXX
='-PIC'
19270 case $cc_basename in
19273 lt_prog_compiler_pic_CXX
='-pic'
19274 lt_prog_compiler_static_CXX
='-Bstatic'
19278 lt_prog_compiler_pic_CXX
='-pic'
19284 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19285 case $cc_basename in
19287 lt_prog_compiler_wl_CXX
='-Wl,'
19288 lt_prog_compiler_pic_CXX
='-KPIC'
19289 lt_prog_compiler_static_CXX
='-Bstatic'
19294 case $cc_basename in
19296 # NonStop-UX NCC 3.20
19297 lt_prog_compiler_pic_CXX
='-KPIC'
19306 lt_prog_compiler_can_build_shared_CXX
=no
19312 # For platforms which do not support PIC, -DPIC is meaningless:
19314 lt_prog_compiler_pic_CXX
=
19317 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19321 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19326 # Check to make sure the PIC flag actually works.
19328 if test -n "$lt_prog_compiler_pic_CXX"; then
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19330 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19331 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19332 $as_echo_n "(cached) " >&6
19334 lt_cv_prog_compiler_pic_works_CXX
=no
19335 ac_outfile
=conftest.
$ac_objext
19336 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19337 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19338 # Insert the option either (1) after the last *FLAGS variable, or
19339 # (2) before a word containing "conftest.", or (3) at the end.
19340 # Note that $ac_compile itself does not contain backslashes and begins
19341 # with a dollar sign (not a hyphen), so the echo should work correctly.
19342 # The option is referenced via a variable to avoid confusing sed.
19343 lt_compile
=`echo "$ac_compile" | $SED \
19344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19346 -e 's:$: $lt_compiler_flag:'`
19347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19348 (eval "$lt_compile" 2>conftest.err
)
19350 cat conftest.err
>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 if (exit $ac_status) && test -s "$ac_outfile"; then
19353 # The compiler can only warn and ignore the option if not recognized
19354 # So say no if there are warnings other than the usual output.
19355 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19356 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19357 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19358 lt_cv_prog_compiler_pic_works_CXX
=yes
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19365 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19367 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19368 case $lt_prog_compiler_pic_CXX in
19370 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19373 lt_prog_compiler_pic_CXX
=
19374 lt_prog_compiler_can_build_shared_CXX
=no
19382 # Check to make sure the static flag actually works.
19384 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19386 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19387 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19388 $as_echo_n "(cached) " >&6
19390 lt_cv_prog_compiler_static_works_CXX
=no
19391 save_LDFLAGS
="$LDFLAGS"
19392 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19393 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19394 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19395 # The linker can only warn and ignore the option if not recognized
19396 # So say no if there are warnings
19397 if test -s conftest.err
; then
19398 # Append any errors to the config.log.
19399 cat conftest.err
1>&5
19400 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19401 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19402 if diff conftest.exp conftest.er2
>/dev
/null
; then
19403 lt_cv_prog_compiler_static_works_CXX
=yes
19406 lt_cv_prog_compiler_static_works_CXX
=yes
19410 LDFLAGS
="$save_LDFLAGS"
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19414 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19416 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19419 lt_prog_compiler_static_CXX
=
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19427 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19428 $as_echo_n "(cached) " >&6
19430 lt_cv_prog_compiler_c_o_CXX
=no
19431 $RM -r conftest
2>/dev
/null
19435 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19437 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19438 # Insert the option either (1) after the last *FLAGS variable, or
19439 # (2) before a word containing "conftest.", or (3) at the end.
19440 # Note that $ac_compile itself does not contain backslashes and begins
19441 # with a dollar sign (not a hyphen), so the echo should work correctly.
19442 lt_compile
=`echo "$ac_compile" | $SED \
19443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19445 -e 's:$: $lt_compiler_flag:'`
19446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19447 (eval "$lt_compile" 2>out
/conftest.err
)
19449 cat out
/conftest.err
>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19453 # The compiler can only warn and ignore the option if not recognized
19454 # So say no if there are warnings
19455 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19456 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19457 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19458 lt_cv_prog_compiler_c_o_CXX
=yes
19463 # SGI C++ compiler will create directory out/ii_files/ for
19464 # template instantiation
19465 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19466 $RM out
/* && rmdir out
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19473 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19479 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19480 $as_echo_n "(cached) " >&6
19482 lt_cv_prog_compiler_c_o_CXX
=no
19483 $RM -r conftest
2>/dev
/null
19487 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19489 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19490 # Insert the option either (1) after the last *FLAGS variable, or
19491 # (2) before a word containing "conftest.", or (3) at the end.
19492 # Note that $ac_compile itself does not contain backslashes and begins
19493 # with a dollar sign (not a hyphen), so the echo should work correctly.
19494 lt_compile
=`echo "$ac_compile" | $SED \
19495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19497 -e 's:$: $lt_compiler_flag:'`
19498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19499 (eval "$lt_compile" 2>out
/conftest.err
)
19501 cat out
/conftest.err
>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19505 # The compiler can only warn and ignore the option if not recognized
19506 # So say no if there are warnings
19507 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19508 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19509 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19510 lt_cv_prog_compiler_c_o_CXX
=yes
19515 # SGI C++ compiler will create directory out/ii_files/ for
19516 # template instantiation
19517 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19518 $RM out
/* && rmdir out
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19525 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19530 hard_links
="nottested"
19531 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19532 # do not overwrite the value of need_locks provided by the user
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19534 $as_echo_n "checking if we can lock with hard links... " >&6; }
19537 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19539 ln conftest.a conftest.b
2>&5 || hard_links
=no
19540 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19542 $as_echo "$hard_links" >&6; }
19543 if test "$hard_links" = no
; then
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19545 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19555 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19557 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19560 # If we're using GNU nm, then we don't want the "-C" option.
19561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19562 # Also, AIX nm treats weak defined symbols like other global defined
19563 # symbols, whereas GNU nm marks them as "W".
19564 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19565 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'
19567 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'
19571 export_symbols_cmds_CXX
="$ltdll_cmds"
19573 cygwin
* | mingw
* | cegcc
*)
19574 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'
19577 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19580 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19583 $as_echo "$ld_shlibs_CXX" >&6; }
19584 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19586 with_gnu_ld_CXX
=$with_gnu_ld
19594 # Do we need to explicitly link libc?
19596 case "x$archive_cmds_need_lc_CXX" in
19598 # Assume -lc should be added
19599 archive_cmds_need_lc_CXX
=yes
19601 if test "$enable_shared" = yes && test "$GCC" = yes; then
19602 case $archive_cmds_CXX in
19604 # FIXME: we may have to deal with multi-command sequences.
19607 # Test whether the compiler implicitly links with -lc since on some
19608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19609 # to ld, don't add -lc before -lgcc.
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19611 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19612 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19616 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19619 (eval $ac_compile) 2>&5
19621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; } 2>conftest.err
; then
19625 libobjs
=conftest.
$ac_objext
19627 wl
=$lt_prog_compiler_wl_CXX
19628 pic_flag
=$lt_prog_compiler_pic_CXX
19634 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19635 allow_undefined_flag_CXX
=
19636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19637 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19640 test $ac_status = 0; }
19642 lt_cv_archive_cmds_need_lc_CXX
=no
19644 lt_cv_archive_cmds_need_lc_CXX
=yes
19646 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19648 cat conftest.err
1>&5
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19654 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19655 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19728 library_names_spec
=
19729 libname_spec
='lib$name'
19733 postuninstall_cmds
=
19737 shlibpath_overrides_runpath
=unknown
19739 dynamic_linker
="$host_os ld.so"
19740 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19741 need_lib_prefix
=unknown
19742 hardcode_into_libs
=no
19744 # when you set need_version to no, make sure it does not cause -set_version
19745 # flags to be left without arguments
19746 need_version
=unknown
19751 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19752 shlibpath_var
=LIBPATH
19754 # AIX 3 has no versioning support, so we append a major version to the name.
19755 soname_spec
='${libname}${release}${shared_ext}$major'
19762 hardcode_into_libs
=yes
19763 if test "$host_cpu" = ia64
; then
19764 # AIX 5 supports IA64
19765 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19766 shlibpath_var
=LD_LIBRARY_PATH
19768 # With GCC up to 2.95.x, collect2 would create an import file
19769 # for dependence libraries. The import file would start with
19770 # the line `#! .'. This would cause the generated library to
19771 # depend on `.', always an invalid library. This was fixed in
19772 # development snapshots of GCC prior to 3.0.
19774 aix4 | aix4.
[01] | aix4.
[01].
*)
19775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19777 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19780 can_build_shared
=no
19784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19785 # soname into executable. Probably we can add versioning support to
19786 # collect2, so additional links can be useful in future.
19787 if test "$aix_use_runtimelinking" = yes; then
19788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19789 # instead of lib<name>.a to let people know that these are not
19790 # typical AIX shared libraries.
19791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19793 # We preserve .a as extension for shared libraries through AIX4.2
19794 # and later when we are not doing run time linking.
19795 library_names_spec
='${libname}${release}.a $libname.a'
19796 soname_spec
='${libname}${release}${shared_ext}$major'
19798 shlibpath_var
=LIBPATH
19805 # Since July 2007 AmigaOS4 officially supports .so libraries.
19806 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810 library_names_spec
='$libname.ixlibrary $libname.a'
19811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19812 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'
19818 library_names_spec
='${libname}${shared_ext}'
19819 dynamic_linker
="$host_os ld.so"
19820 shlibpath_var
=LIBRARY_PATH
19826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19827 soname_spec
='${libname}${release}${shared_ext}$major'
19828 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19829 shlibpath_var
=LD_LIBRARY_PATH
19830 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19831 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19832 # the default ld.so.conf also contains /usr/contrib/lib and
19833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19834 # libtool to hard-code these into programs
19837 cygwin
* | mingw
* | pw32
* | cegcc
*)
19838 version_type
=windows
19843 case $GCC,$host_os in
19844 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19845 library_names_spec
='$libname.dll.a'
19846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19847 postinstall_cmds
='base_file=`basename \${file}`~
19848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19849 dldir=$destdir/`dirname \$dlpath`~
19850 test -d \$dldir || mkdir -p \$dldir~
19851 $install_prog $dir/$dlname \$dldir/$dlname~
19852 chmod a+x \$dldir/$dlname~
19853 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19854 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19856 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19857 dlpath=$dir/\$dldll~
19859 shlibpath_overrides_runpath
=yes
19863 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19864 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19868 # MinGW DLLs use traditional 'lib' prefix
19869 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19872 # pw32 DLLs use 'pw' prefix rather than 'lib'
19873 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19879 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19882 dynamic_linker
='Win32 ld.exe'
19883 # FIXME: first we should search . and the directory the executable is in
19887 darwin
* | rhapsody
*)
19888 dynamic_linker
="$host_os dyld"
19889 version_type
=darwin
19892 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19893 soname_spec
='${libname}${release}${major}$shared_ext'
19894 shlibpath_overrides_runpath
=yes
19895 shlibpath_var
=DYLD_LIBRARY_PATH
19896 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19898 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19906 soname_spec
='${libname}${release}${shared_ext}$major'
19907 shlibpath_var
=LD_LIBRARY_PATH
19914 freebsd
* | dragonfly
*)
19915 # DragonFly does not have aout. When/if they implement a new
19916 # versioning mechanism, adjust this.
19917 if test -x /usr
/bin
/objformat
; then
19918 objformat
=`/usr/bin/objformat`
19921 freebsd
[123]*) objformat
=aout
;;
19922 *) objformat
=elf
;;
19925 version_type
=freebsd-
$objformat
19926 case $version_type in
19928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19933 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19937 shlibpath_var
=LD_LIBRARY_PATH
19940 shlibpath_overrides_runpath
=yes
19942 freebsd3.
[01]* | freebsdelf3.
[01]*)
19943 shlibpath_overrides_runpath
=yes
19944 hardcode_into_libs
=yes
19946 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19947 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19948 shlibpath_overrides_runpath
=no
19949 hardcode_into_libs
=yes
19951 *) # from 4.6 on, and DragonFly
19952 shlibpath_overrides_runpath
=yes
19953 hardcode_into_libs
=yes
19962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19963 soname_spec
='${libname}${release}${shared_ext}$major'
19964 shlibpath_var
=LD_LIBRARY_PATH
19965 hardcode_into_libs
=yes
19972 dynamic_linker
="$host_os runtime_loader"
19973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19974 soname_spec
='${libname}${release}${shared_ext}$major'
19975 shlibpath_var
=LIBRARY_PATH
19976 shlibpath_overrides_runpath
=yes
19977 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19978 hardcode_into_libs
=yes
19981 hpux9
* | hpux10
* | hpux11
*)
19982 # Give a soname corresponding to the major version so that dld.sl refuses to
19983 # link against other versions.
19990 hardcode_into_libs
=yes
19991 dynamic_linker
="$host_os dld.so"
19992 shlibpath_var
=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32
; then
19997 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19999 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20001 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20005 hardcode_into_libs
=yes
20006 dynamic_linker
="$host_os dld.sl"
20007 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20008 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010 soname_spec
='${libname}${release}${shared_ext}$major'
20011 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20012 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20016 dynamic_linker
="$host_os dld.sl"
20017 shlibpath_var
=SHLIB_PATH
20018 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20020 soname_spec
='${libname}${release}${shared_ext}$major'
20023 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20024 postinstall_cmds
='chmod 555 $lib'
20025 # or fails outright, so override atomically:
20026 install_override_mode
=555
20033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20034 soname_spec
='${libname}${release}${shared_ext}$major'
20035 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20036 shlibpath_var
=LD_LIBRARY_PATH
20037 shlibpath_overrides_runpath
=no
20038 hardcode_into_libs
=yes
20041 irix5
* | irix6
* | nonstopux
*)
20043 nonstopux
*) version_type
=nonstopux
;;
20045 if test "$lt_cv_prog_gnu_ld" = yes; then
20053 soname_spec
='${libname}${release}${shared_ext}$major'
20054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20056 irix5
* | nonstopux
*)
20057 libsuff
= shlibsuff
=
20060 case $LD in # libtool.m4 will add one of these switches to LD
20061 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20062 libsuff
= shlibsuff
= libmagic
=32-bit;;
20063 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20064 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20065 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20066 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20067 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20071 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20072 shlibpath_overrides_runpath
=no
20073 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20074 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20075 hardcode_into_libs
=yes
20078 # No shared lib support for Linux oldld, aout, or coff.
20079 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20083 # This must be Linux ELF.
20084 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20089 soname_spec
='${libname}${release}${shared_ext}$major'
20090 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20091 shlibpath_var
=LD_LIBRARY_PATH
20092 shlibpath_overrides_runpath
=no
20094 # Some binutils ld are patched to set DT_RUNPATH
20095 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20096 $as_echo_n "(cached) " >&6
20098 lt_cv_shlibpath_overrides_runpath
=no
20099 save_LDFLAGS
=$LDFLAGS
20100 save_libdir
=$libdir
20101 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20102 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20114 if ac_fn_cxx_try_link
"$LINENO"; then :
20115 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20116 lt_cv_shlibpath_overrides_runpath
=yes
20119 rm -f core conftest.err conftest.
$ac_objext \
20120 conftest
$ac_exeext conftest.
$ac_ext
20121 LDFLAGS
=$save_LDFLAGS
20122 libdir
=$save_libdir
20126 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20128 # This implies no fast_install, which is unacceptable.
20129 # Some rework will be needed to allow for fast_install
20130 # before this can be enabled.
20131 hardcode_into_libs
=yes
20133 # Append ld.so.conf contents to the search path
20134 if test -f /etc
/ld.so.conf
; then
20135 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' ' '`
20136 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20139 # We used to test for /lib/ld.so.1 and disable shared libraries on
20140 # powerpc, because MkLinux only supported shared libraries with the
20141 # GNU dynamic linker. Since this was broken with cross compilers,
20142 # most powerpc-linux boxes support dynamic linking these days and
20143 # people can always --disable-shared, the test was removed, and we
20144 # assume the GNU/Linux dynamic linker is in use.
20145 dynamic_linker
='GNU/Linux ld.so'
20152 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20154 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20155 dynamic_linker
='NetBSD (a.out) ld.so'
20157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20158 soname_spec
='${libname}${release}${shared_ext}$major'
20159 dynamic_linker
='NetBSD ld.elf_so'
20161 shlibpath_var
=LD_LIBRARY_PATH
20162 shlibpath_overrides_runpath
=yes
20163 hardcode_into_libs
=yes
20168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20169 shlibpath_var
=LD_LIBRARY_PATH
20170 shlibpath_overrides_runpath
=yes
20177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec
='${libname}${release}${shared_ext}$major'
20179 shlibpath_var
=LD_LIBRARY_PATH
20180 shlibpath_overrides_runpath
=no
20181 hardcode_into_libs
=yes
20182 dynamic_linker
='ldqnx.so'
20187 sys_lib_dlsearch_path_spec
="/usr/lib"
20189 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20191 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20192 *) need_version
=no
;;
20194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20195 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20196 shlibpath_var
=LD_LIBRARY_PATH
20197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20199 openbsd2.
[89] | openbsd2.
[89].
*)
20200 shlibpath_overrides_runpath
=no
20203 shlibpath_overrides_runpath
=yes
20207 shlibpath_overrides_runpath
=yes
20212 libname_spec
='$name'
20215 library_names_spec
='$libname${shared_ext} $libname.a'
20216 dynamic_linker
='OS/2 ld.exe'
20217 shlibpath_var
=LIBPATH
20220 osf3
* | osf4
* | osf5
*)
20224 soname_spec
='${libname}${release}${shared_ext}$major'
20225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226 shlibpath_var
=LD_LIBRARY_PATH
20227 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20228 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 soname_spec
='${libname}${release}${shared_ext}$major'
20241 shlibpath_var
=LD_LIBRARY_PATH
20242 shlibpath_overrides_runpath
=yes
20243 hardcode_into_libs
=yes
20244 # ldd complains unless libraries are executable
20245 postinstall_cmds
='chmod +x $lib'
20250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20251 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20252 shlibpath_var
=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath
=yes
20254 if test "$with_gnu_ld" = yes; then
20262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 soname_spec
='${libname}${release}${shared_ext}$major'
20264 shlibpath_var
=LD_LIBRARY_PATH
20265 case $host_vendor in
20267 shlibpath_overrides_runpath
=no
20269 runpath_var
=LD_RUN_PATH
20277 shlibpath_overrides_runpath
=no
20278 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20284 if test -d /usr
/nec
;then
20286 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20287 soname_spec
='$libname${shared_ext}.$major'
20288 shlibpath_var
=LD_LIBRARY_PATH
20292 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20293 version_type
=freebsd-elf
20296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20297 soname_spec
='${libname}${release}${shared_ext}$major'
20298 shlibpath_var
=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath
=yes
20300 hardcode_into_libs
=yes
20301 if test "$with_gnu_ld" = yes; then
20302 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20304 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20307 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20311 sys_lib_dlsearch_path_spec
='/usr/lib'
20315 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320 shlibpath_var
=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath
=no
20322 hardcode_into_libs
=yes
20327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec
='${libname}${release}${shared_ext}$major'
20329 shlibpath_var
=LD_LIBRARY_PATH
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20337 $as_echo "$dynamic_linker" >&6; }
20338 test "$dynamic_linker" = no
&& can_build_shared
=no
20340 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20341 if test "$GCC" = yes; then
20342 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20345 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20346 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20348 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20349 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20391 hardcode_action_CXX
=
20392 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20393 test -n "$runpath_var_CXX" ||
20394 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20396 # We can hardcode non-existent directories.
20397 if test "$hardcode_direct_CXX" != no
&&
20398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20399 # have to relink, otherwise we might link with an installed library
20400 # when we should be linking with a yet-to-be-installed one
20401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20402 test "$hardcode_minus_L_CXX" != no
; then
20403 # Linking always hardcodes the temporary library directory.
20404 hardcode_action_CXX
=relink
20406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20407 hardcode_action_CXX
=immediate
20410 # We cannot hardcode anything, or else we can only hardcode existing
20412 hardcode_action_CXX
=unsupported
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20415 $as_echo "$hardcode_action_CXX" >&6; }
20417 if test "$hardcode_action_CXX" = relink ||
20418 test "$inherit_rpath_CXX" = yes; then
20419 # Fast installation is not supported
20420 enable_fast_install
=no
20421 elif test "$shlibpath_overrides_runpath" = yes ||
20422 test "$enable_shared" = no
; then
20423 # Fast installation is not necessary
20424 enable_fast_install
=needless
20433 fi # test -n "$compiler"
20439 with_gnu_ld
=$lt_save_with_gnu_ld
20440 lt_cv_path_LDCXX
=$lt_cv_path_LD
20441 lt_cv_path_LD
=$lt_save_path_LD
20442 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20443 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20444 fi # test "$_lt_caught_CXX_error" != yes
20447 ac_cpp
='$CPP $CPPFLAGS'
20448 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20467 # Only expand once:
20473 # Identify the assembler which will work hand-in-glove with the newly
20474 # built GCC, so that we can examine its features. This is the assembler
20475 # which will be driven by the driver program.
20477 # If build != host, and we aren't building gas in-tree, we identify a
20478 # build->target assembler and hope that it will have the same features
20479 # as the host->target assembler we'll be using.
20480 gcc_cv_gas_major_version
=
20481 gcc_cv_gas_minor_version
=
20482 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20484 if test "${gcc_cv_as+set}" = set; then :
20488 if test -x "$DEFAULT_ASSEMBLER"; then
20489 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20490 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20491 && test -f ..
/gas
/Makefile \
20492 && test x
$build = x
$host; then
20493 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20494 elif test -x as
$build_exeext; then
20495 # Build using assembler in the current directory.
20496 gcc_cv_as
=.
/as
$build_exeext
20497 elif test -x $AS_FOR_TARGET; then
20498 gcc_cv_as
="$AS_FOR_TARGET"
20500 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20501 set dummy
$AS_FOR_TARGET; ac_word
=$2
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20503 $as_echo_n "checking for $ac_word... " >&6; }
20504 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20505 $as_echo_n "(cached) " >&6
20509 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20513 for as_dir
in $PATH
20516 test -z "$as_dir" && as_dir
=.
20517 for ac_exec_ext
in '' $ac_executable_extensions; do
20518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20519 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20530 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20531 if test -n "$gcc_cv_as"; then
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20533 $as_echo "$gcc_cv_as" >&6; }
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20536 $as_echo "no" >&6; }
20543 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20545 case "$ORIGINAL_AS_FOR_TARGET" in
20546 .
/as | .
/as
$build_exeext) ;;
20547 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20552 $as_echo_n "checking what assembler to use... " >&6; }
20553 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20554 # Single tree build which includes gas. We want to prefer it
20555 # over whatever linker top-level may have detected, since
20556 # we'll use what we're building after installation anyway.
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20558 $as_echo "newly built gas" >&6; }
20560 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20561 for f
in $gcc_cv_as_bfd_srcdir/configure \
20562 $gcc_cv_as_gas_srcdir/configure \
20563 $gcc_cv_as_gas_srcdir/configure.
in \
20564 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20565 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20566 if test x
$gcc_cv_gas_version != x
; then
20570 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20571 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20572 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20573 case $gcc_cv_gas_patch_version in
20574 "") gcc_cv_gas_patch_version
="0" ;;
20576 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20577 + $gcc_cv_gas_minor_version \) \* 1000 \
20578 + $gcc_cv_gas_patch_version`
20580 in_tree_gas_is_elf
=no
20581 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20582 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20583 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20585 in_tree_gas_is_elf
=yes
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20589 $as_echo "$gcc_cv_as" >&6; }
20593 # Identify the linker which will work hand-in-glove with the newly
20594 # built GCC, so that we can examine its features. This is the linker
20595 # which will be driven by the driver program.
20597 # If build != host, and we aren't building gas in-tree, we identify a
20598 # build->target linker and hope that it will have the same features
20599 # as the host->target linker we'll be using.
20600 gcc_cv_gld_major_version
=
20601 gcc_cv_gld_minor_version
=
20602 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20603 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20605 if test "${gcc_cv_ld+set}" = set; then :
20609 if test -x "$DEFAULT_LINKER"; then
20610 gcc_cv_ld
="$DEFAULT_LINKER"
20611 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20612 && test -f ..
/ld
/Makefile \
20613 && test x
$build = x
$host; then
20614 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20615 elif test -x collect-ld
$build_exeext; then
20616 # Build using linker in the current directory.
20617 gcc_cv_ld
=.
/collect-ld
$build_exeext
20618 elif test -x $LD_FOR_TARGET; then
20619 gcc_cv_ld
="$LD_FOR_TARGET"
20621 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20622 set dummy
$LD_FOR_TARGET; ac_word
=$2
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20624 $as_echo_n "checking for $ac_word... " >&6; }
20625 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20626 $as_echo_n "(cached) " >&6
20630 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20634 for as_dir
in $PATH
20637 test -z "$as_dir" && as_dir
=.
20638 for ac_exec_ext
in '' $ac_executable_extensions; do
20639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20640 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20651 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20652 if test -n "$gcc_cv_ld"; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20654 $as_echo "$gcc_cv_ld" >&6; }
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20657 $as_echo "no" >&6; }
20664 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20665 PLUGIN_LD
=`basename $gcc_cv_ld`
20667 # Check whether --with-plugin-ld was given.
20668 if test "${with_plugin_ld+set}" = set; then :
20669 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20670 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20671 PLUGIN_LD
="$withval"
20677 cat >>confdefs.h
<<_ACEOF
20678 #define PLUGIN_LD "$PLUGIN_LD"
20682 # Check to see if we are using gold instead of ld
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20684 $as_echo_n "checking whether we are using gold... " >&6; }
20686 if test x
$gcc_cv_ld != x
; then
20687 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
20688 |
grep "GNU gold" > /dev
/null
; then
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20693 $as_echo "$ld_is_gold" >&6; }
20695 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20697 case "$ORIGINAL_LD_FOR_TARGET" in
20698 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20699 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20704 $as_echo_n "checking what linker to use... " >&6; }
20705 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20706 # Single tree build which includes ld. We want to prefer it
20707 # over whatever linker top-level may have detected, since
20708 # we'll use what we're building after installation anyway.
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20710 $as_echo "newly built ld" >&6; }
20712 in_tree_ld_is_elf
=no
20713 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20714 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20715 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20716 in_tree_ld_is_elf
=yes
20718 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
20720 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20721 if test x
$gcc_cv_gld_version != x
; then
20725 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20726 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20729 $as_echo "$gcc_cv_ld" >&6; }
20733 # Figure out what nm we will be using.
20734 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20735 if test "${gcc_cv_nm+set}" = set; then :
20739 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20740 && test -f ..
/binutils
/Makefile \
20741 && test x
$build = x
$host; then
20742 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20743 elif test -x nm
$build_exeext; then
20744 gcc_cv_nm
=.
/nm
$build_exeext
20745 elif test -x $NM_FOR_TARGET; then
20746 gcc_cv_nm
="$NM_FOR_TARGET"
20748 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20749 set dummy
$NM_FOR_TARGET; ac_word
=$2
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20751 $as_echo_n "checking for $ac_word... " >&6; }
20752 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20753 $as_echo_n "(cached) " >&6
20757 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20761 for as_dir
in $PATH
20764 test -z "$as_dir" && as_dir
=.
20765 for ac_exec_ext
in '' $ac_executable_extensions; do
20766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20767 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20778 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20779 if test -n "$gcc_cv_nm"; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20781 $as_echo "$gcc_cv_nm" >&6; }
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784 $as_echo "no" >&6; }
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20792 $as_echo_n "checking what nm to use... " >&6; }
20793 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20794 # Single tree build which includes binutils.
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20796 $as_echo "newly built nm" >&6; }
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20800 $as_echo "$gcc_cv_nm" >&6; }
20804 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20806 case "$ORIGINAL_NM_FOR_TARGET" in
20807 .
/nm | .
/nm
$build_exeext) ;;
20808 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20813 # Figure out what objdump we will be using.
20814 if test "${gcc_cv_objdump+set}" = set; then :
20818 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20819 && test -f ..
/binutils
/Makefile \
20820 && test x
$build = x
$host; then
20821 # Single tree build which includes binutils.
20822 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20823 elif test -x objdump
$build_exeext; then
20824 gcc_cv_objdump
=.
/objdump
$build_exeext
20825 elif test -x $OBJDUMP_FOR_TARGET; then
20826 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20828 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20829 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20831 $as_echo_n "checking for $ac_word... " >&6; }
20832 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20835 case $gcc_cv_objdump in
20837 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20841 for as_dir
in $PATH
20844 test -z "$as_dir" && as_dir
=.
20845 for ac_exec_ext
in '' $ac_executable_extensions; do
20846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20847 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20858 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20859 if test -n "$gcc_cv_objdump"; then
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20861 $as_echo "$gcc_cv_objdump" >&6; }
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864 $as_echo "no" >&6; }
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20872 $as_echo_n "checking what objdump to use... " >&6; }
20873 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20874 # Single tree build which includes binutils.
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20876 $as_echo "newly built objdump" >&6; }
20877 elif test x
$gcc_cv_objdump = x
; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20879 $as_echo "not found" >&6; }
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20882 $as_echo "$gcc_cv_objdump" >&6; }
20885 # Figure out what readelf we will be using.
20886 if test "${gcc_cv_readelf+set}" = set; then :
20890 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20891 && test -f ..
/binutils
/Makefile \
20892 && test x
$build = x
$host; then
20893 # Single tree build which includes binutils.
20894 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20895 elif test -x readelf
$build_exeext; then
20896 gcc_cv_readelf
=.
/readelf
$build_exeext
20898 # Extract the first word of "readelf", so it can be a program name with args.
20899 set dummy readelf
; ac_word
=$2
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20901 $as_echo_n "checking for $ac_word... " >&6; }
20902 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20903 $as_echo_n "(cached) " >&6
20905 case $gcc_cv_readelf in
20907 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20911 for as_dir
in $PATH
20914 test -z "$as_dir" && as_dir
=.
20915 for ac_exec_ext
in '' $ac_executable_extensions; do
20916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20917 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20928 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20929 if test -n "$gcc_cv_readelf"; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20931 $as_echo "$gcc_cv_readelf" >&6; }
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 $as_echo "no" >&6; }
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20942 $as_echo_n "checking what readelf to use... " >&6; }
20943 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20944 # Single tree build which includes binutils.
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20946 $as_echo "newly built readelf" >&6; }
20947 elif test x
$gcc_cv_readelf = x
; then
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20949 $as_echo "not found" >&6; }
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20952 $as_echo "$gcc_cv_readelf" >&6; }
20955 # Figure out what assembler alignment features are present.
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20957 $as_echo_n "checking assembler flags... " >&6; }
20958 if test "${gcc_cv_as_flags+set}" = set; then :
20959 $as_echo_n "(cached) " >&6
20962 i
[34567]86-*-linux*)
20963 gcc_cv_as_flags
="--32"
20966 gcc_cv_as_flags
=" "
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20971 $as_echo "$gcc_cv_as_flags" >&6; }
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20974 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20975 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20976 $as_echo_n "(cached) " >&6
20978 gcc_cv_as_balign_and_p2align
=no
20979 if test $in_tree_gas = yes; then
20980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20981 then gcc_cv_as_balign_and_p2align
=yes
20983 elif test x
$gcc_cv_as != x
; then
20985 .p2align 2' > conftest.s
20986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20988 (eval $ac_try) 2>&5
20990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20991 test $ac_status = 0; }; }
20993 gcc_cv_as_balign_and_p2align
=yes
20995 echo "configure: failed program was" >&5
20998 rm -f conftest.o conftest.s
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21002 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21003 if test $gcc_cv_as_balign_and_p2align = yes; then
21005 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21010 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21011 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21014 gcc_cv_as_max_skip_p2align
=no
21015 if test $in_tree_gas = yes; then
21016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21017 then gcc_cv_as_max_skip_p2align
=yes
21019 elif test x
$gcc_cv_as != x
; then
21020 echo '.p2align 4,,7' > conftest.s
21021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21023 (eval $ac_try) 2>&5
21025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21026 test $ac_status = 0; }; }
21028 gcc_cv_as_max_skip_p2align
=yes
21030 echo "configure: failed program was" >&5
21033 rm -f conftest.o conftest.s
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21037 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21038 if test $gcc_cv_as_max_skip_p2align = yes; then
21040 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21045 $as_echo_n "checking assembler for .literal16... " >&6; }
21046 if test "${gcc_cv_as_literal16+set}" = set; then :
21047 $as_echo_n "(cached) " >&6
21049 gcc_cv_as_literal16
=no
21050 if test $in_tree_gas = yes; then
21051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21052 then gcc_cv_as_literal16
=yes
21054 elif test x
$gcc_cv_as != x
; then
21055 echo '.literal16' > conftest.s
21056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21058 (eval $ac_try) 2>&5
21060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21061 test $ac_status = 0; }; }
21063 gcc_cv_as_literal16
=yes
21065 echo "configure: failed program was" >&5
21068 rm -f conftest.o conftest.s
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21072 $as_echo "$gcc_cv_as_literal16" >&6; }
21073 if test $gcc_cv_as_literal16 = yes; then
21075 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21080 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21081 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21084 gcc_cv_as_subsection_m1
=no
21085 if test $in_tree_gas = yes; then
21086 if test $in_tree_gas_is_elf = yes \
21087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21088 then gcc_cv_as_subsection_m1
=yes
21090 elif test x
$gcc_cv_as != x
; then
21091 echo 'conftest_label1: .word 0
21093 conftest_label2: .word 0
21094 .previous' > conftest.s
21095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21097 (eval $ac_try) 2>&5
21099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21100 test $ac_status = 0; }; }
21102 if test x
$gcc_cv_nm != x
; then
21103 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21104 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21105 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21107 else gcc_cv_as_subsection_m1
=yes
21109 rm -f conftest.nm1 conftest.nm2
21112 echo "configure: failed program was" >&5
21115 rm -f conftest.o conftest.s
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21119 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21120 if test $gcc_cv_as_subsection_m1 = yes; then
21122 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21127 $as_echo_n "checking assembler for .weak... " >&6; }
21128 if test "${gcc_cv_as_weak+set}" = set; then :
21129 $as_echo_n "(cached) " >&6
21132 if test $in_tree_gas = yes; then
21133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21134 then gcc_cv_as_weak
=yes
21136 elif test x
$gcc_cv_as != x
; then
21137 echo ' .weak foobar' > conftest.s
21138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21140 (eval $ac_try) 2>&5
21142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21143 test $ac_status = 0; }; }
21147 echo "configure: failed program was" >&5
21150 rm -f conftest.o conftest.s
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21154 $as_echo "$gcc_cv_as_weak" >&6; }
21155 if test $gcc_cv_as_weak = yes; then
21157 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21162 $as_echo_n "checking assembler for .weakref... " >&6; }
21163 if test "${gcc_cv_as_weakref+set}" = set; then :
21164 $as_echo_n "(cached) " >&6
21166 gcc_cv_as_weakref
=no
21167 if test $in_tree_gas = yes; then
21168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21169 then gcc_cv_as_weakref
=yes
21171 elif test x
$gcc_cv_as != x
; then
21172 echo ' .weakref foobar, barfnot' > conftest.s
21173 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21175 (eval $ac_try) 2>&5
21177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21178 test $ac_status = 0; }; }
21180 gcc_cv_as_weakref
=yes
21182 echo "configure: failed program was" >&5
21185 rm -f conftest.o conftest.s
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21189 $as_echo "$gcc_cv_as_weakref" >&6; }
21190 if test $gcc_cv_as_weakref = yes; then
21192 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21197 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21198 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21201 gcc_cv_as_nsubspa_comdat
=no
21202 if test $in_tree_gas = yes; then
21203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21204 then gcc_cv_as_nsubspa_comdat
=yes
21206 elif test x
$gcc_cv_as != x
; then
21207 echo ' .SPACE $TEXT$
21208 .NSUBSPA $CODE$,COMDAT' > conftest.s
21209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21211 (eval $ac_try) 2>&5
21213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214 test $ac_status = 0; }; }
21216 gcc_cv_as_nsubspa_comdat
=yes
21218 echo "configure: failed program was" >&5
21221 rm -f conftest.o conftest.s
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21225 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21226 if test $gcc_cv_as_nsubspa_comdat = yes; then
21228 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21232 # .hidden needs to be supported in both the assembler and the linker,
21233 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21234 # This is irritatingly difficult to feature test for; we have to check the
21235 # date string after the version number. If we've got an in-tree
21236 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21238 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21240 $as_echo_n "checking assembler for .hidden... " >&6; }
21241 if test "${gcc_cv_as_hidden+set}" = set; then :
21242 $as_echo_n "(cached) " >&6
21244 gcc_cv_as_hidden
=no
21245 if test $in_tree_gas = yes; then
21246 if test $in_tree_gas_is_elf = yes \
21247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21248 then gcc_cv_as_hidden
=yes
21250 elif test x
$gcc_cv_as != x
; then
21251 echo ' .hidden foobar
21252 foobar:' > conftest.s
21253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255 (eval $ac_try) 2>&5
21257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258 test $ac_status = 0; }; }
21261 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21262 # STV_HIDDEN, so disable .hidden support if so.
21263 case "${target}" in
21265 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21266 cat > conftest.s
<<EOF
21271 .set default,hidden
21273 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21274 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21275 grep '\.hidden default' > /dev
/null
; then
21276 gcc_cv_as_hidden
=no
21278 gcc_cv_as_hidden
=yes
21281 # Assume bug is present if objdump is missing.
21282 gcc_cv_as_hidden
=no
21286 gcc_cv_as_hidden
=yes
21290 echo "configure: failed program was" >&5
21293 rm -f conftest.o conftest.s
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21297 $as_echo "$gcc_cv_as_hidden" >&6; }
21300 if test $in_tree_ld != yes ; then
21301 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21302 if test x
"$ld_is_gold" = xyes
; then
21303 gcc_cv_ld_hidden
=yes
21304 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21305 ld_vers
=`echo $ld_ver | sed -n \
21306 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21307 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'`
21308 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21309 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21310 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21312 case "${target}" in
21315 # Solaris 2 ld -V output looks like this for a regular version:
21317 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21319 # but test versions add stuff at the end:
21321 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21323 ld_ver
=`$gcc_cv_ld -V 2>&1`
21324 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21325 ld_vers
=`echo $ld_ver | sed -n \
21326 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21327 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21328 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21336 $as_echo_n "checking linker for .hidden support... " >&6; }
21337 if test "${gcc_cv_ld_hidden+set}" = set; then :
21338 $as_echo_n "(cached) " >&6
21340 if test $in_tree_ld = yes ; then
21341 gcc_cv_ld_hidden
=no
21342 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 \
21343 && test $in_tree_ld_is_elf = yes; then
21344 gcc_cv_ld_hidden
=yes
21347 gcc_cv_ld_hidden
=yes
21348 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21349 if test 0"$ld_date" -lt 20020404; then
21350 if test -n "$ld_date"; then
21351 # If there was date string, but was earlier than 2002-04-04, fail
21352 gcc_cv_ld_hidden
=no
21353 elif test -z "$ld_vers"; then
21354 # If there was no date string nor ld version number, something is wrong
21355 gcc_cv_ld_hidden
=no
21357 test -z "$ld_vers_patch" && ld_vers_patch
=0
21358 if test "$ld_vers_major" -lt 2; then
21359 gcc_cv_ld_hidden
=no
21360 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21361 gcc_cv_ld_hidden
="no"
21362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21363 gcc_cv_ld_hidden
=no
21368 case "${target}" in
21369 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21370 gcc_cv_ld_hidden
=yes
21372 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21373 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21374 # .symbolic was only added in Solaris 9 12/02.
21375 gcc_cv_ld_hidden
=yes
21378 gcc_cv_ld_hidden
=no
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21385 $as_echo "$gcc_cv_ld_hidden" >&6; }
21386 libgcc_visibility
=no
21389 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21390 libgcc_visibility
=yes
21392 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21397 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21398 gcc_cv_ld_ro_rw_mix
=unknown
21399 if test $in_tree_ld = yes ; then
21400 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 \
21401 && test $in_tree_ld_is_elf = yes; then
21402 gcc_cv_ld_ro_rw_mix
=read-write
21404 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21405 echo '.section myfoosect, "a"' > conftest1.s
21406 echo '.section myfoosect, "aw"' > conftest2.s
21407 echo '.byte 1' >> conftest2.s
21408 echo '.section myfoosect, "a"' > conftest3.s
21409 echo '.byte 0' >> conftest3.s
21410 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21411 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21412 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21413 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21414 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21415 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21416 | sed -e '/myfoosect/!d' -e N`
21417 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21418 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21419 gcc_cv_ld_ro_rw_mix
=read-only
21421 gcc_cv_ld_ro_rw_mix
=read-write
21425 rm -f conftest.
* conftest
[123].
*
21427 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21429 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21433 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21435 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21437 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21438 if test "${gcc_cv_as_leb128+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21441 gcc_cv_as_leb128
=no
21442 if test $in_tree_gas = yes; then
21443 if test $in_tree_gas_is_elf = yes \
21444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21445 then gcc_cv_as_leb128
=yes
21447 elif test x
$gcc_cv_as != x
; then
21454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21456 (eval $ac_try) 2>&5
21458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459 test $ac_status = 0; }; }
21461 # GAS versions before 2.11 do not support uleb128,
21462 # despite appearing to.
21463 # ??? There exists an elf-specific test that will crash
21464 # the assembler. Perhaps it's better to figure out whether
21465 # arbitrary sections are supported and try the test.
21466 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21467 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21468 as_vers
=`echo $as_ver | sed -n \
21469 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21470 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21471 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21472 if test $as_major -eq 2 && test $as_minor -lt 11
21474 else gcc_cv_as_leb128
=yes
21478 echo "configure: failed program was" >&5
21481 rm -f conftest.o conftest.s
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21485 $as_echo "$gcc_cv_as_leb128" >&6; }
21486 if test $gcc_cv_as_leb128 = yes; then
21488 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21492 # Check if we have assembler support for unwind directives.
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21494 $as_echo_n "checking assembler for cfi directives... " >&6; }
21495 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21496 $as_echo_n "(cached) " >&6
21498 gcc_cv_as_cfi_directive
=no
21499 if test x
$gcc_cv_as != x
; then
21505 .cfi_escape 1, 2, 3, 4, 5
21506 .cfi_endproc' > conftest.s
21507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21509 (eval $ac_try) 2>&5
21511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21512 test $ac_status = 0; }; }
21516 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21517 # read-only and read-write sections, we need to make sure that the
21518 # assembler used emits read-write .eh_frame sections.
21519 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21520 if test "x$gcc_cv_objdump" != x
; then
21521 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21522 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21523 gcc_cv_as_cfi_directive
=no
21526 i?
86-*-solaris2.1
[0-9]*)
21527 # On Solaris/x86, make sure that GCC and gas agree on using
21528 # read-only .eh_frame sections for 64-bit.
21529 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21530 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21531 sed -e /.eh_frame
/!d
-e N | \
21532 grep READONLY
> /dev
/null
; then
21533 gcc_cv_as_cfi_directive
=yes
21535 gcc_cv_as_cfi_directive
=no
21539 gcc_cv_as_cfi_directive
=yes
21544 # no objdump, err on the side of caution
21545 gcc_cv_as_cfi_directive
=no
21548 gcc_cv_as_cfi_directive
=yes
21552 gcc_cv_as_cfi_directive
=yes
21556 echo "configure: failed program was" >&5
21559 rm -f conftest.o conftest.s
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21563 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21565 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21567 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21568 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21569 $as_echo_n "(cached) " >&6
21571 gcc_cv_as_cfi_advance_working
=no
21572 if test x
$gcc_cv_as != x
; then
21575 .cfi_adjust_cfa_offset 64
21577 .cfi_adjust_cfa_offset 128
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; }; }
21587 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21588 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21589 gcc_cv_as_cfi_advance_working
=yes
21593 echo "configure: failed program was" >&5
21596 rm -f conftest.o conftest.s
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21600 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21603 # no readelf, err on the side of caution
21604 gcc_cv_as_cfi_advance_working
=no
21607 cat >>confdefs.h
<<_ACEOF
21608 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21609 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21614 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21615 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21616 $as_echo_n "(cached) " >&6
21618 gcc_cv_as_cfi_personality_directive
=no
21619 if test x
$gcc_cv_as != x
; then
21622 .cfi_personality 0, symbol
21623 .cfi_endproc' > conftest.s
21624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21626 (eval $ac_try) 2>&5
21628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21629 test $ac_status = 0; }; }
21631 gcc_cv_as_cfi_personality_directive
=yes
21633 echo "configure: failed program was" >&5
21636 rm -f conftest.o conftest.s
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21640 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21643 cat >>confdefs.h
<<_ACEOF
21644 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21645 then echo 1; else echo 0; fi`
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21650 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21651 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21654 gcc_cv_as_cfi_sections_directive
=no
21655 if test x
$gcc_cv_as != x
; then
21657 .cfi_sections .debug_frame, .eh_frame
21659 .cfi_endproc' > conftest.s
21660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21662 (eval $ac_try) 2>&5
21664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21665 test $ac_status = 0; }; }
21667 gcc_cv_as_cfi_sections_directive
=yes
21669 echo "configure: failed program was" >&5
21672 rm -f conftest.o conftest.s
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21676 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21679 cat >>confdefs.h
<<_ACEOF
21680 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21681 then echo 1; else echo 0; fi`
21685 # GAS versions up to and including 2.11.0 may mis-optimize
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21688 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21689 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21692 gcc_cv_as_eh_frame
=no
21693 if test $in_tree_gas = yes; then
21694 if test $in_tree_gas_is_elf = yes \
21695 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21696 then gcc_cv_as_eh_frame
=yes
21698 elif test x
$gcc_cv_as != x
; then
21705 .section .eh_frame,"aw",@progbits
21707 .4byte .LECIE1-.LSCIE1
21721 .4byte .LEFDE1-.LASFDE1
21723 .4byte .LASFDE1-__FRAME_BEGIN__
21730 .LEFDE1:' > conftest.s
21731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21733 (eval $ac_try) 2>&5
21735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21736 test $ac_status = 0; }; }
21738 cat > conftest.lit
<<EOF
21739 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21740 0010 01000000 12000000 18000000 00000000 ................
21741 0020 08000000 04080000 0044 .........D
21743 cat > conftest.big
<<EOF
21744 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21745 0010 00000001 00000012 00000018 00000000 ................
21746 0020 00000008 04000000 0844 .........D
21748 # If the assembler didn't choke, and we can objdump,
21749 # and we got the correct data, then succeed.
21750 # The text in the here-document typically retains its unix-style line
21751 # endings, while the output of objdump will use host line endings.
21752 # Therefore, use diff -b for the comparisons.
21753 if test x
$gcc_cv_objdump != x \
21754 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21755 |
tail -3 > conftest.got \
21756 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21757 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21759 gcc_cv_as_eh_frame
=yes
21760 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21762 (eval $ac_try) 2>&5
21764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21765 test $ac_status = 0; }; }; then
21766 gcc_cv_as_eh_frame
=buggy
21768 # Uh oh, what do we do now?
21769 gcc_cv_as_eh_frame
=no
21772 echo "configure: failed program was" >&5
21775 rm -f conftest.o conftest.s
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21779 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21782 if test $gcc_cv_as_eh_frame = buggy
; then
21784 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21789 $as_echo_n "checking assembler for section merging support... " >&6; }
21790 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21793 gcc_cv_as_shf_merge
=no
21794 if test $in_tree_gas = yes; then
21795 if test $in_tree_gas_is_elf = yes \
21796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21797 then gcc_cv_as_shf_merge
=yes
21799 elif test x
$gcc_cv_as != x
; then
21800 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21801 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21803 (eval $ac_try) 2>&5
21805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21806 test $ac_status = 0; }; }
21808 gcc_cv_as_shf_merge
=yes
21810 echo "configure: failed program was" >&5
21813 rm -f conftest.o conftest.s
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21817 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21819 if test $gcc_cv_as_shf_merge = no
; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21821 $as_echo_n "checking assembler for section merging support... " >&6; }
21822 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21825 gcc_cv_as_shf_merge
=no
21826 if test $in_tree_gas = yes; then
21827 if test $in_tree_gas_is_elf = yes \
21828 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21829 then gcc_cv_as_shf_merge
=yes
21831 elif test x
$gcc_cv_as != x
; then
21832 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21835 (eval $ac_try) 2>&5
21837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21838 test $ac_status = 0; }; }
21840 gcc_cv_as_shf_merge
=yes
21842 echo "configure: failed program was" >&5
21845 rm -f conftest.o conftest.s
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21849 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21853 cat >>confdefs.h
<<_ACEOF
21854 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21859 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21860 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21863 gcc_cv_as_comdat_group
=no
21864 if test $in_tree_gas = yes; then
21865 if test $in_tree_gas_is_elf = yes \
21866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21867 then gcc_cv_as_comdat_group
=yes
21869 elif test x
$gcc_cv_as != x
; then
21870 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21871 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21873 (eval $ac_try) 2>&5
21875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21876 test $ac_status = 0; }; }
21878 gcc_cv_as_comdat_group
=yes
21880 echo "configure: failed program was" >&5
21883 rm -f conftest.o conftest.s
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21887 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21889 if test $gcc_cv_as_comdat_group = yes; then
21890 gcc_cv_as_comdat_group_percent
=no
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21893 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21894 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21897 gcc_cv_as_comdat_group_percent
=no
21898 if test $in_tree_gas = yes; then
21899 if test $in_tree_gas_is_elf = yes \
21900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21901 then gcc_cv_as_comdat_group_percent
=yes
21903 elif test x
$gcc_cv_as != x
; then
21904 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21912 gcc_cv_as_comdat_group_percent
=yes
21914 echo "configure: failed program was" >&5
21917 rm -f conftest.o conftest.s
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21921 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21924 if test x
"$ld_is_gold" = xyes
; then
21926 elif test $in_tree_ld = yes ; then
21928 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 \
21929 && test $in_tree_ld_is_elf = yes; then
21932 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21934 if test 0"$ld_date" -lt 20050308; then
21935 if test -n "$ld_date"; then
21936 # If there was date string, but was earlier than 2005-03-08, fail
21938 elif test "$ld_vers_major" -lt 2; then
21940 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21945 case "${target}" in
21946 *-*-solaris2.1
[1-9]*)
21947 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21948 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21951 # FIXME: Maybe need to refine later when COMDAT group support with
21952 # Sun as is implemented.
21953 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
21960 # Assume linkers other than GNU ld don't support COMDAT group.
21965 # Allow overriding the automatic COMDAT group tests above.
21966 # Check whether --enable-comdat was given.
21967 if test "${enable_comdat+set}" = set; then :
21968 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
21971 if test $comdat_group = no
; then
21972 gcc_cv_as_comdat_group
=no
21973 gcc_cv_as_comdat_group_percent
=no
21976 cat >>confdefs.h
<<_ACEOF
21977 #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`
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21982 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21983 if test "${gcc_cv_as_discriminator+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21986 gcc_cv_as_discriminator
=no
21987 if test $in_tree_gas = yes; then
21988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21989 then gcc_cv_as_discriminator
=yes
21991 elif test x
$gcc_cv_as != x
; then
21994 .loc 1 1 0 discriminator 1' > conftest.s
21995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21997 (eval $ac_try) 2>&5
21999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22000 test $ac_status = 0; }; }
22002 gcc_cv_as_discriminator
=yes
22004 echo "configure: failed program was" >&5
22007 rm -f conftest.o conftest.s
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22011 $as_echo "$gcc_cv_as_discriminator" >&6; }
22012 if test $gcc_cv_as_discriminator = yes; then
22014 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22018 # Thread-local storage - the check is heavily parameterized.
22026 .section ".tdata","awT",@progbits
22029 ldq $27,__tls_get_addr($29) !literal!1
22030 lda $16,foo($29) !tlsgd!1
22031 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22032 ldq $27,__tls_get_addr($29) !literal!2
22033 lda $16,foo($29) !tlsldm!2
22034 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22035 ldq $1,foo($29) !gotdtprel
22036 ldah $2,foo($29) !dtprelhi
22037 lda $3,foo($2) !dtprello
22038 lda $4,foo($29) !dtprel
22039 ldq $1,foo($29) !gottprel
22040 ldah $2,foo($29) !tprelhi
22041 lda $3,foo($2) !tprello
22042 lda $4,foo($29) !tprel'
22045 tls_as_opt
=--fatal-warnings
22047 cris-
*-*|crisv32-
*-*)
22049 .section ".tdata","awT",@progbits
22056 tls_as_opt
=--fatal-warnings
22060 .section ".tdata","awT",@progbits
22063 call #gettlsoff(x)'
22072 .section ".tdata","awT",@progbits
22076 addil LT%foo-$tls_gdidx$,gp
22077 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22080 addil LT%foo-$tls_ldidx$,gp
22082 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22083 addil LR%foo-$tls_dtpoff$,%ret0
22084 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22086 addil LT%foo-$tls_ieoff$,gp
22087 ldw RT%foo-$tls_ieoff$(%r1),%t2
22090 addil LR%foo-$tls_leoff$,%t1
22091 ldo RR%foo-$tls_leoff$(%r1),%t2'
22094 tls_as_opt
=--fatal-warnings
22098 .section ".tdata","awT",%progbits
22101 .word foo(gottpoff)
22111 i
[34567]86-*-solaris2.
[89]*)
22112 # TLS was introduced in the Solaris 9 4/04 release but
22113 # we do not enable it by default on Solaris 9 either.
22114 if test "x$enable_tls" = xyes
; then
22120 i
[34567]86-*-solaris2.
*)
22127 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22129 .section .tdata,"awt",@progbits'
22133 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22137 .section ".tdata","awT",@progbits'
22140 tls_as_opt
="--fatal-warnings"
22142 conftest_s
="$conftest_s
22146 leal foo@tlsgd(,%ebx,1), %eax
22147 leal foo@tlsldm(%ebx), %eax
22148 leal foo@dtpoff(%eax), %edx
22149 movl foo@gottpoff(%ebx), %eax
22150 subl foo@gottpoff(%ebx), %eax
22151 addl foo@gotntpoff(%ebx), %eax
22152 movl foo@indntpoff, %eax
22153 movl \$foo@tpoff, %eax
22154 subl \$foo@tpoff, %eax
22155 leal foo@ntpoff(%ecx), %eax"
22159 .section ".tdata","awT",@progbits
22163 leaq foo@TLSGD(%rip), %rdi
22164 leaq foo@TLSLD(%rip), %rdi
22165 leaq foo@DTPOFF(%rax), %rdx
22166 movq foo@GOTTPOFF(%rip), %rax
22167 movq $foo@TPOFF, %rax'
22170 tls_as_opt
=--fatal-warnings
22174 .section ".tdata","awT",@progbits
22177 addl r16 = @ltoff(@dtpmod(foo#)), gp
22178 addl r17 = @ltoff(@dtprel(foo#)), gp
22179 addl r18 = @ltoff(@tprel(foo#)), gp
22180 addl r19 = @dtprel(foo#), gp
22181 adds r21 = @dtprel(foo#), r13
22182 movl r23 = @dtprel(foo#)
22183 addl r20 = @tprel(foo#), gp
22184 adds r22 = @tprel(foo#), r13
22185 movl r24 = @tprel(foo#)'
22188 tls_as_opt
=--fatal-warnings
22192 .section .tdata,"awT",@progbits
22196 addiu $4, $28, %tlsgd(x)
22197 addiu $4, $28, %tlsldm(x)
22198 lui $4, %dtprel_hi(x)
22199 addiu $4, $4, %dtprel_lo(x)
22200 lw $4, %gottprel(x)($28)
22201 lui $4, %tprel_hi(x)
22202 addiu $4, $4, %tprel_lo(x)'
22205 tls_as_opt
='-32 --fatal-warnings'
22209 .section .tdata,"awT",@progbits
22214 move.l x@TLSGD(%a5),%a0
22215 move.l x@TLSLDM(%a5),%a0
22216 move.l x@TLSLDO(%a5),%a0
22217 move.l x@TLSIE(%a5),%a0
22218 move.l x@TLSLE(%a5),%a0'
22221 tls_as_opt
='--fatal-warnings'
22225 .section ".tdata","awT",@progbits
22233 addi 3,31,ld0@got@tlsgd
22235 addi 3,31,x1@got@tlsld
22238 addis 9,3,x2@dtprel@ha
22239 addi 9,9,x2@dtprel@l
22240 lwz 9,x3@got@tprel(31)
22243 addis 9,2,x2@tprel@ha
22244 addi 9,9,x2@tprel@l'
22247 tls_as_opt
="-a32 --fatal-warnings"
22251 .section ".tdata","awT",@progbits
22259 addi 3,2,ld0@got@tlsgd
22265 addi 3,2,x1@got@tlsld
22271 addis 9,3,x2@dtprel@ha
22272 addi 9,9,x2@dtprel@l
22275 ld 9,x3@got@dtprel(2)
22281 tls_as_opt
="-a64 --fatal-warnings"
22285 .section ".tdata","awT",@progbits
22292 .long foo@GOTNTPOFF
22293 .long foo@INDNTPOFF
22294 l %r1,foo@GOTNTPOFF(%r12)
22295 l %r1,0(%r1):tls_load:foo
22296 bas %r14,0(%r1,%r13):tls_gdcall:foo
22297 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22300 tls_as_opt
="-m31 --fatal-warnings"
22304 .section ".tdata","awT",@progbits
22311 .quad foo@GOTNTPOFF
22312 lg %r1,foo@GOTNTPOFF(%r12)
22313 larl %r1,foo@INDNTPOFF
22314 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22315 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22318 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22320 sh-
*-* | sh
[34]-*-*)
22322 .section ".tdata","awT",@progbits
22332 tls_as_opt
=--fatal-warnings
22336 sparc
*-sun-solaris2.
[89]*)
22337 # TLS was introduced in the Solaris 9 4/04 release but
22338 # we do not enable it by default on Solaris 9 either.
22339 if test "x$enable_tls" = xyes
; then
22345 sparc
*-sun-solaris2.
*)
22352 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22354 .section ".tdata",#alloc,#write,#tls
22357 sethi %tgd_hi22(foo), %o0
22358 add %o0, %tgd_lo10(foo), %o1
22359 add %l7, %o1, %o0, %tgd_add(foo)
22360 call __tls_get_addr, %tgd_call(foo)
22361 sethi %tldm_hi22(foo), %l1
22362 add %l1, %tldm_lo10(foo), %l2
22363 add %l7, %l2, %o0, %tldm_add(foo)
22364 call __tls_get_addr, %tldm_call(foo)
22365 sethi %tldo_hix22(foo), %l3
22366 xor %l3, %tldo_lox10(foo), %l4
22367 add %o0, %l4, %l5, %tldo_add(foo)
22368 sethi %tie_hi22(foo), %o3
22369 add %o3, %tie_lo10(foo), %o3
22370 ld [%l7 + %o3], %o2, %tie_ld(foo)
22371 add %g7, %o2, %o4, %tie_add(foo)
22372 sethi %tle_hix22(foo), %l1
22373 xor %l1, %tle_lox10(foo), %o5
22374 ld [%g7 + %o5], %o1'
22379 .section ".tdata","awT",@progbits
22382 sethi %tgd_hi22(foo), %o0
22383 add %o0, %tgd_lo10(foo), %o1
22384 add %l7, %o1, %o0, %tgd_add(foo)
22385 call __tls_get_addr, %tgd_call(foo)
22386 sethi %tldm_hi22(foo), %l1
22387 add %l1, %tldm_lo10(foo), %l2
22388 add %l7, %l2, %o0, %tldm_add(foo)
22389 call __tls_get_addr, %tldm_call(foo)
22390 sethi %tldo_hix22(foo), %l3
22391 xor %l3, %tldo_lox10(foo), %l4
22392 add %o0, %l4, %l5, %tldo_add(foo)
22393 sethi %tie_hi22(foo), %o3
22394 add %o3, %tie_lo10(foo), %o3
22395 ld [%l7 + %o3], %o2, %tie_ld(foo)
22396 add %g7, %o2, %o4, %tie_add(foo)
22397 sethi %tle_hix22(foo), %l1
22398 xor %l1, %tle_lox10(foo), %o5
22399 ld [%g7 + %o5], %o1'
22402 tls_as_opt
="-32 --fatal-warnings"
22407 .section ".tdata","awT",@progbits
22410 movi a8, foo@TLSFUNC
22411 movi a10, foo@TLSARG
22412 callx8.tls a8, foo@TLSCALL'
22418 if test "x$enable_tls" = xno
; then
22419 : # TLS explicitly disabled.
22420 elif test "x$enable_tls" = xyes
; then
22421 set_have_as_tls
=yes # TLS explicitly enabled.
22422 elif test -z "$tls_first_major"; then
22423 : # If we don't have a check, assume no support.
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22426 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22427 if test "${gcc_cv_as_tls+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22431 if test $in_tree_gas = yes; then
22432 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22433 then gcc_cv_as_tls
=yes
22435 elif test x
$gcc_cv_as != x
; then
22436 echo "$conftest_s" > conftest.s
22437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22439 (eval $ac_try) 2>&5
22441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442 test $ac_status = 0; }; }
22446 echo "configure: failed program was" >&5
22449 rm -f conftest.o conftest.s
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22453 $as_echo "$gcc_cv_as_tls" >&6; }
22454 if test $gcc_cv_as_tls = yes; then
22455 set_have_as_tls
=yes
22458 if test $set_have_as_tls = yes ; then
22460 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22464 # Target-specific assembler checks.
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22467 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22468 gcc_cv_ld_static_dynamic
=no
22469 if test $in_tree_ld = yes ; then
22470 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
22471 gcc_cv_ld_static_dynamic
=yes
22473 elif test x
$gcc_cv_ld != x
; then
22474 # Check if linker supports -Bstatic/-Bdynamic option
22475 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22476 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22477 gcc_cv_ld_static_dynamic
=yes
22480 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22482 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22486 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22488 if test x
"$demangler_in_ld" = xyes
; then
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22490 $as_echo_n "checking linker --demangle support... " >&6; }
22491 gcc_cv_ld_demangle
=no
22492 if test $in_tree_ld = yes; then
22493 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 \
22494 gcc_cv_ld_demangle
=yes
22496 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22497 # Check if the GNU linker supports --demangle option
22498 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22499 gcc_cv_ld_demangle
=yes
22502 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22504 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22508 $as_echo "$gcc_cv_ld_demangle" >&6; }
22512 # All TARGET_ABI_OSF targets.
22513 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22515 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22516 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22519 gcc_cv_as_alpha_explicit_relocs
=no
22520 if test $in_tree_gas = yes; then
22521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22522 then gcc_cv_as_alpha_explicit_relocs
=yes
22524 elif test x
$gcc_cv_as != x
; then
22525 echo ' .set nomacro
22527 extbl $3, $2, $3 !lituse_bytoff!1
22528 ldq $2, a($29) !literal!1
22529 ldq $4, b($29) !literal!2
22530 ldq_u $3, 0($2) !lituse_base!1
22531 ldq $27, f($29) !literal!5
22532 jsr $26, ($27), f !lituse_jsr!5
22533 ldah $29, 0($26) !gpdisp!3
22534 lda $0, c($29) !gprel
22535 ldah $1, d($29) !gprelhigh
22536 lda $1, d($1) !gprellow
22537 lda $29, 0($29) !gpdisp!3' > conftest.s
22538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; }
22545 gcc_cv_as_alpha_explicit_relocs
=yes
22547 echo "configure: failed program was" >&5
22550 rm -f conftest.o conftest.s
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22554 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22555 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22557 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22561 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22562 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22563 $as_echo_n "(cached) " >&6
22565 gcc_cv_as_alpha_jsrdirect_relocs
=no
22566 if test $in_tree_gas = yes; then
22567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22568 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22570 elif test x
$gcc_cv_as != x
; then
22571 echo ' .set nomacro
22573 ldq $27, a($29) !literal!1
22574 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22575 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22577 (eval $ac_try) 2>&5
22579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22580 test $ac_status = 0; }; }
22582 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22584 echo "configure: failed program was" >&5
22587 rm -f conftest.o conftest.s
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22591 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22592 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22594 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22601 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22602 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22603 $as_echo_n "(cached) " >&6
22605 gcc_cv_as_cris_no_mul_bug
=no
22606 if test $in_tree_gas = yes; then
22607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22608 then gcc_cv_as_cris_no_mul_bug
=yes
22610 elif test x
$gcc_cv_as != x
; then
22611 echo '.text' > conftest.s
22612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614 (eval $ac_try) 2>&5
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }; }
22619 gcc_cv_as_cris_no_mul_bug
=yes
22621 echo "configure: failed program was" >&5
22624 rm -f conftest.o conftest.s
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22628 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22629 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22631 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22638 $as_echo_n "checking assembler for .register... " >&6; }
22639 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22642 gcc_cv_as_sparc_register_op
=no
22643 if test x
$gcc_cv_as != x
; then
22644 echo '.register %g2, #scratch' > conftest.s
22645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22647 (eval $ac_try) 2>&5
22649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22650 test $ac_status = 0; }; }
22652 gcc_cv_as_sparc_register_op
=yes
22654 echo "configure: failed program was" >&5
22657 rm -f conftest.o conftest.s
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22661 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22662 if test $gcc_cv_as_sparc_register_op = yes; then
22664 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22669 $as_echo_n "checking assembler for -relax option... " >&6; }
22670 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22673 gcc_cv_as_sparc_relax
=no
22674 if test x
$gcc_cv_as != x
; then
22675 echo '.text' > conftest.s
22676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22678 (eval $ac_try) 2>&5
22680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681 test $ac_status = 0; }; }
22683 gcc_cv_as_sparc_relax
=yes
22685 echo "configure: failed program was" >&5
22688 rm -f conftest.o conftest.s
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22692 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22693 if test $gcc_cv_as_sparc_relax = yes; then
22695 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22700 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22701 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22704 gcc_cv_as_sparc_gotdata_op
=no
22705 if test x
$gcc_cv_as != x
; then
22710 sethi %gdop_hix22(foo), %g1
22711 xor %g1, %gdop_lox10(foo), %g1
22712 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22713 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22720 if test x
$gcc_cv_ld != x \
22721 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22722 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
22723 if test x
$gcc_cv_objdump != x
; then
22724 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
22725 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
22726 gcc_cv_as_sparc_gotdata_op
=no
22728 gcc_cv_as_sparc_gotdata_op
=yes
22732 gcc_cv_as_sparc_gotdata_op
=yes
22737 echo "configure: failed program was" >&5
22740 rm -f conftest.o conftest.s
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22744 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22745 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22747 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22752 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22753 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22754 $as_echo_n "(cached) " >&6
22756 gcc_cv_as_sparc_ua_pcrel
=no
22757 if test x
$gcc_cv_as != x
; then
22764 .uaword %r_disp32(foo)' > conftest.s
22765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22772 if test x
$gcc_cv_ld != x \
22773 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22774 gcc_cv_as_sparc_ua_pcrel
=yes
22778 echo "configure: failed program was" >&5
22781 rm -f conftest.o conftest.s
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22785 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22786 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22788 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22792 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22793 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22794 $as_echo_n "(cached) " >&6
22796 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22797 if test x
$gcc_cv_as != x
; then
22801 .uaword %r_disp32(foo)
22802 .byte 0x32, 0x33, 0x34
22806 .skip 4' > conftest.s
22807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22809 (eval $ac_try) 2>&5
22811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22812 test $ac_status = 0; }; }
22814 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22815 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22816 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22817 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22818 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22819 |
grep 'DISP32' > /dev
/null
2>&1; then
22822 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22827 echo "configure: failed program was" >&5
22830 rm -f conftest.o conftest.s
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22834 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22835 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22837 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22841 fi # unaligned pcrel relocs
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22844 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22845 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22846 $as_echo_n "(cached) " >&6
22848 gcc_cv_as_sparc_offsetable_lo10
=no
22849 if test x
$gcc_cv_as != x
; then
22851 or %g1, %lo(ab) + 12, %g1
22852 or %g1, %lo(ab + 12), %g1' > conftest.s
22853 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22855 (eval $ac_try) 2>&5
22857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22858 test $ac_status = 0; }; }
22860 if test x
$gcc_cv_objdump != x \
22861 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22862 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22863 gcc_cv_as_sparc_offsetable_lo10
=yes
22866 echo "configure: failed program was" >&5
22869 rm -f conftest.o conftest.s
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22873 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22874 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22876 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22881 i
[34567]86-*-* | x86_64-
*-*)
22884 # Full C++ conformance when using a shared libstdc++-v3 requires some
22885 # support from the Cygwin DLL, which in more recent versions exports
22886 # wrappers to aid in interposing and redirecting operators new, delete,
22887 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22888 # are configuring for a version of Cygwin that exports the wrappers.
22889 if test x
$host = x
$target; then
22890 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22891 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
22892 gcc_ac_cygwin_dll_wrappers
=yes
22894 gcc_ac_cygwin_dll_wrappers
=no
22898 # Can't check presence of libc functions during cross-compile, so
22899 # we just have to assume we're building for an up-to-date target.
22900 gcc_ac_cygwin_dll_wrappers
=yes
22903 cat >>confdefs.h
<<_ACEOF
22904 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22909 cygwin
* | pe | mingw32
*)
22910 # Recent binutils allows the three-operand form of ".comm" on PE. This
22911 # definition is used unconditionally to initialise the default state of
22912 # the target option variable that governs usage of the feature.
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22914 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22915 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22916 $as_echo_n "(cached) " >&6
22918 gcc_cv_as_comm_has_align
=no
22919 if test $in_tree_gas = yes; then
22920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22921 then gcc_cv_as_comm_has_align
=yes
22923 elif test x
$gcc_cv_as != x
; then
22924 echo '.comm foo,1,32' > conftest.s
22925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22927 (eval $ac_try) 2>&5
22929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22930 test $ac_status = 0; }; }
22932 gcc_cv_as_comm_has_align
=yes
22934 echo "configure: failed program was" >&5
22937 rm -f conftest.o conftest.s
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22941 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22944 cat >>confdefs.h
<<_ACEOF
22945 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22948 # Used for DWARF 2 in PE
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22950 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22951 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22954 gcc_cv_as_ix86_pe_secrel32
=no
22955 if test $in_tree_gas = yes; then
22956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22957 then gcc_cv_as_ix86_pe_secrel32
=yes
22959 elif test x
$gcc_cv_as != x
; then
22963 .secrel32 foo' > conftest.s
22964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22966 (eval $ac_try) 2>&5
22968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22969 test $ac_status = 0; }; }
22971 if test x
$gcc_cv_ld != x \
22972 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22973 gcc_cv_as_ix86_pe_secrel32
=yes
22977 echo "configure: failed program was" >&5
22980 rm -f conftest.o conftest.s
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22984 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22985 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22987 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22990 # Test if the assembler supports the extended form of the .section
22991 # directive that specifies section alignment. LTO support uses this,
22992 # but normally only after installation, so we warn but don't fail the
22993 # configure if LTO is enabled but the assembler does not support it.
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
22995 $as_echo_n "checking assembler for .section with alignment... " >&6; }
22996 if test "${gcc_cv_as_section_has_align+set}" = set; then :
22997 $as_echo_n "(cached) " >&6
22999 gcc_cv_as_section_has_align
=no
23000 if test $in_tree_gas = yes; then
23001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23002 then gcc_cv_as_section_has_align
=yes
23004 elif test x
$gcc_cv_as != x
; then
23005 echo '.section lto_test,"dr0"' > conftest.s
23006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23008 (eval $ac_try) 2>&5
23010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23011 test $ac_status = 0; }; }
23013 gcc_cv_as_section_has_align
=yes
23015 echo "configure: failed program was" >&5
23018 rm -f conftest.o conftest.s
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23022 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23024 if test x
$gcc_cv_as_section_has_align != xyes
; then
23025 case ",$enable_languages," in
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
23028 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23036 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23037 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23038 $as_echo_n "(cached) " >&6
23040 gcc_cv_as_ix86_filds
=no
23041 if test x
$gcc_cv_as != x
; then
23042 echo 'filds mem; fists mem' > conftest.s
23043 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23045 (eval $ac_try) 2>&5
23047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23048 test $ac_status = 0; }; }
23050 gcc_cv_as_ix86_filds
=yes
23052 echo "configure: failed program was" >&5
23055 rm -f conftest.o conftest.s
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23059 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23060 if test $gcc_cv_as_ix86_filds = yes; then
23062 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23067 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23068 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23071 gcc_cv_as_ix86_fildq
=no
23072 if test x
$gcc_cv_as != x
; then
23073 echo 'fildq mem; fistpq mem' > conftest.s
23074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23076 (eval $ac_try) 2>&5
23078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23079 test $ac_status = 0; }; }
23081 gcc_cv_as_ix86_fildq
=yes
23083 echo "configure: failed program was" >&5
23086 rm -f conftest.o conftest.s
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23090 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23091 if test $gcc_cv_as_ix86_fildq = yes; then
23093 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23098 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23099 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23102 gcc_cv_as_ix86_cmov_sun_syntax
=no
23103 if test x
$gcc_cv_as != x
; then
23104 echo 'cmovl.l %edx, %eax' > conftest.s
23105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23107 (eval $ac_try) 2>&5
23109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23110 test $ac_status = 0; }; }
23112 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23114 echo "configure: failed program was" >&5
23117 rm -f conftest.o conftest.s
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23121 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23122 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23124 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23129 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23130 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23131 $as_echo_n "(cached) " >&6
23133 gcc_cv_as_ix86_ffreep
=no
23134 if test x
$gcc_cv_as != x
; then
23135 echo 'ffreep %st(1)' > conftest.s
23136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23143 gcc_cv_as_ix86_ffreep
=yes
23145 echo "configure: failed program was" >&5
23148 rm -f conftest.o conftest.s
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23152 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23153 if test $gcc_cv_as_ix86_ffreep = yes; then
23155 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23160 $as_echo_n "checking assembler for .quad directive... " >&6; }
23161 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23164 gcc_cv_as_ix86_quad
=no
23165 if test x
$gcc_cv_as != x
; then
23166 echo '.quad 0' > conftest.s
23167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23169 (eval $ac_try) 2>&5
23171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23172 test $ac_status = 0; }; }
23174 gcc_cv_as_ix86_quad
=yes
23176 echo "configure: failed program was" >&5
23179 rm -f conftest.o conftest.s
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23183 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23184 if test $gcc_cv_as_ix86_quad = yes; then
23186 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23191 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23192 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23195 gcc_cv_as_ix86_sahf
=no
23196 if test x
$gcc_cv_as != x
; then
23199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23206 gcc_cv_as_ix86_sahf
=yes
23208 echo "configure: failed program was" >&5
23211 rm -f conftest.o conftest.s
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23215 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23216 if test $gcc_cv_as_ix86_sahf = yes; then
23218 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23223 $as_echo_n "checking assembler for swap suffix... " >&6; }
23224 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23225 $as_echo_n "(cached) " >&6
23227 gcc_cv_as_ix86_swap
=no
23228 if test x
$gcc_cv_as != x
; then
23229 echo 'movl.s %esp, %ebp' > 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_ix86_swap
=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_ix86_swap" >&5
23246 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23247 if test $gcc_cv_as_ix86_swap = yes; then
23249 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23254 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23255 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23258 gcc_cv_as_ix86_diff_sect_delta
=no
23259 if test x
$gcc_cv_as != x
; then
23260 echo '.section .rodata
23266 .L2: nop' > conftest.s
23267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23274 gcc_cv_as_ix86_diff_sect_delta
=yes
23276 echo "configure: failed program was" >&5
23279 rm -f conftest.o conftest.s
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23283 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23284 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23286 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23290 # These two are used unconditionally by i386.[ch]; it is to be defined
23291 # to 1 if the feature is present, 0 otherwise.
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23293 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23294 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23295 $as_echo_n "(cached) " >&6
23297 gcc_cv_as_ix86_gotoff_in_data
=no
23298 if test $in_tree_gas = yes; then
23299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23300 then gcc_cv_as_ix86_gotoff_in_data
=yes
23302 elif test x
$gcc_cv_as != x
; then
23307 .long .L0@GOTOFF' > conftest.s
23308 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }
23315 gcc_cv_as_ix86_gotoff_in_data
=yes
23317 echo "configure: failed program was" >&5
23320 rm -f conftest.o conftest.s
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23324 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23327 cat >>confdefs.h
<<_ACEOF
23328 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23333 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23334 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23337 gcc_cv_as_ix86_rep_lock_prefix
=no
23338 if test x
$gcc_cv_as != x
; then
23340 lock orl $0, (%esp)' > conftest.s
23341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23343 (eval $ac_try) 2>&5
23345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346 test $ac_status = 0; }; }
23348 gcc_cv_as_ix86_rep_lock_prefix
=yes
23350 echo "configure: failed program was" >&5
23353 rm -f conftest.o conftest.s
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23357 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23360 cat >>confdefs.h
<<_ACEOF
23361 #define HAVE_AS_IX86_REP_LOCK_PREFIX `if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then echo 1; else echo 0; fi`
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23369 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23370 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23373 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23374 if test $in_tree_gas = yes; then
23375 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23376 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23378 elif test x
$gcc_cv_as != x
; then
23380 addl r15 = @ltoffx(x#), gp
23382 ld8.mov r16 = [r15], x#' > conftest.s
23383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23385 (eval $ac_try) 2>&5
23387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23388 test $ac_status = 0; }; }
23390 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23392 echo "configure: failed program was" >&5
23395 rm -f conftest.o conftest.s
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23399 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23400 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23402 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23410 *-*-aix*) conftest_s
=' .machine "pwr5"
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23415 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23416 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23417 $as_echo_n "(cached) " >&6
23419 gcc_cv_as_machine_directive
=no
23420 if test x
$gcc_cv_as != x
; then
23421 echo ' .machine ppc7400' > conftest.s
23422 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23424 (eval $ac_try) 2>&5
23426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23427 test $ac_status = 0; }; }
23429 gcc_cv_as_machine_directive
=yes
23431 echo "configure: failed program was" >&5
23434 rm -f conftest.o conftest.s
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23438 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23440 if test x
$gcc_cv_as_machine_directive != xyes
; then
23441 echo "*** This target requires an assembler supporting \".machine\"" >&2
23442 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23443 test x
$build = x
$target && exit 1
23447 *) conftest_s
=' .machine power4
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23453 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23454 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23457 gcc_cv_as_powerpc_mfcrf
=no
23458 if test $in_tree_gas = yes; then
23459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23460 then gcc_cv_as_powerpc_mfcrf
=yes
23462 elif test x
$gcc_cv_as != x
; then
23463 echo "$conftest_s" > conftest.s
23464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23466 (eval $ac_try) 2>&5
23468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23469 test $ac_status = 0; }; }
23471 gcc_cv_as_powerpc_mfcrf
=yes
23473 echo "configure: failed program was" >&5
23476 rm -f conftest.o conftest.s
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23480 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23481 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23483 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23488 *-*-aix*) conftest_s
=' .machine "pwr5"
23491 *) conftest_s
=' .machine power5
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23497 $as_echo_n "checking assembler for popcntb support... " >&6; }
23498 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23501 gcc_cv_as_powerpc_popcntb
=no
23502 if test $in_tree_gas = yes; then
23503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23504 then gcc_cv_as_powerpc_popcntb
=yes
23506 elif test x
$gcc_cv_as != x
; then
23507 echo "$conftest_s" > conftest.s
23508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23510 (eval $ac_try) 2>&5
23512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23513 test $ac_status = 0; }; }
23515 gcc_cv_as_powerpc_popcntb
=yes
23517 echo "configure: failed program was" >&5
23520 rm -f conftest.o conftest.s
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23524 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23525 if test $gcc_cv_as_powerpc_popcntb = yes; then
23527 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23532 *-*-aix*) conftest_s
=' .machine "pwr5x"
23535 *) conftest_s
=' .machine power5
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23541 $as_echo_n "checking assembler for fp round support... " >&6; }
23542 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23543 $as_echo_n "(cached) " >&6
23545 gcc_cv_as_powerpc_fprnd
=no
23546 if test $in_tree_gas = yes; then
23547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23548 then gcc_cv_as_powerpc_fprnd
=yes
23550 elif test x
$gcc_cv_as != x
; then
23551 echo "$conftest_s" > conftest.s
23552 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23554 (eval $ac_try) 2>&5
23556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23557 test $ac_status = 0; }; }
23559 gcc_cv_as_powerpc_fprnd
=yes
23561 echo "configure: failed program was" >&5
23564 rm -f conftest.o conftest.s
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23568 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23569 if test $gcc_cv_as_powerpc_fprnd = yes; then
23571 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23576 *-*-aix*) conftest_s
=' .machine "pwr6"
23579 *) conftest_s
=' .machine power6
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23585 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23586 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23587 $as_echo_n "(cached) " >&6
23589 gcc_cv_as_powerpc_mfpgpr
=no
23590 if test $in_tree_gas = yes; then
23591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23592 then gcc_cv_as_powerpc_mfpgpr
=yes
23594 elif test x
$gcc_cv_as != x
; then
23595 echo "$conftest_s" > conftest.s
23596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23598 (eval $ac_try) 2>&5
23600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23601 test $ac_status = 0; }; }
23603 gcc_cv_as_powerpc_mfpgpr
=yes
23605 echo "configure: failed program was" >&5
23608 rm -f conftest.o conftest.s
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23612 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23613 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23615 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23620 *-*-aix*) conftest_s
=' .csect .text[PR]
23622 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23626 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23627 *) conftest_s
=' .text
23629 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23633 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23634 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23635 $as_echo_n "(cached) " >&6
23637 gcc_cv_as_powerpc_rel16
=no
23638 if test $in_tree_gas = yes; then
23639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23640 then gcc_cv_as_powerpc_rel16
=yes
23642 elif test x
$gcc_cv_as != x
; then
23643 echo "$conftest_s" > conftest.s
23644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23646 (eval $ac_try) 2>&5
23648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23649 test $ac_status = 0; }; }
23651 gcc_cv_as_powerpc_rel16
=yes
23653 echo "configure: failed program was" >&5
23656 rm -f conftest.o conftest.s
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23660 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23661 if test $gcc_cv_as_powerpc_rel16 = yes; then
23663 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23668 *-*-aix*) conftest_s
=' .machine "pwr6"
23671 *) conftest_s
=' .machine power6
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23677 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23678 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23681 gcc_cv_as_powerpc_cmpb
=no
23682 if test $in_tree_gas = yes; then
23683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23684 then gcc_cv_as_powerpc_cmpb
=yes
23686 elif test x
$gcc_cv_as != x
; then
23687 echo "$conftest_s" > conftest.s
23688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23695 gcc_cv_as_powerpc_cmpb
=yes
23697 echo "configure: failed program was" >&5
23700 rm -f conftest.o conftest.s
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23704 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23705 if test $gcc_cv_as_powerpc_cmpb = yes; then
23707 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23712 *-*-aix*) conftest_s
=' .machine "pwr6"
23715 *) conftest_s
=' .machine power6
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23721 $as_echo_n "checking assembler for decimal float support... " >&6; }
23722 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23723 $as_echo_n "(cached) " >&6
23725 gcc_cv_as_powerpc_dfp
=no
23726 if test $in_tree_gas = yes; then
23727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23728 then gcc_cv_as_powerpc_dfp
=yes
23730 elif test x
$gcc_cv_as != x
; then
23731 echo "$conftest_s" > conftest.s
23732 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23734 (eval $ac_try) 2>&5
23736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23737 test $ac_status = 0; }; }
23739 gcc_cv_as_powerpc_dfp
=yes
23741 echo "configure: failed program was" >&5
23744 rm -f conftest.o conftest.s
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23748 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23749 if test $gcc_cv_as_powerpc_dfp = yes; then
23751 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23756 *-*-aix*) conftest_s
=' .machine "pwr7"
23759 *) conftest_s
=' .machine power7
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23765 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23766 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23767 $as_echo_n "(cached) " >&6
23769 gcc_cv_as_powerpc_vsx
=no
23770 if test $in_tree_gas = yes; then
23771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23772 then gcc_cv_as_powerpc_vsx
=yes
23774 elif test x
$gcc_cv_as != x
; then
23775 echo "$conftest_s" > conftest.s
23776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23778 (eval $ac_try) 2>&5
23780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23781 test $ac_status = 0; }; }
23783 gcc_cv_as_powerpc_vsx
=yes
23785 echo "configure: failed program was" >&5
23788 rm -f conftest.o conftest.s
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23792 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23793 if test $gcc_cv_as_powerpc_vsx = yes; then
23795 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23800 *-*-aix*) conftest_s
=' .machine "pwr7"
23803 *) conftest_s
=' .machine power7
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23809 $as_echo_n "checking assembler for popcntd support... " >&6; }
23810 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23813 gcc_cv_as_powerpc_popcntd
=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23816 then gcc_cv_as_powerpc_popcntd
=yes
23818 elif test x
$gcc_cv_as != x
; then
23819 echo "$conftest_s" > conftest.s
23820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23822 (eval $ac_try) 2>&5
23824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23825 test $ac_status = 0; }; }
23827 gcc_cv_as_powerpc_popcntd
=yes
23829 echo "configure: failed program was" >&5
23832 rm -f conftest.o conftest.s
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23836 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23837 if test $gcc_cv_as_powerpc_popcntd = yes; then
23839 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23844 *-*-aix*) conftest_s
=' .csect .text[PR]
23846 *) conftest_s
=' .text
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23851 $as_echo_n "checking assembler for lwsync support... " >&6; }
23852 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23853 $as_echo_n "(cached) " >&6
23855 gcc_cv_as_powerpc_lwsync
=no
23856 if test $in_tree_gas = yes; then
23857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23858 then gcc_cv_as_powerpc_lwsync
=yes
23860 elif test x
$gcc_cv_as != x
; then
23861 echo "$conftest_s" > conftest.s
23862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23869 gcc_cv_as_powerpc_lwsync
=yes
23871 echo "configure: failed program was" >&5
23874 rm -f conftest.o conftest.s
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23878 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23879 if test $gcc_cv_as_powerpc_lwsync = yes; then
23881 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23886 *-*-aix*) conftest_s
=' .machine "476"
23889 *) conftest_s
=' .machine "476"
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23895 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23896 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23897 $as_echo_n "(cached) " >&6
23899 gcc_cv_as_powerpc_dci
=no
23900 if test $in_tree_gas = yes; then
23901 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23902 then gcc_cv_as_powerpc_dci
=yes
23904 elif test x
$gcc_cv_as != x
; then
23905 echo "$conftest_s" > conftest.s
23906 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23908 (eval $ac_try) 2>&5
23910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23911 test $ac_status = 0; }; }
23913 gcc_cv_as_powerpc_dci
=yes
23915 echo "configure: failed program was" >&5
23918 rm -f conftest.o conftest.s
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23922 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23923 if test $gcc_cv_as_powerpc_dci = yes; then
23925 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23930 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23931 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23932 $as_echo_n "(cached) " >&6
23934 gcc_cv_as_powerpc_gnu_attribute
=no
23935 if test $in_tree_gas = yes; then
23936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23937 then gcc_cv_as_powerpc_gnu_attribute
=yes
23939 elif test x
$gcc_cv_as != x
; then
23940 echo '.gnu_attribute 4,1' > conftest.s
23941 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23943 (eval $ac_try) 2>&5
23945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23946 test $ac_status = 0; }; }
23948 gcc_cv_as_powerpc_gnu_attribute
=yes
23950 echo "configure: failed program was" >&5
23953 rm -f conftest.o conftest.s
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23957 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23958 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23960 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23965 $as_echo_n "checking assembler for tls marker support... " >&6; }
23966 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23967 $as_echo_n "(cached) " >&6
23969 gcc_cv_as_powerpc_tls_markers
=no
23970 if test $in_tree_gas = yes; then
23971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23972 then gcc_cv_as_powerpc_tls_markers
=yes
23974 elif test x
$gcc_cv_as != x
; then
23975 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978 (eval $ac_try) 2>&5
23980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981 test $ac_status = 0; }; }
23983 gcc_cv_as_powerpc_tls_markers
=yes
23985 echo "configure: failed program was" >&5
23988 rm -f conftest.o conftest.s
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23992 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23993 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23995 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24002 $as_echo_n "checking assembler for .ref support... " >&6; }
24003 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24004 $as_echo_n "(cached) " >&6
24006 gcc_cv_as_aix_ref
=no
24007 if test $in_tree_gas = yes; then
24008 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24011 elif test x
$gcc_cv_as != x
; then
24012 echo ' .csect stuff[rw]
24018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24020 (eval $ac_try) 2>&5
24022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023 test $ac_status = 0; }; }
24025 gcc_cv_as_aix_ref
=yes
24027 echo "configure: failed program was" >&5
24030 rm -f conftest.o conftest.s
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24034 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24035 if test $gcc_cv_as_aix_ref = yes; then
24037 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24046 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24047 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24048 $as_echo_n "(cached) " >&6
24050 gcc_cv_as_mips_explicit_relocs
=no
24051 if test $in_tree_gas = yes; then
24052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24053 then gcc_cv_as_mips_explicit_relocs
=yes
24055 elif test x
$gcc_cv_as != x
; then
24056 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24064 gcc_cv_as_mips_explicit_relocs
=yes
24066 echo "configure: failed program was" >&5
24069 rm -f conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24073 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24074 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24075 if test x
$target_cpu_default = x
24076 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24077 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24081 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24082 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24083 $as_echo_n "(cached) " >&6
24085 gcc_cv_as_mips_no_shared
=no
24086 if test $in_tree_gas = yes; then
24087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24088 then gcc_cv_as_mips_no_shared
=yes
24090 elif test x
$gcc_cv_as != x
; then
24091 echo 'nop' > conftest.s
24092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; }
24099 gcc_cv_as_mips_no_shared
=yes
24101 echo "configure: failed program was" >&5
24104 rm -f conftest.o conftest.s
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24108 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24109 if test $gcc_cv_as_mips_no_shared = yes; then
24111 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24116 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24117 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24118 $as_echo_n "(cached) " >&6
24120 gcc_cv_as_mips_gnu_attribute
=no
24121 if test $in_tree_gas = yes; then
24122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24123 then gcc_cv_as_mips_gnu_attribute
=yes
24125 elif test x
$gcc_cv_as != x
; then
24126 echo '.gnu_attribute 4,1' > conftest.s
24127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24134 gcc_cv_as_mips_gnu_attribute
=yes
24136 echo "configure: failed program was" >&5
24139 rm -f conftest.o conftest.s
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24143 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24144 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24146 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24151 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24152 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24155 gcc_cv_as_mips_dtprelword
=no
24156 if test $in_tree_gas = yes; then
24157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24158 then gcc_cv_as_mips_dtprelword
=yes
24160 elif test x
$gcc_cv_as != x
; then
24161 echo '.section .tdata,"awT",@progbits
24165 .dtprelword x+0x8000' > conftest.s
24166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24173 gcc_cv_as_mips_dtprelword
=yes
24175 echo "configure: failed program was" >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24182 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24183 if test $gcc_cv_as_mips_dtprelword = yes; then
24185 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24190 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24191 gcc_cv_as_ld_jalr_reloc
=no
24192 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24193 if test $in_tree_ld = yes ; then
24194 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 \
24195 && test $in_tree_ld_is_elf = yes; then
24196 gcc_cv_as_ld_jalr_reloc
=yes
24198 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24199 echo ' .ent x' > conftest.s
24200 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24201 echo ' ld $25,%call16(y)($28)' >> conftest.s
24202 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24203 echo '1: jalr $25' >> conftest.s
24204 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24205 echo '1: jalr $25' >> conftest.s
24206 echo ' .end x' >> conftest.s
24207 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24208 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24209 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
24210 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
24211 gcc_cv_as_ld_jalr_reloc
=yes
24217 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24218 if test x
$target_cpu_default = x
; then
24219 target_cpu_default
=MASK_RELAX_PIC_CALLS
24221 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24225 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24228 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24229 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24232 gcc_cv_ld_mips_personality_relaxation
=no
24233 if test $in_tree_ld = yes ; then
24234 if test "$gcc_cv_gld_major_version" -eq 2 \
24235 -a "$gcc_cv_gld_minor_version" -ge 21 \
24236 -o "$gcc_cv_gld_major_version" -gt 2; then
24237 gcc_cv_ld_mips_personality_relaxation
=yes
24239 elif test x
$gcc_cv_as != x \
24240 -a x
$gcc_cv_ld != x \
24241 -a x
$gcc_cv_readelf != x
; then
24242 cat > conftest.s
<<EOF
24244 .cfi_personality 0x80,indirect_ptr
24251 .section .data,"aw",@progbits
24255 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24256 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24257 if $gcc_cv_readelf -d conftest
2>&1 \
24258 |
grep TEXTREL
> /dev
/null
2>&1; then
24260 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24261 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24264 gcc_cv_ld_mips_personality_relaxation
=yes
24268 rm -f conftest.s conftest.o conftest
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24271 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24272 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24274 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24280 # Mips and HP-UX need the GNU assembler.
24281 # Linux on IA64 might be able to use the Intel assembler.
24284 mips
*-*-* |
*-*-hpux* )
24285 if test x
$gas_flag = xyes \
24286 ||
test x
"$host" != x
"$build" \
24287 ||
test ! -x "$gcc_cv_as" \
24288 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24291 echo "*** This configuration requires the GNU assembler" >&2
24297 # ??? Not all targets support dwarf2 debug_line, even within a version
24298 # of gas. Moreover, we need to emit a valid instruction to trigger any
24299 # info to the output file. So, as supported targets are added to gas 2.11,
24300 # add some instruction here to (also) show we expect this might work.
24301 # ??? Once 2.11 is released, probably need to add first known working
24302 # version to the per-target configury.
24304 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
24305 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
24306 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
24307 | spu-
*-* | fido
*-*-* | m32c-
*-*)
24310 ia64
*-*-* | s390
*-*-*)
24317 if test x
"$insn" != x
; then
24319 .file 1 \"conftest.s\"
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24323 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24324 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24327 gcc_cv_as_dwarf2_debug_line
=no
24328 if test $in_tree_gas = yes; then
24329 if test $in_tree_gas_is_elf = yes \
24330 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24331 then gcc_cv_as_dwarf2_debug_line
=yes
24333 elif test x
$gcc_cv_as != x
; then
24334 echo "$conftest_s" > conftest.s
24335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24342 if test x
$gcc_cv_objdump != x \
24343 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24344 |
grep debug_line
> /dev
/null
2>&1; then
24345 gcc_cv_as_dwarf2_debug_line
=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_dwarf2_debug_line" >&5
24355 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24358 # The .debug_line file table must be in the exact order that
24359 # we specified the files, since these indices are also used
24360 # by DW_AT_decl_file. Approximate this test by testing if
24361 # the assembler bitches if the same index is assigned twice.
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24363 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24364 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24367 gcc_cv_as_dwarf2_file_buggy
=no
24368 if test x
$gcc_cv_as != x
; then
24369 echo ' .file 1 "foo.s"
24370 .file 1 "bar.s"' > 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_dwarf2_file_buggy
=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_dwarf2_file_buggy" >&5
24387 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24390 if test $gcc_cv_as_dwarf2_debug_line = yes \
24391 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24393 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24398 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24399 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24400 $as_echo_n "(cached) " >&6
24402 gcc_cv_as_gdwarf2_flag
=no
24403 if test $in_tree_gas = yes; then
24404 if test $in_tree_gas_is_elf = yes \
24405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24406 then gcc_cv_as_gdwarf2_flag
=yes
24408 elif test x
$gcc_cv_as != x
; then
24409 echo "$insn" > conftest.s
24410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24412 (eval $ac_try) 2>&5
24414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24415 test $ac_status = 0; }; }
24417 gcc_cv_as_gdwarf2_flag
=yes
24419 echo "configure: failed program was" >&5
24422 rm -f conftest.o conftest.s
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24426 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24427 if test $gcc_cv_as_gdwarf2_flag = yes; then
24429 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24434 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24435 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24436 $as_echo_n "(cached) " >&6
24438 gcc_cv_as_gstabs_flag
=no
24439 if test $in_tree_gas = yes; then
24440 if test $in_tree_gas_is_elf = yes \
24441 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24442 then gcc_cv_as_gstabs_flag
=yes
24444 elif test x
$gcc_cv_as != x
; then
24445 echo "$insn" > conftest.s
24446 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448 (eval $ac_try) 2>&5
24450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451 test $ac_status = 0; }; }
24453 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24454 # and warns about it, but still exits successfully. So check for
24456 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24458 (eval $ac_try) 2>&5
24460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24461 test $ac_status = 0; }; }
24463 else gcc_cv_as_gstabs_flag
=yes
24466 echo "configure: failed program was" >&5
24469 rm -f conftest.o conftest.s
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24473 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24474 if test $gcc_cv_as_gstabs_flag = yes; then
24476 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24481 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24482 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24485 gcc_cv_as_debug_prefix_map_flag
=no
24486 if test $in_tree_gas = yes; then
24487 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24488 then gcc_cv_as_debug_prefix_map_flag
=yes
24490 elif test x
$gcc_cv_as != x
; then
24491 echo "$insn" > conftest.s
24492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24494 (eval $ac_try) 2>&5
24496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24497 test $ac_status = 0; }; }
24499 gcc_cv_as_debug_prefix_map_flag
=yes
24501 echo "configure: failed program was" >&5
24504 rm -f conftest.o conftest.s
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24508 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24509 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24511 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24517 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24518 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24519 $as_echo_n "(cached) " >&6
24521 gcc_cv_as_lcomm_with_alignment
=no
24522 if test x
$gcc_cv_as != x
; then
24523 echo '.lcomm bar,4,16' > conftest.s
24524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24531 gcc_cv_as_lcomm_with_alignment
=yes
24533 echo "configure: failed program was" >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24540 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24541 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24543 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24547 # Check whether --enable-gnu-unique-object was given.
24548 if test "${enable_gnu_unique_object+set}" = set; then :
24549 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24551 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24552 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24556 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24557 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24560 gcc_cv_as_gnu_unique_object
=no
24561 if test $in_tree_gas = yes; then
24562 if test $in_tree_gas_is_elf = yes \
24563 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24564 then gcc_cv_as_gnu_unique_object
=yes
24566 elif test x
$gcc_cv_as != x
; then
24567 echo '.type foo, @gnu_unique_object' > conftest.s
24568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24570 (eval $ac_try) 2>&5
24572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24573 test $ac_status = 0; }; }
24575 gcc_cv_as_gnu_unique_object
=yes
24577 echo "configure: failed program was" >&5
24580 rm -f conftest.o conftest.s
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24584 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24585 if test $gcc_cv_as_gnu_unique_object = yes; then
24586 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24587 if test x
$host = x
$build -a x
$host = x
$target &&
24588 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24589 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24590 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24591 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24592 if test "$glibcnum" -ge 2011 ; then
24593 enable_gnu_unique_object
=yes
24599 if test x
$enable_gnu_unique_object = xyes
; then
24601 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24606 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24607 if test "${gcc_cv_as_line_zero+set}" = set; then :
24608 $as_echo_n "(cached) " >&6
24610 gcc_cv_as_line_zero
=no
24611 if test $in_tree_gas = yes; then
24612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24613 then gcc_cv_as_line_zero
=yes
24615 elif test "x$gcc_cv_as" != x
; then
24616 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24617 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619 (eval $ac_try) 2>&5
24621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622 test $ac_status = 0; }; } &&
24623 test "x`cat conftest.out`" = x
24625 gcc_cv_as_line_zero
=yes
24627 echo "configure: failed program was" >&5
24629 echo "configure: error output was" >&5
24630 cat conftest.out
>&5
24632 rm -f conftest.o conftest.s conftest.out
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24636 $as_echo "$gcc_cv_as_line_zero" >&6; }
24637 if test "x$gcc_cv_as_line_zero" = xyes
; then
24639 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24644 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24645 gcc_cv_ld_eh_frame_hdr
=no
24646 if test $in_tree_ld = yes ; then
24647 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 \
24648 && test $in_tree_ld_is_elf = yes; then
24649 gcc_cv_ld_eh_frame_hdr
=yes
24651 elif test x
$gcc_cv_ld != x
; then
24652 # Check if linker supports --eh-frame-hdr option
24653 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24654 gcc_cv_ld_eh_frame_hdr
=yes
24658 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24660 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24664 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24667 $as_echo_n "checking linker position independent executable support... " >&6; }
24669 if test $in_tree_ld = yes ; then
24670 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 \
24671 && test $in_tree_ld_is_elf = yes; then
24674 elif test x
$gcc_cv_ld != x
; then
24675 # Check if linker supports -pie option
24676 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24680 if test x
"$gcc_cv_ld_pie" = xyes
; then
24682 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24686 $as_echo "$gcc_cv_ld_pie" >&6; }
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24689 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24690 gcc_cv_ld_eh_gc_sections
=no
24691 if test $in_tree_ld = yes ; then
24692 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 \
24693 && test $in_tree_ld_is_elf = yes; then
24694 gcc_cv_ld_eh_gc_sections
=yes
24696 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24697 cat > conftest.s
<<EOF
24700 .type _start, @function
24703 .size _start, .-_start
24704 .section .text.foo,"ax",@progbits
24705 .type foo, @function
24709 .section .gcc_except_table.foo,"a",@progbits
24712 .section .eh_frame,"a",@progbits
24715 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24716 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24717 |
grep "gc-sections option ignored" > /dev
/null
; then
24718 gcc_cv_ld_eh_gc_sections
=no
24719 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24720 |
grep gcc_except_table
> /dev
/null
; then
24721 gcc_cv_ld_eh_gc_sections
=yes
24722 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24723 if test x
$gcc_cv_as_comdat_group != xyes
; then
24724 gcc_cv_ld_eh_gc_sections
=no
24725 cat > conftest.s
<<EOF
24728 .type _start, @function
24731 .size _start, .-_start
24732 .section .gnu.linkonce.t.foo,"ax",@progbits
24733 .type foo, @function
24737 .section .gcc_except_table.foo,"a",@progbits
24740 .section .eh_frame,"a",@progbits
24743 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24744 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24745 |
grep "gc-sections option ignored" > /dev
/null
; then
24746 gcc_cv_ld_eh_gc_sections
=no
24747 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24748 |
grep gcc_except_table
> /dev
/null
; then
24749 gcc_cv_ld_eh_gc_sections
=yes
24755 rm -f conftest.s conftest.o conftest
24759 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24760 gcc_cv_ld_eh_gc_sections
=no
24763 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24765 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24769 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24776 $as_echo_n "checking linker --as-needed support... " >&6; }
24777 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24780 gcc_cv_ld_as_needed
=no
24781 if test $in_tree_ld = yes ; then
24782 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 \
24783 && test $in_tree_ld_is_elf = yes; then
24784 gcc_cv_ld_as_needed
=yes
24786 elif test x
$gcc_cv_ld != x
; then
24787 # Check if linker supports --as-needed and --no-as-needed options
24788 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24789 gcc_cv_ld_as_needed
=yes
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24795 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24796 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24798 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24802 case "$target:$tm_file" in
24803 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24805 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24806 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24809 gcc_cv_ld_no_dot_syms
=no
24810 if test $in_tree_ld = yes ; then
24811 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
24812 gcc_cv_ld_no_dot_syms
=yes
24814 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24815 cat > conftest1.s
<<EOF
24819 cat > conftest2.s
<<EOF
24820 .section ".opd","aw"
24823 .type foo,@function
24825 .quad .LEfoo,.TOC.@tocbase,0
24831 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24832 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24833 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24834 gcc_cv_ld_no_dot_syms
=yes
24836 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24841 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24842 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24844 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24851 $as_echo_n "checking linker --build-id support... " >&6; }
24852 if test "${gcc_cv_ld_buildid+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 gcc_cv_ld_buildid
=no
24856 if test $in_tree_ld = yes ; then
24857 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24858 "$gcc_cv_gld_minor_version" -ge 18 -o \
24859 "$gcc_cv_gld_major_version" -gt 2 \
24860 && test $in_tree_ld_is_elf = yes; then
24861 gcc_cv_ld_buildid
=yes
24863 elif test x
$gcc_cv_ld != x
; then
24864 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
24865 gcc_cv_ld_buildid
=yes
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24870 $as_echo "$gcc_cv_ld_buildid" >&6; }
24871 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24873 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24877 # Check whether --enable-linker-build-id was given.
24878 if test "${enable_linker_build_id+set}" = set; then :
24879 enableval
=$enable_linker_build_id;
24881 enable_linker_build_id
=no
24885 if test x
"$enable_linker_build_id" = xyes
; then
24886 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24888 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24892 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24897 $as_echo_n "checking linker --sysroot support... " >&6; }
24898 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24899 $as_echo_n "(cached) " >&6
24901 gcc_cv_ld_sysroot
=no
24902 if test $in_tree_ld = yes ; then
24903 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
24904 gcc_cv_ld_sysroot
=yes
24906 elif test x
$gcc_cv_ld != x
; then
24907 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24908 gcc_cv_ld_sysroot
=yes
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24913 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24914 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24916 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24920 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24921 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24922 && test "$prefix" != "NONE"; then
24924 cat >>confdefs.h
<<_ACEOF
24925 #define PREFIX_INCLUDE_DIR "$prefix/include"
24930 # Test for stack protector support in target C library.
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24932 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24933 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
24936 gcc_cv_libc_provides_ssp
=no
24938 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
24939 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24940 if test "x$with_headers" != x
; then
24941 glibc_header_dir
=$with_headers
24942 elif test "x$with_sysroot" = x
; then
24943 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24944 elif test "x$with_build_sysroot" != "x"; then
24945 glibc_header_dir
="${with_build_sysroot}/usr/include"
24946 elif test "x$with_sysroot" = xyes
; then
24947 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24949 glibc_header_dir
="${with_sysroot}/usr/include"
24952 glibc_header_dir
=/usr
/include
24954 # glibc 2.4 and later provides __stack_chk_fail and
24955 # either __stack_chk_guard, or TLS access to stack guard canary.
24956 if test -f $glibc_header_dir/features.h \
24957 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24958 $glibc_header_dir/features.h
> /dev
/null
; then
24959 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24960 $glibc_header_dir/features.h
> /dev
/null
; then
24961 gcc_cv_libc_provides_ssp
=yes
24962 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24963 $glibc_header_dir/features.h
> /dev
/null \
24964 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24965 $glibc_header_dir/features.h
> /dev
/null
; then
24966 gcc_cv_libc_provides_ssp
=yes
24967 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24968 $glibc_header_dir/features.h
> /dev
/null
&& \
24969 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24970 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24971 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24972 gcc_cv_libc_provides_ssp
=yes
24977 # Avoid complicated tests (see
24978 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24979 # simply assert that glibc does provide this, which is true for all
24980 # realistically usable GNU/Hurd configurations.
24981 gcc_cv_libc_provides_ssp
=yes;;
24982 *-*-darwin* |
*-*-freebsd*)
24983 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24984 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
24985 gcc_cv_libc_provides_ssp
=yes
24987 echo "no __stack_chk_fail on this target"
24991 *) gcc_cv_libc_provides_ssp
=no
;;
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24995 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24997 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
24999 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25003 # Check if TFmode long double should be used by default or not.
25004 # Some glibc targets used DFmode long double, but with glibc 2.4
25005 # and later they can use TFmode.
25007 powerpc
*-*-linux* | \
25008 powerpc
*-*-gnu* | \
25009 sparc
*-*-linux* | \
25013 # Check whether --with-long-double-128 was given.
25014 if test "${with_long_double_128+set}" = set; then :
25015 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
25017 gcc_cv_target_ldbl128
=no
25018 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25019 if test "x$with_sysroot" = x
; then
25020 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25021 elif test "x$with_build_sysroot" != "x"; then
25022 glibc_header_dir
="${with_build_sysroot}/usr/include"
25023 elif test "x$with_sysroot" = xyes
; then
25024 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25026 glibc_header_dir
="${with_sysroot}/usr/include"
25029 glibc_header_dir
=/usr
/include
25031 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25032 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
25033 && gcc_cv_target_ldbl128
=yes
25039 if test x
$gcc_cv_target_ldbl128 = xyes
; then
25041 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25045 # Find out what GC implementation we want, or may, use.
25047 # Check whether --with-gc was given.
25048 if test "${with_gc+set}" = set; then :
25049 withval
=$with_gc; case "$withval" in
25056 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25060 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
25068 echo "Using $GGC for garbage collection."
25070 # Libraries to use on the host. This will normally be set by the top
25071 # level Makefile. Here we simply capture the value for our Makefile.
25072 if test -z "${HOST_LIBS+set}"; then
25077 # Use the system's zlib library.
25079 zlibinc
="-I\$(srcdir)/../zlib"
25081 # Check whether --with-system-zlib was given.
25082 if test "${with_system_zlib+set}" = set; then :
25083 withval
=$with_system_zlib; zlibdir
=
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25093 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25094 # Check whether --enable-maintainer-mode was given.
25095 if test "${enable_maintainer_mode+set}" = set; then :
25096 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25103 $as_echo "$maintainer_mode" >&6; }
25105 if test "$maintainer_mode" = "yes"; then
25115 # Make empty files to contain the specs and options for each language.
25116 # Then add #include lines to for a compiler that has specs and/or options.
25122 # These (without "all_") are set in each config-lang.in.
25123 # `language' must be a single word so is spelled singularly.
25126 all_outputs
='Makefile gccbug'
25127 # List of language makefile fragments.
25128 all_lang_makefrags
=
25129 # Additional files for gengtype
25130 all_gtfiles
="$target_gtfiles"
25132 # These are the languages that are set in --enable-languages,
25133 # and are available in the GCC tree.
25134 all_selected_languages
=
25136 # Add the language fragments.
25137 # Languages are added via two mechanisms. Some information must be
25138 # recorded in makefile variables, these are defined in config-lang.in.
25139 # We accumulate them and plug them into the main Makefile.
25140 # The other mechanism is a set of hooks for each of the main targets
25141 # like `clean', `install', etc.
25143 language_hooks
="Make-hooks"
25145 for lang
in ${srcdir}/*/config-lang.
in
25147 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25149 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25150 if test "x$lang_alias" = x
25152 echo "$lang doesn't set \$language." 1>&2
25155 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25156 subdirs
="$subdirs $subdir"
25158 # $gcc_subdir is where the gcc integration files are to be found
25159 # for a language, both for internal compiler purposes (compiler
25160 # sources implementing front-end to GCC tree converters), and for
25161 # build infrastructure purposes (Make-lang.in, etc.)
25163 # This will be <subdir> (relative to $srcdir) if a line like
25164 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25165 # is found in <langdir>/config-lang.in, and will remain <langdir>
25168 # Except for the language alias (fetched above), the regular
25169 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25170 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25171 # only this and the language alias.
25173 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25174 if [ "$gcc_subdir" = "" ]; then
25175 gcc_subdir
="$subdir"
25178 case ",$enable_languages," in
25180 all_selected_languages
="$all_selected_languages $lang_alias"
25181 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
25182 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25193 .
${srcdir}/$gcc_subdir/config-lang.
in
25194 if test "x$language" = x
25196 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25201 case ",$enable_languages," in
25202 *,$lang_alias,*) ;;
25204 for i
in $subdir_requires; do
25205 test -f "${srcdir}/$i/config-lang.in" && continue
25213 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25214 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25215 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25217 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25218 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25220 all_languages
="$all_languages $language"
25221 all_compilers
="$all_compilers $compilers"
25222 all_outputs
="$all_outputs $outputs"
25223 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25224 case ",$enable_languages," in
25227 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25231 # LTO needs to speak the platform's object file format, and has a
25232 # number of implementations of the required binary file access APIs.
25233 # ELF is the most common, and default. We only link libelf if ELF
25234 # is indeed the selected format.
25235 LTO_BINARY_READER
=${lto_binary_reader}
25236 LTO_USE_LIBELF
=-lelf
25237 if test "x$lto_binary_reader" != "xlto-elf" ; then
25247 # Pick up gtfiles for c
25249 .
${srcdir}/c-config-lang.
in
25250 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25253 for language
in $all_selected_languages
25255 check_languages
="$check_languages check-$language"
25258 # We link each language in with a set of hooks, reached indirectly via
25259 # lang.${target}. Only do so for selected languages.
25263 target_list
="all.cross start.encap rest.encap tags \
25264 install-common install-man install-info install-pdf install-html dvi \
25265 pdf html uninstall info man srcextra srcman srcinfo \
25266 mostlyclean clean distclean maintainer-clean install-plugin"
25268 for t
in $target_list
25271 for lang
in $all_selected_languages
25275 echo "lang.$t: $x" >> Make-hooks
25284 echo "dir ." > .gdbinit
25285 echo "dir ${srcdir}" >> .gdbinit
25286 if test x
$gdb_needs_out_file_path = xyes
25288 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25290 if test "x$subdirs" != x
; then
25293 echo "dir ${srcdir}/$s" >> .gdbinit
25296 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25298 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25302 # Find a directory in which to install a shared libgcc.
25304 # Check whether --enable-version-specific-runtime-libs was given.
25305 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25306 enableval
=$enable_version_specific_runtime_libs;
25311 # Check whether --with-slibdir was given.
25312 if test "${with_slibdir+set}" = set; then :
25313 withval
=$with_slibdir; slibdir
="$with_slibdir"
25315 if test "${enable_version_specific_runtime_libs+set}" = set; then
25316 slibdir
='$(libsubdir)'
25317 elif test "$host" != "$target"; then
25318 slibdir
='$(build_tooldir)/lib'
25320 slibdir
='$(libdir)'
25326 # Substitute configuration variables
25388 if test x
${build} = x
${host} ; then
25389 if test x
${host} = x
${target} ; then
25390 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25392 echo "Links are now set up to build a cross-compiler" 1>&2
25393 echo " from ${host} to ${target}." 1>&2
25396 if test x
${host} = x
${target} ; then
25397 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25398 echo " for ${target}." 1>&2
25400 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25401 echo " from ${host} to ${target}." 1>&2
25413 if test "x${CLOOGLIBS}" != "x" ; then
25415 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25421 if test "x${LIBELFLIBS}" != "x" ; then
25423 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25427 # Check for plugin support
25428 # Check whether --enable-plugin was given.
25429 if test "${enable_plugin+set}" = set; then :
25430 enableval
=$enable_plugin; enable_plugin
=$enableval
25432 enable_plugin
=yes; default_plugin
=yes
25437 if test x
"$enable_plugin" = x
"yes"; then
25441 export_sym_check
="$gcc_cv_nm -g"
25444 export_sym_check
="$gcc_cv_objdump -T"
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25448 $as_echo_n "checking for exported symbols... " >&6; }
25449 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25450 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25451 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25452 : # No need to use a flag
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25455 $as_echo_n "checking for -rdynamic... " >&6; }
25456 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25457 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25458 plugin_rdynamic
=yes
25459 pluginlibs
="-rdynamic"
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25465 $as_echo "$plugin_rdynamic" >&6; }
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25471 $as_echo_n "checking for library containing dlopen... " >&6; }
25472 if test "${ac_cv_search_dlopen+set}" = set; then :
25473 $as_echo_n "(cached) " >&6
25475 ac_func_search_save_LIBS
=$LIBS
25476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25477 /* end confdefs.h. */
25479 /* Override any GCC internal prototype to avoid an error.
25480 Use char because int might match the return type of a GCC
25481 builtin and then its argument prototype would still apply. */
25494 for ac_lib
in '' dl
; do
25495 if test -z "$ac_lib"; then
25496 ac_res
="none required"
25499 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25501 if ac_fn_c_try_link
"$LINENO"; then :
25502 ac_cv_search_dlopen
=$ac_res
25504 rm -f core conftest.err conftest.
$ac_objext \
25506 if test "${ac_cv_search_dlopen+set}" = set; then :
25510 if test "${ac_cv_search_dlopen+set}" = set; then :
25513 ac_cv_search_dlopen
=no
25515 rm conftest.
$ac_ext
25516 LIBS
=$ac_func_search_save_LIBS
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25519 $as_echo "$ac_cv_search_dlopen" >&6; }
25520 ac_res
=$ac_cv_search_dlopen
25521 if test "$ac_res" != no
; then :
25522 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25526 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25527 pluginlibs
="$pluginlibs -ldl"
25531 # Check that we can build shared objects with -fPIC -shared
25532 saved_LDFLAGS
="$LDFLAGS"
25535 LDFLAGS
="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25538 LDFLAGS
="$LDFLAGS -fPIC -shared"
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25542 $as_echo_n "checking for -fPIC -shared... " >&6; }
25543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25544 /* end confdefs.h. */
25554 if ac_fn_c_try_link
"$LINENO"; then :
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25556 $as_echo "yes" >&6; }; have_pic_shared
=yes
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25559 $as_echo "no" >&6; }; have_pic_shared
=no
25561 rm -f core conftest.err conftest.
$ac_objext \
25562 conftest
$ac_exeext conftest.
$ac_ext
25563 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25567 LDFLAGS
="$saved_LDFLAGS"
25569 # If plugin support had been requested but not available, fail.
25570 if test x
"$enable_plugin" = x
"no" ; then
25571 if test x
"$default_plugin" != x
"yes"; then
25573 Building GCC with plugin support requires a host that supports
25574 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25581 if test x
"$enable_plugin" = x
"yes"; then
25583 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25587 # Configure the subdirectories
25588 # AC_CONFIG_SUBDIRS($subdirs)
25590 # Create the Makefile
25591 # and configure language subdirectories
25592 ac_config_files
="$ac_config_files $all_outputs"
25595 ac_config_commands
="$ac_config_commands default"
25597 cat >confcache
<<\_ACEOF
25598 # This file is a shell script that caches the results of configure
25599 # tests run on this system so they can be shared between configure
25600 # scripts and configure runs, see configure's option --config-cache.
25601 # It is not useful on other systems. If it contains results you don't
25602 # want to keep, you may remove or edit it.
25604 # config.status only pays attention to the cache file if you give it
25605 # the --recheck option to rerun configure.
25607 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25608 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25609 # following values.
25613 # The following way of writing the cache mishandles newlines in values,
25614 # but we know of no workaround that is simple, portable, and efficient.
25615 # So, we kill variables containing newlines.
25616 # Ultrix sh set writes to stderr and can't be redirected directly,
25617 # and sets the high bit in the cache file unless we assign to the vars.
25619 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25620 eval ac_val
=\$
$ac_var
25624 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25625 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25628 _ | IFS | as_nl
) ;; #(
25629 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25630 *) { eval $ac_var=; unset $ac_var;} ;;
25636 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25637 *${as_nl}ac_space
=\
*)
25638 # `set' does not quote correctly, so add quotes: double-quote
25639 # substitution turns \\\\ into \\, and sed turns \\ into \.
25642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25645 # `set' quotes correctly as required by POSIX, so do not add quotes.
25646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25657 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25659 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25660 if test -w "$cache_file"; then
25661 test "x$cache_file" != "x/dev/null" &&
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25663 $as_echo "$as_me: updating cache $cache_file" >&6;}
25664 cat confcache
>$cache_file
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25667 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25672 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25673 # Let make expand exec_prefix.
25674 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25676 DEFS
=-DHAVE_CONFIG_H
25680 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25681 # 1. Remove the extension, and $U if already installed.
25682 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25683 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25685 # will be set to the directory where LIBOBJS objects are built.
25686 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25687 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25689 LIBOBJS
=$ac_libobjs
25691 LTLIBOBJS
=$ac_ltlibobjs
25696 : ${CONFIG_STATUS=./config.status}
25698 ac_clean_files_save
=$ac_clean_files
25699 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25701 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25703 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25705 # Generated by $as_me.
25706 # Run this file to recreate the current configuration.
25707 # Compiler output produced by configure, useful for debugging
25708 # configure, is in config.log if it exists.
25711 ac_cs_recheck=false
25714 SHELL=\${CONFIG_SHELL-$SHELL}
25717 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25718 ## -------------------- ##
25719 ## M4sh Initialization. ##
25720 ## -------------------- ##
25722 # Be more Bourne compatible
25723 DUALCASE
=1; export DUALCASE
# for MKS sh
25724 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25727 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25728 # is contrary to our usage. Disable this feature.
25729 alias -g '${1+"$@"}'='"$@"'
25730 setopt NO_GLOB_SUBST
25732 case `(set -o) 2>/dev/null` in #(
25744 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25745 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25748 # Prefer a ksh shell builtin over an external printf program on Solaris,
25749 # but without wasting forks for bash or zsh.
25750 if test -z "$BASH_VERSION$ZSH_VERSION" \
25751 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25752 as_echo='print
-r --'
25753 as_echo_n='print
-rn --'
25754 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25755 as_echo='printf %s
\n'
25756 as_echo_n='printf %s
'
25758 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25759 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25760 as_echo_n='/usr
/ucb
/echo -n'
25762 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25763 as_echo_n_body='eval
25767 expr "X$arg" : "X\\(.*\\)$as_nl";
25768 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25770 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25772 export as_echo_n_body
25773 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25775 export as_echo_body
25776 as_echo='sh
-c $as_echo_body as_echo
'
25779 # The user is always right.
25780 if test "${PATH_SEPARATOR+set}" != set; then
25782 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25783 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25790 # We need space, tab and new line, in precisely that order. Quoting is
25791 # there to prevent editors from complaining about space-tab.
25792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25793 # splitting by setting IFS to empty value.)
25796 # Find who we are. Look in the path if we contain no directory separator.
25798 *[\\/]* ) as_myself=$0 ;;
25799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25800 for as_dir in $PATH
25803 test -z "$as_dir" && as_dir=.
25804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25810 # We did not find ourselves, most probably we were run as `sh COMMAND'
25811 # in which case we are not to be found in the path.
25812 if test "x$as_myself" = x
; then
25815 if test ! -f "$as_myself"; then
25816 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25820 # Unset variables that we do not need and which cause bugs (e.g. in
25821 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25822 # suppresses any "Segmentation fault" message there. '((' could
25823 # trigger a bug in pdksh 5.2.14.
25824 for as_var
in BASH_ENV ENV MAIL MAILPATH
25825 do eval test x\
${$as_var+set} = xset \
25826 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25839 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25842 # as_fn_error ERROR [LINENO LOG_FD]
25843 # ---------------------------------
25844 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25845 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25846 # script with status $?, using 1 if that was 0.
25849 as_status
=$?
; test $as_status -eq 0 && as_status
=1
25851 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25852 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25854 $as_echo "$as_me: error: $1" >&2
25855 as_fn_exit
$as_status
25859 # as_fn_set_status STATUS
25860 # -----------------------
25861 # Set $? to STATUS, without forking.
25862 as_fn_set_status
()
25865 } # as_fn_set_status
25867 # as_fn_exit STATUS
25868 # -----------------
25869 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25873 as_fn_set_status
$1
25879 # Portably unset VAR.
25882 { eval $1=; unset $1;}
25884 as_unset
=as_fn_unset
25885 # as_fn_append VAR VALUE
25886 # ----------------------
25887 # Append the text in VALUE to the end of the definition contained in VAR. Take
25888 # advantage of any shell optimizations that allow amortized linear growth over
25889 # repeated appends, instead of the typical quadratic growth present in naive
25891 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25892 eval 'as_fn_append ()
25903 # as_fn_arith ARG...
25904 # ------------------
25905 # Perform arithmetic evaluation on the ARGs, and store the result in the
25906 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25907 # must be portable across $(()) and expr.
25908 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25909 eval 'as_fn_arith ()
25916 as_val
=`expr "$@" || test $? -eq 1`
25921 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25922 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25928 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25929 as_basename
=basename
25934 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25940 as_me
=`$as_basename -- "$0" ||
25941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25942 X"$0" : 'X\(//\)$' \| \
25943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25945 sed '/^.*\/\([^/][^/]*\)\/*$/{
25959 # Avoid depending upon Character Ranges.
25960 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25961 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25962 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25963 as_cr_digits
='0123456789'
25964 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25966 ECHO_C
= ECHO_N
= ECHO_T
=
25967 case `echo -n x` in #(((((
25969 case `echo 'xy\c'` in
25970 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25972 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25979 rm -f conf$$ conf$$.exe conf$$.
file
25980 if test -d conf$$.dir
; then
25981 rm -f conf$$.dir
/conf$$.
file
25984 mkdir conf$$.dir
2>/dev
/null
25986 if (echo >conf$$.
file) 2>/dev
/null
; then
25987 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25989 # ... but there are two gotchas:
25990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25992 # In both cases, we have to default to `cp -p'.
25993 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25995 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26003 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26004 rmdir conf$$.dir
2>/dev
/null
26009 # Create "$as_dir" as a directory, including parents if necessary.
26014 -*) as_dir
=.
/$as_dir;;
26016 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26020 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26021 *) as_qdir
=$as_dir;;
26023 as_dirs
="'$as_qdir' $as_dirs"
26024 as_dir
=`$as_dirname -- "$as_dir" ||
26025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26026 X"$as_dir" : 'X\(//\)[^/]' \| \
26027 X"$as_dir" : 'X\(//\)$' \| \
26028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26029 $as_echo X"$as_dir" |
26030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26034 /^X\(\/\/\)[^/].*/{
26047 test -d "$as_dir" && break
26049 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26050 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26054 if mkdir
-p .
2>/dev
/null
; then
26055 as_mkdir_p
='mkdir -p "$as_dir"'
26057 test -d .
/-p && rmdir .
/-p
26061 if test -x / >/dev
/null
2>&1; then
26062 as_test_x
='test -x'
26064 if ls -dL / >/dev
/null
2>&1; then
26071 if test -d "$1"; then
26077 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26078 ???[sx]*):;;*)false;;esac;fi
26082 as_executable_p
=$as_test_x
26084 # Sed expression to map a string onto a valid CPP name.
26085 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26087 # Sed expression to map a string onto a valid variable name.
26088 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26092 ## ----------------------------------- ##
26093 ## Main body of $CONFIG_STATUS script. ##
26094 ## ----------------------------------- ##
26096 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26099 # Save the log message, to keep $0 and so on meaningful, and to
26100 # report actual input values of CONFIG_FILES etc. instead of their
26101 # values after options handling.
26103 This file was extended by $as_me, which was
26104 generated by GNU Autoconf 2.64. Invocation command line was
26106 CONFIG_FILES = $CONFIG_FILES
26107 CONFIG_HEADERS = $CONFIG_HEADERS
26108 CONFIG_LINKS = $CONFIG_LINKS
26109 CONFIG_COMMANDS = $CONFIG_COMMANDS
26112 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26117 case $ac_config_files in *"
26118 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26121 case $ac_config_headers in *"
26122 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26127 # Files that config.status was made for.
26128 config_files="$ac_config_files"
26129 config_headers="$ac_config_headers"
26130 config_commands="$ac_config_commands"
26134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26136 \`$as_me' instantiates files and other configuration actions
26137 from templates according to the current configuration. Unless the files
26138 and actions are specified as TAGs, all are instantiated by default.
26140 Usage: $0 [OPTION]... [TAG]...
26142 -h, --help print this help, then exit
26143 -V, --version print version number and configuration settings, then exit
26144 -q, --quiet, --silent
26145 do not print progress messages
26146 -d, --debug don't remove temporary files
26147 --recheck update $as_me by reconfiguring in the same conditions
26148 --file=FILE[:TEMPLATE]
26149 instantiate the configuration file FILE
26150 --header=FILE[:TEMPLATE]
26151 instantiate the configuration header FILE
26153 Configuration files:
26156 Configuration headers:
26159 Configuration commands:
26162 Report bugs to the package provider."
26165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26168 configured by $0, generated by GNU Autoconf 2.64,
26169 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26171 Copyright (C) 2009 Free Software Foundation, Inc.
26172 This config.status script is free software; the Free Software Foundation
26173 gives unlimited permission to copy, distribute and modify it."
26178 test -n "\$AWK" || AWK=awk
26181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26182 # The default lists apply if the user does not specify any file.
26188 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26189 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26200 # Handling of the options.
26201 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26203 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26204 $as_echo "$ac_cs_version"; exit ;;
26205 --debug |
--debu |
--deb |
--de |
--d |
-d )
26207 --file |
--fil |
--fi |
--f )
26210 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26212 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26213 ac_need_defaults
=false
;;
26214 --header |
--heade |
--head |
--hea )
26217 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26219 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26220 ac_need_defaults
=false
;;
26222 # Conflict between --help and --header
26223 as_fn_error
"ambiguous option: \`$1'
26224 Try \`$0 --help' for more information.";;
26225 --help |
--hel |
-h )
26226 $as_echo "$ac_cs_usage"; exit ;;
26227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26228 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26231 # This is an error.
26232 -*) as_fn_error
"unrecognized option: \`$1'
26233 Try \`$0 --help' for more information." ;;
26235 *) as_fn_append ac_config_targets
" $1"
26236 ac_need_defaults
=false
;;
26242 ac_configure_extra_args
=
26244 if $ac_cs_silent; then
26246 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26251 if \$ac_cs_recheck; then
26252 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26254 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26255 CONFIG_SHELL='$SHELL'
26256 export CONFIG_SHELL
26261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26266 ## Running $as_me. ##
26272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26282 # Handling of arguments.
26283 for ac_config_target
in $ac_config_targets
26285 case $ac_config_target in
26286 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26287 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26288 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26289 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26290 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26291 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26293 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26298 # If the user did not use the arguments to specify the items to instantiate,
26299 # then the envvar interface is used. Set only those that are not.
26300 # We use the long form for the default assignment because of an extremely
26301 # bizarre bug on SunOS 4.1.3.
26302 if $ac_need_defaults; then
26303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26308 # Have a temporary directory for convenience. Make it in the build tree
26309 # simply because there is no reason against having it here, and in addition,
26310 # creating and moving files from /tmp can sometimes cause problems.
26311 # Hook for its removal unless debugging.
26312 # Note that there is a small window in which the directory will not be cleaned:
26313 # after its creation but before its name has been assigned to `$tmp'.
26317 trap 'exit_status=$?
26318 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26320 trap 'as_fn_exit 1' 1 2 13 15
26322 # Create a (secure) tmp directory for tmp files.
26325 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26326 test -n "$tmp" && test -d "$tmp"
26329 tmp
=.
/conf$$
-$RANDOM
26330 (umask 077 && mkdir
"$tmp")
26331 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26333 # Set up the scripts for CONFIG_FILES section.
26334 # No need to generate them if there are no CONFIG_FILES.
26335 # This happens for instance with `./config.status config.h'.
26336 if test -n "$CONFIG_FILES"; then
26338 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26339 ac_cs_awk_getline
=:
26340 ac_cs_awk_pipe_init
=
26341 ac_cs_awk_read_file
='
26342 while ((getline aline < (F[key])) > 0)
26345 ac_cs_awk_pipe_fini
=
26347 ac_cs_awk_getline
=false
26348 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26349 ac_cs_awk_read_file
='
26351 print "cat " F[key] " &&"
26352 '$ac_cs_awk_pipe_init
26353 # The final `:' finishes the AND list.
26354 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26356 ac_cr
=`echo X | tr X '\015'`
26357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26358 # But we know of no other shell where ac_cr would be empty at this
26359 # point, so we can use a bashism as a fallback.
26360 if test "x$ac_cr" = x
; then
26361 eval ac_cr
=\$
\'\\r
\'
26363 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26367 ac_cs_awk_cr
=$ac_cr
26370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26373 # Create commands to substitute file output variables.
26375 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26376 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26377 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26380 } >conf$
$files.sh
&&
26381 . .
/conf$
$files.sh ||
26382 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26383 rm -f conf$
$files.sh
26386 echo "cat >conf$$subs.awk <<_ACEOF" &&
26387 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26389 } >conf$$subs.sh ||
26390 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26391 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26393 for ac_last_try in false false false false false :; do
26394 . ./conf$$subs.sh ||
26395 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26397 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26398 if test $ac_delim_n = $ac_delim_num; then
26400 elif $ac_last_try; then
26401 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26403 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26406 rm -f conf$$subs.sh
26408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26409 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26413 s/^/S["/; s
/!.
*/"]=/
26423 s/\(.\{148\}\).*/\1/
26425 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26430 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26437 s/\(.\{148\}\).*/\1/
26439 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26443 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26448 ' <conf$$subs.awk | sed '
26453 ' >>$CONFIG_STATUS || ac_write_fail=1
26454 rm -f conf$$subs.awk
26455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26457 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26458 for (key in S) S_is_set[key] = 1
26460 \$ac_cs_awk_pipe_init
26464 nfields = split(line, field, "@
")
26466 len = length(field[1])
26467 for (i = 2; i < nfields; i++) {
26469 keylen = length(key)
26470 if (S_is_set[key]) {
26472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26473 len += length(value) + length(field[++i])
26478 if (nfields == 3 && !substed) {
26480 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26481 \$ac_cs_awk_read_file
26487 \$ac_cs_awk_pipe_fini
26490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26491 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26492 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26495 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26496 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26499 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26500 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26501 # trailing colons and then remove the whole line if VPATH becomes empty
26502 # (actually we leave an empty line to preserve line numbers).
26503 if test "x
$srcdir" = x.; then
26504 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26505 s/:*\$(srcdir):*/:/
26506 s/:*\${srcdir}:*/:/
26508 s/^\([^=]*=[ ]*\):*/\1/
26514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26515 fi # test -n "$CONFIG_FILES"
26517 # Set up the scripts for CONFIG_HEADERS section.
26518 # No need to generate them if there are no CONFIG_HEADERS.
26519 # This happens for instance with `./config.status Makefile'.
26520 if test -n "$CONFIG_HEADERS"; then
26521 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26525 # Transform confdefs.h into an awk script `defines.awk', embedded as
26526 # here-document in config.status, that substitutes the proper values into
26527 # config.h.in to produce config.h.
26529 # Create a delimiter string that does not exist in confdefs.h, to ease
26530 # handling of long lines.
26532 for ac_last_try in false false :; do
26533 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26534 if test -z "$ac_t"; then
26536 elif $ac_last_try; then
26537 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26539 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26543 # For the awk script, D is an array of macro values keyed by name,
26544 # likewise P contains macro parameters if any. Preserve backslash
26545 # newline sequences.
26547 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26549 s/.\{148\}/&'"$ac_delim"'/g
26552 s/^[ ]*#[ ]*define[ ][ ]*/ /
26559 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26561 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26565 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26566 D["\
1"]=" \
3\\\\\\n
"\\/p
26568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26573 s/.\{148\}/&'"$ac_delim"'/g
26578 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26581 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26583 ' <confdefs.h | sed '
26584 s/'"$ac_delim"'/"\\\
26585 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26588 for (key in D) D_is_set[key] = 1
26591 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26593 split(line, arg, " ")
26594 if (arg[1] == "#") {
26598 defundef
= substr
(arg
[1], 2)
26601 split(mac1
, mac2
, "(") #)
26603 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26604 if (D_is_set
[macro
]) {
26605 # Preserve the white space surrounding the "#".
26606 print prefix
"define", macro P
[macro
] D
[macro
]
26609 # Replace #undef with comments. This is necessary, for example,
26610 # in the case of _POSIX_SOURCE, which is predefined and required
26611 # on some systems where configure will not decide to define it.
26612 if (defundef
== "undef") {
26613 print
"/*", prefix defundef
, macro
, "*/"
26621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26622 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26623 fi # test -n "$CONFIG_HEADERS"
26626 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26631 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26633 case $ac_mode$ac_tag in
26635 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26636 :[FH
]-) ac_tag
=-:-;;
26637 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26654 -) ac_f
="$tmp/stdin";;
26655 *) # Look for the file first in the build tree, then in the source tree
26656 # (if the path is not absolute). The absolute path cannot be DOS-style,
26657 # because $ac_f cannot contain `:'.
26661 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26663 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26665 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26666 as_fn_append ac_file_inputs
" '$ac_f'"
26669 # Let's still pretend it is `configure' which instantiates (i.e., don't
26670 # use $as_me), people would be surprised to read:
26671 # /* config.h. Generated by config.status. */
26672 configure_input
='Generated from '`
26673 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26675 if test x
"$ac_file" != x-
; then
26676 configure_input
="$ac_file. $configure_input"
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26678 $as_echo "$as_me: creating $ac_file" >&6;}
26680 # Neutralize special characters interpreted by sed in replacement strings.
26681 case $configure_input in #(
26682 *\
&* |
*\|
* |
*\\* )
26683 ac_sed_conf_input
=`$as_echo "$configure_input" |
26684 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26685 *) ac_sed_conf_input
=$configure_input;;
26689 *:-:* |
*:-) cat >"$tmp/stdin" \
26690 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26695 ac_dir
=`$as_dirname -- "$ac_file" ||
26696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26697 X"$ac_file" : 'X\(//\)[^/]' \| \
26698 X"$ac_file" : 'X\(//\)$' \| \
26699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26700 $as_echo X"$ac_file" |
26701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26705 /^X\(\/\/\)[^/].*/{
26718 as_dir
="$ac_dir"; as_fn_mkdir_p
26722 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26724 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26725 # A ".." for each directory in $ac_dir_suffix.
26726 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26727 case $ac_top_builddir_sub in
26728 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26729 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26732 ac_abs_top_builddir
=$ac_pwd
26733 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26734 # for backward compatibility:
26735 ac_top_builddir
=$ac_top_build_prefix
26738 .
) # We are building in place.
26740 ac_top_srcdir
=$ac_top_builddir_sub
26741 ac_abs_top_srcdir
=$ac_pwd ;;
26742 [\\/]* | ?
:[\\/]* ) # Absolute name.
26743 ac_srcdir
=$srcdir$ac_dir_suffix;
26744 ac_top_srcdir
=$srcdir
26745 ac_abs_top_srcdir
=$srcdir ;;
26746 *) # Relative name.
26747 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26748 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26749 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26751 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26763 # If the template does not know about datarootdir, expand it.
26764 # FIXME: This hack should be removed a few years after 2.60.
26765 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26776 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26777 *datarootdir
*) ac_datarootdir_seen
=yes;;
26778 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26780 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26783 ac_datarootdir_hack='
26784 s&@datadir@&$datadir&g
26785 s&@docdir@&$docdir&g
26786 s&@infodir@&$infodir&g
26787 s&@localedir@&$localedir&g
26788 s&@mandir@&$mandir&g
26789 s&\\\${datarootdir}&$datarootdir&g' ;;
26793 # Neutralize VPATH when `$srcdir' = `.'.
26794 # Shell code in configure.ac might set extrasub.
26795 # FIXME: do we really want to maintain this feature?
26796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26797 ac_sed_extra="$ac_vpsub
26800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26802 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26803 s|@configure_input@|
$ac_sed_conf_input|
;t t
26804 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26805 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26806 s
&@srcdir@
&$ac_srcdir&;t t
26807 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26808 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26809 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26810 s
&@builddir@
&$ac_builddir&;t t
26811 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26812 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26813 $ac_datarootdir_hack
26815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26816 if $ac_cs_awk_getline; then
26817 $AWK -f "$tmp/subs.
awk"
26819 $AWK -f "$tmp/subs.
awk" | $SHELL
26821 || as_fn_error "could not create
$ac_file" "$LINENO" 5
26823 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26824 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26827 which seems to be undefined. Please make sure it is defined." >&5
26828 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26829 which seems to be undefined. Please make sure it is defined." >&2;}
26833 -) cat "$tmp/out" && rm -f "$tmp/out";;
26834 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26836 || as_fn_error "could not create $ac_file" "$LINENO" 5
26842 if test x"$ac_file" != x-; then
26844 $as_echo "/* $configure_input */" \
26845 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26846 } >"$tmp/config.h" \
26847 || as_fn_error "could not create $ac_file" "$LINENO" 5
26848 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26850 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26853 mv "$tmp/config.h" "$ac_file" \
26854 || as_fn_error "could not create $ac_file" "$LINENO" 5
26857 $as_echo "/* $configure_input */" \
26858 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26859 || as_fn_error "could not create -" "$LINENO" 5
26863 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26864 $as_echo "$as_me: executing $ac_file commands" >&6;}
26869 case $ac_file$ac_mode in
26870 "as":F) chmod +x as ;;
26871 "collect-ld":F) chmod +x collect-ld ;;
26872 "nm":F) chmod +x nm ;;
26874 case ${CONFIG_HEADERS} in
26875 *auto-host.h:config.in*)
26878 # Make sure all the subdirs exist.
26879 for d in $subdirs doc build
26881 test -d $d || mkdir $d
26891 ac_clean_files=$ac_clean_files_save
26893 test $ac_write_fail = 0 ||
26894 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26897 # configure is writing to config.log, and then calls config.status.
26898 # config.status does its own redirection, appending to config.log.
26899 # Unfortunately, on DOS this fails, as config.log is still kept open
26900 # by configure, so config.status won't be able to
write to it
; its
26901 # output is simply discarded. So we exec the FD to /dev/null,
26902 # effectively closing config.log, so it can be properly (re)opened and
26903 # appended to by config.status. When coming back to configure, we
26904 # need to make the FD available again.
26905 if test "$no_create" != yes; then
26907 ac_config_status_args
=
26908 test "$silent" = yes &&
26909 ac_config_status_args
="$ac_config_status_args --quiet"
26911 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26913 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26914 # would make configure fail if this is the last instruction.
26915 $ac_cs_success || as_fn_exit $?
26917 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26919 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}