2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="tree.c"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
710 valgrind_path_defines
716 TARGET_SYSTEM_ROOT_DEFINE
717 CROSS_SYSTEM_HEADER_DIR
769 ORIGINAL_AS_FOR_TARGET
771 ORIGINAL_LD_FOR_TARGET
773 ORIGINAL_NM_FOR_TARGET
775 ORIGINAL_OBJDUMP_FOR_TARGET
790 all_gtfiles_files_langs
791 all_gtfiles_files_files
797 build_install_headers_dir
799 build_xm_include_list
803 quoted_cc_set_by_configure
831 stage_prefix_set_by_configure
832 quoted_stage_prefix_set_by_configure
849 ac_subst_files
='language_hooks'
851 enable_option_checking
855 enable_generated_files_in_srcdir
864 enable_mapped_location
866 enable_gather_detailed_mem_stats
881 enable_initfini_array
882 enable_sjlj_exceptions
883 with_system_libunwind
885 enable_win32_registry
888 enable_maintainer_mode
889 enable_version_specific_runtime_libs
892 ac_precious_vars
='build_alias
905 # Initialize some variables set by options.
907 ac_init_version
=false
908 ac_unrecognized_opts
=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
919 program_transform_name
=s
,x
,x
,
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir
='${exec_prefix}/bin'
934 sbindir
='${exec_prefix}/sbin'
935 libexecdir
='${exec_prefix}/libexec'
936 datarootdir
='${prefix}/share'
937 datadir
='${datarootdir}'
938 sysconfdir
='${prefix}/etc'
939 sharedstatedir
='${prefix}/com'
940 localstatedir
='${prefix}/var'
941 includedir
='${prefix}/include'
942 oldincludedir
='/usr/include'
943 docdir
='${datarootdir}/doc/${PACKAGE}'
944 infodir
='${datarootdir}/info'
949 libdir
='${exec_prefix}/lib'
950 localedir
='${datarootdir}/locale'
951 mandir
='${datarootdir}/man'
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\
$ac_option
965 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
977 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
980 -build |
--build |
--buil |
--bui |
--bu)
981 ac_prev
=build_alias
;;
982 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
983 build_alias
=$ac_optarg ;;
985 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
986 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
987 ac_prev
=cache_file
;;
988 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
989 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
990 cache_file
=$ac_optarg ;;
993 cache_file
=config.cache
;;
995 -datadir |
--datadir |
--datadi |
--datad)
997 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
998 datadir
=$ac_optarg ;;
1000 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1001 |
--dataroo |
--dataro |
--datar)
1002 ac_prev
=datarootdir
;;
1003 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1004 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1005 datarootdir
=$ac_optarg ;;
1007 -disable-* |
--disable-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_useropt_orig
=$ac_useropt
1014 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_
$ac_useropt"
1019 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep
=', ';;
1022 eval enable_
$ac_useropt=no
;;
1024 -docdir |
--docdir |
--docdi |
--doc |
--do)
1026 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1027 docdir
=$ac_optarg ;;
1029 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1031 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1032 dvidir
=$ac_optarg ;;
1034 -enable-* |
--enable-*)
1035 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1038 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_useropt_orig
=$ac_useropt
1041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_
$ac_useropt"
1046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep
=', ';;
1049 eval enable_
$ac_useropt=\
$ac_optarg ;;
1051 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1052 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1053 |
--exec |
--exe |
--ex)
1054 ac_prev
=exec_prefix
;;
1055 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1056 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1057 |
--exec=* |
--exe=* |
--ex=*)
1058 exec_prefix
=$ac_optarg ;;
1060 -gas |
--gas |
--ga |
--g)
1061 # Obsolete; use --with-gas.
1064 -help |
--help |
--hel |
--he |
-h)
1065 ac_init_help
=long
;;
1066 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1067 ac_init_help
=recursive
;;
1068 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1069 ac_init_help
=short
;;
1071 -host |
--host |
--hos |
--ho)
1072 ac_prev
=host_alias
;;
1073 -host=* |
--host=* |
--hos=* |
--ho=*)
1074 host_alias
=$ac_optarg ;;
1076 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1078 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1080 htmldir
=$ac_optarg ;;
1082 -includedir |
--includedir |
--includedi |
--included |
--include \
1083 |
--includ |
--inclu |
--incl |
--inc)
1084 ac_prev
=includedir
;;
1085 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1086 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1087 includedir
=$ac_optarg ;;
1089 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1091 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1092 infodir
=$ac_optarg ;;
1094 -libdir |
--libdir |
--libdi |
--libd)
1096 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1097 libdir
=$ac_optarg ;;
1099 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1100 |
--libexe |
--libex |
--libe)
1101 ac_prev
=libexecdir
;;
1102 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1103 |
--libexe=* |
--libex=* |
--libe=*)
1104 libexecdir
=$ac_optarg ;;
1106 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1107 ac_prev
=localedir
;;
1108 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1109 localedir
=$ac_optarg ;;
1111 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1112 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1113 ac_prev
=localstatedir
;;
1114 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1115 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1116 localstatedir
=$ac_optarg ;;
1118 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1120 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1121 mandir
=$ac_optarg ;;
1123 -nfp |
--nfp |
--nf)
1124 # Obsolete; use --without-fp.
1127 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1128 |
--no-cr |
--no-c |
-n)
1131 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1132 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1135 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1136 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1137 |
--oldin |
--oldi |
--old |
--ol |
--o)
1138 ac_prev
=oldincludedir
;;
1139 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1140 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1141 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1142 oldincludedir
=$ac_optarg ;;
1144 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1146 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1147 prefix
=$ac_optarg ;;
1149 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1150 |
--program-pre |
--program-pr |
--program-p)
1151 ac_prev
=program_prefix
;;
1152 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1153 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1154 program_prefix
=$ac_optarg ;;
1156 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1157 |
--program-suf |
--program-su |
--program-s)
1158 ac_prev
=program_suffix
;;
1159 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1160 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1161 program_suffix
=$ac_optarg ;;
1163 -program-transform-name |
--program-transform-name \
1164 |
--program-transform-nam |
--program-transform-na \
1165 |
--program-transform-n |
--program-transform- \
1166 |
--program-transform |
--program-transfor \
1167 |
--program-transfo |
--program-transf \
1168 |
--program-trans |
--program-tran \
1169 |
--progr-tra |
--program-tr |
--program-t)
1170 ac_prev
=program_transform_name
;;
1171 -program-transform-name=* |
--program-transform-name=* \
1172 |
--program-transform-nam=* |
--program-transform-na=* \
1173 |
--program-transform-n=* |
--program-transform-=* \
1174 |
--program-transform=* |
--program-transfor=* \
1175 |
--program-transfo=* |
--program-transf=* \
1176 |
--program-trans=* |
--program-tran=* \
1177 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1178 program_transform_name
=$ac_optarg ;;
1180 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1182 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1183 pdfdir
=$ac_optarg ;;
1185 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1187 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1190 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1191 |
-silent |
--silent |
--silen |
--sile |
--sil)
1194 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1196 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1198 sbindir
=$ac_optarg ;;
1200 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1201 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1202 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1204 ac_prev
=sharedstatedir
;;
1205 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1206 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1207 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1209 sharedstatedir
=$ac_optarg ;;
1211 -site |
--site |
--sit)
1213 -site=* |
--site=* |
--sit=*)
1216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1219 srcdir
=$ac_optarg ;;
1221 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1222 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1223 ac_prev
=sysconfdir
;;
1224 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1225 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1226 sysconfdir
=$ac_optarg ;;
1228 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1229 ac_prev
=target_alias
;;
1230 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1231 target_alias
=$ac_optarg ;;
1233 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1236 -version |
--version |
--versio |
--versi |
--vers |
-V)
1237 ac_init_version
=: ;;
1240 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=\
$ac_optarg ;;
1256 -without-* |
--without-*)
1257 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1260 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1261 { (exit 1); exit 1; }; }
1262 ac_useropt_orig
=$ac_useropt
1263 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep
=', ';;
1271 eval with_
$ac_useropt=no
;;
1274 # Obsolete; use --with-x.
1277 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1278 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1279 ac_prev
=x_includes
;;
1280 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1281 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1282 x_includes
=$ac_optarg ;;
1284 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1285 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1286 ac_prev
=x_libraries
;;
1287 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1288 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1289 x_libraries
=$ac_optarg ;;
1291 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293 { (exit 1); exit 1; }; }
1297 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1300 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301 { (exit 1); exit 1; }; }
1302 eval $ac_envvar=\
$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316 if test -n "$ac_prev"; then
1317 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1318 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1319 { (exit 1); exit 1; }; }
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1325 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1326 { (exit 1); exit 1; }; } ;;
1327 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 # Check all directory arguments for consistency.
1332 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val
=\$
$ac_var
1338 # Remove trailing slashes.
1341 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\
$ac_val;;
1344 # Be sure to have absolute directory names.
1346 [\\/$
]* | ?
:[\\/]* ) continue;;
1347 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1349 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350 { (exit 1); exit 1; }; }
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1358 target
=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x
; then
1362 if test "x$build_alias" = x
; then
1363 cross_compiling
=maybe
1364 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365 If a cross compiler is detected then cross compile mode will be used." >&2
1366 elif test "x$build_alias" != "x$host_alias"; then
1372 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1374 test "$silent" = yes && exec 6>/dev
/null
1377 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di
=`ls -di .` &&
1379 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1380 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1381 { (exit 1); exit 1; }; }
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1384 { (exit 1); exit 1; }; }
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted
=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir
=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1419 ac_srcdir_defaulted
=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1423 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424 { (exit 1); exit 1; }; }
1426 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1429 { (exit 1); exit 1; }; }
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1439 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 for ac_var
in $ac_precious_vars; do
1442 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1444 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1455 \`configure' configures this package to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1518 --build=BUILD configure
for building on BUILD
[guessed
]
1519 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1520 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1524 if test -n "$ac_init_help"; then
1529 --disable-option-checking ignore unrecognized
--enable/--with options
1530 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1531 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1532 --enable-generated-files-in-srcdir
1533 put copies of generated files
in source dir
1534 intended
for creating
source tarballs
for users
1535 without texinfo bison or flex.
1536 --enable-werror-always enable -Werror always
1537 --enable-werror enable -Werror in bootstrap stage2 and later
1538 --enable-checking=LIST
1539 enable expensive run-time checks. With LIST
,
1540 enable only specific categories of checks.
1541 Categories are
: yes,no
,all
,none
,release.
1542 Flags are
: assert
,fold,gc
,gcac
,misc
,
1543 rtlflag
,rtl
,runtime
,tree
,valgrind.
1544 --enable-mapped-location location_t is fileline integer cookie
1545 --enable-coverage=LEVEL
1546 enable compiler
's code coverage collection.
1547 Use to measure compiler performance and locate
1548 unused parts of the compiler. With LEVEL, specify
1549 optimization. Values are opt, noopt,
1551 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1552 --enable-multilib enable library support for multiple ABIs
1553 --enable-__cxa_atexit enable __cxa_atexit for C++
1554 --enable-threads enable thread usage for target GCC
1555 --enable-threads=LIB use LIB thread package for target GCC
1556 --enable-tls enable or disable generation of tls code
1557 overriding the assembler check for tls support
1558 --enable-objc-gc enable the use of Boehm's garbage collector with
1559 the GNU Objective-C runtime
1560 --disable-shared don
't provide a shared libgcc
1561 --enable-intermodule build the compiler in one step
1562 --enable-languages=LIST specify which front-ends to build
1563 --disable-rpath do not hardcode runtime library paths
1564 --enable-initfini-array use .init_array/.fini_array sections
1565 --enable-sjlj-exceptions
1566 arrange to use setjmp/longjmp exception handling
1567 --enable-secureplt enable -msecure-plt by default for PowerPC
1568 --disable-win32-registry
1569 disable lookup of installation paths in the
1570 Registry on Windows hosts
1571 --enable-win32-registry enable registry lookup (default)
1572 --enable-win32-registry=KEY
1573 use KEY instead of GCC version as the last portion
1575 --enable-maintainer-mode
1576 enable make rules and dependencies not useful
1577 (and sometimes confusing) to the casual installer
1578 --enable-version-specific-runtime-libs
1579 specify that runtime libraries should be
1580 installed in a compiler-specific directory
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-local-prefix=DIR specifies directory to put local include
1586 --with-gxx-include-dir=DIR
1587 specifies directory to put g++ header files
1588 --with-cpp-install-dir=DIR
1589 install the user visible C preprocessor in DIR
1590 (relative to PREFIX) as well as PREFIX/bin
1591 --with-gnu-ld arrange to work with GNU ld.
1592 --with-ld arrange to use the specified ld (full pathname)
1593 --with-demangler-in-ld try to use demangler in GNU ld.
1594 --with-gnu-as arrange to work with GNU as
1595 --with-as arrange to use the specified as (full pathname)
1596 --with-stabs arrange to use stabs instead of host debug format
1597 --with-dwarf2 force the default debug format to be DWARF 2
1598 --with-build-sysroot=sysroot
1599 use sysroot as the system root during the build
1600 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1601 --with-gnu-ld assume the C compiler uses GNU ld default=no
1602 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1603 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1604 --with-system-libunwind use installed libunwind
1605 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1607 --with-system-zlib use installed libz
1608 --with-slibdir=DIR shared libraries
in DIR LIBDIR
1610 Some influential environment variables
:
1611 CC C compiler
command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1614 nonstandard directory
<lib dir
>
1615 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1616 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1617 you have headers
in a nonstandard directory
<include dir
>
1619 GMPLIBS How to link GMP
1620 GMPINC How to
find GMP include files
1622 Use these variables to override the choices made by
`configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" ||
1633 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1641 # A ".." for each directory in $ac_dir_suffix.
1642 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1643 case $ac_top_builddir_sub in
1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1654 .) # We are building in place.
1656 ac_top_srcdir=$ac_top_builddir_sub
1657 ac_abs_top_srcdir=$ac_pwd ;;
1658 [\\/]* | ?:[\\/]* ) # Absolute name.
1659 ac_srcdir=$srcdir$ac_dir_suffix;
1660 ac_top_srcdir=$srcdir
1661 ac_abs_top_srcdir=$srcdir ;;
1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664 ac_top_srcdir=$ac_top_build_prefix$srcdir
1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669 cd "$ac_dir" || { ac_status=$?; continue; }
1670 # Check for guested configure.
1671 if test -f "$ac_srcdir/configure.gnu"; then
1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674 elif test -f "$ac_srcdir/configure"; then
1676 $SHELL "$ac_srcdir/configure" --help=recursive
1678 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 cd "$ac_pwd" || { ac_status=$?; break; }
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1688 generated by GNU Autoconf 2.62
1690 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1691 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1697 cat >config.log <<_ACEOF
1698 This file contains any messages produced by compilers while
1699 running configure, to aid debugging if configure makes a mistake.
1701 It was created by $as_me, which was
1702 generated by GNU Autoconf 2.62. Invocation command line was
1714 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1715 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1716 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1717 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1718 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1720 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1721 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1723 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1724 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1725 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1726 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1727 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1728 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1729 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir=.
1738 $as_echo "PATH: $as_dir"
1754 # Keep a trace of the command line.
1755 # Strip out --no-create and --no-recursion so they do not pile up.
1756 # Strip out --silent because we don't want to record it for future runs.
1757 # Also quote any args containing shell meta-characters.
1758 # Make two passes to allow for proper duplicate-argument suppression.
1762 ac_must_keep_next=false
1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770 | -silent | --silent | --silen | --sile | --sil)
1773 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779 if test $ac_must_keep_next = true; then
1780 ac_must_keep_next=false # Got value, back to normal.
1783 *=* | --config-cache | -C | -disable-* | --disable-* \
1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786 | -with-* | --with-* | -without-* | --without-* | --x)
1787 case "$ac_configure_args0 " in
1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1791 -* ) ac_must_keep_next=true ;;
1794 ac_configure_args="$ac_configure_args '$ac_arg'"
1799 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1802 # When interrupted or exit'd, cleanup temporary files, and complete
1803 # config.log. We remove comments because anyway the quotes in there
1804 # would cause problems or look ugly.
1805 # WARNING: Use '\'' to represent an apostrophe within the trap.
1806 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807 trap 'exit_status=$?
1808 # Save into config.log some information that might help in debugging.
1813 ## ---------------- ##
1814 ## Cache variables. ##
1815 ## ---------------- ##
1818 # The following way of writing the cache mishandles newlines in values,
1820 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1821 eval ac_val=\$$ac_var
1825 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1829 _ | IFS | as_nl) ;; #(
1830 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1831 *) $as_unset $ac_var ;;
1836 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1837 *${as_nl}ac_space=\ *)
1839 "s/'\''/'\''\\\\'\'''\''/g;
1840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851 ## ----------------- ##
1852 ## Output variables. ##
1853 ## ----------------- ##
1856 for ac_var in $ac_subst_vars
1858 eval ac_val=\$$ac_var
1860 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862 $as_echo "$ac_var='\''$ac_val'\''"
1866 if test -n "$ac_subst_files"; then
1868 ## ------------------- ##
1869 ## File substitutions. ##
1870 ## ------------------- ##
1873 for ac_var in $ac_subst_files
1875 eval ac_val=\$$ac_var
1877 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 $as_echo "$ac_var='\''$ac_val'\''"
1884 if test -s confdefs.h; then
1894 test "$ac_signal" != 0 &&
1895 $as_echo "$as_me: caught signal $ac_signal"
1896 $as_echo "$as_me: exit $exit_status"
1898 rm -f core *.core core.conftest.* &&
1899 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1902 for ac_signal in 1 2 13 15; do
1903 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1907 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1908 rm -f -r conftest* confdefs.h
1910 # Predefined preprocessor variables.
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_NAME "$PACKAGE_NAME"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_STRING "$PACKAGE_STRING"
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1937 # Let the site file select an alternate cache file if it wants to.
1938 # Prefer an explicitly selected file to automatically selected ones.
1941 if test -n "$CONFIG_SITE"; then
1942 ac_site_file1=$CONFIG_SITE
1943 elif test "x$prefix" != xNONE; then
1944 ac_site_file1=$prefix/share/config.site
1945 ac_site_file2=$prefix/etc/config.site
1947 ac_site_file1=$ac_default_prefix/share/config.site
1948 ac_site_file2=$ac_default_prefix/etc/config.site
1950 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1952 test "x$ac_site_file" = xNONE && continue
1953 if test -r "$ac_site_file"; then
1954 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1955 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1956 sed 's/^/| /' "$ac_site_file" >&5
1961 if test -r "$cache_file"; then
1962 # Some versions of bash will fail to source /dev/null (special
1963 # files actually), so we avoid doing that.
1964 if test -f "$cache_file"; then
1965 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1966 $as_echo "$as_me: loading cache $cache_file" >&6;}
1968 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1969 *) . "./$cache_file";;
1973 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1974 $as_echo "$as_me: creating cache $cache_file" >&6;}
1978 # Check that the precious variables saved in the cache have kept the same
1980 ac_cache_corrupted=false
1981 for ac_var in $ac_precious_vars; do
1982 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1983 eval ac_new_set=\$ac_env_${ac_var}_set
1984 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1985 eval ac_new_val=\$ac_env_${ac_var}_value
1986 case $ac_old_set,$ac_new_set in
1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1989 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1993 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1994 ac_cache_corrupted=: ;;
1997 if test "x$ac_old_val" != "x$ac_new_val"; then
1998 # differences in whitespace do not lead to failure.
1999 ac_old_val_w=`echo x
$ac_old_val`
2000 ac_new_val_w=`echo x
$ac_new_val`
2001 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2002 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2004 ac_cache_corrupted=:
2006 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2007 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2008 eval $ac_var=\$ac_old_val
2010 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2011 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2012 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2013 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2016 # Pass precious variables to config.status.
2017 if test "$ac_new_set" = set; then
2019 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2020 *) ac_arg=$ac_var=$ac_new_val ;;
2022 case " $ac_configure_args " in
2023 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2024 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2028 if $ac_cache_corrupted; then
2029 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2030 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2031 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2032 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2033 { (exit 1); exit 1; }; }
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2063 gcc_version=`cat $srcdir/BASE-VER
`
2065 # Determine the host, build, and target systems
2067 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2068 if test -f "$ac_dir/install-sh"; then
2070 ac_install_sh="$ac_aux_dir/install-sh -c"
2072 elif test -f "$ac_dir/install.sh"; then
2074 ac_install_sh="$ac_aux_dir/install.sh -c"
2076 elif test -f "$ac_dir/shtool"; then
2078 ac_install_sh="$ac_aux_dir/shtool install -c"
2082 if test -z "$ac_aux_dir"; then
2083 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2084 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2085 { (exit 1); exit 1; }; }
2088 # These three variables are undocumented and unsupported,
2089 # and are intended to be withdrawn in a future Autoconf release.
2090 # They can cause serious problems if a builder's source tree is in a directory
2091 # whose full name contains unusual characters.
2092 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2093 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2094 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097 # Make sure we can run config.sub.
2098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2099 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2100 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2101 { (exit 1); exit 1; }; }
2103 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2104 $as_echo_n "checking build system type... " >&6; }
2105 if test "${ac_cv_build+set}" = set; then
2106 $as_echo_n "(cached) " >&6
2108 ac_build_alias=$build_alias
2109 test "x$ac_build_alias" = x &&
2110 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2111 test "x$ac_build_alias" = x &&
2112 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2113 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2114 { (exit 1); exit 1; }; }
2115 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2116 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2118 { (exit 1); exit 1; }; }
2121 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2122 $as_echo "$ac_cv_build" >&6; }
2123 case $ac_cv_build in
2125 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2126 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2127 { (exit 1); exit 1; }; };;
2130 ac_save_IFS=$IFS; IFS='-'
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2140 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2143 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2144 $as_echo_n "checking host system type... " >&6; }
2145 if test "${ac_cv_host+set}" = set; then
2146 $as_echo_n "(cached) " >&6
2148 if test "x$host_alias" = x; then
2149 ac_cv_host=$ac_cv_build
2151 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2152 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2153 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2158 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2159 $as_echo "$ac_cv_host" >&6; }
2162 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2163 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2164 { (exit 1); exit 1; }; };;
2167 ac_save_IFS=$IFS; IFS='-'
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2177 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2180 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2181 $as_echo_n "checking target system type... " >&6; }
2182 if test "${ac_cv_target+set}" = set; then
2183 $as_echo_n "(cached) " >&6
2185 if test "x$target_alias" = x; then
2186 ac_cv_target=$ac_cv_host
2188 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2189 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2190 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2191 { (exit 1); exit 1; }; }
2195 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2196 $as_echo "$ac_cv_target" >&6; }
2197 case $ac_cv_target in
2199 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2200 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2201 { (exit 1); exit 1; }; };;
2203 target=$ac_cv_target
2204 ac_save_IFS=$IFS; IFS='-'
2210 # Remember, the first character of IFS is used to create $*,
2211 # except with old shells:
2214 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2217 # The aliases save the names the user supplied, while $host etc.
2218 # will get canonicalized.
2219 test -n "$target_alias" &&
2220 test "$program_prefix$program_suffix$program_transform_name" = \
2222 program_prefix=${target_alias}-
2224 # Determine the noncanonical target name, for directory use.
2225 case ${build_alias} in
2226 "") build_noncanonical=${build} ;;
2227 *) build_noncanonical=${build_alias} ;;
2230 case ${host_alias} in
2231 "") host_noncanonical=${build_noncanonical} ;;
2232 *) host_noncanonical=${host_alias} ;;
2235 case ${target_alias} in
2236 "") target_noncanonical=${host_noncanonical} ;;
2237 *) target_noncanonical=${target_alias} ;;
2243 # Determine the target- and build-specific subdirectories
2244 # Prefix 'build-' so this never conflicts with target_subdir.
2245 build_subdir="build-${build_noncanonical}"
2246 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2247 if ( test $srcdir = . && test -d gcc ) \
2248 || test -d $srcdir/../host-${host_noncanonical}; then
2249 host_subdir="host-${host_noncanonical}"
2254 target_subdir=${target_noncanonical}
2257 # Set program_transform_name
2258 test "$program_prefix" != NONE &&
2259 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2260 # Use a double $ so make ignores it.
2261 test "$program_suffix" != NONE &&
2262 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2263 # Double any \ or $.
2264 # By default was `s
,x
,x
', remove it if useless.
2265 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2266 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2269 # Check for bogus environment variables.
2270 # Test if LIBRARY_PATH contains the notation for the current directory
2271 # since this would lead to problems installing/building glibc.
2272 # LIBRARY_PATH contains the current directory if one of the following
2274 # - one of the terminals (":" and ";") is the first or last sign
2275 # - two terminals occur directly after each other
2276 # - the path contains an element with a dot in it
2277 { $as_echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2278 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
2279 case ${LIBRARY_PATH} in
2280 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2281 library_path_setting="contains current directory"
2284 library_path_setting="ok"
2287 { $as_echo "$as_me:$LINENO: result: $library_path_setting" >&5
2288 $as_echo "$library_path_setting" >&6; }
2289 if test "$library_path_setting" != "ok"; then
2290 { { $as_echo "$as_me:$LINENO: error:
2291 *** LIBRARY_PATH shouldn't contain the current directory when
2292 *** building gcc. Please change the environment variable
2293 *** and run configure again.
" >&5
2294 $as_echo "$as_me: error
:
2295 *** LIBRARY_PATH shouldn
't contain the current directory when
2296 *** building gcc. Please change the environment variable
2297 *** and run configure again." >&2;}
2298 { (exit 1); exit 1; }; }
2301 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2302 # since this would lead to problems installing/building glibc.
2303 # GCC_EXEC_PREFIX contains the current directory if one of the following
2305 # - one of the terminals (":" and ";") is the first or last sign
2306 # - two terminals occur directly after each other
2307 # - the path contains an element with a dot in it
2308 { $as_echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2309 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
2310 case ${GCC_EXEC_PREFIX} in
2311 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2312 gcc_exec_prefix_setting="contains current directory"
2315 gcc_exec_prefix_setting="ok"
2318 { $as_echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2319 $as_echo "$gcc_exec_prefix_setting" >&6; }
2320 if test "$gcc_exec_prefix_setting" != "ok"; then
2321 { { $as_echo "$as_me:$LINENO: error:
2322 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2323 *** building gcc. Please change the environment variable
2324 *** and run configure again.
" >&5
2325 $as_echo "$as_me: error
:
2326 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
2327 *** building gcc. Please change the environment variable
2328 *** and run configure again." >&2;}
2329 { (exit 1); exit 1; }; }
2336 # Specify the local prefix
2339 # Check whether --with-local-prefix was given.
2340 if test "${with_local_prefix+set}" = set; then
2341 withval=$with_local_prefix; case "${withval}" in
2342 yes) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2343 $as_echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2344 { (exit 1); exit 1; }; } ;;
2346 *) local_prefix=$with_local_prefix ;;
2351 # Default local prefix if it is empty
2352 if test x$local_prefix = x; then
2353 local_prefix=/usr/local
2356 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
2357 # passed in by the toplevel make and thus we'd get different behavior
2358 # depending on where we built the sources.
2359 gcc_gxx_include_dir
=
2360 # Specify the g++ header file directory
2362 # Check whether --with-gxx-include-dir was given.
2363 if test "${with_gxx_include_dir+set}" = set; then
2364 withval
=$with_gxx_include_dir; case "${withval}" in
2365 yes) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2366 $as_echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2367 { (exit 1); exit 1; }; } ;;
2369 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
2374 if test x
${gcc_gxx_include_dir} = x
; then
2375 if test x
${enable_version_specific_runtime_libs} = xyes
; then
2376 gcc_gxx_include_dir
='${libsubdir}/include/c++'
2378 libstdcxx_incdir
='c++/$(version)'
2379 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
2384 # Check whether --with-cpp_install_dir was given.
2385 if test "${with_cpp_install_dir+set}" = set; then
2386 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
2387 { { $as_echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2388 $as_echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2389 { (exit 1); exit 1; }; }
2390 elif test x
$withval != xno
; then
2391 cpp_install_dir
=$withval
2396 # We would like to our source tree to be readonly. However when releases or
2397 # pre-releases are generated, the flex/bison generated files as well as the
2398 # various formats of manuals need to be included along with the rest of the
2399 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2402 { $as_echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2403 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
2404 # Check whether --enable-generated-files-in-srcdir was given.
2405 if test "${enable_generated_files_in_srcdir+set}" = set; then
2406 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
2408 generated_files_in_srcdir
=no
2412 { $as_echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2413 $as_echo "$generated_files_in_srcdir" >&6; }
2415 if test "$generated_files_in_srcdir" = "yes"; then
2422 # -------------------
2423 # Find default linker
2424 # -------------------
2428 # Check whether --with-gnu-ld was given.
2429 if test "${with_gnu_ld+set}" = set; then
2430 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
2436 # With pre-defined ld
2438 # Check whether --with-ld was given.
2439 if test "${with_ld+set}" = set; then
2440 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
2443 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2444 if test ! -x "$DEFAULT_LINKER"; then
2445 { { $as_echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2446 $as_echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2447 { (exit 1); exit 1; }; }
2448 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2452 cat >>confdefs.h
<<_ACEOF
2453 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2458 { $as_echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2459 $as_echo_n "checking whether a default linker was specified... " >&6; }
2460 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2461 if test x
"$gnu_ld_flag" = x
"no"; then
2462 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2463 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
2465 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2466 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2469 { $as_echo "$as_me:$LINENO: result: no" >&5
2470 $as_echo "no" >&6; }
2473 # With demangler in GNU ld
2475 # Check whether --with-demangler-in-ld was given.
2476 if test "${with_demangler_in_ld+set}" = set; then
2477 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
2483 # ----------------------
2484 # Find default assembler
2485 # ----------------------
2489 # Check whether --with-gnu-as was given.
2490 if test "${with_gnu_as+set}" = set; then
2491 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
2498 # Check whether --with-as was given.
2499 if test "${with_as+set}" = set; then
2500 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
2503 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2504 if test ! -x "$DEFAULT_ASSEMBLER"; then
2505 { { $as_echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2506 $as_echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2507 { (exit 1); exit 1; }; }
2508 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2512 cat >>confdefs.h
<<_ACEOF
2513 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2518 { $as_echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2519 $as_echo_n "checking whether a default assembler was specified... " >&6; }
2520 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2521 if test x
"$gas_flag" = x
"no"; then
2522 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2523 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
2525 { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2526 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530 $as_echo "no" >&6; }
2537 # If a non-executable a.out is present (e.g. created by GNU as above even if
2538 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2539 # file, even when creating an executable, so an execution test fails.
2540 # Remove possible default executable files to avoid this.
2542 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2543 # Autoconf includes it.
2544 rm -f a.out a.exe b.out
2546 # Find the native compiler
2548 ac_cpp
='$CPP $CPPFLAGS'
2549 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558 $as_echo_n "(cached) " >&6
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC
="$CC" # Let the user override the test.
2563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir
=.
2568 for ac_exec_ext
in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test -n "$CC"; then
2582 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2583 $as_echo "$CC" >&6; }
2585 { $as_echo "$as_me:$LINENO: result: no" >&5
2586 $as_echo "no" >&6; }
2591 if test -z "$ac_cv_prog_CC"; then
2593 # Extract the first word of "gcc", so it can be a program name with args.
2594 set dummy gcc
; ac_word
=$2
2595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 $as_echo_n "(cached) " >&6
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir
=.
2608 for ac_exec_ext
in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_CC
="gcc"
2611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 $as_echo "$ac_ct_CC" >&6; }
2625 { $as_echo "$as_me:$LINENO: result: no" >&5
2626 $as_echo "no" >&6; }
2629 if test "x$ac_ct_CC" = x
; then
2632 case $cross_compiling:$ac_tool_warned in
2634 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&5
2637 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet. If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2640 ac_tool_warned
=yes ;;
2648 if test -z "$CC"; then
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2651 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC
="$CC" # Let the user override the test.
2660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir
=.
2665 for ac_exec_ext
in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 if test -n "$CC"; then
2679 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2689 if test -z "$CC"; then
2690 # Extract the first word of "cc", so it can be a program name with args.
2691 set dummy cc
; ac_word
=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709 ac_prog_rejected
=yes
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test $ac_prog_rejected = yes; then
2721 # We found a bogon in the path, so make sure we never use it.
2722 set dummy
$ac_cv_prog_CC
2724 if test $# != 0; then
2725 # We chose a different compiler from the bogus one.
2726 # However, it has the same basename, so the bogon will be chosen
2727 # first if we set CC to just the basename; use the full file name.
2729 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2745 if test -z "$CC"; then
2746 if test -n "$ac_tool_prefix"; then
2747 for ac_prog
in cl.exe
2749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC
="$CC" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2781 { $as_echo "$as_me:$LINENO: result: no" >&5
2782 $as_echo "no" >&6; }
2786 test -n "$CC" && break
2789 if test -z "$CC"; then
2791 for ac_prog
in cl.exe
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy
$ac_prog; ac_word
=$2
2795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir
=.
2808 for ac_exec_ext
in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC
="$ac_prog"
2811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823 $as_echo "$ac_ct_CC" >&6; }
2825 { $as_echo "$as_me:$LINENO: result: no" >&5
2826 $as_echo "no" >&6; }
2830 test -n "$ac_ct_CC" && break
2833 if test "x$ac_ct_CC" = x
; then
2836 case $cross_compiling:$ac_tool_warned in
2838 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2839 whose name does not start with the host triplet. If you think this
2840 configuration is useful to you, please write to autoconf@gnu.org." >&5
2841 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2842 whose name does not start with the host triplet. If you think this
2843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2844 ac_tool_warned
=yes ;;
2853 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&5
2855 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&2;}
2857 { (exit 1); exit 1; }; }
2859 # Provide some information about the compiler.
2860 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2863 { (ac_try
="$ac_compiler --version >&5"
2865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869 $as_echo "$ac_try_echo") >&5
2870 (eval "$ac_compiler --version >&5") 2>&5
2872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (ac_try="$ac_compiler -v >&5"
2876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2877 *) ac_try_echo
=$ac_try;;
2879 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881 (eval "$ac_compiler -v >&5") 2>&5
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
2885 { (ac_try
="$ac_compiler -V >&5"
2887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892 (eval "$ac_compiler -V >&5") 2>&5
2894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2912 ac_clean_files_save=$ac_clean_files
2913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914 # Try to create an executable without -o first, disregard a.out.
2915 # It will help us diagnose broken compilers, and finding out an intuition
2917 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2918 $as_echo_n "checking for C compiler default output file name... " >&6; }
2919 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2921 # The possible output files:
2922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2925 for ac_file in $ac_files
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2934 if { (ac_try="$ac_link_default"
2936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2937 *) ac_try_echo
=$ac_try;;
2939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_link_default") 2>&5
2943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2950 for ac_file
in $ac_files ''
2952 test -f "$ac_file" ||
continue
2954 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2957 # We found the default executable, but exeext='' is most
2961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2963 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 # We set ac_cv_exeext here because the later test for it is not
2966 # safe: cross compilers may not add the suffix if given an `-o'
2967 # argument, so we may need to know it at that point already.
2968 # Even if this section looks crufty: it has the advantage of
2975 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2981 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2982 $as_echo "$ac_file" >&6; }
2983 if test -z "$ac_file"; then
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.
$ac_ext >&5
2987 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&5
2989 $as_echo "$as_me: error: C compiler cannot create executables
2990 See \`config.log' for more details." >&2;}
2991 { (exit 77); exit 77; }; }
2994 ac_exeext
=$ac_cv_exeext
2996 # Check that the compiler produces executables we can run. If not, either
2997 # the compiler is broken, or we cross compile.
2998 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2999 $as_echo_n "checking whether the C compiler works... " >&6; }
3000 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3001 # If not cross compiling, check that we can run a simple program.
3002 if test "$cross_compiling" != yes; then
3003 if { ac_try
='./$ac_file'
3004 { (case "(($ac_try" in
3005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_try") 2>&5
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3016 if test "$cross_compiling" = maybe; then
3019 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3020 If you meant to cross compile, use \`--host'.
3021 See \`config.log' for more details.
" >&5
3022 $as_echo "$as_me: error
: cannot run C compiled programs.
3023 If you meant to cross compile
, use \
`--host'.
3024 See \`config.log
' for more details." >&2;}
3025 { (exit 1); exit 1; }; }
3029 { $as_echo "$as_me:$LINENO: result: yes" >&5
3030 $as_echo "yes" >&6; }
3032 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3033 ac_clean_files=$ac_clean_files_save
3034 # Check that the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3037 $as_echo_n "checking whether we are cross compiling... " >&6; }
3038 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3039 $as_echo "$cross_compiling" >&6; }
3041 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3042 $as_echo_n "checking for suffix of executables... " >&6; }
3043 if { (ac_try="$ac_link"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050 (eval "$ac_link") 2>&5
3052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; then
3054 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3055 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3056 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3058 for ac_file
in conftest.exe conftest conftest.
*; do
3059 test -f "$ac_file" ||
continue
3061 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3062 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&5
3070 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3075 rm -f conftest
$ac_cv_exeext
3076 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3077 $as_echo "$ac_cv_exeext" >&6; }
3079 rm -f conftest.
$ac_ext
3080 EXEEXT
=$ac_cv_exeext
3082 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3083 $as_echo_n "checking for suffix of object files... " >&6; }
3084 if test "${ac_cv_objext+set}" = set; then
3085 $as_echo_n "(cached) " >&6
3087 cat >conftest.
$ac_ext <<_ACEOF
3090 cat confdefs.h
>>conftest.
$ac_ext
3091 cat >>conftest.
$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3102 rm -f conftest.o conftest.obj
3103 if { (ac_try
="$ac_compile"
3105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3109 $as_echo "$ac_try_echo") >&5
3110 (eval "$ac_compile") 2>&5
3112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; then
3114 for ac_file in conftest.o conftest.obj conftest.*; do
3115 test -f "$ac_file" || continue;
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 $as_echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log
' for more details." >&5
3128 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details.
" >&2;}
3130 { (exit 1); exit 1; }; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3139 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 $as_echo_n "(cached
) " >&6
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3182 $as_echo "$as_me: failed program was
:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_save_CFLAGS=$CFLAGS
3201 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3202 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 $as_echo_n "(cached
) " >&6
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3245 $as_echo "$as_me: failed program was
:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3284 $as_echo "$as_me: failed program was
:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3324 $as_echo "$as_me: failed program was
:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3339 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3350 if test "$GCC" = yes; then
3356 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3357 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359 $as_echo_n "(cached
) " >&6
3361 ac_cv_prog_cc_c89=no
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3387 s = g (p, va_arg (v,int));
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_prog_cc_c89=$ac_arg
3444 $as_echo "$as_me: failed program was
:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f core conftest.err conftest.$ac_objext
3451 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3453 rm -f conftest.$ac_ext
3458 case "x
$ac_cv_prog_cc_c89" in
3460 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3461 $as_echo "none needed
" >&6; } ;;
3463 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3464 $as_echo "unsupported
" >&6; } ;;
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test "x
$CC" != xcc; then
3479 { $as_echo "$as_me:$LINENO: checking whether
$CC and cc understand
-c and
-o together
" >&5
3480 $as_echo_n "checking whether
$CC and cc understand
-c and
-o together...
" >&6; }
3482 { $as_echo "$as_me:$LINENO: checking whether cc understands
-c and
-o together
" >&5
3483 $as_echo_n "checking whether cc understands
-c and
-o together...
" >&6; }
3485 set dummy $CC; ac_cc=`$as_echo "$2" |
3486 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3487 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3488 $as_echo_n "(cached
) " >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3505 # Make sure it works both with $CC and with simple cc.
3506 # We do the test twice because some compilers refuse to overwrite an
3507 # existing .o file with -o, though they will create one.
3508 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3510 if { (case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3515 $as_echo "$ac_try_echo") >&5
3516 (eval "$ac_try") 2>&5
3518 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3519 (exit $ac_status); } &&
3520 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526 (eval "$ac_try") 2>&5
3528 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3529 (exit $ac_status); };
3531 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3532 if test "x
$CC" != xcc; then
3533 # Test first that cc exists at all.
3534 if { ac_try='cc -c conftest.$ac_ext >&5'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541 (eval "$ac_try") 2>&5
3543 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3547 if { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3552 $as_echo "$ac_try_echo") >&5
3553 (eval "$ac_try") 2>&5
3555 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3556 (exit $ac_status); } &&
3557 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563 (eval "$ac_try") 2>&5
3565 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3566 (exit $ac_status); };
3571 # cc exists but doesn't like -o.
3572 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3577 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3579 rm -f core conftest*
3582 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3583 { $as_echo "$as_me:$LINENO: result
: yes" >&5
3584 $as_echo "yes" >&6; }
3586 { $as_echo "$as_me:$LINENO: result
: no
" >&5
3587 $as_echo "no
" >&6; }
3589 cat >>confdefs.h <<\_ACEOF
3590 #define NO_MINUS_C_MINUS_O 1
3595 # expand $ac_aux_dir to an absolute path
3596 am_aux_dir=`cd $ac_aux_dir && pwd`
3598 # FIXME: we rely on the cache variable name because
3599 # there is no other way.
3601 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3602 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3603 # Losing compiler, so override with the script.
3604 # FIXME: It is wrong to rewrite CC.
3605 # But if we don't then we get into trouble of one sort or another.
3606 # A longer-term fix would be to have automake use am__CC in this case,
3607 # and then we could set am__CC="\$
(top_srcdir
)/compile \$
(CC
)"
3608 CC="$am_aux_dir/compile
$CC"
3611 # autoconf is lame and doesn't give us any substitution variable for this.
3612 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no
"; then
3613 NO_MINUS_C_MINUS_O=yes
3615 OUTPUT_OPTION='-o $@'
3620 # -------------------------
3621 # Check C compiler features
3622 # -------------------------
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3630 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3635 if test -z "$CPP"; then
3636 if test "${ac_cv_prog_CPP+set}" = set; then
3637 $as_echo_n "(cached
) " >&6
3639 # Double quotes because CPP needs to be expanded
3640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3643 for ac_c_preproc_warn_flag in '' yes
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error
" is here to catch this case.
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 # include <limits.h>
3660 # include <assert.h>
3664 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3670 $as_echo "$ac_try_echo") >&5
3671 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3677 (exit $ac_status); } >/dev/null && {
3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3683 $as_echo "$as_me: failed program was
:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 # Broken: fails on valid input.
3690 rm -f conftest.err conftest.$ac_ext
3692 # OK, works on sane cases. Now check whether nonexistent headers
3693 # can be detected and how.
3694 cat >conftest.$ac_ext <<_ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3702 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3715 (exit $ac_status); } >/dev/null && {
3716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3719 # Broken: success on invalid input.
3722 $as_echo "$as_me: failed program was
:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 # Passes both tests.
3730 rm -f conftest.err conftest.$ac_ext
3733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3734 rm -f conftest.err conftest.$ac_ext
3735 if $ac_preproc_ok; then
3747 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
3748 $as_echo "$CPP" >&6; }
3750 for ac_c_preproc_warn_flag in '' yes
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error
" is here to catch this case.
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3777 $as_echo "$ac_try_echo") >&5
3778 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3780 grep -v '^ *+' conftest.er1 >conftest.err
3782 cat conftest.err >&5
3783 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3784 (exit $ac_status); } >/dev/null && {
3785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3786 test ! -s conftest.err
3790 $as_echo "$as_me: failed program was
:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 # Broken: fails on valid input.
3797 rm -f conftest.err conftest.$ac_ext
3799 # OK, works on sane cases. Now check whether nonexistent headers
3800 # can be detected and how.
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3809 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3815 $as_echo "$ac_try_echo") >&5
3816 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3822 (exit $ac_status); } >/dev/null && {
3823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3826 # Broken: success on invalid input.
3829 $as_echo "$as_me: failed program was
:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 # Passes both tests.
3837 rm -f conftest.err conftest.$ac_ext
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then
3845 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3846 See \
`config.log' for more details." >&5
3847 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log
' for more details." >&2;}
3849 { (exit 1); exit 1; }; }
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3855 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 { $as_echo "$as_me:$LINENO: checking for inline" >&5
3860 $as_echo_n "checking for inline... " >&6; }
3861 if test "${ac_cv_c_inline+set}" = set; then
3862 $as_echo_n "(cached) " >&6
3865 for ac_kw in inline __inline__ __inline; do
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3874 static $ac_kw foo_t static_foo () {return 0; }
3875 $ac_kw foo_t foo () {return 0; }
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3886 $as_echo "$ac_try_echo") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3889 grep -v '^
*+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 ac_cv_c_inline=$ac_kw
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's
/^
/|
/' conftest.$ac_ext >&5
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 test "$ac_cv_c_inline" != no && break
3910 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3911 $as_echo "$ac_cv_c_inline" >&6; }
3914 case $ac_cv_c_inline in
3917 case $ac_cv_c_inline in
3919 *) ac_val=$ac_cv_c_inline;;
3921 cat >>confdefs.h <<_ACEOF
3923 #define inline $ac_val
3930 # sizeof(char) is 1 by definition.
3932 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3934 if test "${ac_cv_path_GREP+set}" = set; then
3935 $as_echo_n "(cached) " >&6
3937 if test -z "$GREP"; then
3938 ac_path_GREP_found=false
3939 # Loop through the user's path and
test for each of PROGNAME-LIST
3940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3941 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3944 test -z "$as_dir" && as_dir
=.
3945 for ac_prog
in grep ggrep
; do
3946 for ac_exec_ext
in '' $ac_executable_extensions; do
3947 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
3950 # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3953 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3956 $as_echo_n 0123456789 >"conftest.in"
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 $as_echo 'GREP' >> "conftest.nl"
3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3964 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3965 ac_count
=`expr $ac_count + 1`
3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP
="$ac_path_GREP"
3969 ac_path_GREP_max
=$ac_count
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3974 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3977 $ac_path_GREP_found && break 3
3982 if test -z "$ac_cv_path_GREP"; then
3983 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3984 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3985 { (exit 1); exit 1; }; }
3988 ac_cv_path_GREP
=$GREP
3992 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993 $as_echo "$ac_cv_path_GREP" >&6; }
3994 GREP
="$ac_cv_path_GREP"
3997 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3998 $as_echo_n "checking for egrep... " >&6; }
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4002 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4003 then ac_cv_path_EGREP
="$GREP -E"
4005 if test -z "$EGREP"; then
4006 ac_path_EGREP_found
=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4009 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4012 test -z "$as_dir" && as_dir
=.
4013 for ac_prog
in egrep; do
4014 for ac_exec_ext
in '' $ac_executable_extensions; do
4015 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4016 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4017 # Check for GNU ac_path_EGREP and select it if it is found.
4018 # Check for GNU $ac_path_EGREP
4019 case `"$ac_path_EGREP" --version 2>&1` in
4021 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4024 $as_echo_n 0123456789 >"conftest.in"
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
4030 $as_echo 'EGREP' >> "conftest.nl"
4031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4032 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4033 ac_count
=`expr $ac_count + 1`
4034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_EGREP
="$ac_path_EGREP"
4037 ac_path_EGREP_max
=$ac_count
4039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4042 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4045 $ac_path_EGREP_found && break 3
4050 if test -z "$ac_cv_path_EGREP"; then
4051 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4056 ac_cv_path_EGREP
=$EGREP
4061 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4062 $as_echo "$ac_cv_path_EGREP" >&6; }
4063 EGREP
="$ac_cv_path_EGREP"
4066 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4067 $as_echo_n "checking for ANSI C header files... " >&6; }
4068 if test "${ac_cv_header_stdc+set}" = set; then
4069 $as_echo_n "(cached) " >&6
4071 cat >conftest.
$ac_ext <<_ACEOF
4074 cat confdefs.h
>>conftest.
$ac_ext
4075 cat >>conftest.
$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4090 rm -f conftest.
$ac_objext
4091 if { (ac_try
="$ac_compile"
4093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 ac_cv_header_stdc=yes
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 ac_cv_header_stdc=no
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 if test $ac_cv_header_stdc = yes; then
4119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 $EGREP "memchr" >/dev/null 2>&1; then
4133 ac_cv_header_stdc=no
4139 if test $ac_cv_header_stdc = yes; then
4140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "free" >/dev/null 2>&1; then
4154 ac_cv_header_stdc=no
4160 if test $ac_cv_header_stdc = yes; then
4161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162 if test "$cross_compiling" = yes; then
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4173 #if ((' ' & 0x0FF) == 0x020)
4174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4177 # define ISLOWER(c) \
4178 (('a' <= (c) && (c) <= 'i') \
4179 || ('j' <= (c) && (c) <= 'r') \
4180 || ('s' <= (c) && (c) <= 'z'))
4181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4189 for (i = 0; i < 256; i++)
4190 if (XOR (islower (i), ISLOWER (i))
4191 || toupper (i) != TOUPPER (i))
4196 rm -f conftest$ac_exeext
4197 if { (ac_try="$ac_link"
4199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4200 *) ac_try_echo
=$ac_try;;
4202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4203 $as_echo "$ac_try_echo") >&5
4204 (eval "$ac_link") 2>&5
4206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4208 { (case "(($ac_try" in
4209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4213 $as_echo "$ac_try_echo") >&5
4214 (eval "$ac_try") 2>&5
4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4220 $as_echo "$as_me: program exited with status $ac_status" >&5
4221 $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4225 ac_cv_header_stdc=no
4227 rm -rf conftest.dSYM
4228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235 $as_echo "$ac_cv_header_stdc" >&6; }
4236 if test $ac_cv_header_stdc = yes; then
4238 cat >>confdefs.h <<\_ACEOF
4239 #define STDC_HEADERS 1
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 $as_echo_n "checking for $ac_header... " >&6; }
4260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4261 $as_echo_n "(cached) " >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 $ac_includes_default
4271 #include <$ac_header>
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4277 *) ac_try_echo
=$ac_try;;
4279 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281 (eval "$ac_compile") 2>conftest.er1
4283 grep -v '^ *+' conftest.er1
>conftest.err
4285 cat conftest.err
>&5
4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
4290 } && test -s conftest.
$ac_objext; then
4291 eval "$as_ac_Header=yes"
4293 $as_echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.
$ac_ext >&5
4296 eval "$as_ac_Header=no"
4299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4301 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4302 $as_echo "$as_val"'`
4303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4304 $as_echo "$ac_res" >&6; }
4305 if test `eval 'as_val=${'$as_ac_Header'}
4306 $as_echo "$as_val"'` = yes; then
4307 cat >>confdefs.h
<<_ACEOF
4308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 # The cast to long int works around a bug in the HP C Compiler
4317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4319 # This bug is HP SR number 8606223364.
4320 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
4321 $as_echo_n "checking size of void *... " >&6; }
4322 if test "${ac_cv_sizeof_void_p+set}" = set; then
4323 $as_echo_n "(cached) " >&6
4325 if test "$cross_compiling" = yes; then
4326 # Depending upon the size, compute the lo and hi bounds.
4327 cat >conftest.
$ac_ext <<_ACEOF
4330 cat confdefs.h
>>conftest.
$ac_ext
4331 cat >>conftest.
$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4337 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
4344 rm -f conftest.
$ac_objext
4345 if { (ac_try
="$ac_compile"
4347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4351 $as_echo "$ac_try_echo") >&5
4352 (eval "$ac_compile") 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } && {
4359 test -z "$ac_c_werror_flag" ||
4360 test ! -s conftest.err
4361 } && test -s conftest.$ac_objext; then
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4374 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4385 *) ac_try_echo
=$ac_try;;
4387 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4388 $as_echo "$ac_try_echo") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4391 grep -v '^ *+' conftest.er1
>conftest.err
4393 cat conftest.err
>&5
4394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest.
$ac_objext; then
4399 ac_hi
=$ac_mid; break
4401 $as_echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.
$ac_ext >&5
4404 ac_lo
=`expr $ac_mid + 1`
4405 if test $ac_lo -le $ac_mid; then
4409 ac_mid
=`expr 2 '*' $ac_mid + 1`
4412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4415 $as_echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.
$ac_ext >&5
4418 cat >conftest.
$ac_ext <<_ACEOF
4421 cat confdefs.h
>>conftest.
$ac_ext
4422 cat >>conftest.
$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4428 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
4435 rm -f conftest.
$ac_objext
4436 if { (ac_try
="$ac_compile"
4438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4442 $as_echo "$ac_try_echo") >&5
4443 (eval "$ac_compile") 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && {
4450 test -z "$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4452 } && test -s conftest.$ac_objext; then
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4465 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4476 *) ac_try_echo
=$ac_try;;
4478 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4479 $as_echo "$ac_try_echo") >&5
4480 (eval "$ac_compile") 2>conftest.er1
4482 grep -v '^ *+' conftest.er1
>conftest.err
4484 cat conftest.err
>&5
4485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } && {
4487 test -z "$ac_c_werror_flag" ||
4488 test ! -s conftest.err
4489 } && test -s conftest.
$ac_objext; then
4490 ac_lo
=$ac_mid; break
4492 $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.
$ac_ext >&5
4495 ac_hi
=`expr '(' $ac_mid ')' - 1`
4496 if test $ac_mid -le $ac_hi; then
4500 ac_mid
=`expr 2 '*' $ac_mid`
4503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.
$ac_ext >&5
4512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4516 # Binary search between lo and hi bounds.
4517 while test "x$ac_lo" != "x$ac_hi"; do
4518 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4519 cat >conftest.
$ac_ext <<_ACEOF
4522 cat confdefs.h
>>conftest.
$ac_ext
4523 cat >>conftest.
$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 $ac_includes_default
4529 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
4536 rm -f conftest.
$ac_objext
4537 if { (ac_try
="$ac_compile"
4539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4543 $as_echo "$ac_try_echo") >&5
4544 (eval "$ac_compile") 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && {
4551 test -z "$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 } && test -s conftest.$ac_objext; then
4556 $as_echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 ac_lo=`expr '(' $ac_mid ')' + 1`
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4566 '') if test "$ac_cv_type_void_p" = yes; then
4567 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4568 See \`config.log
' for more details." >&5
4569 $as_echo "$as_me: error: cannot compute sizeof (void *)
4570 See \`config.log' for more details.
" >&2;}
4571 { (exit 77); exit 77; }; }
4573 ac_cv_sizeof_void_p=0
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4584 static long int longval () { return (long int) (sizeof (void *)); }
4585 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
4592 FILE *f = fopen ("conftest.val
", "w
");
4595 if (((long int) (sizeof (void *))) < 0)
4597 long int i = longval ();
4598 if (i != ((long int) (sizeof (void *))))
4600 fprintf (f, "%ld
", i);
4604 unsigned long int i = ulongval ();
4605 if (i != ((long int) (sizeof (void *))))
4607 fprintf (f, "%lu
", i);
4609 /* Do not output a trailing newline, as this causes \r\n confusion
4610 on some platforms. */
4611 return ferror (f) || fclose (f) != 0;
4617 rm -f conftest$ac_exeext
4618 if { (ac_try="$ac_link"
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4624 $as_echo "$ac_try_echo") >&5
4625 (eval "$ac_link") 2>&5
4627 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4629 { (case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_try") 2>&5
4637 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_sizeof_void_p=`cat conftest.val`
4641 $as_echo "$as_me: program exited with status
$ac_status" >&5
4642 $as_echo "$as_me: failed program was
:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4646 if test "$ac_cv_type_void_p" = yes; then
4647 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
4648 See \
`config.log' for more details." >&5
4649 $as_echo "$as_me: error: cannot compute sizeof (void *)
4650 See \`config.log
' for more details." >&2;}
4651 { (exit 77); exit 77; }; }
4653 ac_cv_sizeof_void_p=0
4656 rm -rf conftest.dSYM
4657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4662 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4666 cat >>confdefs.h <<_ACEOF
4667 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4671 # The cast to long int works around a bug in the HP C Compiler
4672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4674 # This bug is HP SR number 8606223364.
4675 { $as_echo "$as_me:$LINENO: checking size of short" >&5
4676 $as_echo_n "checking size of short... " >&6; }
4677 if test "${ac_cv_sizeof_short+set}" = set; then
4678 $as_echo_n "(cached) " >&6
4680 if test "$cross_compiling" = yes; then
4681 # Depending upon the size, compute the lo and hi bounds.
4682 cat >conftest.
$ac_ext <<_ACEOF
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 $ac_includes_default
4692 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
4699 rm -f conftest.
$ac_objext
4700 if { (ac_try
="$ac_compile"
4702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4729 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4740 *) ac_try_echo
=$ac_try;;
4742 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744 (eval "$ac_compile") 2>conftest.er1
4746 grep -v '^ *+' conftest.er1
>conftest.err
4748 cat conftest.err
>&5
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest.
$ac_objext; then
4754 ac_hi
=$ac_mid; break
4756 $as_echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.
$ac_ext >&5
4759 ac_lo
=`expr $ac_mid + 1`
4760 if test $ac_lo -le $ac_mid; then
4764 ac_mid
=`expr 2 '*' $ac_mid + 1`
4767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.
$ac_ext >&5
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4783 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
4790 rm -f conftest.
$ac_objext
4791 if { (ac_try
="$ac_compile"
4793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 $ac_includes_default
4820 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
4827 rm -f conftest.$ac_objext
4828 if { (ac_try="$ac_compile"
4830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4831 *) ac_try_echo
=$ac_try;;
4833 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4834 $as_echo "$ac_try_echo") >&5
4835 (eval "$ac_compile") 2>conftest.er1
4837 grep -v '^ *+' conftest.er1
>conftest.err
4839 cat conftest.err
>&5
4840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && {
4842 test -z "$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 } && test -s conftest.
$ac_objext; then
4845 ac_lo
=$ac_mid; break
4847 $as_echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.
$ac_ext >&5
4850 ac_hi
=`expr '(' $ac_mid ')' - 1`
4851 if test $ac_mid -le $ac_hi; then
4855 ac_mid
=`expr 2 '*' $ac_mid`
4858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4861 $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.
$ac_ext >&5
4867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4871 # Binary search between lo and hi bounds.
4872 while test "x$ac_lo" != "x$ac_hi"; do
4873 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4874 cat >conftest.
$ac_ext <<_ACEOF
4877 cat confdefs.h
>>conftest.
$ac_ext
4878 cat >>conftest.
$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4884 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4891 rm -f conftest.
$ac_objext
4892 if { (ac_try
="$ac_compile"
4894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_lo=`expr '(' $ac_mid ')' + 1`
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 ?*) ac_cv_sizeof_short=$ac_lo;;
4921 '') if test "$ac_cv_type_short" = yes; then
4922 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4923 See \`config.log
' for more details." >&5
4924 $as_echo "$as_me: error: cannot compute sizeof (short)
4925 See \`config.log' for more details.
" >&2;}
4926 { (exit 77); exit 77; }; }
4928 ac_cv_sizeof_short=0
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 $ac_includes_default
4939 static long int longval () { return (long int) (sizeof (short)); }
4940 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
4947 FILE *f = fopen ("conftest.val
", "w
");
4950 if (((long int) (sizeof (short))) < 0)
4952 long int i = longval ();
4953 if (i != ((long int) (sizeof (short))))
4955 fprintf (f, "%ld
", i);
4959 unsigned long int i = ulongval ();
4960 if (i != ((long int) (sizeof (short))))
4962 fprintf (f, "%lu
", i);
4964 /* Do not output a trailing newline, as this causes \r\n confusion
4965 on some platforms. */
4966 return ferror (f) || fclose (f) != 0;
4972 rm -f conftest$ac_exeext
4973 if { (ac_try="$ac_link"
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_link") 2>&5
4982 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4984 { (case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4988 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4989 $as_echo "$ac_try_echo") >&5
4990 (eval "$ac_try") 2>&5
4992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_sizeof_short=`cat conftest.val`
4996 $as_echo "$as_me: program exited with status
$ac_status" >&5
4997 $as_echo "$as_me: failed program was
:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5001 if test "$ac_cv_type_short" = yes; then
5002 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
5003 See \
`config.log' for more details." >&5
5004 $as_echo "$as_me: error: cannot compute sizeof (short)
5005 See \`config.log
' for more details." >&2;}
5006 { (exit 77); exit 77; }; }
5008 ac_cv_sizeof_short=0
5011 rm -rf conftest.dSYM
5012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5016 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5017 $as_echo "$ac_cv_sizeof_short" >&6; }
5021 cat >>confdefs.h <<_ACEOF
5022 #define SIZEOF_SHORT $ac_cv_sizeof_short
5026 # The cast to long int works around a bug in the HP C Compiler
5027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5029 # This bug is HP SR number 8606223364.
5030 { $as_echo "$as_me:$LINENO: checking size of int" >&5
5031 $as_echo_n "checking size of int... " >&6; }
5032 if test "${ac_cv_sizeof_int+set}" = set; then
5033 $as_echo_n "(cached) " >&6
5035 if test "$cross_compiling" = yes; then
5036 # Depending upon the size, compute the lo and hi bounds.
5037 cat >conftest.
$ac_ext <<_ACEOF
5040 cat confdefs.h
>>conftest.
$ac_ext
5041 cat >>conftest.
$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5047 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
5054 rm -f conftest.
$ac_objext
5055 if { (ac_try
="$ac_compile"
5057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061 $as_echo "$ac_try_echo") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5084 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5095 *) ac_try_echo
=$ac_try;;
5097 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1
>conftest.err
5103 cat conftest.err
>&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.
$ac_objext; then
5109 ac_hi
=$ac_mid; break
5111 $as_echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5114 ac_lo
=`expr $ac_mid + 1`
5115 if test $ac_lo -le $ac_mid; then
5119 ac_mid
=`expr 2 '*' $ac_mid + 1`
5122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5125 $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.
$ac_ext >&5
5128 cat >conftest.
$ac_ext <<_ACEOF
5131 cat confdefs.h
>>conftest.
$ac_ext
5132 cat >>conftest.
$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 $ac_includes_default
5138 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
5145 rm -f conftest.
$ac_objext
5146 if { (ac_try
="$ac_compile"
5148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5152 $as_echo "$ac_try_echo") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5175 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
5182 rm -f conftest.$ac_objext
5183 if { (ac_try="$ac_compile"
5185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5186 *) ac_try_echo
=$ac_try;;
5188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1
>conftest.err
5194 cat conftest.err
>&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest.
$ac_objext; then
5200 ac_lo
=$ac_mid; break
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.
$ac_ext >&5
5205 ac_hi
=`expr '(' $ac_mid ')' - 1`
5206 if test $ac_mid -le $ac_hi; then
5210 ac_mid
=`expr 2 '*' $ac_mid`
5213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.
$ac_ext >&5
5222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5226 # Binary search between lo and hi bounds.
5227 while test "x$ac_lo" != "x$ac_hi"; do
5228 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5229 cat >conftest.
$ac_ext <<_ACEOF
5232 cat confdefs.h
>>conftest.
$ac_ext
5233 cat >>conftest.
$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5239 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5246 rm -f conftest.
$ac_objext
5247 if { (ac_try
="$ac_compile"
5249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5253 $as_echo "$ac_try_echo") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5266 $as_echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_lo=`expr '(' $ac_mid ')' + 1`
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 ?*) ac_cv_sizeof_int=$ac_lo;;
5276 '') if test "$ac_cv_type_int" = yes; then
5277 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5278 See \`config.log
' for more details." >&5
5279 $as_echo "$as_me: error: cannot compute sizeof (int)
5280 See \`config.log' for more details.
" >&2;}
5281 { (exit 77); exit 77; }; }
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5294 static long int longval () { return (long int) (sizeof (int)); }
5295 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
5302 FILE *f = fopen ("conftest.val
", "w
");
5305 if (((long int) (sizeof (int))) < 0)
5307 long int i = longval ();
5308 if (i != ((long int) (sizeof (int))))
5310 fprintf (f, "%ld
", i);
5314 unsigned long int i = ulongval ();
5315 if (i != ((long int) (sizeof (int))))
5317 fprintf (f, "%lu
", i);
5319 /* Do not output a trailing newline, as this causes \r\n confusion
5320 on some platforms. */
5321 return ferror (f) || fclose (f) != 0;
5327 rm -f conftest$ac_exeext
5328 if { (ac_try="$ac_link"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335 (eval "$ac_link") 2>&5
5337 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5339 { (case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
5344 $as_echo "$ac_try_echo") >&5
5345 (eval "$ac_try") 2>&5
5347 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_cv_sizeof_int=`cat conftest.val`
5351 $as_echo "$as_me: program exited with status
$ac_status" >&5
5352 $as_echo "$as_me: failed program was
:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5356 if test "$ac_cv_type_int" = yes; then
5357 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
5358 See \
`config.log' for more details." >&5
5359 $as_echo "$as_me: error: cannot compute sizeof (int)
5360 See \`config.log
' for more details." >&2;}
5361 { (exit 77); exit 77; }; }
5366 rm -rf conftest.dSYM
5367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5372 $as_echo "$ac_cv_sizeof_int" >&6; }
5376 cat >>confdefs.h <<_ACEOF
5377 #define SIZEOF_INT $ac_cv_sizeof_int
5381 # The cast to long int works around a bug in the HP C Compiler
5382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5384 # This bug is HP SR number 8606223364.
5385 { $as_echo "$as_me:$LINENO: checking size of long" >&5
5386 $as_echo_n "checking size of long... " >&6; }
5387 if test "${ac_cv_sizeof_long+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5390 if test "$cross_compiling" = yes; then
5391 # Depending upon the size, compute the lo and hi bounds.
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5402 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
5409 rm -f conftest.
$ac_objext
5410 if { (ac_try
="$ac_compile"
5412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5416 $as_echo "$ac_try_echo") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5419 grep -v '^ *+' conftest.er1 >conftest.err
5421 cat conftest.err >&5
5422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5439 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5450 *) ac_try_echo
=$ac_try;;
5452 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5456 grep -v '^ *+' conftest.er1
>conftest.err
5458 cat conftest.err
>&5
5459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.
$ac_objext; then
5464 ac_hi
=$ac_mid; break
5466 $as_echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.
$ac_ext >&5
5469 ac_lo
=`expr $ac_mid + 1`
5470 if test $ac_lo -le $ac_mid; then
5474 ac_mid
=`expr 2 '*' $ac_mid + 1`
5477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 $as_echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.
$ac_ext >&5
5483 cat >conftest.
$ac_ext <<_ACEOF
5486 cat confdefs.h
>>conftest.
$ac_ext
5487 cat >>conftest.
$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5493 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
5500 rm -f conftest.
$ac_objext
5501 if { (ac_try
="$ac_compile"
5503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5530 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5541 *) ac_try_echo
=$ac_try;;
5543 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5544 $as_echo "$ac_try_echo") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1
>conftest.err
5549 cat conftest.err
>&5
5550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.
$ac_objext; then
5555 ac_lo
=$ac_mid; break
5557 $as_echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5560 ac_hi
=`expr '(' $ac_mid ')' - 1`
5561 if test $ac_mid -le $ac_hi; then
5565 ac_mid
=`expr 2 '*' $ac_mid`
5568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5571 $as_echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.
$ac_ext >&5
5577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 # Binary search between lo and hi bounds.
5582 while test "x$ac_lo" != "x$ac_hi"; do
5583 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5584 cat >conftest.
$ac_ext <<_ACEOF
5587 cat confdefs.h
>>conftest.
$ac_ext
5588 cat >>conftest.
$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5594 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5601 rm -f conftest.
$ac_objext
5602 if { (ac_try
="$ac_compile"
5604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5608 $as_echo "$ac_try_echo") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5621 $as_echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_lo=`expr '(' $ac_mid ')' + 1`
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 ?*) ac_cv_sizeof_long=$ac_lo;;
5631 '') if test "$ac_cv_type_long" = yes; then
5632 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5633 See \`config.log
' for more details." >&5
5634 $as_echo "$as_me: error: cannot compute sizeof (long)
5635 See \`config.log' for more details.
" >&2;}
5636 { (exit 77); exit 77; }; }
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 static long int longval () { return (long int) (sizeof (long)); }
5650 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
5657 FILE *f = fopen ("conftest.val
", "w
");
5660 if (((long int) (sizeof (long))) < 0)
5662 long int i = longval ();
5663 if (i != ((long int) (sizeof (long))))
5665 fprintf (f, "%ld
", i);
5669 unsigned long int i = ulongval ();
5670 if (i != ((long int) (sizeof (long))))
5672 fprintf (f, "%lu
", i);
5674 /* Do not output a trailing newline, as this causes \r\n confusion
5675 on some platforms. */
5676 return ferror (f) || fclose (f) != 0;
5682 rm -f conftest$ac_exeext
5683 if { (ac_try="$ac_link"
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
5689 $as_echo "$ac_try_echo") >&5
5690 (eval "$ac_link") 2>&5
5692 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
5699 $as_echo "$ac_try_echo") >&5
5700 (eval "$ac_try") 2>&5
5702 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 ac_cv_sizeof_long=`cat conftest.val`
5706 $as_echo "$as_me: program exited with status
$ac_status" >&5
5707 $as_echo "$as_me: failed program was
:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5711 if test "$ac_cv_type_long" = yes; then
5712 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
5713 See \
`config.log' for more details." >&5
5714 $as_echo "$as_me: error: cannot compute sizeof (long)
5715 See \`config.log
' for more details." >&2;}
5716 { (exit 77); exit 77; }; }
5721 rm -rf conftest.dSYM
5722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5726 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5727 $as_echo "$ac_cv_sizeof_long" >&6; }
5731 cat >>confdefs.h <<_ACEOF
5732 #define SIZEOF_LONG $ac_cv_sizeof_long
5736 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5737 $as_echo_n "checking for long long... " >&6; }
5738 if test "${ac_cv_type_long_long+set}" = set; then
5739 $as_echo_n "(cached) " >&6
5741 ac_cv_type_long_long=no
5742 cat >conftest.$ac_ext <<_ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 $ac_includes_default
5752 if (sizeof (long long))
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5765 $as_echo "$ac_try_echo") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5768 grep -v '^
*+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_c_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest.$ac_objext; then
5776 cat >conftest.$ac_ext <<_ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5786 if (sizeof ((long long)))
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5799 $as_echo "$ac_try_echo") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5802 grep -v '^
*+' conftest.er1 >conftest.err
5804 cat conftest.err >&5
5805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5812 $as_echo "$as_me: failed program was:" >&5
5813 sed 's
/^
/|
/' conftest.$ac_ext >&5
5815 ac_cv_type_long_long=yes
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's
/^
/|
/' conftest.$ac_ext >&5
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5829 $as_echo "$ac_cv_type_long_long" >&6; }
5830 if test $ac_cv_type_long_long = yes; then
5832 cat >>confdefs.h <<_ACEOF
5833 #define HAVE_LONG_LONG 1
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
5841 $as_echo_n "checking size of long long... " >&6; }
5842 if test "${ac_cv_sizeof_long_long+set}" = set; then
5843 $as_echo_n "(cached) " >&6
5845 if test "$cross_compiling" = yes; then
5846 # Depending upon the size, compute the lo and hi bounds.
5847 cat >conftest.
$ac_ext <<_ACEOF
5850 cat confdefs.h
>>conftest.
$ac_ext
5851 cat >>conftest.
$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5857 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
5864 rm -f conftest.
$ac_objext
5865 if { (ac_try
="$ac_compile"
5867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871 $as_echo "$ac_try_echo") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1 >conftest.err
5876 cat conftest.err >&5
5877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 $ac_includes_default
5894 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5905 *) ac_try_echo
=$ac_try;;
5907 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.
$ac_objext; then
5919 ac_hi
=$ac_mid; break
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_lo
=`expr $ac_mid + 1`
5925 if test $ac_lo -le $ac_mid; then
5929 ac_mid
=`expr 2 '*' $ac_mid + 1`
5932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5935 $as_echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.
$ac_ext >&5
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 $ac_includes_default
5948 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
5955 rm -f conftest.
$ac_objext
5956 if { (ac_try
="$ac_compile"
5958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962 $as_echo "$ac_try_echo") >&5
5963 (eval "$ac_compile") 2>conftest.er1
5965 grep -v '^ *+' conftest.er1 >conftest.err
5967 cat conftest.err >&5
5968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && {
5970 test -z "$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 } && test -s conftest.$ac_objext; then
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5985 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5996 *) ac_try_echo
=$ac_try;;
5998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5999 $as_echo "$ac_try_echo") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1
>conftest.err
6004 cat conftest.err
>&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.
$ac_objext; then
6010 ac_lo
=$ac_mid; break
6012 $as_echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.
$ac_ext >&5
6015 ac_hi
=`expr '(' $ac_mid ')' - 1`
6016 if test $ac_mid -le $ac_hi; then
6020 ac_mid
=`expr 2 '*' $ac_mid`
6023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.
$ac_ext >&5
6032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6036 # Binary search between lo and hi bounds.
6037 while test "x$ac_lo" != "x$ac_hi"; do
6038 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6039 cat >conftest.
$ac_ext <<_ACEOF
6042 cat confdefs.h
>>conftest.
$ac_ext
6043 cat >>conftest.
$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6049 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
6056 rm -f conftest.
$ac_objext
6057 if { (ac_try
="$ac_compile"
6059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6063 $as_echo "$ac_try_echo") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6066 grep -v '^ *+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && {
6071 test -z "$ac_c_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest.$ac_objext; then
6076 $as_echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_lo=`expr '(' $ac_mid ')' + 1`
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6086 '') if test "$ac_cv_type_long_long" = yes; then
6087 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6088 See \`config.log
' for more details." >&5
6089 $as_echo "$as_me: error: cannot compute sizeof (long long)
6090 See \`config.log' for more details.
" >&2;}
6091 { (exit 77); exit 77; }; }
6093 ac_cv_sizeof_long_long=0
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6104 static long int longval () { return (long int) (sizeof (long long)); }
6105 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
6112 FILE *f = fopen ("conftest.val
", "w
");
6115 if (((long int) (sizeof (long long))) < 0)
6117 long int i = longval ();
6118 if (i != ((long int) (sizeof (long long))))
6120 fprintf (f, "%ld
", i);
6124 unsigned long int i = ulongval ();
6125 if (i != ((long int) (sizeof (long long))))
6127 fprintf (f, "%lu
", i);
6129 /* Do not output a trailing newline, as this causes \r\n confusion
6130 on some platforms. */
6131 return ferror (f) || fclose (f) != 0;
6137 rm -f conftest$ac_exeext
6138 if { (ac_try="$ac_link"
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6144 $as_echo "$ac_try_echo") >&5
6145 (eval "$ac_link") 2>&5
6147 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6149 { (case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6154 $as_echo "$ac_try_echo") >&5
6155 (eval "$ac_try") 2>&5
6157 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_cv_sizeof_long_long=`cat conftest.val`
6161 $as_echo "$as_me: program exited with status
$ac_status" >&5
6162 $as_echo "$as_me: failed program was
:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6166 if test "$ac_cv_type_long_long" = yes; then
6167 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
6168 See \
`config.log' for more details." >&5
6169 $as_echo "$as_me: error: cannot compute sizeof (long long)
6170 See \`config.log
' for more details." >&2;}
6171 { (exit 77); exit 77; }; }
6173 ac_cv_sizeof_long_long=0
6176 rm -rf conftest.dSYM
6177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6181 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6182 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6186 cat >>confdefs.h <<_ACEOF
6187 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6193 { $as_echo "$as_me:$LINENO: checking for __int64" >&5
6194 $as_echo_n "checking for __int64... " >&6; }
6195 if test "${ac_cv_type___int64+set}" = set; then
6196 $as_echo_n "(cached) " >&6
6198 ac_cv_type___int64=no
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 $ac_includes_default
6209 if (sizeof (__int64))
6215 rm -f conftest.$ac_objext
6216 if { (ac_try="$ac_compile"
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222 $as_echo "$ac_try_echo") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6225 grep -v '^
*+' conftest.er1 >conftest.err
6227 cat conftest.err >&5
6228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 $ac_includes_default
6243 if (sizeof ((__int64)))
6249 rm -f conftest.$ac_objext
6250 if { (ac_try="$ac_compile"
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6259 grep -v '^
*+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6269 $as_echo "$as_me: failed program was:" >&5
6270 sed 's
/^
/|
/' conftest.$ac_ext >&5
6272 ac_cv_type___int64=yes
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 $as_echo "$as_me: failed program was:" >&5
6278 sed 's
/^
/|
/' conftest.$ac_ext >&5
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 { $as_echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6286 $as_echo "$ac_cv_type___int64" >&6; }
6287 if test $ac_cv_type___int64 = yes; then
6289 cat >>confdefs.h <<_ACEOF
6290 #define HAVE___INT64 1
6293 # The cast to long int works around a bug in the HP C Compiler
6294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6296 # This bug is HP SR number 8606223364.
6297 { $as_echo "$as_me:$LINENO: checking size of __int64" >&5
6298 $as_echo_n "checking size of __int64... " >&6; }
6299 if test "${ac_cv_sizeof___int64+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6302 if test "$cross_compiling" = yes; then
6303 # Depending upon the size, compute the lo and hi bounds.
6304 cat >conftest.
$ac_ext <<_ACEOF
6307 cat confdefs.h
>>conftest.
$ac_ext
6308 cat >>conftest.
$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6314 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= 0)];
6321 rm -f conftest.
$ac_objext
6322 if { (ac_try
="$ac_compile"
6324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.$ac_objext; then
6341 cat >conftest.$ac_ext <<_ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6351 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
6358 rm -f conftest.$ac_objext
6359 if { (ac_try="$ac_compile"
6361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6362 *) ac_try_echo
=$ac_try;;
6364 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6368 grep -v '^ *+' conftest.er1
>conftest.err
6370 cat conftest.err
>&5
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.
$ac_objext; then
6376 ac_hi
=$ac_mid; break
6378 $as_echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.
$ac_ext >&5
6381 ac_lo
=`expr $ac_mid + 1`
6382 if test $ac_lo -le $ac_mid; then
6386 ac_mid
=`expr 2 '*' $ac_mid + 1`
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6392 $as_echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.
$ac_ext >&5
6395 cat >conftest.
$ac_ext <<_ACEOF
6398 cat confdefs.h
>>conftest.
$ac_ext
6399 cat >>conftest.
$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401 $ac_includes_default
6405 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) < 0)];
6412 rm -f conftest.
$ac_objext
6413 if { (ac_try
="$ac_compile"
6415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6419 $as_echo "$ac_try_echo") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && {
6427 test -z "$ac_c_werror_flag" ||
6428 test ! -s conftest.err
6429 } && test -s conftest.$ac_objext; then
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 $ac_includes_default
6442 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= $ac_mid)];
6449 rm -f conftest.$ac_objext
6450 if { (ac_try="$ac_compile"
6452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6453 *) ac_try_echo
=$ac_try;;
6455 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6456 $as_echo "$ac_try_echo") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6459 grep -v '^ *+' conftest.er1
>conftest.err
6461 cat conftest.err
>&5
6462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } && {
6464 test -z "$ac_c_werror_flag" ||
6465 test ! -s conftest.err
6466 } && test -s conftest.
$ac_objext; then
6467 ac_lo
=$ac_mid; break
6469 $as_echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.
$ac_ext >&5
6472 ac_hi
=`expr '(' $ac_mid ')' - 1`
6473 if test $ac_mid -le $ac_hi; then
6477 ac_mid
=`expr 2 '*' $ac_mid`
6480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6483 $as_echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.
$ac_ext >&5
6489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6493 # Binary search between lo and hi bounds.
6494 while test "x$ac_lo" != "x$ac_hi"; do
6495 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6496 cat >conftest.
$ac_ext <<_ACEOF
6499 cat confdefs.h
>>conftest.
$ac_ext
6500 cat >>conftest.
$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 $ac_includes_default
6506 static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
6513 rm -f conftest.
$ac_objext
6514 if { (ac_try
="$ac_compile"
6516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520 $as_echo "$ac_try_echo") >&5
6521 (eval "$ac_compile") 2>conftest.er1
6523 grep -v '^ *+' conftest.er1 >conftest.err
6525 cat conftest.err >&5
6526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest.$ac_objext; then
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_lo=`expr '(' $ac_mid ')' + 1`
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 ?*) ac_cv_sizeof___int64=$ac_lo;;
6543 '') if test "$ac_cv_type___int64" = yes; then
6544 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6545 See \`config.log
' for more details." >&5
6546 $as_echo "$as_me: error: cannot compute sizeof (__int64)
6547 See \`config.log' for more details.
" >&2;}
6548 { (exit 77); exit 77; }; }
6550 ac_cv_sizeof___int64=0
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6561 static long int longval () { return (long int) (sizeof (__int64)); }
6562 static unsigned long int ulongval () { return (long int) (sizeof (__int64)); }
6569 FILE *f = fopen ("conftest.val
", "w
");
6572 if (((long int) (sizeof (__int64))) < 0)
6574 long int i = longval ();
6575 if (i != ((long int) (sizeof (__int64))))
6577 fprintf (f, "%ld
", i);
6581 unsigned long int i = ulongval ();
6582 if (i != ((long int) (sizeof (__int64))))
6584 fprintf (f, "%lu
", i);
6586 /* Do not output a trailing newline, as this causes \r\n confusion
6587 on some platforms. */
6588 return ferror (f) || fclose (f) != 0;
6594 rm -f conftest$ac_exeext
6595 if { (ac_try="$ac_link"
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6600 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_link") 2>&5
6604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6606 { (case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6610 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6611 $as_echo "$ac_try_echo") >&5
6612 (eval "$ac_try") 2>&5
6614 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_sizeof___int64=`cat conftest.val`
6618 $as_echo "$as_me: program exited with status
$ac_status" >&5
6619 $as_echo "$as_me: failed program was
:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6623 if test "$ac_cv_type___int64" = yes; then
6624 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(__int64
)
6625 See \
`config.log' for more details." >&5
6626 $as_echo "$as_me: error: cannot compute sizeof (__int64)
6627 See \`config.log
' for more details." >&2;}
6628 { (exit 77); exit 77; }; }
6630 ac_cv_sizeof___int64=0
6633 rm -rf conftest.dSYM
6634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6638 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6639 $as_echo "$ac_cv_sizeof___int64" >&6; }
6643 cat >>confdefs.h <<_ACEOF
6644 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6651 # ---------------------
6652 # Warnings and checking
6653 # ---------------------
6655 # Check $CC warning features (if it's GCC
).
6656 # We want to use -pedantic, but we don't want warnings about
6659 # So, we only use -pedantic if we can disable those warnings.
6661 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6662 $as_echo_n "checking whether ${CC} accepts -Wno-long-long... " >&6; }
6663 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6664 $as_echo_n "(cached) " >&6
6666 save_CFLAGS
="$CFLAGS"
6667 CFLAGS
="-Wno-long-long"
6668 cat >conftest.
$ac_ext <<_ACEOF
6671 cat confdefs.h
>>conftest.
$ac_ext
6672 cat >>conftest.
$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6676 rm -f conftest.
$ac_objext
6677 if { (ac_try
="$ac_compile"
6679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684 (eval "$ac_compile") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1 >conftest.err
6688 cat conftest.err >&5
6689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest.$ac_objext; then
6694 ac_cv_prog_cc_w_no_long_long=yes
6696 $as_echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_prog_cc_w_no_long_long=no
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 CFLAGS="$save_CFLAGS"
6706 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6707 $as_echo "$ac_cv_prog_cc_w_no_long_long" >&6; }
6709 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6710 $as_echo_n "checking whether ${CC} accepts -Wno-variadic-macros... " >&6; }
6711 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6714 save_CFLAGS="$CFLAGS"
6715 CFLAGS="-Wno-variadic-macros"
6716 cat >conftest.$ac_ext <<_ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6724 rm -f conftest.$ac_objext
6725 if { (ac_try="$ac_compile"
6727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6728 *) ac_try_echo
=$ac_try;;
6730 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6731 $as_echo "$ac_try_echo") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6734 grep -v '^ *+' conftest.er1
>conftest.err
6736 cat conftest.err
>&5
6737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.
$ac_objext; then
6742 ac_cv_prog_cc_w_no_variadic_macros
=yes
6744 $as_echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 ac_cv_prog_cc_w_no_variadic_macros
=no
6750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6751 CFLAGS
="$save_CFLAGS"
6754 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6755 $as_echo "$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
6758 if test $ac_cv_prog_cc_w_no_long_long = yes \
6759 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6760 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6763 # Add -Wold-style-definition if it's accepted
6764 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6765 $as_echo_n "checking whether ${CC} accepts -Wold-style-definition... " >&6; }
6766 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6767 $as_echo_n "(cached) " >&6
6769 save_CFLAGS
="$CFLAGS"
6770 CFLAGS
="-Wold-style-definition"
6771 cat >conftest.
$ac_ext <<_ACEOF
6774 cat confdefs.h
>>conftest.
$ac_ext
6775 cat >>conftest.
$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6779 rm -f conftest.
$ac_objext
6780 if { (ac_try
="$ac_compile"
6782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6786 $as_echo "$ac_try_echo") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6789 grep -v '^ *+' conftest.er1 >conftest.err
6791 cat conftest.err >&5
6792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_prog_cc_w_old_style_definition=yes
6799 $as_echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_prog_cc_w_old_style_definition=no
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 CFLAGS="$save_CFLAGS"
6809 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6810 $as_echo "$ac_cv_prog_cc_w_old_style_definition" >&6; }
6811 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6812 strict1_warn="${strict1_warn} -Wold-style-definition"
6815 # Add -Wmissing-format-attribute if it's accepted
6816 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6817 $as_echo_n "checking whether ${CC} accepts -Wmissing-format-attribute... " >&6; }
6818 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6819 $as_echo_n "(cached) " >&6
6821 save_CFLAGS="$CFLAGS"
6822 CFLAGS="-Wmissing-format-attribute"
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6831 rm -f conftest.$ac_objext
6832 if { (ac_try="$ac_compile"
6834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6835 *) ac_try_echo
=$ac_try;;
6837 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6838 $as_echo "$ac_try_echo") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1
>conftest.err
6843 cat conftest.err
>&5
6844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.
$ac_objext; then
6849 ac_cv_prog_cc_w_missing_format_attribute
=yes
6851 $as_echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.
$ac_ext >&5
6854 ac_cv_prog_cc_w_missing_format_attribute
=no
6857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6858 CFLAGS
="$save_CFLAGS"
6861 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6862 $as_echo "$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
6863 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6864 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6867 # Enable -Werror, period.
6868 # Check whether --enable-werror_always was given.
6869 if test "${enable_werror_always+set}" = set; then
6870 enableval
=$enable_werror_always;
6872 enable_werror_always
=no
6875 if test x
${enable_werror_always} = xyes
; then
6876 strict1_warn
="${strict1_warn} -Werror"
6882 # If the native compiler is GCC, we can enable warnings even in stage1.
6883 # That's useful for people building cross-compilers, or just running a
6886 if test "x$GCC" = "xyes"; then
6887 warn_cflags
='$(GCC_WARN_CFLAGS)'
6891 # Enable -Werror in bootstrap stage2 and later.
6893 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6896 # Check whether --enable-werror was given.
6897 if test "${enable_werror+set}" = set; then
6898 enableval
=$enable_werror;
6900 if test x
$is_release = x
; then
6901 # Default to "yes" on development branches.
6904 # Default to "no" on release branches.
6909 if test x
$enable_werror = xyes
; then
6914 # Enable expensive internal checks
6915 # Check whether --enable-checking was given.
6916 if test "${enable_checking+set}" = set; then
6917 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6920 # Determine the default checks.
6921 if test x
$is_release = x
; then
6922 ac_checking_flags
=yes
6924 ac_checking_flags
=release
6928 ac_assert_checking
=1
6932 ac_gc_always_collect
=
6934 ac_rtlflag_checking
=
6935 ac_runtime_checking
=1
6937 ac_valgrind_checking
=
6938 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6939 for check
in $ac_checking_flags
6942 # these set all the flags to specific states
6943 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6944 ac_fold_checking
= ; ac_gc_checking
=1 ;
6945 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6946 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6947 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6948 no|none
) ac_assert_checking
= ; ac_checking
= ;
6949 ac_fold_checking
= ; ac_gc_checking
= ;
6950 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6951 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6952 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6953 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6954 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6955 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6956 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6957 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6958 release
) ac_assert_checking
=1 ; ac_checking
= ;
6959 ac_fold_checking
= ; ac_gc_checking
= ;
6960 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6961 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6962 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6963 # these enable particular checks
6964 assert
) ac_assert_checking
=1 ;;
6965 fold) ac_fold_checking
=1 ;;
6966 gc
) ac_gc_checking
=1 ;;
6967 gcac
) ac_gc_always_collect
=1 ;;
6968 misc
) ac_checking
=1 ;;
6969 rtl
) ac_rtl_checking
=1 ;;
6970 rtlflag
) ac_rtlflag_checking
=1 ;;
6971 runtime
) ac_runtime_checking
=1 ;;
6972 tree
) ac_tree_checking
=1 ;;
6973 valgrind
) ac_valgrind_checking
=1 ;;
6974 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
6975 $as_echo "$as_me: error: unknown check category $check" >&2;}
6976 { (exit 1); exit 1; }; } ;;
6982 if test x
$ac_checking != x
; then
6984 cat >>confdefs.h
<<\_ACEOF
6985 #define ENABLE_CHECKING 1
6988 nocommon_flag
=-fno-common
6991 if test x
$ac_assert_checking != x
; then
6993 cat >>confdefs.h
<<\_ACEOF
6994 #define ENABLE_ASSERT_CHECKING 1
6999 if test x
$ac_runtime_checking != x
; then
7001 cat >>confdefs.h
<<\_ACEOF
7002 #define ENABLE_RUNTIME_CHECKING 1
7006 if test x
$ac_tree_checking != x
; then
7008 cat >>confdefs.h
<<\_ACEOF
7009 #define ENABLE_TREE_CHECKING 1
7012 TREEBROWSER
=tree-browser.o
7015 if test x
$ac_rtl_checking != x
; then
7017 cat >>confdefs.h
<<\_ACEOF
7018 #define ENABLE_RTL_CHECKING 1
7022 if test x
$ac_rtlflag_checking != x
; then
7024 cat >>confdefs.h
<<\_ACEOF
7025 #define ENABLE_RTL_FLAG_CHECKING 1
7029 if test x
$ac_gc_checking != x
; then
7031 cat >>confdefs.h
<<\_ACEOF
7032 #define ENABLE_GC_CHECKING 1
7036 if test x
$ac_gc_always_collect != x
; then
7038 cat >>confdefs.h
<<\_ACEOF
7039 #define ENABLE_GC_ALWAYS_COLLECT 1
7043 if test x
$ac_fold_checking != x
; then
7045 cat >>confdefs.h
<<\_ACEOF
7046 #define ENABLE_FOLD_CHECKING 1
7050 valgrind_path_defines
=
7053 if test "${ac_cv_header_valgrind_h+set}" = set; then
7054 { $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
7055 $as_echo_n "checking for valgrind.h... " >&6; }
7056 if test "${ac_cv_header_valgrind_h+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7059 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7060 $as_echo "$ac_cv_header_valgrind_h" >&6; }
7062 # Is the header compilable?
7063 { $as_echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7064 $as_echo_n "checking valgrind.h usability... " >&6; }
7065 cat >conftest.
$ac_ext <<_ACEOF
7068 cat confdefs.h
>>conftest.
$ac_ext
7069 cat >>conftest.
$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 $ac_includes_default
7072 #include <valgrind.h>
7074 rm -f conftest.
$ac_objext
7075 if { (ac_try
="$ac_compile"
7077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081 $as_echo "$ac_try_echo") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 ac_header_compiler=yes
7094 $as_echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_header_compiler=no
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7102 $as_echo "$ac_header_compiler" >&6; }
7104 # Is the header present?
7105 { $as_echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7106 $as_echo_n "checking valgrind.h presence... " >&6; }
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <valgrind.h>
7115 if { (ac_try="$ac_cpp conftest.$ac_ext"
7117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7118 *) ac_try_echo
=$ac_try;;
7120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7121 $as_echo "$ac_try_echo") >&5
7122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7124 grep -v '^ *+' conftest.er1
>conftest.err
7126 cat conftest.err
>&5
7127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } >/dev
/null
&& {
7129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7132 ac_header_preproc
=yes
7134 $as_echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.
$ac_ext >&5
7137 ac_header_preproc
=no
7140 rm -f conftest.err conftest.
$ac_ext
7141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7142 $as_echo "$ac_header_preproc" >&6; }
7144 # So? What about this header?
7145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7147 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7148 $as_echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7149 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7150 $as_echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7151 ac_header_preproc
=yes
7154 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7155 $as_echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7156 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7157 $as_echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7158 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7159 $as_echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7160 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7161 $as_echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7162 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7163 $as_echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7164 { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7165 $as_echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7169 { $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
7170 $as_echo_n "checking for valgrind.h... " >&6; }
7171 if test "${ac_cv_header_valgrind_h+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7174 ac_cv_header_valgrind_h
=$ac_header_preproc
7176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7177 $as_echo "$ac_cv_header_valgrind_h" >&6; }
7180 if test $ac_cv_header_valgrind_h = yes; then
7188 if test x
$ac_valgrind_checking != x
; then
7189 # It is certainly possible that there's valgrind but no valgrind.h.
7190 # GCC relies on making annotations so we must have both.
7191 { $as_echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7193 cat >conftest.
$ac_ext <<_ACEOF
7196 cat confdefs.h
>>conftest.
$ac_ext
7197 cat >>conftest.
$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <valgrind/memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7204 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7210 $as_echo "$ac_try_echo") >&5
7211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7213 grep -v '^ *+' conftest.er1 >conftest.err
7215 cat conftest.err >&5
7216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } >/dev/null && {
7218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7221 gcc_cv_header_valgrind_memcheck_h=yes
7223 $as_echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 gcc_cv_header_valgrind_memcheck_h=no
7229 rm -f conftest.err conftest.$ac_ext
7230 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7232 { $as_echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #include <memcheck.h>
7241 #ifndef VALGRIND_DISCARD
7242 #error VALGRIND_DISCARD not defined
7245 if { (ac_try="$ac_cpp conftest.$ac_ext"
7247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7248 *) ac_try_echo
=$ac_try;;
7250 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7251 $as_echo "$ac_try_echo") >&5
7252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7254 grep -v '^ *+' conftest.er1
>conftest.err
7256 cat conftest.err
>&5
7257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } >/dev
/null
&& {
7259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7262 gcc_cv_header_memcheck_h
=yes
7264 $as_echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.
$ac_ext >&5
7267 gcc_cv_header_memcheck_h
=no
7270 rm -f conftest.err conftest.
$ac_ext
7271 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7272 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7280 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.
file <<_ASEOF
7294 chmod +x conf$$.
file
7295 if test -x conf$$.
file >/dev
/null
2>&1; then
7296 ac_executable_p
="test -x"
7298 ac_executable_p
="test -f"
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind
; ac_word
=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7309 case "$valgrind_path" in
7311 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7314 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7315 for ac_dir
in $PATH; do
7317 test -z "$ac_dir" && ac_dir
=.
7318 for ac_exec_ext
in '' $ac_executable_extensions; do
7319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7321 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7331 valgrind_path
="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333 { $as_echo "$as_me:$LINENO: result: $valgrind_path" >&5
7334 $as_echo "$valgrind_path" >&6; }
7336 { $as_echo "$as_me:$LINENO: result: no" >&5
7337 $as_echo "no" >&6; }
7340 if test "x$valgrind_path" = "x" \
7341 ||
(test $have_valgrind_h = no \
7342 && test $gcc_cv_header_memcheck_h = no \
7343 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7344 { { $as_echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7345 $as_echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7346 { (exit 1); exit 1; }; }
7348 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7349 valgrind_command
="$valgrind_path -q"
7351 cat >>confdefs.h
<<\_ACEOF
7352 #define ENABLE_VALGRIND_CHECKING 1
7355 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7357 cat >>confdefs.h
<<\_ACEOF
7358 #define HAVE_VALGRIND_MEMCHECK_H 1
7362 if test $gcc_cv_header_memcheck_h = yes; then
7364 cat >>confdefs.h
<<\_ACEOF
7365 #define HAVE_MEMCHECK_H 1
7373 # Check whether --enable-mapped-location was given.
7374 if test "${enable_mapped_location+set}" = set; then
7375 enableval
=$enable_mapped_location;
7377 enable_mapped_location
=no
7381 if test "$enable_mapped_location" = yes ; then
7383 cat >>confdefs.h
<<\_ACEOF
7384 #define USE_MAPPED_LOCATION 1
7389 # Enable code coverage collection
7390 # Check whether --enable-coverage was given.
7391 if test "${enable_coverage+set}" = set; then
7392 enableval
=$enable_coverage; case "${enableval}" in
7394 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7397 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7400 # a.k.a. --disable-coverage
7404 { { $as_echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7405 $as_echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7406 { (exit 1); exit 1; }; }
7415 # Check whether --enable-gather-detailed-mem-stats was given.
7416 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7417 enableval
=$enable_gather_detailed_mem_stats;
7419 enable_gather_detailed_mem_stats
=no
7422 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7424 cat >>confdefs.h
<<\_ACEOF
7425 #define GATHER_STATISTICS 1
7430 # -------------------------------
7431 # Miscenalleous configure options
7432 # -------------------------------
7436 # Check whether --with-stabs was given.
7437 if test "${with_stabs+set}" = set; then
7438 withval
=$with_stabs; stabs
="$with_stabs"
7444 # Determine whether or not multilibs are enabled.
7445 # Check whether --enable-multilib was given.
7446 if test "${enable_multilib+set}" = set; then
7447 enableval
=$enable_multilib;
7454 # Enable __cxa_atexit for C++.
7455 # Check whether --enable-__cxa_atexit was given.
7456 if test "${enable___cxa_atexit+set}" = set; then
7457 enableval
=$enable___cxa_atexit;
7462 # Pass with no value to take the default
7463 # Pass with a value to specify a thread package
7464 # Check whether --enable-threads was given.
7465 if test "${enable_threads+set}" = set; then
7466 enableval
=$enable_threads;
7472 # Check whether --enable-tls was given.
7473 if test "${enable_tls+set}" = set; then
7474 enableval
=$enable_tls;
7477 *) { { $as_echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7478 Valid choices are 'yes' and 'no'." >&5
7479 $as_echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7480 Valid choices are 'yes' and 'no'." >&2;}
7481 { (exit 1); exit 1; }; } ;;
7489 # Check whether --enable-objc-gc was given.
7490 if test "${enable_objc_gc+set}" = set; then
7491 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7502 # Check whether --with-dwarf2 was given.
7503 if test "${with_dwarf2+set}" = set; then
7504 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7510 # Check whether --enable-shared was given.
7511 if test "${enable_shared+set}" = set; then
7512 enableval
=$enable_shared;
7513 case $enable_shared in
7517 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7518 for pkg
in $enableval; do
7519 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7534 # Check whether --with-build-sysroot was given.
7535 if test "${with_build_sysroot+set}" = set; then
7536 withval
=$with_build_sysroot;
7541 # Check whether --with-sysroot was given.
7542 if test "${with_sysroot+set}" = set; then
7543 withval
=$with_sysroot;
7544 case ${with_sysroot} in
7545 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7546 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7549 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7550 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7552 if test "x$exec_prefix" = xNONE
; then
7553 if test "x$prefix" = xNONE
; then
7554 test_prefix
=/usr
/local
7559 test_prefix
=$exec_prefix
7561 case ${TARGET_SYSTEM_ROOT} in
7562 "${test_prefix}"|
"${test_prefix}/"*|\
7563 '${exec_prefix}'|
'${exec_prefix}/'*)
7564 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7565 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7572 TARGET_SYSTEM_ROOT_DEFINE
=
7573 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7581 # Build with intermodule optimisations
7582 # Check whether --enable-intermodule was given.
7583 if test "${enable_intermodule+set}" = set; then
7584 enableval
=$enable_intermodule; case ${enable_intermodule} in
7585 yes) onestep
="-onestep";;
7594 # Sanity check enable_languages in case someone does not run the toplevel
7595 # configure # script.
7596 # Check whether --enable-languages was given.
7597 if test "${enable_languages+set}" = set; then
7598 enableval
=$enable_languages; case ,${enable_languages}, in
7600 # go safe -- we cannot be much sure without the toplevel
7602 # analysis of which target libs are present and usable
7606 { { $as_echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7607 $as_echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7608 { (exit 1); exit 1; }; }
7613 enable_languages
=c
,${enable_languages}
7622 for lang
in ${srcdir}/*/config-lang.
in
7625 # The odd quoting in the next line works around
7626 # an apparent bug in bash 1.12 on linux.
7627 ${srcdir}/[*]/config-lang.
in) ;;
7629 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7630 if test "x$lang_alias" = x
7632 echo "$lang doesn't set \$language." 1>&2
7635 case ",$enable_languages," in
7637 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7644 # -------------------------
7645 # Checks for other programs
7646 # -------------------------
7648 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7649 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7651 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7652 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7653 $as_echo_n "(cached) " >&6
7655 cat >conftest.
make <<\_ACEOF
7658 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7661 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7663 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7665 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7669 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7670 { $as_echo "$as_me:$LINENO: result: yes" >&5
7671 $as_echo "yes" >&6; }
7674 { $as_echo "$as_me:$LINENO: result: no" >&5
7675 $as_echo "no" >&6; }
7676 SET_MAKE
="MAKE=${MAKE-make}"
7680 # Find some useful tools
7681 for ac_prog
in gawk mawk nawk
awk
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy
$ac_prog; ac_word
=$2
7685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if test "${ac_cv_prog_AWK+set}" = set; then
7688 $as_echo_n "(cached) " >&6
7690 if test -n "$AWK"; then
7691 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7697 test -z "$as_dir" && as_dir
=.
7698 for ac_exec_ext
in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700 ac_cv_prog_AWK
="$ac_prog"
7701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 if test -n "$AWK"; then
7712 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7713 $as_echo "$AWK" >&6; }
7715 { $as_echo "$as_me:$LINENO: result: no" >&5
7716 $as_echo "no" >&6; }
7720 test -n "$AWK" && break
7723 # We need awk to create options.c and options.h.
7724 # Bail out if it's missing.
7726 "") { { $as_echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7727 $as_echo "$as_me: error: can't build without awk, bailing out" >&2;}
7728 { (exit 1); exit 1; }; } ;;
7731 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7732 $as_echo_n "checking whether ln -s works... " >&6; }
7733 if test "${gcc_cv_prog_LN_S+set}" = set; then
7734 $as_echo_n "(cached) " >&6
7736 rm -f conftestdata_t
7737 echo >conftestdata_f
7738 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7740 gcc_cv_prog_LN_S
="ln -s"
7742 if ln conftestdata_f conftestdata_t
2>/dev
/null
7746 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7748 gcc_cv_prog_LN_S
="cp -p"
7754 rm -f conftestdata_f conftestdata_t
7757 LN_S
="$gcc_cv_prog_LN_S"
7758 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7759 { $as_echo "$as_me:$LINENO: result: yes" >&5
7760 $as_echo "yes" >&6; }
7762 if test "$gcc_cv_prog_LN_S" = "ln"; then
7763 { $as_echo "$as_me:$LINENO: result: no, using ln" >&5
7764 $as_echo "no, using ln" >&6; }
7766 { $as_echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7767 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7771 { $as_echo "$as_me:$LINENO: checking whether ln works" >&5
7772 $as_echo_n "checking whether ln works... " >&6; }
7773 if test "${acx_cv_prog_LN+set}" = set; then
7774 $as_echo_n "(cached) " >&6
7776 rm -f conftestdata_t
7777 echo >conftestdata_f
7778 if ln conftestdata_f conftestdata_t
2>/dev
/null
7784 rm -f conftestdata_f conftestdata_t
7787 if test $acx_cv_prog_LN = no
; then
7789 { $as_echo "$as_me:$LINENO: result: no, using $LN" >&5
7790 $as_echo "no, using $LN" >&6; }
7792 LN
="$acx_cv_prog_LN"
7793 { $as_echo "$as_me:$LINENO: result: yes" >&5
7794 $as_echo "yes" >&6; }
7797 if test -n "$ac_tool_prefix"; then
7798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7799 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_RANLIB+set}" = set; then
7803 $as_echo_n "(cached) " >&6
7805 if test -n "$RANLIB"; then
7806 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir
=.
7813 for ac_exec_ext
in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 RANLIB
=$ac_cv_prog_RANLIB
7826 if test -n "$RANLIB"; then
7827 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7828 $as_echo "$RANLIB" >&6; }
7830 { $as_echo "$as_me:$LINENO: result: no" >&5
7831 $as_echo "no" >&6; }
7836 if test -z "$ac_cv_prog_RANLIB"; then
7837 ac_ct_RANLIB
=$RANLIB
7838 # Extract the first word of "ranlib", so it can be a program name with args.
7839 set dummy ranlib
; ac_word
=$2
7840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7843 $as_echo_n "(cached) " >&6
7845 if test -n "$ac_ct_RANLIB"; then
7846 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir
=.
7853 for ac_exec_ext
in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7866 if test -n "$ac_ct_RANLIB"; then
7867 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7868 $as_echo "$ac_ct_RANLIB" >&6; }
7870 { $as_echo "$as_me:$LINENO: result: no" >&5
7871 $as_echo "no" >&6; }
7874 if test "x$ac_ct_RANLIB" = x
; then
7877 case $cross_compiling:$ac_tool_warned in
7879 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7880 whose name does not start with the host triplet. If you think this
7881 configuration is useful to you, please write to autoconf@gnu.org." >&5
7882 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7883 whose name does not start with the host triplet. If you think this
7884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7885 ac_tool_warned
=yes ;;
7887 RANLIB
=$ac_ct_RANLIB
7890 RANLIB
="$ac_cv_prog_RANLIB"
7895 # By default, the Darwin ranlib will not treat common symbols as
7896 # definitions when building the archive table of contents. Other
7897 # ranlibs do that; pass an option to the Darwin ranlib that makes
7898 # it behave similarly.
7906 # Find a good install program. We prefer a C program (faster),
7907 # so one script is as good as another. But avoid the broken or
7908 # incompatible versions:
7909 # SysV /etc/install, /usr/sbin/install
7910 # SunOS /usr/etc/install
7911 # IRIX /sbin/install
7913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7915 # ./install, which can be erroneously created by make from ./install.sh.
7916 { $as_echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7917 $as_echo_n "checking for a BSD compatible install... " >&6; }
7918 if test -z "$INSTALL"; then
7919 if test "${ac_cv_path_install+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7922 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7923 for ac_dir
in $PATH; do
7924 # Account for people who put trailing slashes in PATH elements.
7926 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7928 # OSF1 and SCO ODT 3.0 have their own names for install.
7929 for ac_prog
in ginstall scoinst
install; do
7930 if test -f $ac_dir/$ac_prog; then
7931 if test $ac_prog = install &&
7932 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7933 # AIX install. It has an incompatible calling convention.
7934 # OSF/1 installbsd also uses dspmsg, but is usable.
7937 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL
="$ac_cv_path_install"
7951 # As a last resort, use the slow shell script. We don't cache a
7952 # path for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the path is relative.
7955 INSTALL
="$ac_install_sh"
7958 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7959 $as_echo "$INSTALL" >&6; }
7961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962 # It thinks the first close brace ends the variable substitution.
7963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7965 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7968 # See if cmp has --ignore-initial.
7969 { $as_echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7970 $as_echo_n "checking for cmp's capabilities... " >&6; }
7971 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7972 $as_echo_n "(cached) " >&6
7976 gcc_cv_prog_cmp_skip
=slowcompare
7977 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7978 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7981 gcc_cv_prog_cmp_skip
=gnucompare
7984 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7985 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7986 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7989 gcc_cv_prog_cmp_skip
=fastcompare
7996 { $as_echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7997 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7998 make_compare_target
=$gcc_cv_prog_cmp_skip
8002 # See if we have the mktemp command.
8003 # Extract the first word of "mktemp", so it can be a program name with args.
8004 set dummy mktemp
; ac_word
=$2
8005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8008 $as_echo_n "(cached) " >&6
8010 if test -n "$have_mktemp_command"; then
8011 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8017 test -z "$as_dir" && as_dir
=.
8018 for ac_exec_ext
in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_prog_have_mktemp_command
="yes"
8021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8031 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8032 if test -n "$have_mktemp_command"; then
8033 { $as_echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8034 $as_echo "$have_mktemp_command" >&6; }
8036 { $as_echo "$as_me:$LINENO: result: no" >&5
8037 $as_echo "no" >&6; }
8042 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
8044 # See if makeinfo has been installed and is modern enough
8045 # that we can use it.
8047 ac_executable_extensions
="$build_exeext"
8049 # Extract the first word of "makeinfo", so it can be a program name with args.
8050 set dummy makeinfo
; ac_word
=$2
8051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$MAKEINFO"; then
8057 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir
=.
8064 for ac_exec_ext
in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_MAKEINFO
="makeinfo"
8067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 MAKEINFO
=$ac_cv_prog_MAKEINFO
8077 if test -n "$MAKEINFO"; then
8078 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8079 $as_echo "$MAKEINFO" >&6; }
8081 { $as_echo "$as_me:$LINENO: result: no" >&5
8082 $as_echo "no" >&6; }
8086 if test -n "$MAKEINFO"; then
8087 # Found it, now check the version.
8088 { $as_echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8089 $as_echo_n "checking for modern makeinfo... " >&6; }
8090 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8091 $as_echo_n "(cached) " >&6
8093 ac_prog_version
=`$MAKEINFO --version 2>&1 |
8094 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8095 echo "configure:8095: version of makeinfo is $ac_prog_version" >&5
8096 case $ac_prog_version in
8097 '') gcc_cv_prog_makeinfo_modern
=no
;;
8098 4.
[2-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*)
8099 gcc_cv_prog_makeinfo_modern
=yes;;
8100 *) gcc_cv_prog_makeinfo_modern
=no
;;
8104 { $as_echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8105 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8107 gcc_cv_prog_makeinfo_modern
=no
8110 if test $gcc_cv_prog_makeinfo_modern = no
; then
8111 MAKEINFO
="$MISSING makeinfo"
8112 { $as_echo "$as_me:$LINENO: WARNING:
8113 *** Makeinfo is missing or too old.
8114 *** Info documentation will not be built." >&5
8115 $as_echo "$as_me: WARNING:
8116 *** Makeinfo is missing or too old.
8117 *** Info documentation will not be built." >&2;}
8124 # Is pod2man recent enough to regenerate manpages?
8125 { $as_echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8126 $as_echo_n "checking for recent Pod::Man... " >&6; }
8127 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8128 { $as_echo "$as_me:$LINENO: result: yes" >&5
8129 $as_echo "yes" >&6; }
8130 GENERATED_MANPAGES
=generated-manpages
8132 { $as_echo "$as_me:$LINENO: result: no" >&5
8133 $as_echo "no" >&6; }
8141 # Extract the first word of "$ac_prog", so it can be a program name with args.
8142 set dummy
$ac_prog; ac_word
=$2
8143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if test "${ac_cv_prog_FLEX+set}" = set; then
8146 $as_echo_n "(cached) " >&6
8148 if test -n "$FLEX"; then
8149 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8155 test -z "$as_dir" && as_dir
=.
8156 for ac_exec_ext
in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_prog_FLEX
="$ac_prog"
8159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 FLEX
=$ac_cv_prog_FLEX
8169 if test -n "$FLEX"; then
8170 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
8171 $as_echo "$FLEX" >&6; }
8173 { $as_echo "$as_me:$LINENO: result: no" >&5
8174 $as_echo "no" >&6; }
8178 test -n "$FLEX" && break
8180 test -n "$FLEX" || FLEX
="$MISSING flex"
8184 for ac_prog
in bison
8186 # Extract the first word of "$ac_prog", so it can be a program name with args.
8187 set dummy
$ac_prog; ac_word
=$2
8188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if test "${ac_cv_prog_BISON+set}" = set; then
8191 $as_echo_n "(cached) " >&6
8193 if test -n "$BISON"; then
8194 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8200 test -z "$as_dir" && as_dir
=.
8201 for ac_exec_ext
in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_prog_BISON
="$ac_prog"
8204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 BISON
=$ac_cv_prog_BISON
8214 if test -n "$BISON"; then
8215 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
8216 $as_echo "$BISON" >&6; }
8218 { $as_echo "$as_me:$LINENO: result: no" >&5
8219 $as_echo "no" >&6; }
8223 test -n "$BISON" && break
8225 test -n "$BISON" || BISON
="$MISSING bison"
8228 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8229 # check for build == host before using them.
8232 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8233 && test -d ..
/binutils
; then
8234 NM
='$(objdir)/../binutils/nm-new'
8236 # Extract the first word of "nm", so it can be a program name with args.
8237 set dummy nm
; ac_word
=$2
8238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if test "${ac_cv_prog_NM+set}" = set; then
8241 $as_echo_n "(cached) " >&6
8243 if test -n "$NM"; then
8244 ac_cv_prog_NM
="$NM" # Let the user override the test.
8246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir
=.
8251 for ac_exec_ext
in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8265 if test -n "$NM"; then
8266 { $as_echo "$as_me:$LINENO: result: $NM" >&5
8267 $as_echo "$NM" >&6; }
8269 { $as_echo "$as_me:$LINENO: result: no" >&5
8270 $as_echo "no" >&6; }
8277 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8278 && test -d ..
/binutils
; then
8279 AR
='$(objdir)/../binutils/ar'
8281 # Extract the first word of "ar", so it can be a program name with args.
8282 set dummy
ar; ac_word
=$2
8283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if test "${ac_cv_prog_AR+set}" = set; then
8286 $as_echo_n "(cached) " >&6
8288 if test -n "$AR"; then
8289 ac_cv_prog_AR
="$AR" # Let the user override the test.
8291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir
=.
8296 for ac_exec_ext
in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8310 if test -n "$AR"; then
8311 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8312 $as_echo "$AR" >&6; }
8314 { $as_echo "$as_me:$LINENO: result: no" >&5
8315 $as_echo "no" >&6; }
8322 # --------------------
8323 # Checks for C headers
8324 # --------------------
8326 { $as_echo "$as_me:$LINENO: checking for GNU C library" >&5
8327 $as_echo_n "checking for GNU C library... " >&6; }
8328 if test "${gcc_cv_glibc+set}" = set; then
8329 $as_echo_n "(cached) " >&6
8331 cat >conftest.
$ac_ext <<_ACEOF
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 #include <features.h>
8342 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8343 #error Not a GNU C library system
8349 rm -f conftest.
$ac_objext
8350 if { (ac_try
="$ac_compile"
8352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8356 $as_echo "$ac_try_echo") >&5
8357 (eval "$ac_compile") 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest.$ac_objext; then
8369 $as_echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 { $as_echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8379 $as_echo "$gcc_cv_glibc" >&6; }
8380 if test $gcc_cv_glibc = yes; then
8382 cat >>confdefs.h <<\_ACEOF
8383 #define _GNU_SOURCE 1
8388 # Need to reject headers which give warnings, so that the -Werror bootstrap
8389 # works later. *sigh* This needs to come before all header checks.
8391 ac_c_preproc_warn_flag=yes
8393 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8394 $as_echo_n "checking for ANSI C header files... " >&6; }
8395 if test "${ac_cv_header_stdc+set}" = set; then
8396 $as_echo_n "(cached) " >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8421 *) ac_try_echo
=$ac_try;;
8423 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8424 $as_echo "$ac_try_echo") >&5
8425 (eval "$ac_compile") 2>conftest.er1
8427 grep -v '^ *+' conftest.er1
>conftest.err
8429 cat conftest.err
>&5
8430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && {
8432 test -z "$ac_c_werror_flag" ||
8433 test ! -s conftest.err
8434 } && test -s conftest.
$ac_objext; then
8435 ac_cv_header_stdc
=yes
8437 $as_echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.
$ac_ext >&5
8440 ac_cv_header_stdc
=no
8443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8445 if test $ac_cv_header_stdc = yes; then
8446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8447 cat >conftest.
$ac_ext <<_ACEOF
8450 cat confdefs.h
>>conftest.
$ac_ext
8451 cat >>conftest.
$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8457 $EGREP "memchr" >/dev
/null
2>&1; then
8460 ac_cv_header_stdc
=no
8466 if test $ac_cv_header_stdc = yes; then
8467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8468 cat >conftest.
$ac_ext <<_ACEOF
8471 cat confdefs.h
>>conftest.
$ac_ext
8472 cat >>conftest.
$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478 $EGREP "free" >/dev
/null
2>&1; then
8481 ac_cv_header_stdc
=no
8487 if test $ac_cv_header_stdc = yes; then
8488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8489 if test "$cross_compiling" = yes; then
8492 cat >conftest.
$ac_ext <<_ACEOF
8495 cat confdefs.h
>>conftest.
$ac_ext
8496 cat >>conftest.
$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8500 #if ((' ' & 0x0FF) == 0x020)
8501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8504 # define ISLOWER(c) \
8505 (('a' <= (c) && (c) <= 'i') \
8506 || ('j' <= (c) && (c) <= 'r') \
8507 || ('s' <= (c) && (c) <= 'z'))
8508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8516 for (i = 0; i < 256; i++)
8517 if (XOR (islower (i), ISLOWER (i))
8518 || toupper (i) != TOUPPER (i))
8523 rm -f conftest
$ac_exeext
8524 if { (ac_try
="$ac_link"
8526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_link") 2>&5
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8537 *) ac_try_echo
=$ac_try;;
8539 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8540 $as_echo "$ac_try_echo") >&5
8541 (eval "$ac_try") 2>&5
8543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8547 $as_echo "$as_me: program exited with status $ac_status" >&5
8548 $as_echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.
$ac_ext >&5
8552 ac_cv_header_stdc
=no
8554 rm -rf conftest.dSYM
8555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8562 $as_echo "$ac_cv_header_stdc" >&6; }
8563 if test $ac_cv_header_stdc = yes; then
8565 cat >>confdefs.h
<<\_ACEOF
8566 #define STDC_HEADERS 1
8571 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8572 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8573 if test "${ac_cv_header_time+set}" = set; then
8574 $as_echo_n "(cached) " >&6
8576 cat >conftest.
$ac_ext <<_ACEOF
8579 cat confdefs.h
>>conftest.
$ac_ext
8580 cat >>conftest.
$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 #include <sys/types.h>
8583 #include <sys/time.h>
8589 if ((struct tm *) 0)
8595 rm -f conftest.
$ac_objext
8596 if { (ac_try
="$ac_compile"
8598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_cv_header_time=yes
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_header_time=no
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8624 $as_echo "$ac_cv_header_time" >&6; }
8625 if test $ac_cv_header_time = yes; then
8627 cat >>confdefs.h <<\_ACEOF
8628 #define TIME_WITH_SYS_TIME 1
8633 { $as_echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8634 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8635 if test "${gcc_cv_header_string+set}" = set; then
8636 $as_echo_n "(cached) " >&6
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8645 #include <strings.h>
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8658 *) ac_try_echo
=$ac_try;;
8660 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1
>conftest.err
8666 cat conftest.err
>&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.
$ac_objext; then
8672 gcc_cv_header_string
=yes
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.
$ac_ext >&5
8677 gcc_cv_header_string
=no
8680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8682 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8683 $as_echo "$gcc_cv_header_string" >&6; }
8684 if test $gcc_cv_header_string = yes; then
8686 cat >>confdefs.h
<<\_ACEOF
8687 #define STRING_WITH_STRINGS 1
8692 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8693 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8694 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8695 $as_echo_n "(cached) " >&6
8697 cat >conftest.
$ac_ext <<_ACEOF
8700 cat confdefs.h
>>conftest.
$ac_ext
8701 cat >>conftest.
$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/wait.h>
8706 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8709 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8717 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8722 rm -f conftest.
$ac_objext
8723 if { (ac_try
="$ac_compile"
8725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729 $as_echo "$ac_try_echo") >&5
8730 (eval "$ac_compile") 2>conftest.er1
8732 grep -v '^ *+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest.$ac_objext; then
8740 ac_cv_header_sys_wait_h=yes
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_header_sys_wait_h=no
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8751 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8752 if test $ac_cv_header_sys_wait_h = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define HAVE_SYS_WAIT_H 1
8782 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8783 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8784 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8785 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8789 $as_echo_n "checking for $ac_header... " >&6; }
8790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8791 $as_echo_n "(cached) " >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 #include <$ac_header>
8801 if { (ac_try="$ac_cpp conftest.$ac_ext"
8803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8804 *) ac_try_echo
=$ac_try;;
8806 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8807 $as_echo "$ac_try_echo") >&5
8808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8810 grep -v '^ *+' conftest.er1
>conftest.err
8812 cat conftest.err
>&5
8813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } >/dev
/null
&& {
8815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8818 eval "$as_ac_Header=yes"
8820 $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.
$ac_ext >&5
8823 eval "$as_ac_Header=no"
8826 rm -f conftest.err conftest.
$ac_ext
8828 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8829 $as_echo "$as_val"'`
8830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8831 $as_echo "$ac_res" >&6; }
8832 if test `eval 'as_val=${'$as_ac_Header'}
8833 $as_echo "$as_val"'` = yes; then
8834 cat >>confdefs.h
<<_ACEOF
8835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8842 # Check for thread headers.
8843 { $as_echo "$as_me:$LINENO: checking for thread.h" >&5
8844 $as_echo_n "checking for thread.h... " >&6; }
8845 if test "${ac_cv_header_thread_h+set}" = set; then
8846 $as_echo_n "(cached) " >&6
8848 cat >conftest.
$ac_ext <<_ACEOF
8851 cat confdefs.h
>>conftest.
$ac_ext
8852 cat >>conftest.
$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8856 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8862 $as_echo "$ac_try_echo") >&5
8863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } >/dev/null && {
8870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8871 test ! -s conftest.err
8873 ac_cv_header_thread_h=yes
8875 $as_echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 ac_cv_header_thread_h=no
8881 rm -f conftest.err conftest.$ac_ext
8883 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8884 $as_echo "$ac_cv_header_thread_h" >&6; }
8885 if test $ac_cv_header_thread_h = yes; then
8891 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
8892 $as_echo_n "checking for pthread.h... " >&6; }
8893 if test "${ac_cv_header_pthread_h+set}" = set; then
8894 $as_echo_n "(cached) " >&6
8896 cat >conftest.$ac_ext <<_ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 #include <pthread.h>
8904 if { (ac_try="$ac_cpp conftest.$ac_ext"
8906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8907 *) ac_try_echo
=$ac_try;;
8909 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8910 $as_echo "$ac_try_echo") >&5
8911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8913 grep -v '^ *+' conftest.er1
>conftest.err
8915 cat conftest.err
>&5
8916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } >/dev
/null
&& {
8918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8921 ac_cv_header_pthread_h
=yes
8923 $as_echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.
$ac_ext >&5
8926 ac_cv_header_pthread_h
=no
8929 rm -f conftest.err conftest.
$ac_ext
8931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8932 $as_echo "$ac_cv_header_pthread_h" >&6; }
8933 if test $ac_cv_header_pthread_h = yes; then
8940 # These tests can't be done till we know if we have limits.h.
8941 { $as_echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8942 $as_echo_n "checking for CHAR_BIT... " >&6; }
8943 if test "${gcc_cv_decl_char_bit+set}" = set; then
8944 $as_echo_n "(cached) " >&6
8946 cat >conftest.
$ac_ext <<_ACEOF
8949 cat confdefs.h
>>conftest.
$ac_ext
8950 cat >>conftest.
$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #ifdef HAVE_LIMITS_H
8959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960 $EGREP "found" >/dev
/null
2>&1; then
8961 gcc_cv_decl_char_bit
=yes
8963 gcc_cv_decl_char_bit
=no
8969 { $as_echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8970 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8971 if test $gcc_cv_decl_char_bit = no
; then
8972 { $as_echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8973 $as_echo_n "checking number of bits in a byte... " >&6; }
8974 if test "${gcc_cv_c_nbby+set}" = set; then
8975 $as_echo_n "(cached) " >&6
8979 while test $i -lt 65; do
8980 cat >conftest.
$ac_ext <<_ACEOF
8983 cat confdefs.h
>>conftest.
$ac_ext
8984 cat >>conftest.
$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8991 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8992 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8998 rm -f conftest.
$ac_objext
8999 if { (ac_try
="$ac_compile"
9001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
9010 cat conftest.err >&5
9011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 gcc_cv_c_nbby=$i; break
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9030 { $as_echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9031 $as_echo "$gcc_cv_c_nbby" >&6; }
9032 if test $gcc_cv_c_nbby = failed; then
9033 { { $as_echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9034 $as_echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9035 { (exit 1); exit 1; }; }
9038 cat >>confdefs.h <<_ACEOF
9039 #define CHAR_BIT $gcc_cv_c_nbby
9045 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9046 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9047 if test "${ac_cv_c_bigendian+set}" = set; then
9048 $as_echo_n "(cached) " >&6
9050 ac_cv_c_bigendian=unknown
9051 # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
9052 cat >conftest.$ac_ext <<_ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 #if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9068 *) ac_try_echo
=$ac_try;;
9070 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && {
9079 test -z "$ac_c_werror_flag" ||
9080 test ! -s conftest.err
9081 } && test -s conftest.
$ac_objext; then
9082 ac_cv_c_bigendian
=universal
9084 $as_echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.
$ac_ext >&5
9090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9091 if test $ac_cv_c_bigendian = unknown
; then
9092 # See if sys/param.h defines the BYTE_ORDER macro.
9093 cat >conftest.
$ac_ext <<_ACEOF
9096 cat confdefs.h
>>conftest.
$ac_ext
9097 cat >>conftest.
$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <sys/types.h>
9100 #include <sys/param.h>
9105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9115 rm -f conftest.
$ac_objext
9116 if { (ac_try
="$ac_compile"
9118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9133 # It does; now see whether it defined to BIG_ENDIAN or not.
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <sys/types.h>
9141 #include <sys/param.h>
9146 #if BYTE_ORDER != BIG_ENDIAN
9154 rm -f conftest.$ac_objext
9155 if { (ac_try="$ac_compile"
9157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9158 *) ac_try_echo
=$ac_try;;
9160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162 (eval "$ac_compile") 2>conftest.er1
9164 grep -v '^ *+' conftest.er1
>conftest.err
9166 cat conftest.err
>&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest.
$ac_objext; then
9172 ac_cv_c_bigendian
=yes
9174 $as_echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.
$ac_ext >&5
9177 ac_cv_c_bigendian
=no
9180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9182 $as_echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.
$ac_ext >&5
9188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9190 if test $ac_cv_c_bigendian = unknown
; then
9191 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9192 cat >conftest.
$ac_ext <<_ACEOF
9195 cat confdefs.h
>>conftest.
$ac_ext
9196 cat >>conftest.
$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9203 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9211 rm -f conftest.
$ac_objext
9212 if { (ac_try
="$ac_compile"
9214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9218 $as_echo "$ac_try_echo") >&5
9219 (eval "$ac_compile") 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest.$ac_objext; then
9229 # It does; now see whether it defined to _BIG_ENDIAN or not.
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9249 rm -f conftest.$ac_objext
9250 if { (ac_try="$ac_compile"
9252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9253 *) ac_try_echo
=$ac_try;;
9255 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9256 $as_echo "$ac_try_echo") >&5
9257 (eval "$ac_compile") 2>conftest.er1
9259 grep -v '^ *+' conftest.er1
>conftest.err
9261 cat conftest.err
>&5
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && {
9264 test -z "$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9266 } && test -s conftest.
$ac_objext; then
9267 ac_cv_c_bigendian
=yes
9269 $as_echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.
$ac_ext >&5
9272 ac_cv_c_bigendian
=no
9275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.
$ac_ext >&5
9283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9285 if test $ac_cv_c_bigendian = unknown
; then
9286 # Compile a test program.
9287 if test "$cross_compiling" = yes; then
9288 # Try to guess by grepping values from an object file.
9289 cat >conftest.
$ac_ext <<_ACEOF
9292 cat confdefs.h
>>conftest.
$ac_ext
9293 cat >>conftest.
$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 short int ascii_mm[] =
9296 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9297 short int ascii_ii[] =
9298 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9299 int use_ascii (int i) {
9300 return ascii_mm[i] + ascii_ii[i];
9302 short int ebcdic_ii[] =
9303 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9304 short int ebcdic_mm[] =
9305 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9306 int use_ebcdic (int i) {
9307 return ebcdic_mm[i] + ebcdic_ii[i];
9314 return use_ascii (foo) == use_ebcdic (foo);
9319 rm -f conftest.
$ac_objext
9320 if { (ac_try
="$ac_compile"
9322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9323 *) ac_try_echo=$ac_try;;
9325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9326 $as_echo "$ac_try_echo") >&5
9327 (eval "$ac_compile") 2>conftest.er1
9329 grep -v '^ *+' conftest.er1 >conftest.err
9331 cat conftest.err >&5
9332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest.$ac_objext; then
9337 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9338 ac_cv_c_bigendian=yes
9340 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9341 if test "$ac_cv_c_bigendian" = unknown; then
9342 ac_cv_c_bigendian=no
9344 # finding both strings is unlikely to happen, but who knows?
9345 ac_cv_c_bigendian=unknown
9349 $as_echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 cat >conftest.$ac_ext <<_ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 $ac_includes_default
9368 /* Are we little or big endian? From Harbison&Steele. */
9372 char c[sizeof (long int)];
9375 return u.c[sizeof (long int) - 1] == 1;
9381 rm -f conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9385 *) ac_try_echo
=$ac_try;;
9387 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9388 $as_echo "$ac_try_echo") >&5
9389 (eval "$ac_link") 2>&5
9391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9393 { (case "(($ac_try" in
9394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_try") 2>&5
9401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_c_bigendian=no
9405 $as_echo "$as_me: program exited with status $ac_status" >&5
9406 $as_echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_cv_c_bigendian=yes
9412 rm -rf conftest.dSYM
9413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9419 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9420 $as_echo "$ac_cv_c_bigendian" >&6; }
9421 case $ac_cv_c_bigendian in #(
9423 cat >>confdefs.h <<\_ACEOF
9424 #define WORDS_BIGENDIAN 1
9432 { { $as_echo "$as_me:$LINENO: error: unknown endianness
9433 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9434 $as_echo "$as_me: error: unknown endianness
9435 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9436 { (exit 1); exit 1; }; } ;;
9444 # Stage specific cflags for build.
9448 if test x$GCC = xyes
9450 stage1_cflags="-Wa,-J"
9456 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
9457 # sources; use -no-cpp-precomp to get to GNU cpp.
9458 # Apple's GCC has bugs in designated initializer handling, so disable
9460 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
9465 # These libraries may be used by collect2.
9466 # We may need a special search path to get them linked.
9467 { $as_echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9468 $as_echo_n "checking for collect2 libraries... " >&6; }
9469 if test "${gcc_cv_collect2_libs+set}" = set; then
9470 $as_echo_n "(cached) " >&6
9473 for libs in '' -lld -lmld \
9474 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9475 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (ac_try="$ac_link"
9503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9504 *) ac_try_echo
=$ac_try;;
9506 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9507 $as_echo "$ac_try_echo") >&5
9508 (eval "$ac_link") 2>conftest.er1
9510 grep -v '^ *+' conftest.er1
>conftest.err
9512 cat conftest.err
>&5
9513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest
$ac_exeext && {
9518 test "$cross_compiling" = yes ||
9519 $as_test_x conftest
$ac_exeext
9521 gcc_cv_collect2_libs
="$libs"; break
9523 $as_echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.
$ac_ext >&5
9529 rm -rf conftest.dSYM
9530 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9531 conftest
$ac_exeext conftest.
$ac_ext
9534 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9536 { $as_echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9537 $as_echo "$gcc_cv_collect2_libs" >&6; }
9538 case $gcc_cv_collect2_libs in
9540 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9544 # When building Ada code on Alpha, we need exc_resume which is usually in
9545 # -lexc. So test for it.
9548 { $as_echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9549 $as_echo_n "checking for library containing exc_resume... " >&6; }
9550 if test "${ac_cv_search_exc_resume+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9553 ac_func_search_save_LIBS
=$LIBS
9554 cat >conftest.
$ac_ext <<_ACEOF
9557 cat confdefs.h
>>conftest.
$ac_ext
9558 cat >>conftest.
$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9571 return exc_resume ();
9576 for ac_lib
in '' exc
; do
9577 if test -z "$ac_lib"; then
9578 ac_res
="none required"
9581 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9583 rm -f conftest.
$ac_objext conftest
$ac_exeext
9584 if { (ac_try
="$ac_link"
9586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9590 $as_echo "$ac_try_echo") >&5
9591 (eval "$ac_link") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest$ac_exeext && {
9601 test "$cross_compiling" = yes ||
9602 $as_test_x conftest$ac_exeext
9604 ac_cv_search_exc_resume=$ac_res
9606 $as_echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9612 rm -rf conftest.dSYM
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9615 if test "${ac_cv_search_exc_resume+set}" = set; then
9619 if test "${ac_cv_search_exc_resume+set}" = set; then
9622 ac_cv_search_exc_resume=no
9625 LIBS=$ac_func_search_save_LIBS
9627 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9628 $as_echo "$ac_cv_search_exc_resume" >&6; }
9629 ac_res=$ac_cv_search_exc_resume
9630 if test "$ac_res" != no; then
9631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9639 # Some systems put ldexp and frexp in libm instead of libc; assume
9640 # they're both in the same place. jcf-dump needs them.
9643 { $as_echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9644 $as_echo_n "checking for library containing ldexp... " >&6; }
9645 if test "${ac_cv_search_ldexp+set}" = set; then
9646 $as_echo_n "(cached) " >&6
9648 ac_func_search_save_LIBS=$LIBS
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9671 for ac_lib in '' m; do
9672 if test -z "$ac_lib"; then
9673 ac_res="none required"
9676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (ac_try="$ac_link"
9681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9682 *) ac_try_echo
=$ac_try;;
9684 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9685 $as_echo "$ac_try_echo") >&5
9686 (eval "$ac_link") 2>conftest.er1
9688 grep -v '^ *+' conftest.er1
>conftest.err
9690 cat conftest.err
>&5
9691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest
$ac_exeext && {
9696 test "$cross_compiling" = yes ||
9697 $as_test_x conftest
$ac_exeext
9699 ac_cv_search_ldexp
=$ac_res
9701 $as_echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.
$ac_ext >&5
9707 rm -rf conftest.dSYM
9708 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9710 if test "${ac_cv_search_ldexp+set}" = set; then
9714 if test "${ac_cv_search_ldexp+set}" = set; then
9717 ac_cv_search_ldexp
=no
9720 LIBS
=$ac_func_search_save_LIBS
9722 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9723 $as_echo "$ac_cv_search_ldexp" >&6; }
9724 ac_res
=$ac_cv_search_ldexp
9725 if test "$ac_res" != no
; then
9726 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9734 # Use <inttypes.h> only if it exists,
9735 # doesn't clash with <sys/types.h>, and declares intmax_t.
9736 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
9737 $as_echo_n "checking for inttypes.h... " >&6; }
9738 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9739 $as_echo_n "(cached) " >&6
9741 cat >conftest.
$ac_ext <<_ACEOF
9744 cat confdefs.h
>>conftest.
$ac_ext
9745 cat >>conftest.
$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <sys/types.h>
9748 #include <inttypes.h>
9757 rm -f conftest.
$ac_objext
9758 if { (ac_try
="$ac_compile"
9760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764 $as_echo "$ac_try_echo") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 gcc_cv_header_inttypes_h=yes
9777 $as_echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 gcc_cv_header_inttypes_h=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9787 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9788 if test $gcc_cv_header_inttypes_h = yes; then
9790 cat >>confdefs.h <<\_ACEOF
9791 #define HAVE_INTTYPES_H 1
9833 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9834 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9835 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9836 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
9838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9840 $as_echo_n "checking for $ac_func... " >&6; }
9841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9842 $as_echo_n "(cached) " >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852 #define $ac_func innocuous_$ac_func
9854 /* System header to define __stub macros and hopefully few prototypes,
9855 which can conflict with char $ac_func (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9860 # include <limits.h>
9862 # include <assert.h>
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9874 /* The GNU C library defines this for functions which it implements
9875 to always fail with ENOSYS. Some functions are actually named
9876 something starting with __ and the normal name is an alias. */
9877 #if defined __stub_$ac_func || defined __stub___$ac_func
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9893 *) ac_try_echo
=$ac_try;;
9895 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9896 $as_echo "$ac_try_echo") >&5
9897 (eval "$ac_link") 2>conftest.er1
9899 grep -v '^ *+' conftest.er1
>conftest.err
9901 cat conftest.err
>&5
9902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && {
9904 test -z "$ac_c_werror_flag" ||
9905 test ! -s conftest.err
9906 } && test -s conftest
$ac_exeext && {
9907 test "$cross_compiling" = yes ||
9908 $as_test_x conftest
$ac_exeext
9910 eval "$as_ac_var=yes"
9912 $as_echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.
$ac_ext >&5
9915 eval "$as_ac_var=no"
9918 rm -rf conftest.dSYM
9919 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9920 conftest
$ac_exeext conftest.
$ac_ext
9922 ac_res
=`eval 'as_val=${'$as_ac_var'}
9923 $as_echo "$as_val"'`
9924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9925 $as_echo "$ac_res" >&6; }
9926 if test `eval 'as_val=${'$as_ac_var'}
9927 $as_echo "$as_val"'` = yes; then
9928 cat >>confdefs.h
<<_ACEOF
9929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9936 if test x
$ac_cv_func_mbstowcs = xyes
; then
9937 { $as_echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9938 $as_echo_n "checking whether mbstowcs works... " >&6; }
9939 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9940 $as_echo_n "(cached) " >&6
9942 if test "$cross_compiling" = yes; then
9943 gcc_cv_func_mbstowcs_works
=yes
9945 cat >conftest.
$ac_ext <<_ACEOF
9948 cat confdefs.h
>>conftest.
$ac_ext
9949 cat >>conftest.
$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9958 rm -f conftest
$ac_exeext
9959 if { (ac_try
="$ac_link"
9961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9965 $as_echo "$ac_try_echo") >&5
9966 (eval "$ac_link") 2>&5
9968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9972 *) ac_try_echo
=$ac_try;;
9974 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_try") 2>&5
9978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 gcc_cv_func_mbstowcs_works
=yes
9982 $as_echo "$as_me: program exited with status $ac_status" >&5
9983 $as_echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.
$ac_ext >&5
9987 gcc_cv_func_mbstowcs_works
=no
9989 rm -rf conftest.dSYM
9990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9995 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9996 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9997 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9999 cat >>confdefs.h
<<\_ACEOF
10000 #define HAVE_WORKING_MBSTOWCS 1
10006 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
10007 $as_echo_n "checking for ssize_t... " >&6; }
10008 if test "${ac_cv_type_ssize_t+set}" = set; then
10009 $as_echo_n "(cached) " >&6
10011 ac_cv_type_ssize_t
=no
10012 cat >conftest.
$ac_ext <<_ACEOF
10015 cat confdefs.h
>>conftest.
$ac_ext
10016 cat >>conftest.
$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 $ac_includes_default
10022 if (sizeof (ssize_t))
10028 rm -f conftest.
$ac_objext
10029 if { (ac_try
="$ac_compile"
10030 case "(($ac_try" in
10031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10035 $as_echo "$ac_try_echo") >&5
10036 (eval "$ac_compile") 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && {
10043 test -z "$ac_c_werror_flag" ||
10044 test ! -s conftest.err
10045 } && test -s conftest.$ac_objext; then
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 $ac_includes_default
10056 if (sizeof ((ssize_t)))
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10066 *) ac_try_echo
=$ac_try;;
10068 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1
>conftest.err
10074 cat conftest.err
>&5
10075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.
$ac_objext; then
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.
$ac_ext >&5
10085 ac_cv_type_ssize_t
=yes
10088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10090 $as_echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.
$ac_ext >&5
10096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10099 $as_echo "$ac_cv_type_ssize_t" >&6; }
10100 if test $ac_cv_type_ssize_t = yes; then
10104 cat >>confdefs.h
<<_ACEOF
10105 #define ssize_t int
10111 # Try to determine the array type of the second argument of getgroups
10112 # for the target system (int or gid_t).
10113 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10114 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10115 if test "${ac_cv_type_uid_t+set}" = set; then
10116 $as_echo_n "(cached) " >&6
10118 cat >conftest.
$ac_ext <<_ACEOF
10121 cat confdefs.h
>>conftest.
$ac_ext
10122 cat >>conftest.
$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <sys/types.h>
10127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10128 $EGREP "uid_t" >/dev
/null
2>&1; then
10129 ac_cv_type_uid_t
=yes
10131 ac_cv_type_uid_t
=no
10136 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10137 $as_echo "$ac_cv_type_uid_t" >&6; }
10138 if test $ac_cv_type_uid_t = no
; then
10140 cat >>confdefs.h
<<\_ACEOF
10145 cat >>confdefs.h
<<\_ACEOF
10151 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10152 $as_echo_n "checking type of array argument to getgroups... " >&6; }
10153 if test "${ac_cv_type_getgroups+set}" = set; then
10154 $as_echo_n "(cached) " >&6
10156 if test "$cross_compiling" = yes; then
10157 ac_cv_type_getgroups
=cross
10159 cat >conftest.
$ac_ext <<_ACEOF
10162 cat confdefs.h
>>conftest.
$ac_ext
10163 cat >>conftest.
$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 /* Thanks to Mike Rendell for this test. */
10166 $ac_includes_default
10169 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10174 gid_t gidset[NGID];
10176 union { gid_t gval; long int lval; } val;
10179 for (i = 0; i < NGID; i++)
10180 gidset[i] = val.gval;
10181 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10183 /* Exit non-zero if getgroups seems to require an array of ints. This
10184 happens when gid_t is short int but getgroups modifies an array
10186 return n > 0 && gidset[n] != val.gval;
10189 rm -f conftest
$ac_exeext
10190 if { (ac_try
="$ac_link"
10191 case "(($ac_try" in
10192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10196 $as_echo "$ac_try_echo") >&5
10197 (eval "$ac_link") 2>&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10201 { (case "(($ac_try" in
10202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10203 *) ac_try_echo
=$ac_try;;
10205 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10206 $as_echo "$ac_try_echo") >&5
10207 (eval "$ac_try") 2>&5
10209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_type_getgroups
=gid_t
10213 $as_echo "$as_me: program exited with status $ac_status" >&5
10214 $as_echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.
$ac_ext >&5
10217 ( exit $ac_status )
10218 ac_cv_type_getgroups
=int
10220 rm -rf conftest.dSYM
10221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10225 if test $ac_cv_type_getgroups = cross
; then
10226 cat >conftest.
$ac_ext <<_ACEOF
10229 cat confdefs.h
>>conftest.
$ac_ext
10230 cat >>conftest.
$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 #include <unistd.h>
10235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10236 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
10237 ac_cv_type_getgroups
=gid_t
10239 ac_cv_type_getgroups
=int
10245 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10246 $as_echo "$ac_cv_type_getgroups" >&6; }
10248 cat >>confdefs.h
<<_ACEOF
10249 #define GETGROUPS_T $ac_cv_type_getgroups
10253 if test "${target}" = "${build}"; then
10254 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
10256 case "${target}" in
10257 # This condition may need some tweaking. It should include all
10258 # targets where the array type of the second argument of getgroups
10259 # is int and the type of gid_t is not equivalent to int.
10260 *-*-sunos* |
*-*-ultrix*)
10261 TARGET_GETGROUPS_T
=int
10264 TARGET_GETGROUPS_T
=gid_t
10271 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10272 $as_echo_n "checking for sys/mman.h... " >&6; }
10273 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10274 $as_echo_n "(cached) " >&6
10276 cat >conftest.
$ac_ext <<_ACEOF
10279 cat confdefs.h
>>conftest.
$ac_ext
10280 cat >>conftest.
$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 #include <sys/mman.h>
10284 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10285 case "(($ac_try" in
10286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } >/dev/null && {
10298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10301 ac_cv_header_sys_mman_h=yes
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_cv_header_sys_mman_h=no
10309 rm -f conftest.err conftest.$ac_ext
10311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10312 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
10313 if test $ac_cv_header_sys_mman_h = yes; then
10314 gcc_header_sys_mman_h=yes
10316 gcc_header_sys_mman_h=no
10319 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
10320 $as_echo_n "checking for mmap... " >&6; }
10321 if test "${ac_cv_func_mmap+set}" = set; then
10322 $as_echo_n "(cached) " >&6
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10332 #define mmap innocuous_mmap
10334 /* System header to define __stub macros and hopefully few prototypes,
10335 which can conflict with char mmap (); below.
10336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10337 <limits.h> exists even on freestanding compilers. */
10340 # include <limits.h>
10342 # include <assert.h>
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined __stub_mmap || defined __stub___mmap
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10373 *) ac_try_echo
=$ac_try;;
10375 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_link") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1
>conftest.err
10381 cat conftest.err
>&5
10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest
$ac_exeext && {
10387 test "$cross_compiling" = yes ||
10388 $as_test_x conftest
$ac_exeext
10390 ac_cv_func_mmap
=yes
10392 $as_echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.
$ac_ext >&5
10398 rm -rf conftest.dSYM
10399 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10400 conftest
$ac_exeext conftest.
$ac_ext
10402 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10403 $as_echo "$ac_cv_func_mmap" >&6; }
10404 if test $ac_cv_func_mmap = yes; then
10410 if test "$gcc_header_sys_mman_h" != yes \
10411 ||
test "$gcc_func_mmap" != yes; then
10412 gcc_cv_func_mmap_file
=no
10413 gcc_cv_func_mmap_dev_zero
=no
10414 gcc_cv_func_mmap_anon
=no
10416 { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10417 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10418 if test "${gcc_cv_func_mmap_file+set}" = set; then
10419 $as_echo_n "(cached) " >&6
10421 # Add a system to this blacklist if
10422 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10423 # memory area containing the same data that you'd get if you applied
10424 # read() to the same fd. The only system known to have a problem here
10425 # is VMS, where text files have record structure.
10428 gcc_cv_func_mmap_file
=no
;;
10430 gcc_cv_func_mmap_file
=yes;;
10433 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10434 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10435 { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10436 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10437 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10438 $as_echo_n "(cached) " >&6
10440 # Add a system to this blacklist if it has mmap() but /dev/zero
10441 # does not exist, or if mmapping /dev/zero does not give anonymous
10442 # zeroed pages with both the following properties:
10443 # 1. If you map N consecutive pages in with one call, and then
10444 # unmap any subset of those pages, the pages that were not
10445 # explicitly unmapped remain accessible.
10446 # 2. If you map two adjacent blocks of memory and then unmap them
10447 # both at once, they must both go away.
10448 # Systems known to be in this category are Windows (all variants),
10451 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10452 gcc_cv_func_mmap_dev_zero
=no
;;
10454 gcc_cv_func_mmap_dev_zero
=yes;;
10457 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10458 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10460 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10461 { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10462 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10463 if test "${gcc_cv_decl_map_anon+set}" = set; then
10464 $as_echo_n "(cached) " >&6
10466 cat >conftest.
$ac_ext <<_ACEOF
10469 cat confdefs.h
>>conftest.
$ac_ext
10470 cat >>conftest.
$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 #include <sys/types.h>
10473 #include <sys/mman.h>
10474 #include <unistd.h>
10476 #ifndef MAP_ANONYMOUS
10477 #define MAP_ANONYMOUS MAP_ANON
10483 int n = MAP_ANONYMOUS;
10488 rm -f conftest.
$ac_objext
10489 if { (ac_try
="$ac_compile"
10490 case "(($ac_try" in
10491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10495 $as_echo "$ac_try_echo") >&5
10496 (eval "$ac_compile") 2>conftest.er1
10498 grep -v '^ *+' conftest.er1 >conftest.err
10500 cat conftest.err >&5
10501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && {
10503 test -z "$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 } && test -s conftest.$ac_objext; then
10506 gcc_cv_decl_map_anon=yes
10508 $as_echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 gcc_cv_decl_map_anon=no
10514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516 { $as_echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10517 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10519 if test $gcc_cv_decl_map_anon = no; then
10520 gcc_cv_func_mmap_anon=no
10522 { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10523 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10524 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10525 $as_echo_n "(cached) " >&6
10527 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10528 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10529 # doesn't give anonymous zeroed pages with the same properties listed
10530 # above for use of /dev/zero.
10531 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10533 vms* | cygwin* | pe | mingw* | sco* | udk* )
10534 gcc_cv_func_mmap_anon=no ;;
10536 gcc_cv_func_mmap_anon=yes;;
10539 { $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10540 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10544 if test $gcc_cv_func_mmap_file = yes; then
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_MMAP_FILE 1
10551 if test $gcc_cv_func_mmap_dev_zero = yes; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define HAVE_MMAP_DEV_ZERO 1
10558 if test $gcc_cv_func_mmap_anon = yes; then
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_MMAP_ANON 1
10569 # Under VMS, vfork works very differently than on Unix. The standard test
10570 # won't work, and it isn't easily adaptable. It makes more sense to
10572 ac_cv_func_vfork_works=yes
10575 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
10576 $as_echo_n "checking for pid_t... " >&6; }
10577 if test "${ac_cv_type_pid_t+set}" = set; then
10578 $as_echo_n "(cached) " >&6
10580 ac_cv_type_pid_t=no
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 $ac_includes_default
10591 if (sizeof (pid_t))
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10601 *) ac_try_echo
=$ac_try;;
10603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605 (eval "$ac_compile") 2>conftest.er1
10607 grep -v '^ *+' conftest.er1
>conftest.err
10609 cat conftest.err
>&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest.
$ac_objext; then
10615 cat >conftest.
$ac_ext <<_ACEOF
10618 cat confdefs.h
>>conftest.
$ac_ext
10619 cat >>conftest.
$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 $ac_includes_default
10625 if (sizeof ((pid_t)))
10631 rm -f conftest.
$ac_objext
10632 if { (ac_try
="$ac_compile"
10633 case "(($ac_try" in
10634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10638 $as_echo "$ac_try_echo") >&5
10639 (eval "$ac_compile") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest.$ac_objext; then
10651 $as_echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ac_cv_type_pid_t=yes
10657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659 $as_echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10668 $as_echo "$ac_cv_type_pid_t" >&6; }
10669 if test $ac_cv_type_pid_t = yes; then
10673 cat >>confdefs.h <<_ACEOF
10680 for ac_header in vfork.h
10682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10684 $as_echo_n "checking for $ac_header... " >&6; }
10685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686 $as_echo_n "(cached) " >&6
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <$ac_header>
10696 if { (ac_try="$ac_cpp conftest.$ac_ext"
10697 case "(($ac_try" in
10698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10699 *) ac_try_echo
=$ac_try;;
10701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10702 $as_echo "$ac_try_echo") >&5
10703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10705 grep -v '^ *+' conftest.er1
>conftest.err
10707 cat conftest.err
>&5
10708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev
/null
&& {
10710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10713 eval "$as_ac_Header=yes"
10715 $as_echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.
$ac_ext >&5
10718 eval "$as_ac_Header=no"
10721 rm -f conftest.err conftest.
$ac_ext
10723 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10724 $as_echo "$as_val"'`
10725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10726 $as_echo "$ac_res" >&6; }
10727 if test `eval 'as_val=${'$as_ac_Header'}
10728 $as_echo "$as_val"'` = yes; then
10729 cat >>confdefs.h
<<_ACEOF
10730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738 for ac_func
in fork vfork
10740 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10741 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10742 $as_echo_n "checking for $ac_func... " >&6; }
10743 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10744 $as_echo_n "(cached) " >&6
10746 cat >conftest.
$ac_ext <<_ACEOF
10749 cat confdefs.h
>>conftest.
$ac_ext
10750 cat >>conftest.
$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10754 #define $ac_func innocuous_$ac_func
10756 /* System header to define __stub macros and hopefully few prototypes,
10757 which can conflict with char $ac_func (); below.
10758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759 <limits.h> exists even on freestanding compilers. */
10762 # include <limits.h>
10764 # include <assert.h>
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10776 /* The GNU C library defines this for functions which it implements
10777 to always fail with ENOSYS. Some functions are actually named
10778 something starting with __ and the normal name is an alias. */
10779 #if defined __stub_$ac_func || defined __stub___$ac_func
10786 return $ac_func ();
10791 rm -f conftest.
$ac_objext conftest
$ac_exeext
10792 if { (ac_try
="$ac_link"
10793 case "(($ac_try" in
10794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10798 $as_echo "$ac_try_echo") >&5
10799 (eval "$ac_link") 2>conftest.er1
10801 grep -v '^ *+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest$ac_exeext && {
10809 test "$cross_compiling" = yes ||
10810 $as_test_x conftest$ac_exeext
10812 eval "$as_ac_var=yes"
10814 $as_echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 eval "$as_ac_var=no"
10820 rm -rf conftest.dSYM
10821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10822 conftest$ac_exeext conftest.$ac_ext
10824 ac_res=`eval 'as_val=${'$as_ac_var'}
10825 $as_echo "$as_val"'`
10826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10827 $as_echo "$ac_res" >&6; }
10828 if test `eval 'as_val=${'$as_ac_var'}
10829 $as_echo "$as_val"'` = yes; then
10830 cat >>confdefs.h <<_ACEOF
10831 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10837 if test "x$ac_cv_func_fork" = xyes; then
10838 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
10839 $as_echo_n "checking for working fork... " >&6; }
10840 if test "${ac_cv_func_fork_works+set}" = set; then
10841 $as_echo_n "(cached) " >&6
10843 if test "$cross_compiling" = yes; then
10844 ac_cv_func_fork_works=cross
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 $ac_includes_default
10857 /* By Ruediger Kuhlmann. */
10858 return fork () < 0;
10864 rm -f conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10868 *) ac_try_echo
=$ac_try;;
10870 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10871 $as_echo "$ac_try_echo") >&5
10872 (eval "$ac_link") 2>&5
10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10876 { (case "(($ac_try" in
10877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10881 $as_echo "$ac_try_echo") >&5
10882 (eval "$ac_try") 2>&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_func_fork_works=yes
10888 $as_echo "$as_me: program exited with status $ac_status" >&5
10889 $as_echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ( exit $ac_status )
10893 ac_cv_func_fork_works=no
10895 rm -rf conftest.dSYM
10896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10901 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10902 $as_echo "$ac_cv_func_fork_works" >&6; }
10905 ac_cv_func_fork_works=$ac_cv_func_fork
10907 if test "x$ac_cv_func_fork_works" = xcross; then
10909 *-*-amigaos* | *-*-msdosdjgpp*)
10910 # Override, as these systems have only a dummy fork() stub
10911 ac_cv_func_fork_works=no
10914 ac_cv_func_fork_works=yes
10917 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10918 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10920 ac_cv_func_vfork_works=$ac_cv_func_vfork
10921 if test "x$ac_cv_func_vfork" = xyes; then
10922 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
10923 $as_echo_n "checking for working vfork... " >&6; }
10924 if test "${ac_cv_func_vfork_works+set}" = set; then
10925 $as_echo_n "(cached) " >&6
10927 if test "$cross_compiling" = yes; then
10928 ac_cv_func_vfork_works=cross
10930 cat >conftest.$ac_ext <<_ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 /* Thanks to Paul Eggert for this test. */
10937 $ac_includes_default
10938 #include <sys/wait.h>
10939 #ifdef HAVE_VFORK_H
10940 # include <vfork.h>
10942 /* On some sparc systems, changes by the child to local and incoming
10943 argument registers are propagated back to the parent. The compiler
10944 is told about this with #include <vfork.h>, but some compilers
10945 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10946 static variable whose address is put into a register that is
10947 clobbered by the vfork. */
10950 sparc_address_test (int arg)
10952 sparc_address_test (arg) int arg;
10955 static pid_t child;
10973 pid_t parent = getpid ();
10976 sparc_address_test (0);
10981 /* Here is another test for sparc vfork register problems. This
10982 test uses lots of local variables, at least as many local
10983 variables as main has allocated so far including compiler
10984 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10985 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10986 reuse the register of parent for one of the local variables,
10987 since it will think that parent can't possibly be used any more
10988 in this routine. Assigning to the local variable will thus
10989 munge parent in the parent process. */
10991 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10992 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10993 /* Convince the compiler that p..p7 are live; otherwise, it might
10994 use the same hardware register for all 8 local variables. */
10995 if (p != p1 || p != p2 || p != p3 || p != p4
10996 || p != p5 || p != p6 || p != p7)
10999 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11000 from child file descriptors. If the child closes a descriptor
11001 before it execs or exits, this munges the parent's descriptor
11002 as well. Test for this by closing stdout in the child. */
11003 _exit(close(fileno(stdout)) != 0);
11008 while (wait(&status) != child)
11011 /* Was there some problem with vforking? */
11014 /* Did the child fail? (This shouldn't happen.) */
11017 /* Did the vfork/compiler bug occur? */
11018 || parent != getpid()
11020 /* Did the file descriptor bug occur? */
11021 || fstat(fileno(stdout), &st) != 0
11026 rm -f conftest$ac_exeext
11027 if { (ac_try="$ac_link"
11028 case "(($ac_try" in
11029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11030 *) ac_try_echo
=$ac_try;;
11032 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11033 $as_echo "$ac_try_echo") >&5
11034 (eval "$ac_link") 2>&5
11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11038 { (case "(($ac_try" in
11039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_try") 2>&5
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_func_vfork_works=yes
11050 $as_echo "$as_me: program exited with status $ac_status" >&5
11051 $as_echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ( exit $ac_status )
11055 ac_cv_func_vfork_works=no
11057 rm -rf conftest.dSYM
11058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11064 $as_echo "$ac_cv_func_vfork_works" >&6; }
11067 if test "x$ac_cv_func_fork_works" = xcross; then
11068 ac_cv_func_vfork_works=$ac_cv_func_vfork
11069 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11070 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11073 if test "x$ac_cv_func_vfork_works" = xyes; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_WORKING_VFORK 1
11081 cat >>confdefs.h <<\_ACEOF
11086 if test "x$ac_cv_func_fork_works" = xyes; then
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_WORKING_FORK 1
11096 if test "X$prefix" = "XNONE"; then
11097 acl_final_prefix="$ac_default_prefix"
11099 acl_final_prefix="$prefix"
11101 if test "X$exec_prefix" = "XNONE"; then
11102 acl_final_exec_prefix='${prefix}'
11104 acl_final_exec_prefix="$exec_prefix"
11106 acl_save_prefix="$prefix"
11107 prefix="$acl_final_prefix"
11108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11109 prefix="$acl_save_prefix"
11112 # Check whether --with-gnu-ld was given.
11113 if test "${with_gnu_ld+set}" = set; then
11114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11119 # Prepare PATH_SEPARATOR.
11120 # The user is always right.
11121 if test "${PATH_SEPARATOR+set}" != set; then
11122 echo "#! /bin/sh" >conf$$.sh
11123 echo "exit 0" >>conf$$.sh
11125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11133 if test "$GCC" = yes; then
11134 # Check if gcc -print-prog-name=ld gives a path.
11135 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11136 $as_echo_n "checking for ld used by GCC... " >&6; }
11139 # gcc leaves a trailing carriage return which upsets mingw
11140 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11142 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11145 # Accept absolute paths.
11146 [\\/]* | [A-Za-z]:[\\/]*)
11147 re_direlt='/[^/][^/]*/\.\./'
11148 # Canonicalize the path of ld
11149 ac_prog=`echo $ac_prog|
sed 's%\\\\%/%g'`
11150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11151 ac_prog=`echo $ac_prog|
sed "s%$re_direlt%/%"`
11153 test -z "$LD" && LD="$ac_prog"
11156 # If it fails, then pretend we aren't using GCC.
11160 # If it is relative, then search for the first ld in PATH.
11161 with_gnu_ld=unknown
11164 elif test "$with_gnu_ld" = yes; then
11165 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11166 $as_echo_n "checking for GNU ld... " >&6; }
11168 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11169 $as_echo_n "checking for non-GNU ld... " >&6; }
11171 if test "${acl_cv_path_LD+set}" = set; then
11172 $as_echo_n "(cached) " >&6
11174 if test -z "$LD"; then
11175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11176 for ac_dir in $PATH; do
11177 test -z "$ac_dir" && ac_dir=.
11178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11179 acl_cv_path_LD="$ac_dir/$ac_prog"
11180 # Check to see if the program is GNU ld. I'd rather use --version,
11181 # but apparently some GNU ld's only accept -v.
11182 # Break only if it was the GNU/non-GNU ld that we prefer.
11183 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11184 test "$with_gnu_ld" != no && break
11186 test "$with_gnu_ld" != yes && break
11192 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11196 LD="$acl_cv_path_LD"
11197 if test -n "$LD"; then
11198 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11199 $as_echo "$LD" >&6; }
11201 { $as_echo "$as_me:$LINENO: result: no" >&5
11202 $as_echo "no" >&6; }
11204 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11205 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11206 { (exit 1); exit 1; }; }
11207 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11209 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11210 $as_echo_n "(cached) " >&6
11212 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11213 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11214 acl_cv_prog_gnu_ld=yes
11216 acl_cv_prog_gnu_ld=no
11219 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11220 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11221 with_gnu_ld=$acl_cv_prog_gnu_ld
11225 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11226 $as_echo_n "checking for shared library run path origin... " >&6; }
11227 if test "${acl_cv_rpath+set}" = set; then
11228 $as_echo_n "(cached) " >&6
11231 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11232 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11234 rm -f ./conftest.sh
11238 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11239 $as_echo "$acl_cv_rpath" >&6; }
11241 libext="$acl_cv_libext"
11242 shlibext="$acl_cv_shlibext"
11243 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11244 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11245 hardcode_direct="$acl_cv_hardcode_direct"
11246 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11247 # Check whether --enable-rpath was given.
11248 if test "${enable_rpath+set}" = set; then
11249 enableval=$enable_rpath; :
11263 acl_save_prefix="$prefix"
11264 prefix="$acl_final_prefix"
11265 acl_save_exec_prefix="$exec_prefix"
11266 exec_prefix="$acl_final_exec_prefix"
11268 eval additional_includedir=\"$includedir\"
11269 eval additional_libdir=\"$libdir\"
11271 exec_prefix="$acl_save_exec_prefix"
11272 prefix="$acl_save_prefix"
11275 # Check whether --with-libiconv-prefix was given.
11276 if test "${with_libiconv_prefix+set}" = set; then
11277 withval=$with_libiconv_prefix;
11278 if test "X$withval" = "Xno"; then
11281 if test "X$withval" = "X"; then
11283 acl_save_prefix="$prefix"
11284 prefix="$acl_final_prefix"
11285 acl_save_exec_prefix="$exec_prefix"
11286 exec_prefix="$acl_final_exec_prefix"
11288 eval additional_includedir=\"$includedir\"
11289 eval additional_libdir=\"$libdir\"
11291 exec_prefix="$acl_save_exec_prefix"
11292 prefix="$acl_save_prefix"
11295 additional_includedir="$withval/include"
11296 additional_libdir="$withval/lib"
11307 names_already_handled=
11308 names_next_round='iconv '
11309 while test -n "$names_next_round"; do
11310 names_this_round="$names_next_round"
11312 for name in $names_this_round; do
11314 for n in $names_already_handled; do
11315 if test "$n" = "$name"; then
11316 already_handled=yes
11320 if test -z "$already_handled"; then
11321 names_already_handled="$names_already_handled $name"
11322 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11323 eval value=\"\$HAVE_LIB$uppername\"
11324 if test -n "$value"; then
11325 if test "$value" = yes; then
11326 eval value=\"\$LIB$uppername\"
11327 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11328 eval value=\"\$LTLIB$uppername\"
11329 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11338 if test $use_additional = yes; then
11339 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11340 found_dir="$additional_libdir"
11341 found_so="$additional_libdir/lib$name.$shlibext"
11342 if test -f "$additional_libdir/lib$name.la"; then
11343 found_la="$additional_libdir/lib$name.la"
11346 if test -f "$additional_libdir/lib$name.$libext"; then
11347 found_dir="$additional_libdir"
11348 found_a="$additional_libdir/lib$name.$libext"
11349 if test -f "$additional_libdir/lib$name.la"; then
11350 found_la="$additional_libdir/lib$name.la"
11355 if test "X$found_dir" = "X"; then
11356 for x in $LDFLAGS $LTLIBICONV; do
11358 acl_save_prefix="$prefix"
11359 prefix="$acl_final_prefix"
11360 acl_save_exec_prefix="$exec_prefix"
11361 exec_prefix="$acl_final_exec_prefix"
11363 exec_prefix="$acl_save_exec_prefix"
11364 prefix="$acl_save_prefix"
11368 dir=`echo "X$x" |
sed -e 's/^X-L//'`
11369 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11371 found_so="$dir/lib$name.$shlibext"
11372 if test -f "$dir/lib$name.la"; then
11373 found_la="$dir/lib$name.la"
11376 if test -f "$dir/lib$name.$libext"; then
11378 found_a="$dir/lib$name.$libext"
11379 if test -f "$dir/lib$name.la"; then
11380 found_la="$dir/lib$name.la"
11386 if test "X$found_dir" != "X"; then
11391 if test "X$found_dir" != "X"; then
11392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11393 if test "X$found_so" != "X"; then
11394 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11398 for x in $ltrpathdirs; do
11399 if test "X$x" = "X$found_dir"; then
11404 if test -z "$haveit"; then
11405 ltrpathdirs="$ltrpathdirs $found_dir"
11407 if test "$hardcode_direct" = yes; then
11408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11410 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11411 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11413 for x in $rpathdirs; do
11414 if test "X$x" = "X$found_dir"; then
11419 if test -z "$haveit"; then
11420 rpathdirs="$rpathdirs $found_dir"
11424 for x in $LDFLAGS $LIBICONV; do
11426 acl_save_prefix="$prefix"
11427 prefix="$acl_final_prefix"
11428 acl_save_exec_prefix="$exec_prefix"
11429 exec_prefix="$acl_final_exec_prefix"
11431 exec_prefix="$acl_save_exec_prefix"
11432 prefix="$acl_save_prefix"
11434 if test "X$x" = "X-L$found_dir"; then
11439 if test -z "$haveit"; then
11440 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11442 if test "$hardcode_minus_L" != no; then
11443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11445 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11451 if test "X$found_a" != "X"; then
11452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11454 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11457 additional_includedir=
11458 case "$found_dir" in
11460 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
11461 additional_includedir="$basedir/include"
11464 if test "X$additional_includedir" != "X"; then
11465 if test "X$additional_includedir" != "X/usr/include"; then
11467 if test "X$additional_includedir" = "X/usr/local/include"; then
11468 if test -n "$GCC"; then
11470 linux*) haveit=yes;;
11474 if test -z "$haveit"; then
11475 for x in $CPPFLAGS $INCICONV; do
11477 acl_save_prefix="$prefix"
11478 prefix="$acl_final_prefix"
11479 acl_save_exec_prefix="$exec_prefix"
11480 exec_prefix="$acl_final_exec_prefix"
11482 exec_prefix="$acl_save_exec_prefix"
11483 prefix="$acl_save_prefix"
11485 if test "X$x" = "X-I$additional_includedir"; then
11490 if test -z "$haveit"; then
11491 if test -d "$additional_includedir"; then
11492 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11498 if test -n "$found_la"; then
11499 save_libdir="$libdir"
11500 case "$found_la" in
11501 */* | *\\*) . "$found_la" ;;
11502 *) . "./$found_la" ;;
11504 libdir="$save_libdir"
11505 for dep in $dependency_libs; do
11508 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
11509 if test "X$additional_libdir" != "X/usr/lib"; then
11511 if test "X$additional_libdir" = "X/usr/local/lib"; then
11512 if test -n "$GCC"; then
11514 linux*) haveit=yes;;
11518 if test -z "$haveit"; then
11520 for x in $LDFLAGS $LIBICONV; do
11522 acl_save_prefix="$prefix"
11523 prefix="$acl_final_prefix"
11524 acl_save_exec_prefix="$exec_prefix"
11525 exec_prefix="$acl_final_exec_prefix"
11527 exec_prefix="$acl_save_exec_prefix"
11528 prefix="$acl_save_prefix"
11530 if test "X$x" = "X-L$additional_libdir"; then
11535 if test -z "$haveit"; then
11536 if test -d "$additional_libdir"; then
11537 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11541 for x in $LDFLAGS $LTLIBICONV; do
11543 acl_save_prefix="$prefix"
11544 prefix="$acl_final_prefix"
11545 acl_save_exec_prefix="$exec_prefix"
11546 exec_prefix="$acl_final_exec_prefix"
11548 exec_prefix="$acl_save_exec_prefix"
11549 prefix="$acl_save_prefix"
11551 if test "X$x" = "X-L$additional_libdir"; then
11556 if test -z "$haveit"; then
11557 if test -d "$additional_libdir"; then
11558 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11565 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
11566 if test "$enable_rpath" != no; then
11568 for x in $rpathdirs; do
11569 if test "X$x" = "X$dir"; then
11574 if test -z "$haveit"; then
11575 rpathdirs="$rpathdirs $dir"
11578 for x in $ltrpathdirs; do
11579 if test "X$x" = "X$dir"; then
11584 if test -z "$haveit"; then
11585 ltrpathdirs="$ltrpathdirs $dir"
11590 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
11593 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11603 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11610 if test "X$rpathdirs" != "X"; then
11611 if test -n "$hardcode_libdir_separator"; then
11613 for found_dir in $rpathdirs; do
11614 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11616 acl_save_libdir="$libdir"
11618 eval flag=\"$hardcode_libdir_flag_spec\"
11619 libdir="$acl_save_libdir"
11620 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11622 for found_dir in $rpathdirs; do
11623 acl_save_libdir="$libdir"
11624 libdir="$found_dir"
11625 eval flag=\"$hardcode_libdir_flag_spec\"
11626 libdir="$acl_save_libdir"
11627 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11631 if test "X$ltrpathdirs" != "X"; then
11632 for found_dir in $ltrpathdirs; do
11633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11643 am_save_CPPFLAGS="$CPPFLAGS"
11645 for element in $INCICONV; do
11647 for x in $CPPFLAGS; do
11649 acl_save_prefix="$prefix"
11650 prefix="$acl_final_prefix"
11651 acl_save_exec_prefix="$exec_prefix"
11652 exec_prefix="$acl_final_exec_prefix"
11654 exec_prefix="$acl_save_exec_prefix"
11655 prefix="$acl_save_prefix"
11657 if test "X$x" = "X$element"; then
11662 if test -z "$haveit"; then
11663 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11668 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
11669 $as_echo_n "checking for iconv... " >&6; }
11670 if test "${am_cv_func_iconv+set}" = set; then
11671 $as_echo_n "(cached) " >&6
11674 am_cv_func_iconv="no, consider installing GNU libiconv"
11676 cat >conftest.$ac_ext <<_ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 #include <stdlib.h>
11687 iconv_t cd = iconv_open("","");
11688 iconv(cd,NULL,NULL,NULL,NULL);
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (ac_try="$ac_link"
11696 case "(($ac_try" in
11697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11698 *) ac_try_echo
=$ac_try;;
11700 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11701 $as_echo "$ac_try_echo") >&5
11702 (eval "$ac_link") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1
>conftest.err
11706 cat conftest.err
>&5
11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest
$ac_exeext && {
11712 test "$cross_compiling" = yes ||
11713 $as_test_x conftest
$ac_exeext
11715 am_cv_func_iconv
=yes
11717 $as_echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.
$ac_ext >&5
11723 rm -rf conftest.dSYM
11724 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11725 conftest
$ac_exeext conftest.
$ac_ext
11726 if test "$am_cv_func_iconv" != yes; then
11727 am_save_LIBS
="$LIBS"
11728 LIBS
="$LIBS $LIBICONV"
11729 cat >conftest.
$ac_ext <<_ACEOF
11732 cat confdefs.h
>>conftest.
$ac_ext
11733 cat >>conftest.
$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 #include <stdlib.h>
11740 iconv_t cd = iconv_open("","");
11741 iconv(cd,NULL,NULL,NULL,NULL);
11747 rm -f conftest.
$ac_objext conftest
$ac_exeext
11748 if { (ac_try
="$ac_link"
11749 case "(($ac_try" in
11750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11754 $as_echo "$ac_try_echo") >&5
11755 (eval "$ac_link") 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest$ac_exeext && {
11765 test "$cross_compiling" = yes ||
11766 $as_test_x conftest$ac_exeext
11768 am_cv_lib_iconv=yes
11769 am_cv_func_iconv=yes
11771 $as_echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11777 rm -rf conftest.dSYM
11778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11779 conftest$ac_exeext conftest.$ac_ext
11780 LIBS="$am_save_LIBS"
11784 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11785 $as_echo "$am_cv_func_iconv" >&6; }
11786 if test "$am_cv_func_iconv" = yes; then
11788 cat >>confdefs.h <<\_ACEOF
11789 #define HAVE_ICONV 1
11793 if test "$am_cv_lib_iconv" = yes; then
11794 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11795 $as_echo_n "checking how to link with libiconv... " >&6; }
11796 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
11797 $as_echo "$LIBICONV" >&6; }
11799 CPPFLAGS="$am_save_CPPFLAGS"
11806 if test "$am_cv_func_iconv" = yes; then
11807 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
11808 $as_echo_n "checking for iconv declaration... " >&6; }
11809 if test "${am_cv_proto_iconv+set}" = set; then
11810 $as_echo_n "(cached) " >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11820 #include <stdlib.h>
11826 #if defined(__STDC__) || defined(__cplusplus)
11827 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11844 *) ac_try_echo
=$ac_try;;
11846 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11847 $as_echo "$ac_try_echo") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1
>conftest.err
11852 cat conftest.err
>&5
11853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest.
$ac_objext; then
11858 am_cv_proto_iconv_arg1
=""
11860 $as_echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.
$ac_ext >&5
11863 am_cv_proto_iconv_arg1
="const"
11866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11867 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);"
11870 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11871 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
11872 }$am_cv_proto_iconv" >&5
11874 }$am_cv_proto_iconv" >&6; }
11876 cat >>confdefs.h
<<_ACEOF
11877 #define ICONV_CONST $am_cv_proto_iconv_arg1
11882 # Until we have in-tree GNU iconv:
11887 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11888 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11889 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11890 $as_echo_n "(cached) " >&6
11892 cat >conftest.
$ac_ext <<_ACEOF
11895 cat confdefs.h
>>conftest.
$ac_ext
11896 cat >>conftest.
$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <locale.h>
11907 rm -f conftest.
$ac_objext conftest
$ac_exeext
11908 if { (ac_try
="$ac_link"
11909 case "(($ac_try" in
11910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11914 $as_echo "$ac_try_echo") >&5
11915 (eval "$ac_link") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext && {
11925 test "$cross_compiling" = yes ||
11926 $as_test_x conftest$ac_exeext
11928 am_cv_val_LC_MESSAGES=yes
11930 $as_echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 am_cv_val_LC_MESSAGES=no
11936 rm -rf conftest.dSYM
11937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11938 conftest$ac_exeext conftest.$ac_ext
11940 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11941 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11942 if test $am_cv_val_LC_MESSAGES = yes; then
11944 cat >>confdefs.h <<\_ACEOF
11945 #define HAVE_LC_MESSAGES 1
11952 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11953 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11954 if test "${am_cv_langinfo_codeset+set}" = set; then
11955 $as_echo_n "(cached) " >&6
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 #include <langinfo.h>
11967 char* cs = nl_langinfo(CODESET);
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (ac_try="$ac_link"
11974 case "(($ac_try" in
11975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11976 *) ac_try_echo
=$ac_try;;
11978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11979 $as_echo "$ac_try_echo") >&5
11980 (eval "$ac_link") 2>conftest.er1
11982 grep -v '^ *+' conftest.er1
>conftest.err
11984 cat conftest.err
>&5
11985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest
$ac_exeext && {
11990 test "$cross_compiling" = yes ||
11991 $as_test_x conftest
$ac_exeext
11993 am_cv_langinfo_codeset
=yes
11995 $as_echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.
$ac_ext >&5
11998 am_cv_langinfo_codeset
=no
12001 rm -rf conftest.dSYM
12002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12003 conftest
$ac_exeext conftest.
$ac_ext
12006 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12007 $as_echo "$am_cv_langinfo_codeset" >&6; }
12008 if test $am_cv_langinfo_codeset = yes; then
12010 cat >>confdefs.h
<<\_ACEOF
12011 #define HAVE_LANGINFO_CODESET 1
12017 # We will need to find libiberty.h and ansidecl.h
12018 saved_CFLAGS
="$CFLAGS"
12019 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12059 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12060 strsignal strstr strverscmp \
12061 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12062 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
12064 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12065 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12066 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12067 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12068 $as_echo_n "(cached) " >&6
12070 cat >conftest.
$ac_ext <<_ACEOF
12073 cat confdefs.h
>>conftest.
$ac_ext
12074 cat >>conftest.
$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12077 #define $ac_tr_decl 1
12079 #include "ansidecl.h"
12080 #include "system.h"
12086 char *(*pfn) = (char *(*)) $ac_func ;
12092 rm -f conftest.
$ac_objext
12093 if { (ac_try
="$ac_compile"
12094 case "(($ac_try" in
12095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12099 $as_echo "$ac_try_echo") >&5
12100 (eval "$ac_compile") 2>conftest.er1
12102 grep -v '^ *+' conftest.er1 >conftest.err
12104 cat conftest.err >&5
12105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && {
12107 test -z "$ac_c_werror_flag" ||
12108 test ! -s conftest.err
12109 } && test -s conftest.$ac_objext; then
12110 eval "gcc_cv_have_decl_$ac_func=yes"
12112 $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 eval "gcc_cv_have_decl_$ac_func=no"
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12122 { $as_echo "$as_me:$LINENO: result: yes" >&5
12123 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12124 #define $ac_tr_decl 1
12128 { $as_echo "$as_me:$LINENO: result: no" >&5
12129 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12130 #define $ac_tr_decl 0
12141 for ac_func in getrlimit setrlimit getrusage
12143 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" |
$as_tr_cpp`
12144 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12145 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12146 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12147 $as_echo_n "(cached) " >&6
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12156 #define $ac_tr_decl 1
12158 #include "ansidecl.h"
12159 #include "system.h"
12160 #ifdef HAVE_SYS_RESOURCE_H
12161 #include <sys/resource.h>
12169 char *(*pfn) = (char *(*)) $ac_func ;
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12179 *) ac_try_echo
=$ac_try;;
12181 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12182 $as_echo "$ac_try_echo") >&5
12183 (eval "$ac_compile") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1
>conftest.err
12187 cat conftest.err
>&5
12188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest.
$ac_objext; then
12193 eval "gcc_cv_have_decl_$ac_func=yes"
12195 $as_echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.
$ac_ext >&5
12198 eval "gcc_cv_have_decl_$ac_func=no"
12201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12204 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12205 { $as_echo "$as_me:$LINENO: result: yes" >&5
12206 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12207 #define $ac_tr_decl 1
12211 { $as_echo "$as_me:$LINENO: result: no" >&5
12212 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12213 #define $ac_tr_decl 0
12221 cat >conftest.
$ac_ext <<_ACEOF
12224 cat confdefs.h
>>conftest.
$ac_ext
12225 cat >>conftest.
$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12228 #include "ansidecl.h"
12229 #include "system.h"
12230 #ifdef HAVE_SYS_RESOURCE_H
12231 #include <sys/resource.h>
12242 rm -f conftest.
$ac_objext
12243 if { (ac_try
="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12249 $as_echo "$ac_try_echo") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12262 $as_echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12266 cat >>confdefs.h <<\_ACEOF
12267 #define rlim_t long
12272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12275 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12276 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12277 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12279 for ac_func in ldgetname
12281 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" |
$as_tr_cpp`
12282 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12283 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12284 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12285 $as_echo_n "(cached) " >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12294 #define $ac_tr_decl 1
12296 #include "ansidecl.h"
12297 #include "system.h"
12298 #ifdef HAVE_LDFCN_H
12309 char *(*pfn) = (char *(*)) $ac_func ;
12315 rm -f conftest.$ac_objext
12316 if { (ac_try="$ac_compile"
12317 case "(($ac_try" in
12318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12319 *) ac_try_echo
=$ac_try;;
12321 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12322 $as_echo "$ac_try_echo") >&5
12323 (eval "$ac_compile") 2>conftest.er1
12325 grep -v '^ *+' conftest.er1
>conftest.err
12327 cat conftest.err
>&5
12328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && {
12330 test -z "$ac_c_werror_flag" ||
12331 test ! -s conftest.err
12332 } && test -s conftest.
$ac_objext; then
12333 eval "gcc_cv_have_decl_$ac_func=yes"
12335 $as_echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.
$ac_ext >&5
12338 eval "gcc_cv_have_decl_$ac_func=no"
12341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12344 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12345 { $as_echo "$as_me:$LINENO: result: yes" >&5
12346 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12347 #define $ac_tr_decl 1
12351 { $as_echo "$as_me:$LINENO: result: no" >&5
12352 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12353 #define $ac_tr_decl 0
12362 for ac_func
in times
12364 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12365 { $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12367 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12368 $as_echo_n "(cached) " >&6
12370 cat >conftest.
$ac_ext <<_ACEOF
12373 cat confdefs.h
>>conftest.
$ac_ext
12374 cat >>conftest.
$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12377 #define $ac_tr_decl 1
12379 #include "ansidecl.h"
12380 #include "system.h"
12381 #ifdef HAVE_SYS_TIMES_H
12382 #include <sys/times.h>
12390 char *(*pfn) = (char *(*)) $ac_func ;
12396 rm -f conftest.
$ac_objext
12397 if { (ac_try
="$ac_compile"
12398 case "(($ac_try" in
12399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403 $as_echo "$ac_try_echo") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12414 eval "gcc_cv_have_decl_$ac_func=yes"
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 eval "gcc_cv_have_decl_$ac_func=no"
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12426 { $as_echo "$as_me:$LINENO: result: yes" >&5
12427 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12428 #define $ac_tr_decl 1
12432 { $as_echo "$as_me:$LINENO: result: no" >&5
12433 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12434 #define $ac_tr_decl 0
12442 # More time-related stuff.
12443 { $as_echo "$as_me:$LINENO: checking for struct tms" >&5
12444 $as_echo_n "checking for struct tms... " >&6; }
12445 if test "${ac_cv_struct_tms+set}" = set; then
12446 $as_echo_n "(cached) " >&6
12449 cat >conftest.$ac_ext <<_ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12456 #include "ansidecl.h"
12457 #include "system.h"
12458 #ifdef HAVE_SYS_TIMES_H
12459 #include <sys/times.h>
12470 rm -f conftest.$ac_objext
12471 if { (ac_try="$ac_compile"
12472 case "(($ac_try" in
12473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12474 *) ac_try_echo
=$ac_try;;
12476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12477 $as_echo "$ac_try_echo") >&5
12478 (eval "$ac_compile") 2>conftest.er1
12480 grep -v '^ *+' conftest.er1
>conftest.err
12482 cat conftest.err
>&5
12483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } && {
12485 test -z "$ac_c_werror_flag" ||
12486 test ! -s conftest.err
12487 } && test -s conftest.
$ac_objext; then
12488 ac_cv_struct_tms
=yes
12490 $as_echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.
$ac_ext >&5
12493 ac_cv_struct_tms
=no
12496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12498 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12499 $as_echo "$ac_cv_struct_tms" >&6; }
12500 if test $ac_cv_struct_tms = yes; then
12502 cat >>confdefs.h
<<\_ACEOF
12503 #define HAVE_STRUCT_TMS 1
12508 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12509 # revisit after autoconf 2.50.
12510 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
12511 $as_echo_n "checking for clock_t... " >&6; }
12512 if test "${gcc_cv_type_clock_t+set}" = set; then
12513 $as_echo_n "(cached) " >&6
12516 cat >conftest.
$ac_ext <<_ACEOF
12519 cat confdefs.h
>>conftest.
$ac_ext
12520 cat >>conftest.
$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 #include "ansidecl.h"
12524 #include "system.h"
12534 rm -f conftest.
$ac_objext
12535 if { (ac_try
="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12541 $as_echo "$ac_try_echo") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 gcc_cv_type_clock_t=yes
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 gcc_cv_type_clock_t=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { $as_echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12563 $as_echo "$gcc_cv_type_clock_t" >&6; }
12564 if test $gcc_cv_type_clock_t = yes; then
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_CLOCK_T 1
12572 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12573 CFLAGS="$saved_CFLAGS"
12575 # Check whether --enable-initfini-array was given.
12576 if test "${enable_initfini_array+set}" = set; then
12577 enableval=$enable_initfini_array;
12580 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12581 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
12582 if test "${gcc_cv_initfini_array+set}" = set; then
12583 $as_echo_n "(cached) " >&6
12585 if test "$cross_compiling" = yes; then
12586 gcc_cv_initfini_array=no
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12596 int main (void) { return x; }
12597 int foo (void) { x = 0; }
12598 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12600 rm -f conftest$ac_exeext
12601 if { (ac_try="$ac_link"
12602 case "(($ac_try" in
12603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12604 *) ac_try_echo
=$ac_try;;
12606 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12607 $as_echo "$ac_try_echo") >&5
12608 (eval "$ac_link") 2>&5
12610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12612 { (case "(($ac_try" in
12613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12617 $as_echo "$ac_try_echo") >&5
12618 (eval "$ac_try") 2>&5
12620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 gcc_cv_initfini_array=yes
12624 $as_echo "$as_me: program exited with status $ac_status" >&5
12625 $as_echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ( exit $ac_status )
12629 gcc_cv_initfini_array=no
12631 rm -rf conftest.dSYM
12632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12637 { $as_echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12638 $as_echo "$gcc_cv_initfini_array" >&6; }
12639 enable_initfini_array=$gcc_cv_initfini_array
12643 if test $enable_initfini_array = yes; then
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_INITFINI_ARRAY 1
12651 # mkdir takes a single argument on some systems.
12652 { $as_echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12653 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12654 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12655 $as_echo_n "(cached) " >&6
12657 cat >conftest.$ac_ext <<_ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12664 #include <sys/types.h>
12665 #ifdef HAVE_SYS_STAT_H
12666 # include <sys/stat.h>
12668 #ifdef HAVE_UNISTD_H
12669 # include <unistd.h>
12671 #ifdef HAVE_DIRECT_H
12672 # include <direct.h>
12682 rm -f conftest.$ac_objext
12683 if { (ac_try="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12686 *) ac_try_echo
=$ac_try;;
12688 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12689 $as_echo "$ac_try_echo") >&5
12690 (eval "$ac_compile") 2>conftest.er1
12692 grep -v '^ *+' conftest.er1
>conftest.err
12694 cat conftest.err
>&5
12695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } && {
12697 test -z "$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12699 } && test -s conftest.
$ac_objext; then
12700 gcc_cv_mkdir_takes_one_arg
=no
12702 $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.
$ac_ext >&5
12705 gcc_cv_mkdir_takes_one_arg
=yes
12708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12710 { $as_echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12711 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12712 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12714 cat >>confdefs.h
<<\_ACEOF
12715 #define MKDIR_TAKES_ONE_ARG 1
12727 # With Setjmp/Longjmp based exception handling.
12728 # Check whether --enable-sjlj-exceptions was given.
12729 if test "${enable_sjlj_exceptions+set}" = set; then
12730 enableval
=$enable_sjlj_exceptions; sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12732 cat >>confdefs.h
<<_ACEOF
12733 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12739 # For platforms with the unwind ABI which includes an unwind library,
12740 # libunwind, we can choose to use the system libunwind.
12742 # Check whether --with-system-libunwind was given.
12743 if test "${with_system_libunwind+set}" = set; then
12744 withval
=$with_system_libunwind;
12748 # --------------------------------------------------------
12749 # Build, host, and target specific configuration fragments
12750 # --------------------------------------------------------
12752 # Collect build-machine-specific information.
12753 .
${srcdir}/config.build
12755 # Collect host-machine-specific information.
12756 .
${srcdir}/config.
host
12760 # Collect target-machine-specific information.
12761 .
${srcdir}/config.gcc
12763 extra_objs
="${host_extra_objs} ${extra_objs}"
12764 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12766 # Default the target-machine variables that were not explicitly set.
12767 if test x
"$tm_file" = x
12768 then tm_file
=$cpu_type/$cpu_type.h
; fi
12770 if test x
"$extra_headers" = x
12771 then extra_headers
=; fi
12773 if test x
$md_file = x
12774 then md_file
=$cpu_type/$cpu_type.md
; fi
12776 if test x
$out_file = x
12777 then out_file
=$cpu_type/$cpu_type.c
; fi
12779 if test x
"$tmake_file" = x
12780 then tmake_file
=$cpu_type/t-
$cpu_type
12783 if test x
"$dwarf2" = xyes
12784 then tm_file
="$tm_file tm-dwarf2.h"
12787 # Say what files are being used for the output code and MD file.
12788 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12789 echo "Using \`$srcdir/config/$md_file' as machine description file."
12791 # If any of the xm_file variables contain nonexistent files, warn
12792 # about them and drop them.
12795 for x
in $build_xm_file; do
12796 if test -f $srcdir/config
/$x
12798 else { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12799 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12802 build_xm_file
="$bx"
12805 for x
in $host_xm_file; do
12806 if test -f $srcdir/config
/$x
12808 else { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12809 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12815 for x
in $xm_file; do
12816 if test -f $srcdir/config
/$x
12818 else { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12819 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12825 for f
in $tm_file; do
12828 if test $count = ax
; then
12829 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12831 echo "Using the following target machine macro files:"
12832 for f
in $tm_file; do
12833 echo " $srcdir/config/$f"
12837 if test x
$need_64bit_hwint = xyes
; then
12839 cat >>confdefs.h
<<\_ACEOF
12840 #define NEED_64BIT_HOST_WIDE_INT 1
12845 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12847 cat >>confdefs.h
<<\_ACEOF
12848 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12854 for f
in $host_xm_file; do
12857 if test $count = a
; then
12859 elif test $count = ax
; then
12860 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12862 echo "Using the following host machine macro files:"
12863 for f
in $host_xm_file; do
12864 echo " $srcdir/config/$f"
12867 echo "Using ${out_host_hook_obj} for host machine hooks."
12869 if test "$host_xm_file" != "$build_xm_file"; then
12871 for f
in $build_xm_file; do
12874 if test $count = a
; then
12876 elif test $count = ax
; then
12877 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12879 echo "Using the following build machine macro files:"
12880 for f
in $build_xm_file; do
12881 echo " $srcdir/config/$f"
12890 # Check if a valid thread package
12891 case ${enable_threads} in
12894 target_thread_file
='single'
12898 target_thread_file
='single'
12900 aix | dce | gnat | irix | posix | posix95 | rtems | \
12901 single | solaris | vxworks | win32
)
12902 target_thread_file
=${enable_threads}
12905 echo "${enable_threads} is an unknown thread package" 1>&2
12910 if test x
${thread_file} = x
; then
12911 # No thread file set by target-specific clauses in config.gcc,
12912 # so use file chosen by default logic above
12913 thread_file
=${target_thread_file}
12916 # Make gthr-default.h if we have a thread file.
12918 if test $thread_file != single
; then
12919 rm -f gthr-default.h
12920 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12921 gthread_flags
=-DHAVE_GTHR_DEFAULT
12930 if test x
$enable___cxa_atexit = xyes || \
12931 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12932 if test x
$host = x
$target; then
12933 { $as_echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12934 $as_echo_n "checking for __cxa_atexit... " >&6; }
12935 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12936 $as_echo_n "(cached) " >&6
12938 cat >conftest.
$ac_ext <<_ACEOF
12941 cat confdefs.h
>>conftest.
$ac_ext
12942 cat >>conftest.
$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12946 #define __cxa_atexit innocuous___cxa_atexit
12948 /* System header to define __stub macros and hopefully few prototypes,
12949 which can conflict with char __cxa_atexit (); below.
12950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951 <limits.h> exists even on freestanding compilers. */
12954 # include <limits.h>
12956 # include <assert.h>
12959 #undef __cxa_atexit
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12967 char __cxa_atexit ();
12968 /* The GNU C library defines this for functions which it implements
12969 to always fail with ENOSYS. Some functions are actually named
12970 something starting with __ and the normal name is an alias. */
12971 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
12978 return __cxa_atexit ();
12983 rm -f conftest.
$ac_objext conftest
$ac_exeext
12984 if { (ac_try
="$ac_link"
12985 case "(($ac_try" in
12986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12990 $as_echo "$ac_try_echo") >&5
12991 (eval "$ac_link") 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } && {
12998 test -z "$ac_c_werror_flag" ||
12999 test ! -s conftest.err
13000 } && test -s conftest$ac_exeext && {
13001 test "$cross_compiling" = yes ||
13002 $as_test_x conftest$ac_exeext
13004 ac_cv_func___cxa_atexit=yes
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_cv_func___cxa_atexit=no
13012 rm -rf conftest.dSYM
13013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13014 conftest$ac_exeext conftest.$ac_ext
13016 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13017 $as_echo "$ac_cv_func___cxa_atexit" >&6; }
13018 if test $ac_cv_func___cxa_atexit = yes; then
13021 echo "__cxa_atexit can't be enabled on this target"
13025 # We can't check for __cxa_atexit when building a cross, so assume
13029 if test x$use_cxa_atexit = xyes; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define DEFAULT_USE_CXA_ATEXIT 1
13038 # Look for a file containing extra machine modes.
13039 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13040 extra_modes_file='$(srcdir)'/config/${extra_modes}
13043 cat >>confdefs.h <<_ACEOF
13044 #define EXTRA_MODES_FILE "config/$extra_modes"
13049 # Convert extra_options into a form suitable for Makefile use.
13051 for f in $extra_options; do
13052 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13056 # auto-host.h is the file containing items generated by autoconf and is
13057 # the first file included by config.h.
13058 # If host=build, it is correct to have bconfig include auto-host.h
13059 # as well. If host!=build, we are in error and need to do more
13060 # work to find out the build config parameters.
13061 if test x$host = x$build
13063 build_auto=auto-host.h
13065 # We create a subdir, then run autoconf in the subdir.
13066 # To prevent recursion we set host and build for the new
13067 # invocation of configure to the build for this invocation
13074 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13075 *) realsrcdir=../${srcdir};;
13077 saved_CFLAGS="${CFLAGS}"
13078 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13079 ${realsrcdir}/configure \
13080 --enable-languages=${enable_languages-all} \
13081 --target=$target_alias --host=$build_alias --build=$build_alias
13082 CFLAGS="${saved_CFLAGS}"
13084 # We just finished tests for the build machine, so rename
13085 # the file auto-build.h in the gcc directory.
13086 mv auto-host.h ../auto-build.h
13089 build_auto=auto-build.h
13093 tm_file="${tm_file} defaults.h"
13094 tm_p_file="${tm_p_file} tm-preds.h"
13095 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13096 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13097 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13098 # put this back in temporarily.
13099 xm_file="auto-host.h ansidecl.h ${xm_file}"
13105 # Compile in configure arguments.
13106 if test -f configargs.h ; then
13107 # Being re-configured.
13108 gcc_config_arguments=`grep configuration_arguments configargs.h |
sed -e 's/.*"\([^"]*\)".*/\1/'`
13109 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13111 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13114 # Double all backslashes and backslash all quotes to turn
13115 # gcc_config_arguments into a C string.
13116 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13117 $gcc_config_arguments
13119 gcc_config_arguments_str=`cat conftest.out
`
13122 cat > configargs.h <<EOF
13123 /* Generated automatically. */
13124 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13125 static const char thread_model[] = "$thread_file";
13127 static const struct {
13128 const char *name, *value;
13129 } configure_default_options[] = $configure_default_options;
13132 # Internationalization
13133 # If we haven't got the data from the intl directory,
13134 # assume NLS is disabled.
13142 if test -f ../intl/config.intl; then
13143 . ../intl/config.intl
13145 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13146 $as_echo_n "checking whether NLS is requested... " >&6; }
13147 if test x"$USE_NLS" != xyes; then
13148 { $as_echo "$as_me:$LINENO: result: no" >&5
13149 $as_echo "no" >&6; }
13151 { $as_echo "$as_me:$LINENO: result: yes" >&5
13152 $as_echo "yes" >&6; }
13154 cat >>confdefs.h <<\_ACEOF
13155 #define ENABLE_NLS 1
13159 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13160 $as_echo_n "checking for catalogs to be installed... " >&6; }
13161 # Look for .po and .gmo files in the source directory.
13164 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13165 # If there aren't any .gmo files the shell will give us the
13166 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13168 case "$cat" in *\**)
13171 # The quadruple backslash is collapsed to a double backslash
13172 # by the backticks, then collapsed again by the double quotes,
13173 # leaving us with one backslash in the sed expression (right
13174 # before the dot that mustn't act as a wildcard).
13175 cat=`echo $cat |
sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
13176 lang=`echo $cat |
sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
13177 # The user is allowed to set LINGUAS to a list of languages to
13178 # install catalogs for. If it's empty that means "all of them."
13179 if test "x$LINGUAS" = x; then
13180 CATALOGS="$CATALOGS $cat"
13181 XLINGUAS="$XLINGUAS $lang"
13183 case "$LINGUAS" in *$lang*)
13184 CATALOGS="$CATALOGS $cat"
13185 XLINGUAS="$XLINGUAS $lang"
13190 LINGUAS="$XLINGUAS"
13191 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13192 $as_echo "$LINGUAS" >&6; }
13195 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13196 # -liconv on the link line twice.
13197 case "$LIBINTL" in *$LIBICONV*)
13201 # Check whether --enable-secureplt was given.
13202 if test "${enable_secureplt+set}" = set; then
13203 enableval=$enable_secureplt;
13207 # Windows32 Registry support for specifying GCC installation paths.
13208 # Check whether --enable-win32-registry was given.
13209 if test "${enable_win32_registry+set}" = set; then
13210 enableval=$enable_win32_registry;
13215 win32 | pe | cygwin* | mingw32* | uwin*)
13216 if test "x$enable_win32_registry" != xno; then
13217 { $as_echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13218 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13219 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13220 $as_echo_n "(cached) " >&6
13222 ac_func_search_save_LIBS=$LIBS
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13230 /* Override any GCC internal prototype to avoid an error.
13231 Use char because int might match the return type of a GCC
13232 builtin and then its argument prototype would still apply. */
13236 char RegOpenKeyExA ();
13240 return RegOpenKeyExA ();
13245 for ac_lib in '' advapi32; do
13246 if test -z "$ac_lib"; then
13247 ac_res="none required"
13250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (ac_try="$ac_link"
13254 case "(($ac_try" in
13255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13256 *) ac_try_echo
=$ac_try;;
13258 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13259 $as_echo "$ac_try_echo") >&5
13260 (eval "$ac_link") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1
>conftest.err
13264 cat conftest.err
>&5
13265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest
$ac_exeext && {
13270 test "$cross_compiling" = yes ||
13271 $as_test_x conftest
$ac_exeext
13273 ac_cv_search_RegOpenKeyExA
=$ac_res
13275 $as_echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.
$ac_ext >&5
13281 rm -rf conftest.dSYM
13282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13284 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13288 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13291 ac_cv_search_RegOpenKeyExA
=no
13293 rm conftest.
$ac_ext
13294 LIBS
=$ac_func_search_save_LIBS
13296 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13297 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13298 ac_res
=$ac_cv_search_RegOpenKeyExA
13299 if test "$ac_res" != no
; then
13300 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13303 enable_win32_registry
=no
13308 if test "x$enable_win32_registry" != xno
; then
13310 cat >>confdefs.h
<<\_ACEOF
13311 #define ENABLE_WIN32_REGISTRY 1
13315 if test "x$enable_win32_registry" != xyes \
13316 && test "x$enable_win32_registry" != x
; then
13318 cat >>confdefs.h
<<_ACEOF
13319 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13327 # Get an absolute path to the GCC top-level source directory
13328 holddir
=`${PWDCMD-pwd}`
13330 topdir
=`${PWDCMD-pwd}`
13333 # Conditionalize the makefile for this host machine.
13335 for f
in ${host_xmake_file}
13337 if test -f ${srcdir}/config
/$f
13339 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13343 # Conditionalize the makefile for this target machine.
13345 for f
in ${tmake_file}
13347 if test -f ${srcdir}/config
/$f
13349 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13352 tmake_file
="${tmake_file_}"
13354 # If the host doesn't support symlinks, modify CC in
13355 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13356 # Otherwise, we can use "CC=$(CC)".
13360 cc_set_by_configure
="\$(CC)"
13361 quoted_cc_set_by_configure
="\$(CC)"
13362 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
13363 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
13366 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13367 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13368 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13369 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13373 # This is a terrible hack which will go away some day.
13374 host_cc_for_libada
=${CC}
13377 out_object_file
=`basename $out_file .c`.o
13379 tm_file_list
="options.h"
13380 tm_include_list
="options.h"
13381 for f
in $tm_file; do
13384 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13385 tm_include_list
="${tm_include_list} $f"
13388 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13389 tm_include_list
="${tm_include_list} config/$f"
13396 for f
in $tm_p_file; do
13399 tm_p_file_list
="${tm_p_file_list} $f"
13400 tm_p_include_list
="${tm_p_include_list} $f"
13403 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13404 tm_p_include_list
="${tm_p_include_list} config/$f"
13410 for f
in $xm_file; do
13413 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13414 xm_include_list
="${xm_include_list} $f"
13417 xm_file_list
="${xm_file_list} $f"
13418 xm_include_list
="${xm_include_list} $f"
13421 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13422 xm_include_list
="${xm_include_list} config/$f"
13428 host_xm_include_list
=
13429 for f
in $host_xm_file; do
13432 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13433 host_xm_include_list
="${host_xm_include_list} $f"
13436 host_xm_file_list
="${host_xm_file_list} $f"
13437 host_xm_include_list
="${host_xm_include_list} $f"
13440 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13441 host_xm_include_list
="${host_xm_include_list} config/$f"
13446 build_xm_file_list
=
13447 for f
in $build_xm_file; do
13450 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13451 build_xm_include_list
="${build_xm_include_list} $f"
13453 auto-build.h | auto-host.h
)
13454 build_xm_file_list
="${build_xm_file_list} $f"
13455 build_xm_include_list
="${build_xm_include_list} $f"
13458 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13459 build_xm_include_list
="${build_xm_include_list} config/$f"
13464 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13465 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13468 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13470 if test "x$with_build_sysroot" != x
; then
13471 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13473 # This value is used, even on a native system, because
13474 # CROSS_SYSTEM_HEADER_DIR is just
13475 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13476 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13479 if test x
$host != x
$target
13481 CROSS
="-DCROSS_COMPILE"
13483 SYSTEM_HEADER_DIR
=$build_system_header_dir
13484 case "$host","$target" in
13485 # Darwin crosses can use the host system's libraries and headers,
13486 # because of the fat library support. Of course, it must be the
13487 # same version of Darwin on both sides. Allow the user to
13488 # just say --target=foo-darwin without a version number to mean
13489 # "the version on this system".
13490 *-*-darwin*,*-*-darwin*)
13491 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13492 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13493 if test $hostos = $targetos -o $targetos = darwin
; then
13495 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13500 i?
86-*-*,x86_64-
*-* \
13501 | powerpc
*-*-*,powerpc64
*-*-*)
13502 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13504 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13505 SYSTEM_HEADER_DIR
=$build_system_header_dir
13508 # If this is a cross-compiler that does not
13509 # have its own set of headers then define
13512 # If this is using newlib, without having the headers available now,
13513 # then define inhibit_libc in LIBGCC2_CFLAGS.
13514 # This prevents libgcc2 from containing any code which requires libc
13517 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13518 test x
$with_newlib = xyes
; } &&
13519 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13524 # When building gcc with a cross-compiler, we need to adjust things so
13525 # that the generator programs are still built with the native compiler.
13526 # Also, we cannot run fixincludes or fix-header.
13528 # These are the normal (build=host) settings:
13529 CC_FOR_BUILD
='$(CC)'
13530 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13531 STMP_FIXINC
=stmp-fixinc
13533 # Possibly disable fixproto, on a per-target basis.
13534 case ${use_fixproto} in
13539 STMP_FIXPROTO
=stmp-fixproto
13544 # And these apply if build != host, or we are generating coverage data
13545 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13547 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13549 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13550 if test "x$STMP_FIXPROTO" != x
; then
13551 STMP_FIXPROTO
=stmp-install-fixproto
13556 # Expand extra_headers to include complete path.
13557 # This substitutes for lots of t-* files.
13558 extra_headers_list
=
13559 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13560 for file in ${extra_headers} ; do
13561 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13564 # Define collect2 in Makefile.
13565 case $host_can_use_collect2 in
13567 *) collect2
='collect2$(exeext)' ;;
13571 # Add a definition of USE_COLLECT2 if system wants one.
13572 case $use_collect2 in
13573 no
) use_collect2
= ;;
13576 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13577 xm_defines
="${xm_defines} USE_COLLECT2"
13578 case $host_can_use_collect2 in
13580 { { $as_echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13581 $as_echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13582 { (exit 1); exit 1; }; }
13588 # ---------------------------
13589 # Assembler & linker features
13590 # ---------------------------
13592 # Identify the assembler which will work hand-in-glove with the newly
13593 # built GCC, so that we can examine its features. This is the assembler
13594 # which will be driven by the driver program.
13596 # If build != host, and we aren't building gas in-tree, we identify a
13597 # build->target assembler and hope that it will have the same features
13598 # as the host->target assembler we'll be using.
13601 gcc_cv_gas_major_version
=
13602 gcc_cv_gas_minor_version
=
13603 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13604 if test -x "$DEFAULT_ASSEMBLER"; then
13605 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13606 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13607 && test -f ..
/gas
/Makefile \
13608 && test x
$build = x
$host; then
13609 # Single tree build which includes gas. We want to prefer it
13610 # over whatever linker top-level may have detected, since
13611 # we'll use what we're building after installation anyway.
13613 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13614 for f
in $gcc_cv_as_bfd_srcdir/configure \
13615 $gcc_cv_as_gas_srcdir/configure \
13616 $gcc_cv_as_gas_srcdir/configure.
in \
13617 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13618 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13619 if test x
$gcc_cv_gas_version != x
; then
13623 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13624 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13625 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13626 case $gcc_cv_gas_patch_version in
13627 "") gcc_cv_gas_patch_version
="0" ;;
13629 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13630 + $gcc_cv_gas_minor_version \) \* 1000 \
13631 + $gcc_cv_gas_patch_version`
13633 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13634 in_tree_gas_is_elf
=no
13635 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13636 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13637 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13639 in_tree_gas_is_elf
=yes
13641 elif test -x as
$build_exeext; then
13642 # Build using assembler in the current directory.
13643 gcc_cv_as
=.
/as
$build_exeext
13647 # When searching for the assembler or linker, search the same directories
13648 # that the installed compiler will search. Else we may find the wrong
13649 # assembler or linker and lose. If we do not find a suitable binary,
13650 # then try the user's path.
13652 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
13653 if test "x$exec_prefix" = xNONE
; then
13654 if test "x$prefix" = xNONE
; then
13655 gcc_cv_tool_prefix
=/usr
/local
13657 gcc_cv_tool_prefix
=$prefix
13660 gcc_cv_tool_prefix
=$exec_prefix
13663 if test x
$host = x
$build; then
13664 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
13665 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
13666 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
13667 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
13668 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
13669 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
13674 if test x
$build = x
$target; then
13675 # Rummage through tm_files looking for MD_EXEC_PREFIX
13677 for f
in ${tm_file_list}; do
13678 if test -f $f; then
13679 if grep '^#[ ]*undef[ ]*MD_EXEC_PREFIX' $f > /dev
/null
; then
13682 md_dirs
="$md_dirs "`sed -n -e 's@^#[ ]*define[ ]*MD_EXEC_PREFIX[ ]*"\(.*\)/"@\1@p' < $f`
13685 for f
in ${md_dirs}; do
13686 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
13695 # First try the environment variables. Handle full paths or basenames.
13696 if test "x$gcc_cv_as" = x
&& test -n "$AS_FOR_TARGET"; then
13697 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13698 set dummy
$AS_FOR_TARGET; ac_word
=$2
13699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13702 $as_echo_n "(cached) " >&6
13706 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13710 for as_dir
in $PATH
13713 test -z "$as_dir" && as_dir
=.
13714 for ac_exec_ext
in '' $ac_executable_extensions; do
13715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13716 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13727 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13728 if test -n "$gcc_cv_as"; then
13729 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13730 $as_echo "$gcc_cv_as" >&6; }
13732 { $as_echo "$as_me:$LINENO: result: no" >&5
13733 $as_echo "no" >&6; }
13738 if test "x$gcc_cv_as" = x
&& test -n "$AS" && test x
$host = x
$target; then
13739 # Extract the first word of "$AS", so it can be a program name with args.
13740 set dummy
$AS; ac_word
=$2
13741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13744 $as_echo_n "(cached) " >&6
13748 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13752 for as_dir
in $PATH
13755 test -z "$as_dir" && as_dir
=.
13756 for ac_exec_ext
in '' $ac_executable_extensions; do
13757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13758 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13770 if test -n "$gcc_cv_as"; then
13771 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13772 $as_echo "$gcc_cv_as" >&6; }
13774 { $as_echo "$as_me:$LINENO: result: no" >&5
13775 $as_echo "no" >&6; }
13781 if test "x$gcc_cv_as" = x
; then
13782 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13784 if test "x$gcc_cv_tool_dirs" = x
; then
13789 # Extract the first word of "$ac_prog", so it can be a program name with args.
13790 set dummy
$ac_prog; ac_word
=$2
13791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13794 $as_echo_n "(cached) " >&6
13798 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13802 for as_dir
in $gcc_cv_tool_dirs
13805 test -z "$as_dir" && as_dir
=.
13806 for ac_exec_ext
in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13820 if test -n "$gcc_cv_as"; then
13821 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13822 $as_echo "$gcc_cv_as" >&6; }
13824 { $as_echo "$as_me:$LINENO: result: no" >&5
13825 $as_echo "no" >&6; }
13829 test -n "$gcc_cv_as" && break
13834 if test "x$gcc_cv_as" = x
; then
13835 # If the loop above did not find a tool, then use whatever
13836 # one we can find in the users's path. We are looking for a
13837 # ${build} -> ${target} tool.
13838 if test "x$program_prefix" != xNONE
; then
13839 default_tool_name
=${program_prefix}as
13840 elif test x
$build != x
$host && test x
$build != x
$target; then
13841 default_tool_name
=${target_noncanonical}-as
13843 default_tool_name
=`echo as | sed "${program_transform_name}"`
13845 for ac_prog
in $default_tool_name
13847 # Extract the first word of "$ac_prog", so it can be a program name with args.
13848 set dummy
$ac_prog; ac_word
=$2
13849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13850 $as_echo_n "checking for $ac_word... " >&6; }
13851 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13852 $as_echo_n "(cached) " >&6
13856 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13860 for as_dir
in $PATH
13863 test -z "$as_dir" && as_dir
=.
13864 for ac_exec_ext
in '' $ac_executable_extensions; do
13865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13866 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13878 if test -n "$gcc_cv_as"; then
13879 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13880 $as_echo "$gcc_cv_as" >&6; }
13882 { $as_echo "$as_me:$LINENO: result: no" >&5
13883 $as_echo "no" >&6; }
13887 test -n "$gcc_cv_as" && break
13889 test -n "$gcc_cv_as" || gcc_cv_as
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13892 test "$silent" != yes && exec 6>&1
13894 ORIGINAL_AS_FOR_TARGET
="$gcc_cv_as"
13896 { $as_echo "$as_me:$LINENO: checking what assembler to use" >&5
13897 $as_echo_n "checking what assembler to use... " >&6; }
13898 case $in_tree_gas in
13900 { $as_echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13901 $as_echo "\"newly built gas\"" >&6; }
13904 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13905 $as_echo "$gcc_cv_as" >&6; }
13909 # Identify the linker which will work hand-in-glove with the newly
13910 # built GCC, so that we can examine its features. This is the linker
13911 # which will be driven by the driver program.
13913 # If build != host, and we aren't building gas in-tree, we identify a
13914 # build->target linker and hope that it will have the same features
13915 # as the host->target linker we'll be using.
13918 gcc_cv_gld_major_version
=
13919 gcc_cv_gld_minor_version
=
13920 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13921 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13922 if test -x "$DEFAULT_LINKER"; then
13923 gcc_cv_ld
="$DEFAULT_LINKER"
13924 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13925 && test -f ..
/ld
/Makefile \
13926 && test x
$build = x
$host; then
13927 # Single tree build which includes ld. We want to prefer it
13928 # over whatever linker top-level may have detected, since
13929 # we'll use what we're building after installation anyway.
13931 in_tree_ld_is_elf
=no
13932 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13933 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13934 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13935 in_tree_ld_is_elf
=yes
13937 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
13939 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13940 if test x
$gcc_cv_gld_version != x
; then
13944 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13945 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13946 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13947 elif test -x collect-ld
$build_exeext; then
13948 # Build using linker in the current directory.
13949 gcc_cv_ld
=.
/collect-ld
$build_exeext
13958 # First try the environment variables. Handle full paths or basenames.
13959 if test "x$gcc_cv_ld" = x
&& test -n "$LD_FOR_TARGET"; then
13960 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13961 set dummy
$LD_FOR_TARGET; ac_word
=$2
13962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13963 $as_echo_n "checking for $ac_word... " >&6; }
13964 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13965 $as_echo_n "(cached) " >&6
13969 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13973 for as_dir
in $PATH
13976 test -z "$as_dir" && as_dir
=.
13977 for ac_exec_ext
in '' $ac_executable_extensions; do
13978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13979 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13991 if test -n "$gcc_cv_ld"; then
13992 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13993 $as_echo "$gcc_cv_ld" >&6; }
13995 { $as_echo "$as_me:$LINENO: result: no" >&5
13996 $as_echo "no" >&6; }
14001 if test "x$gcc_cv_ld" = x
&& test -n "$LD" && test x
$host = x
$target; then
14002 # Extract the first word of "$LD", so it can be a program name with args.
14003 set dummy
$LD; ac_word
=$2
14004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14005 $as_echo_n "checking for $ac_word... " >&6; }
14006 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14007 $as_echo_n "(cached) " >&6
14011 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
14014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14015 for as_dir
in $PATH
14018 test -z "$as_dir" && as_dir
=.
14019 for ac_exec_ext
in '' $ac_executable_extensions; do
14020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14021 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
14022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
14033 if test -n "$gcc_cv_ld"; then
14034 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14035 $as_echo "$gcc_cv_ld" >&6; }
14037 { $as_echo "$as_me:$LINENO: result: no" >&5
14038 $as_echo "no" >&6; }
14044 if test "x$gcc_cv_ld" = x
; then
14045 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14047 if test "x$gcc_cv_tool_dirs" = x
; then
14052 # Extract the first word of "$ac_prog", so it can be a program name with args.
14053 set dummy
$ac_prog; ac_word
=$2
14054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14055 $as_echo_n "checking for $ac_word... " >&6; }
14056 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14057 $as_echo_n "(cached) " >&6
14061 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
14064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14065 for as_dir
in $gcc_cv_tool_dirs
14068 test -z "$as_dir" && as_dir
=.
14069 for ac_exec_ext
in '' $ac_executable_extensions; do
14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
14072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14082 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
14083 if test -n "$gcc_cv_ld"; then
14084 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14085 $as_echo "$gcc_cv_ld" >&6; }
14087 { $as_echo "$as_me:$LINENO: result: no" >&5
14088 $as_echo "no" >&6; }
14092 test -n "$gcc_cv_ld" && break
14097 if test "x$gcc_cv_ld" = x
; then
14098 # If the loop above did not find a tool, then use whatever
14099 # one we can find in the users's path. We are looking for a
14100 # ${build} -> ${target} tool.
14101 if test "x$program_prefix" != xNONE
; then
14102 default_tool_name
=${program_prefix}ld
14103 elif test x
$build != x
$host && test x
$build != x
$target; then
14104 default_tool_name
=${target_noncanonical}-ld
14106 default_tool_name
=`echo ld | sed "${program_transform_name}"`
14108 for ac_prog
in $default_tool_name
14110 # Extract the first word of "$ac_prog", so it can be a program name with args.
14111 set dummy
$ac_prog; ac_word
=$2
14112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14113 $as_echo_n "checking for $ac_word... " >&6; }
14114 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14115 $as_echo_n "(cached) " >&6
14119 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
14122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14123 for as_dir
in $PATH
14126 test -z "$as_dir" && as_dir
=.
14127 for ac_exec_ext
in '' $ac_executable_extensions; do
14128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14129 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
14130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
14141 if test -n "$gcc_cv_ld"; then
14142 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14143 $as_echo "$gcc_cv_ld" >&6; }
14145 { $as_echo "$as_me:$LINENO: result: no" >&5
14146 $as_echo "no" >&6; }
14150 test -n "$gcc_cv_ld" && break
14152 test -n "$gcc_cv_ld" || gcc_cv_ld
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14155 test "$silent" != yes && exec 6>&1
14157 ORIGINAL_LD_FOR_TARGET
="$gcc_cv_ld"
14159 { $as_echo "$as_me:$LINENO: checking what linker to use" >&5
14160 $as_echo_n "checking what linker to use... " >&6; }
14161 case $in_tree_ld in
14163 { $as_echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
14164 $as_echo "\"newly built ld\"" >&6; }
14167 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14168 $as_echo "$gcc_cv_ld" >&6; }
14172 # Figure out what nm we will be using.
14173 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
14176 if test -f $gcc_cv_binutils_srcdir/configure.
in \
14177 && test -f ..
/binutils
/Makefile
; then
14178 # Single tree build which includes binutils.
14180 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
14181 elif test -x nm
$build_exeext; then
14182 gcc_cv_nm
=.
/nm
$build_exeext
14191 # First try the environment variables. Handle full paths or basenames.
14192 if test "x$gcc_cv_nm" = x
&& test -n "$NM_FOR_TARGET"; then
14193 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14194 set dummy
$NM_FOR_TARGET; ac_word
=$2
14195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14198 $as_echo_n "(cached) " >&6
14202 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
14205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14206 for as_dir
in $PATH
14209 test -z "$as_dir" && as_dir
=.
14210 for ac_exec_ext
in '' $ac_executable_extensions; do
14211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14212 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
14213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14223 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
14224 if test -n "$gcc_cv_nm"; then
14225 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14226 $as_echo "$gcc_cv_nm" >&6; }
14228 { $as_echo "$as_me:$LINENO: result: no" >&5
14229 $as_echo "no" >&6; }
14234 if test "x$gcc_cv_nm" = x
&& test -n "$NM" && test x
$host = x
$target; then
14235 # Extract the first word of "$NM", so it can be a program name with args.
14236 set dummy
$NM; ac_word
=$2
14237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14238 $as_echo_n "checking for $ac_word... " >&6; }
14239 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14240 $as_echo_n "(cached) " >&6
14244 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
14247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14248 for as_dir
in $PATH
14251 test -z "$as_dir" && as_dir
=.
14252 for ac_exec_ext
in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
14255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
14266 if test -n "$gcc_cv_nm"; then
14267 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14268 $as_echo "$gcc_cv_nm" >&6; }
14270 { $as_echo "$as_me:$LINENO: result: no" >&5
14271 $as_echo "no" >&6; }
14277 if test "x$gcc_cv_nm" = x
; then
14278 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14280 if test "x$gcc_cv_tool_dirs" = x
; then
14285 # Extract the first word of "$ac_prog", so it can be a program name with args.
14286 set dummy
$ac_prog; ac_word
=$2
14287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14294 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
14297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14298 for as_dir
in $gcc_cv_tool_dirs
14301 test -z "$as_dir" && as_dir
=.
14302 for ac_exec_ext
in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
14305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14315 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
14316 if test -n "$gcc_cv_nm"; then
14317 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14318 $as_echo "$gcc_cv_nm" >&6; }
14320 { $as_echo "$as_me:$LINENO: result: no" >&5
14321 $as_echo "no" >&6; }
14325 test -n "$gcc_cv_nm" && break
14330 if test "x$gcc_cv_nm" = x
; then
14331 # If the loop above did not find a tool, then use whatever
14332 # one we can find in the users's path. We are looking for a
14333 # ${build} -> ${target} tool.
14334 if test "x$program_prefix" != xNONE
; then
14335 default_tool_name
=${program_prefix}nm
14336 elif test x
$build != x
$host && test x
$build != x
$target; then
14337 default_tool_name
=${target_noncanonical}-nm
14339 default_tool_name
=`echo nm | sed "${program_transform_name}"`
14341 for ac_prog
in $default_tool_name
14343 # Extract the first word of "$ac_prog", so it can be a program name with args.
14344 set dummy
$ac_prog; ac_word
=$2
14345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14346 $as_echo_n "checking for $ac_word... " >&6; }
14347 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14348 $as_echo_n "(cached) " >&6
14352 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
14355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14356 for as_dir
in $PATH
14359 test -z "$as_dir" && as_dir
=.
14360 for ac_exec_ext
in '' $ac_executable_extensions; do
14361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14362 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
14363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14373 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
14374 if test -n "$gcc_cv_nm"; then
14375 { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14376 $as_echo "$gcc_cv_nm" >&6; }
14378 { $as_echo "$as_me:$LINENO: result: no" >&5
14379 $as_echo "no" >&6; }
14383 test -n "$gcc_cv_nm" && break
14385 test -n "$gcc_cv_nm" || gcc_cv_nm
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14388 test "$silent" != yes && exec 6>&1
14390 ORIGINAL_NM_FOR_TARGET
="$gcc_cv_nm"
14392 { $as_echo "$as_me:$LINENO: checking what nm to use" >&5
14393 $as_echo_n "checking what nm to use... " >&6; }
14394 case $in_tree_nm in
14395 yes) { $as_echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
14396 $as_echo "\"newly built nm\"" >&6; } ;;
14397 no
) { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14398 $as_echo "$gcc_cv_nm" >&6; } ;;
14401 # Figure out what objdump we will be using.
14404 if test -f $gcc_cv_binutils_srcdir/configure.
in \
14405 && test -f ..
/binutils
/Makefile
; then
14406 # Single tree build which includes binutils.
14407 in_tree_objdump
=yes
14408 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
14409 elif test -x objdump
$build_exeext; then
14410 gcc_cv_objdump
=.
/objdump
$build_exeext
14419 # First try the environment variables. Handle full paths or basenames.
14420 if test "x$gcc_cv_objdump" = x
&& test -n "$OBJDUMP_FOR_TARGET"; then
14421 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14422 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
14423 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14424 $as_echo_n "checking for $ac_word... " >&6; }
14425 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14426 $as_echo_n "(cached) " >&6
14428 case $gcc_cv_objdump in
14430 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
14433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14434 for as_dir
in $PATH
14437 test -z "$as_dir" && as_dir
=.
14438 for ac_exec_ext
in '' $ac_executable_extensions; do
14439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14440 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
14441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14451 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
14452 if test -n "$gcc_cv_objdump"; then
14453 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14454 $as_echo "$gcc_cv_objdump" >&6; }
14456 { $as_echo "$as_me:$LINENO: result: no" >&5
14457 $as_echo "no" >&6; }
14462 if test "x$gcc_cv_objdump" = x
&& test -n "$OBJDUMP" && test x
$host = x
$target; then
14463 # Extract the first word of "$OBJDUMP", so it can be a program name with args.
14464 set dummy
$OBJDUMP; ac_word
=$2
14465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14466 $as_echo_n "checking for $ac_word... " >&6; }
14467 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14468 $as_echo_n "(cached) " >&6
14470 case $gcc_cv_objdump in
14472 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
14475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14476 for as_dir
in $PATH
14479 test -z "$as_dir" && as_dir
=.
14480 for ac_exec_ext
in '' $ac_executable_extensions; do
14481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14482 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
14483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
14494 if test -n "$gcc_cv_objdump"; then
14495 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14496 $as_echo "$gcc_cv_objdump" >&6; }
14498 { $as_echo "$as_me:$LINENO: result: no" >&5
14499 $as_echo "no" >&6; }
14505 if test "x$gcc_cv_objdump" = x
; then
14506 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14508 if test "x$gcc_cv_tool_dirs" = x
; then
14511 for ac_prog
in objdump
14513 # Extract the first word of "$ac_prog", so it can be a program name with args.
14514 set dummy
$ac_prog; ac_word
=$2
14515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14516 $as_echo_n "checking for $ac_word... " >&6; }
14517 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14518 $as_echo_n "(cached) " >&6
14520 case $gcc_cv_objdump in
14522 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
14525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14526 for as_dir
in $gcc_cv_tool_dirs
14529 test -z "$as_dir" && as_dir
=.
14530 for ac_exec_ext
in '' $ac_executable_extensions; do
14531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14532 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
14533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14543 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
14544 if test -n "$gcc_cv_objdump"; then
14545 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14546 $as_echo "$gcc_cv_objdump" >&6; }
14548 { $as_echo "$as_me:$LINENO: result: no" >&5
14549 $as_echo "no" >&6; }
14553 test -n "$gcc_cv_objdump" && break
14558 if test "x$gcc_cv_objdump" = x
; then
14559 # If the loop above did not find a tool, then use whatever
14560 # one we can find in the users's path. We are looking for a
14561 # ${build} -> ${target} tool.
14562 if test "x$program_prefix" != xNONE
; then
14563 default_tool_name
=${program_prefix}objdump
14564 elif test x
$build != x
$host && test x
$build != x
$target; then
14565 default_tool_name
=${target_noncanonical}-objdump
14567 default_tool_name
=`echo objdump | sed "${program_transform_name}"`
14569 for ac_prog
in $default_tool_name
14571 # Extract the first word of "$ac_prog", so it can be a program name with args.
14572 set dummy
$ac_prog; ac_word
=$2
14573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14574 $as_echo_n "checking for $ac_word... " >&6; }
14575 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14576 $as_echo_n "(cached) " >&6
14578 case $gcc_cv_objdump in
14580 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
14583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14584 for as_dir
in $PATH
14587 test -z "$as_dir" && as_dir
=.
14588 for ac_exec_ext
in '' $ac_executable_extensions; do
14589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14590 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
14591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14601 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
14602 if test -n "$gcc_cv_objdump"; then
14603 { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14604 $as_echo "$gcc_cv_objdump" >&6; }
14606 { $as_echo "$as_me:$LINENO: result: no" >&5
14607 $as_echo "no" >&6; }
14611 test -n "$gcc_cv_objdump" && break
14613 test -n "$gcc_cv_objdump" || gcc_cv_objdump
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14616 test "$silent" != yes && exec 6>&1
14618 ORIGINAL_OBJDUMP_FOR_TARGET
="$gcc_cv_objdump"
14620 { $as_echo "$as_me:$LINENO: checking what objdump to use" >&5
14621 $as_echo_n "checking what objdump to use... " >&6; }
14622 case $in_tree_objdump in
14623 yes) { $as_echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
14624 $as_echo "\"newly built objdump\"" >&6; } ;;
14625 no
) { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14626 $as_echo "$gcc_cv_objdump" >&6; } ;;
14629 # Figure out what assembler alignment features are present.
14630 { $as_echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14631 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
14632 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14633 $as_echo_n "(cached) " >&6
14635 gcc_cv_as_balign_and_p2align
=no
14636 if test $in_tree_gas = yes; then
14637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14638 then gcc_cv_as_balign_and_p2align
=yes
14640 elif test x
$gcc_cv_as != x
; then
14642 .p2align 2' > conftest.s
14643 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }
14650 gcc_cv_as_balign_and_p2align
=yes
14652 echo "configure: failed program was" >&5
14655 rm -f conftest.o conftest.s
14658 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14659 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
14660 if test $gcc_cv_as_balign_and_p2align = yes; then
14662 cat >>confdefs.h
<<\_ACEOF
14663 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14668 { $as_echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14669 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
14670 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14671 $as_echo_n "(cached) " >&6
14673 gcc_cv_as_max_skip_p2align
=no
14674 if test $in_tree_gas = yes; then
14675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14676 then gcc_cv_as_max_skip_p2align
=yes
14678 elif test x
$gcc_cv_as != x
; then
14679 echo '.p2align 4,,7' > conftest.s
14680 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }
14687 gcc_cv_as_max_skip_p2align
=yes
14689 echo "configure: failed program was" >&5
14692 rm -f conftest.o conftest.s
14695 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14696 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
14697 if test $gcc_cv_as_max_skip_p2align = yes; then
14699 cat >>confdefs.h
<<\_ACEOF
14700 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14705 { $as_echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14706 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
14707 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14708 $as_echo_n "(cached) " >&6
14710 gcc_cv_as_subsection_m1
=no
14711 if test $in_tree_gas = yes; then
14712 if test $in_tree_gas_is_elf = yes \
14713 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14714 then gcc_cv_as_subsection_m1
=yes
14716 elif test x
$gcc_cv_as != x
; then
14717 echo 'conftest_label1: .word 0
14719 conftest_label2: .word 0
14720 .previous' > conftest.s
14721 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }
14728 if test x
$gcc_cv_nm != x
; then
14729 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
14730 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
14731 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
14733 else gcc_cv_as_subsection_m1
=yes
14735 rm -f conftest.nm1 conftest.nm2
14738 echo "configure: failed program was" >&5
14741 rm -f conftest.o conftest.s
14744 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14745 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
14746 if test $gcc_cv_as_subsection_m1 = yes; then
14748 cat >>confdefs.h
<<\_ACEOF
14749 #define HAVE_GAS_SUBSECTION_ORDERING 1
14754 { $as_echo "$as_me:$LINENO: checking assembler for .weak" >&5
14755 $as_echo_n "checking assembler for .weak... " >&6; }
14756 if test "${gcc_cv_as_weak+set}" = set; then
14757 $as_echo_n "(cached) " >&6
14760 if test $in_tree_gas = yes; then
14761 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14762 then gcc_cv_as_weak
=yes
14764 elif test x
$gcc_cv_as != x
; then
14765 echo ' .weak foobar' > conftest.s
14766 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }
14775 echo "configure: failed program was" >&5
14778 rm -f conftest.o conftest.s
14781 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14782 $as_echo "$gcc_cv_as_weak" >&6; }
14783 if test $gcc_cv_as_weak = yes; then
14785 cat >>confdefs.h
<<\_ACEOF
14786 #define HAVE_GAS_WEAK 1
14791 { $as_echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14792 $as_echo_n "checking assembler for .weakref... " >&6; }
14793 if test "${gcc_cv_as_weakref+set}" = set; then
14794 $as_echo_n "(cached) " >&6
14796 gcc_cv_as_weakref
=no
14797 if test $in_tree_gas = yes; then
14798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14799 then gcc_cv_as_weakref
=yes
14801 elif test x
$gcc_cv_as != x
; then
14802 echo ' .weakref foobar, barfnot' > conftest.s
14803 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }
14810 gcc_cv_as_weakref
=yes
14812 echo "configure: failed program was" >&5
14815 rm -f conftest.o conftest.s
14818 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14819 $as_echo "$gcc_cv_as_weakref" >&6; }
14820 if test $gcc_cv_as_weakref = yes; then
14822 cat >>confdefs.h
<<\_ACEOF
14823 #define HAVE_GAS_WEAKREF 1
14828 { $as_echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14829 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
14830 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14831 $as_echo_n "(cached) " >&6
14833 gcc_cv_as_nsubspa_comdat
=no
14834 if test $in_tree_gas = yes; then
14835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14836 then gcc_cv_as_nsubspa_comdat
=yes
14838 elif test x
$gcc_cv_as != x
; then
14839 echo ' .SPACE $TEXT$
14840 .NSUBSPA $CODE$,COMDAT' > conftest.s
14841 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }
14848 gcc_cv_as_nsubspa_comdat
=yes
14850 echo "configure: failed program was" >&5
14853 rm -f conftest.o conftest.s
14856 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14857 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
14858 if test $gcc_cv_as_nsubspa_comdat = yes; then
14860 cat >>confdefs.h
<<\_ACEOF
14861 #define HAVE_GAS_NSUBSPA_COMDAT 1
14866 # .hidden needs to be supported in both the assembler and the linker,
14867 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14868 # This is irritatingly difficult to feature test for; we have to check the
14869 # date string after the version number. If we've got an in-tree
14870 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14872 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14873 { $as_echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14874 $as_echo_n "checking assembler for .hidden... " >&6; }
14875 if test "${gcc_cv_as_hidden+set}" = set; then
14876 $as_echo_n "(cached) " >&6
14878 gcc_cv_as_hidden
=no
14879 if test $in_tree_gas = yes; then
14880 if test $in_tree_gas_is_elf = yes \
14881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14882 then gcc_cv_as_hidden
=yes
14884 elif test x
$gcc_cv_as != x
; then
14885 echo ' .hidden foobar
14886 foobar:' > conftest.s
14887 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }
14894 gcc_cv_as_hidden
=yes
14896 echo "configure: failed program was" >&5
14899 rm -f conftest.o conftest.s
14902 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14903 $as_echo "$gcc_cv_as_hidden" >&6; }
14906 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14907 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
14908 ld_vers
=`echo $ld_ver | sed -n \
14909 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p' \
14910 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14911 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14912 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14913 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14914 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'`
14915 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
14916 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14917 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14920 { $as_echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14921 $as_echo_n "checking linker for .hidden support... " >&6; }
14922 if test "${gcc_cv_ld_hidden+set}" = set; then
14923 $as_echo_n "(cached) " >&6
14925 if test $in_tree_ld = yes ; then
14926 gcc_cv_ld_hidden
=no
14927 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 \
14928 && test $in_tree_ld_is_elf = yes; then
14929 gcc_cv_ld_hidden
=yes
14932 gcc_cv_ld_hidden
=yes
14933 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
14934 if test 0"$ld_date" -lt 20020404; then
14935 if test -n "$ld_date"; then
14936 # If there was date string, but was earlier than 2002-04-04, fail
14937 gcc_cv_ld_hidden
=no
14938 elif test -z "$ld_vers"; then
14939 # If there was no date string nor ld version number, something is wrong
14940 gcc_cv_ld_hidden
=no
14942 test -z "$ld_vers_patch" && ld_vers_patch
=0
14943 if test "$ld_vers_major" -lt 2; then
14944 gcc_cv_ld_hidden
=no
14945 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14946 gcc_cv_ld_hidden
="no"
14947 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14948 gcc_cv_ld_hidden
=no
14953 case "${target}" in
14954 hppa64
*-*-hpux* | ia64
*-*-hpux*)
14955 gcc_cv_ld_hidden
=yes
14958 gcc_cv_ld_hidden
=no
14964 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14965 $as_echo "$gcc_cv_ld_hidden" >&6; }
14966 libgcc_visibility
=no
14969 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14970 libgcc_visibility
=yes
14972 cat >>confdefs.h
<<\_ACEOF
14973 #define HAVE_GAS_HIDDEN 1
14978 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14979 { $as_echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14980 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
14981 if test "${gcc_cv_as_leb128+set}" = set; then
14982 $as_echo_n "(cached) " >&6
14984 gcc_cv_as_leb128
=no
14985 if test $in_tree_gas = yes; then
14986 if test $in_tree_gas_is_elf = yes \
14987 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14988 then gcc_cv_as_leb128
=yes
14990 elif test x
$gcc_cv_as != x
; then
14997 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }
15004 # GAS versions before 2.11 do not support uleb128,
15005 # despite appearing to.
15006 # ??? There exists an elf-specific test that will crash
15007 # the assembler. Perhaps it's better to figure out whether
15008 # arbitrary sections are supported and try the test.
15009 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
15010 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
15011 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
15012 as_major
=`echo $as_ver | sed 's/\..*//'`
15013 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
15014 if test $as_major -eq 2 && test $as_minor -lt 11
15016 else gcc_cv_as_leb128
=yes
15020 echo "configure: failed program was" >&5
15023 rm -f conftest.o conftest.s
15026 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
15027 $as_echo "$gcc_cv_as_leb128" >&6; }
15028 if test $gcc_cv_as_leb128 = yes; then
15030 cat >>confdefs.h
<<\_ACEOF
15031 #define HAVE_AS_LEB128 1
15036 # GAS versions up to and including 2.11.0 may mis-optimize
15038 { $as_echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
15039 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
15040 if test "${gcc_cv_as_eh_frame+set}" = set; then
15041 $as_echo_n "(cached) " >&6
15043 gcc_cv_as_eh_frame
=no
15044 if test $in_tree_gas = yes; then
15045 if test $in_tree_gas_is_elf = yes \
15046 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15047 then gcc_cv_as_eh_frame
=yes
15049 elif test x
$gcc_cv_as != x
; then
15056 .section .eh_frame,"aw",@progbits
15058 .4byte .LECIE1-.LSCIE1
15072 .4byte .LEFDE1-.LASFDE1
15074 .4byte .LASFDE1-__FRAME_BEGIN__
15081 .LEFDE1:' > conftest.s
15082 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }
15089 cat > conftest.lit
<<EOF
15090 0000 10000000 00000000 017a0001 781a0004 .........z..x...
15091 0010 01000000 12000000 18000000 00000000 ................
15092 0020 08000000 04080000 0044 .........D
15094 cat > conftest.big
<<EOF
15095 0000 00000010 00000000 017a0001 781a0004 .........z..x...
15096 0010 00000001 00000012 00000018 00000000 ................
15097 0020 00000008 04000000 0844 .........D
15099 # If the assembler didn't choke, and we can objdump,
15100 # and we got the correct data, then succeed.
15101 if test x
$gcc_cv_objdump != x \
15102 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
15103 |
tail -3 > conftest.got \
15104 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
15105 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
15107 gcc_cv_as_eh_frame
=yes
15108 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 gcc_cv_as_eh_frame
=buggy
15116 # Uh oh, what do we do now?
15117 gcc_cv_as_eh_frame
=no
15120 echo "configure: failed program was" >&5
15123 rm -f conftest.o conftest.s
15126 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
15127 $as_echo "$gcc_cv_as_eh_frame" >&6; }
15130 if test $gcc_cv_as_eh_frame = buggy
; then
15132 cat >>confdefs.h
<<\_ACEOF
15133 #define USE_AS_TRADITIONAL_FORMAT 1
15138 { $as_echo "$as_me:$LINENO: checking assembler for section merging support" >&5
15139 $as_echo_n "checking assembler for section merging support... " >&6; }
15140 if test "${gcc_cv_as_shf_merge+set}" = set; then
15141 $as_echo_n "(cached) " >&6
15143 gcc_cv_as_shf_merge
=no
15144 if test $in_tree_gas = yes; then
15145 if test $in_tree_gas_is_elf = yes \
15146 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15147 then gcc_cv_as_shf_merge
=yes
15149 elif test x
$gcc_cv_as != x
; then
15150 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
15151 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }
15158 gcc_cv_as_shf_merge
=yes
15160 echo "configure: failed program was" >&5
15163 rm -f conftest.o conftest.s
15166 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
15167 $as_echo "$gcc_cv_as_shf_merge" >&6; }
15169 if test $gcc_cv_as_shf_merge = no
; then
15170 { $as_echo "$as_me:$LINENO: checking assembler for section merging support" >&5
15171 $as_echo_n "checking assembler for section merging support... " >&6; }
15172 if test "${gcc_cv_as_shf_merge+set}" = set; then
15173 $as_echo_n "(cached) " >&6
15175 gcc_cv_as_shf_merge
=no
15176 if test $in_tree_gas = yes; then
15177 if test $in_tree_gas_is_elf = yes \
15178 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15179 then gcc_cv_as_shf_merge
=yes
15181 elif test x
$gcc_cv_as != x
; then
15182 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
15183 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }
15190 gcc_cv_as_shf_merge
=yes
15192 echo "configure: failed program was" >&5
15195 rm -f conftest.o conftest.s
15198 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
15199 $as_echo "$gcc_cv_as_shf_merge" >&6; }
15203 cat >>confdefs.h
<<_ACEOF
15204 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
15208 { $as_echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
15209 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
15210 if test "${gcc_cv_as_comdat_group+set}" = set; then
15211 $as_echo_n "(cached) " >&6
15213 gcc_cv_as_comdat_group
=no
15214 if test $in_tree_gas = yes; then
15215 if test $in_tree_gas_is_elf = yes \
15216 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15217 then gcc_cv_as_comdat_group
=yes
15219 elif test x
$gcc_cv_as != x
; then
15220 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15221 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }
15228 gcc_cv_as_comdat_group
=yes
15230 echo "configure: failed program was" >&5
15233 rm -f conftest.o conftest.s
15236 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
15237 $as_echo "$gcc_cv_as_comdat_group" >&6; }
15239 if test $gcc_cv_as_comdat_group = yes; then
15240 gcc_cv_as_comdat_group_percent
=no
15242 { $as_echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
15243 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
15244 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
15245 $as_echo_n "(cached) " >&6
15247 gcc_cv_as_comdat_group_percent
=no
15248 if test $in_tree_gas = yes; then
15249 if test $in_tree_gas_is_elf = yes \
15250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15251 then gcc_cv_as_comdat_group_percent
=yes
15253 elif test x
$gcc_cv_as != x
; then
15254 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
15255 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }
15262 gcc_cv_as_comdat_group_percent
=yes
15264 echo "configure: failed program was" >&5
15267 rm -f conftest.o conftest.s
15270 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
15271 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
15274 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
15276 if test 0"$ld_date" -lt 20050308; then
15277 if test -n "$ld_date"; then
15278 # If there was date string, but was earlier than 2005-03-08, fail
15280 elif test "$ld_vers_major" -lt 2; then
15282 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
15287 # assume linkers other than GNU ld don't support COMDAT group
15290 if test $comdat_group = no
; then
15291 gcc_cv_as_comdat_group
=no
15292 gcc_cv_as_comdat_group_percent
=no
15295 cat >>confdefs.h
<<_ACEOF
15296 #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`
15300 # Thread-local storage - the check is heavily parametrized.
15308 .section ".tdata","awT",@progbits
15311 ldq $27,__tls_get_addr($29) !literal!1
15312 lda $16,foo($29) !tlsgd!1
15313 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
15314 ldq $27,__tls_get_addr($29) !literal!2
15315 lda $16,foo($29) !tlsldm!2
15316 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
15317 ldq $1,foo($29) !gotdtprel
15318 ldah $2,foo($29) !dtprelhi
15319 lda $3,foo($2) !dtprello
15320 lda $4,foo($29) !dtprel
15321 ldq $1,foo($29) !gottprel
15322 ldah $2,foo($29) !tprelhi
15323 lda $3,foo($2) !tprello
15324 lda $4,foo($29) !tprel'
15327 tls_as_opt
=--fatal-warnings
15331 .section ".tdata","awT",@progbits
15334 call #gettlsoff(x)'
15343 .section ".tdata","awT",@progbits
15347 addil LT%foo-$tls_gdidx$,gp
15348 ldo RT%foo-$tls_gdidx$(%r1),%arg0
15351 addil LT%foo-$tls_ldidx$,gp
15353 ldo RT%foo-$tls_ldidx$(%r1),%arg0
15354 addil LR%foo-$tls_dtpoff$,%ret0
15355 ldo RR%foo-$tls_dtpoff$(%r1),%t1
15357 addil LT%foo-$tls_ieoff$,gp
15358 ldw RT%foo-$tls_ieoff$(%r1),%t2
15361 addil LR%foo-$tls_leoff$,%t1
15362 ldo RR%foo-$tls_leoff$(%r1),%t2'
15365 tls_as_opt
=--fatal-warnings
15369 .section ".tdata","awT",%progbits
15372 .word foo(gottpoff)
15382 .section ".tdata","awT",@progbits
15386 leal foo@TLSGD(,%ebx,1), %eax
15387 leal foo@TLSLDM(%ebx), %eax
15388 leal foo@DTPOFF(%eax), %edx
15389 movl foo@GOTTPOFF(%ebx), %eax
15390 subl foo@GOTTPOFF(%ebx), %eax
15391 addl foo@GOTNTPOFF(%ebx), %eax
15392 movl foo@INDNTPOFF, %eax
15393 movl $foo@TPOFF, %eax
15394 subl $foo@TPOFF, %eax
15395 leal foo@NTPOFF(%ecx), %eax'
15398 tls_as_opt
=--fatal-warnings
15402 .section ".tdata","awT",@progbits
15406 leaq foo@TLSGD(%rip), %rdi
15407 leaq foo@TLSLD(%rip), %rdi
15408 leaq foo@DTPOFF(%rax), %rdx
15409 movq foo@GOTTPOFF(%rip), %rax
15410 movq $foo@TPOFF, %rax'
15413 tls_as_opt
=--fatal-warnings
15417 .section ".tdata","awT",@progbits
15420 addl r16 = @ltoff(@dtpmod(foo#)), gp
15421 addl r17 = @ltoff(@dtprel(foo#)), gp
15422 addl r18 = @ltoff(@tprel(foo#)), gp
15423 addl r19 = @dtprel(foo#), gp
15424 adds r21 = @dtprel(foo#), r13
15425 movl r23 = @dtprel(foo#)
15426 addl r20 = @tprel(foo#), gp
15427 adds r22 = @tprel(foo#), r13
15428 movl r24 = @tprel(foo#)'
15431 tls_as_opt
=--fatal-warnings
15435 .section .tdata,"awT",@progbits
15439 addiu $4, $28, %tlsgd(x)
15440 addiu $4, $28, %tlsldm(x)
15441 lui $4, %dtprel_hi(x)
15442 addiu $4, $4, %dtprel_lo(x)
15443 lw $4, %gottprel(x)($28)
15444 lui $4, %tprel_hi(x)
15445 addiu $4, $4, %tprel_lo(x)'
15448 tls_as_opt
='-32 --fatal-warnings'
15452 .section ".tdata","awT",@progbits
15460 addi 3,31,ld0@got@tlsgd
15462 addi 3,31,x1@got@tlsld
15465 addis 9,3,x2@dtprel@ha
15466 addi 9,9,x2@dtprel@l
15467 lwz 9,x3@got@tprel(31)
15470 addis 9,2,x2@tprel@ha
15471 addi 9,9,x2@tprel@l'
15474 tls_as_opt
="-a32 --fatal-warnings"
15478 .section ".tdata","awT",@progbits
15486 addi 3,2,ld0@got@tlsgd
15492 addi 3,2,x1@got@tlsld
15498 addis 9,3,x2@dtprel@ha
15499 addi 9,9,x2@dtprel@l
15502 ld 9,x3@got@dtprel(2)
15508 tls_as_opt
="-a64 --fatal-warnings"
15512 .section ".tdata","awT",@progbits
15519 .long foo@GOTNTPOFF
15520 .long foo@INDNTPOFF
15521 l %r1,foo@GOTNTPOFF(%r12)
15522 l %r1,0(%r1):tls_load:foo
15523 bas %r14,0(%r1,%r13):tls_gdcall:foo
15524 bas %r14,0(%r1,%r13):tls_ldcall:foo'
15527 tls_as_opt
="-m31 --fatal-warnings"
15531 .section ".tdata","awT",@progbits
15538 .quad foo@GOTNTPOFF
15539 lg %r1,foo@GOTNTPOFF(%r12)
15540 larl %r1,foo@INDNTPOFF
15541 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
15542 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15545 tls_as_opt
="-m64 -Aesame --fatal-warnings"
15547 sh-
*-* | sh
[34]-*-* | sh
*l
*-*-*)
15549 .section ".tdata","awT",@progbits
15559 tls_as_opt
=--fatal-warnings
15563 sparc
*-sun-solaris2.
[56789]*)
15564 # TLS was introduced in the Solaris 9 4/04 release but
15565 # we do not enable it by default on Solaris 9 either.
15566 if test "x$enable_tls" = xyes
; then
15572 sparc
*-sun-solaris2.
*)
15579 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
15581 .section ".tdata",#alloc,#write,#tls
15584 sethi %tgd_hi22(foo), %o0
15585 add %o0, %tgd_lo10(foo), %o1
15586 add %l7, %o1, %o0, %tgd_add(foo)
15587 call __tls_get_addr, %tgd_call(foo)
15588 sethi %tldm_hi22(foo), %l1
15589 add %l1, %tldm_lo10(foo), %l2
15590 add %l7, %l2, %o0, %tldm_add(foo)
15591 call __tls_get_addr, %tldm_call(foo)
15592 sethi %tldo_hix22(foo), %l3
15593 xor %l3, %tldo_lox10(foo), %l4
15594 add %o0, %l4, %l5, %tldo_add(foo)
15595 sethi %tie_hi22(foo), %o3
15596 add %o3, %tie_lo10(foo), %o3
15597 ld [%l7 + %o3], %o2, %tie_ld(foo)
15598 add %g7, %o2, %o4, %tie_add(foo)
15599 sethi %tle_hix22(foo), %l1
15600 xor %l1, %tle_lox10(foo), %o5
15601 ld [%g7 + %o5], %o1'
15606 .section ".tdata","awT",@progbits
15609 sethi %tgd_hi22(foo), %o0
15610 add %o0, %tgd_lo10(foo), %o1
15611 add %l7, %o1, %o0, %tgd_add(foo)
15612 call __tls_get_addr, %tgd_call(foo)
15613 sethi %tldm_hi22(foo), %l1
15614 add %l1, %tldm_lo10(foo), %l2
15615 add %l7, %l2, %o0, %tldm_add(foo)
15616 call __tls_get_addr, %tldm_call(foo)
15617 sethi %tldo_hix22(foo), %l3
15618 xor %l3, %tldo_lox10(foo), %l4
15619 add %o0, %l4, %l5, %tldo_add(foo)
15620 sethi %tie_hi22(foo), %o3
15621 add %o3, %tie_lo10(foo), %o3
15622 ld [%l7 + %o3], %o2, %tie_ld(foo)
15623 add %g7, %o2, %o4, %tie_add(foo)
15624 sethi %tle_hix22(foo), %l1
15625 xor %l1, %tle_lox10(foo), %o5
15626 ld [%g7 + %o5], %o1'
15629 tls_as_opt
="-32 --fatal-warnings"
15634 if test "x$enable_tls" = xno
; then
15635 : # TLS explicitly disabled.
15636 elif test "x$enable_tls" = xyes
; then
15637 set_have_as_tls
=yes # TLS explicitly enabled.
15638 elif test -z "$tls_first_major"; then
15639 : # If we don't have a check, assume no support.
15641 { $as_echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15642 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
15643 if test "${gcc_cv_as_tls+set}" = set; then
15644 $as_echo_n "(cached) " >&6
15647 if test $in_tree_gas = yes; then
15648 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15649 then gcc_cv_as_tls
=yes
15651 elif test x
$gcc_cv_as != x
; then
15652 echo "$conftest_s" > conftest.s
15653 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }
15662 echo "configure: failed program was" >&5
15665 rm -f conftest.o conftest.s
15668 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15669 $as_echo "$gcc_cv_as_tls" >&6; }
15670 if test $gcc_cv_as_tls = yes; then
15671 set_have_as_tls
=yes
15674 if test $set_have_as_tls = yes ; then
15676 cat >>confdefs.h
<<\_ACEOF
15677 #define HAVE_AS_TLS 1
15682 # Target-specific assembler checks.
15684 { $as_echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15685 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
15686 gcc_cv_ld_static_dynamic
=no
15687 if test $in_tree_ld = yes ; then
15688 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15689 gcc_cv_ld_static_dynamic
=yes
15691 elif test x
$gcc_cv_ld != x
; then
15692 # Check if linker supports -Bstatic/-Bdynamic option
15693 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
15694 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
15695 gcc_cv_ld_static_dynamic
=yes
15698 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
15700 cat >>confdefs.h
<<\_ACEOF
15701 #define HAVE_LD_STATIC_DYNAMIC 1
15705 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15706 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
15708 if test x
"$demangler_in_ld" = xyes
; then
15709 { $as_echo "$as_me:$LINENO: checking linker --demangle support" >&5
15710 $as_echo_n "checking linker --demangle support... " >&6; }
15711 gcc_cv_ld_demangle
=no
15712 if test $in_tree_ld = yes; then
15713 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 \
15714 gcc_cv_ld_demangle
=yes
15716 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
15717 # Check if the GNU linker supports --demangle option
15718 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
15719 gcc_cv_ld_demangle
=yes
15722 if test x
"$gcc_cv_ld_demangle" = xyes
; then
15724 cat >>confdefs.h
<<\_ACEOF
15725 #define HAVE_LD_DEMANGLE 1
15729 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15730 $as_echo "$gcc_cv_ld_demangle" >&6; }
15734 # All TARGET_ABI_OSF targets.
15735 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
15736 { $as_echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15737 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
15738 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15739 $as_echo_n "(cached) " >&6
15741 gcc_cv_as_alpha_explicit_relocs
=no
15742 if test $in_tree_gas = yes; then
15743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15744 then gcc_cv_as_alpha_explicit_relocs
=yes
15746 elif test x
$gcc_cv_as != x
; then
15747 echo ' .set nomacro
15749 extbl $3, $2, $3 !lituse_bytoff!1
15750 ldq $2, a($29) !literal!1
15751 ldq $4, b($29) !literal!2
15752 ldq_u $3, 0($2) !lituse_base!1
15753 ldq $27, f($29) !literal!5
15754 jsr $26, ($27), f !lituse_jsr!5
15755 ldah $29, 0($26) !gpdisp!3
15756 lda $0, c($29) !gprel
15757 ldah $1, d($29) !gprelhigh
15758 lda $1, d($1) !gprellow
15759 lda $29, 0($29) !gpdisp!3' > conftest.s
15760 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }
15767 gcc_cv_as_alpha_explicit_relocs
=yes
15769 echo "configure: failed program was" >&5
15772 rm -f conftest.o conftest.s
15775 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15776 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
15777 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15779 cat >>confdefs.h
<<\_ACEOF
15780 #define HAVE_AS_EXPLICIT_RELOCS 1
15784 { $as_echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15785 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
15786 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15787 $as_echo_n "(cached) " >&6
15789 gcc_cv_as_alpha_jsrdirect_relocs
=no
15790 if test $in_tree_gas = yes; then
15791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15792 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
15794 elif test x
$gcc_cv_as != x
; then
15795 echo ' .set nomacro
15797 ldq $27, a($29) !literal!1
15798 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
15799 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }
15806 gcc_cv_as_alpha_jsrdirect_relocs
=yes
15808 echo "configure: failed program was" >&5
15811 rm -f conftest.o conftest.s
15814 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15815 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15816 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15818 cat >>confdefs.h
<<\_ACEOF
15819 #define HAVE_AS_JSRDIRECT_RELOCS 1
15826 { $as_echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15827 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
15828 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15829 $as_echo_n "(cached) " >&6
15831 gcc_cv_as_cris_no_mul_bug
=no
15832 if test $in_tree_gas = yes; then
15833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15834 then gcc_cv_as_cris_no_mul_bug
=yes
15836 elif test x
$gcc_cv_as != x
; then
15837 echo '.text' > conftest.s
15838 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }
15845 gcc_cv_as_cris_no_mul_bug
=yes
15847 echo "configure: failed program was" >&5
15850 rm -f conftest.o conftest.s
15853 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15854 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
15855 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15857 cat >>confdefs.h
<<\_ACEOF
15858 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15865 { $as_echo "$as_me:$LINENO: checking assembler for .register" >&5
15866 $as_echo_n "checking assembler for .register... " >&6; }
15867 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15868 $as_echo_n "(cached) " >&6
15870 gcc_cv_as_sparc_register_op
=no
15871 if test x
$gcc_cv_as != x
; then
15872 echo '.register %g2, #scratch' > conftest.s
15873 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }
15880 gcc_cv_as_sparc_register_op
=yes
15882 echo "configure: failed program was" >&5
15885 rm -f conftest.o conftest.s
15888 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15889 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
15890 if test $gcc_cv_as_sparc_register_op = yes; then
15892 cat >>confdefs.h
<<\_ACEOF
15893 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15898 { $as_echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15899 $as_echo_n "checking assembler for -relax option... " >&6; }
15900 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15901 $as_echo_n "(cached) " >&6
15903 gcc_cv_as_sparc_relax
=no
15904 if test x
$gcc_cv_as != x
; then
15905 echo '.text' > conftest.s
15906 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }
15913 gcc_cv_as_sparc_relax
=yes
15915 echo "configure: failed program was" >&5
15918 rm -f conftest.o conftest.s
15921 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15922 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
15923 if test $gcc_cv_as_sparc_relax = yes; then
15925 cat >>confdefs.h
<<\_ACEOF
15926 #define HAVE_AS_RELAX_OPTION 1
15931 { $as_echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15932 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
15933 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15934 $as_echo_n "(cached) " >&6
15936 gcc_cv_as_sparc_ua_pcrel
=no
15937 if test x
$gcc_cv_as != x
; then
15944 .uaword %r_disp32(foo)' > conftest.s
15945 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }
15952 if test x
$gcc_cv_ld != x \
15953 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
15954 gcc_cv_as_sparc_ua_pcrel
=yes
15958 echo "configure: failed program was" >&5
15961 rm -f conftest.o conftest.s
15964 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15965 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
15966 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15968 cat >>confdefs.h
<<\_ACEOF
15969 #define HAVE_AS_SPARC_UA_PCREL 1
15973 { $as_echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15974 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
15975 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15976 $as_echo_n "(cached) " >&6
15978 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15979 if test x
$gcc_cv_as != x
; then
15983 .uaword %r_disp32(foo)
15984 .byte 0x32, 0x33, 0x34
15988 .skip 4' > conftest.s
15989 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }
15996 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15997 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15998 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15999 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
16000 if $gcc_cv_objdump -R conftest
2> /dev
/null \
16001 |
grep 'DISP32' > /dev
/null
2>&1; then
16004 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
16009 echo "configure: failed program was" >&5
16012 rm -f conftest.o conftest.s
16015 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
16016 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
16017 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
16019 cat >>confdefs.h
<<\_ACEOF
16020 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
16025 fi # unaligned pcrel relocs
16027 { $as_echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
16028 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
16029 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
16030 $as_echo_n "(cached) " >&6
16032 gcc_cv_as_sparc_offsetable_lo10
=no
16033 if test x
$gcc_cv_as != x
; then
16035 or %g1, %lo(ab) + 12, %g1
16036 or %g1, %lo(ab + 12), %g1' > conftest.s
16037 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }
16044 if test x
$gcc_cv_objdump != x \
16045 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
16046 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
16047 gcc_cv_as_sparc_offsetable_lo10
=yes
16050 echo "configure: failed program was" >&5
16053 rm -f conftest.o conftest.s
16056 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
16057 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
16058 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
16060 cat >>confdefs.h
<<\_ACEOF
16061 #define HAVE_AS_OFFSETABLE_LO10 1
16067 i
[34567]86-*-* | x86_64-
*-*)
16069 cygwin
* | pe | mingw32
*)
16070 # Used for DWARF 2 in PE
16071 { $as_echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
16072 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
16073 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
16074 $as_echo_n "(cached) " >&6
16076 gcc_cv_as_ix86_pe_secrel32
=no
16077 if test $in_tree_gas = yes; then
16078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
16079 then gcc_cv_as_ix86_pe_secrel32
=yes
16081 elif test x
$gcc_cv_as != x
; then
16085 .secrel32 foo' > conftest.s
16086 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }
16093 if test x
$gcc_cv_ld != x \
16094 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
16095 gcc_cv_as_ix86_pe_secrel32
=yes
16099 echo "configure: failed program was" >&5
16102 rm -f conftest.o conftest.s
16105 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
16106 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
16107 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
16109 cat >>confdefs.h
<<\_ACEOF
16110 #define HAVE_GAS_PE_SECREL32_RELOC 1
16117 { $as_echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
16118 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
16119 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
16120 $as_echo_n "(cached) " >&6
16122 gcc_cv_as_ix86_filds_fists
=no
16123 if test $in_tree_gas = yes; then
16124 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
16125 then gcc_cv_as_ix86_filds_fists
=yes
16127 elif test x
$gcc_cv_as != x
; then
16128 echo 'filds mem; fists mem' > conftest.s
16129 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }
16136 gcc_cv_as_ix86_filds_fists
=yes
16138 echo "configure: failed program was" >&5
16141 rm -f conftest.o conftest.s
16144 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
16145 $as_echo "$gcc_cv_as_ix86_filds_fists" >&6; }
16146 if test $gcc_cv_as_ix86_filds_fists = yes; then
16148 cat >>confdefs.h
<<\_ACEOF
16149 #define HAVE_GAS_FILDS_FISTS 1
16154 { $as_echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
16155 $as_echo_n "checking assembler for cmov syntax... " >&6; }
16156 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
16157 $as_echo_n "(cached) " >&6
16159 gcc_cv_as_ix86_cmov_sun_syntax
=no
16160 if test x
$gcc_cv_as != x
; then
16161 echo 'cmovl.l %edx, %eax' > conftest.s
16162 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }
16169 gcc_cv_as_ix86_cmov_sun_syntax
=yes
16171 echo "configure: failed program was" >&5
16174 rm -f conftest.o conftest.s
16177 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
16178 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
16179 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
16181 cat >>confdefs.h
<<\_ACEOF
16182 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
16187 # This one is used unconditionally by i386.[ch]; it is to be defined
16188 # to 1 if the feature is present, 0 otherwise.
16189 { $as_echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
16190 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
16191 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16194 gcc_cv_as_ix86_gotoff_in_data
=no
16195 if test $in_tree_gas = yes; then
16196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16197 then gcc_cv_as_ix86_gotoff_in_data
=yes
16199 elif test x
$gcc_cv_as != x
; then
16204 .long .L0@GOTOFF' > conftest.s
16205 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }
16212 gcc_cv_as_ix86_gotoff_in_data
=yes
16214 echo "configure: failed program was" >&5
16217 rm -f conftest.o conftest.s
16220 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
16221 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
16224 cat >>confdefs.h
<<_ACEOF
16225 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
16231 { $as_echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
16232 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
16233 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
16234 $as_echo_n "(cached) " >&6
16236 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
16237 if test $in_tree_gas = yes; then
16238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16239 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
16241 elif test x
$gcc_cv_as != x
; then
16243 addl r15 = @ltoffx(x#), gp
16245 ld8.mov r16 = [r15], x#' > conftest.s
16246 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }
16253 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
16255 echo "configure: failed program was" >&5
16258 rm -f conftest.o conftest.s
16261 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
16262 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
16263 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
16265 cat >>confdefs.h
<<\_ACEOF
16266 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
16275 *-*-aix*) conftest_s
=' .machine "pwr5"
16279 { $as_echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
16280 $as_echo_n "checking assembler for .machine directive support... " >&6; }
16281 if test "${gcc_cv_as_machine_directive+set}" = set; then
16282 $as_echo_n "(cached) " >&6
16284 gcc_cv_as_machine_directive
=no
16285 if test x
$gcc_cv_as != x
; then
16286 echo ' .machine ppc7400' > conftest.s
16287 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }
16294 gcc_cv_as_machine_directive
=yes
16296 echo "configure: failed program was" >&5
16299 rm -f conftest.o conftest.s
16302 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
16303 $as_echo "$gcc_cv_as_machine_directive" >&6; }
16305 if test x
$gcc_cv_as_machine_directive != xyes
; then
16306 echo "*** This target requires an assembler supporting \".machine\"" >&2
16307 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
16308 test x
$build = x
$target && exit 1
16312 *) conftest_s
=' .machine power4
16317 { $as_echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
16318 $as_echo_n "checking assembler for mfcr field support... " >&6; }
16319 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
16320 $as_echo_n "(cached) " >&6
16322 gcc_cv_as_powerpc_mfcrf
=no
16323 if test $in_tree_gas = yes; then
16324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16325 then gcc_cv_as_powerpc_mfcrf
=yes
16327 elif test x
$gcc_cv_as != x
; then
16328 echo "$conftest_s" > conftest.s
16329 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }
16336 gcc_cv_as_powerpc_mfcrf
=yes
16338 echo "configure: failed program was" >&5
16341 rm -f conftest.o conftest.s
16344 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16345 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
16346 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16348 cat >>confdefs.h
<<\_ACEOF
16349 #define HAVE_AS_MFCRF 1
16355 *-*-aix*) conftest_s
=' .machine "pwr5"
16358 *) conftest_s
=' .machine power5
16363 { $as_echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16364 $as_echo_n "checking assembler for popcntb support... " >&6; }
16365 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16366 $as_echo_n "(cached) " >&6
16368 gcc_cv_as_powerpc_popcntb
=no
16369 if test $in_tree_gas = yes; then
16370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16371 then gcc_cv_as_powerpc_popcntb
=yes
16373 elif test x
$gcc_cv_as != x
; then
16374 echo "$conftest_s" > conftest.s
16375 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }
16382 gcc_cv_as_powerpc_popcntb
=yes
16384 echo "configure: failed program was" >&5
16387 rm -f conftest.o conftest.s
16390 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16391 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
16392 if test $gcc_cv_as_powerpc_popcntb = yes; then
16394 cat >>confdefs.h
<<\_ACEOF
16395 #define HAVE_AS_POPCNTB 1
16401 *-*-aix*) conftest_s
=' .machine "pwr5x"
16404 *) conftest_s
=' .machine power5
16409 { $as_echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16410 $as_echo_n "checking assembler for fp round support... " >&6; }
16411 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16412 $as_echo_n "(cached) " >&6
16414 gcc_cv_as_powerpc_fprnd
=no
16415 if test $in_tree_gas = yes; then
16416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16417 then gcc_cv_as_powerpc_fprnd
=yes
16419 elif test x
$gcc_cv_as != x
; then
16420 echo "$conftest_s" > conftest.s
16421 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }
16428 gcc_cv_as_powerpc_fprnd
=yes
16430 echo "configure: failed program was" >&5
16433 rm -f conftest.o conftest.s
16436 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16437 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
16438 if test $gcc_cv_as_powerpc_fprnd = yes; then
16440 cat >>confdefs.h
<<\_ACEOF
16441 #define HAVE_AS_FPRND 1
16447 *-*-aix*) conftest_s
=' .csect .text[PR]
16449 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16453 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16454 *) conftest_s
=' .text
16456 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16459 { $as_echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16460 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
16461 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16462 $as_echo_n "(cached) " >&6
16464 gcc_cv_as_powerpc_rel16
=no
16465 if test $in_tree_gas = yes; then
16466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16467 then gcc_cv_as_powerpc_rel16
=yes
16469 elif test x
$gcc_cv_as != x
; then
16470 echo "$conftest_s" > conftest.s
16471 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }
16478 gcc_cv_as_powerpc_rel16
=yes
16480 echo "configure: failed program was" >&5
16483 rm -f conftest.o conftest.s
16486 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16487 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
16488 if test $gcc_cv_as_powerpc_rel16 = yes; then
16490 cat >>confdefs.h
<<\_ACEOF
16491 #define HAVE_AS_REL16 1
16498 { $as_echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16499 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
16500 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16501 $as_echo_n "(cached) " >&6
16503 gcc_cv_as_mips_explicit_relocs
=no
16504 if test $in_tree_gas = yes; then
16505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16506 then gcc_cv_as_mips_explicit_relocs
=yes
16508 elif test x
$gcc_cv_as != x
; then
16509 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
16510 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }
16517 gcc_cv_as_mips_explicit_relocs
=yes
16519 echo "configure: failed program was" >&5
16522 rm -f conftest.o conftest.s
16525 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16526 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
16527 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16528 if test x
$target_cpu_default = x
16529 then target_cpu_default
=MASK_EXPLICIT_RELOCS
16530 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16536 # Mips and HP-UX need the GNU assembler.
16537 # Linux on IA64 might be able to use the Intel assembler.
16540 mips
*-*-* |
*-*-hpux* )
16541 if test x
$gas_flag = xyes \
16542 ||
test x
"$host" != x
"$build" \
16543 ||
test ! -x "$gcc_cv_as" \
16544 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
16547 echo "*** This configuration requires the GNU assembler" >&2
16553 # ??? Not all targets support dwarf2 debug_line, even within a version
16554 # of gas. Moreover, we need to emit a valid instruction to trigger any
16555 # info to the output file. So, as supported targets are added to gas 2.11,
16556 # add some instruction here to (also) show we expect this might work.
16557 # ??? Once 2.11 is released, probably need to add first known working
16558 # version to the per-target configury.
16560 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
16561 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
16562 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
16565 ia64
*-*-* | s390
*-*-*)
16572 if test x
"$insn" != x
; then
16574 .file 1 \"conftest.s\"
16577 { $as_echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16578 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
16579 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16580 $as_echo_n "(cached) " >&6
16582 gcc_cv_as_dwarf2_debug_line
=no
16583 if test $in_tree_gas = yes; then
16584 if test $in_tree_gas_is_elf = yes \
16585 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16586 then gcc_cv_as_dwarf2_debug_line
=yes
16588 elif test x
$gcc_cv_as != x
; then
16589 echo "$conftest_s" > conftest.s
16590 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }
16597 if test x
$gcc_cv_objdump != x \
16598 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
16599 |
grep debug_line
> /dev
/null
2>&1; then
16600 gcc_cv_as_dwarf2_debug_line
=yes
16603 echo "configure: failed program was" >&5
16606 rm -f conftest.o conftest.s
16609 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16610 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
16613 # The .debug_line file table must be in the exact order that
16614 # we specified the files, since these indices are also used
16615 # by DW_AT_decl_file. Approximate this test by testing if
16616 # the assembler bitches if the same index is assigned twice.
16617 { $as_echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16618 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
16619 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16620 $as_echo_n "(cached) " >&6
16622 gcc_cv_as_dwarf2_file_buggy
=no
16623 if test x
$gcc_cv_as != x
; then
16624 echo ' .file 1 "foo.s"
16625 .file 1 "bar.s"' > conftest.s
16626 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }
16633 gcc_cv_as_dwarf2_file_buggy
=yes
16635 echo "configure: failed program was" >&5
16638 rm -f conftest.o conftest.s
16641 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16642 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
16645 if test $gcc_cv_as_dwarf2_debug_line = yes \
16646 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
16648 cat >>confdefs.h
<<\_ACEOF
16649 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16654 { $as_echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16655 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
16656 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16657 $as_echo_n "(cached) " >&6
16659 gcc_cv_as_gdwarf2_flag
=no
16660 if test $in_tree_gas = yes; then
16661 if test $in_tree_gas_is_elf = yes \
16662 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16663 then gcc_cv_as_gdwarf2_flag
=yes
16665 elif test x
$gcc_cv_as != x
; then
16666 echo "$insn" > conftest.s
16667 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }
16674 gcc_cv_as_gdwarf2_flag
=yes
16676 echo "configure: failed program was" >&5
16679 rm -f conftest.o conftest.s
16682 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16683 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
16684 if test $gcc_cv_as_gdwarf2_flag = yes; then
16686 cat >>confdefs.h
<<\_ACEOF
16687 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16692 { $as_echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16693 $as_echo_n "checking assembler for --gstabs option... " >&6; }
16694 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16695 $as_echo_n "(cached) " >&6
16697 gcc_cv_as_gstabs_flag
=no
16698 if test $in_tree_gas = yes; then
16699 if test $in_tree_gas_is_elf = yes \
16700 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16701 then gcc_cv_as_gstabs_flag
=yes
16703 elif test x
$gcc_cv_as != x
; then
16704 echo "$insn" > conftest.s
16705 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }
16712 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16713 # and warns about it, but still exits successfully. So check for
16715 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }
16722 else gcc_cv_as_gstabs_flag
=yes
16725 echo "configure: failed program was" >&5
16728 rm -f conftest.o conftest.s
16731 { $as_echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16732 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
16733 if test $gcc_cv_as_gstabs_flag = yes; then
16735 cat >>confdefs.h
<<\_ACEOF
16736 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16742 { $as_echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16743 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
16744 gcc_cv_ld_ro_rw_mix
=unknown
16745 if test $in_tree_ld = yes ; then
16746 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 \
16747 && test $in_tree_ld_is_elf = yes; then
16748 gcc_cv_ld_ro_rw_mix
=read-write
16750 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16751 echo '.section myfoosect, "a"' > conftest1.s
16752 echo '.section myfoosect, "aw"' > conftest2.s
16753 echo '.byte 1' >> conftest2.s
16754 echo '.section myfoosect, "a"' > conftest3.s
16755 echo '.byte 0' >> conftest3.s
16756 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16757 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16758 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
16759 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16760 conftest2.o conftest3.o
> /dev
/null
2>&1; then
16761 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
16762 | sed -e '/myfoosect/!d' -e N`
16763 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
16764 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
16765 gcc_cv_ld_ro_rw_mix
=read-only
16767 gcc_cv_ld_ro_rw_mix
=read-write
16771 rm -f conftest.
* conftest
[123].
*
16773 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
16775 cat >>confdefs.h
<<\_ACEOF
16776 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16780 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16781 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
16783 { $as_echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16784 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
16785 gcc_cv_ld_eh_frame_hdr
=no
16786 if test $in_tree_ld = yes ; then
16787 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 \
16788 && test $in_tree_ld_is_elf = yes; then
16789 gcc_cv_ld_eh_frame_hdr
=yes
16791 elif test x
$gcc_cv_ld != x
; then
16792 # Check if linker supports --eh-frame-hdr option
16793 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
16794 gcc_cv_ld_eh_frame_hdr
=yes
16798 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
16800 cat >>confdefs.h
<<\_ACEOF
16801 #define HAVE_LD_EH_FRAME_HDR 1
16805 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16806 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
16808 { $as_echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16809 $as_echo_n "checking linker position independent executable support... " >&6; }
16811 if test $in_tree_ld = yes ; then
16812 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 \
16813 && test $in_tree_ld_is_elf = yes; then
16816 elif test x
$gcc_cv_ld != x
; then
16817 # Check if linker supports -pie option
16818 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
16822 if test x
"$gcc_cv_ld_pie" = xyes
; then
16824 cat >>confdefs.h
<<\_ACEOF
16825 #define HAVE_LD_PIE 1
16829 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16830 $as_echo "$gcc_cv_ld_pie" >&6; }
16836 { $as_echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16837 $as_echo_n "checking linker --as-needed support... " >&6; }
16838 if test "${gcc_cv_ld_as_needed+set}" = set; then
16839 $as_echo_n "(cached) " >&6
16841 gcc_cv_ld_as_needed
=no
16842 if test $in_tree_ld = yes ; then
16843 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 \
16844 && test $in_tree_ld_is_elf = yes; then
16845 gcc_cv_ld_as_needed
=yes
16847 elif test x
$gcc_cv_ld != x
; then
16848 # Check if linker supports --as-needed and --no-as-needed options
16849 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16850 gcc_cv_ld_as_needed
=yes
16855 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16856 $as_echo "$gcc_cv_ld_as_needed" >&6; }
16857 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
16859 cat >>confdefs.h
<<\_ACEOF
16860 #define HAVE_LD_AS_NEEDED 1
16865 case "$target:$tm_file" in
16866 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
16867 { $as_echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16868 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
16869 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16870 $as_echo_n "(cached) " >&6
16872 gcc_cv_ld_no_dot_syms
=no
16873 if test $in_tree_ld = yes ; then
16874 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
16875 gcc_cv_ld_no_dot_syms
=yes
16877 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16878 cat > conftest1.s
<<EOF
16882 cat > conftest2.s
<<EOF
16883 .section ".opd","aw"
16886 .type foo,@function
16888 .quad .LEfoo,.TOC.@tocbase,0
16894 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16895 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16896 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16897 gcc_cv_ld_no_dot_syms
=yes
16899 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16903 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16904 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
16905 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16907 cat >>confdefs.h
<<\_ACEOF
16908 #define HAVE_LD_NO_DOT_SYMS 1
16915 { $as_echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16916 $as_echo_n "checking linker --sysroot support... " >&6; }
16917 if test "${gcc_cv_ld_sysroot+set}" = set; then
16918 $as_echo_n "(cached) " >&6
16920 gcc_cv_ld_sysroot
=no
16921 if test $in_tree_ld = yes ; then
16922 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
16923 gcc_cv_ld_sysroot
=yes
16925 elif test x
$gcc_cv_ld != x
; then
16926 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16927 gcc_cv_ld_sysroot
=yes
16931 { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16932 $as_echo "$gcc_cv_ld_sysroot" >&6; }
16933 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16935 cat >>confdefs.h
<<\_ACEOF
16936 #define HAVE_LD_SYSROOT 1
16941 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16942 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16944 cat >>confdefs.h
<<_ACEOF
16945 #define PREFIX_INCLUDE_DIR "$prefix/include"
16950 # Test for stack protector support in target C library.
16951 { $as_echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16952 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
16953 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16954 $as_echo_n "(cached) " >&6
16958 gcc_cv_libc_provides_ssp
=no
16959 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16960 if test "x$with_sysroot" = x
; then
16961 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16962 elif test "x$with_sysroot" = xyes
; then
16963 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16965 glibc_header_dir
="${with_sysroot}/usr/include"
16968 glibc_header_dir
=/usr
/include
16970 # glibc 2.4 and later provides __stack_chk_fail and
16971 # either __stack_chk_guard, or TLS access to stack guard canary.
16972 if test -f $glibc_header_dir/features.h \
16973 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16974 $glibc_header_dir/features.h
> /dev
/null
; then
16975 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16976 $glibc_header_dir/features.h
> /dev
/null
; then
16977 gcc_cv_libc_provides_ssp
=yes
16978 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16979 $glibc_header_dir/features.h
> /dev
/null \
16980 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16981 $glibc_header_dir/features.h
> /dev
/null
; then
16982 gcc_cv_libc_provides_ssp
=yes
16987 for ac_func
in __stack_chk_guard
16989 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16990 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16991 $as_echo_n "checking for $ac_func... " >&6; }
16992 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16993 $as_echo_n "(cached) " >&6
16995 cat >conftest.
$ac_ext <<_ACEOF
16998 cat confdefs.h
>>conftest.
$ac_ext
16999 cat >>conftest.
$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17003 #define $ac_func innocuous_$ac_func
17005 /* System header to define __stub macros and hopefully few prototypes,
17006 which can conflict with char $ac_func (); below.
17007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17008 <limits.h> exists even on freestanding compilers. */
17011 # include <limits.h>
17013 # include <assert.h>
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17025 /* The GNU C library defines this for functions which it implements
17026 to always fail with ENOSYS. Some functions are actually named
17027 something starting with __ and the normal name is an alias. */
17028 #if defined __stub_$ac_func || defined __stub___$ac_func
17035 return $ac_func ();
17040 rm -f conftest.
$ac_objext conftest
$ac_exeext
17041 if { (ac_try
="$ac_link"
17042 case "(($ac_try" in
17043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17047 $as_echo "$ac_try_echo") >&5
17048 (eval "$ac_link") 2>conftest.er1
17050 grep -v '^ *+' conftest.er1 >conftest.err
17052 cat conftest.err >&5
17053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && {
17055 test -z "$ac_c_werror_flag" ||
17056 test ! -s conftest.err
17057 } && test -s conftest$ac_exeext && {
17058 test "$cross_compiling" = yes ||
17059 $as_test_x conftest$ac_exeext
17061 eval "$as_ac_var=yes"
17063 $as_echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 eval "$as_ac_var=no"
17069 rm -rf conftest.dSYM
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17073 ac_res=`eval 'as_val=${'$as_ac_var'}
17074 $as_echo "$as_val"'`
17075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17076 $as_echo "$ac_res" >&6; }
17077 if test `eval 'as_val=${'$as_ac_var'}
17078 $as_echo "$as_val"'` = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17082 gcc_cv_libc_provides_ssp=yes
17084 gcc_cv_libc_provides_ssp=no
17088 *) gcc_cv_libc_provides_ssp=no ;;
17091 { $as_echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17092 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
17093 if test x$gcc_cv_libc_provides_ssp = xyes; then
17095 cat >>confdefs.h <<\_ACEOF
17096 #define TARGET_LIBC_PROVIDES_SSP 1
17101 # Find out what GC implementation we want, or may, use.
17103 # Check whether --with-gc was given.
17104 if test "${with_gc+set}" = set; then
17105 withval=$with_gc; case "$withval" in
17112 cat >>confdefs.h <<\_ACEOF
17118 { { $as_echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17119 $as_echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17120 { (exit 1); exit 1; }; }
17128 echo "Using $GGC for garbage collection."
17130 # Use the system's zlib library.
17132 zlibinc="-I\$(srcdir)/../zlib"
17134 # Check whether --with-system-zlib was given.
17135 if test "${with_system_zlib+set}" = set; then
17136 withval=$with_system_zlib; zlibdir=
17145 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17146 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17147 # Check whether --enable-maintainer-mode was given.
17148 if test "${enable_maintainer_mode+set}" = set; then
17149 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
17155 { $as_echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17156 $as_echo "$maintainer_mode" >&6; }
17158 if test "$maintainer_mode" = "yes"; then
17168 # Make empty files to contain the specs and options for each language.
17169 # Then add #include lines to for a compiler that has specs and/or options.
17174 for subdir in . $subdirs
17176 if test -f $srcdir/$subdir/lang.opt; then
17177 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17179 if test -f $srcdir/$subdir/lang-specs.h; then
17180 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17182 if test -f $srcdir/$subdir/$subdir-tree.def; then
17183 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17187 # These (without "all_") are set in each config-lang.in.
17188 # `language
' must be a single word so is spelled singularly.
17190 all_boot_languages=
17193 all_outputs='Makefile gccbug mklibgcc libada-mk
'
17194 # List of language makefile fragments.
17195 all_lang_makefrags=
17196 # List of language subdirectory makefiles. Deprecated.
17197 all_lang_makefiles=
17198 # Files for gengtype
17199 all_gtfiles="$target_gtfiles"
17200 # Files for gengtype with language
17201 all_gtfiles_files_langs=
17202 all_gtfiles_files_files=
17204 # Add the language fragments.
17205 # Languages are added via two mechanisms. Some information must be
17206 # recorded in makefile variables, these are defined in config-lang.in.
17207 # We accumulate them and plug them into the main Makefile.
17208 # The other mechanism is a set of hooks for each of the main targets
17209 # like `clean', `install', etc.
17211 language_hooks="Make-hooks"
17221 . ${srcdir}/$s/config-lang.in
17222 if test "x$language" = x
17224 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
17227 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
17228 if test -f ${srcdir}/$s/Makefile.in
17229 then all_lang_makefiles="$s/Makefile"
17231 all_languages="$all_languages $language"
17232 if test "x$boot_language" = xyes
17234 all_boot_languages="$all_boot_languages $language"
17236 all_compilers="$all_compilers $compilers"
17237 all_stagestuff="$all_stagestuff $stagestuff"
17238 all_outputs="$all_outputs $outputs"
17239 all_gtfiles="$all_gtfiles $gtfiles"
17242 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
17243 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17247 # Pick up gtfiles for c
17250 . ${srcdir}/c-config-lang.in
17251 all_gtfiles="$all_gtfiles $gtfiles"
17254 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
17255 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17259 for language in $all_languages
17261 check_languages="$check_languages check-$language"
17264 # We link each language in with a set of hooks, reached indirectly via
17269 target_list="all.build all.cross start.encap rest.encap tags \
17270 install-normal install-common install-man \
17271 uninstall info man srcextra srcman srcinfo \
17272 mostlyclean clean distclean maintainer-clean \
17273 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
17274 for t in $target_list
17277 for lang in $all_languages
17281 echo "lang.$t: $x" >> Make-hooks
17290 echo "dir ." > .gdbinit
17291 echo "dir ${srcdir}" >> .gdbinit
17292 if test x$gdb_needs_out_file_path = xyes
17294 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17296 if test "x$subdirs" != x; then
17299 echo "dir ${srcdir}/$s" >> .gdbinit
17302 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17304 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
17305 # absolute path for gcc_tooldir based on inserting the number of up-directory
17306 # movements required to get from $(exec_prefix) to $(prefix) into the basic
17307 # $(libsubdir)/@(unlibsubdir) based path.
17308 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
17309 # make and thus we'd get different behavior depending on where we built the
17311 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
17312 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
17314 # An explanation of the sed strings:
17315 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
17316 # -e 's|/$||' match a trailing forward slash and eliminates it
17317 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
17318 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
17320 # (*) Note this pattern overwrites the first character of the string
17321 # with a forward slash if one is not already present. This is not a
17322 # problem because the exact names of the sub-directories concerned is
17323 # unimportant, just the number of them matters.
17325 # The practical upshot of these patterns is like this:
17327 # prefix exec_prefix result
17328 # ------ ----------- ------
17329 # /foo /foo/bar ../
17330 # /foo/ /foo/bar ../
17331 # /foo /foo/bar/ ../
17332 # /foo/ /foo/bar/ ../
17333 # /foo /foo/bar/ugg ../../
17336 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$
(exec_prefix
) |
sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\
`\$(target_noncanonical)"
17341 # Find a directory in which to install a shared libgcc.
17343 # Check whether --enable-version-specific-runtime-libs was given.
17344 if test "${enable_version_specific_runtime_libs+set}" = set; then
17345 enableval=$enable_version_specific_runtime_libs;
17350 # Check whether --with-slibdir was given.
17351 if test "${with_slibdir+set}" = set; then
17352 withval=$with_slibdir; slibdir="$with_slibdir"
17354 if test "${enable_version_specific_runtime_libs+set}" = set; then
17355 slibdir='$(libsubdir)'
17356 elif test "$host" != "$target"; then
17357 slibdir='$(build_tooldir)/lib'
17359 slibdir='$(libdir)'
17365 objdir=`${PWDCMD-pwd}`
17368 # Substitute configuration variables
17433 if test x${build} = x${host} ; then
17434 if test x${host} = x${target} ; then
17435 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17437 echo "Links are now set up to build a cross-compiler" 1>&2
17438 echo " from ${host} to ${target}." 1>&2
17441 if test x${host} = x${target} ; then
17442 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17443 echo " for ${target}." 1>&2
17445 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17446 echo " from ${host} to ${target}." 1>&2
17453 # Configure the subdirectories
17454 # AC_CONFIG_SUBDIRS($subdirs)
17456 # Create the Makefile
17457 # and configure language subdirectories
17458 ac_config_files="$ac_config_files $all_outputs"
17461 ac_config_commands="$ac_config_commands default"
17463 cat >confcache <<\_ACEOF
17464 # This file is a shell script that caches the results of configure
17465 # tests run on this system so they can be shared between configure
17466 # scripts and configure runs, see configure's option --config-cache.
17467 # It is not useful on other systems. If it contains results you don't
17468 # want to keep, you may remove or edit it.
17470 # config.status only pays attention to the cache file if you give it
17471 # the --recheck option to rerun configure.
17473 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
17474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17475 # following values.
17479 # The following way of writing the cache mishandles newlines in values,
17480 # but we know of no workaround that is simple, portable, and efficient.
17481 # So, we kill variables containing newlines.
17482 # Ultrix sh set writes to stderr and can't be redirected directly,
17483 # and sets the high bit in the cache file unless we assign to the vars.
17485 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17486 eval ac_val
=\$
$ac_var
17490 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17491 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17494 _ | IFS | as_nl
) ;; #(
17495 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17496 *) $as_unset $ac_var ;;
17502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17503 *${as_nl}ac_space
=\
*)
17504 # `set' does not quote correctly, so add quotes (double-quote
17505 # substitution turns \\\\ into \\, and sed turns \\ into \).
17508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17511 # `set' quotes correctly as required by POSIX, so do not add quotes.
17512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17525 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17526 if test -w "$cache_file"; then
17527 test "x$cache_file" != "x/dev/null" &&
17528 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17529 $as_echo "$as_me: updating cache $cache_file" >&6;}
17530 cat confcache
>$cache_file
17532 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17533 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17538 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17539 # Let make expand exec_prefix.
17540 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17542 DEFS
=-DHAVE_CONFIG_H
17546 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17547 # 1. Remove the extension, and $U if already installed.
17548 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17549 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17551 # will be set to the directory where LIBOBJS objects are built.
17552 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17553 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17555 LIBOBJS
=$ac_libobjs
17557 LTLIBOBJS
=$ac_ltlibobjs
17561 : ${CONFIG_STATUS=./config.status}
17563 ac_clean_files_save
=$ac_clean_files
17564 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17565 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17566 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17567 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569 # Generated by $as_me.
17570 # Run this file to recreate the current configuration.
17571 # Compiler output produced by configure, useful for debugging
17572 # configure, is in config.log if it exists.
17575 ac_cs_recheck=false
17577 SHELL=\${CONFIG_SHELL-$SHELL}
17580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17581 ## --------------------- ##
17582 ## M4sh Initialization. ##
17583 ## --------------------- ##
17585 # Be more Bourne compatible
17586 DUALCASE
=1; export DUALCASE
# for MKS sh
17587 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17591 # is contrary to our usage. Disable this feature.
17592 alias -g '${1+"$@"}'='"$@"'
17593 setopt NO_GLOB_SUBST
17595 case `(set -o) 2>/dev/null` in
17596 *posix
*) set -o posix
;;
17605 # Avoid depending upon Character Ranges.
17606 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17607 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17608 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17609 as_cr_digits
='0123456789'
17610 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17615 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17616 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17618 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17619 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17620 as_echo='printf %s
\n'
17621 as_echo_n='printf %s
'
17623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17624 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17625 as_echo_n='/usr
/ucb
/echo -n'
17627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17628 as_echo_n_body='eval
17632 expr "X$arg" : "X\\(.*\\)$as_nl";
17633 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17635 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17637 export as_echo_n_body
17638 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17640 export as_echo_body
17641 as_echo='sh
-c $as_echo_body as_echo
'
17644 # The user is always right.
17645 if test "${PATH_SEPARATOR+set}" != set; then
17647 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17648 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17653 # Support unset when possible.
17654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17662 # We need space, tab and new line, in precisely that order. Quoting is
17663 # there to prevent editors from complaining about space-tab.
17664 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17665 # splitting by setting IFS to empty value.)
17668 # Find who we are. Look in the path if we contain no directory separator.
17670 *[\\/]* ) as_myself=$0 ;;
17671 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17672 for as_dir in $PATH
17675 test -z "$as_dir" && as_dir=.
17676 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17682 # We did not find ourselves, most probably we were run as `sh COMMAND'
17683 # in which case we are not to be found in the path.
17684 if test "x$as_myself" = x
; then
17687 if test ! -f "$as_myself"; then
17688 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17689 { (exit 1); exit 1; }
17692 # Work around bugs in pre-3.0 UWIN ksh.
17693 for as_var
in ENV MAIL MAILPATH
17694 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17706 # Required to use basename.
17707 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17708 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17714 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17715 as_basename
=basename
17721 # Name of the executable.
17722 as_me
=`$as_basename -- "$0" ||
17723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17724 X"$0" : 'X\(//\)$' \| \
17725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17727 sed '/^.*\/\([^/][^/]*\)\/*$/{
17746 as_lineno_1
=$LINENO
17747 as_lineno_2
=$LINENO
17748 test "x$as_lineno_1" != "x$as_lineno_2" &&
17749 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17752 # uniformly replaced by the line number. The first 'sed' inserts a
17753 # line-number line after each line using $LINENO; the second 'sed'
17754 # does the real work. The second script uses 'N' to pair each
17755 # line-number line with the line containing $LINENO, and appends
17756 # trailing '-' during substitution so that $LINENO is not a special
17757 # case at line end.
17758 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17759 # scripts with optimization help from Paolo Bonzini. Blame Lee
17760 # E. McMahon (1931-1989) for sed's syntax. :-)
17772 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17775 ' >$as_me.lineno
&&
17776 chmod +x
"$as_me.lineno" ||
17777 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17778 { (exit 1); exit 1; }; }
17780 # Don't try to exec as it changes $[0], causing all sort of problems
17781 # (the dirname of $[0] is not the place where we might find the
17782 # original and so on. Autoconf is especially sensitive to this).
17783 .
"./$as_me.lineno"
17784 # Exit status is that of the last command.
17789 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17795 ECHO_C
= ECHO_N
= ECHO_T
=
17796 case `echo -n x` in
17798 case `echo 'x\c'` in
17799 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17805 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17806 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17812 rm -f conf$$ conf$$.exe conf$$.
file
17813 if test -d conf$$.dir
; then
17814 rm -f conf$$.dir
/conf$$.
file
17817 mkdir conf$$.dir
2>/dev
/null
17819 if (echo >conf$$.
file) 2>/dev
/null
; then
17820 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17822 # ... but there are two gotchas:
17823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17825 # In both cases, we have to default to `cp -p'.
17826 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17828 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17836 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17837 rmdir conf$$.dir
2>/dev
/null
17839 if mkdir
-p .
2>/dev
/null
; then
17842 test -d .
/-p && rmdir .
/-p
17846 if test -x / >/dev
/null
2>&1; then
17847 as_test_x
='test -x'
17849 if ls -dL / >/dev
/null
2>&1; then
17856 if test -d "$1"; then
17862 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17863 ???[sx]*):;;*)false;;esac;fi
17867 as_executable_p
=$as_test_x
17869 # Sed expression to map a string onto a valid CPP name.
17870 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17872 # Sed expression to map a string onto a valid variable name.
17873 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17878 # Save the log message, to keep $[0] and so on meaningful, and to
17879 # report actual input values of CONFIG_FILES etc. instead of their
17880 # values after options handling.
17882 This file was extended by $as_me, which was
17883 generated by GNU Autoconf 2.62. Invocation command line was
17885 CONFIG_FILES = $CONFIG_FILES
17886 CONFIG_HEADERS = $CONFIG_HEADERS
17887 CONFIG_LINKS = $CONFIG_LINKS
17888 CONFIG_COMMANDS = $CONFIG_COMMANDS
17891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17897 # Files that config.status was made for.
17898 config_files="$ac_config_files"
17899 config_headers="$ac_config_headers"
17900 config_commands="$ac_config_commands"
17904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17906 \`$as_me' instantiates files from templates according to the
17907 current configuration.
17909 Usage: $0 [OPTIONS] [FILE]...
17911 -h, --help print this help, then exit
17912 -V, --version print version number and configuration settings, then exit
17913 -q, --quiet do not print progress messages
17914 -d, --debug don't remove temporary files
17915 --recheck update $as_me by reconfiguring in the same conditions
17916 --file=FILE[:TEMPLATE]
17917 instantiate the configuration file FILE
17918 --header=FILE[:TEMPLATE]
17919 instantiate the configuration header FILE
17921 Configuration files:
17924 Configuration headers:
17927 Configuration commands:
17930 Report bugs to <bug-autoconf@gnu.org>."
17933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17936 configured by $0, generated by GNU Autoconf 2.62,
17937 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17939 Copyright (C) 2008 Free Software Foundation, Inc.
17940 This config.status script is free software; the Free Software Foundation
17941 gives unlimited permission to copy, distribute and modify it."
17946 test -n "\$AWK" || AWK=awk
17949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17950 # The default lists apply if the user does not specify any file.
17956 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17957 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17968 # Handling of the options.
17969 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17971 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17972 $as_echo "$ac_cs_version"; exit ;;
17973 --debug |
--debu |
--deb |
--de |
--d |
-d )
17975 --file |
--fil |
--fi |
--f )
17978 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17980 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17981 ac_need_defaults
=false
;;
17982 --header |
--heade |
--head |
--hea )
17985 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17987 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17988 ac_need_defaults
=false
;;
17990 # Conflict between --help and --header
17991 { $as_echo "$as_me: error: ambiguous option: $1
17992 Try \`$0 --help' for more information." >&2
17993 { (exit 1); exit 1; }; };;
17994 --help |
--hel |
-h )
17995 $as_echo "$ac_cs_usage"; exit ;;
17996 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17997 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18000 # This is an error.
18001 -*) { $as_echo "$as_me: error: unrecognized option: $1
18002 Try \`$0 --help' for more information." >&2
18003 { (exit 1); exit 1; }; } ;;
18005 *) ac_config_targets
="$ac_config_targets $1"
18006 ac_need_defaults
=false
;;
18012 ac_configure_extra_args
=
18014 if $ac_cs_silent; then
18016 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18021 if \$ac_cs_recheck; then
18022 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18024 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18025 CONFIG_SHELL='$SHELL'
18026 export CONFIG_SHELL
18031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18036 ## Running $as_me. ##
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18052 # Handling of arguments.
18053 for ac_config_target
in $ac_config_targets
18055 case $ac_config_target in
18056 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
18057 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
18058 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18060 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18061 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18062 { (exit 1); exit 1; }; };;
18067 # If the user did not use the arguments to specify the items to instantiate,
18068 # then the envvar interface is used. Set only those that are not.
18069 # We use the long form for the default assignment because of an extremely
18070 # bizarre bug on SunOS 4.1.3.
18071 if $ac_need_defaults; then
18072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18077 # Have a temporary directory for convenience. Make it in the build tree
18078 # simply because there is no reason against having it here, and in addition,
18079 # creating and moving files from /tmp can sometimes cause problems.
18080 # Hook for its removal unless debugging.
18081 # Note that there is a small window in which the directory will not be cleaned:
18082 # after its creation but before its name has been assigned to `$tmp'.
18086 trap 'exit_status=$?
18087 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18089 trap '{ (exit 1); exit 1; }' 1 2 13 15
18091 # Create a (secure) tmp directory for tmp files.
18094 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18095 test -n "$tmp" && test -d "$tmp"
18098 tmp
=.
/conf$$
-$RANDOM
18099 (umask 077 && mkdir
"$tmp")
18102 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18103 { (exit 1); exit 1; }
18106 # Set up the scripts for CONFIG_FILES section.
18107 # No need to generate them if there are no CONFIG_FILES.
18108 # This happens for instance with `./config.status config.h'.
18109 if test -n "$CONFIG_FILES"; then
18111 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18112 ac_cs_awk_getline
=:
18113 ac_cs_awk_pipe_init
=
18114 ac_cs_awk_read_file
='
18115 while ((getline aline < (F[key])) > 0)
18118 ac_cs_awk_pipe_fini
=
18120 ac_cs_awk_getline
=false
18121 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18122 ac_cs_awk_read_file
='
18124 print "cat " F[key] " &&"
18125 '$ac_cs_awk_pipe_init
18126 # The final `:' finishes the AND list.
18127 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18130 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18134 ac_cs_awk_cr
=$ac_cr
18137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18140 # Create commands to substitute file output variables.
18142 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18143 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18144 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18147 } >conf$
$files.sh
&&
18148 . .
/conf$
$files.sh ||
18149 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18150 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18151 { (exit 1); exit 1; }; }
18152 rm -f conf$
$files.sh
18155 echo "cat >conf$$subs.awk <<_ACEOF" &&
18156 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18158 } >conf$$subs.sh ||
18159 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18160 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18161 { (exit 1); exit 1; }; }
18162 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18164 for ac_last_try in false false false false false :; do
18165 . ./conf$$subs.sh ||
18166 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18167 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18168 { (exit 1); exit 1; }; }
18170 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
18172 elif $ac_last_try; then
18173 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18174 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18175 { (exit 1); exit 1; }; }
18177 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18180 rm -f conf$$subs.sh
18182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18183 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18187 s/^/S["/; s
/!.
*/"]=/
18197 s/\(.\{148\}\).*/\1/
18199 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18204 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18211 s/\(.\{148\}\).*/\1/
18213 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18217 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18222 ' <conf$$subs.awk | sed '
18227 ' >>$CONFIG_STATUS || ac_write_fail=1
18228 rm -f conf$$subs.awk
18229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18231 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18232 for (key in S) S_is_set[key] = 1
18234 \$ac_cs_awk_pipe_init
18238 nfields = split(line, field, "@
")
18240 len = length(field[1])
18241 for (i = 2; i < nfields; i++) {
18243 keylen = length(key)
18244 if (S_is_set[key]) {
18246 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18247 len += length(value) + length(field[++i])
18252 if (nfields == 3 && !substed) {
18254 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18255 \$ac_cs_awk_read_file
18261 \$ac_cs_awk_pipe_fini
18264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18265 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18266 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18269 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18270 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
18271 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
18272 { (exit 1); exit 1; }; }
18275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18277 # trailing colons and then remove the whole line if VPATH becomes empty
18278 # (actually we leave an empty line to preserve line numbers).
18279 if test "x
$srcdir" = x.; then
18280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18281 s/:*\$(srcdir):*/:/
18282 s/:*\${srcdir}:*/:/
18284 s/^\([^=]*=[ ]*\):*/\1/
18290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18291 fi # test -n "$CONFIG_FILES"
18293 # Set up the scripts for CONFIG_HEADERS section.
18294 # No need to generate them if there are no CONFIG_HEADERS.
18295 # This happens for instance with `./config.status Makefile'.
18296 if test -n "$CONFIG_HEADERS"; then
18297 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18301 # Transform confdefs.h into an awk script `defines.awk', embedded as
18302 # here-document in config.status, that substitutes the proper values into
18303 # config.h.in to produce config.h.
18305 # Create a delimiter string that does not exist in confdefs.h, to ease
18306 # handling of long lines.
18308 for ac_last_try in false false :; do
18309 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18310 if test -z "$ac_t"; then
18312 elif $ac_last_try; then
18313 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
18314 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
18315 { (exit 1); exit 1; }; }
18317 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18321 # For the awk script, D is an array of macro values keyed by name,
18322 # likewise P contains macro parameters if any. Preserve backslash
18323 # newline sequences.
18325 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18327 s/.\{148\}/&'"$ac_delim"'/g
18330 s/^[ ]*#[ ]*define[ ][ ]*/ /
18337 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18339 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18344 D["\
1"]=" \
3\\\\\\n
"\\/p
18346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18351 s/.\{148\}/&'"$ac_delim"'/g
18356 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18359 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18361 ' <confdefs.h | sed '
18362 s/'"$ac_delim"'/"\\\
18363 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18366 for (key in D) D_is_set[key] = 1
18369 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18371 split(line, arg, " ")
18372 if (arg[1] == "#") {
18376 defundef
= substr
(arg
[1], 2)
18379 split(mac1
, mac2
, "(") #)
18381 if (D_is_set
[macro
]) {
18382 # Preserve the white space surrounding the "#".
18383 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18384 print prefix
"define", macro P
[macro
] D
[macro
]
18387 # Replace #undef with comments. This is necessary, for example,
18388 # in the case of _POSIX_SOURCE, which is predefined and required
18389 # on some systems where configure will not decide to define it.
18390 if (defundef
== "undef") {
18391 print
"/*", line
, "*/"
18399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18400 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18401 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18402 { (exit 1); exit 1; }; }
18403 fi # test -n "$CONFIG_HEADERS"
18406 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18411 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18413 case $ac_mode$ac_tag in
18415 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18416 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18417 { (exit 1); exit 1; }; };;
18418 :[FH
]-) ac_tag
=-:-;;
18419 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18436 -) ac_f
="$tmp/stdin";;
18437 *) # Look for the file first in the build tree, then in the source tree
18438 # (if the path is not absolute). The absolute path cannot be DOS-style,
18439 # because $ac_f cannot contain `:'.
18443 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18445 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18446 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18447 { (exit 1); exit 1; }; };;
18449 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18450 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18453 # Let's still pretend it is `configure' which instantiates (i.e., don't
18454 # use $as_me), people would be surprised to read:
18455 # /* config.h. Generated by config.status. */
18456 configure_input
='Generated from '`
18457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18459 if test x
"$ac_file" != x-
; then
18460 configure_input
="$ac_file. $configure_input"
18461 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18462 $as_echo "$as_me: creating $ac_file" >&6;}
18464 # Neutralize special characters interpreted by sed in replacement strings.
18465 case $configure_input in #(
18466 *\
&* |
*\|
* |
*\\* )
18467 ac_sed_conf_input
=`$as_echo "$configure_input" |
18468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18469 *) ac_sed_conf_input
=$configure_input;;
18473 *:-:* |
*:-) cat >"$tmp/stdin" \
18474 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18475 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18476 { (exit 1); exit 1; }; } ;;
18481 ac_dir
=`$as_dirname -- "$ac_file" ||
18482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18483 X"$ac_file" : 'X\(//\)[^/]' \| \
18484 X"$ac_file" : 'X\(//\)$' \| \
18485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18486 $as_echo X"$ac_file" |
18487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18491 /^X\(\/\/\)[^/].*/{
18506 -*) as_dir
=.
/$as_dir;;
18508 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18512 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18513 *) as_qdir
=$as_dir;;
18515 as_dirs
="'$as_qdir' $as_dirs"
18516 as_dir
=`$as_dirname -- "$as_dir" ||
18517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18518 X"$as_dir" : 'X\(//\)[^/]' \| \
18519 X"$as_dir" : 'X\(//\)$' \| \
18520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18521 $as_echo X"$as_dir" |
18522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18526 /^X\(\/\/\)[^/].*/{
18539 test -d "$as_dir" && break
18541 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18542 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18543 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18544 { (exit 1); exit 1; }; }; }
18548 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18550 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18551 # A ".." for each directory in $ac_dir_suffix.
18552 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18553 case $ac_top_builddir_sub in
18554 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18555 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18558 ac_abs_top_builddir
=$ac_pwd
18559 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18560 # for backward compatibility:
18561 ac_top_builddir
=$ac_top_build_prefix
18564 .
) # We are building in place.
18566 ac_top_srcdir
=$ac_top_builddir_sub
18567 ac_abs_top_srcdir
=$ac_pwd ;;
18568 [\\/]* | ?
:[\\/]* ) # Absolute name.
18569 ac_srcdir
=$srcdir$ac_dir_suffix;
18570 ac_top_srcdir
=$srcdir
18571 ac_abs_top_srcdir
=$srcdir ;;
18572 *) # Relative name.
18573 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18574 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18575 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18577 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18589 # If the template does not know about datarootdir, expand it.
18590 # FIXME: This hack should be removed a few years after 2.60.
18591 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18604 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18605 *datarootdir
*) ac_datarootdir_seen
=yes;;
18606 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18607 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18608 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18611 ac_datarootdir_hack='
18612 s&@datadir@&$datadir&g
18613 s&@docdir@&$docdir&g
18614 s&@infodir@&$infodir&g
18615 s&@localedir@&$localedir&g
18616 s&@mandir@&$mandir&g
18617 s&\\\${datarootdir}&$datarootdir&g' ;;
18621 # Neutralize VPATH when `$srcdir' = `.'.
18622 # Shell code in configure.ac might set extrasub.
18623 # FIXME: do we really want to maintain this feature?
18624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18625 ac_sed_extra="$ac_vpsub
18628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18630 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18631 s|@configure_input@|
$ac_sed_conf_input|
;t t
18632 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18633 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18634 s
&@srcdir@
&$ac_srcdir&;t t
18635 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18636 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18637 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18638 s
&@builddir@
&$ac_builddir&;t t
18639 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18640 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18641 $ac_datarootdir_hack
18643 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18644 if $ac_cs_awk_getline; then
18645 $AWK -f "$tmp/subs.
awk"
18647 $AWK -f "$tmp/subs.
awk" | $SHELL
18649 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18650 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18651 { (exit 1); exit 1; }; }
18653 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18654 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18656 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18657 which seems to be undefined. Please make sure it is defined." >&5
18658 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18659 which seems to be undefined. Please make sure it is defined." >&2;}
18663 -) cat "$tmp/out" && rm -f "$tmp/out";;
18664 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18666 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18667 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18668 { (exit 1); exit 1; }; }
18674 if test x"$ac_file" != x-; then
18676 $as_echo "/* $configure_input */" \
18677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18678 } >"$tmp/config.h" \
18679 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18680 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18681 { (exit 1); exit 1; }; }
18682 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18683 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18684 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18687 mv "$tmp/config.h" "$ac_file" \
18688 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18689 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18690 { (exit 1); exit 1; }; }
18693 $as_echo "/* $configure_input */" \
18694 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18695 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18696 $as_echo "$as_me: error: could not create -" >&2;}
18697 { (exit 1); exit 1; }; }
18701 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18702 $as_echo "$as_me: executing $ac_file commands" >&6;}
18707 case $ac_file$ac_mode in
18709 case ${CONFIG_HEADERS} in
18710 *auto-host.h:config.in*)
18713 # Make sure all the subdirs exist.
18714 for d in $subdirs doc build
18716 test -d $d || mkdir $d
18718 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
18719 # bootstrapping and the installation procedure can still use
18720 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks
,
18721 # FLAGS_TO_PASS has been modified to solve the problem there.
18722 # This is virtually a duplicate of what happens in configure.lang; we do
18723 # an extra check to make sure this only happens if ln -s can be used.
18726 for d
in ${subdirs} ; do
18727 STARTDIR
=`${PWDCMD-pwd}`
18729 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
18732 $LN_S ..
/$t $t 2>/dev
/null
18744 { (exit 0); exit 0; }
18746 chmod +x
$CONFIG_STATUS
18747 ac_clean_files
=$ac_clean_files_save
18749 test $ac_write_fail = 0 ||
18750 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18751 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18752 { (exit 1); exit 1; }; }
18755 # configure is writing to config.log, and then calls config.status.
18756 # config.status does its own redirection, appending to config.log.
18757 # Unfortunately, on DOS this fails, as config.log is still kept open
18758 # by configure, so config.status won't be able to write to it; its
18759 # output is simply discarded. So we exec the FD to /dev/null,
18760 # effectively closing config.log, so it can be properly (re)opened and
18761 # appended to by config.status. When coming back to configure, we
18762 # need to make the FD available again.
18763 if test "$no_create" != yes; then
18765 ac_config_status_args
=
18766 test "$silent" = yes &&
18767 ac_config_status_args
="$ac_config_status_args --quiet"
18769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18772 # would make configure fail if this is the last instruction.
18773 $ac_cs_success ||
{ (exit 1); exit 1; }
18775 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18776 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18777 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}