Deleted Added
full compact
configure (161660) configure (169699)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="tree.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="tree.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path LIBOBJS LTLIBOBJS'
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313ac_subst_files='language_hooks'
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
313ac_subst_files='language_hooks'
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773ac_env_GMPLIBS_set=${GMPLIBS+set}
774ac_env_GMPLIBS_value=$GMPLIBS
775ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776ac_cv_env_GMPLIBS_value=$GMPLIBS
777ac_env_GMPINC_set=${GMPINC+set}
778ac_env_GMPINC_value=$GMPINC
779ac_cv_env_GMPINC_set=${GMPINC+set}
780ac_cv_env_GMPINC_value=$GMPINC
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
844fi
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files in source dir
855 intended for creating source tarballs for users
856 without texinfo bison or flex.
781
782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789\`configure' configures this package to adapt to many kinds of systems.
790
791Usage: $0 [OPTION]... [VAR=VALUE]...
792
793To assign environment variables (e.g., CC, CFLAGS...), specify them as
794VAR=VALUE. See below for descriptions of some of the useful variables.
795
796Defaults for the options are specified in brackets.
797
798Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809_ACEOF
810
811 cat <<_ACEOF
812Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818By default, \`make install' will install all the files in
819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821for instance \`--prefix=\$HOME'.
822
823For better control, use the options below.
824
825Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838_ACEOF
839
840 cat <<\_ACEOF
841
842Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
857 --enable-werror enable -Werror in bootstrap stage2 and later
858 --enable-checking=LIST
859 enable expensive run-time checks. With LIST,
860 enable only specific categories of checks.
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
861 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862 default is no checking
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
863 --enable-coverage=LEVEL
874 --enable-coverage=LEVEL
864 enable compiler\'s code coverage collection.
875 enable compiler's code coverage collection.
865 Use to measure compiler performance and locate
866 unused parts of the compiler. With LEVEL, specify
867 optimization. Values are opt, noopt,
868 default is noopt
869 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
870 --enable-multilib enable library support for multiple ABIs
871 --enable-__cxa_atexit enable __cxa_atexit for C++
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
872 --enable-threads enable thread usage for target GCC
873 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
874 --enable-objc-gc enable the use of Boehm's garbage collector with
875 the GNU Objective-C runtime
876 --disable-shared don't provide a shared libgcc
877 --enable-intermodule build the compiler in one step
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
878 --enable-initfini-array use .init_array/.fini_array sections
879 --enable-sjlj-exceptions
880 arrange to use setjmp/longjmp exception handling
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
881 --disable-win32-registry
882 disable lookup of installation paths in the
883 Registry on Windows hosts
884 --enable-win32-registry enable registry lookup (default)
885 --enable-win32-registry=KEY
886 use KEY instead of GCC version as the last portion
887 of the registry key
888 --enable-maintainer-mode
889 enable make rules and dependencies not useful
890 (and sometimes confusing) to the casual installer
891 --enable-version-specific-runtime-libs
892 specify that runtime libraries should be
893 installed in a compiler-specific directory
894
895Optional Packages:
896 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
897 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
911
912Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-build-libsubdir=DIR Directory where to find libraries for build system
898 --with-local-prefix=DIR specifies directory to put local include
899 --with-gxx-include-dir=DIR
900 specifies directory to put g++ header files
901 --with-cpp-install-dir=DIR
902 install the user visible C preprocessor in DIR
903 (relative to PREFIX) as well as PREFIX/bin
904 --with-gnu-ld arrange to work with GNU ld.
905 --with-ld arrange to use the specified ld (full pathname)
916 --with-local-prefix=DIR specifies directory to put local include
917 --with-gxx-include-dir=DIR
918 specifies directory to put g++ header files
919 --with-cpp-install-dir=DIR
920 install the user visible C preprocessor in DIR
921 (relative to PREFIX) as well as PREFIX/bin
922 --with-gnu-ld arrange to work with GNU ld.
923 --with-ld arrange to use the specified ld (full pathname)
924 --with-demangler-in-ld try to use demangler in GNU ld.
906 --with-gnu-as arrange to work with GNU as
907 --with-as arrange to use the specified as (full pathname)
908 --with-stabs arrange to use stabs instead of host debug format
909 --with-dwarf2 force the default debug format to be DWARF 2
925 --with-gnu-as arrange to work with GNU as
926 --with-as arrange to use the specified as (full pathname)
927 --with-stabs arrange to use stabs instead of host debug format
928 --with-dwarf2 force the default debug format to be DWARF 2
929 --with-build-sysroot=sysroot
930 use sysroot as the system root during the build
910 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
911 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
932 --with-gnu-ld assume the C compiler uses GNU ld default=no
933 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
934 --without-libiconv-prefix don't search for libiconv in includedir and libdir
912 --with-system-libunwind use installed libunwind
935 --with-system-libunwind use installed libunwind
913 --with-gc={simple,page,zone} choose the garbage collection mechanism to use
936 --with-long-double-128 Use 128-bit long double by default.
937 --with-gc={page,zone} choose the garbage collection mechanism to use
914 with the compiler
915 --with-system-zlib use installed libz
938 with the compiler
939 --with-system-zlib use installed libz
916 --with-slibdir=DIR shared libraries in DIR LIBDIR
940 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
941 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
942 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
943 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
917
918Some influential environment variables:
919 CC C compiler command
920 CFLAGS C compiler flags
921 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
922 nonstandard directory <lib dir>
923 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
924 headers in a nonstandard directory <include dir>
925 CPP C preprocessor
944
945Some influential environment variables:
946 CC C compiler command
947 CFLAGS C compiler flags
948 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
949 nonstandard directory <lib dir>
950 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
951 headers in a nonstandard directory <include dir>
952 CPP C preprocessor
953 GMPLIBS How to link GMP
954 GMPINC How to find GMP include files
926
927Use these variables to override the choices made by `configure' or to help
928it to find libraries and programs with nonstandard names/locations.
929
930_ACEOF
931fi
932
933if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
935 ac_popdir=`pwd`
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
938 ac_builddir=.
939
940if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944else
945 ac_dir_suffix= ac_top_builddir=
946fi
947
948case $srcdir in
949 .) # No --srcdir option. We are building in place.
950 ac_srcdir=.
951 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=.
953 else
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 fi ;;
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
959 *) # Relative path.
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962esac
963
964# Do not use `cd foo && pwd` to compute absolute paths, because
965# the directories may not exist.
966case `pwd` in
967.) ac_abs_builddir="$ac_dir";;
968*)
969 case "$ac_dir" in
970 .) ac_abs_builddir=`pwd`;;
971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
973 esac;;
974esac
975case $ac_abs_builddir in
976.) ac_abs_top_builddir=${ac_top_builddir}.;;
977*)
978 case ${ac_top_builddir}. in
979 .) ac_abs_top_builddir=$ac_abs_builddir;;
980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
982 esac;;
983esac
984case $ac_abs_builddir in
985.) ac_abs_srcdir=$ac_srcdir;;
986*)
987 case $ac_srcdir in
988 .) ac_abs_srcdir=$ac_abs_builddir;;
989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
991 esac;;
992esac
993case $ac_abs_builddir in
994.) ac_abs_top_srcdir=$ac_top_srcdir;;
995*)
996 case $ac_top_srcdir in
997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1000 esac;;
1001esac
1002
1003 cd $ac_dir
1004 # Check for guested configure; otherwise get Cygnus style configure.
1005 if test -f $ac_srcdir/configure.gnu; then
1006 echo
1007 $SHELL $ac_srcdir/configure.gnu --help=recursive
1008 elif test -f $ac_srcdir/configure; then
1009 echo
1010 $SHELL $ac_srcdir/configure --help=recursive
1011 elif test -f $ac_srcdir/configure.ac ||
1012 test -f $ac_srcdir/configure.in; then
1013 echo
1014 $ac_configure --help
1015 else
1016 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1017 fi
1018 cd $ac_popdir
1019 done
1020fi
1021
1022test -n "$ac_init_help" && exit 0
1023if $ac_init_version; then
1024 cat <<\_ACEOF
1025
1026Copyright (C) 2003 Free Software Foundation, Inc.
1027This configure script is free software; the Free Software Foundation
1028gives unlimited permission to copy, distribute and modify it.
1029_ACEOF
1030 exit 0
1031fi
1032exec 5>config.log
1033cat >&5 <<_ACEOF
1034This file contains any messages produced by compilers while
1035running configure, to aid debugging if configure makes a mistake.
1036
1037It was created by $as_me, which was
1038generated by GNU Autoconf 2.59. Invocation command line was
1039
1040 $ $0 $@
1041
1042_ACEOF
1043{
1044cat <<_ASUNAME
1045## --------- ##
1046## Platform. ##
1047## --------- ##
1048
1049hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1050uname -m = `(uname -m) 2>/dev/null || echo unknown`
1051uname -r = `(uname -r) 2>/dev/null || echo unknown`
1052uname -s = `(uname -s) 2>/dev/null || echo unknown`
1053uname -v = `(uname -v) 2>/dev/null || echo unknown`
1054
1055/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1056/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1057
1058/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1059/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1060/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1061hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1062/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1063/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1064/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1065
1066_ASUNAME
1067
1068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069for as_dir in $PATH
1070do
1071 IFS=$as_save_IFS
1072 test -z "$as_dir" && as_dir=.
1073 echo "PATH: $as_dir"
1074done
1075
1076} >&5
1077
1078cat >&5 <<_ACEOF
1079
1080
1081## ----------- ##
1082## Core tests. ##
1083## ----------- ##
1084
1085_ACEOF
1086
1087
1088# Keep a trace of the command line.
1089# Strip out --no-create and --no-recursion so they do not pile up.
1090# Strip out --silent because we don't want to record it for future runs.
1091# Also quote any args containing shell meta-characters.
1092# Make two passes to allow for proper duplicate-argument suppression.
1093ac_configure_args=
1094ac_configure_args0=
1095ac_configure_args1=
1096ac_sep=
1097ac_must_keep_next=false
1098for ac_pass in 1 2
1099do
1100 for ac_arg
1101 do
1102 case $ac_arg in
1103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 continue ;;
1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1109 esac
1110 case $ac_pass in
1111 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1112 2)
1113 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1114 if test $ac_must_keep_next = true; then
1115 ac_must_keep_next=false # Got value, back to normal.
1116 else
1117 case $ac_arg in
1118 *=* | --config-cache | -C | -disable-* | --disable-* \
1119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1121 | -with-* | --with-* | -without-* | --without-* | --x)
1122 case "$ac_configure_args0 " in
1123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1124 esac
1125 ;;
1126 -* ) ac_must_keep_next=true ;;
1127 esac
1128 fi
1129 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1130 # Get rid of the leading space.
1131 ac_sep=" "
1132 ;;
1133 esac
1134 done
1135done
1136$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1137$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1138
1139# When interrupted or exit'd, cleanup temporary files, and complete
1140# config.log. We remove comments because anyway the quotes in there
1141# would cause problems or look ugly.
1142# WARNING: Be sure not to use single quotes in there, as some shells,
1143# such as our DU 5.0 friend, will then `close' the trap.
1144trap 'exit_status=$?
1145 # Save into config.log some information that might help in debugging.
1146 {
1147 echo
1148
1149 cat <<\_ASBOX
1150## ---------------- ##
1151## Cache variables. ##
1152## ---------------- ##
1153_ASBOX
1154 echo
1155 # The following way of writing the cache mishandles newlines in values,
1156{
1157 (set) 2>&1 |
1158 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1159 *ac_space=\ *)
1160 sed -n \
1161 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163 ;;
1164 *)
1165 sed -n \
1166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167 ;;
1168 esac;
1169}
1170 echo
1171
1172 cat <<\_ASBOX
1173## ----------------- ##
1174## Output variables. ##
1175## ----------------- ##
1176_ASBOX
1177 echo
1178 for ac_var in $ac_subst_vars
1179 do
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1182 done | sort
1183 echo
1184
1185 if test -n "$ac_subst_files"; then
1186 cat <<\_ASBOX
1187## ------------- ##
1188## Output files. ##
1189## ------------- ##
1190_ASBOX
1191 echo
1192 for ac_var in $ac_subst_files
1193 do
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1196 done | sort
1197 echo
1198 fi
1199
1200 if test -s confdefs.h; then
1201 cat <<\_ASBOX
1202## ----------- ##
1203## confdefs.h. ##
1204## ----------- ##
1205_ASBOX
1206 echo
1207 sed "/^$/d" confdefs.h | sort
1208 echo
1209 fi
1210 test "$ac_signal" != 0 &&
1211 echo "$as_me: caught signal $ac_signal"
1212 echo "$as_me: exit $exit_status"
1213 } >&5
1214 rm -f core *.core &&
1215 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1216 exit $exit_status
1217 ' 0
1218for ac_signal in 1 2 13 15; do
1219 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1220done
1221ac_signal=0
1222
1223# confdefs.h avoids OS command line length limits that DEFS can exceed.
1224rm -rf conftest* confdefs.h
1225# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1226echo >confdefs.h
1227
1228# Predefined preprocessor variables.
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_NAME "$PACKAGE_NAME"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237_ACEOF
1238
1239
1240cat >>confdefs.h <<_ACEOF
1241#define PACKAGE_VERSION "$PACKAGE_VERSION"
1242_ACEOF
1243
1244
1245cat >>confdefs.h <<_ACEOF
1246#define PACKAGE_STRING "$PACKAGE_STRING"
1247_ACEOF
1248
1249
1250cat >>confdefs.h <<_ACEOF
1251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1252_ACEOF
1253
1254
1255# Let the site file select an alternate cache file if it wants to.
1256# Prefer explicitly selected file to automatically selected ones.
1257if test -z "$CONFIG_SITE"; then
1258 if test "x$prefix" != xNONE; then
1259 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1260 else
1261 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1262 fi
1263fi
1264for ac_site_file in $CONFIG_SITE; do
1265 if test -r "$ac_site_file"; then
1266 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1267echo "$as_me: loading site script $ac_site_file" >&6;}
1268 sed 's/^/| /' "$ac_site_file" >&5
1269 . "$ac_site_file"
1270 fi
1271done
1272
1273if test -r "$cache_file"; then
1274 # Some versions of bash will fail to source /dev/null (special
1275 # files actually), so we avoid doing that.
1276 if test -f "$cache_file"; then
1277 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1278echo "$as_me: loading cache $cache_file" >&6;}
1279 case $cache_file in
1280 [\\/]* | ?:[\\/]* ) . $cache_file;;
1281 *) . ./$cache_file;;
1282 esac
1283 fi
1284else
1285 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1286echo "$as_me: creating cache $cache_file" >&6;}
1287 >$cache_file
1288fi
1289
1290# Check that the precious variables saved in the cache have kept the same
1291# value.
1292ac_cache_corrupted=false
1293for ac_var in `(set) 2>&1 |
1294 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1296 eval ac_new_set=\$ac_env_${ac_var}_set
1297 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1298 eval ac_new_val="\$ac_env_${ac_var}_value"
1299 case $ac_old_set,$ac_new_set in
1300 set,)
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1302echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1304 ,set)
1305 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1306echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1307 ac_cache_corrupted=: ;;
1308 ,);;
1309 *)
1310 if test "x$ac_old_val" != "x$ac_new_val"; then
1311 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1312echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1313 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1314echo "$as_me: former value: $ac_old_val" >&2;}
1315 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1316echo "$as_me: current value: $ac_new_val" >&2;}
1317 ac_cache_corrupted=:
1318 fi;;
1319 esac
1320 # Pass precious variables to config.status.
1321 if test "$ac_new_set" = set; then
1322 case $ac_new_val in
1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1325 *) ac_arg=$ac_var=$ac_new_val ;;
1326 esac
1327 case " $ac_configure_args " in
1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1329 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330 esac
1331 fi
1332done
1333if $ac_cache_corrupted; then
1334 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1335echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1336 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1337echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1338 { (exit 1); exit 1; }; }
1339fi
1340
1341ac_ext=c
1342ac_cpp='$CPP $CPPFLAGS'
1343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1345ac_compiler_gnu=$ac_cv_c_compiler_gnu
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1367
1368
955
956Use these variables to override the choices made by `configure' or to help
957it to find libraries and programs with nonstandard names/locations.
958
959_ACEOF
960fi
961
962if test "$ac_init_help" = "recursive"; then
963 # If there are subdirs, report their specific --help.
964 ac_popdir=`pwd`
965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966 test -d $ac_dir || continue
967 ac_builddir=.
968
969if test "$ac_dir" != .; then
970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
971 # A "../" for each directory in $ac_dir_suffix.
972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
973else
974 ac_dir_suffix= ac_top_builddir=
975fi
976
977case $srcdir in
978 .) # No --srcdir option. We are building in place.
979 ac_srcdir=.
980 if test -z "$ac_top_builddir"; then
981 ac_top_srcdir=.
982 else
983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
984 fi ;;
985 [\\/]* | ?:[\\/]* ) # Absolute path.
986 ac_srcdir=$srcdir$ac_dir_suffix;
987 ac_top_srcdir=$srcdir ;;
988 *) # Relative path.
989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
991esac
992
993# Do not use `cd foo && pwd` to compute absolute paths, because
994# the directories may not exist.
995case `pwd` in
996.) ac_abs_builddir="$ac_dir";;
997*)
998 case "$ac_dir" in
999 .) ac_abs_builddir=`pwd`;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1002 esac;;
1003esac
1004case $ac_abs_builddir in
1005.) ac_abs_top_builddir=${ac_top_builddir}.;;
1006*)
1007 case ${ac_top_builddir}. in
1008 .) ac_abs_top_builddir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1011 esac;;
1012esac
1013case $ac_abs_builddir in
1014.) ac_abs_srcdir=$ac_srcdir;;
1015*)
1016 case $ac_srcdir in
1017 .) ac_abs_srcdir=$ac_abs_builddir;;
1018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1020 esac;;
1021esac
1022case $ac_abs_builddir in
1023.) ac_abs_top_srcdir=$ac_top_srcdir;;
1024*)
1025 case $ac_top_srcdir in
1026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1029 esac;;
1030esac
1031
1032 cd $ac_dir
1033 # Check for guested configure; otherwise get Cygnus style configure.
1034 if test -f $ac_srcdir/configure.gnu; then
1035 echo
1036 $SHELL $ac_srcdir/configure.gnu --help=recursive
1037 elif test -f $ac_srcdir/configure; then
1038 echo
1039 $SHELL $ac_srcdir/configure --help=recursive
1040 elif test -f $ac_srcdir/configure.ac ||
1041 test -f $ac_srcdir/configure.in; then
1042 echo
1043 $ac_configure --help
1044 else
1045 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046 fi
1047 cd $ac_popdir
1048 done
1049fi
1050
1051test -n "$ac_init_help" && exit 0
1052if $ac_init_version; then
1053 cat <<\_ACEOF
1054
1055Copyright (C) 2003 Free Software Foundation, Inc.
1056This configure script is free software; the Free Software Foundation
1057gives unlimited permission to copy, distribute and modify it.
1058_ACEOF
1059 exit 0
1060fi
1061exec 5>config.log
1062cat >&5 <<_ACEOF
1063This file contains any messages produced by compilers while
1064running configure, to aid debugging if configure makes a mistake.
1065
1066It was created by $as_me, which was
1067generated by GNU Autoconf 2.59. Invocation command line was
1068
1069 $ $0 $@
1070
1071_ACEOF
1072{
1073cat <<_ASUNAME
1074## --------- ##
1075## Platform. ##
1076## --------- ##
1077
1078hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1079uname -m = `(uname -m) 2>/dev/null || echo unknown`
1080uname -r = `(uname -r) 2>/dev/null || echo unknown`
1081uname -s = `(uname -s) 2>/dev/null || echo unknown`
1082uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083
1084/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1085/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1086
1087/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1088/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1089/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1090hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1091/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1092/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1093/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1094
1095_ASUNAME
1096
1097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1098for as_dir in $PATH
1099do
1100 IFS=$as_save_IFS
1101 test -z "$as_dir" && as_dir=.
1102 echo "PATH: $as_dir"
1103done
1104
1105} >&5
1106
1107cat >&5 <<_ACEOF
1108
1109
1110## ----------- ##
1111## Core tests. ##
1112## ----------- ##
1113
1114_ACEOF
1115
1116
1117# Keep a trace of the command line.
1118# Strip out --no-create and --no-recursion so they do not pile up.
1119# Strip out --silent because we don't want to record it for future runs.
1120# Also quote any args containing shell meta-characters.
1121# Make two passes to allow for proper duplicate-argument suppression.
1122ac_configure_args=
1123ac_configure_args0=
1124ac_configure_args1=
1125ac_sep=
1126ac_must_keep_next=false
1127for ac_pass in 1 2
1128do
1129 for ac_arg
1130 do
1131 case $ac_arg in
1132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 continue ;;
1136 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1138 esac
1139 case $ac_pass in
1140 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 2)
1142 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143 if test $ac_must_keep_next = true; then
1144 ac_must_keep_next=false # Got value, back to normal.
1145 else
1146 case $ac_arg in
1147 *=* | --config-cache | -C | -disable-* | --disable-* \
1148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150 | -with-* | --with-* | -without-* | --without-* | --x)
1151 case "$ac_configure_args0 " in
1152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1153 esac
1154 ;;
1155 -* ) ac_must_keep_next=true ;;
1156 esac
1157 fi
1158 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159 # Get rid of the leading space.
1160 ac_sep=" "
1161 ;;
1162 esac
1163 done
1164done
1165$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167
1168# When interrupted or exit'd, cleanup temporary files, and complete
1169# config.log. We remove comments because anyway the quotes in there
1170# would cause problems or look ugly.
1171# WARNING: Be sure not to use single quotes in there, as some shells,
1172# such as our DU 5.0 friend, will then `close' the trap.
1173trap 'exit_status=$?
1174 # Save into config.log some information that might help in debugging.
1175 {
1176 echo
1177
1178 cat <<\_ASBOX
1179## ---------------- ##
1180## Cache variables. ##
1181## ---------------- ##
1182_ASBOX
1183 echo
1184 # The following way of writing the cache mishandles newlines in values,
1185{
1186 (set) 2>&1 |
1187 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1188 *ac_space=\ *)
1189 sed -n \
1190 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1192 ;;
1193 *)
1194 sed -n \
1195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196 ;;
1197 esac;
1198}
1199 echo
1200
1201 cat <<\_ASBOX
1202## ----------------- ##
1203## Output variables. ##
1204## ----------------- ##
1205_ASBOX
1206 echo
1207 for ac_var in $ac_subst_vars
1208 do
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1211 done | sort
1212 echo
1213
1214 if test -n "$ac_subst_files"; then
1215 cat <<\_ASBOX
1216## ------------- ##
1217## Output files. ##
1218## ------------- ##
1219_ASBOX
1220 echo
1221 for ac_var in $ac_subst_files
1222 do
1223 eval ac_val=$`echo $ac_var`
1224 echo "$ac_var='"'"'$ac_val'"'"'"
1225 done | sort
1226 echo
1227 fi
1228
1229 if test -s confdefs.h; then
1230 cat <<\_ASBOX
1231## ----------- ##
1232## confdefs.h. ##
1233## ----------- ##
1234_ASBOX
1235 echo
1236 sed "/^$/d" confdefs.h | sort
1237 echo
1238 fi
1239 test "$ac_signal" != 0 &&
1240 echo "$as_me: caught signal $ac_signal"
1241 echo "$as_me: exit $exit_status"
1242 } >&5
1243 rm -f core *.core &&
1244 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1245 exit $exit_status
1246 ' 0
1247for ac_signal in 1 2 13 15; do
1248 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1249done
1250ac_signal=0
1251
1252# confdefs.h avoids OS command line length limits that DEFS can exceed.
1253rm -rf conftest* confdefs.h
1254# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1255echo >confdefs.h
1256
1257# Predefined preprocessor variables.
1258
1259cat >>confdefs.h <<_ACEOF
1260#define PACKAGE_NAME "$PACKAGE_NAME"
1261_ACEOF
1262
1263
1264cat >>confdefs.h <<_ACEOF
1265#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1266_ACEOF
1267
1268
1269cat >>confdefs.h <<_ACEOF
1270#define PACKAGE_VERSION "$PACKAGE_VERSION"
1271_ACEOF
1272
1273
1274cat >>confdefs.h <<_ACEOF
1275#define PACKAGE_STRING "$PACKAGE_STRING"
1276_ACEOF
1277
1278
1279cat >>confdefs.h <<_ACEOF
1280#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1281_ACEOF
1282
1283
1284# Let the site file select an alternate cache file if it wants to.
1285# Prefer explicitly selected file to automatically selected ones.
1286if test -z "$CONFIG_SITE"; then
1287 if test "x$prefix" != xNONE; then
1288 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289 else
1290 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1291 fi
1292fi
1293for ac_site_file in $CONFIG_SITE; do
1294 if test -r "$ac_site_file"; then
1295 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296echo "$as_me: loading site script $ac_site_file" >&6;}
1297 sed 's/^/| /' "$ac_site_file" >&5
1298 . "$ac_site_file"
1299 fi
1300done
1301
1302if test -r "$cache_file"; then
1303 # Some versions of bash will fail to source /dev/null (special
1304 # files actually), so we avoid doing that.
1305 if test -f "$cache_file"; then
1306 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307echo "$as_me: loading cache $cache_file" >&6;}
1308 case $cache_file in
1309 [\\/]* | ?:[\\/]* ) . $cache_file;;
1310 *) . ./$cache_file;;
1311 esac
1312 fi
1313else
1314 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315echo "$as_me: creating cache $cache_file" >&6;}
1316 >$cache_file
1317fi
1318
1319# Check that the precious variables saved in the cache have kept the same
1320# value.
1321ac_cache_corrupted=false
1322for ac_var in `(set) 2>&1 |
1323 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325 eval ac_new_set=\$ac_env_${ac_var}_set
1326 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327 eval ac_new_val="\$ac_env_${ac_var}_value"
1328 case $ac_old_set,$ac_new_set in
1329 set,)
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332 ac_cache_corrupted=: ;;
1333 ,set)
1334 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1337 ,);;
1338 *)
1339 if test "x$ac_old_val" != "x$ac_new_val"; then
1340 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1343echo "$as_me: former value: $ac_old_val" >&2;}
1344 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1345echo "$as_me: current value: $ac_new_val" >&2;}
1346 ac_cache_corrupted=:
1347 fi;;
1348 esac
1349 # Pass precious variables to config.status.
1350 if test "$ac_new_set" = set; then
1351 case $ac_new_val in
1352 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354 *) ac_arg=$ac_var=$ac_new_val ;;
1355 esac
1356 case " $ac_configure_args " in
1357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1358 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1359 esac
1360 fi
1361done
1362if $ac_cache_corrupted; then
1363 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367 { (exit 1); exit 1; }; }
1368fi
1369
1370ac_ext=c
1371ac_cpp='$CPP $CPPFLAGS'
1372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1396
1397
1398gcc_version=`cat $srcdir/BASE-VER`
1399
1369# Determine the host, build, and target systems
1370ac_aux_dir=
1371for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372 if test -f $ac_dir/install-sh; then
1373 ac_aux_dir=$ac_dir
1374 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 break
1376 elif test -f $ac_dir/install.sh; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/install.sh -c"
1379 break
1380 elif test -f $ac_dir/shtool; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 break
1384 fi
1385done
1386if test -z "$ac_aux_dir"; then
1387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389 { (exit 1); exit 1; }; }
1390fi
1391ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394
1395# Make sure we can run config.sub.
1396$ac_config_sub sun4 >/dev/null 2>&1 ||
1397 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1400
1401echo "$as_me:$LINENO: checking build system type" >&5
1402echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 ac_cv_build_alias=$build_alias
1407test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias=`$ac_config_guess`
1409test -z "$ac_cv_build_alias" &&
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
1413ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420echo "${ECHO_T}$ac_cv_build" >&6
1421build=$ac_cv_build
1422build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427echo "$as_me:$LINENO: checking host system type" >&5
1428echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429if test "${ac_cv_host+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431else
1432 ac_cv_host_alias=$host_alias
1433test -z "$ac_cv_host_alias" &&
1434 ac_cv_host_alias=$ac_cv_build_alias
1435ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1439
1440fi
1441echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442echo "${ECHO_T}$ac_cv_host" >&6
1443host=$ac_cv_host
1444host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449echo "$as_me:$LINENO: checking target system type" >&5
1450echo $ECHO_N "checking target system type... $ECHO_C" >&6
1451if test "${ac_cv_target+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453else
1454 ac_cv_target_alias=$target_alias
1455test "x$ac_cv_target_alias" = "x" &&
1456 ac_cv_target_alias=$ac_cv_host_alias
1457ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1458 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1459echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1460 { (exit 1); exit 1; }; }
1461
1462fi
1463echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1464echo "${ECHO_T}$ac_cv_target" >&6
1465target=$ac_cv_target
1466target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469
1470
1471# The aliases save the names the user supplied, while $host etc.
1472# will get canonicalized.
1473test -n "$target_alias" &&
1474 test "$program_prefix$program_suffix$program_transform_name" = \
1475 NONENONEs,x,x, &&
1476 program_prefix=${target_alias}-
1477
1478# Determine the noncanonical target name, for directory use.
1479 case ${build_alias} in
1480 "") build_noncanonical=${build} ;;
1481 *) build_noncanonical=${build_alias} ;;
1482esac
1483
1484 case ${host_alias} in
1485 "") host_noncanonical=${build_noncanonical} ;;
1486 *) host_noncanonical=${host_alias} ;;
1487esac
1488
1489 case ${target_alias} in
1490 "") target_noncanonical=${host_noncanonical} ;;
1491 *) target_noncanonical=${target_alias} ;;
1492esac
1493
1494
1400# Determine the host, build, and target systems
1401ac_aux_dir=
1402for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1403 if test -f $ac_dir/install-sh; then
1404 ac_aux_dir=$ac_dir
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1406 break
1407 elif test -f $ac_dir/install.sh; then
1408 ac_aux_dir=$ac_dir
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1410 break
1411 elif test -f $ac_dir/shtool; then
1412 ac_aux_dir=$ac_dir
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1414 break
1415 fi
1416done
1417if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1419echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1420 { (exit 1); exit 1; }; }
1421fi
1422ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425
1426# Make sure we can run config.sub.
1427$ac_config_sub sun4 >/dev/null 2>&1 ||
1428 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1429echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1430 { (exit 1); exit 1; }; }
1431
1432echo "$as_me:$LINENO: checking build system type" >&5
1433echo $ECHO_N "checking build system type... $ECHO_C" >&6
1434if test "${ac_cv_build+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436else
1437 ac_cv_build_alias=$build_alias
1438test -z "$ac_cv_build_alias" &&
1439 ac_cv_build_alias=`$ac_config_guess`
1440test -z "$ac_cv_build_alias" &&
1441 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1442echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1443 { (exit 1); exit 1; }; }
1444ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1446echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
1448
1449fi
1450echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1451echo "${ECHO_T}$ac_cv_build" >&6
1452build=$ac_cv_build
1453build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1454build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1455build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456
1457
1458echo "$as_me:$LINENO: checking host system type" >&5
1459echo $ECHO_N "checking host system type... $ECHO_C" >&6
1460if test "${ac_cv_host+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462else
1463 ac_cv_host_alias=$host_alias
1464test -z "$ac_cv_host_alias" &&
1465 ac_cv_host_alias=$ac_cv_build_alias
1466ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1468echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1469 { (exit 1); exit 1; }; }
1470
1471fi
1472echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1473echo "${ECHO_T}$ac_cv_host" >&6
1474host=$ac_cv_host
1475host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1476host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1477host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1478
1479
1480echo "$as_me:$LINENO: checking target system type" >&5
1481echo $ECHO_N "checking target system type... $ECHO_C" >&6
1482if test "${ac_cv_target+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485 ac_cv_target_alias=$target_alias
1486test "x$ac_cv_target_alias" = "x" &&
1487 ac_cv_target_alias=$ac_cv_host_alias
1488ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1490echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1491 { (exit 1); exit 1; }; }
1492
1493fi
1494echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1495echo "${ECHO_T}$ac_cv_target" >&6
1496target=$ac_cv_target
1497target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1500
1501
1502# The aliases save the names the user supplied, while $host etc.
1503# will get canonicalized.
1504test -n "$target_alias" &&
1505 test "$program_prefix$program_suffix$program_transform_name" = \
1506 NONENONEs,x,x, &&
1507 program_prefix=${target_alias}-
1508
1509# Determine the noncanonical target name, for directory use.
1510 case ${build_alias} in
1511 "") build_noncanonical=${build} ;;
1512 *) build_noncanonical=${build_alias} ;;
1513esac
1514
1515 case ${host_alias} in
1516 "") host_noncanonical=${build_noncanonical} ;;
1517 *) host_noncanonical=${host_alias} ;;
1518esac
1519
1520 case ${target_alias} in
1521 "") target_noncanonical=${host_noncanonical} ;;
1522 *) target_noncanonical=${target_alias} ;;
1523esac
1524
1525
1526
1527
1495# Determine the target- and build-specific subdirectories
1528# Determine the target- and build-specific subdirectories
1496 # Prefix 'build-' so this never conflicts with target_subdir.
1529
1530# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1531# have matching libraries, they should use host libraries: Makefile.tpl
1532# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1533# However, they still use the build modules, because the corresponding
1534# host modules (e.g. bison) are only built for the host when bootstrap
1535# finishes. So:
1536# - build_subdir is where we find build modules, and never changes.
1537# - build_libsubdir is where we find build libraries, and can be overridden.
1538
1539# Prefix 'build-' so this never conflicts with target_subdir.
1497build_subdir="build-${build_noncanonical}"
1540build_subdir="build-${build_noncanonical}"
1498# Not really a subdirectory, but here for completeness.
1499host_subdir=.
1541
1542# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1543if test "${with_build_libsubdir+set}" = set; then
1544 withval="$with_build_libsubdir"
1545 build_libsubdir="$withval"
1546else
1547 build_libsubdir="$build_subdir"
1548fi;
1549# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1550if ( test $srcdir = . && test -d gcc ) \
1551 || test -d $srcdir/../host-${host_noncanonical}; then
1552 host_subdir="host-${host_noncanonical}"
1553else
1554 host_subdir=.
1555fi
1500# No prefix.
1501target_subdir=${target_noncanonical}
1502
1503
1504# Set program_transform_name
1505test "$program_prefix" != NONE &&
1506 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1507# Use a double $ so make ignores it.
1508test "$program_suffix" != NONE &&
1509 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1510# Double any \ or $. echo might interpret backslashes.
1511# By default was `s,x,x', remove it if useless.
1512cat <<\_ACEOF >conftest.sed
1513s/[\\$]/&&/g;s/;s,x,x,$//
1514_ACEOF
1515program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1516rm conftest.sed
1517
1518
1519# Check for bogus environment variables.
1520# Test if LIBRARY_PATH contains the notation for the current directory
1521# since this would lead to problems installing/building glibc.
1522# LIBRARY_PATH contains the current directory if one of the following
1523# is true:
1524# - one of the terminals (":" and ";") is the first or last sign
1525# - two terminals occur directly after each other
1526# - the path contains an element with a dot in it
1527echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1528echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1529case ${LIBRARY_PATH} in
1530 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1531 library_path_setting="contains current directory"
1532 ;;
1533 *)
1534 library_path_setting="ok"
1535 ;;
1536esac
1537echo "$as_me:$LINENO: result: $library_path_setting" >&5
1538echo "${ECHO_T}$library_path_setting" >&6
1539if test "$library_path_setting" != "ok"; then
1540{ { echo "$as_me:$LINENO: error:
1541*** LIBRARY_PATH shouldn't contain the current directory when
1542*** building gcc. Please change the environment variable
1543*** and run configure again." >&5
1544echo "$as_me: error:
1545*** LIBRARY_PATH shouldn't contain the current directory when
1546*** building gcc. Please change the environment variable
1547*** and run configure again." >&2;}
1548 { (exit 1); exit 1; }; }
1549fi
1550
1551# Test if GCC_EXEC_PREFIX contains the notation for the current directory
1552# since this would lead to problems installing/building glibc.
1553# GCC_EXEC_PREFIX contains the current directory if one of the following
1554# is true:
1555# - one of the terminals (":" and ";") is the first or last sign
1556# - two terminals occur directly after each other
1557# - the path contains an element with a dot in it
1558echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1559echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1560case ${GCC_EXEC_PREFIX} in
1561 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1562 gcc_exec_prefix_setting="contains current directory"
1563 ;;
1564 *)
1565 gcc_exec_prefix_setting="ok"
1566 ;;
1567esac
1568echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1569echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1570if test "$gcc_exec_prefix_setting" != "ok"; then
1571{ { echo "$as_me:$LINENO: error:
1572*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1573*** building gcc. Please change the environment variable
1574*** and run configure again." >&5
1575echo "$as_me: error:
1576*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1577*** building gcc. Please change the environment variable
1578*** and run configure again." >&2;}
1579 { (exit 1); exit 1; }; }
1580fi
1581
1582# -----------
1583# Directories
1584# -----------
1585
1586# Specify the local prefix
1587local_prefix=
1588
1589# Check whether --with-local-prefix or --without-local-prefix was given.
1590if test "${with_local_prefix+set}" = set; then
1591 withval="$with_local_prefix"
1592 case "${withval}" in
1593yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1594echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1595 { (exit 1); exit 1; }; } ;;
1596no) ;;
1597*) local_prefix=$with_local_prefix ;;
1598esac
1599fi;
1600
1601# Default local prefix if it is empty
1602if test x$local_prefix = x; then
1603 local_prefix=/usr/local
1604fi
1605
1606# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1607# passed in by the toplevel make and thus we'd get different behavior
1608# depending on where we built the sources.
1609gcc_gxx_include_dir=
1610# Specify the g++ header file directory
1611
1612# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1613if test "${with_gxx_include_dir+set}" = set; then
1614 withval="$with_gxx_include_dir"
1615 case "${withval}" in
1616yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1617echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1618 { (exit 1); exit 1; }; } ;;
1619no) ;;
1620*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1621esac
1622fi;
1623
1556# No prefix.
1557target_subdir=${target_noncanonical}
1558
1559
1560# Set program_transform_name
1561test "$program_prefix" != NONE &&
1562 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1563# Use a double $ so make ignores it.
1564test "$program_suffix" != NONE &&
1565 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1566# Double any \ or $. echo might interpret backslashes.
1567# By default was `s,x,x', remove it if useless.
1568cat <<\_ACEOF >conftest.sed
1569s/[\\$]/&&/g;s/;s,x,x,$//
1570_ACEOF
1571program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1572rm conftest.sed
1573
1574
1575# Check for bogus environment variables.
1576# Test if LIBRARY_PATH contains the notation for the current directory
1577# since this would lead to problems installing/building glibc.
1578# LIBRARY_PATH contains the current directory if one of the following
1579# is true:
1580# - one of the terminals (":" and ";") is the first or last sign
1581# - two terminals occur directly after each other
1582# - the path contains an element with a dot in it
1583echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1584echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1585case ${LIBRARY_PATH} in
1586 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1587 library_path_setting="contains current directory"
1588 ;;
1589 *)
1590 library_path_setting="ok"
1591 ;;
1592esac
1593echo "$as_me:$LINENO: result: $library_path_setting" >&5
1594echo "${ECHO_T}$library_path_setting" >&6
1595if test "$library_path_setting" != "ok"; then
1596{ { echo "$as_me:$LINENO: error:
1597*** LIBRARY_PATH shouldn't contain the current directory when
1598*** building gcc. Please change the environment variable
1599*** and run configure again." >&5
1600echo "$as_me: error:
1601*** LIBRARY_PATH shouldn't contain the current directory when
1602*** building gcc. Please change the environment variable
1603*** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1605fi
1606
1607# Test if GCC_EXEC_PREFIX contains the notation for the current directory
1608# since this would lead to problems installing/building glibc.
1609# GCC_EXEC_PREFIX contains the current directory if one of the following
1610# is true:
1611# - one of the terminals (":" and ";") is the first or last sign
1612# - two terminals occur directly after each other
1613# - the path contains an element with a dot in it
1614echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1615echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1616case ${GCC_EXEC_PREFIX} in
1617 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1618 gcc_exec_prefix_setting="contains current directory"
1619 ;;
1620 *)
1621 gcc_exec_prefix_setting="ok"
1622 ;;
1623esac
1624echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1625echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1626if test "$gcc_exec_prefix_setting" != "ok"; then
1627{ { echo "$as_me:$LINENO: error:
1628*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1629*** building gcc. Please change the environment variable
1630*** and run configure again." >&5
1631echo "$as_me: error:
1632*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633*** building gcc. Please change the environment variable
1634*** and run configure again." >&2;}
1635 { (exit 1); exit 1; }; }
1636fi
1637
1638# -----------
1639# Directories
1640# -----------
1641
1642# Specify the local prefix
1643local_prefix=
1644
1645# Check whether --with-local-prefix or --without-local-prefix was given.
1646if test "${with_local_prefix+set}" = set; then
1647 withval="$with_local_prefix"
1648 case "${withval}" in
1649yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1650echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1651 { (exit 1); exit 1; }; } ;;
1652no) ;;
1653*) local_prefix=$with_local_prefix ;;
1654esac
1655fi;
1656
1657# Default local prefix if it is empty
1658if test x$local_prefix = x; then
1659 local_prefix=/usr/local
1660fi
1661
1662# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1663# passed in by the toplevel make and thus we'd get different behavior
1664# depending on where we built the sources.
1665gcc_gxx_include_dir=
1666# Specify the g++ header file directory
1667
1668# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1669if test "${with_gxx_include_dir+set}" = set; then
1670 withval="$with_gxx_include_dir"
1671 case "${withval}" in
1672yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1673echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1674 { (exit 1); exit 1; }; } ;;
1675no) ;;
1676*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1677esac
1678fi;
1679
1680# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1624if test x${gcc_gxx_include_dir} = x; then
1625 if test x${enable_version_specific_runtime_libs} = xyes; then
1626 gcc_gxx_include_dir='${libsubdir}/include/c++'
1627 else
1681if test x${gcc_gxx_include_dir} = x; then
1682 if test x${enable_version_specific_runtime_libs} = xyes; then
1683 gcc_gxx_include_dir='${libsubdir}/include/c++'
1684 else
1628 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1629 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1685 libstdcxx_incdir='include/c++/$(version)'
1686 if test x$host != x$target; then
1687 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1688 fi
1689 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1630 fi
1631fi
1632
1633
1634# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1635if test "${with_cpp_install_dir+set}" = set; then
1636 withval="$with_cpp_install_dir"
1637 if test x$withval = xyes; then
1638 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1639echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1640 { (exit 1); exit 1; }; }
1641elif test x$withval != xno; then
1642 cpp_install_dir=$withval
1643fi
1644fi;
1645
1646# We would like to our source tree to be readonly. However when releases or
1647# pre-releases are generated, the flex/bison generated files as well as the
1648# various formats of manuals need to be included along with the rest of the
1649# sources. Therefore we have --enable-generated-files-in-srcdir to do
1650# just that.
1651
1652echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1653echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1654 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1655if test "${enable_generated_files_in_srcdir+set}" = set; then
1656 enableval="$enable_generated_files_in_srcdir"
1657 generated_files_in_srcdir=$enableval
1658else
1659 generated_files_in_srcdir=no
1660fi;
1661
1662echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1663echo "${ECHO_T}$generated_files_in_srcdir" >&6
1664
1665if test "$generated_files_in_srcdir" = "yes"; then
1666 GENINSRC=''
1667else
1668 GENINSRC='#'
1669fi
1670
1671
1672# -------------------
1673# Find default linker
1674# -------------------
1675
1676# With GNU ld
1677
1678# Check whether --with-gnu-ld or --without-gnu-ld was given.
1679if test "${with_gnu_ld+set}" = set; then
1680 withval="$with_gnu_ld"
1681 gnu_ld_flag="$with_gnu_ld"
1682else
1683 gnu_ld_flag=no
1684fi;
1685
1686# With pre-defined ld
1687
1688# Check whether --with-ld or --without-ld was given.
1689if test "${with_ld+set}" = set; then
1690 withval="$with_ld"
1691 DEFAULT_LINKER="$with_ld"
1692fi;
1693if test x"${DEFAULT_LINKER+set}" = x"set"; then
1694 if test ! -x "$DEFAULT_LINKER"; then
1690 fi
1691fi
1692
1693
1694# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1695if test "${with_cpp_install_dir+set}" = set; then
1696 withval="$with_cpp_install_dir"
1697 if test x$withval = xyes; then
1698 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1699echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1700 { (exit 1); exit 1; }; }
1701elif test x$withval != xno; then
1702 cpp_install_dir=$withval
1703fi
1704fi;
1705
1706# We would like to our source tree to be readonly. However when releases or
1707# pre-releases are generated, the flex/bison generated files as well as the
1708# various formats of manuals need to be included along with the rest of the
1709# sources. Therefore we have --enable-generated-files-in-srcdir to do
1710# just that.
1711
1712echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1713echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1714 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1715if test "${enable_generated_files_in_srcdir+set}" = set; then
1716 enableval="$enable_generated_files_in_srcdir"
1717 generated_files_in_srcdir=$enableval
1718else
1719 generated_files_in_srcdir=no
1720fi;
1721
1722echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1723echo "${ECHO_T}$generated_files_in_srcdir" >&6
1724
1725if test "$generated_files_in_srcdir" = "yes"; then
1726 GENINSRC=''
1727else
1728 GENINSRC='#'
1729fi
1730
1731
1732# -------------------
1733# Find default linker
1734# -------------------
1735
1736# With GNU ld
1737
1738# Check whether --with-gnu-ld or --without-gnu-ld was given.
1739if test "${with_gnu_ld+set}" = set; then
1740 withval="$with_gnu_ld"
1741 gnu_ld_flag="$with_gnu_ld"
1742else
1743 gnu_ld_flag=no
1744fi;
1745
1746# With pre-defined ld
1747
1748# Check whether --with-ld or --without-ld was given.
1749if test "${with_ld+set}" = set; then
1750 withval="$with_ld"
1751 DEFAULT_LINKER="$with_ld"
1752fi;
1753if test x"${DEFAULT_LINKER+set}" = x"set"; then
1754 if test ! -x "$DEFAULT_LINKER"; then
1695 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1696echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1755 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1756echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1757 { (exit 1); exit 1; }; }
1697 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1698 gnu_ld_flag=yes
1699 fi
1700
1701cat >>confdefs.h <<_ACEOF
1702#define DEFAULT_LINKER "$DEFAULT_LINKER"
1703_ACEOF
1704
1705fi
1706
1707echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1708echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1709if test x"${DEFAULT_LINKER+set}" = x"set"; then
1710 if test x"$gnu_ld_flag" = x"no"; then
1711 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1712echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1713 else
1714 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1715echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1716 fi
1717else
1718 echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1758 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1759 gnu_ld_flag=yes
1760 fi
1761
1762cat >>confdefs.h <<_ACEOF
1763#define DEFAULT_LINKER "$DEFAULT_LINKER"
1764_ACEOF
1765
1766fi
1767
1768echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1769echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1770if test x"${DEFAULT_LINKER+set}" = x"set"; then
1771 if test x"$gnu_ld_flag" = x"no"; then
1772 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1773echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1774 else
1775 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1776echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1777 fi
1778else
1779 echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
1781fi
1782
1783# With demangler in GNU ld
1784
1785# Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1786if test "${with_demangler_in_ld+set}" = set; then
1787 withval="$with_demangler_in_ld"
1788 demangler_in_ld="$with_demangler_in_ld"
1789else
1790 demangler_in_ld=no
1791fi;
1792
1722# ----------------------
1723# Find default assembler
1724# ----------------------
1725
1726# With GNU as
1727
1728# Check whether --with-gnu-as or --without-gnu-as was given.
1729if test "${with_gnu_as+set}" = set; then
1730 withval="$with_gnu_as"
1731 gas_flag="$with_gnu_as"
1732else
1733 gas_flag=no
1734fi;
1735
1736
1737# Check whether --with-as or --without-as was given.
1738if test "${with_as+set}" = set; then
1739 withval="$with_as"
1740 DEFAULT_ASSEMBLER="$with_as"
1741fi;
1742if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1743 if test ! -x "$DEFAULT_ASSEMBLER"; then
1793# ----------------------
1794# Find default assembler
1795# ----------------------
1796
1797# With GNU as
1798
1799# Check whether --with-gnu-as or --without-gnu-as was given.
1800if test "${with_gnu_as+set}" = set; then
1801 withval="$with_gnu_as"
1802 gas_flag="$with_gnu_as"
1803else
1804 gas_flag=no
1805fi;
1806
1807
1808# Check whether --with-as or --without-as was given.
1809if test "${with_as+set}" = set; then
1810 withval="$with_as"
1811 DEFAULT_ASSEMBLER="$with_as"
1812fi;
1813if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1814 if test ! -x "$DEFAULT_ASSEMBLER"; then
1744 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1745echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1815 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1816echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1817 { (exit 1); exit 1; }; }
1746 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1747 gas_flag=yes
1748 fi
1749
1750cat >>confdefs.h <<_ACEOF
1751#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1752_ACEOF
1753
1754fi
1755
1756echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1757echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1758if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1759 if test x"$gas_flag" = x"no"; then
1760 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1761echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1762 else
1763 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1764echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1765 fi
1766else
1767 echo "$as_me:$LINENO: result: no" >&5
1768echo "${ECHO_T}no" >&6
1769fi
1770
1771# ---------------
1772# Find C compiler
1773# ---------------
1774
1775# If a non-executable a.out is present (e.g. created by GNU as above even if
1776# invoked with -v only), the IRIX 6 native ld just overwrites the existing
1777# file, even when creating an executable, so an execution test fails.
1778# Remove possible default executable files to avoid this.
1779#
1780# FIXME: This really belongs into AC_PROG_CC and can be removed once
1781# Autoconf includes it.
1782rm -f a.out a.exe b.out
1783
1784# Find the native compiler
1785ac_ext=c
1786ac_cpp='$CPP $CPPFLAGS'
1787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790if test -n "$ac_tool_prefix"; then
1791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1792set dummy ${ac_tool_prefix}gcc; ac_word=$2
1793echo "$as_me:$LINENO: checking for $ac_word" >&5
1794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795if test "${ac_cv_prog_CC+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798 if test -n "$CC"; then
1799 ac_cv_prog_CC="$CC" # Let the user override the test.
1800else
1801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802for as_dir in $PATH
1803do
1804 IFS=$as_save_IFS
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 break 2
1811 fi
1812done
1813done
1814
1815fi
1816fi
1817CC=$ac_cv_prog_CC
1818if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820echo "${ECHO_T}$CC" >&6
1821else
1822 echo "$as_me:$LINENO: result: no" >&5
1823echo "${ECHO_T}no" >&6
1824fi
1825
1826fi
1827if test -z "$ac_cv_prog_CC"; then
1828 ac_ct_CC=$CC
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830set dummy gcc; ac_word=$2
1831echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838else
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_ac_ct_CC="gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1849 fi
1850done
1851done
1852
1853fi
1854fi
1855ac_ct_CC=$ac_cv_prog_ac_ct_CC
1856if test -n "$ac_ct_CC"; then
1857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1858echo "${ECHO_T}$ac_ct_CC" >&6
1859else
1860 echo "$as_me:$LINENO: result: no" >&5
1861echo "${ECHO_T}no" >&6
1862fi
1863
1864 CC=$ac_ct_CC
1865else
1866 CC="$ac_cv_prog_CC"
1867fi
1868
1869if test -z "$CC"; then
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1872set dummy ${ac_tool_prefix}cc; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_CC="${ac_tool_prefix}cc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1891 fi
1892done
1893done
1894
1895fi
1896fi
1897CC=$ac_cv_prog_CC
1898if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900echo "${ECHO_T}$CC" >&6
1901else
1902 echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906fi
1907if test -z "$ac_cv_prog_CC"; then
1908 ac_ct_CC=$CC
1909 # Extract the first word of "cc", so it can be a program name with args.
1910set dummy cc; ac_word=$2
1911echo "$as_me:$LINENO: checking for $ac_word" >&5
1912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915else
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918else
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1929 fi
1930done
1931done
1932
1933fi
1934fi
1935ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938echo "${ECHO_T}$ac_ct_CC" >&6
1939else
1940 echo "$as_me:$LINENO: result: no" >&5
1941echo "${ECHO_T}no" >&6
1942fi
1943
1944 CC=$ac_ct_CC
1945else
1946 CC="$ac_cv_prog_CC"
1947fi
1948
1949fi
1950if test -z "$CC"; then
1951 # Extract the first word of "cc", so it can be a program name with args.
1952set dummy cc; ac_word=$2
1953echo "$as_me:$LINENO: checking for $ac_word" >&5
1954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955if test "${ac_cv_prog_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1960else
1961 ac_prog_rejected=no
1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963for as_dir in $PATH
1964do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1970 ac_prog_rejected=yes
1971 continue
1972 fi
1973 ac_cv_prog_CC="cc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1976 fi
1977done
1978done
1979
1980if test $ac_prog_rejected = yes; then
1981 # We found a bogon in the path, so make sure we never use it.
1982 set dummy $ac_cv_prog_CC
1983 shift
1984 if test $# != 0; then
1985 # We chose a different compiler from the bogus one.
1986 # However, it has the same basename, so the bogon will be chosen
1987 # first if we set CC to just the basename; use the full file name.
1988 shift
1989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1990 fi
1991fi
1992fi
1993fi
1994CC=$ac_cv_prog_CC
1995if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997echo "${ECHO_T}$CC" >&6
1998else
1999 echo "$as_me:$LINENO: result: no" >&5
2000echo "${ECHO_T}no" >&6
2001fi
2002
2003fi
2004if test -z "$CC"; then
2005 if test -n "$ac_tool_prefix"; then
2006 for ac_prog in cl
2007 do
2008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2017else
2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029done
2030done
2031
2032fi
2033fi
2034CC=$ac_cv_prog_CC
2035if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037echo "${ECHO_T}$CC" >&6
2038else
2039 echo "$as_me:$LINENO: result: no" >&5
2040echo "${ECHO_T}no" >&6
2041fi
2042
2043 test -n "$CC" && break
2044 done
2045fi
2046if test -z "$CC"; then
2047 ac_ct_CC=$CC
2048 for ac_prog in cl
2049do
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051set dummy $ac_prog; ac_word=$2
2052echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059else
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_ac_ct_CC="$ac_prog"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2070 fi
2071done
2072done
2073
2074fi
2075fi
2076ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077if test -n "$ac_ct_CC"; then
2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079echo "${ECHO_T}$ac_ct_CC" >&6
2080else
2081 echo "$as_me:$LINENO: result: no" >&5
2082echo "${ECHO_T}no" >&6
2083fi
2084
2085 test -n "$ac_ct_CC" && break
2086done
2087
2088 CC=$ac_ct_CC
2089fi
2090
2091fi
2092
2093
2094test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095See \`config.log' for more details." >&5
2096echo "$as_me: error: no acceptable C compiler found in \$PATH
2097See \`config.log' for more details." >&2;}
2098 { (exit 1); exit 1; }; }
2099
2100# Provide some information about the compiler.
2101echo "$as_me:$LINENO:" \
2102 "checking for C compiler version" >&5
2103ac_compiler=`set X $ac_compile; echo $2`
2104{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2105 (eval $ac_compiler --version </dev/null >&5) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2110 (eval $ac_compiler -v </dev/null >&5) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2115 (eval $ac_compiler -V </dev/null >&5) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119
2120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126
2127int
2128main ()
2129{
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135ac_clean_files_save=$ac_clean_files
2136ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137# Try to create an executable without -o first, disregard a.out.
2138# It will help us diagnose broken compilers, and finding out an intuition
2139# of exeext.
2140echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2144 (eval $ac_link_default) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 # Find the output, starting from the most likely. This scheme is
2149# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2150# resort.
2151
2152# Be careful to initialize this variable, since it used to be cached.
2153# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2154ac_cv_exeext=
2155# b.out is created by i960 compilers.
2156for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2157do
2158 test -f "$ac_file" || continue
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2161 ;;
2162 conftest.$ac_ext )
2163 # This is the source file.
2164 ;;
2165 [ab].out )
2166 # We found the default executable, but exeext='' is most
2167 # certainly right.
2168 break;;
2169 *.* )
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 # FIXME: I believe we export ac_cv_exeext for Libtool,
2172 # but it would be cool to find out if it's true. Does anybody
2173 # maintain Libtool? --akim.
2174 export ac_cv_exeext
2175 break;;
2176 * )
2177 break;;
2178 esac
2179done
2180else
2181 echo "$as_me: failed program was:" >&5
2182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2185See \`config.log' for more details." >&5
2186echo "$as_me: error: C compiler cannot create executables
2187See \`config.log' for more details." >&2;}
2188 { (exit 77); exit 77; }; }
2189fi
2190
2191ac_exeext=$ac_cv_exeext
2192echo "$as_me:$LINENO: result: $ac_file" >&5
2193echo "${ECHO_T}$ac_file" >&6
2194
2195# Check the compiler produces executables we can run. If not, either
2196# the compiler is broken, or we cross compile.
2197echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2198echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2199# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2200# If not cross compiling, check that we can run a simple program.
2201if test "$cross_compiling" != yes; then
2202 if { ac_try='./$ac_file'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2208 cross_compiling=no
2209 else
2210 if test "$cross_compiling" = maybe; then
2211 cross_compiling=yes
2212 else
2213 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2214If you meant to cross compile, use \`--host'.
2215See \`config.log' for more details." >&5
2216echo "$as_me: error: cannot run C compiled programs.
2217If you meant to cross compile, use \`--host'.
2218See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2220 fi
2221 fi
2222fi
2223echo "$as_me:$LINENO: result: yes" >&5
2224echo "${ECHO_T}yes" >&6
2225
2226rm -f a.out a.exe conftest$ac_cv_exeext b.out
2227ac_clean_files=$ac_clean_files_save
2228# Check the compiler produces executables we can run. If not, either
2229# the compiler is broken, or we cross compile.
2230echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2231echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2232echo "$as_me:$LINENO: result: $cross_compiling" >&5
2233echo "${ECHO_T}$cross_compiling" >&6
2234
2235echo "$as_me:$LINENO: checking for suffix of executables" >&5
2236echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2238 (eval $ac_link) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; then
2242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2244# work properly (i.e., refer to `conftest.exe'), while it won't with
2245# `rm'.
2246for ac_file in conftest.exe conftest conftest.*; do
2247 test -f "$ac_file" || continue
2248 case $ac_file in
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2251 export ac_cv_exeext
2252 break;;
2253 * ) break;;
2254 esac
2255done
2256else
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2258See \`config.log' for more details." >&5
2259echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2260See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2262fi
2263
2264rm -f conftest$ac_cv_exeext
2265echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2266echo "${ECHO_T}$ac_cv_exeext" >&6
2267
2268rm -f conftest.$ac_ext
2269EXEEXT=$ac_cv_exeext
2270ac_exeext=$EXEEXT
2271echo "$as_me:$LINENO: checking for suffix of object files" >&5
2272echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2273if test "${ac_cv_objext+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h. */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h. */
2282
2283int
2284main ()
2285{
2286
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291rm -f conftest.o conftest.obj
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; then
2297 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2298 case $ac_file in
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2301 break;;
2302 esac
2303done
2304else
2305 echo "$as_me: failed program was:" >&5
2306sed 's/^/| /' conftest.$ac_ext >&5
2307
2308{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2309See \`config.log' for more details." >&5
2310echo "$as_me: error: cannot compute suffix of object files: cannot compile
2311See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2313fi
2314
2315rm -f conftest.$ac_cv_objext conftest.$ac_ext
2316fi
2317echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2318echo "${ECHO_T}$ac_cv_objext" >&6
2319OBJEXT=$ac_cv_objext
2320ac_objext=$OBJEXT
2321echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2322echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2323if test "${ac_cv_c_compiler_gnu+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326 cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h. */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h. */
2332
2333int
2334main ()
2335{
2336#ifndef __GNUC__
2337 choke me
2338#endif
2339
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_compiler_gnu=yes
2367else
2368 echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371ac_compiler_gnu=no
2372fi
2373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374ac_cv_c_compiler_gnu=$ac_compiler_gnu
2375
2376fi
2377echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2378echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2379GCC=`test $ac_compiler_gnu = yes && echo yes`
2380ac_test_CFLAGS=${CFLAGS+set}
2381ac_save_CFLAGS=$CFLAGS
2382CFLAGS="-g"
2383echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2384echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2385if test "${ac_cv_prog_cc_g+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388 cat >conftest.$ac_ext <<_ACEOF
2389/* confdefs.h. */
2390_ACEOF
2391cat confdefs.h >>conftest.$ac_ext
2392cat >>conftest.$ac_ext <<_ACEOF
2393/* end confdefs.h. */
2394
2395int
2396main ()
2397{
2398
2399 ;
2400 return 0;
2401}
2402_ACEOF
2403rm -f conftest.$ac_objext
2404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2406 ac_status=$?
2407 grep -v '^ *+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag"
2413 || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 ac_cv_prog_cc_g=yes
2426else
2427 echo "$as_me: failed program was:" >&5
2428sed 's/^/| /' conftest.$ac_ext >&5
2429
2430ac_cv_prog_cc_g=no
2431fi
2432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433fi
2434echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2435echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2436if test "$ac_test_CFLAGS" = set; then
2437 CFLAGS=$ac_save_CFLAGS
2438elif test $ac_cv_prog_cc_g = yes; then
2439 if test "$GCC" = yes; then
2440 CFLAGS="-g -O2"
2441 else
2442 CFLAGS="-g"
2443 fi
2444else
2445 if test "$GCC" = yes; then
2446 CFLAGS="-O2"
2447 else
2448 CFLAGS=
2449 fi
2450fi
2451echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2452echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2453if test "${ac_cv_prog_cc_stdc+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456 ac_cv_prog_cc_stdc=no
2457ac_save_CC=$CC
2458cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h. */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h. */
2464#include <stdarg.h>
2465#include <stdio.h>
2466#include <sys/types.h>
2467#include <sys/stat.h>
2468/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2469struct buf { int x; };
2470FILE * (*rcsopen) (struct buf *, struct stat *, int);
2471static char *e (p, i)
2472 char **p;
2473 int i;
2474{
2475 return p[i];
2476}
2477static char *f (char * (*g) (char **, int), char **p, ...)
2478{
2479 char *s;
2480 va_list v;
2481 va_start (v,p);
2482 s = g (p, va_arg (v,int));
2483 va_end (v);
2484 return s;
2485}
2486
2487/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2488 function prototypes and stuff, but not '\xHH' hex character constants.
2489 These don't provoke an error unfortunately, instead are silently treated
2490 as 'x'. The following induces an error, until -std1 is added to get
2491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2492 array size at least. It's necessary to write '\x00'==0 to get something
2493 that's true only with -std1. */
2494int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2495
2496int test (int i, double x);
2497struct s1 {int (*f) (int a);};
2498struct s2 {int (*f) (double a);};
2499int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2500int argc;
2501char **argv;
2502int
2503main ()
2504{
2505return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510# Don't try gcc -ansi; that turns off useful extensions and
2511# breaks some systems' header files.
2512# AIX -qlanglvl=ansi
2513# Ultrix and OSF/1 -std1
2514# HP-UX 10.20 and later -Ae
2515# HP-UX older versions -Aa -D_HPUX_SOURCE
2516# SVR4 -Xc -D__EXTENSIONS__
2517for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2518do
2519 CC="$ac_save_CC $ac_arg"
2520 rm -f conftest.$ac_objext
2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag"
2530 || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 ac_cv_prog_cc_stdc=$ac_arg
2543break
2544else
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548fi
2549rm -f conftest.err conftest.$ac_objext
2550done
2551rm -f conftest.$ac_ext conftest.$ac_objext
2552CC=$ac_save_CC
2553
2554fi
2555
2556case "x$ac_cv_prog_cc_stdc" in
2557 x|xno)
2558 echo "$as_me:$LINENO: result: none needed" >&5
2559echo "${ECHO_T}none needed" >&6 ;;
2560 *)
2561 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2562echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2563 CC="$CC $ac_cv_prog_cc_stdc" ;;
2564esac
2565
2566# Some people use a C++ compiler to compile C. Since we use `exit',
2567# in C++ we need to declare it. In case someone uses the same compiler
2568# for both compiling C and C++ we need to have the C++ compiler decide
2569# the declaration of exit, since it's the most demanding environment.
2570cat >conftest.$ac_ext <<_ACEOF
2571#ifndef __cplusplus
2572 choke me
2573#endif
2574_ACEOF
2575rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>conftest.er1
2578 ac_status=$?
2579 grep -v '^ *+' conftest.er1 >conftest.err
2580 rm -f conftest.er1
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_c_werror_flag"
2585 || test ! -s conftest.err'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 (eval $ac_try) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 for ac_declaration in \
2598 '' \
2599 'extern "C" void std::exit (int) throw (); using std::exit;' \
2600 'extern "C" void std::exit (int); using std::exit;' \
2601 'extern "C" void exit (int) throw ();' \
2602 'extern "C" void exit (int);' \
2603 'void exit (int);'
2604do
2605 cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h. */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h. */
2611$ac_declaration
2612#include <stdlib.h>
2613int
2614main ()
2615{
2616exit (42);
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621rm -f conftest.$ac_objext
2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 :
2644else
2645 echo "$as_me: failed program was:" >&5
2646sed 's/^/| /' conftest.$ac_ext >&5
2647
2648continue
2649fi
2650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 cat >conftest.$ac_ext <<_ACEOF
2652/* confdefs.h. */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h. */
2657$ac_declaration
2658int
2659main ()
2660{
2661exit (42);
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 break
2689else
2690 echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695done
2696rm -f conftest*
2697if test -n "$ac_declaration"; then
2698 echo '#ifdef __cplusplus' >>confdefs.h
2699 echo $ac_declaration >>confdefs.h
2700 echo '#endif' >>confdefs.h
2701fi
2702
2703else
2704 echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707fi
2708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715if test "x$CC" != xcc; then
2716 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2717echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2718else
2719 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2720echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2721fi
2722set dummy $CC; ac_cc=`echo $2 |
2723 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2724if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726else
2727 cat >conftest.$ac_ext <<_ACEOF
2728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
2733
2734int
2735main ()
2736{
2737
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742# Make sure it works both with $CC and with simple cc.
2743# We do the test twice because some compilers refuse to overwrite an
2744# existing .o file with -o, though they will create one.
2745ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2746if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); };
2756then
2757 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2758 if test "x$CC" != xcc; then
2759 # Test first that cc exists at all.
2760 if { ac_try='cc -c conftest.$ac_ext >&5'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2767 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); };
2777 then
2778 # cc works too.
2779 :
2780 else
2781 # cc exists but doesn't like -o.
2782 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783 fi
2784 fi
2785 fi
2786else
2787 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2788fi
2789rm -f conftest*
2790
2791fi
2792if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2793 echo "$as_me:$LINENO: result: yes" >&5
2794echo "${ECHO_T}yes" >&6
2795else
2796 echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6
2798
2799cat >>confdefs.h <<\_ACEOF
2800#define NO_MINUS_C_MINUS_O 1
2801_ACEOF
2802
2803fi
2804
1818 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1819 gas_flag=yes
1820 fi
1821
1822cat >>confdefs.h <<_ACEOF
1823#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1824_ACEOF
1825
1826fi
1827
1828echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1829echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1830if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1831 if test x"$gas_flag" = x"no"; then
1832 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1833echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1834 else
1835 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1836echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1837 fi
1838else
1839 echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843# ---------------
1844# Find C compiler
1845# ---------------
1846
1847# If a non-executable a.out is present (e.g. created by GNU as above even if
1848# invoked with -v only), the IRIX 6 native ld just overwrites the existing
1849# file, even when creating an executable, so an execution test fails.
1850# Remove possible default executable files to avoid this.
1851#
1852# FIXME: This really belongs into AC_PROG_CC and can be removed once
1853# Autoconf includes it.
1854rm -f a.out a.exe b.out
1855
1856# Find the native compiler
1857ac_ext=c
1858ac_cpp='$CPP $CPPFLAGS'
1859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1864set dummy ${ac_tool_prefix}gcc; ac_word=$2
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867if test "${ac_cv_prog_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1872else
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884done
1885done
1886
1887fi
1888fi
1889CC=$ac_cv_prog_CC
1890if test -n "$CC"; then
1891 echo "$as_me:$LINENO: result: $CC" >&5
1892echo "${ECHO_T}$CC" >&6
1893else
1894 echo "$as_me:$LINENO: result: no" >&5
1895echo "${ECHO_T}no" >&6
1896fi
1897
1898fi
1899if test -z "$ac_cv_prog_CC"; then
1900 ac_ct_CC=$CC
1901 # Extract the first word of "gcc", so it can be a program name with args.
1902set dummy gcc; ac_word=$2
1903echo "$as_me:$LINENO: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908 if test -n "$ac_ct_CC"; then
1909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1910else
1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_ac_ct_CC="gcc"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922done
1923done
1924
1925fi
1926fi
1927ac_ct_CC=$ac_cv_prog_ac_ct_CC
1928if test -n "$ac_ct_CC"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1930echo "${ECHO_T}$ac_ct_CC" >&6
1931else
1932 echo "$as_me:$LINENO: result: no" >&5
1933echo "${ECHO_T}no" >&6
1934fi
1935
1936 CC=$ac_ct_CC
1937else
1938 CC="$ac_cv_prog_CC"
1939fi
1940
1941if test -z "$CC"; then
1942 if test -n "$ac_tool_prefix"; then
1943 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1944set dummy ${ac_tool_prefix}cc; ac_word=$2
1945echo "$as_me:$LINENO: checking for $ac_word" >&5
1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947if test "${ac_cv_prog_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC="$CC" # Let the user override the test.
1952else
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_CC="${ac_tool_prefix}cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1963 fi
1964done
1965done
1966
1967fi
1968fi
1969CC=$ac_cv_prog_CC
1970if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972echo "${ECHO_T}$CC" >&6
1973else
1974 echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6
1976fi
1977
1978fi
1979if test -z "$ac_cv_prog_CC"; then
1980 ac_ct_CC=$CC
1981 # Extract the first word of "cc", so it can be a program name with args.
1982set dummy cc; ac_word=$2
1983echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988 if test -n "$ac_ct_CC"; then
1989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990else
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_ac_ct_CC="cc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002done
2003done
2004
2005fi
2006fi
2007ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008if test -n "$ac_ct_CC"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010echo "${ECHO_T}$ac_ct_CC" >&6
2011else
2012 echo "$as_me:$LINENO: result: no" >&5
2013echo "${ECHO_T}no" >&6
2014fi
2015
2016 CC=$ac_ct_CC
2017else
2018 CC="$ac_cv_prog_CC"
2019fi
2020
2021fi
2022if test -z "$CC"; then
2023 # Extract the first word of "cc", so it can be a program name with args.
2024set dummy cc; ac_word=$2
2025echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2032else
2033 ac_prog_rejected=no
2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035for as_dir in $PATH
2036do
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2042 ac_prog_rejected=yes
2043 continue
2044 fi
2045 ac_cv_prog_CC="cc"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049done
2050done
2051
2052if test $ac_prog_rejected = yes; then
2053 # We found a bogon in the path, so make sure we never use it.
2054 set dummy $ac_cv_prog_CC
2055 shift
2056 if test $# != 0; then
2057 # We chose a different compiler from the bogus one.
2058 # However, it has the same basename, so the bogon will be chosen
2059 # first if we set CC to just the basename; use the full file name.
2060 shift
2061 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2062 fi
2063fi
2064fi
2065fi
2066CC=$ac_cv_prog_CC
2067if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069echo "${ECHO_T}$CC" >&6
2070else
2071 echo "$as_me:$LINENO: result: no" >&5
2072echo "${ECHO_T}no" >&6
2073fi
2074
2075fi
2076if test -z "$CC"; then
2077 if test -n "$ac_tool_prefix"; then
2078 for ac_prog in cl
2079 do
2080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2082echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2089else
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2100 fi
2101done
2102done
2103
2104fi
2105fi
2106CC=$ac_cv_prog_CC
2107if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109echo "${ECHO_T}$CC" >&6
2110else
2111 echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6
2113fi
2114
2115 test -n "$CC" && break
2116 done
2117fi
2118if test -z "$CC"; then
2119 ac_ct_CC=$CC
2120 for ac_prog in cl
2121do
2122 # Extract the first word of "$ac_prog", so it can be a program name with args.
2123set dummy $ac_prog; ac_word=$2
2124echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 if test -n "$ac_ct_CC"; then
2130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_ac_ct_CC="$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2142 fi
2143done
2144done
2145
2146fi
2147fi
2148ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149if test -n "$ac_ct_CC"; then
2150 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151echo "${ECHO_T}$ac_ct_CC" >&6
2152else
2153 echo "$as_me:$LINENO: result: no" >&5
2154echo "${ECHO_T}no" >&6
2155fi
2156
2157 test -n "$ac_ct_CC" && break
2158done
2159
2160 CC=$ac_ct_CC
2161fi
2162
2163fi
2164
2165
2166test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2167See \`config.log' for more details." >&5
2168echo "$as_me: error: no acceptable C compiler found in \$PATH
2169See \`config.log' for more details." >&2;}
2170 { (exit 1); exit 1; }; }
2171
2172# Provide some information about the compiler.
2173echo "$as_me:$LINENO:" \
2174 "checking for C compiler version" >&5
2175ac_compiler=`set X $ac_compile; echo $2`
2176{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2177 (eval $ac_compiler --version </dev/null >&5) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }
2181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2182 (eval $ac_compiler -v </dev/null >&5) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }
2186{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2187 (eval $ac_compiler -V </dev/null >&5) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }
2191
2192cat >conftest.$ac_ext <<_ACEOF
2193/* confdefs.h. */
2194_ACEOF
2195cat confdefs.h >>conftest.$ac_ext
2196cat >>conftest.$ac_ext <<_ACEOF
2197/* end confdefs.h. */
2198
2199int
2200main ()
2201{
2202
2203 ;
2204 return 0;
2205}
2206_ACEOF
2207ac_clean_files_save=$ac_clean_files
2208ac_clean_files="$ac_clean_files a.out a.exe b.out"
2209# Try to create an executable without -o first, disregard a.out.
2210# It will help us diagnose broken compilers, and finding out an intuition
2211# of exeext.
2212echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2213echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2214ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2215if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2216 (eval $ac_link_default) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # Find the output, starting from the most likely. This scheme is
2221# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2222# resort.
2223
2224# Be careful to initialize this variable, since it used to be cached.
2225# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2226ac_cv_exeext=
2227# b.out is created by i960 compilers.
2228for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2229do
2230 test -f "$ac_file" || continue
2231 case $ac_file in
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2233 ;;
2234 conftest.$ac_ext )
2235 # This is the source file.
2236 ;;
2237 [ab].out )
2238 # We found the default executable, but exeext='' is most
2239 # certainly right.
2240 break;;
2241 *.* )
2242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243 # FIXME: I believe we export ac_cv_exeext for Libtool,
2244 # but it would be cool to find out if it's true. Does anybody
2245 # maintain Libtool? --akim.
2246 export ac_cv_exeext
2247 break;;
2248 * )
2249 break;;
2250 esac
2251done
2252else
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2257See \`config.log' for more details." >&5
2258echo "$as_me: error: C compiler cannot create executables
2259See \`config.log' for more details." >&2;}
2260 { (exit 77); exit 77; }; }
2261fi
2262
2263ac_exeext=$ac_cv_exeext
2264echo "$as_me:$LINENO: result: $ac_file" >&5
2265echo "${ECHO_T}$ac_file" >&6
2266
2267# Check the compiler produces executables we can run. If not, either
2268# the compiler is broken, or we cross compile.
2269echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2271# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272# If not cross compiling, check that we can run a simple program.
2273if test "$cross_compiling" != yes; then
2274 if { ac_try='./$ac_file'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 cross_compiling=no
2281 else
2282 if test "$cross_compiling" = maybe; then
2283 cross_compiling=yes
2284 else
2285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2286If you meant to cross compile, use \`--host'.
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot run C compiled programs.
2289If you meant to cross compile, use \`--host'.
2290See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292 fi
2293 fi
2294fi
2295echo "$as_me:$LINENO: result: yes" >&5
2296echo "${ECHO_T}yes" >&6
2297
2298rm -f a.out a.exe conftest$ac_cv_exeext b.out
2299ac_clean_files=$ac_clean_files_save
2300# Check the compiler produces executables we can run. If not, either
2301# the compiler is broken, or we cross compile.
2302echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2303echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2304echo "$as_me:$LINENO: result: $cross_compiling" >&5
2305echo "${ECHO_T}$cross_compiling" >&6
2306
2307echo "$as_me:$LINENO: checking for suffix of executables" >&5
2308echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2310 (eval $ac_link) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2315# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2316# work properly (i.e., refer to `conftest.exe'), while it won't with
2317# `rm'.
2318for ac_file in conftest.exe conftest conftest.*; do
2319 test -f "$ac_file" || continue
2320 case $ac_file in
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2322 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323 export ac_cv_exeext
2324 break;;
2325 * ) break;;
2326 esac
2327done
2328else
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2332See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2334fi
2335
2336rm -f conftest$ac_cv_exeext
2337echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2338echo "${ECHO_T}$ac_cv_exeext" >&6
2339
2340rm -f conftest.$ac_ext
2341EXEEXT=$ac_cv_exeext
2342ac_exeext=$EXEEXT
2343echo "$as_me:$LINENO: checking for suffix of object files" >&5
2344echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2345if test "${ac_cv_objext+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h. */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h. */
2354
2355int
2356main ()
2357{
2358
2359 ;
2360 return 0;
2361}
2362_ACEOF
2363rm -f conftest.o conftest.obj
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2370 case $ac_file in
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2372 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2373 break;;
2374 esac
2375done
2376else
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2381See \`config.log' for more details." >&5
2382echo "$as_me: error: cannot compute suffix of object files: cannot compile
2383See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2385fi
2386
2387rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388fi
2389echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2390echo "${ECHO_T}$ac_cv_objext" >&6
2391OBJEXT=$ac_cv_objext
2392ac_objext=$OBJEXT
2393echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2394echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2395if test "${ac_cv_c_compiler_gnu+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397else
2398 cat >conftest.$ac_ext <<_ACEOF
2399/* confdefs.h. */
2400_ACEOF
2401cat confdefs.h >>conftest.$ac_ext
2402cat >>conftest.$ac_ext <<_ACEOF
2403/* end confdefs.h. */
2404
2405int
2406main ()
2407{
2408#ifndef __GNUC__
2409 choke me
2410#endif
2411
2412 ;
2413 return 0;
2414}
2415_ACEOF
2416rm -f conftest.$ac_objext
2417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 ac_compiler_gnu=yes
2439else
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443ac_compiler_gnu=no
2444fi
2445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447
2448fi
2449echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2451GCC=`test $ac_compiler_gnu = yes && echo yes`
2452ac_test_CFLAGS=${CFLAGS+set}
2453ac_save_CFLAGS=$CFLAGS
2454CFLAGS="-g"
2455echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2456echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2457if test "${ac_cv_prog_cc_g+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460 cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h. */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h. */
2466
2467int
2468main ()
2469{
2470
2471 ;
2472 return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 ac_cv_prog_cc_g=yes
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502ac_cv_prog_cc_g=no
2503fi
2504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505fi
2506echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2507echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2508if test "$ac_test_CFLAGS" = set; then
2509 CFLAGS=$ac_save_CFLAGS
2510elif test $ac_cv_prog_cc_g = yes; then
2511 if test "$GCC" = yes; then
2512 CFLAGS="-g -O2"
2513 else
2514 CFLAGS="-g"
2515 fi
2516else
2517 if test "$GCC" = yes; then
2518 CFLAGS="-O2"
2519 else
2520 CFLAGS=
2521 fi
2522fi
2523echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2524echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2525if test "${ac_cv_prog_cc_stdc+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 ac_cv_prog_cc_stdc=no
2529ac_save_CC=$CC
2530cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536#include <stdarg.h>
2537#include <stdio.h>
2538#include <sys/types.h>
2539#include <sys/stat.h>
2540/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2541struct buf { int x; };
2542FILE * (*rcsopen) (struct buf *, struct stat *, int);
2543static char *e (p, i)
2544 char **p;
2545 int i;
2546{
2547 return p[i];
2548}
2549static char *f (char * (*g) (char **, int), char **p, ...)
2550{
2551 char *s;
2552 va_list v;
2553 va_start (v,p);
2554 s = g (p, va_arg (v,int));
2555 va_end (v);
2556 return s;
2557}
2558
2559/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2560 function prototypes and stuff, but not '\xHH' hex character constants.
2561 These don't provoke an error unfortunately, instead are silently treated
2562 as 'x'. The following induces an error, until -std1 is added to get
2563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2564 array size at least. It's necessary to write '\x00'==0 to get something
2565 that's true only with -std1. */
2566int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2567
2568int test (int i, double x);
2569struct s1 {int (*f) (int a);};
2570struct s2 {int (*f) (double a);};
2571int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2572int argc;
2573char **argv;
2574int
2575main ()
2576{
2577return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2578 ;
2579 return 0;
2580}
2581_ACEOF
2582# Don't try gcc -ansi; that turns off useful extensions and
2583# breaks some systems' header files.
2584# AIX -qlanglvl=ansi
2585# Ultrix and OSF/1 -std1
2586# HP-UX 10.20 and later -Ae
2587# HP-UX older versions -Aa -D_HPUX_SOURCE
2588# SVR4 -Xc -D__EXTENSIONS__
2589for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2590do
2591 CC="$ac_save_CC $ac_arg"
2592 rm -f conftest.$ac_objext
2593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_c_werror_flag"
2602 || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 ac_cv_prog_cc_stdc=$ac_arg
2615break
2616else
2617 echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620fi
2621rm -f conftest.err conftest.$ac_objext
2622done
2623rm -f conftest.$ac_ext conftest.$ac_objext
2624CC=$ac_save_CC
2625
2626fi
2627
2628case "x$ac_cv_prog_cc_stdc" in
2629 x|xno)
2630 echo "$as_me:$LINENO: result: none needed" >&5
2631echo "${ECHO_T}none needed" >&6 ;;
2632 *)
2633 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2634echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2635 CC="$CC $ac_cv_prog_cc_stdc" ;;
2636esac
2637
2638# Some people use a C++ compiler to compile C. Since we use `exit',
2639# in C++ we need to declare it. In case someone uses the same compiler
2640# for both compiling C and C++ we need to have the C++ compiler decide
2641# the declaration of exit, since it's the most demanding environment.
2642cat >conftest.$ac_ext <<_ACEOF
2643#ifndef __cplusplus
2644 choke me
2645#endif
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 for ac_declaration in \
2670 '' \
2671 'extern "C" void std::exit (int) throw (); using std::exit;' \
2672 'extern "C" void std::exit (int); using std::exit;' \
2673 'extern "C" void exit (int) throw ();' \
2674 'extern "C" void exit (int);' \
2675 'void exit (int);'
2676do
2677 cat >conftest.$ac_ext <<_ACEOF
2678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h. */
2683$ac_declaration
2684#include <stdlib.h>
2685int
2686main ()
2687{
2688exit (42);
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext
2694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag"
2703 || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 :
2716else
2717 echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
2720continue
2721fi
2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 cat >conftest.$ac_ext <<_ACEOF
2724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
2729$ac_declaration
2730int
2731main ()
2732{
2733exit (42);
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext
2739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2741 ac_status=$?
2742 grep -v '^ *+' conftest.er1 >conftest.err
2743 rm -f conftest.er1
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_c_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 break
2761else
2762 echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
2765fi
2766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767done
2768rm -f conftest*
2769if test -n "$ac_declaration"; then
2770 echo '#ifdef __cplusplus' >>confdefs.h
2771 echo $ac_declaration >>confdefs.h
2772 echo '#endif' >>confdefs.h
2773fi
2774
2775else
2776 echo "$as_me: failed program was:" >&5
2777sed 's/^/| /' conftest.$ac_ext >&5
2778
2779fi
2780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781ac_ext=c
2782ac_cpp='$CPP $CPPFLAGS'
2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787if test "x$CC" != xcc; then
2788 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2789echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2790else
2791 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2792echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2793fi
2794set dummy $CC; ac_cc=`echo $2 |
2795 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2796if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799 cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h. */
2805
2806int
2807main ()
2808{
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814# Make sure it works both with $CC and with simple cc.
2815# We do the test twice because some compilers refuse to overwrite an
2816# existing .o file with -o, though they will create one.
2817ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); };
2828then
2829 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2830 if test "x$CC" != xcc; then
2831 # Test first that cc exists at all.
2832 if { ac_try='cc -c conftest.$ac_ext >&5'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); };
2849 then
2850 # cc works too.
2851 :
2852 else
2853 # cc exists but doesn't like -o.
2854 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2855 fi
2856 fi
2857 fi
2858else
2859 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2860fi
2861rm -f conftest*
2862
2863fi
2864if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866echo "${ECHO_T}yes" >&6
2867else
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870
2871cat >>confdefs.h <<\_ACEOF
2872#define NO_MINUS_C_MINUS_O 1
2873_ACEOF
2874
2875fi
2876
2877# expand $ac_aux_dir to an absolute path
2878am_aux_dir=`cd $ac_aux_dir && pwd`
2879
2880# FIXME: we rely on the cache variable name because
2881# there is no other way.
2882set dummy $CC
2883ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2884if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2885 # Losing compiler, so override with the script.
2886 # FIXME: It is wrong to rewrite CC.
2887 # But if we don't then we get into trouble of one sort or another.
2888 # A longer-term fix would be to have automake use am__CC in this case,
2889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2890 CC="$am_aux_dir/compile $CC"
2891fi
2892
2805# autoconf is lame and doesn't give us any substitution variable for this.
2806if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2807 NO_MINUS_C_MINUS_O=yes
2808else
2809 OUTPUT_OPTION='-o $@'
2810fi
2811
2812
2813
2893# autoconf is lame and doesn't give us any substitution variable for this.
2894if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2895 NO_MINUS_C_MINUS_O=yes
2896else
2897 OUTPUT_OPTION='-o $@'
2898fi
2899
2900
2901
2902# Remove the -O2: for historical reasons, unless bootstrapping we prefer
2903# optimizations to be activated explicitly by the toplevel.
2904case "$CC" in
2905 */prev-gcc/xgcc*) ;;
2906 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2907esac
2908
2909
2814# -------------------------
2815# Check C compiler features
2816# -------------------------
2817
2910# -------------------------
2911# Check C compiler features
2912# -------------------------
2913
2818
2819echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2820echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2821if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824 save_CFLAGS="$CFLAGS"
2825CFLAGS="-Wno-long-long"
2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h. */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h. */
2832
2833int
2834main ()
2835{
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_prog_cc_no_long_long=yes
2864else
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868ac_cv_prog_cc_no_long_long=no
2869fi
2870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871CFLAGS="$save_CFLAGS"
2872fi
2873echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2874echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2875
2876ac_ext=c
2877ac_cpp='$CPP $CPPFLAGS'
2878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883# On Suns, sometimes $CPP names a directory.
2884if test -n "$CPP" && test -d "$CPP"; then
2885 CPP=
2886fi
2887if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 # Double quotes because CPP needs to be expanded
2892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 do
2894 ac_preproc_ok=false
2895for ac_c_preproc_warn_flag in '' yes
2896do
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h. */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h. */
2909#ifdef __STDC__
2910# include <limits.h>
2911#else
2912# include <assert.h>
2913#endif
2914 Syntax error
2915_ACEOF
2916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927 else
2928 ac_cpp_err=
2929 fi
2930else
2931 ac_cpp_err=yes
2932fi
2933if test -z "$ac_cpp_err"; then
2934 :
2935else
2936 echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 # Broken: fails on valid input.
2940continue
2941fi
2942rm -f conftest.err conftest.$ac_ext
2943
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
2952#include <ac_nonexistent.h>
2953_ACEOF
2954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 else
2966 ac_cpp_err=
2967 fi
2968else
2969 ac_cpp_err=yes
2970fi
2971if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2973continue
2974else
2975 echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 # Passes both tests.
2979ac_preproc_ok=:
2980break
2981fi
2982rm -f conftest.err conftest.$ac_ext
2983
2984done
2985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986rm -f conftest.err conftest.$ac_ext
2987if $ac_preproc_ok; then
2988 break
2989fi
2990
2991 done
2992 ac_cv_prog_CPP=$CPP
2993
2994fi
2995 CPP=$ac_cv_prog_CPP
2996else
2997 ac_cv_prog_CPP=$CPP
2998fi
2999echo "$as_me:$LINENO: result: $CPP" >&5
3000echo "${ECHO_T}$CPP" >&6
3001ac_preproc_ok=false
3002for ac_c_preproc_warn_flag in '' yes
3003do
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016#ifdef __STDC__
3017# include <limits.h>
3018#else
3019# include <assert.h>
3020#endif
3021 Syntax error
3022_ACEOF
3023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 else
3035 ac_cpp_err=
3036 fi
3037else
3038 ac_cpp_err=yes
3039fi
3040if test -z "$ac_cpp_err"; then
3041 :
3042else
3043 echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 # Broken: fails on valid input.
3047continue
3048fi
3049rm -f conftest.err conftest.$ac_ext
3050
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059#include <ac_nonexistent.h>
3060_ACEOF
3061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 else
3073 ac_cpp_err=
3074 fi
3075else
3076 ac_cpp_err=yes
3077fi
3078if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3080continue
3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 # Passes both tests.
3086ac_preproc_ok=:
3087break
3088fi
3089rm -f conftest.err conftest.$ac_ext
3090
3091done
3092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093rm -f conftest.err conftest.$ac_ext
3094if $ac_preproc_ok; then
3095 :
3096else
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098See \`config.log' for more details." >&5
3099echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3102fi
3103
3104ac_ext=c
3105ac_cpp='$CPP $CPPFLAGS'
3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
2914ac_ext=c
2915ac_cpp='$CPP $CPPFLAGS'
2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2920echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2921# On Suns, sometimes $CPP names a directory.
2922if test -n "$CPP" && test -d "$CPP"; then
2923 CPP=
2924fi
2925if test -z "$CPP"; then
2926 if test "${ac_cv_prog_CPP+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929 # Double quotes because CPP needs to be expanded
2930 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2931 do
2932 ac_preproc_ok=false
2933for ac_c_preproc_warn_flag in '' yes
2934do
2935 # Use a header file that comes with gcc, so configuring glibc
2936 # with a fresh cross-compiler works.
2937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 # <limits.h> exists even on freestanding compilers.
2939 # On the NeXT, cc -E runs the code through the compiler's parser,
2940 # not just through cpp. "Syntax error" is here to catch this case.
2941 cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h. */
2947#ifdef __STDC__
2948# include <limits.h>
2949#else
2950# include <assert.h>
2951#endif
2952 Syntax error
2953_ACEOF
2954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 else
2966 ac_cpp_err=
2967 fi
2968else
2969 ac_cpp_err=yes
2970fi
2971if test -z "$ac_cpp_err"; then
2972 :
2973else
2974 echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 # Broken: fails on valid input.
2978continue
2979fi
2980rm -f conftest.err conftest.$ac_ext
2981
2982 # OK, works on sane cases. Now check whether non-existent headers
2983 # can be detected and how.
2984 cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990#include <ac_nonexistent.h>
2991_ACEOF
2992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003 else
3004 ac_cpp_err=
3005 fi
3006else
3007 ac_cpp_err=yes
3008fi
3009if test -z "$ac_cpp_err"; then
3010 # Broken: success on invalid input.
3011continue
3012else
3013 echo "$as_me: failed program was:" >&5
3014sed 's/^/| /' conftest.$ac_ext >&5
3015
3016 # Passes both tests.
3017ac_preproc_ok=:
3018break
3019fi
3020rm -f conftest.err conftest.$ac_ext
3021
3022done
3023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024rm -f conftest.err conftest.$ac_ext
3025if $ac_preproc_ok; then
3026 break
3027fi
3028
3029 done
3030 ac_cv_prog_CPP=$CPP
3031
3032fi
3033 CPP=$ac_cv_prog_CPP
3034else
3035 ac_cv_prog_CPP=$CPP
3036fi
3037echo "$as_me:$LINENO: result: $CPP" >&5
3038echo "${ECHO_T}$CPP" >&6
3039ac_preproc_ok=false
3040for ac_c_preproc_warn_flag in '' yes
3041do
3042 # Use a header file that comes with gcc, so configuring glibc
3043 # with a fresh cross-compiler works.
3044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 # <limits.h> exists even on freestanding compilers.
3046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
3054#ifdef __STDC__
3055# include <limits.h>
3056#else
3057# include <assert.h>
3058#endif
3059 Syntax error
3060_ACEOF
3061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 else
3073 ac_cpp_err=
3074 fi
3075else
3076 ac_cpp_err=yes
3077fi
3078if test -z "$ac_cpp_err"; then
3079 :
3080else
3081 echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 # Broken: fails on valid input.
3085continue
3086fi
3087rm -f conftest.err conftest.$ac_ext
3088
3089 # OK, works on sane cases. Now check whether non-existent headers
3090 # can be detected and how.
3091 cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h. */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h. */
3097#include <ac_nonexistent.h>
3098_ACEOF
3099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110 else
3111 ac_cpp_err=
3112 fi
3113else
3114 ac_cpp_err=yes
3115fi
3116if test -z "$ac_cpp_err"; then
3117 # Broken: success on invalid input.
3118continue
3119else
3120 echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 # Passes both tests.
3124ac_preproc_ok=:
3125break
3126fi
3127rm -f conftest.err conftest.$ac_ext
3128
3129done
3130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131rm -f conftest.err conftest.$ac_ext
3132if $ac_preproc_ok; then
3133 :
3134else
3135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3136See \`config.log' for more details." >&5
3137echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3138See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3140fi
3141
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3110echo "$as_me:$LINENO: checking for inline" >&5
3111echo $ECHO_N "checking for inline... $ECHO_C" >&6
3112if test "${ac_cv_c_inline+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 ac_cv_c_inline=no
3116for ac_kw in inline __inline__ __inline; do
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123#ifndef __cplusplus
3124typedef int foo_t;
3125static $ac_kw foo_t static_foo () {return 0; }
3126$ac_kw foo_t foo () {return 0; }
3127#endif
3128
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag"
3140 || test ! -s conftest.err'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 ac_cv_c_inline=$ac_kw; break
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157fi
3158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159done
3160
3161fi
3162echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3163echo "${ECHO_T}$ac_cv_c_inline" >&6
3164
3165
3166case $ac_cv_c_inline in
3167 inline | yes) ;;
3168 *)
3169 case $ac_cv_c_inline in
3170 no) ac_val=;;
3171 *) ac_val=$ac_cv_c_inline;;
3172 esac
3173 cat >>confdefs.h <<_ACEOF
3174#ifndef __cplusplus
3175#define inline $ac_val
3176#endif
3177_ACEOF
3178 ;;
3179esac
3180
3181
3149echo "$as_me:$LINENO: checking for inline" >&5
3150echo $ECHO_N "checking for inline... $ECHO_C" >&6
3151if test "${ac_cv_c_inline+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 ac_cv_c_inline=no
3155for ac_kw in inline __inline__ __inline; do
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162#ifndef __cplusplus
3163typedef int foo_t;
3164static $ac_kw foo_t static_foo () {return 0; }
3165$ac_kw foo_t foo () {return 0; }
3166#endif
3167
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag"
3179 || test ! -s conftest.err'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; } &&
3185 { ac_try='test -s conftest.$ac_objext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_c_inline=$ac_kw; break
3192else
3193 echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196fi
3197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3198done
3199
3200fi
3201echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3202echo "${ECHO_T}$ac_cv_c_inline" >&6
3203
3204
3205case $ac_cv_c_inline in
3206 inline | yes) ;;
3207 *)
3208 case $ac_cv_c_inline in
3209 no) ac_val=;;
3210 *) ac_val=$ac_cv_c_inline;;
3211 esac
3212 cat >>confdefs.h <<_ACEOF
3213#ifndef __cplusplus
3214#define inline $ac_val
3215#endif
3216_ACEOF
3217 ;;
3218esac
3219
3220
3182echo "$as_me:$LINENO: checking for long long int" >&5
3183echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3184if test "${ac_cv_c_long_long+set}" = set; then
3221# sizeof(char) is 1 by definition.
3222
3223echo "$as_me:$LINENO: checking for egrep" >&5
3224echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225if test "${ac_cv_prog_egrep+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229 then ac_cv_prog_egrep='grep -E'
3230 else ac_cv_prog_egrep='egrep'
3231 fi
3232fi
3233echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235 EGREP=$ac_cv_prog_egrep
3236
3237
3238echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3239echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3240if test "${ac_cv_header_stdc+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3187 cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h. */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h. */
3243 cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249#include <stdlib.h>
3250#include <stdarg.h>
3251#include <string.h>
3252#include <float.h>
3193
3194int
3195main ()
3196{
3253
3254int
3255main ()
3256{
3197long long int i;
3257
3198 ;
3199 return 0;
3200}
3201_ACEOF
3202rm -f conftest.$ac_objext
3203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204 (eval $ac_compile) 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag"
3212 || test ! -s conftest.err'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>conftest.er1
3265 ac_status=$?
3266 grep -v '^ *+' conftest.er1 >conftest.err
3267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try='test -z "$ac_c_werror_flag"
3272 || test ! -s conftest.err'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3224 ac_cv_c_long_long=yes
3284 ac_cv_header_stdc=yes
3225else
3226 echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3229ac_cv_c_long_long=no
3289ac_cv_header_stdc=no
3230fi
3231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290fi
3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292
3293if test $ac_cv_header_stdc = yes; then
3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#include <string.h>
3302
3303_ACEOF
3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "memchr" >/dev/null 2>&1; then
3306 :
3307else
3308 ac_cv_header_stdc=no
3232fi
3309fi
3233echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3234echo "${ECHO_T}$ac_cv_c_long_long" >&6
3235 if test $ac_cv_c_long_long = yes; then
3310rm -f conftest*
3236
3311
3237cat >>confdefs.h <<\_ACEOF
3238#define HAVE_LONG_LONG 1
3312fi
3313
3314if test $ac_cv_header_stdc = yes; then
3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3239_ACEOF
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#include <stdlib.h>
3240
3323
3241 fi
3242echo "$as_me:$LINENO: checking for __int64" >&5
3243echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3244if test "${ac_cv_c___int64+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3324_ACEOF
3325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev/null 2>&1; then
3327 :
3246else
3328else
3329 ac_cv_header_stdc=no
3330fi
3331rm -f conftest*
3332
3333fi
3334
3335if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then
3338 :
3339else
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346#include <ctype.h>
3347#if ((' ' & 0x0FF) == 0x020)
3348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350#else
3351# define ISLOWER(c) \
3352 (('a' <= (c) && (c) <= 'i') \
3353 || ('j' <= (c) && (c) <= 'r') \
3354 || ('s' <= (c) && (c) <= 'z'))
3355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3356#endif
3253
3357
3358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3254int
3255main ()
3256{
3359int
3360main ()
3361{
3257__int64 i;
3258 ;
3259 return 0;
3362 int i;
3363 for (i = 0; i < 256; i++)
3364 if (XOR (islower (i), ISLOWER (i))
3365 || toupper (i) != TOUPPER (i))
3366 exit(2);
3367 exit (0);
3260}
3261_ACEOF
3368}
3369_ACEOF
3370rm -f conftest$ac_exeext
3371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372 (eval $ac_link) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 :
3382else
3383 echo "$as_me: program exited with status $ac_status" >&5
3384echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387( exit $ac_status )
3388ac_cv_header_stdc=no
3389fi
3390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3391fi
3392fi
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3395echo "${ECHO_T}$ac_cv_header_stdc" >&6
3396if test $ac_cv_header_stdc = yes; then
3397
3398cat >>confdefs.h <<\_ACEOF
3399#define STDC_HEADERS 1
3400_ACEOF
3401
3402fi
3403
3404# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3415 inttypes.h stdint.h unistd.h
3416do
3417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3418echo "$as_me:$LINENO: checking for $ac_header" >&5
3419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
3429$ac_includes_default
3430
3431#include <$ac_header>
3432_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>conftest.er1
3265 ac_status=$?
3266 grep -v '^ *+' conftest.er1 >conftest.err
3267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try='test -z "$ac_c_werror_flag"
3272 || test ! -s conftest.err'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3433rm -f conftest.$ac_objext
3434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3284 ac_cv_c___int64=yes
3455 eval "$as_ac_Header=yes"
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3289ac_cv_c___int64=no
3460eval "$as_ac_Header=no"
3290fi
3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
3461fi
3462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463fi
3293echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3294echo "${ECHO_T}$ac_cv_c___int64" >&6
3295 if test $ac_cv_c___int64 = yes; then
3296
3297cat >>confdefs.h <<\_ACEOF
3298#define HAVE___INT64 1
3464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466if test `eval echo '${'$as_ac_Header'}'` = yes; then
3467 cat >>confdefs.h <<_ACEOF
3468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3299_ACEOF
3300
3469_ACEOF
3470
3301 fi
3471fi
3302
3472
3303echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3304echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3305if test "${gcc_cv_c__bool+set}" = set; then
3473done
3474
3475
3476echo "$as_me:$LINENO: checking for void *" >&5
3477echo $ECHO_N "checking for void *... $ECHO_C" >&6
3478if test "${ac_cv_type_void_p+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308 cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481 cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
3314
3487$ac_includes_default
3315int
3316main ()
3317{
3488int
3489main ()
3490{
3318_Bool foo;
3491if ((void * *) 0)
3492 return 0;
3493if (sizeof (void *))
3494 return 0;
3319 ;
3320 return 0;
3321}
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag"
3333 || test ! -s conftest.err'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3495 ;
3496 return 0;
3497}
3498_ACEOF
3499rm -f conftest.$ac_objext
3500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_c_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3345 gcc_cv_c__bool=yes
3521 ac_cv_type_void_p=yes
3346else
3347 echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3522else
3523 echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3350gcc_cv_c__bool=no
3526ac_cv_type_void_p=no
3351fi
3352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527fi
3528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353
3354fi
3529fi
3355echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3356echo "${ECHO_T}$gcc_cv_c__bool" >&6
3357if test $gcc_cv_c__bool = yes; then
3530echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3531echo "${ECHO_T}$ac_cv_type_void_p" >&6
3358
3532
3359cat >>confdefs.h <<\_ACEOF
3360#define HAVE__BOOL 1
3361_ACEOF
3362
3363fi
3364
3365
3366# sizeof(char) is 1 by definition.
3367echo "$as_me:$LINENO: checking size of void *" >&5
3368echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3369if test "${ac_cv_sizeof_void_p+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3533echo "$as_me:$LINENO: checking size of void *" >&5
3534echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3535if test "${ac_cv_sizeof_void_p+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3372 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3373 cat >conftest.$ac_ext <<_ACEOF
3538 if test "$ac_cv_type_void_p" = yes; then
3539 # The cast to unsigned long works around a bug in the HP C Compiler
3540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3542 # This bug is HP SR number 8606223364.
3543 if test "$cross_compiling" = yes; then
3544 # Depending upon the size, compute the lo and hi bounds.
3545cat >conftest.$ac_ext <<_ACEOF
3374/* confdefs.h. */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h. */
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3379#include "confdefs.h"
3380#include <sys/types.h>
3551$ac_includes_default
3552int
3553main ()
3554{
3555static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3556test_array [0] = 0
3381
3557
3558 ;
3559 return 0;
3560}
3561_ACEOF
3562rm -f conftest.$ac_objext
3563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_lo=0 ac_mid=0
3585 while :; do
3586 cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h. */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h. */
3592$ac_includes_default
3593int
3594main ()
3595{
3596static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3597test_array [0] = 0
3382
3598
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603rm -f conftest.$ac_objext
3604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_hi=$ac_mid; break
3626else
3627 echo "$as_me: failed program was:" >&5
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630ac_lo=`expr $ac_mid + 1`
3631 if test $ac_lo -le $ac_mid; then
3632 ac_lo= ac_hi=
3633 break
3634 fi
3635 ac_mid=`expr 2 '*' $ac_mid + 1`
3636fi
3637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 done
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649$ac_includes_default
3383int
3384main ()
3385{
3650int
3651main ()
3652{
3386switch (0) case 0: case (sizeof (void *) == $ac_size):;
3653static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3654test_array [0] = 0
3655
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext
3392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3413 ac_cv_sizeof_void_p=$ac_size
3682 ac_hi=-1 ac_mid=-1
3683 while :; do
3684 cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h. */
3690$ac_includes_default
3691int
3692main ()
3693{
3694static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3695test_array [0] = 0
3696
3697 ;
3698 return 0;
3699}
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_lo=$ac_mid; break
3414else
3415 echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728ac_hi=`expr '(' $ac_mid ')' - 1`
3729 if test $ac_mid -le $ac_hi; then
3730 ac_lo= ac_hi=
3731 break
3732 fi
3733 ac_mid=`expr 2 '*' $ac_mid`
3418fi
3419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734fi
3735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3421done
3736 done
3737else
3738 echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3422
3740
3741ac_lo= ac_hi=
3423fi
3742fi
3743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746# Binary search between lo and hi bounds.
3747while test "x$ac_lo" != "x$ac_hi"; do
3748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3749 cat >conftest.$ac_ext <<_ACEOF
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
3755$ac_includes_default
3756int
3757main ()
3758{
3759static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3760test_array [0] = 0
3424
3761
3425if test x$ac_cv_sizeof_void_p = x ; then
3426 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3427echo "$as_me: error: cannot determine a size for void *" >&2;}
3762 ;
3763 return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_hi=$ac_mid
3789else
3790 echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793ac_lo=`expr '(' $ac_mid ')' + 1`
3794fi
3795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3796done
3797case $ac_lo in
3798?*) ac_cv_sizeof_void_p=$ac_lo;;
3799'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3800See \`config.log' for more details." >&5
3801echo "$as_me: error: cannot compute sizeof (void *), 77
3802See \`config.log' for more details." >&2;}
3803 { (exit 1); exit 1; }; } ;;
3804esac
3805else
3806 if test "$cross_compiling" = yes; then
3807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3808See \`config.log' for more details." >&5
3809echo "$as_me: error: cannot run test program while cross compiling
3810See \`config.log' for more details." >&2;}
3428 { (exit 1); exit 1; }; }
3811 { (exit 1); exit 1; }; }
3812else
3813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h. */
3819$ac_includes_default
3820long longval () { return (long) (sizeof (void *)); }
3821unsigned long ulongval () { return (long) (sizeof (void *)); }
3822#include <stdio.h>
3823#include <stdlib.h>
3824int
3825main ()
3826{
3827
3828 FILE *f = fopen ("conftest.val", "w");
3829 if (! f)
3830 exit (1);
3831 if (((long) (sizeof (void *))) < 0)
3832 {
3833 long i = longval ();
3834 if (i != ((long) (sizeof (void *))))
3835 exit (1);
3836 fprintf (f, "%ld\n", i);
3837 }
3838 else
3839 {
3840 unsigned long i = ulongval ();
3841 if (i != ((long) (sizeof (void *))))
3842 exit (1);
3843 fprintf (f, "%lu\n", i);
3844 }
3845 exit (ferror (f) || fclose (f) != 0);
3846
3847 ;
3848 return 0;
3849}
3850_ACEOF
3851rm -f conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_sizeof_void_p=`cat conftest.val`
3863else
3864 echo "$as_me: program exited with status $ac_status" >&5
3865echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868( exit $ac_status )
3869{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3870See \`config.log' for more details." >&5
3871echo "$as_me: error: cannot compute sizeof (void *), 77
3872See \`config.log' for more details." >&2;}
3873 { (exit 1); exit 1; }; }
3429fi
3874fi
3875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3876fi
3877fi
3878rm -f conftest.val
3879else
3880 ac_cv_sizeof_void_p=0
3881fi
3882fi
3430echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3431echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3883echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3884echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3432
3433cat >>confdefs.h <<_ACEOF
3434#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3435_ACEOF
3436
3437
3885cat >>confdefs.h <<_ACEOF
3886#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3887_ACEOF
3888
3889
3890echo "$as_me:$LINENO: checking for short" >&5
3891echo $ECHO_N "checking for short... $ECHO_C" >&6
3892if test "${ac_cv_type_short+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901$ac_includes_default
3902int
3903main ()
3904{
3905if ((short *) 0)
3906 return 0;
3907if (sizeof (short))
3908 return 0;
3909 ;
3910 return 0;
3911}
3912_ACEOF
3913rm -f conftest.$ac_objext
3914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915 (eval $ac_compile) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag"
3923 || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try='test -s conftest.$ac_objext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_type_short=yes
3936else
3937 echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940ac_cv_type_short=no
3941fi
3942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943fi
3944echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3945echo "${ECHO_T}$ac_cv_type_short" >&6
3946
3438echo "$as_me:$LINENO: checking size of short" >&5
3439echo $ECHO_N "checking size of short... $ECHO_C" >&6
3440if test "${ac_cv_sizeof_short+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3947echo "$as_me:$LINENO: checking size of short" >&5
3948echo $ECHO_N "checking size of short... $ECHO_C" >&6
3949if test "${ac_cv_sizeof_short+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3443 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3444 cat >conftest.$ac_ext <<_ACEOF
3952 if test "$ac_cv_type_short" = yes; then
3953 # The cast to unsigned long works around a bug in the HP C Compiler
3954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3956 # This bug is HP SR number 8606223364.
3957 if test "$cross_compiling" = yes; then
3958 # Depending upon the size, compute the lo and hi bounds.
3959cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
3960/* confdefs.h. */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h. */
3450#include "confdefs.h"
3451#include <sys/types.h>
3965$ac_includes_default
3966int
3967main ()
3968{
3969static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3970test_array [0] = 0
3452
3971
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext
3977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_c_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_lo=0 ac_mid=0
3999 while :; do
4000 cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006$ac_includes_default
4007int
4008main ()
4009{
4010static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4011test_array [0] = 0
3453
4012
4013 ;
4014 return 0;
4015}
4016_ACEOF
4017rm -f conftest.$ac_objext
4018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_hi=$ac_mid; break
4040else
4041 echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
4044ac_lo=`expr $ac_mid + 1`
4045 if test $ac_lo -le $ac_mid; then
4046 ac_lo= ac_hi=
4047 break
4048 fi
4049 ac_mid=`expr 2 '*' $ac_mid + 1`
4050fi
4051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 done
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063$ac_includes_default
3454int
3455main ()
3456{
4064int
4065main ()
4066{
3457switch (0) case 0: case (sizeof (short) == $ac_size):;
4067static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4068test_array [0] = 0
4069
3458 ;
3459 return 0;
3460}
3461_ACEOF
3462rm -f conftest.$ac_objext
3463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -z "$ac_c_werror_flag"
3472 || test ! -s conftest.err'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
4070 ;
4071 return 0;
4072}
4073_ACEOF
4074rm -f conftest.$ac_objext
4075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag"
4084 || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
3484 ac_cv_sizeof_short=$ac_size
4096 ac_hi=-1 ac_mid=-1
4097 while :; do
4098 cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104$ac_includes_default
4105int
4106main ()
4107{
4108static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4109test_array [0] = 0
4110
4111 ;
4112 return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext
4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_lo=$ac_mid; break
3485else
3486 echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
4138else
4139 echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142ac_hi=`expr '(' $ac_mid ')' - 1`
4143 if test $ac_mid -le $ac_hi; then
4144 ac_lo= ac_hi=
4145 break
4146 fi
4147 ac_mid=`expr 2 '*' $ac_mid`
3489fi
3490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4148fi
4149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491 if test x$ac_cv_sizeof_short != x ; then break; fi
3492done
4150 done
4151else
4152 echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
3493
4154
4155ac_lo= ac_hi=
3494fi
4156fi
4157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158fi
4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160# Binary search between lo and hi bounds.
4161while test "x$ac_lo" != "x$ac_hi"; do
4162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4163 cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169$ac_includes_default
4170int
4171main ()
4172{
4173static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4174test_array [0] = 0
3495
4175
3496if test x$ac_cv_sizeof_short = x ; then
3497 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3498echo "$as_me: error: cannot determine a size for short" >&2;}
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext
4181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_hi=$ac_mid
4203else
4204 echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207ac_lo=`expr '(' $ac_mid ')' + 1`
4208fi
4209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210done
4211case $ac_lo in
4212?*) ac_cv_sizeof_short=$ac_lo;;
4213'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4214See \`config.log' for more details." >&5
4215echo "$as_me: error: cannot compute sizeof (short), 77
4216See \`config.log' for more details." >&2;}
4217 { (exit 1); exit 1; }; } ;;
4218esac
4219else
4220 if test "$cross_compiling" = yes; then
4221 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4222See \`config.log' for more details." >&5
4223echo "$as_me: error: cannot run test program while cross compiling
4224See \`config.log' for more details." >&2;}
3499 { (exit 1); exit 1; }; }
4225 { (exit 1); exit 1; }; }
4226else
4227 cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
4233$ac_includes_default
4234long longval () { return (long) (sizeof (short)); }
4235unsigned long ulongval () { return (long) (sizeof (short)); }
4236#include <stdio.h>
4237#include <stdlib.h>
4238int
4239main ()
4240{
4241
4242 FILE *f = fopen ("conftest.val", "w");
4243 if (! f)
4244 exit (1);
4245 if (((long) (sizeof (short))) < 0)
4246 {
4247 long i = longval ();
4248 if (i != ((long) (sizeof (short))))
4249 exit (1);
4250 fprintf (f, "%ld\n", i);
4251 }
4252 else
4253 {
4254 unsigned long i = ulongval ();
4255 if (i != ((long) (sizeof (short))))
4256 exit (1);
4257 fprintf (f, "%lu\n", i);
4258 }
4259 exit (ferror (f) || fclose (f) != 0);
4260
4261 ;
4262 return 0;
4263}
4264_ACEOF
4265rm -f conftest$ac_exeext
4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_sizeof_short=`cat conftest.val`
4277else
4278 echo "$as_me: program exited with status $ac_status" >&5
4279echo "$as_me: failed program was:" >&5
4280sed 's/^/| /' conftest.$ac_ext >&5
4281
4282( exit $ac_status )
4283{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4284See \`config.log' for more details." >&5
4285echo "$as_me: error: cannot compute sizeof (short), 77
4286See \`config.log' for more details." >&2;}
4287 { (exit 1); exit 1; }; }
3500fi
4288fi
4289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290fi
4291fi
4292rm -f conftest.val
4293else
4294 ac_cv_sizeof_short=0
4295fi
4296fi
3501echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3502echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4297echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4298echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3503
3504cat >>confdefs.h <<_ACEOF
3505#define SIZEOF_SHORT $ac_cv_sizeof_short
3506_ACEOF
3507
3508
4299cat >>confdefs.h <<_ACEOF
4300#define SIZEOF_SHORT $ac_cv_sizeof_short
4301_ACEOF
4302
4303
4304echo "$as_me:$LINENO: checking for int" >&5
4305echo $ECHO_N "checking for int... $ECHO_C" >&6
4306if test "${ac_cv_type_int+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309 cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h. */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */
4315$ac_includes_default
4316int
4317main ()
4318{
4319if ((int *) 0)
4320 return 0;
4321if (sizeof (int))
4322 return 0;
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest.$ac_objext
4328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_type_int=yes
4350else
4351 echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354ac_cv_type_int=no
4355fi
4356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357fi
4358echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4359echo "${ECHO_T}$ac_cv_type_int" >&6
4360
3509echo "$as_me:$LINENO: checking size of int" >&5
3510echo $ECHO_N "checking size of int... $ECHO_C" >&6
3511if test "${ac_cv_sizeof_int+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
4361echo "$as_me:$LINENO: checking size of int" >&5
4362echo $ECHO_N "checking size of int... $ECHO_C" >&6
4363if test "${ac_cv_sizeof_int+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
3514 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3515 cat >conftest.$ac_ext <<_ACEOF
4366 if test "$ac_cv_type_int" = yes; then
4367 # The cast to unsigned long works around a bug in the HP C Compiler
4368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4370 # This bug is HP SR number 8606223364.
4371 if test "$cross_compiling" = yes; then
4372 # Depending upon the size, compute the lo and hi bounds.
4373cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
4374/* confdefs.h. */
4375_ACEOF
4376cat confdefs.h >>conftest.$ac_ext
4377cat >>conftest.$ac_ext <<_ACEOF
4378/* end confdefs.h. */
3521#include "confdefs.h"
3522#include <sys/types.h>
4379$ac_includes_default
4380int
4381main ()
4382{
4383static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4384test_array [0] = 0
3523
4385
3524
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 ac_lo=0 ac_mid=0
4413 while :; do
4414 cat >conftest.$ac_ext <<_ACEOF
4415/* confdefs.h. */
4416_ACEOF
4417cat confdefs.h >>conftest.$ac_ext
4418cat >>conftest.$ac_ext <<_ACEOF
4419/* end confdefs.h. */
4420$ac_includes_default
3525int
3526main ()
3527{
4421int
4422main ()
4423{
3528switch (0) case 0: case (sizeof (int) == $ac_size):;
4424static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4425test_array [0] = 0
4426
3529 ;
3530 return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
4427 ;
4428 return 0;
4429}
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
3555 ac_cv_sizeof_int=$ac_size
4453 ac_hi=$ac_mid; break
3556else
3557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
4454else
4455 echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458ac_lo=`expr $ac_mid + 1`
4459 if test $ac_lo -le $ac_mid; then
4460 ac_lo= ac_hi=
4461 break
4462 fi
4463 ac_mid=`expr 2 '*' $ac_mid + 1`
3560fi
3561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4464fi
4465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562 if test x$ac_cv_sizeof_int != x ; then break; fi
3563done
4466 done
4467else
4468 echo "$as_me: failed program was:" >&5
4469sed 's/^/| /' conftest.$ac_ext >&5
3564
4470
3565fi
4471cat >conftest.$ac_ext <<_ACEOF
4472/* confdefs.h. */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h. */
4477$ac_includes_default
4478int
4479main ()
4480{
4481static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4482test_array [0] = 0
3566
4483
3567if test x$ac_cv_sizeof_int = x ; then
3568 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3569echo "$as_me: error: cannot determine a size for int" >&2;}
3570 { (exit 1); exit 1; }; }
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3573echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4484 ;
4485 return 0;
4486}
4487_ACEOF
4488rm -f conftest.$ac_objext
4489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_hi=-1 ac_mid=-1
4511 while :; do
4512 cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h. */
4518$ac_includes_default
4519int
4520main ()
4521{
4522static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4523test_array [0] = 0
3574
4524
3575cat >>confdefs.h <<_ACEOF
3576#define SIZEOF_INT $ac_cv_sizeof_int
4525 ;
4526 return 0;
4527}
3577_ACEOF
4528_ACEOF
4529rm -f conftest.$ac_objext
4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_lo=$ac_mid; break
4552else
4553 echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
3578
4555
3579
3580echo "$as_me:$LINENO: checking size of long" >&5
3581echo $ECHO_N "checking size of long... $ECHO_C" >&6
3582if test "${ac_cv_sizeof_long+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
4556ac_hi=`expr '(' $ac_mid ')' - 1`
4557 if test $ac_mid -le $ac_hi; then
4558 ac_lo= ac_hi=
4559 break
4560 fi
4561 ac_mid=`expr 2 '*' $ac_mid`
4562fi
4563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564 done
3584else
4565else
3585 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4566 echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569ac_lo= ac_hi=
4570fi
4571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572fi
4573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574# Binary search between lo and hi bounds.
4575while test "x$ac_lo" != "x$ac_hi"; do
4576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3586 cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h. */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h. */
4577 cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h. */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h. */
3592#include "confdefs.h"
3593#include <sys/types.h>
3594
3595
4583$ac_includes_default
3596int
3597main ()
3598{
4584int
4585main ()
4586{
3599switch (0) case 0: case (sizeof (long) == $ac_size):;
4587static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4588test_array [0] = 0
4589
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
4590 ;
4591 return 0;
4592}
4593_ACEOF
4594rm -f conftest.$ac_objext
4595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -z "$ac_c_werror_flag"
4604 || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
3626 ac_cv_sizeof_long=$ac_size
4616 ac_hi=$ac_mid
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621ac_lo=`expr '(' $ac_mid ')' + 1`
3631fi
3632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 if test x$ac_cv_sizeof_long != x ; then break; fi
3634done
4624done
4625case $ac_lo in
4626?*) ac_cv_sizeof_int=$ac_lo;;
4627'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4628See \`config.log' for more details." >&5
4629echo "$as_me: error: cannot compute sizeof (int), 77
4630See \`config.log' for more details." >&2;}
4631 { (exit 1); exit 1; }; } ;;
4632esac
4633else
4634 if test "$cross_compiling" = yes; then
4635 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4636See \`config.log' for more details." >&5
4637echo "$as_me: error: cannot run test program while cross compiling
4638See \`config.log' for more details." >&2;}
4639 { (exit 1); exit 1; }; }
4640else
4641 cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647$ac_includes_default
4648long longval () { return (long) (sizeof (int)); }
4649unsigned long ulongval () { return (long) (sizeof (int)); }
4650#include <stdio.h>
4651#include <stdlib.h>
4652int
4653main ()
4654{
3635
4655
3636fi
4656 FILE *f = fopen ("conftest.val", "w");
4657 if (! f)
4658 exit (1);
4659 if (((long) (sizeof (int))) < 0)
4660 {
4661 long i = longval ();
4662 if (i != ((long) (sizeof (int))))
4663 exit (1);
4664 fprintf (f, "%ld\n", i);
4665 }
4666 else
4667 {
4668 unsigned long i = ulongval ();
4669 if (i != ((long) (sizeof (int))))
4670 exit (1);
4671 fprintf (f, "%lu\n", i);
4672 }
4673 exit (ferror (f) || fclose (f) != 0);
3637
4674
3638if test x$ac_cv_sizeof_long = x ; then
3639 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3640echo "$as_me: error: cannot determine a size for long" >&2;}
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679rm -f conftest$ac_exeext
4680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_sizeof_int=`cat conftest.val`
4691else
4692 echo "$as_me: program exited with status $ac_status" >&5
4693echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696( exit $ac_status )
4697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4698See \`config.log' for more details." >&5
4699echo "$as_me: error: cannot compute sizeof (int), 77
4700See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3642fi
4701 { (exit 1); exit 1; }; }
4702fi
3643echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3644echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3645
4703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704fi
4705fi
4706rm -f conftest.val
4707else
4708 ac_cv_sizeof_int=0
4709fi
4710fi
4711echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4712echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3646cat >>confdefs.h <<_ACEOF
4713cat >>confdefs.h <<_ACEOF
3647#define SIZEOF_LONG $ac_cv_sizeof_long
4714#define SIZEOF_INT $ac_cv_sizeof_int
3648_ACEOF
3649
3650
4715_ACEOF
4716
4717
3651if test $ac_cv_c_long_long = yes; then
3652 echo "$as_me:$LINENO: checking size of long long" >&5
3653echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3654if test "${ac_cv_sizeof_long_long+set}" = set; then
4718echo "$as_me:$LINENO: checking for long" >&5
4719echo $ECHO_N "checking for long... $ECHO_C" >&6
4720if test "${ac_cv_type_long+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
3657 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3658 cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
4723 cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
3664#include "confdefs.h"
3665#include <sys/types.h>
3666
3667
4729$ac_includes_default
3668int
3669main ()
3670{
4730int
4731main ()
4732{
3671switch (0) case 0: case (sizeof (long long) == $ac_size):;
4733if ((long *) 0)
4734 return 0;
4735if (sizeof (long))
4736 return 0;
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
4737 ;
4738 return 0;
4739}
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
3698 ac_cv_sizeof_long_long=$ac_size
4763 ac_cv_type_long=yes
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
4764else
4765 echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768ac_cv_type_long=no
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769fi
4770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3706done
3707
3708fi
4771fi
4772echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4773echo "${ECHO_T}$ac_cv_type_long" >&6
3709
4774
3710if test x$ac_cv_sizeof_long_long = x ; then
3711 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3712echo "$as_me: error: cannot determine a size for long long" >&2;}
3713 { (exit 1); exit 1; }; }
3714fi
3715echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3716echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4775echo "$as_me:$LINENO: checking size of long" >&5
4776echo $ECHO_N "checking size of long... $ECHO_C" >&6
4777if test "${ac_cv_sizeof_long+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 if test "$ac_cv_type_long" = yes; then
4781 # The cast to unsigned long works around a bug in the HP C Compiler
4782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4784 # This bug is HP SR number 8606223364.
4785 if test "$cross_compiling" = yes; then
4786 # Depending upon the size, compute the lo and hi bounds.
4787cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h. */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h. */
4793$ac_includes_default
4794int
4795main ()
4796{
4797static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4798test_array [0] = 0
3717
4799
3718cat >>confdefs.h <<_ACEOF
3719#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4800 ;
4801 return 0;
4802}
3720_ACEOF
4803_ACEOF
4804rm -f conftest.$ac_objext
4805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest.$ac_objext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_lo=0 ac_mid=0
4827 while :; do
4828 cat >conftest.$ac_ext <<_ACEOF
4829/* confdefs.h. */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h. */
4834$ac_includes_default
4835int
4836main ()
4837{
4838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4839test_array [0] = 0
3721
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845rm -f conftest.$ac_objext
4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_c_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_hi=$ac_mid; break
4868else
4869 echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
3722
4871
4872ac_lo=`expr $ac_mid + 1`
4873 if test $ac_lo -le $ac_mid; then
4874 ac_lo= ac_hi=
4875 break
4876 fi
4877 ac_mid=`expr 2 '*' $ac_mid + 1`
3723fi
4878fi
3724if test $ac_cv_c___int64 = yes; then
3725 echo "$as_me:$LINENO: checking size of __int64" >&5
3726echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3727if test "${ac_cv_sizeof___int64+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
4879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880 done
3729else
4881else
3730 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3731 cat >conftest.$ac_ext <<_ACEOF
4882 echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
4886/* confdefs.h. */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h. */
3737#include "confdefs.h"
3738#include <sys/types.h>
4891$ac_includes_default
4892int
4893main ()
4894{
4895static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4896test_array [0] = 0
3739
4897
3740
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.$ac_objext
4903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_hi=-1 ac_mid=-1
4925 while :; do
4926 cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932$ac_includes_default
3741int
3742main ()
3743{
4933int
4934main ()
4935{
3744switch (0) case 0: case (sizeof (__int64) == $ac_size):;
4936static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4937test_array [0] = 0
4938
3745 ;
3746 return 0;
3747}
3748_ACEOF
3749rm -f conftest.$ac_objext
3750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
4939 ;
4940 return 0;
4941}
4942_ACEOF
4943rm -f conftest.$ac_objext
4944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
3771 ac_cv_sizeof___int64=$ac_size
4965 ac_lo=$ac_mid; break
3772else
3773 echo "$as_me: failed program was:" >&5
3774sed 's/^/| /' conftest.$ac_ext >&5
3775
4966else
4967 echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970ac_hi=`expr '(' $ac_mid ')' - 1`
4971 if test $ac_mid -le $ac_hi; then
4972 ac_lo= ac_hi=
4973 break
4974 fi
4975 ac_mid=`expr 2 '*' $ac_mid`
3776fi
3777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4976fi
4977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3779done
4978 done
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
3780
4982
4983ac_lo= ac_hi=
3781fi
4984fi
3782
3783if test x$ac_cv_sizeof___int64 = x ; then
3784 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3785echo "$as_me: error: cannot determine a size for __int64" >&2;}
3786 { (exit 1); exit 1; }; }
4985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
4986fi
3788echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3789echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
4987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988# Binary search between lo and hi bounds.
4989while test "x$ac_lo" != "x$ac_hi"; do
4990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4991 cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h. */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h. */
4997$ac_includes_default
4998int
4999main ()
5000{
5001static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5002test_array [0] = 0
3790
5003
3791cat >>confdefs.h <<_ACEOF
3792#define SIZEOF___INT64 $ac_cv_sizeof___int64
5004 ;
5005 return 0;
5006}
3793_ACEOF
5007_ACEOF
5008rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_hi=$ac_mid
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
3794
5034
3795
5035ac_lo=`expr '(' $ac_mid ')' + 1`
3796fi
5036fi
5037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038done
5039case $ac_lo in
5040?*) ac_cv_sizeof_long=$ac_lo;;
5041'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5042See \`config.log' for more details." >&5
5043echo "$as_me: error: cannot compute sizeof (long), 77
5044See \`config.log' for more details." >&2;}
5045 { (exit 1); exit 1; }; } ;;
5046esac
5047else
5048 if test "$cross_compiling" = yes; then
5049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5050See \`config.log' for more details." >&5
5051echo "$as_me: error: cannot run test program while cross compiling
5052See \`config.log' for more details." >&2;}
5053 { (exit 1); exit 1; }; }
5054else
5055 cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h. */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h. */
5061$ac_includes_default
5062long longval () { return (long) (sizeof (long)); }
5063unsigned long ulongval () { return (long) (sizeof (long)); }
5064#include <stdio.h>
5065#include <stdlib.h>
5066int
5067main ()
5068{
3797
5069
3798# -----------------
3799# Find Ada compiler
3800# -----------------
5070 FILE *f = fopen ("conftest.val", "w");
5071 if (! f)
5072 exit (1);
5073 if (((long) (sizeof (long))) < 0)
5074 {
5075 long i = longval ();
5076 if (i != ((long) (sizeof (long))))
5077 exit (1);
5078 fprintf (f, "%ld\n", i);
5079 }
5080 else
5081 {
5082 unsigned long i = ulongval ();
5083 if (i != ((long) (sizeof (long))))
5084 exit (1);
5085 fprintf (f, "%lu\n", i);
5086 }
5087 exit (ferror (f) || fclose (f) != 0);
3801
5088
3802# See if GNAT has been installed
3803
3804
3805
3806if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3808set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3809echo "$as_me:$LINENO: checking for $ac_word" >&5
3810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811if test "${ac_cv_prog_GNATBIND+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest$ac_exeext
5094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 ac_cv_sizeof_long=`cat conftest.val`
3813else
5105else
3814 if test -n "$GNATBIND"; then
3815 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828done
3829done
5106 echo "$as_me: program exited with status $ac_status" >&5
5107echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
3830
5109
5110( exit $ac_status )
5111{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5112See \`config.log' for more details." >&5
5113echo "$as_me: error: cannot compute sizeof (long), 77
5114See \`config.log' for more details." >&2;}
5115 { (exit 1); exit 1; }; }
3831fi
5116fi
5117rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3832fi
5118fi
3833GNATBIND=$ac_cv_prog_GNATBIND
3834if test -n "$GNATBIND"; then
3835 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3836echo "${ECHO_T}$GNATBIND" >&6
5119fi
5120rm -f conftest.val
3837else
5121else
3838 echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
5122 ac_cv_sizeof_long=0
3840fi
5123fi
3841
3842fi
5124fi
3843if test -z "$ac_cv_prog_GNATBIND"; then
3844 ac_ct_GNATBIND=$GNATBIND
3845 # Extract the first word of "gnatbind", so it can be a program name with args.
3846set dummy gnatbind; ac_word=$2
3847echo "$as_me:$LINENO: checking for $ac_word" >&5
3848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
5125echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5126echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5127cat >>confdefs.h <<_ACEOF
5128#define SIZEOF_LONG $ac_cv_sizeof_long
5129_ACEOF
5130
5131
5132echo "$as_me:$LINENO: checking for long long" >&5
5133echo $ECHO_N "checking for long long... $ECHO_C" >&6
5134if test "${ac_cv_type_long_long+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
3852 if test -n "$ac_ct_GNATBIND"; then
3853 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143$ac_includes_default
5144int
5145main ()
5146{
5147if ((long long *) 0)
5148 return 0;
5149if (sizeof (long long))
5150 return 0;
5151 ;
5152 return 0;
5153}
5154_ACEOF
5155rm -f conftest.$ac_objext
5156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_type_long_long=yes
3854else
5178else
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866done
3867done
5179 echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
3868
5181
3869 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
5182ac_cv_type_long_long=no
3870fi
5183fi
5184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871fi
5185fi
3872ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3873if test -n "$ac_ct_GNATBIND"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3875echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3876else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879fi
5186echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5187echo "${ECHO_T}$ac_cv_type_long_long" >&6
5188if test $ac_cv_type_long_long = yes; then
3880
5189
3881 GNATBIND=$ac_ct_GNATBIND
3882else
3883 GNATBIND="$ac_cv_prog_GNATBIND"
3884fi
5190cat >>confdefs.h <<_ACEOF
5191#define HAVE_LONG_LONG 1
5192_ACEOF
3885
5193
3886echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3887echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3888if test "${gcc_cv_cc_supports_ada+set}" = set; then
5194echo "$as_me:$LINENO: checking for long long" >&5
5195echo $ECHO_N "checking for long long... $ECHO_C" >&6
5196if test "${ac_cv_type_long_long+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
3891 cat >conftest.adb <<EOF
3892procedure conftest is begin null; end conftest;
3893EOF
3894gcc_cv_cc_supports_ada=no
3895# There is a bug in old released versions of GCC which causes the
3896# driver to exit successfully when the appropriate language module
3897# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3898# Therefore we must check for the error message as well as an
3899# unsuccessful exit.
3900# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3901# given a .adb file, but produce no object file. So we must check
3902# if an object file was really produced to guard against this.
3903errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3904if test x"$errors" = x && test -f conftest.$ac_objext; then
3905 gcc_cv_cc_supports_ada=yes
3906 break
5199 cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h. */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h. */
5205$ac_includes_default
5206int
5207main ()
5208{
5209if ((long long *) 0)
5210 return 0;
5211if (sizeof (long long))
5212 return 0;
5213 ;
5214 return 0;
5215}
5216_ACEOF
5217rm -f conftest.$ac_objext
5218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 (eval $ac_try) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_type_long_long=yes
5240else
5241 echo "$as_me: failed program was:" >&5
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
5244ac_cv_type_long_long=no
3907fi
5245fi
3908rm -f conftest.*
5246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
5247fi
3910echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3911echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
5248echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5249echo "${ECHO_T}$ac_cv_type_long_long" >&6
3912
5250
3913if test x$GNATBIND != xno && test x$gcc_cv_cc_supports_ada != xno; then
3914 have_gnat=yes
5251echo "$as_me:$LINENO: checking size of long long" >&5
5252echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5253if test "${ac_cv_sizeof_long_long+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
5255else
3916 have_gnat=no
3917fi
5256 if test "$ac_cv_type_long_long" = yes; then
5257 # The cast to unsigned long works around a bug in the HP C Compiler
5258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5260 # This bug is HP SR number 8606223364.
5261 if test "$cross_compiling" = yes; then
5262 # Depending upon the size, compute the lo and hi bounds.
5263cat >conftest.$ac_ext <<_ACEOF
5264/* confdefs.h. */
5265_ACEOF
5266cat confdefs.h >>conftest.$ac_ext
5267cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h. */
5269$ac_includes_default
5270int
5271main ()
5272{
5273static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5274test_array [0] = 0
3918
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 ac_lo=0 ac_mid=0
5303 while :; do
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310$ac_includes_default
5311int
5312main ()
5313{
5314static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5315test_array [0] = 0
3919
5316
3920# ---------------------
3921# Warnings and checking
3922# ---------------------
5317 ;
5318 return 0;
5319}
5320_ACEOF
5321rm -f conftest.$ac_objext
5322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323 (eval $ac_compile) 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try='test -z "$ac_c_werror_flag"
5331 || test ! -s conftest.err'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_hi=$ac_mid; break
5344else
5345 echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
3923
5347
3924strict1_warn=
3925if test $ac_cv_prog_cc_no_long_long = yes ; then
3926 strict1_warn="-pedantic -Wno-long-long"
5348ac_lo=`expr $ac_mid + 1`
5349 if test $ac_lo -le $ac_mid; then
5350 ac_lo= ac_hi=
5351 break
5352 fi
5353 ac_mid=`expr 2 '*' $ac_mid + 1`
3927fi
5354fi
5355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 done
5357else
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
3928
5360
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367$ac_includes_default
5368int
5369main ()
5370{
5371static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5372test_array [0] = 0
3929
5373
3930# If the native compiler is GCC, we can enable warnings even in stage1.
3931# That's useful for people building cross-compilers, or just running a
3932# quick `make'.
3933warn_cflags=
3934if test "x$GCC" = "xyes"; then
3935 warn_cflags='$(GCC_WARN_CFLAGS)'
3936fi
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_hi=-1 ac_mid=-1
5401 while :; do
5402 cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408$ac_includes_default
5409int
5410main ()
5411{
5412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5413test_array [0] = 0
3937
5414
5415 ;
5416 return 0;
5417}
5418_ACEOF
5419rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag"
5429 || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_lo=$ac_mid; break
5442else
5443 echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
3938
5445
3939# Enable -Werror in bootstrap stage2 and later.
3940# Change the default to "no" on release branches.
3941# Check whether --enable-werror or --disable-werror was given.
3942if test "${enable_werror+set}" = set; then
3943 enableval="$enable_werror"
3944
5446ac_hi=`expr '(' $ac_mid ')' - 1`
5447 if test $ac_mid -le $ac_hi; then
5448 ac_lo= ac_hi=
5449 break
5450 fi
5451 ac_mid=`expr 2 '*' $ac_mid`
5452fi
5453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454 done
3945else
5455else
3946 enable_werror=no
3947fi;
3948if test x$enable_werror = xyes ; then
3949 WERROR=-Werror
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459ac_lo= ac_hi=
3950fi
5460fi
5461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462fi
5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464# Binary search between lo and hi bounds.
5465while test "x$ac_lo" != "x$ac_hi"; do
5466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473$ac_includes_default
5474int
5475main ()
5476{
5477static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5478test_array [0] = 0
3951
5479
5480 ;
5481 return 0;
5482}
5483_ACEOF
5484rm -f conftest.$ac_objext
5485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -z "$ac_c_werror_flag"
5494 || test ! -s conftest.err'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_hi=$ac_mid
5507else
5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
3952
5510
3953# Enable expensive internal checks
3954# Check whether --enable-checking or --disable-checking was given.
3955if test "${enable_checking+set}" = set; then
3956 enableval="$enable_checking"
3957 ac_checking=
3958ac_tree_checking=
3959ac_rtl_checking=
3960ac_rtlflag_checking=
3961ac_gc_checking=
3962ac_gc_always_collect=
3963ac_fold_checking=
3964case "${enableval}" in
3965yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3966 ac_rtlflag_checking=1 ;;
3967no) ;;
3968*) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3969 set fnord $enableval; shift
3970 IFS="$ac_save_IFS"
3971 for check
3972 do
3973 case $check in
3974 misc) ac_checking=1 ;;
3975 tree) ac_tree_checking=1 ;;
3976 rtlflag) ac_rtlflag_checking=1 ;;
3977 rtl) ac_rtl_checking=1 ;;
3978 gc) ac_gc_checking=1 ;;
3979 gcac) ac_gc_always_collect=1 ;;
3980 fold) ac_fold_checking=1 ;;
3981 valgrind) ac_checking_valgrind=1 ;;
3982 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3983echo "$as_me: error: unknown check category $check" >&2;}
5511ac_lo=`expr '(' $ac_mid ')' + 1`
5512fi
5513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514done
5515case $ac_lo in
5516?*) ac_cv_sizeof_long_long=$ac_lo;;
5517'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5518See \`config.log' for more details." >&5
5519echo "$as_me: error: cannot compute sizeof (long long), 77
5520See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; } ;;
5521 { (exit 1); exit 1; }; } ;;
3985 esac
3986 done
3987 ;;
3988esac
5522esac
3989
3990else
5523else
3991 # By default, disable all checks for release versions of GCC.
3992ac_checking=; ac_tree_checking=; ac_gc_checking=; ac_rtlflag_checking=;
3993fi;
3994nocommon_flag=""
3995if test x$ac_checking != x ; then
3996
3997cat >>confdefs.h <<\_ACEOF
3998#define ENABLE_CHECKING 1
5524 if test "$cross_compiling" = yes; then
5525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5526See \`config.log' for more details." >&5
5527echo "$as_me: error: cannot run test program while cross compiling
5528See \`config.log' for more details." >&2;}
5529 { (exit 1); exit 1; }; }
5530else
5531 cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
3999_ACEOF
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
5537$ac_includes_default
5538long longval () { return (long) (sizeof (long long)); }
5539unsigned long ulongval () { return (long) (sizeof (long long)); }
5540#include <stdio.h>
5541#include <stdlib.h>
5542int
5543main ()
5544{
4000
5545
4001 nocommon_flag=-fno-common
4002fi
5546 FILE *f = fopen ("conftest.val", "w");
5547 if (! f)
5548 exit (1);
5549 if (((long) (sizeof (long long))) < 0)
5550 {
5551 long i = longval ();
5552 if (i != ((long) (sizeof (long long))))
5553 exit (1);
5554 fprintf (f, "%ld\n", i);
5555 }
5556 else
5557 {
5558 unsigned long i = ulongval ();
5559 if (i != ((long) (sizeof (long long))))
5560 exit (1);
5561 fprintf (f, "%lu\n", i);
5562 }
5563 exit (ferror (f) || fclose (f) != 0);
4003
5564
4004if test x$ac_tree_checking != x ; then
4005
4006cat >>confdefs.h <<\_ACEOF
4007#define ENABLE_TREE_CHECKING 1
5565 ;
5566 return 0;
5567}
4008_ACEOF
5568_ACEOF
5569rm -f conftest$ac_exeext
5570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 (eval $ac_try) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 ac_cv_sizeof_long_long=`cat conftest.val`
5581else
5582 echo "$as_me: program exited with status $ac_status" >&5
5583echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
4009
5585
5586( exit $ac_status )
5587{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5588See \`config.log' for more details." >&5
5589echo "$as_me: error: cannot compute sizeof (long long), 77
5590See \`config.log' for more details." >&2;}
5591 { (exit 1); exit 1; }; }
4010fi
5592fi
4011if test x$ac_rtl_checking != x ; then
4012
4013cat >>confdefs.h <<\_ACEOF
4014#define ENABLE_RTL_CHECKING 1
4015_ACEOF
4016
5593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4017fi
5594fi
4018if test x$ac_rtlflag_checking != x ; then
4019
4020cat >>confdefs.h <<\_ACEOF
4021#define ENABLE_RTL_FLAG_CHECKING 1
4022_ACEOF
4023
4024fi
5595fi
4025if test x$ac_gc_checking != x ; then
4026
4027cat >>confdefs.h <<\_ACEOF
4028#define ENABLE_GC_CHECKING 1
5596rm -f conftest.val
5597else
5598 ac_cv_sizeof_long_long=0
5599fi
5600fi
5601echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5602echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5603cat >>confdefs.h <<_ACEOF
5604#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4029_ACEOF
4030
5605_ACEOF
5606
5607
4031fi
5608fi
4032if test x$ac_gc_always_collect != x ; then
4033
5609
4034cat >>confdefs.h <<\_ACEOF
4035#define ENABLE_GC_ALWAYS_COLLECT 1
5610echo "$as_me:$LINENO: checking for __int64" >&5
5611echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5612if test "${ac_cv_type___int64+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614else
5615 cat >conftest.$ac_ext <<_ACEOF
5616/* confdefs.h. */
4036_ACEOF
5617_ACEOF
5618cat confdefs.h >>conftest.$ac_ext
5619cat >>conftest.$ac_ext <<_ACEOF
5620/* end confdefs.h. */
5621$ac_includes_default
5622int
5623main ()
5624{
5625if ((__int64 *) 0)
5626 return 0;
5627if (sizeof (__int64))
5628 return 0;
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_cv_type___int64=yes
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
4037
5659
5660ac_cv_type___int64=no
4038fi
5661fi
4039if test x$ac_fold_checking != x ; then
5662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663fi
5664echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5665echo "${ECHO_T}$ac_cv_type___int64" >&6
5666if test $ac_cv_type___int64 = yes; then
4040
5667
4041cat >>confdefs.h <<\_ACEOF
4042#define ENABLE_FOLD_CHECKING 1
5668cat >>confdefs.h <<_ACEOF
5669#define HAVE___INT64 1
4043_ACEOF
4044
5670_ACEOF
5671
4045fi
4046valgrind_path_defines=
4047valgrind_command=
4048
4049
4050echo "$as_me:$LINENO: checking for egrep" >&5
4051echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4052if test "${ac_cv_prog_egrep+set}" = set; then
5672echo "$as_me:$LINENO: checking for __int64" >&5
5673echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5674if test "${ac_cv_type___int64+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
4055 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4056 then ac_cv_prog_egrep='grep -E'
4057 else ac_cv_prog_egrep='egrep'
4058 fi
5677 cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683$ac_includes_default
5684int
5685main ()
5686{
5687if ((__int64 *) 0)
5688 return 0;
5689if (sizeof (__int64))
5690 return 0;
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext
5696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -z "$ac_c_werror_flag"
5705 || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_type___int64=yes
5718else
5719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722ac_cv_type___int64=no
4059fi
5723fi
4060echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4061echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4062 EGREP=$ac_cv_prog_egrep
5724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725fi
5726echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5727echo "${ECHO_T}$ac_cv_type___int64" >&6
4063
5728
4064
4065echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4066echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4067if test "${ac_cv_header_stdc+set}" = set; then
5729echo "$as_me:$LINENO: checking size of __int64" >&5
5730echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5731if test "${ac_cv_sizeof___int64+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
4070 cat >conftest.$ac_ext <<_ACEOF
5734 if test "$ac_cv_type___int64" = yes; then
5735 # The cast to unsigned long works around a bug in the HP C Compiler
5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738 # This bug is HP SR number 8606223364.
5739 if test "$cross_compiling" = yes; then
5740 # Depending upon the size, compute the lo and hi bounds.
5741cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */
4076#include <stdlib.h>
4077#include <stdarg.h>
4078#include <string.h>
4079#include <float.h>
5747$ac_includes_default
5748int
5749main ()
5750{
5751static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5752test_array [0] = 0
4080
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_lo=0 ac_mid=0
5781 while :; do
5782 cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788$ac_includes_default
4081int
4082main ()
4083{
5789int
5790main ()
5791{
5792static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5793test_array [0] = 0
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089rm -f conftest.$ac_objext
4090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_c_werror_flag"
4099 || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
5794
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext
5800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
4111 ac_cv_header_stdc=yes
5821 ac_hi=$ac_mid; break
4112else
4113 echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
5822else
5823 echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
4116ac_cv_header_stdc=no
5826ac_lo=`expr $ac_mid + 1`
5827 if test $ac_lo -le $ac_mid; then
5828 ac_lo= ac_hi=
5829 break
5830 fi
5831 ac_mid=`expr 2 '*' $ac_mid + 1`
4117fi
4118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832fi
5833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834 done
5835else
5836 echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
4119
5838
4120if test $ac_cv_header_stdc = yes; then
4121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4122 cat >conftest.$ac_ext <<_ACEOF
5839cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h. */
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
4128#include <string.h>
5845$ac_includes_default
5846int
5847main ()
5848{
5849static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5850test_array [0] = 0
4129
5851
5852 ;
5853 return 0;
5854}
4130_ACEOF
5855_ACEOF
4131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 $EGREP "memchr" >/dev/null 2>&1; then
4133 :
5856rm -f conftest.$ac_objext
5857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_hi=-1 ac_mid=-1
5879 while :; do
5880 cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
5886$ac_includes_default
5887int
5888main ()
5889{
5890static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5891test_array [0] = 0
5892
5893 ;
5894 return 0;
5895}
5896_ACEOF
5897rm -f conftest.$ac_objext
5898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
5906 { ac_try='test -z "$ac_c_werror_flag"
5907 || test ! -s conftest.err'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_lo=$ac_mid; break
4134else
5920else
4135 ac_cv_header_stdc=no
4136fi
4137rm -f conftest*
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
4138
5923
5924ac_hi=`expr '(' $ac_mid ')' - 1`
5925 if test $ac_mid -le $ac_hi; then
5926 ac_lo= ac_hi=
5927 break
5928 fi
5929 ac_mid=`expr 2 '*' $ac_mid`
4139fi
5930fi
5931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 done
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
4140
5936
4141if test $ac_cv_header_stdc = yes; then
4142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5937ac_lo= ac_hi=
5938fi
5939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942# Binary search between lo and hi bounds.
5943while test "x$ac_lo" != "x$ac_hi"; do
5944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
5945 cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
4149#include <stdlib.h>
5951$ac_includes_default
5952int
5953main ()
5954{
5955static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5956test_array [0] = 0
4150
5957
5958 ;
5959 return 0;
5960}
4151_ACEOF
5961_ACEOF
4152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 $EGREP "free" >/dev/null 2>&1; then
4154 :
5962rm -f conftest.$ac_objext
5963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_hi=$ac_mid
4155else
5985else
4156 ac_cv_header_stdc=no
4157fi
4158rm -f conftest*
5986 echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
4159
5988
5989ac_lo=`expr '(' $ac_mid ')' + 1`
4160fi
5990fi
4161
4162if test $ac_cv_header_stdc = yes; then
4163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992done
5993case $ac_lo in
5994?*) ac_cv_sizeof___int64=$ac_lo;;
5995'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5996See \`config.log' for more details." >&5
5997echo "$as_me: error: cannot compute sizeof (__int64), 77
5998See \`config.log' for more details." >&2;}
5999 { (exit 1); exit 1; }; } ;;
6000esac
6001else
4164 if test "$cross_compiling" = yes; then
6002 if test "$cross_compiling" = yes; then
4165 :
6003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6004See \`config.log' for more details." >&5
6005echo "$as_me: error: cannot run test program while cross compiling
6006See \`config.log' for more details." >&2;}
6007 { (exit 1); exit 1; }; }
4166else
4167 cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h. */
6008else
6009 cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h. */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* end confdefs.h. */
4173#include <ctype.h>
4174#if ((' ' & 0x0FF) == 0x020)
4175# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4176# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4177#else
4178# define ISLOWER(c) \
4179 (('a' <= (c) && (c) <= 'i') \
4180 || ('j' <= (c) && (c) <= 'r') \
4181 || ('s' <= (c) && (c) <= 'z'))
4182# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4183#endif
4184
4185#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6015$ac_includes_default
6016long longval () { return (long) (sizeof (__int64)); }
6017unsigned long ulongval () { return (long) (sizeof (__int64)); }
6018#include <stdio.h>
6019#include <stdlib.h>
4186int
4187main ()
4188{
6020int
6021main ()
6022{
4189 int i;
4190 for (i = 0; i < 256; i++)
4191 if (XOR (islower (i), ISLOWER (i))
4192 || toupper (i) != TOUPPER (i))
4193 exit(2);
4194 exit (0);
6023
6024 FILE *f = fopen ("conftest.val", "w");
6025 if (! f)
6026 exit (1);
6027 if (((long) (sizeof (__int64))) < 0)
6028 {
6029 long i = longval ();
6030 if (i != ((long) (sizeof (__int64))))
6031 exit (1);
6032 fprintf (f, "%ld\n", i);
6033 }
6034 else
6035 {
6036 unsigned long i = ulongval ();
6037 if (i != ((long) (sizeof (__int64))))
6038 exit (1);
6039 fprintf (f, "%lu\n", i);
6040 }
6041 exit (ferror (f) || fclose (f) != 0);
6042
6043 ;
6044 return 0;
4195}
4196_ACEOF
4197rm -f conftest$ac_exeext
4198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4199 (eval $ac_link) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
6045}
6046_ACEOF
6047rm -f conftest$ac_exeext
6048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049 (eval $ac_link) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
4208 :
6058 ac_cv_sizeof___int64=`cat conftest.val`
4209else
4210 echo "$as_me: program exited with status $ac_status" >&5
4211echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214( exit $ac_status )
6059else
6060 echo "$as_me: program exited with status $ac_status" >&5
6061echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064( exit $ac_status )
4215ac_cv_header_stdc=no
6065{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6066See \`config.log' for more details." >&5
6067echo "$as_me: error: cannot compute sizeof (__int64), 77
6068See \`config.log' for more details." >&2;}
6069 { (exit 1); exit 1; }; }
4216fi
4217rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218fi
4219fi
6070fi
6071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6072fi
6073fi
6074rm -f conftest.val
6075else
6076 ac_cv_sizeof___int64=0
4220fi
6077fi
4221echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222echo "${ECHO_T}$ac_cv_header_stdc" >&6
4223if test $ac_cv_header_stdc = yes; then
6078fi
6079echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6080echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6081cat >>confdefs.h <<_ACEOF
6082#define SIZEOF___INT64 $ac_cv_sizeof___int64
6083_ACEOF
4224
6084
4225cat >>confdefs.h <<\_ACEOF
4226#define STDC_HEADERS 1
6085
6086fi
6087
6088
6089# ---------------------
6090# Warnings and checking
6091# ---------------------
6092
6093# Check $CC warning features (if it's GCC).
6094# We want to use -pedantic, but we don't want warnings about
6095# * 'long long'
6096# * variadic macros
6097# * overlong strings
6098# So, we only use -pedantic if we can disable those warnings.
6099
6100echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6101echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6102if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105 save_CFLAGS="$CFLAGS"
6106 CFLAGS="-Wno-long-long"
6107 cat >conftest.$ac_ext <<_ACEOF
6108/* confdefs.h. */
4227_ACEOF
6109_ACEOF
6110cat confdefs.h >>conftest.$ac_ext
6111cat >>conftest.$ac_ext <<_ACEOF
6112/* end confdefs.h. */
4228
6113
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_prog_cc_w_no_long_long=yes
6138else
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142ac_cv_prog_cc_w_no_long_long=no
4229fi
6143fi
6144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145 CFLAGS="$save_CFLAGS"
4230
6146
4231# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6147fi
6148echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6149echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
4232
6150
6151echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6152echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6153if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156 save_CFLAGS="$CFLAGS"
6157 CFLAGS="-Wno-variadic-macros"
6158 cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
4233
6164
6165_ACEOF
6166rm -f conftest.$ac_objext
6167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag"
6176 || test ! -s conftest.err'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest.$ac_objext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_prog_cc_w_no_variadic_macros=yes
6189else
6190 echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
4234
6192
6193ac_cv_prog_cc_w_no_variadic_macros=no
6194fi
6195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196 CFLAGS="$save_CFLAGS"
4235
6197
6198fi
6199echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6200echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
4236
6201
6202echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6203echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6204if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207 save_CFLAGS="$CFLAGS"
6208 CFLAGS="-Wno-overlength-strings"
6209 cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h. */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h. */
4237
6215
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_prog_cc_w_no_overlength_strings=yes
6240else
6241 echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
4238
6243
6244ac_cv_prog_cc_w_no_overlength_strings=no
6245fi
6246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247 CFLAGS="$save_CFLAGS"
4239
6248
6249fi
6250echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6251echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
4240
6252
4241for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242 inttypes.h stdint.h unistd.h
4243do
4244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245echo "$as_me:$LINENO: checking for $ac_header" >&5
4246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4247if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253strict1_warn=
6254if test $ac_cv_prog_cc_w_no_long_long = yes \
6255 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6256 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6257 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6258fi
6259
6260# Add -Wold-style-definition if it's accepted
6261echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6262echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6263if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 save_CFLAGS="$CFLAGS"
6267 CFLAGS="-Wold-style-definition"
4250 cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
6268 cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
4256$ac_includes_default
4257
6274
4258#include <$ac_header>
4259_ACEOF
4260rm -f conftest.$ac_objext
4261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262 (eval $ac_compile) 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag"
4270 || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
6275_ACEOF
6276rm -f conftest.$ac_objext
6277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
4282 eval "$as_ac_Header=yes"
6298 ac_cv_prog_cc_w_old_style_definition=yes
4283else
4284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
4287eval "$as_ac_Header=no"
6303ac_cv_prog_cc_w_old_style_definition=no
4288fi
4289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6304fi
6305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306 CFLAGS="$save_CFLAGS"
6307
4290fi
6308fi
4291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4293if test `eval echo '${'$as_ac_Header'}'` = yes; then
4294 cat >>confdefs.h <<_ACEOF
4295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6309echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6310echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6311if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6312 strict1_warn="${strict1_warn} -Wold-style-definition"
6313fi
6314
6315# Add -Wmissing-format-attribute if it's accepted
6316echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6317echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6318if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 save_CFLAGS="$CFLAGS"
6322 CFLAGS="-Wmissing-format-attribute"
6323 cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h. */
4296_ACEOF
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h. */
4297
6329
6330_ACEOF
6331rm -f conftest.$ac_objext
6332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333 (eval $ac_compile) 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_prog_cc_w_missing_format_attribute=yes
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358ac_cv_prog_cc_w_missing_format_attribute=no
4298fi
6359fi
6360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361 CFLAGS="$save_CFLAGS"
4299
6362
6363fi
6364echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6365echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6366if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6367 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6368fi
6369
6370# Enable -Werror, period.
6371# Check whether --enable-werror_always or --disable-werror_always was given.
6372if test "${enable_werror_always+set}" = set; then
6373 enableval="$enable_werror_always"
6374
6375else
6376 enable_werror_always=no
6377fi;
6378if test x${enable_werror_always} = xyes ; then
6379 strict1_warn="${strict1_warn} -Werror"
6380 WERROR=-Werror
6381fi
6382
6383
6384
6385# Get C++ compatibility warning flag, if supported.
6386echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6387echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6388if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 save_CFLAGS="$CFLAGS"
6392 CFLAGS="-Wc++-compat"
6393 cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h. */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h. */
6399
6400_ACEOF
6401rm -f conftest.$ac_objext
6402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_prog_cc_w_cxx_compat=yes
6424else
6425 echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428ac_cv_prog_cc_w_cxx_compat=no
6429fi
6430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431 CFLAGS="$save_CFLAGS"
6432
6433fi
6434echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6435echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6436if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6437 cxx_compat_warn="-Wc++-compat"
6438fi
6439
6440
6441
6442# If the native compiler is GCC, we can enable warnings even in stage1.
6443# That's useful for people building cross-compilers, or just running a
6444# quick `make'.
6445warn_cflags=
6446if test "x$GCC" = "xyes"; then
6447 warn_cflags='$(GCC_WARN_CFLAGS)'
6448fi
6449
6450
6451# Enable -Werror in bootstrap stage2 and later.
6452is_release=
6453if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6454 is_release=yes
6455fi
6456# Check whether --enable-werror or --disable-werror was given.
6457if test "${enable_werror+set}" = set; then
6458 enableval="$enable_werror"
6459
6460else
6461 if test x$is_release = x ; then
6462 # Default to "yes" on development branches.
6463 enable_werror=yes
6464else
6465 # Default to "no" on release branches.
6466 enable_werror=no
6467fi
6468fi;
6469if test x$enable_werror = xyes ; then
6470 WERROR=-Werror
6471fi
6472
6473
6474# Enable expensive internal checks
6475# Check whether --enable-checking or --disable-checking was given.
6476if test "${enable_checking+set}" = set; then
6477 enableval="$enable_checking"
6478 ac_checking_flags="${enableval}"
6479else
6480
6481# Determine the default checks.
6482if test x$is_release = x ; then
6483 ac_checking_flags=yes
6484else
6485 ac_checking_flags=release
6486fi
6487fi;
6488ac_assert_checking=1
6489ac_checking=
6490ac_fold_checking=
6491ac_gc_checking=
6492ac_gc_always_collect=
6493ac_rtl_checking=
6494ac_rtlflag_checking=
6495ac_runtime_checking=1
6496ac_tree_checking=
6497ac_valgrind_checking=
6498IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6499for check in $ac_checking_flags
6500do
6501 case $check in
6502 # these set all the flags to specific states
6503 yes) ac_assert_checking=1 ; ac_checking=1 ;
6504 ac_fold_checking= ; ac_gc_checking=1 ;
6505 ac_gc_always_collect= ; ac_rtl_checking= ;
6506 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6507 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6508 no|none) ac_assert_checking= ; ac_checking= ;
6509 ac_fold_checking= ; ac_gc_checking= ;
6510 ac_gc_always_collect= ; ac_rtl_checking= ;
6511 ac_rtlflag_checking= ; ac_runtime_checking= ;
6512 ac_tree_checking= ; ac_valgrind_checking= ;;
6513 all) ac_assert_checking=1 ; ac_checking=1 ;
6514 ac_fold_checking=1 ; ac_gc_checking=1 ;
6515 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6516 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6517 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6518 release) ac_assert_checking=1 ; ac_checking= ;
6519 ac_fold_checking= ; ac_gc_checking= ;
6520 ac_gc_always_collect= ; ac_rtl_checking= ;
6521 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6522 ac_tree_checking= ; ac_valgrind_checking= ;;
6523 # these enable particular checks
6524 assert) ac_assert_checking=1 ;;
6525 fold) ac_fold_checking=1 ;;
6526 gc) ac_gc_checking=1 ;;
6527 gcac) ac_gc_always_collect=1 ;;
6528 misc) ac_checking=1 ;;
6529 rtl) ac_rtl_checking=1 ;;
6530 rtlflag) ac_rtlflag_checking=1 ;;
6531 runtime) ac_runtime_checking=1 ;;
6532 tree) ac_tree_checking=1 ;;
6533 valgrind) ac_valgrind_checking=1 ;;
6534 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6535echo "$as_me: error: unknown check category $check" >&2;}
6536 { (exit 1); exit 1; }; } ;;
6537 esac
4300done
6538done
6539IFS="$ac_save_IFS"
4301
6540
6541nocommon_flag=""
6542if test x$ac_checking != x ; then
4302
6543
6544cat >>confdefs.h <<\_ACEOF
6545#define ENABLE_CHECKING 1
6546_ACEOF
6547
6548 nocommon_flag=-fno-common
6549fi
6550
6551if test x$ac_assert_checking != x ; then
6552
6553cat >>confdefs.h <<\_ACEOF
6554#define ENABLE_ASSERT_CHECKING 1
6555_ACEOF
6556
6557fi
6558
6559if test x$ac_runtime_checking != x ; then
6560
6561cat >>confdefs.h <<\_ACEOF
6562#define ENABLE_RUNTIME_CHECKING 1
6563_ACEOF
6564
6565fi
6566if test x$ac_tree_checking != x ; then
6567
6568cat >>confdefs.h <<\_ACEOF
6569#define ENABLE_TREE_CHECKING 1
6570_ACEOF
6571
6572 TREEBROWSER=tree-browser.o
6573fi
6574
6575if test x$ac_rtl_checking != x ; then
6576
6577cat >>confdefs.h <<\_ACEOF
6578#define ENABLE_RTL_CHECKING 1
6579_ACEOF
6580
6581fi
6582if test x$ac_rtlflag_checking != x ; then
6583
6584cat >>confdefs.h <<\_ACEOF
6585#define ENABLE_RTL_FLAG_CHECKING 1
6586_ACEOF
6587
6588fi
6589if test x$ac_gc_checking != x ; then
6590
6591cat >>confdefs.h <<\_ACEOF
6592#define ENABLE_GC_CHECKING 1
6593_ACEOF
6594
6595fi
6596if test x$ac_gc_always_collect != x ; then
6597
6598cat >>confdefs.h <<\_ACEOF
6599#define ENABLE_GC_ALWAYS_COLLECT 1
6600_ACEOF
6601
6602fi
6603if test x$ac_fold_checking != x ; then
6604
6605cat >>confdefs.h <<\_ACEOF
6606#define ENABLE_FOLD_CHECKING 1
6607_ACEOF
6608
6609fi
6610valgrind_path_defines=
6611valgrind_command=
6612
4303if test "${ac_cv_header_valgrind_h+set}" = set; then
4304 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4305echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4306if test "${ac_cv_header_valgrind_h+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308fi
4309echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4310echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4311else
4312 # Is the header compilable?
4313echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4314echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4315cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
4321$ac_includes_default
4322#include <valgrind.h>
4323_ACEOF
4324rm -f conftest.$ac_objext
4325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_header_compiler=yes
4347else
4348 echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
4351ac_header_compiler=no
4352fi
4353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4355echo "${ECHO_T}$ac_header_compiler" >&6
4356
4357# Is the header present?
4358echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4359echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4360cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366#include <valgrind.h>
4367_ACEOF
4368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } >/dev/null; then
4376 if test -s conftest.err; then
4377 ac_cpp_err=$ac_c_preproc_warn_flag
4378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4379 else
4380 ac_cpp_err=
4381 fi
4382else
4383 ac_cpp_err=yes
4384fi
4385if test -z "$ac_cpp_err"; then
4386 ac_header_preproc=yes
4387else
4388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ac_header_preproc=no
4392fi
4393rm -f conftest.err conftest.$ac_ext
4394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4395echo "${ECHO_T}$ac_header_preproc" >&6
4396
4397# So? What about this header?
4398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4399 yes:no: )
4400 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4401echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4403echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4404 ac_header_preproc=yes
4405 ;;
4406 no:yes:* )
4407 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4408echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4410echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4412echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4414echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4416echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4417 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4418echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4419 (
4420 cat <<\_ASBOX
4421## ------------------------------------------ ##
4422## Report this to the AC_PACKAGE_NAME lists. ##
4423## ------------------------------------------ ##
4424_ASBOX
4425 ) |
4426 sed "s/^/$as_me: WARNING: /" >&2
4427 ;;
4428esac
4429echo "$as_me:$LINENO: checking for valgrind.h" >&5
4430echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4431if test "${ac_cv_header_valgrind_h+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 ac_cv_header_valgrind_h=$ac_header_preproc
4435fi
4436echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4437echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4438
4439fi
4440if test $ac_cv_header_valgrind_h = yes; then
4441 have_valgrind_h=yes
4442else
4443 have_valgrind_h=no
4444fi
4445
4446
4447
6613if test "${ac_cv_header_valgrind_h+set}" = set; then
6614 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6615echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6616if test "${ac_cv_header_valgrind_h+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618fi
6619echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6620echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6621else
6622 # Is the header compilable?
6623echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6624echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h. */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h. */
6631$ac_includes_default
6632#include <valgrind.h>
6633_ACEOF
6634rm -f conftest.$ac_objext
6635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_header_compiler=yes
6657else
6658 echo "$as_me: failed program was:" >&5
6659sed 's/^/| /' conftest.$ac_ext >&5
6660
6661ac_header_compiler=no
6662fi
6663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665echo "${ECHO_T}$ac_header_compiler" >&6
6666
6667# Is the header present?
6668echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6669echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6670cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h. */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h. */
6676#include <valgrind.h>
6677_ACEOF
6678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev/null; then
6686 if test -s conftest.err; then
6687 ac_cpp_err=$ac_c_preproc_warn_flag
6688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6689 else
6690 ac_cpp_err=
6691 fi
6692else
6693 ac_cpp_err=yes
6694fi
6695if test -z "$ac_cpp_err"; then
6696 ac_header_preproc=yes
6697else
6698 echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 ac_header_preproc=no
6702fi
6703rm -f conftest.err conftest.$ac_ext
6704echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705echo "${ECHO_T}$ac_header_preproc" >&6
6706
6707# So? What about this header?
6708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6709 yes:no: )
6710 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6711echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6713echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6714 ac_header_preproc=yes
6715 ;;
6716 no:yes:* )
6717 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6718echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6720echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6722echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6724echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6726echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6728echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6729 (
6730 cat <<\_ASBOX
6731## ------------------------------------------ ##
6732## Report this to the AC_PACKAGE_NAME lists. ##
6733## ------------------------------------------ ##
6734_ASBOX
6735 ) |
6736 sed "s/^/$as_me: WARNING: /" >&2
6737 ;;
6738esac
6739echo "$as_me:$LINENO: checking for valgrind.h" >&5
6740echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6741if test "${ac_cv_header_valgrind_h+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744 ac_cv_header_valgrind_h=$ac_header_preproc
6745fi
6746echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6747echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6748
6749fi
6750if test $ac_cv_header_valgrind_h = yes; then
6751 have_valgrind_h=yes
6752else
6753 have_valgrind_h=no
6754fi
6755
6756
6757
4448if test x$ac_checking_valgrind != x ; then
6758if test x$ac_valgrind_checking != x ; then
4449 # It is certainly possible that there's valgrind but no valgrind.h.
4450 # GCC relies on making annotations so we must have both.
4451 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4452echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4453 cat >conftest.$ac_ext <<_ACEOF
4454/* confdefs.h. */
4455_ACEOF
4456cat confdefs.h >>conftest.$ac_ext
4457cat >>conftest.$ac_ext <<_ACEOF
4458/* end confdefs.h. */
4459#include <valgrind/memcheck.h>
4460#ifndef VALGRIND_DISCARD
4461#error VALGRIND_DISCARD not defined
4462#endif
4463_ACEOF
4464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } >/dev/null; then
4472 if test -s conftest.err; then
4473 ac_cpp_err=$ac_c_preproc_warn_flag
4474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4475 else
4476 ac_cpp_err=
4477 fi
4478else
4479 ac_cpp_err=yes
4480fi
4481if test -z "$ac_cpp_err"; then
4482 gcc_cv_header_valgrind_memcheck_h=yes
4483else
4484 echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 gcc_cv_header_valgrind_memcheck_h=no
4488fi
4489rm -f conftest.err conftest.$ac_ext
4490 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4491echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4492 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4493echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4494 cat >conftest.$ac_ext <<_ACEOF
4495/* confdefs.h. */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h. */
4500#include <memcheck.h>
4501#ifndef VALGRIND_DISCARD
4502#error VALGRIND_DISCARD not defined
4503#endif
4504_ACEOF
4505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } >/dev/null; then
4513 if test -s conftest.err; then
4514 ac_cpp_err=$ac_c_preproc_warn_flag
4515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516 else
4517 ac_cpp_err=
4518 fi
4519else
4520 ac_cpp_err=yes
4521fi
4522if test -z "$ac_cpp_err"; then
4523 gcc_cv_header_memcheck_h=yes
4524else
4525 echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 gcc_cv_header_memcheck_h=no
4529fi
4530rm -f conftest.err conftest.$ac_ext
4531 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4532echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4533
4534# Prepare PATH_SEPARATOR.
4535# The user is always right.
4536if test "${PATH_SEPARATOR+set}" != set; then
4537 echo "#! /bin/sh" >conf$$.sh
4538 echo "exit 0" >>conf$$.sh
4539 chmod +x conf$$.sh
4540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4541 PATH_SEPARATOR=';'
4542 else
4543 PATH_SEPARATOR=:
4544 fi
4545 rm -f conf$$.sh
4546fi
4547
4548# Find out how to test for executable files. Don't use a zero-byte file,
4549# as systems may use methods other than mode bits to determine executability.
4550cat >conf$$.file <<_ASEOF
4551#! /bin/sh
4552exit 0
4553_ASEOF
4554chmod +x conf$$.file
4555if test -x conf$$.file >/dev/null 2>&1; then
4556 ac_executable_p="test -x"
4557else
4558 ac_executable_p="test -f"
4559fi
4560rm -f conf$$.file
4561
4562# Extract the first word of "valgrind", so it can be a program name with args.
4563set dummy valgrind; ac_word=$2
4564echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566if test "${ac_cv_path_valgrind_path+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 case "$valgrind_path" in
4570 [\\/]* | ?:[\\/]*)
4571 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4572 ;;
4573 *)
4574 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4575 for ac_dir in $PATH; do
4576 IFS="$ac_save_IFS"
4577 test -z "$ac_dir" && ac_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4580 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4581 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4582 break 2
4583 fi
4584 fi
4585 done
4586 done
4587 IFS="$ac_save_IFS"
4588 ;;
4589esac
4590fi
4591valgrind_path="$ac_cv_path_valgrind_path"
4592if test -n "$valgrind_path"; then
4593 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4594echo "${ECHO_T}$valgrind_path" >&6
4595else
4596 echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598fi
4599
4600 if test "x$valgrind_path" = "x" \
4601 || (test $have_valgrind_h = no \
4602 && test $gcc_cv_header_memcheck_h = no \
4603 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4604 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4605echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4606 { (exit 1); exit 1; }; }
4607 fi
4608 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4609 valgrind_command="$valgrind_path -q"
4610
4611cat >>confdefs.h <<\_ACEOF
4612#define ENABLE_VALGRIND_CHECKING 1
4613_ACEOF
4614
4615 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4616
4617cat >>confdefs.h <<\_ACEOF
4618#define HAVE_VALGRIND_MEMCHECK_H 1
4619_ACEOF
4620
4621 fi
4622 if test $gcc_cv_header_memcheck_h = yes; then
4623
4624cat >>confdefs.h <<\_ACEOF
4625#define HAVE_MEMCHECK_H 1
4626_ACEOF
4627
4628 fi
4629fi
4630
4631
4632
6759 # It is certainly possible that there's valgrind but no valgrind.h.
6760 # GCC relies on making annotations so we must have both.
6761 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6762echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6763 cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h. */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
6768/* end confdefs.h. */
6769#include <valgrind/memcheck.h>
6770#ifndef VALGRIND_DISCARD
6771#error VALGRIND_DISCARD not defined
6772#endif
6773_ACEOF
6774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } >/dev/null; then
6782 if test -s conftest.err; then
6783 ac_cpp_err=$ac_c_preproc_warn_flag
6784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6785 else
6786 ac_cpp_err=
6787 fi
6788else
6789 ac_cpp_err=yes
6790fi
6791if test -z "$ac_cpp_err"; then
6792 gcc_cv_header_valgrind_memcheck_h=yes
6793else
6794 echo "$as_me: failed program was:" >&5
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 gcc_cv_header_valgrind_memcheck_h=no
6798fi
6799rm -f conftest.err conftest.$ac_ext
6800 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6801echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6802 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6803echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6804 cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h. */
6810#include <memcheck.h>
6811#ifndef VALGRIND_DISCARD
6812#error VALGRIND_DISCARD not defined
6813#endif
6814_ACEOF
6815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } >/dev/null; then
6823 if test -s conftest.err; then
6824 ac_cpp_err=$ac_c_preproc_warn_flag
6825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6826 else
6827 ac_cpp_err=
6828 fi
6829else
6830 ac_cpp_err=yes
6831fi
6832if test -z "$ac_cpp_err"; then
6833 gcc_cv_header_memcheck_h=yes
6834else
6835 echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 gcc_cv_header_memcheck_h=no
6839fi
6840rm -f conftest.err conftest.$ac_ext
6841 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6842echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6843
6844# Prepare PATH_SEPARATOR.
6845# The user is always right.
6846if test "${PATH_SEPARATOR+set}" != set; then
6847 echo "#! /bin/sh" >conf$$.sh
6848 echo "exit 0" >>conf$$.sh
6849 chmod +x conf$$.sh
6850 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6851 PATH_SEPARATOR=';'
6852 else
6853 PATH_SEPARATOR=:
6854 fi
6855 rm -f conf$$.sh
6856fi
6857
6858# Find out how to test for executable files. Don't use a zero-byte file,
6859# as systems may use methods other than mode bits to determine executability.
6860cat >conf$$.file <<_ASEOF
6861#! /bin/sh
6862exit 0
6863_ASEOF
6864chmod +x conf$$.file
6865if test -x conf$$.file >/dev/null 2>&1; then
6866 ac_executable_p="test -x"
6867else
6868 ac_executable_p="test -f"
6869fi
6870rm -f conf$$.file
6871
6872# Extract the first word of "valgrind", so it can be a program name with args.
6873set dummy valgrind; ac_word=$2
6874echo "$as_me:$LINENO: checking for $ac_word" >&5
6875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876if test "${ac_cv_path_valgrind_path+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879 case "$valgrind_path" in
6880 [\\/]* | ?:[\\/]*)
6881 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6882 ;;
6883 *)
6884 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6885 for ac_dir in $PATH; do
6886 IFS="$ac_save_IFS"
6887 test -z "$ac_dir" && ac_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6890 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6891 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6892 break 2
6893 fi
6894 fi
6895 done
6896 done
6897 IFS="$ac_save_IFS"
6898 ;;
6899esac
6900fi
6901valgrind_path="$ac_cv_path_valgrind_path"
6902if test -n "$valgrind_path"; then
6903 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6904echo "${ECHO_T}$valgrind_path" >&6
6905else
6906 echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6
6908fi
6909
6910 if test "x$valgrind_path" = "x" \
6911 || (test $have_valgrind_h = no \
6912 && test $gcc_cv_header_memcheck_h = no \
6913 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6914 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6915echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6916 { (exit 1); exit 1; }; }
6917 fi
6918 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6919 valgrind_command="$valgrind_path -q"
6920
6921cat >>confdefs.h <<\_ACEOF
6922#define ENABLE_VALGRIND_CHECKING 1
6923_ACEOF
6924
6925 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6926
6927cat >>confdefs.h <<\_ACEOF
6928#define HAVE_VALGRIND_MEMCHECK_H 1
6929_ACEOF
6930
6931 fi
6932 if test $gcc_cv_header_memcheck_h = yes; then
6933
6934cat >>confdefs.h <<\_ACEOF
6935#define HAVE_MEMCHECK_H 1
6936_ACEOF
6937
6938 fi
6939fi
6940
6941
6942
6943# Check whether --enable-mapped-location or --disable-mapped-location was given.
6944if test "${enable_mapped_location+set}" = set; then
6945 enableval="$enable_mapped_location"
6946
6947else
6948 enable_mapped_location=no
6949fi;
6950
6951if test "$enable_mapped_location" = yes ; then
6952
6953cat >>confdefs.h <<\_ACEOF
6954#define USE_MAPPED_LOCATION 1
6955_ACEOF
6956
6957fi
6958
4633# Enable code coverage collection
4634# Check whether --enable-coverage or --disable-coverage was given.
4635if test "${enable_coverage+set}" = set; then
4636 enableval="$enable_coverage"
4637 case "${enableval}" in
6959# Enable code coverage collection
6960# Check whether --enable-coverage or --disable-coverage was given.
6961if test "${enable_coverage+set}" = set; then
6962 enableval="$enable_coverage"
6963 case "${enableval}" in
4638yes|noopt)
4639 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4640 ;;
4641opt)
4642 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4643 ;;
4644*)
4645 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6964 yes|noopt)
6965 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6966 ;;
6967 opt)
6968 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6969 ;;
6970 no)
6971 # a.k.a. --disable-coverage
6972 coverage_flags=""
6973 ;;
6974 *)
6975 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4646echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4647 { (exit 1); exit 1; }; }
6976echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6977 { (exit 1); exit 1; }; }
4648 ;;
6978 ;;
4649esac
4650else
4651 coverage_flags=""
4652fi;
4653
4654
4655# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4656if test "${enable_gather_detailed_mem_stats+set}" = set; then
4657 enableval="$enable_gather_detailed_mem_stats"
4658
4659else
4660 enable_gather_detailed_mem_stats=no
4661fi;
4662if test x$enable_gather_detailed_mem_stats = xyes ; then
4663
4664cat >>confdefs.h <<\_ACEOF
4665#define GATHER_STATISTICS 1
4666_ACEOF
4667
4668fi
4669
4670# -------------------------------
4671# Miscenalleous configure options
4672# -------------------------------
4673
4674# With stabs
4675
4676# Check whether --with-stabs or --without-stabs was given.
4677if test "${with_stabs+set}" = set; then
4678 withval="$with_stabs"
4679 stabs="$with_stabs"
4680else
4681 stabs=no
4682fi;
4683
4684# Determine whether or not multilibs are enabled.
4685# Check whether --enable-multilib or --disable-multilib was given.
4686if test "${enable_multilib+set}" = set; then
4687 enableval="$enable_multilib"
4688
4689else
4690 enable_multilib=yes
4691fi;
4692
4693
4694# Enable __cxa_atexit for C++.
4695# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4696if test "${enable___cxa_atexit+set}" = set; then
4697 enableval="$enable___cxa_atexit"
4698
4699fi;
4700
6979esac
6980else
6981 coverage_flags=""
6982fi;
6983
6984
6985# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6986if test "${enable_gather_detailed_mem_stats+set}" = set; then
6987 enableval="$enable_gather_detailed_mem_stats"
6988
6989else
6990 enable_gather_detailed_mem_stats=no
6991fi;
6992if test x$enable_gather_detailed_mem_stats = xyes ; then
6993
6994cat >>confdefs.h <<\_ACEOF
6995#define GATHER_STATISTICS 1
6996_ACEOF
6997
6998fi
6999
7000# -------------------------------
7001# Miscenalleous configure options
7002# -------------------------------
7003
7004# With stabs
7005
7006# Check whether --with-stabs or --without-stabs was given.
7007if test "${with_stabs+set}" = set; then
7008 withval="$with_stabs"
7009 stabs="$with_stabs"
7010else
7011 stabs=no
7012fi;
7013
7014# Determine whether or not multilibs are enabled.
7015# Check whether --enable-multilib or --disable-multilib was given.
7016if test "${enable_multilib+set}" = set; then
7017 enableval="$enable_multilib"
7018
7019else
7020 enable_multilib=yes
7021fi;
7022
7023
7024# Enable __cxa_atexit for C++.
7025# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7026if test "${enable___cxa_atexit+set}" = set; then
7027 enableval="$enable___cxa_atexit"
7028
7029fi;
7030
7031# Enable C extension for decimal float if target supports it.
7032# Check whether --enable-decimal-float or --disable-decimal-float was given.
7033if test "${enable_decimal_float+set}" = set; then
7034 enableval="$enable_decimal_float"
7035
7036 if test x$enablevar = xyes ; then
7037 case $target in
7038 powerpc*-*-linux* | i?86*-*-linux*)
7039 enable_decimal_float=yes
7040 ;;
7041 *)
7042 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7043echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7044 enable_decimal_float=no
7045 ;;
7046 esac
7047 fi
7048
7049else
7050 enable_decimal_float=no
7051fi;
7052
7053
7054
7055dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7056
7057cat >>confdefs.h <<_ACEOF
7058#define ENABLE_DECIMAL_FLOAT $dfp
7059_ACEOF
7060
7061
4701# Enable threads
4702# Pass with no value to take the default
4703# Pass with a value to specify a thread package
4704# Check whether --enable-threads or --disable-threads was given.
4705if test "${enable_threads+set}" = set; then
4706 enableval="$enable_threads"
4707
4708else
4709 enable_threads=''
4710fi;
7062# Enable threads
7063# Pass with no value to take the default
7064# Pass with a value to specify a thread package
7065# Check whether --enable-threads or --disable-threads was given.
7066if test "${enable_threads+set}" = set; then
7067 enableval="$enable_threads"
7068
7069else
7070 enable_threads=''
7071fi;
4711# Save in case it gets overwritten in config.gcc
4712enable_threads_flag=$enable_threads
4713
7072
7073# Check whether --enable-tls or --disable-tls was given.
7074if test "${enable_tls+set}" = set; then
7075 enableval="$enable_tls"
7076
7077 case $enable_tls in
7078 yes | no) ;;
7079 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7080Valid choices are 'yes' and 'no'." >&5
7081echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7082Valid choices are 'yes' and 'no'." >&2;}
7083 { (exit 1); exit 1; }; } ;;
7084 esac
7085
7086else
7087 enable_tls=''
7088fi;
7089
4714# Check whether --enable-objc-gc or --disable-objc-gc was given.
4715if test "${enable_objc_gc+set}" = set; then
4716 enableval="$enable_objc_gc"
4717 if test x$enable_objc_gc = xno; then
4718 objc_boehm_gc=''
4719else
4720 objc_boehm_gc=1
4721fi
4722else
4723 objc_boehm_gc=''
4724fi;
4725
4726
4727# Check whether --with-dwarf2 or --without-dwarf2 was given.
4728if test "${with_dwarf2+set}" = set; then
4729 withval="$with_dwarf2"
4730 dwarf2="$with_dwarf2"
4731else
4732 dwarf2=no
4733fi;
4734
4735# Check whether --enable-shared or --disable-shared was given.
4736if test "${enable_shared+set}" = set; then
4737 enableval="$enable_shared"
4738
4739 case $enable_shared in
4740 yes | no) ;;
4741 *)
4742 enable_shared=no
4743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4744 for pkg in $enableval; do
4745 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4746 enable_shared=yes
4747 fi
4748 done
4749 IFS="$ac_save_ifs"
4750 ;;
4751 esac
4752
4753else
4754 enable_shared=yes
4755fi;
4756
4757
4758
7090# Check whether --enable-objc-gc or --disable-objc-gc was given.
7091if test "${enable_objc_gc+set}" = set; then
7092 enableval="$enable_objc_gc"
7093 if test x$enable_objc_gc = xno; then
7094 objc_boehm_gc=''
7095else
7096 objc_boehm_gc=1
7097fi
7098else
7099 objc_boehm_gc=''
7100fi;
7101
7102
7103# Check whether --with-dwarf2 or --without-dwarf2 was given.
7104if test "${with_dwarf2+set}" = set; then
7105 withval="$with_dwarf2"
7106 dwarf2="$with_dwarf2"
7107else
7108 dwarf2=no
7109fi;
7110
7111# Check whether --enable-shared or --disable-shared was given.
7112if test "${enable_shared+set}" = set; then
7113 enableval="$enable_shared"
7114
7115 case $enable_shared in
7116 yes | no) ;;
7117 *)
7118 enable_shared=no
7119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7120 for pkg in $enableval; do
7121 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7122 enable_shared=yes
7123 fi
7124 done
7125 IFS="$ac_save_ifs"
7126 ;;
7127 esac
7128
7129else
7130 enable_shared=yes
7131fi;
7132
7133
7134
7135# Check whether --with-build-sysroot or --without-build-sysroot was given.
7136if test "${with_build_sysroot+set}" = set; then
7137 withval="$with_build_sysroot"
7138
7139fi;
7140
7141
4759# Check whether --with-sysroot or --without-sysroot was given.
4760if test "${with_sysroot+set}" = set; then
4761 withval="$with_sysroot"
4762
4763 case ${with_sysroot} in
4764 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4765 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4766 esac
4767
4768 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4769 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4770
4771 if test "x$exec_prefix" = xNONE; then
4772 if test "x$prefix" = xNONE; then
4773 test_prefix=/usr/local
4774 else
4775 test_prefix=$prefix
4776 fi
4777 else
4778 test_prefix=$exec_prefix
4779 fi
4780 case ${TARGET_SYSTEM_ROOT} in
4781 "${test_prefix}"|"${test_prefix}/"*|\
4782 '${exec_prefix}'|'${exec_prefix}/'*)
4783 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4784 TARGET_SYSTEM_ROOT_DEFINE="$t"
4785 ;;
4786 esac
4787
4788else
4789
4790 TARGET_SYSTEM_ROOT=
4791 TARGET_SYSTEM_ROOT_DEFINE=
4792 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4793
4794fi;
4795
4796
4797
4798
4799# Build with intermodule optimisations
4800# Check whether --enable-intermodule or --disable-intermodule was given.
4801if test "${enable_intermodule+set}" = set; then
4802 enableval="$enable_intermodule"
4803 case ${enable_intermodule} in
4804 yes) onestep="-onestep";;
4805 *) onestep="";;
4806esac
4807else
4808 onestep=""
4809fi;
4810
4811
7142# Check whether --with-sysroot or --without-sysroot was given.
7143if test "${with_sysroot+set}" = set; then
7144 withval="$with_sysroot"
7145
7146 case ${with_sysroot} in
7147 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7148 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7149 esac
7150
7151 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7152 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7153
7154 if test "x$exec_prefix" = xNONE; then
7155 if test "x$prefix" = xNONE; then
7156 test_prefix=/usr/local
7157 else
7158 test_prefix=$prefix
7159 fi
7160 else
7161 test_prefix=$exec_prefix
7162 fi
7163 case ${TARGET_SYSTEM_ROOT} in
7164 "${test_prefix}"|"${test_prefix}/"*|\
7165 '${exec_prefix}'|'${exec_prefix}/'*)
7166 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7167 TARGET_SYSTEM_ROOT_DEFINE="$t"
7168 ;;
7169 esac
7170
7171else
7172
7173 TARGET_SYSTEM_ROOT=
7174 TARGET_SYSTEM_ROOT_DEFINE=
7175 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7176
7177fi;
7178
7179
7180
7181
7182# Build with intermodule optimisations
7183# Check whether --enable-intermodule or --disable-intermodule was given.
7184if test "${enable_intermodule+set}" = set; then
7185 enableval="$enable_intermodule"
7186 case ${enable_intermodule} in
7187 yes) onestep="-onestep";;
7188 *) onestep="";;
7189esac
7190else
7191 onestep=""
7192fi;
7193
7194
7195# Sanity check enable_languages in case someone does not run the toplevel
7196# configure # script.
7197# Check whether --enable-languages or --disable-languages was given.
7198if test "${enable_languages+set}" = set; then
7199 enableval="$enable_languages"
7200 case ,${enable_languages}, in
7201 ,,|,yes,)
7202 # go safe -- we cannot be much sure without the toplevel
7203 # configure's
7204 # analysis of which target libs are present and usable
7205 enable_languages=c
7206 ;;
7207 *,all,*)
7208 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7209echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7210 { (exit 1); exit 1; }; }
7211 ;;
7212 *,c,*)
7213 ;;
7214 *)
7215 enable_languages=c,${enable_languages}
7216 ;;
7217esac
7218else
7219 enable_languages=c
7220fi;
7221
7222# Used by documentation targets
7223
7224
7225
7226
4812# -------------------------
4813# Checks for other programs
4814# -------------------------
4815
4816echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4817echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4819if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822 cat >conftest.make <<\_ACEOF
4823all:
4824 @echo 'ac_maketemp="$(MAKE)"'
4825_ACEOF
4826# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4827eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4828if test -n "$ac_maketemp"; then
4829 eval ac_cv_prog_make_${ac_make}_set=yes
4830else
4831 eval ac_cv_prog_make_${ac_make}_set=no
4832fi
4833rm -f conftest.make
4834fi
4835if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4836 echo "$as_me:$LINENO: result: yes" >&5
4837echo "${ECHO_T}yes" >&6
4838 SET_MAKE=
4839else
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
4842 SET_MAKE="MAKE=${MAKE-make}"
4843fi
4844
4845
4846# Find some useful tools
4847for ac_prog in gawk mawk nawk awk
4848do
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850set dummy $ac_prog; ac_word=$2
4851echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853if test "${ac_cv_prog_AWK+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test -n "$AWK"; then
4857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_AWK="$ac_prog"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871done
4872
4873fi
4874fi
4875AWK=$ac_cv_prog_AWK
4876if test -n "$AWK"; then
4877 echo "$as_me:$LINENO: result: $AWK" >&5
4878echo "${ECHO_T}$AWK" >&6
4879else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884 test -n "$AWK" && break
4885done
4886
7227# -------------------------
7228# Checks for other programs
7229# -------------------------
7230
7231echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7232echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7233set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7234if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236else
7237 cat >conftest.make <<\_ACEOF
7238all:
7239 @echo 'ac_maketemp="$(MAKE)"'
7240_ACEOF
7241# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7242eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7243if test -n "$ac_maketemp"; then
7244 eval ac_cv_prog_make_${ac_make}_set=yes
7245else
7246 eval ac_cv_prog_make_${ac_make}_set=no
7247fi
7248rm -f conftest.make
7249fi
7250if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7251 echo "$as_me:$LINENO: result: yes" >&5
7252echo "${ECHO_T}yes" >&6
7253 SET_MAKE=
7254else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 SET_MAKE="MAKE=${MAKE-make}"
7258fi
7259
7260
7261# Find some useful tools
7262for ac_prog in gawk mawk nawk awk
7263do
7264 # Extract the first word of "$ac_prog", so it can be a program name with args.
7265set dummy $ac_prog; ac_word=$2
7266echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7268if test "${ac_cv_prog_AWK+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 if test -n "$AWK"; then
7272 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_AWK="$ac_prog"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287
7288fi
7289fi
7290AWK=$ac_cv_prog_AWK
7291if test -n "$AWK"; then
7292 echo "$as_me:$LINENO: result: $AWK" >&5
7293echo "${ECHO_T}$AWK" >&6
7294else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi
7298
7299 test -n "$AWK" && break
7300done
7301
4887# We need awk to run opts.sh (to create options.c and options.h).
7302# We need awk to create options.c and options.h.
4888# Bail out if it's missing.
4889case ${AWK} in
4890 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4891echo "$as_me: error: can't build without awk, bailing out" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4893esac
4894
7303# Bail out if it's missing.
7304case ${AWK} in
7305 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7306echo "$as_me: error: can't build without awk, bailing out" >&2;}
7307 { (exit 1); exit 1; }; } ;;
7308esac
7309
4895echo "$as_me:$LINENO: checking whether ln works" >&5
4896echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4897if test "${gcc_cv_prog_LN+set}" = set; then
7310echo "$as_me:$LINENO: checking whether ln -s works" >&5
7311echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7312if test "${gcc_cv_prog_LN_S+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900 rm -f conftestdata_t
4901echo >conftestdata_f
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 rm -f conftestdata_t
7316echo >conftestdata_f
4902if ln conftestdata_f conftestdata_t 2>/dev/null
7317if ln -s conftestdata_f conftestdata_t 2>/dev/null
4903then
7318then
4904 gcc_cv_prog_LN="ln"
7319 gcc_cv_prog_LN_S="ln -s"
4905else
7320else
4906 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7321 if ln conftestdata_f conftestdata_t 2>/dev/null
4907 then
7322 then
4908 gcc_cv_prog_LN="ln -s"
7323 gcc_cv_prog_LN_S=ln
4909 else
7324 else
4910 gcc_cv_prog_LN=cp
7325 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7326 then
7327 gcc_cv_prog_LN_S="cp -p"
7328 else
7329 gcc_cv_prog_LN_S=cp
7330 fi
4911 fi
4912fi
4913rm -f conftestdata_f conftestdata_t
4914
4915fi
7331 fi
7332fi
7333rm -f conftestdata_f conftestdata_t
7334
7335fi
4916LN="$gcc_cv_prog_LN"
4917if test "$gcc_cv_prog_LN" = "ln"; then
7336LN_S="$gcc_cv_prog_LN_S"
7337if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4918 echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
4920else
7338 echo "$as_me:$LINENO: result: yes" >&5
7339echo "${ECHO_T}yes" >&6
7340else
4921 if test "$gcc_cv_prog_LN" = "ln -s"; then
4922 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4923echo "${ECHO_T}no, using ln -s" >&6
7341 if test "$gcc_cv_prog_LN_S" = "ln"; then
7342 echo "$as_me:$LINENO: result: no, using ln" >&5
7343echo "${ECHO_T}no, using ln" >&6
4924 else
7344 else
4925 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4926echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
7345 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7346echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
4927 fi
4928fi
4929
7347 fi
7348fi
7349
4930echo "$as_me:$LINENO: checking whether ln -s works" >&5
4931echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4932if test "${gcc_cv_prog_LN_S+set}" = set; then
7350echo "$as_me:$LINENO: checking whether ln works" >&5
7351echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7352if test "${acx_cv_prog_LN+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 rm -f conftestdata_t
4936echo >conftestdata_f
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355 rm -f conftestdata_t
7356echo >conftestdata_f
4937if ln -s conftestdata_f conftestdata_t 2>/dev/null
7357if ln conftestdata_f conftestdata_t 2>/dev/null
4938then
7358then
4939 gcc_cv_prog_LN_S="ln -s"
7359 acx_cv_prog_LN=ln
4940else
7360else
4941 if ln conftestdata_f conftestdata_t 2>/dev/null
4942 then
4943 gcc_cv_prog_LN_S=ln
4944 else
4945 gcc_cv_prog_LN_S=cp
4946 fi
7361 acx_cv_prog_LN=no
4947fi
4948rm -f conftestdata_f conftestdata_t
4949
4950fi
7362fi
7363rm -f conftestdata_f conftestdata_t
7364
7365fi
4951LN_S="$gcc_cv_prog_LN_S"
4952if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7366if test $acx_cv_prog_LN = no; then
7367 LN="$LN_S"
7368 echo "$as_me:$LINENO: result: no, using $LN" >&5
7369echo "${ECHO_T}no, using $LN" >&6
7370else
7371 LN="$acx_cv_prog_LN"
4953 echo "$as_me:$LINENO: result: yes" >&5
4954echo "${ECHO_T}yes" >&6
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${ECHO_T}yes" >&6
4955else
4956 if test "$gcc_cv_prog_LN_S" = "ln"; then
4957 echo "$as_me:$LINENO: result: no, using ln" >&5
4958echo "${ECHO_T}no, using ln" >&6
4959 else
4960 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4961echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4962 fi
4963fi
4964
4965if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968echo "$as_me:$LINENO: checking for $ac_word" >&5
4969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4970if test "${ac_cv_prog_RANLIB+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973 if test -n "$RANLIB"; then
4974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987done
4988done
4989
4990fi
4991fi
4992RANLIB=$ac_cv_prog_RANLIB
4993if test -n "$RANLIB"; then
4994 echo "$as_me:$LINENO: result: $RANLIB" >&5
4995echo "${ECHO_T}$RANLIB" >&6
4996else
4997 echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6
4999fi
5000
5001fi
5002if test -z "$ac_cv_prog_RANLIB"; then
5003 ac_ct_RANLIB=$RANLIB
5004 # Extract the first word of "ranlib", so it can be a program name with args.
5005set dummy ranlib; ac_word=$2
5006echo "$as_me:$LINENO: checking for $ac_word" >&5
5007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010else
5011 if test -n "$ac_ct_RANLIB"; then
5012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_RANLIB="ranlib"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025done
5026done
5027
5028 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5029fi
5030fi
5031ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032if test -n "$ac_ct_RANLIB"; then
5033 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5034echo "${ECHO_T}$ac_ct_RANLIB" >&6
5035else
5036 echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038fi
5039
5040 RANLIB=$ac_ct_RANLIB
5041else
5042 RANLIB="$ac_cv_prog_RANLIB"
5043fi
5044
7374fi
7375
7376if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7378set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7379echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381if test "${ac_cv_prog_RANLIB+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383else
7384 if test -n "$RANLIB"; then
7385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399done
7400
7401fi
7402fi
7403RANLIB=$ac_cv_prog_RANLIB
7404if test -n "$RANLIB"; then
7405 echo "$as_me:$LINENO: result: $RANLIB" >&5
7406echo "${ECHO_T}$RANLIB" >&6
7407else
7408 echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6
7410fi
7411
7412fi
7413if test -z "$ac_cv_prog_RANLIB"; then
7414 ac_ct_RANLIB=$RANLIB
7415 # Extract the first word of "ranlib", so it can be a program name with args.
7416set dummy ranlib; ac_word=$2
7417echo "$as_me:$LINENO: checking for $ac_word" >&5
7418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7419if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422 if test -n "$ac_ct_RANLIB"; then
7423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_ac_ct_RANLIB="ranlib"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436done
7437done
7438
7439 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7440fi
7441fi
7442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7443if test -n "$ac_ct_RANLIB"; then
7444 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7445echo "${ECHO_T}$ac_ct_RANLIB" >&6
7446else
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
7449fi
7450
7451 RANLIB=$ac_ct_RANLIB
7452else
7453 RANLIB="$ac_cv_prog_RANLIB"
7454fi
7455
7456case "${host}" in
7457*-*-darwin*)
7458 # By default, the Darwin ranlib will not treat common symbols as
7459 # definitions when building the archive table of contents. Other
7460 # ranlibs do that; pass an option to the Darwin ranlib that makes
7461 # it behave similarly.
7462 ranlib_flags="-c"
7463 ;;
7464*)
7465 ranlib_flags=""
7466esac
7467
7468
5045# Find a good install program. We prefer a C program (faster),
5046# so one script is as good as another. But avoid the broken or
5047# incompatible versions:
5048# SysV /etc/install, /usr/sbin/install
5049# SunOS /usr/etc/install
5050# IRIX /sbin/install
5051# AIX /bin/install
5052# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5053# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5054# ./install, which can be erroneously created by make from ./install.sh.
5055echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5056echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5057if test -z "$INSTALL"; then
5058if test "${ac_cv_path_install+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5062 for ac_dir in $PATH; do
5063 # Account for people who put trailing slashes in PATH elements.
5064 case "$ac_dir/" in
5065 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5066 *)
5067 # OSF1 and SCO ODT 3.0 have their own names for install.
5068 for ac_prog in ginstall scoinst install; do
5069 if test -f $ac_dir/$ac_prog; then
5070 if test $ac_prog = install &&
5071 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5072 # AIX install. It has an incompatible calling convention.
5073 # OSF/1 installbsd also uses dspmsg, but is usable.
5074 :
5075 else
5076 ac_cv_path_install="$ac_dir/$ac_prog -c"
5077 break 2
5078 fi
5079 fi
5080 done
5081 ;;
5082 esac
5083 done
5084 IFS="$ac_save_IFS"
5085
5086fi
5087 if test "${ac_cv_path_install+set}" = set; then
5088 INSTALL="$ac_cv_path_install"
5089 else
5090 # As a last resort, use the slow shell script. We don't cache a
5091 # path for INSTALL within a source directory, because that will
5092 # break other packages using the cache if that directory is
5093 # removed, or if the path is relative.
5094 INSTALL="$ac_install_sh"
5095 fi
5096fi
5097echo "$as_me:$LINENO: result: $INSTALL" >&5
5098echo "${ECHO_T}$INSTALL" >&6
5099
5100# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5101# It thinks the first close brace ends the variable substitution.
5102test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5103
5104test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5105
5106
5107# See if cmp has --ignore-initial.
5108echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5109echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5110if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 echo abfoo >t1
5114 echo cdfoo >t2
5115 gcc_cv_prog_cmp_skip=slowcompare
5116 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5117 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5118 :
5119 else
5120 gcc_cv_prog_cmp_skip=gnucompare
5121 fi
5122 fi
5123 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5124 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5125 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5126 :
5127 else
5128 gcc_cv_prog_cmp_skip=fastcompare
5129 fi
5130 fi
5131 fi
5132 rm t1 t2
5133
5134fi
5135echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5136echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5137make_compare_target=$gcc_cv_prog_cmp_skip
5138
5139
5140
5141# See if we have the mktemp command.
5142# Extract the first word of "mktemp", so it can be a program name with args.
5143set dummy mktemp; ac_word=$2
5144echo "$as_me:$LINENO: checking for $ac_word" >&5
5145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149 if test -n "$have_mktemp_command"; then
5150 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_have_mktemp_command="yes"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164done
5165
5166 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5167fi
5168fi
5169have_mktemp_command=$ac_cv_prog_have_mktemp_command
5170if test -n "$have_mktemp_command"; then
5171 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5172echo "${ECHO_T}$have_mktemp_command" >&6
5173else
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176fi
5177
5178
7469# Find a good install program. We prefer a C program (faster),
7470# so one script is as good as another. But avoid the broken or
7471# incompatible versions:
7472# SysV /etc/install, /usr/sbin/install
7473# SunOS /usr/etc/install
7474# IRIX /sbin/install
7475# AIX /bin/install
7476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7478# ./install, which can be erroneously created by make from ./install.sh.
7479echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7480echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7481if test -z "$INSTALL"; then
7482if test "${ac_cv_path_install+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7486 for ac_dir in $PATH; do
7487 # Account for people who put trailing slashes in PATH elements.
7488 case "$ac_dir/" in
7489 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7490 *)
7491 # OSF1 and SCO ODT 3.0 have their own names for install.
7492 for ac_prog in ginstall scoinst install; do
7493 if test -f $ac_dir/$ac_prog; then
7494 if test $ac_prog = install &&
7495 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7496 # AIX install. It has an incompatible calling convention.
7497 # OSF/1 installbsd also uses dspmsg, but is usable.
7498 :
7499 else
7500 ac_cv_path_install="$ac_dir/$ac_prog -c"
7501 break 2
7502 fi
7503 fi
7504 done
7505 ;;
7506 esac
7507 done
7508 IFS="$ac_save_IFS"
7509
7510fi
7511 if test "${ac_cv_path_install+set}" = set; then
7512 INSTALL="$ac_cv_path_install"
7513 else
7514 # As a last resort, use the slow shell script. We don't cache a
7515 # path for INSTALL within a source directory, because that will
7516 # break other packages using the cache if that directory is
7517 # removed, or if the path is relative.
7518 INSTALL="$ac_install_sh"
7519 fi
7520fi
7521echo "$as_me:$LINENO: result: $INSTALL" >&5
7522echo "${ECHO_T}$INSTALL" >&6
7523
7524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7525# It thinks the first close brace ends the variable substitution.
7526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7527
7528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7529
7530
7531# See if cmp has --ignore-initial.
7532echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7533echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7534if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537 echo abfoo >t1
7538 echo cdfoo >t2
7539 gcc_cv_prog_cmp_skip=slowcompare
7540 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7541 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7542 :
7543 else
7544 gcc_cv_prog_cmp_skip=gnucompare
7545 fi
7546 fi
7547 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7548 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7549 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7550 :
7551 else
7552 gcc_cv_prog_cmp_skip=fastcompare
7553 fi
7554 fi
7555 fi
7556 rm t1 t2
7557
7558fi
7559echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7560echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7561make_compare_target=$gcc_cv_prog_cmp_skip
7562
7563
7564
7565# See if we have the mktemp command.
7566# Extract the first word of "mktemp", so it can be a program name with args.
7567set dummy mktemp; ac_word=$2
7568echo "$as_me:$LINENO: checking for $ac_word" >&5
7569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7570if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573 if test -n "$have_mktemp_command"; then
7574 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_have_mktemp_command="yes"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587done
7588done
7589
7590 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7591fi
7592fi
7593have_mktemp_command=$ac_cv_prog_have_mktemp_command
7594if test -n "$have_mktemp_command"; then
7595 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7596echo "${ECHO_T}$have_mktemp_command" >&6
7597else
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
7600fi
7601
7602
5179# Do we have a single-tree copy of texinfo?
5180if test -f $srcdir/../texinfo/Makefile.in; then
5181 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5182 gcc_cv_prog_makeinfo_modern=yes
5183 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5184echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5185else
5186 # See if makeinfo has been installed and is modern enough
5187 # that we can use it.
5188 # Extract the first word of "makeinfo", so it can be a program name with args.
7603MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7604
7605# See if makeinfo has been installed and is modern enough
7606# that we can use it.
7607
7608ac_executable_extensions="$build_exeext"
7609
7610# Extract the first word of "makeinfo", so it can be a program name with args.
5189set dummy makeinfo; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 if test -n "$MAKEINFO"; then
5196 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_MAKEINFO="makeinfo"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209done
5210done
5211
5212fi
5213fi
5214MAKEINFO=$ac_cv_prog_MAKEINFO
5215if test -n "$MAKEINFO"; then
5216 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5217echo "${ECHO_T}$MAKEINFO" >&6
5218else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221fi
5222
5223if test -n "$MAKEINFO"; then
5224 # Found it, now check the version.
5225 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5226echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5227if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 ac_prog_version=`$MAKEINFO --version 2>&1 |
5231 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7611set dummy makeinfo; ac_word=$2
7612echo "$as_me:$LINENO: checking for $ac_word" >&5
7613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7614if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617 if test -n "$MAKEINFO"; then
7618 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7619else
7620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_MAKEINFO="makeinfo"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631done
7632done
7633
7634fi
7635fi
7636MAKEINFO=$ac_cv_prog_MAKEINFO
7637if test -n "$MAKEINFO"; then
7638 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7639echo "${ECHO_T}$MAKEINFO" >&6
7640else
7641 echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6
7643fi
7644
7645if test -n "$MAKEINFO"; then
7646 # Found it, now check the version.
7647 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7648echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7649if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 ac_prog_version=`$MAKEINFO --version 2>&1 |
7653 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5232 echo "configure:5232: version of makeinfo is $ac_prog_version" >&5
7654 echo "configure:7654: version of makeinfo is $ac_prog_version" >&5
5233 case $ac_prog_version in
5234 '') gcc_cv_prog_makeinfo_modern=no;;
7655 case $ac_prog_version in
7656 '') gcc_cv_prog_makeinfo_modern=no;;
5235 4.[2-9]*)
7657 4.[4-9]*)
5236 gcc_cv_prog_makeinfo_modern=yes;;
5237 *) gcc_cv_prog_makeinfo_modern=no;;
5238 esac
5239
5240fi
5241echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5242echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5243else
5244 gcc_cv_prog_makeinfo_modern=no
5245fi
5246
7658 gcc_cv_prog_makeinfo_modern=yes;;
7659 *) gcc_cv_prog_makeinfo_modern=no;;
7660 esac
7661
7662fi
7663echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7664echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7665else
7666 gcc_cv_prog_makeinfo_modern=no
7667fi
7668
5247fi
5248
5249if test $gcc_cv_prog_makeinfo_modern = no; then
7669if test $gcc_cv_prog_makeinfo_modern = no; then
7670 MAKEINFO="$MISSING makeinfo"
5250 { echo "$as_me:$LINENO: WARNING:
5251*** Makeinfo is missing or too old.
5252*** Info documentation will not be built." >&5
5253echo "$as_me: WARNING:
5254*** Makeinfo is missing or too old.
5255*** Info documentation will not be built." >&2;}
5256 BUILD_INFO=
5257else
5258 BUILD_INFO=info
5259fi
5260
7671 { echo "$as_me:$LINENO: WARNING:
7672*** Makeinfo is missing or too old.
7673*** Info documentation will not be built." >&5
7674echo "$as_me: WARNING:
7675*** Makeinfo is missing or too old.
7676*** Info documentation will not be built." >&2;}
7677 BUILD_INFO=
7678else
7679 BUILD_INFO=info
7680fi
7681
7682
5261# Is pod2man recent enough to regenerate manpages?
5262echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5263echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5264if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5265 echo "$as_me:$LINENO: result: yes" >&5
5266echo "${ECHO_T}yes" >&6
5267 GENERATED_MANPAGES=generated-manpages
5268else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 GENERATED_MANPAGES=
5272fi
5273
7683# Is pod2man recent enough to regenerate manpages?
7684echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7685echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7686if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7687 echo "$as_me:$LINENO: result: yes" >&5
7688echo "${ECHO_T}yes" >&6
7689 GENERATED_MANPAGES=generated-manpages
7690else
7691 echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
7693 GENERATED_MANPAGES=
7694fi
7695
7696
5274# How about lex?
7697# How about lex?
5275if test -f $srcdir/../flex/skel.c; then
5276 FLEX='$(objdir)/../flex/flex'
5277else
5278 # Extract the first word of "flex", so it can be a program name with args.
5279set dummy flex; ac_word=$2
7698for ac_prog in flex
7699do
7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
7701set dummy $ac_prog; ac_word=$2
5280echo "$as_me:$LINENO: checking for $ac_word" >&5
5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282if test "${ac_cv_prog_FLEX+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285 if test -n "$FLEX"; then
5286 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704if test "${ac_cv_prog_FLEX+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 if test -n "$FLEX"; then
7708 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_FLEX="flex"
7717 ac_cv_prog_FLEX="$ac_prog"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300done
5301
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
5302 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5303fi
5304fi
5305FLEX=$ac_cv_prog_FLEX
5306if test -n "$FLEX"; then
5307 echo "$as_me:$LINENO: result: $FLEX" >&5
5308echo "${ECHO_T}$FLEX" >&6
5309else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312fi
5313
7724fi
7725fi
7726FLEX=$ac_cv_prog_FLEX
7727if test -n "$FLEX"; then
7728 echo "$as_me:$LINENO: result: $FLEX" >&5
7729echo "${ECHO_T}$FLEX" >&6
7730else
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
7733fi
7734
5314fi
7735 test -n "$FLEX" && break
7736done
7737test -n "$FLEX" || FLEX="$MISSING flex"
5315
7738
7739
5316# Bison?
7740# Bison?
5317# The -L switch is so bison can find its skeleton file.
5318if test -f $srcdir/../bison/bison.simple; then
5319 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5320else
5321 # Extract the first word of "bison", so it can be a program name with args.
5322set dummy bison; ac_word=$2
7741for ac_prog in bison
7742do
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744set dummy $ac_prog; ac_word=$2
5323echo "$as_me:$LINENO: checking for $ac_word" >&5
5324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325if test "${ac_cv_prog_BISON+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328 if test -n "$BISON"; then
5329 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745echo "$as_me:$LINENO: checking for $ac_word" >&5
7746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7747if test "${ac_cv_prog_BISON+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750 if test -n "$BISON"; then
7751 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7752else
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_BISON="bison"
7760 ac_cv_prog_BISON="$ac_prog"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5341 fi
5342done
5343done
5344
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764done
7765done
7766
5345 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5346fi
5347fi
5348BISON=$ac_cv_prog_BISON
5349if test -n "$BISON"; then
5350 echo "$as_me:$LINENO: result: $BISON" >&5
5351echo "${ECHO_T}$BISON" >&6
5352else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355fi
5356
7767fi
7768fi
7769BISON=$ac_cv_prog_BISON
7770if test -n "$BISON"; then
7771 echo "$as_me:$LINENO: result: $BISON" >&5
7772echo "${ECHO_T}$BISON" >&6
7773else
7774 echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6
7776fi
7777
7778 test -n "$BISON" && break
7779done
7780test -n "$BISON" || BISON="$MISSING bison"
7781
7782
7783# Binutils are not build modules, unlike bison/flex/makeinfo. So we
7784# check for build == host before using them.
7785
7786# NM
7787if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7788 && test -d ../binutils ; then
7789 NM='$(objdir)/../binutils/nm-new'
7790else
7791 # Extract the first word of "nm", so it can be a program name with args.
7792set dummy nm; ac_word=$2
7793echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795if test "${ac_cv_prog_NM+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 if test -n "$NM"; then
7799 ac_cv_prog_NM="$NM" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_NM="nm"
7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813done
7814
7815 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5357fi
7816fi
7817fi
7818NM=$ac_cv_prog_NM
7819if test -n "$NM"; then
7820 echo "$as_me:$LINENO: result: $NM" >&5
7821echo "${ECHO_T}$NM" >&6
7822else
7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825fi
5358
7826
7827fi
7828
7829# AR
7830if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7831 && test -d ../binutils ; then
7832 AR='$(objdir)/../binutils/ar'
7833else
7834 # Extract the first word of "ar", so it can be a program name with args.
7835set dummy ar; ac_word=$2
7836echo "$as_me:$LINENO: checking for $ac_word" >&5
7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838if test "${ac_cv_prog_AR+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841 if test -n "$AR"; then
7842 ac_cv_prog_AR="$AR" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_AR="ar"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856done
7857
7858 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7859fi
7860fi
7861AR=$ac_cv_prog_AR
7862if test -n "$AR"; then
7863 echo "$as_me:$LINENO: result: $AR" >&5
7864echo "${ECHO_T}$AR" >&6
7865else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868fi
7869
7870fi
7871
7872
5359# --------------------
5360# Checks for C headers
5361# --------------------
5362
5363echo "$as_me:$LINENO: checking for GNU C library" >&5
5364echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5365if test "${gcc_cv_glibc+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374#include <features.h>
5375int
5376main ()
5377{
5378
5379#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5380#error Not a GNU C library system
5381#endif
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388 (eval $ac_compile) 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag"
5396 || test ! -s conftest.err'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 (eval $ac_try) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 gcc_cv_glibc=yes
5409else
5410 echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413gcc_cv_glibc=no
5414fi
5415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417
5418echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5419echo "${ECHO_T}$gcc_cv_glibc" >&6
5420if test $gcc_cv_glibc = yes; then
5421
5422cat >>confdefs.h <<\_ACEOF
5423#define _GNU_SOURCE 1
5424_ACEOF
5425
5426fi
5427
5428# Need to reject headers which give warnings, so that the -Werror bootstrap
5429# works later. *sigh* This needs to come before all header checks.
5430
5431ac_c_preproc_warn_flag=yes
5432
5433echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5434echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5435if test "${ac_cv_header_stdc+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h. */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h. */
5444#include <stdlib.h>
5445#include <stdarg.h>
5446#include <string.h>
5447#include <float.h>
5448
5449int
5450main ()
5451{
5452
5453 ;
5454 return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext
5458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459 (eval $ac_compile) 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -z "$ac_c_werror_flag"
5467 || test ! -s conftest.err'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_cv_header_stdc=yes
5480else
5481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484ac_cv_header_stdc=no
5485fi
5486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487
5488if test $ac_cv_header_stdc = yes; then
5489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496#include <string.h>
5497
5498_ACEOF
5499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500 $EGREP "memchr" >/dev/null 2>&1; then
5501 :
5502else
5503 ac_cv_header_stdc=no
5504fi
5505rm -f conftest*
5506
5507fi
5508
5509if test $ac_cv_header_stdc = yes; then
5510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5511 cat >conftest.$ac_ext <<_ACEOF
5512/* confdefs.h. */
5513_ACEOF
5514cat confdefs.h >>conftest.$ac_ext
5515cat >>conftest.$ac_ext <<_ACEOF
5516/* end confdefs.h. */
5517#include <stdlib.h>
5518
5519_ACEOF
5520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521 $EGREP "free" >/dev/null 2>&1; then
5522 :
5523else
5524 ac_cv_header_stdc=no
5525fi
5526rm -f conftest*
5527
5528fi
5529
5530if test $ac_cv_header_stdc = yes; then
5531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5532 if test "$cross_compiling" = yes; then
5533 :
5534else
5535 cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541#include <ctype.h>
5542#if ((' ' & 0x0FF) == 0x020)
5543# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5544# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5545#else
5546# define ISLOWER(c) \
5547 (('a' <= (c) && (c) <= 'i') \
5548 || ('j' <= (c) && (c) <= 'r') \
5549 || ('s' <= (c) && (c) <= 'z'))
5550# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5551#endif
5552
5553#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5554int
5555main ()
5556{
5557 int i;
5558 for (i = 0; i < 256; i++)
5559 if (XOR (islower (i), ISLOWER (i))
5560 || toupper (i) != TOUPPER (i))
5561 exit(2);
5562 exit (0);
5563}
5564_ACEOF
5565rm -f conftest$ac_exeext
5566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 :
5577else
5578 echo "$as_me: program exited with status $ac_status" >&5
5579echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582( exit $ac_status )
5583ac_cv_header_stdc=no
5584fi
5585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5586fi
5587fi
5588fi
5589echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5590echo "${ECHO_T}$ac_cv_header_stdc" >&6
5591if test $ac_cv_header_stdc = yes; then
5592
5593cat >>confdefs.h <<\_ACEOF
5594#define STDC_HEADERS 1
5595_ACEOF
5596
5597fi
5598
5599echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5600echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5601if test "${ac_cv_header_time+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604 cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h. */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h. */
5610#include <sys/types.h>
5611#include <sys/time.h>
5612#include <time.h>
5613
5614int
5615main ()
5616{
5617if ((struct tm *) 0)
5618return 0;
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623rm -f conftest.$ac_objext
5624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_cv_header_time=yes
5646else
5647 echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
5650ac_cv_header_time=no
5651fi
5652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5655echo "${ECHO_T}$ac_cv_header_time" >&6
5656if test $ac_cv_header_time = yes; then
5657
5658cat >>confdefs.h <<\_ACEOF
5659#define TIME_WITH_SYS_TIME 1
5660_ACEOF
5661
5662fi
5663
7873# --------------------
7874# Checks for C headers
7875# --------------------
7876
7877echo "$as_me:$LINENO: checking for GNU C library" >&5
7878echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7879if test "${gcc_cv_glibc+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882 cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h. */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h. */
7888#include <features.h>
7889int
7890main ()
7891{
7892
7893#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7894#error Not a GNU C library system
7895#endif
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900rm -f conftest.$ac_objext
7901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 gcc_cv_glibc=yes
7923else
7924 echo "$as_me: failed program was:" >&5
7925sed 's/^/| /' conftest.$ac_ext >&5
7926
7927gcc_cv_glibc=no
7928fi
7929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7930fi
7931
7932echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7933echo "${ECHO_T}$gcc_cv_glibc" >&6
7934if test $gcc_cv_glibc = yes; then
7935
7936cat >>confdefs.h <<\_ACEOF
7937#define _GNU_SOURCE 1
7938_ACEOF
7939
7940fi
7941
7942# Need to reject headers which give warnings, so that the -Werror bootstrap
7943# works later. *sigh* This needs to come before all header checks.
7944
7945ac_c_preproc_warn_flag=yes
7946
7947echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7948echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7949if test "${ac_cv_header_stdc+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951else
7952 cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958#include <stdlib.h>
7959#include <stdarg.h>
7960#include <string.h>
7961#include <float.h>
7962
7963int
7964main ()
7965{
7966
7967 ;
7968 return 0;
7969}
7970_ACEOF
7971rm -f conftest.$ac_objext
7972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_cv_header_stdc=yes
7994else
7995 echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998ac_cv_header_stdc=no
7999fi
8000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001
8002if test $ac_cv_header_stdc = yes; then
8003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8004 cat >conftest.$ac_ext <<_ACEOF
8005/* confdefs.h. */
8006_ACEOF
8007cat confdefs.h >>conftest.$ac_ext
8008cat >>conftest.$ac_ext <<_ACEOF
8009/* end confdefs.h. */
8010#include <string.h>
8011
8012_ACEOF
8013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "memchr" >/dev/null 2>&1; then
8015 :
8016else
8017 ac_cv_header_stdc=no
8018fi
8019rm -f conftest*
8020
8021fi
8022
8023if test $ac_cv_header_stdc = yes; then
8024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8025 cat >conftest.$ac_ext <<_ACEOF
8026/* confdefs.h. */
8027_ACEOF
8028cat confdefs.h >>conftest.$ac_ext
8029cat >>conftest.$ac_ext <<_ACEOF
8030/* end confdefs.h. */
8031#include <stdlib.h>
8032
8033_ACEOF
8034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035 $EGREP "free" >/dev/null 2>&1; then
8036 :
8037else
8038 ac_cv_header_stdc=no
8039fi
8040rm -f conftest*
8041
8042fi
8043
8044if test $ac_cv_header_stdc = yes; then
8045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8046 if test "$cross_compiling" = yes; then
8047 :
8048else
8049 cat >conftest.$ac_ext <<_ACEOF
8050/* confdefs.h. */
8051_ACEOF
8052cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h. */
8055#include <ctype.h>
8056#if ((' ' & 0x0FF) == 0x020)
8057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8059#else
8060# define ISLOWER(c) \
8061 (('a' <= (c) && (c) <= 'i') \
8062 || ('j' <= (c) && (c) <= 'r') \
8063 || ('s' <= (c) && (c) <= 'z'))
8064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8065#endif
8066
8067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8068int
8069main ()
8070{
8071 int i;
8072 for (i = 0; i < 256; i++)
8073 if (XOR (islower (i), ISLOWER (i))
8074 || toupper (i) != TOUPPER (i))
8075 exit(2);
8076 exit (0);
8077}
8078_ACEOF
8079rm -f conftest$ac_exeext
8080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 :
8091else
8092 echo "$as_me: program exited with status $ac_status" >&5
8093echo "$as_me: failed program was:" >&5
8094sed 's/^/| /' conftest.$ac_ext >&5
8095
8096( exit $ac_status )
8097ac_cv_header_stdc=no
8098fi
8099rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8100fi
8101fi
8102fi
8103echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8104echo "${ECHO_T}$ac_cv_header_stdc" >&6
8105if test $ac_cv_header_stdc = yes; then
8106
8107cat >>confdefs.h <<\_ACEOF
8108#define STDC_HEADERS 1
8109_ACEOF
8110
8111fi
8112
8113echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8114echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8115if test "${ac_cv_header_time+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117else
8118 cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124#include <sys/types.h>
8125#include <sys/time.h>
8126#include <time.h>
8127
8128int
8129main ()
8130{
8131if ((struct tm *) 0)
8132return 0;
8133 ;
8134 return 0;
8135}
8136_ACEOF
8137rm -f conftest.$ac_objext
8138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_cv_header_time=yes
8160else
8161 echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164ac_cv_header_time=no
8165fi
8166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8167fi
8168echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8169echo "${ECHO_T}$ac_cv_header_time" >&6
8170if test $ac_cv_header_time = yes; then
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define TIME_WITH_SYS_TIME 1
8174_ACEOF
8175
8176fi
8177
5664echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5665echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5666if test "${ac_cv_header_stdbool_h+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h. */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h. */
5675#include <stdbool.h>
5676int
5677main ()
5678{
5679bool foo = false;
5680 ;
5681 return 0;
5682}
5683_ACEOF
5684rm -f conftest.$ac_objext
5685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_header_stdbool_h=yes
5707else
5708 echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711ac_cv_header_stdbool_h=no
5712fi
5713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714fi
5715echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5716echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5717if test $ac_cv_header_stdbool_h = yes; then
5718
5719cat >>confdefs.h <<\_ACEOF
5720#define HAVE_STDBOOL_H 1
5721_ACEOF
5722
5723fi
5724
5725echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5726echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5727if test "${gcc_cv_header_string+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736#include <string.h>
5737#include <strings.h>
5738int
5739main ()
5740{
5741
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746rm -f conftest.$ac_objext
5747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag"
5756 || test ! -s conftest.err'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest.$ac_objext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 gcc_cv_header_string=yes
5769else
5770 echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773gcc_cv_header_string=no
5774fi
5775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5776fi
5777echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5778echo "${ECHO_T}$gcc_cv_header_string" >&6
5779if test $gcc_cv_header_string = yes; then
5780
5781cat >>confdefs.h <<\_ACEOF
5782#define STRING_WITH_STRINGS 1
5783_ACEOF
5784
5785fi
5786
5787echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5788echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5789if test "${ac_cv_header_sys_wait_h+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792 cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798#include <sys/types.h>
5799#include <sys/wait.h>
5800#ifndef WEXITSTATUS
5801# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5802#endif
5803#ifndef WIFEXITED
5804# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5805#endif
5806
5807int
5808main ()
5809{
5810 int s;
5811 wait (&s);
5812 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5813 ;
5814 return 0;
5815}
5816_ACEOF
5817rm -f conftest.$ac_objext
5818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_header_sys_wait_h=yes
5840else
5841 echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844ac_cv_header_sys_wait_h=no
5845fi
5846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847fi
5848echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5849echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5850if test $ac_cv_header_sys_wait_h = yes; then
5851
5852cat >>confdefs.h <<\_ACEOF
5853#define HAVE_SYS_WAIT_H 1
5854_ACEOF
5855
5856fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
8178echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8179echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8180if test "${gcc_cv_header_string+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183 cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h. */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h. */
8189#include <string.h>
8190#include <strings.h>
8191int
8192main ()
8193{
8194
8195 ;
8196 return 0;
8197}
8198_ACEOF
8199rm -f conftest.$ac_objext
8200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest.$ac_objext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 gcc_cv_header_string=yes
8222else
8223 echo "$as_me: failed program was:" >&5
8224sed 's/^/| /' conftest.$ac_ext >&5
8225
8226gcc_cv_header_string=no
8227fi
8228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8229fi
8230echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8231echo "${ECHO_T}$gcc_cv_header_string" >&6
8232if test $gcc_cv_header_string = yes; then
8233
8234cat >>confdefs.h <<\_ACEOF
8235#define STRING_WITH_STRINGS 1
8236_ACEOF
8237
8238fi
8239
8240echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8241echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8242if test "${ac_cv_header_sys_wait_h+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245 cat >conftest.$ac_ext <<_ACEOF
8246/* confdefs.h. */
8247_ACEOF
8248cat confdefs.h >>conftest.$ac_ext
8249cat >>conftest.$ac_ext <<_ACEOF
8250/* end confdefs.h. */
8251#include <sys/types.h>
8252#include <sys/wait.h>
8253#ifndef WEXITSTATUS
8254# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8255#endif
8256#ifndef WIFEXITED
8257# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8258#endif
8259
8260int
8261main ()
8262{
8263 int s;
8264 wait (&s);
8265 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8266 ;
8267 return 0;
8268}
8269_ACEOF
8270rm -f conftest.$ac_objext
8271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8272 (eval $ac_compile) 2>conftest.er1
8273 ac_status=$?
8274 grep -v '^ *+' conftest.er1 >conftest.err
8275 rm -f conftest.er1
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -z "$ac_c_werror_flag"
8280 || test ! -s conftest.err'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 ac_cv_header_sys_wait_h=yes
8293else
8294 echo "$as_me: failed program was:" >&5
8295sed 's/^/| /' conftest.$ac_ext >&5
8296
8297ac_cv_header_sys_wait_h=no
8298fi
8299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8300fi
8301echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8302echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8303if test $ac_cv_header_sys_wait_h = yes; then
8304
8305cat >>confdefs.h <<\_ACEOF
8306#define HAVE_SYS_WAIT_H 1
8307_ACEOF
8308
8309fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
5879for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
8332
8333for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
5880 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5881 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5882 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5883do
5884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885echo "$as_me:$LINENO: checking for $ac_header" >&5
5886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5887if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889else
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896#include <$ac_header>
5897_ACEOF
5898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } >/dev/null; then
5906 if test -s conftest.err; then
5907 ac_cpp_err=$ac_c_preproc_warn_flag
5908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5909 else
5910 ac_cpp_err=
5911 fi
5912else
5913 ac_cpp_err=yes
5914fi
5915if test -z "$ac_cpp_err"; then
5916 eval "$as_ac_Header=yes"
5917else
5918 echo "$as_me: failed program was:" >&5
5919sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 eval "$as_ac_Header=no"
5922fi
5923rm -f conftest.err conftest.$ac_ext
5924fi
5925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5927if test `eval echo '${'$as_ac_Header'}'` = yes; then
5928 cat >>confdefs.h <<_ACEOF
5929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5930_ACEOF
5931
5932fi
5933done
5934
5935
5936# Check for thread headers.
5937echo "$as_me:$LINENO: checking for thread.h" >&5
5938echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5939if test "${ac_cv_header_thread_h+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
5948#include <thread.h>
5949_ACEOF
5950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null; then
5958 if test -s conftest.err; then
5959 ac_cpp_err=$ac_c_preproc_warn_flag
5960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5961 else
5962 ac_cpp_err=
5963 fi
5964else
5965 ac_cpp_err=yes
5966fi
5967if test -z "$ac_cpp_err"; then
5968 ac_cv_header_thread_h=yes
5969else
5970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_cv_header_thread_h=no
5974fi
5975rm -f conftest.err conftest.$ac_ext
5976fi
5977echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5978echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5979if test $ac_cv_header_thread_h = yes; then
5980 have_thread_h=yes
5981else
5982 have_thread_h=
5983fi
5984
5985echo "$as_me:$LINENO: checking for pthread.h" >&5
5986echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5987if test "${ac_cv_header_pthread_h+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990 cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
5996#include <pthread.h>
5997_ACEOF
5998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } >/dev/null; then
6006 if test -s conftest.err; then
6007 ac_cpp_err=$ac_c_preproc_warn_flag
6008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6009 else
6010 ac_cpp_err=
6011 fi
6012else
6013 ac_cpp_err=yes
6014fi
6015if test -z "$ac_cpp_err"; then
6016 ac_cv_header_pthread_h=yes
6017else
6018 echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 ac_cv_header_pthread_h=no
6022fi
6023rm -f conftest.err conftest.$ac_ext
6024fi
6025echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6026echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6027if test $ac_cv_header_pthread_h = yes; then
6028 have_pthread_h=yes
6029else
6030 have_pthread_h=
6031fi
6032
6033
6034# These tests can't be done till we know if we have limits.h.
6035echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6036echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6037if test "${gcc_cv_decl_char_bit+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046#ifdef HAVE_LIMITS_H
6047#include <limits.h>
6048#endif
6049#ifdef CHAR_BIT
6050found
6051#endif
6052_ACEOF
6053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "found" >/dev/null 2>&1; then
6055 gcc_cv_decl_char_bit=yes
6056else
6057 gcc_cv_decl_char_bit=no
6058fi
6059rm -f conftest*
6060
6061
6062fi
6063echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6064echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6065if test $gcc_cv_decl_char_bit = no; then
6066 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6067echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6068if test "${gcc_cv_c_nbby+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 i=8
6072 gcc_cv_c_nbby=
6073 while test $i -lt 65; do
6074 cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h. */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h. */
6080
6081int
6082main ()
6083{
6084switch(0) {
6085 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6086 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6087 ; }
6088 ;
6089 return 0;
6090}
6091_ACEOF
6092rm -f conftest.$ac_objext
6093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag"
6102 || test ! -s conftest.err'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; } &&
6108 { ac_try='test -s conftest.$ac_objext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 gcc_cv_c_nbby=$i; break
6115else
6116 echo "$as_me: failed program was:" >&5
6117sed 's/^/| /' conftest.$ac_ext >&5
6118
6119fi
6120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 i=`expr $i + 1`
6122 done
6123 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6124
6125fi
6126echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6127echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6128if test $gcc_cv_c_nbby = failed; then
6129 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6130echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6131 { (exit 1); exit 1; }; }
6132else
6133
6134cat >>confdefs.h <<_ACEOF
6135#define CHAR_BIT $gcc_cv_c_nbby
6136_ACEOF
6137
6138fi
6139fi
6140echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6141echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6142if test "${ac_cv_c_bigendian+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
8334 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8335 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8336 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8337do
8338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8339echo "$as_me:$LINENO: checking for $ac_header" >&5
8340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8341if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343else
8344 cat >conftest.$ac_ext <<_ACEOF
8345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h. */
8350#include <$ac_header>
8351_ACEOF
8352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } >/dev/null; then
8360 if test -s conftest.err; then
8361 ac_cpp_err=$ac_c_preproc_warn_flag
8362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8363 else
8364 ac_cpp_err=
8365 fi
8366else
8367 ac_cpp_err=yes
8368fi
8369if test -z "$ac_cpp_err"; then
8370 eval "$as_ac_Header=yes"
8371else
8372 echo "$as_me: failed program was:" >&5
8373sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 eval "$as_ac_Header=no"
8376fi
8377rm -f conftest.err conftest.$ac_ext
8378fi
8379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8381if test `eval echo '${'$as_ac_Header'}'` = yes; then
8382 cat >>confdefs.h <<_ACEOF
8383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8384_ACEOF
8385
8386fi
8387done
8388
8389
8390# Check for thread headers.
8391echo "$as_me:$LINENO: checking for thread.h" >&5
8392echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8393if test "${ac_cv_header_thread_h+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396 cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h. */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h. */
8402#include <thread.h>
8403_ACEOF
8404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } >/dev/null; then
8412 if test -s conftest.err; then
8413 ac_cpp_err=$ac_c_preproc_warn_flag
8414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8415 else
8416 ac_cpp_err=
8417 fi
8418else
8419 ac_cpp_err=yes
8420fi
8421if test -z "$ac_cpp_err"; then
8422 ac_cv_header_thread_h=yes
8423else
8424 echo "$as_me: failed program was:" >&5
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_header_thread_h=no
8428fi
8429rm -f conftest.err conftest.$ac_ext
8430fi
8431echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8432echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8433if test $ac_cv_header_thread_h = yes; then
8434 have_thread_h=yes
8435else
8436 have_thread_h=
8437fi
8438
8439echo "$as_me:$LINENO: checking for pthread.h" >&5
8440echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8441if test "${ac_cv_header_pthread_h+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443else
8444 cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h. */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h. */
8450#include <pthread.h>
8451_ACEOF
8452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463 else
8464 ac_cpp_err=
8465 fi
8466else
8467 ac_cpp_err=yes
8468fi
8469if test -z "$ac_cpp_err"; then
8470 ac_cv_header_pthread_h=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_cv_header_pthread_h=no
8476fi
8477rm -f conftest.err conftest.$ac_ext
8478fi
8479echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8480echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8481if test $ac_cv_header_pthread_h = yes; then
8482 have_pthread_h=yes
8483else
8484 have_pthread_h=
8485fi
8486
8487
8488# These tests can't be done till we know if we have limits.h.
8489echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8490echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8491if test "${gcc_cv_decl_char_bit+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493else
8494 cat >conftest.$ac_ext <<_ACEOF
8495/* confdefs.h. */
8496_ACEOF
8497cat confdefs.h >>conftest.$ac_ext
8498cat >>conftest.$ac_ext <<_ACEOF
8499/* end confdefs.h. */
8500#ifdef HAVE_LIMITS_H
8501#include <limits.h>
8502#endif
8503#ifdef CHAR_BIT
8504found
8505#endif
8506_ACEOF
8507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8508 $EGREP "found" >/dev/null 2>&1; then
8509 gcc_cv_decl_char_bit=yes
8510else
8511 gcc_cv_decl_char_bit=no
8512fi
8513rm -f conftest*
8514
8515
8516fi
8517echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8518echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8519if test $gcc_cv_decl_char_bit = no; then
8520 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8521echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8522if test "${gcc_cv_c_nbby+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524else
8525 i=8
8526 gcc_cv_c_nbby=
8527 while test $i -lt 65; do
8528 cat >conftest.$ac_ext <<_ACEOF
8529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
8534
8535int
8536main ()
8537{
8538switch(0) {
8539 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8540 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8541 ; }
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546rm -f conftest.$ac_objext
8547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -z "$ac_c_werror_flag"
8556 || test ! -s conftest.err'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest.$ac_objext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 gcc_cv_c_nbby=$i; break
8569else
8570 echo "$as_me: failed program was:" >&5
8571sed 's/^/| /' conftest.$ac_ext >&5
8572
8573fi
8574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 i=`expr $i + 1`
8576 done
8577 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8578
8579fi
8580echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8581echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8582if test $gcc_cv_c_nbby = failed; then
8583 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8584echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8585 { (exit 1); exit 1; }; }
8586else
8587
8588cat >>confdefs.h <<_ACEOF
8589#define CHAR_BIT $gcc_cv_c_nbby
8590_ACEOF
8591
8592fi
8593fi
8594echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8595echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8596if test "${ac_cv_c_bigendian+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
6145 ac_cv_c_bigendian=unknown
6146# See if sys/param.h defines the BYTE_ORDER macro.
8599 # See if sys/param.h defines the BYTE_ORDER macro.
6147cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153#include <sys/types.h>
6154#include <sys/param.h>
8600cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606#include <sys/types.h>
8607#include <sys/param.h>
8608
6155int
6156main ()
6157{
8609int
8610main ()
8611{
6158
6159#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6160 bogus endian macros
6161#endif
8612#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8613 bogus endian macros
8614#endif
8615
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext
6167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag"
6176 || test ! -s conftest.err'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest.$ac_objext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 # It does; now see whether it defined to BIG_ENDIAN or not.
6189cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195#include <sys/types.h>
6196#include <sys/param.h>
8616 ;
8617 return 0;
8618}
8619_ACEOF
8620rm -f conftest.$ac_objext
8621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -z "$ac_c_werror_flag"
8630 || test ! -s conftest.err'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 # It does; now see whether it defined to BIG_ENDIAN or not.
8643cat >conftest.$ac_ext <<_ACEOF
8644/* confdefs.h. */
8645_ACEOF
8646cat confdefs.h >>conftest.$ac_ext
8647cat >>conftest.$ac_ext <<_ACEOF
8648/* end confdefs.h. */
8649#include <sys/types.h>
8650#include <sys/param.h>
8651
6197int
6198main ()
6199{
8652int
8653main ()
8654{
6200
6201#if BYTE_ORDER != BIG_ENDIAN
6202 not big endian
6203#endif
8655#if BYTE_ORDER != BIG_ENDIAN
8656 not big endian
8657#endif
8658
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext
6209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210 (eval $ac_compile) 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } &&
6217 { ac_try='test -z "$ac_c_werror_flag"
6218 || test ! -s conftest.err'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; } &&
6224 { ac_try='test -s conftest.$ac_objext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 (eval $ac_try) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_cv_c_bigendian=yes
6231else
6232 echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235ac_cv_c_bigendian=no
6236fi
6237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238else
6239 echo "$as_me: failed program was:" >&5
6240sed 's/^/| /' conftest.$ac_ext >&5
6241
8659 ;
8660 return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext
8664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665 (eval $ac_compile) 2>conftest.er1
8666 ac_status=$?
8667 grep -v '^ *+' conftest.er1 >conftest.err
8668 rm -f conftest.er1
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try='test -z "$ac_c_werror_flag"
8673 || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 (eval $ac_try) 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest.$ac_objext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_c_bigendian=yes
8686else
8687 echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690ac_cv_c_bigendian=no
8691fi
8692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693else
8694 echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697# It does not; compile a test program.
8698if test "$cross_compiling" = yes; then
8699 # try to guess the endianness by grepping values into an object file
8700 ac_cv_c_bigendian=unknown
8701 cat >conftest.$ac_ext <<_ACEOF
8702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
8707short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8708short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8709void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8710short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8711short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8712void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8713int
8714main ()
8715{
8716 _ascii (); _ebcdic ();
8717 ;
8718 return 0;
8719}
8720_ACEOF
8721rm -f conftest.$ac_objext
8722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8744 ac_cv_c_bigendian=yes
6242fi
8745fi
8746if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8747 if test "$ac_cv_c_bigendian" = unknown; then
8748 ac_cv_c_bigendian=no
8749 else
8750 # finding both strings is unlikely to happen, but who knows?
8751 ac_cv_c_bigendian=unknown
8752 fi
8753fi
8754else
8755 echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758fi
6243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244if test $ac_cv_c_bigendian = unknown; then
6245if test "$cross_compiling" = yes; then
6246 echo $ac_n "cross-compiling... " 2>&6
6247else
6248 cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
8760else
8761 cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h. */
6254main () {
8767int
8768main ()
8769{
6255 /* Are we little or big endian? From Harbison&Steele. */
6256 union
6257 {
6258 long l;
6259 char c[sizeof (long)];
6260 } u;
6261 u.l = 1;
6262 exit (u.c[sizeof (long) - 1] == 1);
6263}
6264_ACEOF
6265rm -f conftest$ac_exeext
6266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_c_bigendian=no
6277else
6278 echo "$as_me: program exited with status $ac_status" >&5
6279echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282( exit $ac_status )
6283ac_cv_c_bigendian=yes
6284fi
6285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6286fi
6287fi
8770 /* Are we little or big endian? From Harbison&Steele. */
8771 union
8772 {
8773 long l;
8774 char c[sizeof (long)];
8775 } u;
8776 u.l = 1;
8777 exit (u.c[sizeof (long) - 1] == 1);
8778}
8779_ACEOF
8780rm -f conftest$ac_exeext
8781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8782 (eval $ac_link) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 (eval $ac_try) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_c_bigendian=no
8792else
8793 echo "$as_me: program exited with status $ac_status" >&5
8794echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797( exit $ac_status )
8798ac_cv_c_bigendian=yes
8799fi
8800rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8801fi
8802fi
8803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6290echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8804fi
8805echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8806echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6291if test $ac_cv_c_bigendian = unknown; then
6292echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6293echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8807case $ac_cv_c_bigendian in
8808 yes)
6294
8809
6295cat >conftest.c <<EOF
6296short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6297short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6298void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6299short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6300short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6301void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6302int main() { _ascii (); _ebcdic (); return 0; }
6303EOF
6304 if test -f conftest.c ; then
6305 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6306 if test `grep -l BIGenDianSyS conftest.o` ; then
6307 echo $ac_n ' big endian probe OK, ' 1>&6
6308 ac_cv_c_bigendian=yes
6309 fi
6310 if test `grep -l LiTTleEnDian conftest.o` ; then
6311 echo $ac_n ' little endian probe OK, ' 1>&6
6312 if test $ac_cv_c_bigendian = yes ; then
6313 ac_cv_c_bigendian=unknown;
6314 else
6315 ac_cv_c_bigendian=no
6316 fi
6317 fi
6318 echo $ac_n 'guessing bigendian ... ' >&6
6319 fi
6320 fi
6321echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6322echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6323fi
6324if test $ac_cv_c_bigendian = yes; then
6325
6326cat >>confdefs.h <<\_ACEOF
6327#define WORDS_BIGENDIAN 1
6328_ACEOF
8810cat >>confdefs.h <<\_ACEOF
8811#define WORDS_BIGENDIAN 1
8812_ACEOF
8813 ;;
8814 no)
8815 ;;
8816 *)
8817 { { echo "$as_me:$LINENO: error: unknown endianness
8818presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8819echo "$as_me: error: unknown endianness
8820presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8821 { (exit 1); exit 1; }; } ;;
8822esac
6329
6330
8823
8824
6331cat >>confdefs.h <<\_ACEOF
6332#define HOST_WORDS_BIG_ENDIAN 1
6333_ACEOF
6334
6335 BYTEORDER=4321
6336else
6337 BYTEORDER=1234
6338fi
6339
6340cat >>confdefs.h <<_ACEOF
6341#define BYTEORDER $BYTEORDER
6342_ACEOF
6343
6344if test $ac_cv_c_bigendian = unknown; then
6345 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6346echo "$as_me: error: unknown endianess - sorry" >&2;}
6347 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6348fi
6349
6350
6351# --------
6352# UNSORTED
6353# --------
6354
6355# Stage specific cflags for build.
6356stage1_cflags=
6357case $build in
6358vax-*-*)
6359 if test x$GCC = xyes
6360 then
6361 stage1_cflags="-Wa,-J"
6362 else
6363 stage1_cflags="-J"
6364 fi
6365 ;;
8825# --------
8826# UNSORTED
8827# --------
8828
8829# Stage specific cflags for build.
8830stage1_cflags=
8831case $build in
8832vax-*-*)
8833 if test x$GCC = xyes
8834 then
8835 stage1_cflags="-Wa,-J"
8836 else
8837 stage1_cflags="-J"
8838 fi
8839 ;;
6366powerpc-*-darwin*)
6367 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6368 # sources; use -no-cpp-precomp to get to GNU cpp.
6369 # Apple's GCC has bugs in designated initializer handling, so disable
6370 # that too.
6371 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6372 ;;
6373esac
6374
6375
6376# These libraries may be used by collect2.
6377# We may need a special search path to get them linked.
6378echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6379echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6380if test "${gcc_cv_collect2_libs+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383 save_LIBS="$LIBS"
6384for libs in '' -lld -lmld \
6385 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6386 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6387do
6388 LIBS="$libs"
6389 cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */
6395
6396/* Override any gcc2 internal prototype to avoid an error. */
6397#ifdef __cplusplus
6398extern "C"
6399#endif
6400/* We use char because int might match the return type of a gcc2
6401 builtin and then its argument prototype would still apply. */
6402char ldopen ();
6403int
6404main ()
6405{
6406ldopen ();
6407 ;
6408 return 0;
6409}
6410_ACEOF
6411rm -f conftest.$ac_objext conftest$ac_exeext
6412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413 (eval $ac_link) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 gcc_cv_collect2_libs="$libs"; break
6434else
6435 echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438fi
6439rm -f conftest.err conftest.$ac_objext \
6440 conftest$ac_exeext conftest.$ac_ext
6441done
6442LIBS="$save_LIBS"
6443test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6444fi
6445echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6446echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6447case $gcc_cv_collect2_libs in
6448 "none required") ;;
6449 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6450esac
6451
6452
6453# When building Ada code on Alpha, we need exc_resume which is usually in
6454# -lexc. So test for it.
6455save_LIBS="$LIBS"
6456LIBS=
6457echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6458echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6459if test "${ac_cv_search_exc_resume+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 ac_func_search_save_LIBS=$LIBS
6463ac_cv_search_exc_resume=no
6464cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h. */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h. */
6470
6471/* Override any gcc2 internal prototype to avoid an error. */
6472#ifdef __cplusplus
6473extern "C"
6474#endif
6475/* We use char because int might match the return type of a gcc2
6476 builtin and then its argument prototype would still apply. */
6477char exc_resume ();
6478int
6479main ()
6480{
6481exc_resume ();
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486rm -f conftest.$ac_objext conftest$ac_exeext
6487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest$ac_exeext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_cv_search_exc_resume="none required"
6509else
6510 echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513fi
6514rm -f conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6516if test "$ac_cv_search_exc_resume" = no; then
6517 for ac_lib in exc; do
6518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6519 cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h. */
6525
6526/* Override any gcc2 internal prototype to avoid an error. */
6527#ifdef __cplusplus
6528extern "C"
6529#endif
6530/* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6532char exc_resume ();
6533int
6534main ()
6535{
6536exc_resume ();
6537 ;
6538 return 0;
6539}
6540_ACEOF
6541rm -f conftest.$ac_objext conftest$ac_exeext
6542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543 (eval $ac_link) 2>conftest.er1
6544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -z "$ac_c_werror_flag"
6551 || test ! -s conftest.err'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest$ac_exeext'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
6563 ac_cv_search_exc_resume="-l$ac_lib"
6564break
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569fi
6570rm -f conftest.err conftest.$ac_objext \
6571 conftest$ac_exeext conftest.$ac_ext
6572 done
6573fi
6574LIBS=$ac_func_search_save_LIBS
6575fi
6576echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6577echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6578if test "$ac_cv_search_exc_resume" != no; then
6579 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6580
6581fi
6582
6583GNAT_LIBEXC="$LIBS"
6584LIBS="$save_LIBS"
6585
6586
6587# Some systems put ldexp and frexp in libm instead of libc; assume
6588# they're both in the same place. jcf-dump needs them.
6589save_LIBS="$LIBS"
6590LIBS=
6591echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6592echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6593if test "${ac_cv_search_ldexp+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596 ac_func_search_save_LIBS=$LIBS
6597ac_cv_search_ldexp=no
6598cat >conftest.$ac_ext <<_ACEOF
6599/* confdefs.h. */
6600_ACEOF
6601cat confdefs.h >>conftest.$ac_ext
6602cat >>conftest.$ac_ext <<_ACEOF
6603/* end confdefs.h. */
6604
6605/* Override any gcc2 internal prototype to avoid an error. */
6606#ifdef __cplusplus
6607extern "C"
6608#endif
6609/* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6611char ldexp ();
6612int
6613main ()
6614{
6615ldexp ();
6616 ;
6617 return 0;
6618}
6619_ACEOF
6620rm -f conftest.$ac_objext conftest$ac_exeext
6621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6622 (eval $ac_link) 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -z "$ac_c_werror_flag"
6630 || test ! -s conftest.err'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; } &&
6636 { ac_try='test -s conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_search_ldexp="none required"
6643else
6644 echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647fi
6648rm -f conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6650if test "$ac_cv_search_ldexp" = no; then
6651 for ac_lib in m; do
6652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659
6660/* Override any gcc2 internal prototype to avoid an error. */
6661#ifdef __cplusplus
6662extern "C"
6663#endif
6664/* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666char ldexp ();
6667int
6668main ()
6669{
6670ldexp ();
6671 ;
6672 return 0;
6673}
6674_ACEOF
6675rm -f conftest.$ac_objext conftest$ac_exeext
6676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag"
6685 || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 ac_cv_search_ldexp="-l$ac_lib"
6698break
6699else
6700 echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703fi
6704rm -f conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 done
6707fi
6708LIBS=$ac_func_search_save_LIBS
6709fi
6710echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6711echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6712if test "$ac_cv_search_ldexp" != no; then
6713 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6714
6715fi
6716
6717LDEXP_LIB="$LIBS"
6718LIBS="$save_LIBS"
6719
6720
6721# Use <inttypes.h> only if it exists,
6722# doesn't clash with <sys/types.h>, and declares intmax_t.
6723echo "$as_me:$LINENO: checking for inttypes.h" >&5
6724echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6725if test "${gcc_cv_header_inttypes_h+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728 cat >conftest.$ac_ext <<_ACEOF
6729/* confdefs.h. */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
6733/* end confdefs.h. */
6734#include <sys/types.h>
6735#include <inttypes.h>
6736int
6737main ()
6738{
6739intmax_t i = -1;
6740 ;
6741 return 0;
6742}
6743_ACEOF
6744rm -f conftest.$ac_objext
6745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 gcc_cv_header_inttypes_h=yes
6767else
6768 echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771gcc_cv_header_inttypes_h=no
6772fi
6773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774fi
6775
6776echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6777echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6778if test $gcc_cv_header_inttypes_h = yes; then
6779
6780cat >>confdefs.h <<\_ACEOF
6781#define HAVE_INTTYPES_H 1
6782_ACEOF
6783
6784fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
8840esac
8841
8842
8843# These libraries may be used by collect2.
8844# We may need a special search path to get them linked.
8845echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8846echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8847if test "${gcc_cv_collect2_libs+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8849else
8850 save_LIBS="$LIBS"
8851for libs in '' -lld -lmld \
8852 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8853 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8854do
8855 LIBS="$libs"
8856 cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862
8863/* Override any gcc2 internal prototype to avoid an error. */
8864#ifdef __cplusplus
8865extern "C"
8866#endif
8867/* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8869char ldopen ();
8870int
8871main ()
8872{
8873ldopen ();
8874 ;
8875 return 0;
8876}
8877_ACEOF
8878rm -f conftest.$ac_objext conftest$ac_exeext
8879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag"
8888 || test ! -s conftest.err'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try='test -s conftest$ac_exeext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 gcc_cv_collect2_libs="$libs"; break
8901else
8902 echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905fi
8906rm -f conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908done
8909LIBS="$save_LIBS"
8910test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8911fi
8912echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8913echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8914case $gcc_cv_collect2_libs in
8915 "none required") ;;
8916 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8917esac
8918
8919
8920# When building Ada code on Alpha, we need exc_resume which is usually in
8921# -lexc. So test for it.
8922save_LIBS="$LIBS"
8923LIBS=
8924echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8925echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8926if test "${ac_cv_search_exc_resume+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928else
8929 ac_func_search_save_LIBS=$LIBS
8930ac_cv_search_exc_resume=no
8931cat >conftest.$ac_ext <<_ACEOF
8932/* confdefs.h. */
8933_ACEOF
8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h. */
8937
8938/* Override any gcc2 internal prototype to avoid an error. */
8939#ifdef __cplusplus
8940extern "C"
8941#endif
8942/* We use char because int might match the return type of a gcc2
8943 builtin and then its argument prototype would still apply. */
8944char exc_resume ();
8945int
8946main ()
8947{
8948exc_resume ();
8949 ;
8950 return 0;
8951}
8952_ACEOF
8953rm -f conftest.$ac_objext conftest$ac_exeext
8954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag"
8963 || test ! -s conftest.err'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } &&
8969 { ac_try='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_cv_search_exc_resume="none required"
8976else
8977 echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980fi
8981rm -f conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8983if test "$ac_cv_search_exc_resume" = no; then
8984 for ac_lib in exc; do
8985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8986 cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
8992
8993/* Override any gcc2 internal prototype to avoid an error. */
8994#ifdef __cplusplus
8995extern "C"
8996#endif
8997/* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
8999char exc_resume ();
9000int
9001main ()
9002{
9003exc_resume ();
9004 ;
9005 return 0;
9006}
9007_ACEOF
9008rm -f conftest.$ac_objext conftest$ac_exeext
9009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010 (eval $ac_link) 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag"
9018 || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest$ac_exeext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_search_exc_resume="-l$ac_lib"
9031break
9032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036fi
9037rm -f conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9039 done
9040fi
9041LIBS=$ac_func_search_save_LIBS
9042fi
9043echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9044echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9045if test "$ac_cv_search_exc_resume" != no; then
9046 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9047
9048fi
9049
9050GNAT_LIBEXC="$LIBS"
9051LIBS="$save_LIBS"
9052
9053
9054# Some systems put ldexp and frexp in libm instead of libc; assume
9055# they're both in the same place. jcf-dump needs them.
9056save_LIBS="$LIBS"
9057LIBS=
9058echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9059echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9060if test "${ac_cv_search_ldexp+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062else
9063 ac_func_search_save_LIBS=$LIBS
9064ac_cv_search_ldexp=no
9065cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h. */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h. */
9071
9072/* Override any gcc2 internal prototype to avoid an error. */
9073#ifdef __cplusplus
9074extern "C"
9075#endif
9076/* We use char because int might match the return type of a gcc2
9077 builtin and then its argument prototype would still apply. */
9078char ldexp ();
9079int
9080main ()
9081{
9082ldexp ();
9083 ;
9084 return 0;
9085}
9086_ACEOF
9087rm -f conftest.$ac_objext conftest$ac_exeext
9088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_search_ldexp="none required"
9110else
9111 echo "$as_me: failed program was:" >&5
9112sed 's/^/| /' conftest.$ac_ext >&5
9113
9114fi
9115rm -f conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117if test "$ac_cv_search_ldexp" = no; then
9118 for ac_lib in m; do
9119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9120 cat >conftest.$ac_ext <<_ACEOF
9121/* confdefs.h. */
9122_ACEOF
9123cat confdefs.h >>conftest.$ac_ext
9124cat >>conftest.$ac_ext <<_ACEOF
9125/* end confdefs.h. */
9126
9127/* Override any gcc2 internal prototype to avoid an error. */
9128#ifdef __cplusplus
9129extern "C"
9130#endif
9131/* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9133char ldexp ();
9134int
9135main ()
9136{
9137ldexp ();
9138 ;
9139 return 0;
9140}
9141_ACEOF
9142rm -f conftest.$ac_objext conftest$ac_exeext
9143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9145 ac_status=$?
9146 grep -v '^ *+' conftest.er1 >conftest.err
9147 rm -f conftest.er1
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 (eval $ac_try) 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_cv_search_ldexp="-l$ac_lib"
9165break
9166else
9167 echo "$as_me: failed program was:" >&5
9168sed 's/^/| /' conftest.$ac_ext >&5
9169
9170fi
9171rm -f conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173 done
9174fi
9175LIBS=$ac_func_search_save_LIBS
9176fi
9177echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9178echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9179if test "$ac_cv_search_ldexp" != no; then
9180 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9181
9182fi
9183
9184LDEXP_LIB="$LIBS"
9185LIBS="$save_LIBS"
9186
9187
9188# Use <inttypes.h> only if it exists,
9189# doesn't clash with <sys/types.h>, and declares intmax_t.
9190echo "$as_me:$LINENO: checking for inttypes.h" >&5
9191echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9192if test "${gcc_cv_header_inttypes_h+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195 cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h. */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h. */
9201#include <sys/types.h>
9202#include <inttypes.h>
9203int
9204main ()
9205{
9206intmax_t i = -1;
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211rm -f conftest.$ac_objext
9212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 gcc_cv_header_inttypes_h=yes
9234else
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
9237
9238gcc_cv_header_inttypes_h=no
9239fi
9240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241fi
9242
9243echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9244echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9245if test $gcc_cv_header_inttypes_h = yes; then
9246
9247cat >>confdefs.h <<\_ACEOF
9248#define HAVE_INTTYPES_H 1
9249_ACEOF
9250
9251fi
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
6812for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6813 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6814 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6815 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6816 setlocale
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9291 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9292 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9293 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
6817do
6818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6819echo "$as_me:$LINENO: checking for $ac_func" >&5
6820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6821if eval "test \"\${$as_ac_var+set}\" = set"; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824 cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h. */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h. */
6830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6832#define $ac_func innocuous_$ac_func
6833
6834/* System header to define __stub macros and hopefully few prototypes,
6835 which can conflict with char $ac_func (); below.
6836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837 <limits.h> exists even on freestanding compilers. */
6838
6839#ifdef __STDC__
6840# include <limits.h>
6841#else
6842# include <assert.h>
6843#endif
6844
6845#undef $ac_func
6846
6847/* Override any gcc2 internal prototype to avoid an error. */
6848#ifdef __cplusplus
6849extern "C"
6850{
6851#endif
6852/* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6854char $ac_func ();
6855/* The GNU C library defines this for functions which it implements
6856 to always fail with ENOSYS. Some functions are actually named
6857 something starting with __ and the normal name is an alias. */
6858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6859choke me
6860#else
6861char (*f) () = $ac_func;
6862#endif
6863#ifdef __cplusplus
6864}
6865#endif
6866
6867int
6868main ()
6869{
6870return f != $ac_func;
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875rm -f conftest.$ac_objext conftest$ac_exeext
6876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest$ac_exeext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 eval "$as_ac_var=yes"
6898else
6899 echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902eval "$as_ac_var=no"
6903fi
6904rm -f conftest.err conftest.$ac_objext \
6905 conftest$ac_exeext conftest.$ac_ext
6906fi
6907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6909if test `eval echo '${'$as_ac_var'}'` = yes; then
6910 cat >>confdefs.h <<_ACEOF
6911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6912_ACEOF
6913
6914fi
6915done
6916
6917
6918if test x$ac_cv_func_mbstowcs = xyes; then
6919 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6920echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6921if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924 if test "$cross_compiling" = yes; then
6925 gcc_cv_func_mbstowcs_works=yes
6926else
6927 cat >conftest.$ac_ext <<_ACEOF
6928/* confdefs.h. */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h. */
6933#include <stdlib.h>
6934int main()
6935{
6936 mbstowcs(0, "", 0);
6937 return 0;
6938}
6939_ACEOF
6940rm -f conftest$ac_exeext
6941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 gcc_cv_func_mbstowcs_works=yes
6952else
6953 echo "$as_me: program exited with status $ac_status" >&5
6954echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
6957( exit $ac_status )
6958gcc_cv_func_mbstowcs_works=no
6959fi
6960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6961fi
6962fi
6963echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6964echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6965 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6966
6967cat >>confdefs.h <<\_ACEOF
6968#define HAVE_WORKING_MBSTOWCS 1
6969_ACEOF
6970
6971 fi
6972fi
6973
6974echo "$as_me:$LINENO: checking for ssize_t" >&5
6975echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6976if test "${ac_cv_type_ssize_t+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978else
6979 cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h. */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h. */
6985$ac_includes_default
6986int
6987main ()
6988{
6989if ((ssize_t *) 0)
6990 return 0;
6991if (sizeof (ssize_t))
6992 return 0;
6993 ;
6994 return 0;
6995}
6996_ACEOF
6997rm -f conftest.$ac_objext
6998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999 (eval $ac_compile) 2>conftest.er1
7000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } &&
7006 { ac_try='test -z "$ac_c_werror_flag"
7007 || test ! -s conftest.err'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try='test -s conftest.$ac_objext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_type_ssize_t=yes
7020else
7021 echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024ac_cv_type_ssize_t=no
7025fi
7026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7029echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7030if test $ac_cv_type_ssize_t = yes; then
7031 :
7032else
7033
7034cat >>confdefs.h <<_ACEOF
7035#define ssize_t int
7036_ACEOF
7037
7038fi
7039
7040
7041# Try to determine the array type of the second argument of getgroups
7042# for the target system (int or gid_t).
7043echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7044echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7045if test "${ac_cv_type_uid_t+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054#include <sys/types.h>
7055
7056_ACEOF
7057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7058 $EGREP "uid_t" >/dev/null 2>&1; then
7059 ac_cv_type_uid_t=yes
7060else
7061 ac_cv_type_uid_t=no
7062fi
7063rm -f conftest*
7064
7065fi
7066echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7067echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7068if test $ac_cv_type_uid_t = no; then
7069
7070cat >>confdefs.h <<\_ACEOF
7071#define uid_t int
7072_ACEOF
7073
7074
7075cat >>confdefs.h <<\_ACEOF
7076#define gid_t int
7077_ACEOF
7078
7079fi
7080
7081echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7082echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7083if test "${ac_cv_type_getgroups+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086 if test "$cross_compiling" = yes; then
7087 ac_cv_type_getgroups=cross
7088else
7089 cat >conftest.$ac_ext <<_ACEOF
7090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
7094/* end confdefs.h. */
7095/* Thanks to Mike Rendell for this test. */
7096#include <sys/types.h>
7097#define NGID 256
7098#undef MAX
7099#define MAX(x, y) ((x) > (y) ? (x) : (y))
7100
7101int
7102main ()
7103{
7104 gid_t gidset[NGID];
7105 int i, n;
7106 union { gid_t gval; long lval; } val;
7107
7108 val.lval = -1;
7109 for (i = 0; i < NGID; i++)
7110 gidset[i] = val.gval;
7111 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7112 gidset);
7113 /* Exit non-zero if getgroups seems to require an array of ints. This
7114 happens when gid_t is short but getgroups modifies an array of ints. */
7115 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7116}
7117_ACEOF
7118rm -f conftest$ac_exeext
7119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_type_getgroups=gid_t
7130else
7131 echo "$as_me: program exited with status $ac_status" >&5
7132echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135( exit $ac_status )
7136ac_cv_type_getgroups=int
7137fi
7138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7139fi
7140if test $ac_cv_type_getgroups = cross; then
7141 cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h. */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h. */
7147#include <unistd.h>
7148
7149_ACEOF
7150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7151 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7152 ac_cv_type_getgroups=gid_t
7153else
7154 ac_cv_type_getgroups=int
7155fi
7156rm -f conftest*
7157
7158fi
7159fi
7160echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7161echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7162
7163cat >>confdefs.h <<_ACEOF
7164#define GETGROUPS_T $ac_cv_type_getgroups
7165_ACEOF
7166
7167
7168if test "${target}" = "${build}"; then
7169 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7170else
7171 case "${target}" in
7172 # This condition may need some tweaking. It should include all
7173 # targets where the array type of the second argument of getgroups
7174 # is int and the type of gid_t is not equivalent to int.
7175 *-*-sunos* | *-*-ultrix*)
7176 TARGET_GETGROUPS_T=int
7177 ;;
7178 *)
7179 TARGET_GETGROUPS_T=gid_t
7180 ;;
7181 esac
7182fi
7183
7184
9294do
9295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296echo "$as_me:$LINENO: checking for $ac_func" >&5
9297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298if eval "test \"\${$as_ac_var+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300else
9301 cat >conftest.$ac_ext <<_ACEOF
9302/* confdefs.h. */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h. */
9307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9309#define $ac_func innocuous_$ac_func
9310
9311/* System header to define __stub macros and hopefully few prototypes,
9312 which can conflict with char $ac_func (); below.
9313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314 <limits.h> exists even on freestanding compilers. */
9315
9316#ifdef __STDC__
9317# include <limits.h>
9318#else
9319# include <assert.h>
9320#endif
9321
9322#undef $ac_func
9323
9324/* Override any gcc2 internal prototype to avoid an error. */
9325#ifdef __cplusplus
9326extern "C"
9327{
9328#endif
9329/* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9331char $ac_func ();
9332/* The GNU C library defines this for functions which it implements
9333 to always fail with ENOSYS. Some functions are actually named
9334 something starting with __ and the normal name is an alias. */
9335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336choke me
9337#else
9338char (*f) () = $ac_func;
9339#endif
9340#ifdef __cplusplus
9341}
9342#endif
9343
9344int
9345main ()
9346{
9347return f != $ac_func;
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext conftest$ac_exeext
9353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 eval "$as_ac_var=yes"
9375else
9376 echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379eval "$as_ac_var=no"
9380fi
9381rm -f conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383fi
9384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9386if test `eval echo '${'$as_ac_var'}'` = yes; then
9387 cat >>confdefs.h <<_ACEOF
9388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389_ACEOF
9390
9391fi
9392done
9393
9394
9395if test x$ac_cv_func_mbstowcs = xyes; then
9396 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9397echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9398if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401 if test "$cross_compiling" = yes; then
9402 gcc_cv_func_mbstowcs_works=yes
9403else
9404 cat >conftest.$ac_ext <<_ACEOF
9405/* confdefs.h. */
9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
9409/* end confdefs.h. */
9410#include <stdlib.h>
9411int main()
9412{
9413 mbstowcs(0, "", 0);
9414 return 0;
9415}
9416_ACEOF
9417rm -f conftest$ac_exeext
9418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 gcc_cv_func_mbstowcs_works=yes
9429else
9430 echo "$as_me: program exited with status $ac_status" >&5
9431echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434( exit $ac_status )
9435gcc_cv_func_mbstowcs_works=no
9436fi
9437rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9438fi
9439fi
9440echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9441echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9442 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9443
9444cat >>confdefs.h <<\_ACEOF
9445#define HAVE_WORKING_MBSTOWCS 1
9446_ACEOF
9447
9448 fi
9449fi
9450
9451echo "$as_me:$LINENO: checking for ssize_t" >&5
9452echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9453if test "${ac_cv_type_ssize_t+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456 cat >conftest.$ac_ext <<_ACEOF
9457/* confdefs.h. */
9458_ACEOF
9459cat confdefs.h >>conftest.$ac_ext
9460cat >>conftest.$ac_ext <<_ACEOF
9461/* end confdefs.h. */
9462$ac_includes_default
9463int
9464main ()
9465{
9466if ((ssize_t *) 0)
9467 return 0;
9468if (sizeof (ssize_t))
9469 return 0;
9470 ;
9471 return 0;
9472}
9473_ACEOF
9474rm -f conftest.$ac_objext
9475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9476 (eval $ac_compile) 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag"
9484 || test ! -s conftest.err'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest.$ac_objext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 (eval $ac_try) 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_cv_type_ssize_t=yes
9497else
9498 echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501ac_cv_type_ssize_t=no
9502fi
9503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504fi
9505echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9506echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9507if test $ac_cv_type_ssize_t = yes; then
9508 :
9509else
9510
9511cat >>confdefs.h <<_ACEOF
9512#define ssize_t int
9513_ACEOF
9514
9515fi
9516
9517
9518# Try to determine the array type of the second argument of getgroups
9519# for the target system (int or gid_t).
9520echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9521echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9522if test "${ac_cv_type_uid_t+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525 cat >conftest.$ac_ext <<_ACEOF
9526/* confdefs.h. */
9527_ACEOF
9528cat confdefs.h >>conftest.$ac_ext
9529cat >>conftest.$ac_ext <<_ACEOF
9530/* end confdefs.h. */
9531#include <sys/types.h>
9532
9533_ACEOF
9534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 $EGREP "uid_t" >/dev/null 2>&1; then
9536 ac_cv_type_uid_t=yes
9537else
9538 ac_cv_type_uid_t=no
9539fi
9540rm -f conftest*
9541
9542fi
9543echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9544echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9545if test $ac_cv_type_uid_t = no; then
9546
9547cat >>confdefs.h <<\_ACEOF
9548#define uid_t int
9549_ACEOF
9550
9551
9552cat >>confdefs.h <<\_ACEOF
9553#define gid_t int
9554_ACEOF
9555
9556fi
9557
9558echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9559echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9560if test "${ac_cv_type_getgroups+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562else
9563 if test "$cross_compiling" = yes; then
9564 ac_cv_type_getgroups=cross
9565else
9566 cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h. */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h. */
9572/* Thanks to Mike Rendell for this test. */
9573#include <sys/types.h>
9574#define NGID 256
9575#undef MAX
9576#define MAX(x, y) ((x) > (y) ? (x) : (y))
9577
9578int
9579main ()
9580{
9581 gid_t gidset[NGID];
9582 int i, n;
9583 union { gid_t gval; long lval; } val;
9584
9585 val.lval = -1;
9586 for (i = 0; i < NGID; i++)
9587 gidset[i] = val.gval;
9588 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9589 gidset);
9590 /* Exit non-zero if getgroups seems to require an array of ints. This
9591 happens when gid_t is short but getgroups modifies an array of ints. */
9592 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9593}
9594_ACEOF
9595rm -f conftest$ac_exeext
9596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597 (eval $ac_link) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_cv_type_getgroups=gid_t
9607else
9608 echo "$as_me: program exited with status $ac_status" >&5
9609echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612( exit $ac_status )
9613ac_cv_type_getgroups=int
9614fi
9615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9616fi
9617if test $ac_cv_type_getgroups = cross; then
9618 cat >conftest.$ac_ext <<_ACEOF
9619/* confdefs.h. */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h. */
9624#include <unistd.h>
9625
9626_ACEOF
9627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9628 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9629 ac_cv_type_getgroups=gid_t
9630else
9631 ac_cv_type_getgroups=int
9632fi
9633rm -f conftest*
9634
9635fi
9636fi
9637echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9638echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9639
9640cat >>confdefs.h <<_ACEOF
9641#define GETGROUPS_T $ac_cv_type_getgroups
9642_ACEOF
9643
9644
9645if test "${target}" = "${build}"; then
9646 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9647else
9648 case "${target}" in
9649 # This condition may need some tweaking. It should include all
9650 # targets where the array type of the second argument of getgroups
9651 # is int and the type of gid_t is not equivalent to int.
9652 *-*-sunos* | *-*-ultrix*)
9653 TARGET_GETGROUPS_T=int
9654 ;;
9655 *)
9656 TARGET_GETGROUPS_T=gid_t
9657 ;;
9658 esac
9659fi
9660
9661
7185echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7186echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7187if test "${gcc_cv_func_printf_ptr+set}" = set; then
9662
9663echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9664echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9665if test "${ac_cv_header_sys_mman_h+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
7190 if test "$cross_compiling" = yes; then
7191 gcc_cv_func_printf_ptr=no
9668 cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h. */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h. */
9674#include <sys/mman.h>
9675_ACEOF
9676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } >/dev/null; then
9684 if test -s conftest.err; then
9685 ac_cpp_err=$ac_c_preproc_warn_flag
9686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9687 else
9688 ac_cpp_err=
9689 fi
7192else
9690else
9691 ac_cpp_err=yes
9692fi
9693if test -z "$ac_cpp_err"; then
9694 ac_cv_header_sys_mman_h=yes
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 ac_cv_header_sys_mman_h=no
9700fi
9701rm -f conftest.err conftest.$ac_ext
9702fi
9703echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9704echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9705if test $ac_cv_header_sys_mman_h = yes; then
9706 gcc_header_sys_mman_h=yes
9707else
9708 gcc_header_sys_mman_h=no
9709fi
9710
9711echo "$as_me:$LINENO: checking for mmap" >&5
9712echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9713if test "${ac_cv_func_mmap+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
7193 cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
9716 cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
7199#include <stdio.h>
9722/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724#define mmap innocuous_mmap
7200
9725
7201int main()
9726/* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char mmap (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9730
9731#ifdef __STDC__
9732# include <limits.h>
9733#else
9734# include <assert.h>
9735#endif
9736
9737#undef mmap
9738
9739/* Override any gcc2 internal prototype to avoid an error. */
9740#ifdef __cplusplus
9741extern "C"
7202{
9742{
7203 char buf[64];
7204 char *p = buf, *q = NULL;
7205 sprintf(buf, "%p", p);
7206 sscanf(buf, "%p", &q);
7207 return (p != q);
9743#endif
9744/* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9746char mmap ();
9747/* The GNU C library defines this for functions which it implements
9748 to always fail with ENOSYS. Some functions are actually named
9749 something starting with __ and the normal name is an alias. */
9750#if defined (__stub_mmap) || defined (__stub___mmap)
9751choke me
9752#else
9753char (*f) () = mmap;
9754#endif
9755#ifdef __cplusplus
7208}
9756}
9757#endif
9758
9759int
9760main ()
9761{
9762return f != mmap;
9763 ;
9764 return 0;
9765}
7209_ACEOF
9766_ACEOF
7210rm -f conftest$ac_exeext
9767rm -f conftest.$ac_objext conftest$ac_exeext
7211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5
9769 (eval $ac_link) 2>conftest.er1
7213 ac_status=$?
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9775 (exit $ac_status); } &&
9776 { ac_try='test -z "$ac_c_werror_flag"
9777 || test ! -s conftest.err'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 (eval $ac_try) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
9788 (exit $ac_status); }; }; then
7221 gcc_cv_func_printf_ptr=yes
9789 ac_cv_func_mmap=yes
7222else
9790else
7223 echo "$as_me: program exited with status $ac_status" >&5
7224echo "$as_me: failed program was:" >&5
9791 echo "$as_me: failed program was:" >&5
7225sed 's/^/| /' conftest.$ac_ext >&5
7226
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
7227( exit $ac_status )
7228gcc_cv_func_printf_ptr=no
9794ac_cv_func_mmap=no
7229fi
9795fi
7230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9796rm -f conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
7231fi
9798fi
7232rm -f core core.* *.core
9799echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9800echo "${ECHO_T}$ac_cv_func_mmap" >&6
9801if test $ac_cv_func_mmap = yes; then
9802 gcc_func_mmap=yes
9803else
9804 gcc_func_mmap=no
7233fi
9805fi
7234echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7235echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7236if test $gcc_cv_func_printf_ptr = yes ; then
7237
9806
7238cat >>confdefs.h <<\_ACEOF
7239#define HAVE_PRINTF_PTR 1
7240_ACEOF
7241
7242fi
7243
7244if test $ac_cv_header_sys_mman_h != yes \
7245 || test $ac_cv_func_mmap != yes; then
9807if test "$gcc_header_sys_mman_h" != yes \
9808 || test "$gcc_func_mmap" != yes; then
7246 gcc_cv_func_mmap_file=no
7247 gcc_cv_func_mmap_dev_zero=no
7248 gcc_cv_func_mmap_anon=no
7249else
7250 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7251echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7252if test "${gcc_cv_func_mmap_file+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255 # Add a system to this blacklist if
7256 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7257 # memory area containing the same data that you'd get if you applied
7258 # read() to the same fd. The only system known to have a problem here
7259 # is VMS, where text files have record structure.
7260 case "$host_os" in
7261 vms* | ultrix*)
7262 gcc_cv_func_mmap_file=no ;;
7263 *)
7264 gcc_cv_func_mmap_file=yes;;
7265 esac
7266fi
7267echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7268echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7269 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7270echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7271if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274 # Add a system to this blacklist if it has mmap() but /dev/zero
7275 # does not exist, or if mmapping /dev/zero does not give anonymous
7276 # zeroed pages with both the following properties:
7277 # 1. If you map N consecutive pages in with one call, and then
7278 # unmap any subset of those pages, the pages that were not
7279 # explicitly unmapped remain accessible.
7280 # 2. If you map two adjacent blocks of memory and then unmap them
7281 # both at once, they must both go away.
7282 # Systems known to be in this category are Windows (all variants),
7283 # VMS, and Darwin.
7284 case "$host_os" in
7285 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7286 gcc_cv_func_mmap_dev_zero=no ;;
7287 *)
7288 gcc_cv_func_mmap_dev_zero=yes;;
7289 esac
7290fi
7291echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7292echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7293
7294 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7295 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7296echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7297if test "${gcc_cv_decl_map_anon+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300 cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h. */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h. */
7306#include <sys/types.h>
7307#include <sys/mman.h>
7308#include <unistd.h>
7309
7310#ifndef MAP_ANONYMOUS
7311#define MAP_ANONYMOUS MAP_ANON
7312#endif
7313
7314int
7315main ()
7316{
7317int n = MAP_ANONYMOUS;
7318 ;
7319 return 0;
7320}
7321_ACEOF
7322rm -f conftest.$ac_objext
7323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } &&
7331 { ac_try='test -z "$ac_c_werror_flag"
7332 || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 gcc_cv_decl_map_anon=yes
7345else
7346 echo "$as_me: failed program was:" >&5
7347sed 's/^/| /' conftest.$ac_ext >&5
7348
7349gcc_cv_decl_map_anon=no
7350fi
7351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352fi
7353echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7354echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7355
7356 if test $gcc_cv_decl_map_anon = no; then
7357 gcc_cv_func_mmap_anon=no
7358 else
7359 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7360echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7361if test "${gcc_cv_func_mmap_anon+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7365 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7366 # doesn't give anonymous zeroed pages with the same properties listed
7367 # above for use of /dev/zero.
7368 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7369 case "$host_os" in
7370 vms* | cygwin* | pe | mingw* | sco* | udk* )
7371 gcc_cv_func_mmap_anon=no ;;
7372 *)
7373 gcc_cv_func_mmap_anon=yes;;
7374 esac
7375fi
7376echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7377echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7378 fi
7379fi
7380
7381if test $gcc_cv_func_mmap_file = yes; then
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define HAVE_MMAP_FILE 1
7385_ACEOF
7386
7387fi
7388if test $gcc_cv_func_mmap_dev_zero = yes; then
7389
7390cat >>confdefs.h <<\_ACEOF
7391#define HAVE_MMAP_DEV_ZERO 1
7392_ACEOF
7393
7394fi
7395if test $gcc_cv_func_mmap_anon = yes; then
7396
7397cat >>confdefs.h <<\_ACEOF
7398#define HAVE_MMAP_ANON 1
7399_ACEOF
7400
7401fi
7402
7403
7404case "${host}" in
7405*-*-*vms*)
7406 # Under VMS, vfork works very differently than on Unix. The standard test
7407 # won't work, and it isn't easily adaptable. It makes more sense to
7408 # just force it.
7409 ac_cv_func_vfork_works=yes
7410 ;;
7411esac
7412echo "$as_me:$LINENO: checking for pid_t" >&5
7413echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7414if test "${ac_cv_type_pid_t+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417 cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h. */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h. */
7423$ac_includes_default
7424int
7425main ()
7426{
7427if ((pid_t *) 0)
7428 return 0;
7429if (sizeof (pid_t))
7430 return 0;
7431 ;
7432 return 0;
7433}
7434_ACEOF
7435rm -f conftest.$ac_objext
7436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437 (eval $ac_compile) 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest.$ac_objext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_type_pid_t=yes
7458else
7459 echo "$as_me: failed program was:" >&5
7460sed 's/^/| /' conftest.$ac_ext >&5
7461
7462ac_cv_type_pid_t=no
7463fi
7464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7465fi
7466echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7467echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7468if test $ac_cv_type_pid_t = yes; then
7469 :
7470else
7471
7472cat >>confdefs.h <<_ACEOF
7473#define pid_t int
7474_ACEOF
7475
7476fi
7477
7478
7479
7480for ac_header in unistd.h vfork.h
7481do
7482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483echo "$as_me:$LINENO: checking for $ac_header" >&5
7484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7485if eval "test \"\${$as_ac_Header+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487else
7488 cat >conftest.$ac_ext <<_ACEOF
7489/* confdefs.h. */
7490_ACEOF
7491cat confdefs.h >>conftest.$ac_ext
7492cat >>conftest.$ac_ext <<_ACEOF
7493/* end confdefs.h. */
7494#include <$ac_header>
7495_ACEOF
7496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } >/dev/null; then
7504 if test -s conftest.err; then
7505 ac_cpp_err=$ac_c_preproc_warn_flag
7506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7507 else
7508 ac_cpp_err=
7509 fi
7510else
7511 ac_cpp_err=yes
7512fi
7513if test -z "$ac_cpp_err"; then
7514 eval "$as_ac_Header=yes"
7515else
7516 echo "$as_me: failed program was:" >&5
7517sed 's/^/| /' conftest.$ac_ext >&5
7518
7519 eval "$as_ac_Header=no"
7520fi
7521rm -f conftest.err conftest.$ac_ext
7522fi
7523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7525if test `eval echo '${'$as_ac_Header'}'` = yes; then
7526 cat >>confdefs.h <<_ACEOF
7527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528_ACEOF
7529
7530fi
7531done
7532
7533
7534
7535for ac_func in fork vfork
7536do
7537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7538echo "$as_me:$LINENO: checking for $ac_func" >&5
7539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7540if eval "test \"\${$as_ac_var+set}\" = set"; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542else
7543 cat >conftest.$ac_ext <<_ACEOF
7544/* confdefs.h. */
7545_ACEOF
7546cat confdefs.h >>conftest.$ac_ext
7547cat >>conftest.$ac_ext <<_ACEOF
7548/* end confdefs.h. */
7549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7551#define $ac_func innocuous_$ac_func
7552
7553/* System header to define __stub macros and hopefully few prototypes,
7554 which can conflict with char $ac_func (); below.
7555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7556 <limits.h> exists even on freestanding compilers. */
7557
7558#ifdef __STDC__
7559# include <limits.h>
7560#else
7561# include <assert.h>
7562#endif
7563
7564#undef $ac_func
7565
7566/* Override any gcc2 internal prototype to avoid an error. */
7567#ifdef __cplusplus
7568extern "C"
7569{
7570#endif
7571/* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7573char $ac_func ();
7574/* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7578choke me
7579#else
7580char (*f) () = $ac_func;
7581#endif
7582#ifdef __cplusplus
7583}
7584#endif
7585
7586int
7587main ()
7588{
7589return f != $ac_func;
7590 ;
7591 return 0;
7592}
7593_ACEOF
7594rm -f conftest.$ac_objext conftest$ac_exeext
7595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>conftest.er1
7597 ac_status=$?
7598 grep -v '^ *+' conftest.er1 >conftest.err
7599 rm -f conftest.er1
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -z "$ac_c_werror_flag"
7604 || test ! -s conftest.err'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; } &&
7610 { ac_try='test -s conftest$ac_exeext'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 eval "$as_ac_var=yes"
7617else
7618 echo "$as_me: failed program was:" >&5
7619sed 's/^/| /' conftest.$ac_ext >&5
7620
7621eval "$as_ac_var=no"
7622fi
7623rm -f conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625fi
7626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7628if test `eval echo '${'$as_ac_var'}'` = yes; then
7629 cat >>confdefs.h <<_ACEOF
7630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7631_ACEOF
7632
7633fi
7634done
7635
7636if test "x$ac_cv_func_fork" = xyes; then
7637 echo "$as_me:$LINENO: checking for working fork" >&5
7638echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7639if test "${ac_cv_func_fork_works+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642 if test "$cross_compiling" = yes; then
7643 ac_cv_func_fork_works=cross
7644else
7645 cat >conftest.$ac_ext <<_ACEOF
7646/* By Ruediger Kuhlmann. */
7647 #include <sys/types.h>
7648 #if HAVE_UNISTD_H
7649 # include <unistd.h>
7650 #endif
7651 /* Some systems only have a dummy stub for fork() */
7652 int main ()
7653 {
7654 if (fork() < 0)
7655 exit (1);
7656 exit (0);
7657 }
7658_ACEOF
7659rm -f conftest$ac_exeext
7660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_func_fork_works=yes
7671else
7672 echo "$as_me: program exited with status $ac_status" >&5
7673echo "$as_me: failed program was:" >&5
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
7676( exit $ac_status )
7677ac_cv_func_fork_works=no
7678fi
7679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7680fi
7681fi
7682echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7683echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7684
7685else
7686 ac_cv_func_fork_works=$ac_cv_func_fork
7687fi
7688if test "x$ac_cv_func_fork_works" = xcross; then
7689 case $host in
7690 *-*-amigaos* | *-*-msdosdjgpp*)
7691 # Override, as these systems have only a dummy fork() stub
7692 ac_cv_func_fork_works=no
7693 ;;
7694 *)
7695 ac_cv_func_fork_works=yes
7696 ;;
7697 esac
7698 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7699echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7700fi
7701ac_cv_func_vfork_works=$ac_cv_func_vfork
7702if test "x$ac_cv_func_vfork" = xyes; then
7703 echo "$as_me:$LINENO: checking for working vfork" >&5
7704echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7705if test "${ac_cv_func_vfork_works+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708 if test "$cross_compiling" = yes; then
7709 ac_cv_func_vfork_works=cross
7710else
7711 cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
7717/* Thanks to Paul Eggert for this test. */
7718#include <stdio.h>
7719#include <stdlib.h>
7720#include <sys/types.h>
7721#include <sys/stat.h>
7722#include <sys/wait.h>
7723#if HAVE_UNISTD_H
7724# include <unistd.h>
7725#endif
7726#if HAVE_VFORK_H
7727# include <vfork.h>
7728#endif
7729/* On some sparc systems, changes by the child to local and incoming
7730 argument registers are propagated back to the parent. The compiler
7731 is told about this with #include <vfork.h>, but some compilers
7732 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7733 static variable whose address is put into a register that is
7734 clobbered by the vfork. */
7735static void
7736#ifdef __cplusplus
7737sparc_address_test (int arg)
7738# else
7739sparc_address_test (arg) int arg;
7740#endif
7741{
7742 static pid_t child;
7743 if (!child) {
7744 child = vfork ();
7745 if (child < 0) {
7746 perror ("vfork");
7747 _exit(2);
7748 }
7749 if (!child) {
7750 arg = getpid();
7751 write(-1, "", 0);
7752 _exit (arg);
7753 }
7754 }
7755}
7756
7757int
7758main ()
7759{
7760 pid_t parent = getpid ();
7761 pid_t child;
7762
7763 sparc_address_test (0);
7764
7765 child = vfork ();
7766
7767 if (child == 0) {
7768 /* Here is another test for sparc vfork register problems. This
7769 test uses lots of local variables, at least as many local
7770 variables as main has allocated so far including compiler
7771 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7772 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7773 reuse the register of parent for one of the local variables,
7774 since it will think that parent can't possibly be used any more
7775 in this routine. Assigning to the local variable will thus
7776 munge parent in the parent process. */
7777 pid_t
7778 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7779 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7780 /* Convince the compiler that p..p7 are live; otherwise, it might
7781 use the same hardware register for all 8 local variables. */
7782 if (p != p1 || p != p2 || p != p3 || p != p4
7783 || p != p5 || p != p6 || p != p7)
7784 _exit(1);
7785
7786 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7787 from child file descriptors. If the child closes a descriptor
7788 before it execs or exits, this munges the parent's descriptor
7789 as well. Test for this by closing stdout in the child. */
7790 _exit(close(fileno(stdout)) != 0);
7791 } else {
7792 int status;
7793 struct stat st;
7794
7795 while (wait(&status) != child)
7796 ;
7797 exit(
7798 /* Was there some problem with vforking? */
7799 child < 0
7800
7801 /* Did the child fail? (This shouldn't happen.) */
7802 || status
7803
7804 /* Did the vfork/compiler bug occur? */
7805 || parent != getpid()
7806
7807 /* Did the file descriptor bug occur? */
7808 || fstat(fileno(stdout), &st) != 0
7809 );
7810 }
7811}
7812_ACEOF
7813rm -f conftest$ac_exeext
7814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815 (eval $ac_link) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_cv_func_vfork_works=yes
7825else
7826 echo "$as_me: program exited with status $ac_status" >&5
7827echo "$as_me: failed program was:" >&5
7828sed 's/^/| /' conftest.$ac_ext >&5
7829
7830( exit $ac_status )
7831ac_cv_func_vfork_works=no
7832fi
7833rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7834fi
7835fi
7836echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7837echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7838
7839fi;
7840if test "x$ac_cv_func_fork_works" = xcross; then
7841 ac_cv_func_vfork_works=$ac_cv_func_vfork
7842 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7843echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7844fi
7845
7846if test "x$ac_cv_func_vfork_works" = xyes; then
7847
7848cat >>confdefs.h <<\_ACEOF
7849#define HAVE_WORKING_VFORK 1
7850_ACEOF
7851
7852else
7853
7854cat >>confdefs.h <<\_ACEOF
7855#define vfork fork
7856_ACEOF
7857
7858fi
7859if test "x$ac_cv_func_fork_works" = xyes; then
7860
7861cat >>confdefs.h <<\_ACEOF
7862#define HAVE_WORKING_FORK 1
7863_ACEOF
7864
7865fi
7866
7867
7868
9809 gcc_cv_func_mmap_file=no
9810 gcc_cv_func_mmap_dev_zero=no
9811 gcc_cv_func_mmap_anon=no
9812else
9813 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9814echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9815if test "${gcc_cv_func_mmap_file+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818 # Add a system to this blacklist if
9819 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9820 # memory area containing the same data that you'd get if you applied
9821 # read() to the same fd. The only system known to have a problem here
9822 # is VMS, where text files have record structure.
9823 case "$host_os" in
9824 vms* | ultrix*)
9825 gcc_cv_func_mmap_file=no ;;
9826 *)
9827 gcc_cv_func_mmap_file=yes;;
9828 esac
9829fi
9830echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9831echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9832 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9833echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9834if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837 # Add a system to this blacklist if it has mmap() but /dev/zero
9838 # does not exist, or if mmapping /dev/zero does not give anonymous
9839 # zeroed pages with both the following properties:
9840 # 1. If you map N consecutive pages in with one call, and then
9841 # unmap any subset of those pages, the pages that were not
9842 # explicitly unmapped remain accessible.
9843 # 2. If you map two adjacent blocks of memory and then unmap them
9844 # both at once, they must both go away.
9845 # Systems known to be in this category are Windows (all variants),
9846 # VMS, and Darwin.
9847 case "$host_os" in
9848 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9849 gcc_cv_func_mmap_dev_zero=no ;;
9850 *)
9851 gcc_cv_func_mmap_dev_zero=yes;;
9852 esac
9853fi
9854echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9855echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9856
9857 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9858 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9859echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9860if test "${gcc_cv_decl_map_anon+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 cat >conftest.$ac_ext <<_ACEOF
9864/* confdefs.h. */
9865_ACEOF
9866cat confdefs.h >>conftest.$ac_ext
9867cat >>conftest.$ac_ext <<_ACEOF
9868/* end confdefs.h. */
9869#include <sys/types.h>
9870#include <sys/mman.h>
9871#include <unistd.h>
9872
9873#ifndef MAP_ANONYMOUS
9874#define MAP_ANONYMOUS MAP_ANON
9875#endif
9876
9877int
9878main ()
9879{
9880int n = MAP_ANONYMOUS;
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext
9886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887 (eval $ac_compile) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 gcc_cv_decl_map_anon=yes
9908else
9909 echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912gcc_cv_decl_map_anon=no
9913fi
9914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9915fi
9916echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9917echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9918
9919 if test $gcc_cv_decl_map_anon = no; then
9920 gcc_cv_func_mmap_anon=no
9921 else
9922 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9923echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9924if test "${gcc_cv_func_mmap_anon+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9928 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9929 # doesn't give anonymous zeroed pages with the same properties listed
9930 # above for use of /dev/zero.
9931 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9932 case "$host_os" in
9933 vms* | cygwin* | pe | mingw* | sco* | udk* )
9934 gcc_cv_func_mmap_anon=no ;;
9935 *)
9936 gcc_cv_func_mmap_anon=yes;;
9937 esac
9938fi
9939echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9940echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9941 fi
9942fi
9943
9944if test $gcc_cv_func_mmap_file = yes; then
9945
9946cat >>confdefs.h <<\_ACEOF
9947#define HAVE_MMAP_FILE 1
9948_ACEOF
9949
9950fi
9951if test $gcc_cv_func_mmap_dev_zero = yes; then
9952
9953cat >>confdefs.h <<\_ACEOF
9954#define HAVE_MMAP_DEV_ZERO 1
9955_ACEOF
9956
9957fi
9958if test $gcc_cv_func_mmap_anon = yes; then
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define HAVE_MMAP_ANON 1
9962_ACEOF
9963
9964fi
9965
9966
9967case "${host}" in
9968*-*-*vms*)
9969 # Under VMS, vfork works very differently than on Unix. The standard test
9970 # won't work, and it isn't easily adaptable. It makes more sense to
9971 # just force it.
9972 ac_cv_func_vfork_works=yes
9973 ;;
9974esac
9975echo "$as_me:$LINENO: checking for pid_t" >&5
9976echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9977if test "${ac_cv_type_pid_t+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980 cat >conftest.$ac_ext <<_ACEOF
9981/* confdefs.h. */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h. */
9986$ac_includes_default
9987int
9988main ()
9989{
9990if ((pid_t *) 0)
9991 return 0;
9992if (sizeof (pid_t))
9993 return 0;
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext
9999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest.$ac_objext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_type_pid_t=yes
10021else
10022 echo "$as_me: failed program was:" >&5
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
10025ac_cv_type_pid_t=no
10026fi
10027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10028fi
10029echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10030echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10031if test $ac_cv_type_pid_t = yes; then
10032 :
10033else
10034
10035cat >>confdefs.h <<_ACEOF
10036#define pid_t int
10037_ACEOF
10038
10039fi
10040
10041
10042
10043for ac_header in unistd.h vfork.h
10044do
10045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10046echo "$as_me:$LINENO: checking for $ac_header" >&5
10047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10048if eval "test \"\${$as_ac_Header+set}\" = set"; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050else
10051 cat >conftest.$ac_ext <<_ACEOF
10052/* confdefs.h. */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h. */
10057#include <$ac_header>
10058_ACEOF
10059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } >/dev/null; then
10067 if test -s conftest.err; then
10068 ac_cpp_err=$ac_c_preproc_warn_flag
10069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10070 else
10071 ac_cpp_err=
10072 fi
10073else
10074 ac_cpp_err=yes
10075fi
10076if test -z "$ac_cpp_err"; then
10077 eval "$as_ac_Header=yes"
10078else
10079 echo "$as_me: failed program was:" >&5
10080sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 eval "$as_ac_Header=no"
10083fi
10084rm -f conftest.err conftest.$ac_ext
10085fi
10086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10088if test `eval echo '${'$as_ac_Header'}'` = yes; then
10089 cat >>confdefs.h <<_ACEOF
10090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10091_ACEOF
10092
10093fi
10094done
10095
10096
10097
10098for ac_func in fork vfork
10099do
10100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10101echo "$as_me:$LINENO: checking for $ac_func" >&5
10102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10103if eval "test \"\${$as_ac_var+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
10106 cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h. */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h. */
10112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114#define $ac_func innocuous_$ac_func
10115
10116/* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char $ac_func (); below.
10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119 <limits.h> exists even on freestanding compilers. */
10120
10121#ifdef __STDC__
10122# include <limits.h>
10123#else
10124# include <assert.h>
10125#endif
10126
10127#undef $ac_func
10128
10129/* Override any gcc2 internal prototype to avoid an error. */
10130#ifdef __cplusplus
10131extern "C"
10132{
10133#endif
10134/* We use char because int might match the return type of a gcc2
10135 builtin and then its argument prototype would still apply. */
10136char $ac_func ();
10137/* The GNU C library defines this for functions which it implements
10138 to always fail with ENOSYS. Some functions are actually named
10139 something starting with __ and the normal name is an alias. */
10140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10141choke me
10142#else
10143char (*f) () = $ac_func;
10144#endif
10145#ifdef __cplusplus
10146}
10147#endif
10148
10149int
10150main ()
10151{
10152return f != $ac_func;
10153 ;
10154 return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext conftest$ac_exeext
10158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 eval "$as_ac_var=yes"
10180else
10181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
10184eval "$as_ac_var=no"
10185fi
10186rm -f conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188fi
10189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10191if test `eval echo '${'$as_ac_var'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194_ACEOF
10195
10196fi
10197done
10198
10199if test "x$ac_cv_func_fork" = xyes; then
10200 echo "$as_me:$LINENO: checking for working fork" >&5
10201echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10202if test "${ac_cv_func_fork_works+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204else
10205 if test "$cross_compiling" = yes; then
10206 ac_cv_func_fork_works=cross
10207else
10208 cat >conftest.$ac_ext <<_ACEOF
10209/* By Ruediger Kuhlmann. */
10210 #include <sys/types.h>
10211 #if HAVE_UNISTD_H
10212 # include <unistd.h>
10213 #endif
10214 /* Some systems only have a dummy stub for fork() */
10215 int main ()
10216 {
10217 if (fork() < 0)
10218 exit (1);
10219 exit (0);
10220 }
10221_ACEOF
10222rm -f conftest$ac_exeext
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_cv_func_fork_works=yes
10234else
10235 echo "$as_me: program exited with status $ac_status" >&5
10236echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239( exit $ac_status )
10240ac_cv_func_fork_works=no
10241fi
10242rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10243fi
10244fi
10245echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10246echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10247
10248else
10249 ac_cv_func_fork_works=$ac_cv_func_fork
10250fi
10251if test "x$ac_cv_func_fork_works" = xcross; then
10252 case $host in
10253 *-*-amigaos* | *-*-msdosdjgpp*)
10254 # Override, as these systems have only a dummy fork() stub
10255 ac_cv_func_fork_works=no
10256 ;;
10257 *)
10258 ac_cv_func_fork_works=yes
10259 ;;
10260 esac
10261 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10262echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10263fi
10264ac_cv_func_vfork_works=$ac_cv_func_vfork
10265if test "x$ac_cv_func_vfork" = xyes; then
10266 echo "$as_me:$LINENO: checking for working vfork" >&5
10267echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10268if test "${ac_cv_func_vfork_works+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 if test "$cross_compiling" = yes; then
10272 ac_cv_func_vfork_works=cross
10273else
10274 cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h. */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h. */
10280/* Thanks to Paul Eggert for this test. */
10281#include <stdio.h>
10282#include <stdlib.h>
10283#include <sys/types.h>
10284#include <sys/stat.h>
10285#include <sys/wait.h>
10286#if HAVE_UNISTD_H
10287# include <unistd.h>
10288#endif
10289#if HAVE_VFORK_H
10290# include <vfork.h>
10291#endif
10292/* On some sparc systems, changes by the child to local and incoming
10293 argument registers are propagated back to the parent. The compiler
10294 is told about this with #include <vfork.h>, but some compilers
10295 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10296 static variable whose address is put into a register that is
10297 clobbered by the vfork. */
10298static void
10299#ifdef __cplusplus
10300sparc_address_test (int arg)
10301# else
10302sparc_address_test (arg) int arg;
10303#endif
10304{
10305 static pid_t child;
10306 if (!child) {
10307 child = vfork ();
10308 if (child < 0) {
10309 perror ("vfork");
10310 _exit(2);
10311 }
10312 if (!child) {
10313 arg = getpid();
10314 write(-1, "", 0);
10315 _exit (arg);
10316 }
10317 }
10318}
10319
10320int
10321main ()
10322{
10323 pid_t parent = getpid ();
10324 pid_t child;
10325
10326 sparc_address_test (0);
10327
10328 child = vfork ();
10329
10330 if (child == 0) {
10331 /* Here is another test for sparc vfork register problems. This
10332 test uses lots of local variables, at least as many local
10333 variables as main has allocated so far including compiler
10334 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10335 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10336 reuse the register of parent for one of the local variables,
10337 since it will think that parent can't possibly be used any more
10338 in this routine. Assigning to the local variable will thus
10339 munge parent in the parent process. */
10340 pid_t
10341 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10342 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10343 /* Convince the compiler that p..p7 are live; otherwise, it might
10344 use the same hardware register for all 8 local variables. */
10345 if (p != p1 || p != p2 || p != p3 || p != p4
10346 || p != p5 || p != p6 || p != p7)
10347 _exit(1);
10348
10349 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10350 from child file descriptors. If the child closes a descriptor
10351 before it execs or exits, this munges the parent's descriptor
10352 as well. Test for this by closing stdout in the child. */
10353 _exit(close(fileno(stdout)) != 0);
10354 } else {
10355 int status;
10356 struct stat st;
10357
10358 while (wait(&status) != child)
10359 ;
10360 exit(
10361 /* Was there some problem with vforking? */
10362 child < 0
10363
10364 /* Did the child fail? (This shouldn't happen.) */
10365 || status
10366
10367 /* Did the vfork/compiler bug occur? */
10368 || parent != getpid()
10369
10370 /* Did the file descriptor bug occur? */
10371 || fstat(fileno(stdout), &st) != 0
10372 );
10373 }
10374}
10375_ACEOF
10376rm -f conftest$ac_exeext
10377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378 (eval $ac_link) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_func_vfork_works=yes
10388else
10389 echo "$as_me: program exited with status $ac_status" >&5
10390echo "$as_me: failed program was:" >&5
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
10393( exit $ac_status )
10394ac_cv_func_vfork_works=no
10395fi
10396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10397fi
10398fi
10399echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10400echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10401
10402fi;
10403if test "x$ac_cv_func_fork_works" = xcross; then
10404 ac_cv_func_vfork_works=$ac_cv_func_vfork
10405 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10406echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10407fi
10408
10409if test "x$ac_cv_func_vfork_works" = xyes; then
10410
10411cat >>confdefs.h <<\_ACEOF
10412#define HAVE_WORKING_VFORK 1
10413_ACEOF
10414
10415else
10416
10417cat >>confdefs.h <<\_ACEOF
10418#define vfork fork
10419_ACEOF
10420
10421fi
10422if test "x$ac_cv_func_fork_works" = xyes; then
10423
10424cat >>confdefs.h <<\_ACEOF
10425#define HAVE_WORKING_FORK 1
10426_ACEOF
10427
10428fi
10429
10430
10431
10432 if test "X$prefix" = "XNONE"; then
10433 acl_final_prefix="$ac_default_prefix"
10434 else
10435 acl_final_prefix="$prefix"
10436 fi
10437 if test "X$exec_prefix" = "XNONE"; then
10438 acl_final_exec_prefix='${prefix}'
10439 else
10440 acl_final_exec_prefix="$exec_prefix"
10441 fi
10442 acl_save_prefix="$prefix"
10443 prefix="$acl_final_prefix"
10444 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10445 prefix="$acl_save_prefix"
7869
10446
7870 am_cv_lib_iconv_ldpath=
7871
10447
7872# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7873if test "${with_libiconv_prefix+set}" = set; then
7874 withval="$with_libiconv_prefix"
7875
7876 for dir in `echo "$withval" | tr : ' '`; do
7877 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7878 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7879 done
7880
7881fi;
7882
7883
7884for ac_header in iconv.h
7885do
7886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7887echo "$as_me:$LINENO: checking for $ac_header" >&5
7888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7889if eval "test \"\${$as_ac_Header+set}\" = set"; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
10448# Check whether --with-gnu-ld or --without-gnu-ld was given.
10449if test "${with_gnu_ld+set}" = set; then
10450 withval="$with_gnu_ld"
10451 test "$withval" = no || with_gnu_ld=yes
7891else
10452else
7892 cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h. */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h. */
7898#include <$ac_header>
7899_ACEOF
7900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } >/dev/null; then
7908 if test -s conftest.err; then
7909 ac_cpp_err=$ac_c_preproc_warn_flag
7910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10453 with_gnu_ld=no
10454fi;
10455# Prepare PATH_SEPARATOR.
10456# The user is always right.
10457if test "${PATH_SEPARATOR+set}" != set; then
10458 echo "#! /bin/sh" >conf$$.sh
10459 echo "exit 0" >>conf$$.sh
10460 chmod +x conf$$.sh
10461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10462 PATH_SEPARATOR=';'
7911 else
10463 else
7912 ac_cpp_err=
10464 PATH_SEPARATOR=:
7913 fi
10465 fi
10466 rm -f conf$$.sh
10467fi
10468ac_prog=ld
10469if test "$GCC" = yes; then
10470 # Check if gcc -print-prog-name=ld gives a path.
10471 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10472echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10473 case $host in
10474 *-*-mingw*)
10475 # gcc leaves a trailing carriage return which upsets mingw
10476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10477 *)
10478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10479 esac
10480 case $ac_prog in
10481 # Accept absolute paths.
10482 [\\/]* | [A-Za-z]:[\\/]*)
10483 re_direlt='/[^/][^/]*/\.\./'
10484 # Canonicalize the path of ld
10485 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10487 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10488 done
10489 test -z "$LD" && LD="$ac_prog"
10490 ;;
10491 "")
10492 # If it fails, then pretend we aren't using GCC.
10493 ac_prog=ld
10494 ;;
10495 *)
10496 # If it is relative, then search for the first ld in PATH.
10497 with_gnu_ld=unknown
10498 ;;
10499 esac
10500elif test "$with_gnu_ld" = yes; then
10501 echo "$as_me:$LINENO: checking for GNU ld" >&5
10502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7914else
10503else
7915 ac_cpp_err=yes
10504 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7916fi
10506fi
7917if test -z "$ac_cpp_err"; then
7918 eval "$as_ac_Header=yes"
10507if test "${acl_cv_path_LD+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
10509else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
10510 if test -z "$LD"; then
10511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10512 for ac_dir in $PATH; do
10513 test -z "$ac_dir" && ac_dir=.
10514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10515 acl_cv_path_LD="$ac_dir/$ac_prog"
10516 # Check to see if the program is GNU ld. I'd rather use --version,
10517 # but apparently some GNU ld's only accept -v.
10518 # Break only if it was the GNU/non-GNU ld that we prefer.
10519 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10520 test "$with_gnu_ld" != no && break
10521 else
10522 test "$with_gnu_ld" != yes && break
10523 fi
10524 fi
10525 done
10526 IFS="$ac_save_ifs"
10527else
10528 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10529fi
10530fi
7922
10531
7923 eval "$as_ac_Header=no"
10532LD="$acl_cv_path_LD"
10533if test -n "$LD"; then
10534 echo "$as_me:$LINENO: result: $LD" >&5
10535echo "${ECHO_T}$LD" >&6
10536else
10537 echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
7924fi
10539fi
7925rm -f conftest.err conftest.$ac_ext
10540test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10541echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10542 { (exit 1); exit 1; }; }
10543echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10544echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10545if test "${acl_cv_prog_gnu_ld+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10549if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10550 acl_cv_prog_gnu_ld=yes
10551else
10552 acl_cv_prog_gnu_ld=no
7926fi
10553fi
7927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929if test `eval echo '${'$as_ac_Header'}'` = yes; then
7930 cat >>confdefs.h <<_ACEOF
7931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932_ACEOF
10554fi
10555echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10556echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10557with_gnu_ld=$acl_cv_prog_gnu_ld
7933
10558
10559
10560
10561 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10562echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10563if test "${acl_cv_rpath+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566
10567 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10568 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10569 . ./conftest.sh
10570 rm -f ./conftest.sh
10571 acl_cv_rpath=done
10572
7934fi
10573fi
7935done
10574echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10575echo "${ECHO_T}$acl_cv_rpath" >&6
10576 wl="$acl_cv_wl"
10577 libext="$acl_cv_libext"
10578 shlibext="$acl_cv_shlibext"
10579 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10580 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10581 hardcode_direct="$acl_cv_hardcode_direct"
10582 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10583 # Check whether --enable-rpath or --disable-rpath was given.
10584if test "${enable_rpath+set}" = set; then
10585 enableval="$enable_rpath"
10586 :
10587else
10588 enable_rpath=yes
10589fi;
7936
7937
10590
10591
10592
10593
10594
10595
10596
10597 use_additional=yes
10598
10599 acl_save_prefix="$prefix"
10600 prefix="$acl_final_prefix"
10601 acl_save_exec_prefix="$exec_prefix"
10602 exec_prefix="$acl_final_exec_prefix"
10603
10604 eval additional_includedir=\"$includedir\"
10605 eval additional_libdir=\"$libdir\"
10606
10607 exec_prefix="$acl_save_exec_prefix"
10608 prefix="$acl_save_prefix"
10609
10610
10611# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10612if test "${with_libiconv_prefix+set}" = set; then
10613 withval="$with_libiconv_prefix"
10614
10615 if test "X$withval" = "Xno"; then
10616 use_additional=no
10617 else
10618 if test "X$withval" = "X"; then
10619
10620 acl_save_prefix="$prefix"
10621 prefix="$acl_final_prefix"
10622 acl_save_exec_prefix="$exec_prefix"
10623 exec_prefix="$acl_final_exec_prefix"
10624
10625 eval additional_includedir=\"$includedir\"
10626 eval additional_libdir=\"$libdir\"
10627
10628 exec_prefix="$acl_save_exec_prefix"
10629 prefix="$acl_save_prefix"
10630
10631 else
10632 additional_includedir="$withval/include"
10633 additional_libdir="$withval/lib"
10634 fi
10635 fi
10636
10637fi;
10638 LIBICONV=
10639 LTLIBICONV=
10640 INCICONV=
10641 rpathdirs=
10642 ltrpathdirs=
10643 names_already_handled=
10644 names_next_round='iconv '
10645 while test -n "$names_next_round"; do
10646 names_this_round="$names_next_round"
10647 names_next_round=
10648 for name in $names_this_round; do
10649 already_handled=
10650 for n in $names_already_handled; do
10651 if test "$n" = "$name"; then
10652 already_handled=yes
10653 break
10654 fi
10655 done
10656 if test -z "$already_handled"; then
10657 names_already_handled="$names_already_handled $name"
10658 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10659 eval value=\"\$HAVE_LIB$uppername\"
10660 if test -n "$value"; then
10661 if test "$value" = yes; then
10662 eval value=\"\$LIB$uppername\"
10663 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10664 eval value=\"\$LTLIB$uppername\"
10665 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10666 else
10667 :
10668 fi
10669 else
10670 found_dir=
10671 found_la=
10672 found_so=
10673 found_a=
10674 if test $use_additional = yes; then
10675 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10676 found_dir="$additional_libdir"
10677 found_so="$additional_libdir/lib$name.$shlibext"
10678 if test -f "$additional_libdir/lib$name.la"; then
10679 found_la="$additional_libdir/lib$name.la"
10680 fi
10681 else
10682 if test -f "$additional_libdir/lib$name.$libext"; then
10683 found_dir="$additional_libdir"
10684 found_a="$additional_libdir/lib$name.$libext"
10685 if test -f "$additional_libdir/lib$name.la"; then
10686 found_la="$additional_libdir/lib$name.la"
10687 fi
10688 fi
10689 fi
10690 fi
10691 if test "X$found_dir" = "X"; then
10692 for x in $LDFLAGS $LTLIBICONV; do
10693
10694 acl_save_prefix="$prefix"
10695 prefix="$acl_final_prefix"
10696 acl_save_exec_prefix="$exec_prefix"
10697 exec_prefix="$acl_final_exec_prefix"
10698 eval x=\"$x\"
10699 exec_prefix="$acl_save_exec_prefix"
10700 prefix="$acl_save_prefix"
10701
10702 case "$x" in
10703 -L*)
10704 dir=`echo "X$x" | sed -e 's/^X-L//'`
10705 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10706 found_dir="$dir"
10707 found_so="$dir/lib$name.$shlibext"
10708 if test -f "$dir/lib$name.la"; then
10709 found_la="$dir/lib$name.la"
10710 fi
10711 else
10712 if test -f "$dir/lib$name.$libext"; then
10713 found_dir="$dir"
10714 found_a="$dir/lib$name.$libext"
10715 if test -f "$dir/lib$name.la"; then
10716 found_la="$dir/lib$name.la"
10717 fi
10718 fi
10719 fi
10720 ;;
10721 esac
10722 if test "X$found_dir" != "X"; then
10723 break
10724 fi
10725 done
10726 fi
10727 if test "X$found_dir" != "X"; then
10728 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10729 if test "X$found_so" != "X"; then
10730 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10732 else
10733 haveit=
10734 for x in $ltrpathdirs; do
10735 if test "X$x" = "X$found_dir"; then
10736 haveit=yes
10737 break
10738 fi
10739 done
10740 if test -z "$haveit"; then
10741 ltrpathdirs="$ltrpathdirs $found_dir"
10742 fi
10743 if test "$hardcode_direct" = yes; then
10744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10745 else
10746 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10748 haveit=
10749 for x in $rpathdirs; do
10750 if test "X$x" = "X$found_dir"; then
10751 haveit=yes
10752 break
10753 fi
10754 done
10755 if test -z "$haveit"; then
10756 rpathdirs="$rpathdirs $found_dir"
10757 fi
10758 else
10759 haveit=
10760 for x in $LDFLAGS $LIBICONV; do
10761
10762 acl_save_prefix="$prefix"
10763 prefix="$acl_final_prefix"
10764 acl_save_exec_prefix="$exec_prefix"
10765 exec_prefix="$acl_final_exec_prefix"
10766 eval x=\"$x\"
10767 exec_prefix="$acl_save_exec_prefix"
10768 prefix="$acl_save_prefix"
10769
10770 if test "X$x" = "X-L$found_dir"; then
10771 haveit=yes
10772 break
10773 fi
10774 done
10775 if test -z "$haveit"; then
10776 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10777 fi
10778 if test "$hardcode_minus_L" != no; then
10779 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10780 else
10781 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10782 fi
10783 fi
10784 fi
10785 fi
10786 else
10787 if test "X$found_a" != "X"; then
10788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10789 else
10790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10791 fi
10792 fi
10793 additional_includedir=
10794 case "$found_dir" in
10795 */lib | */lib/)
10796 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10797 additional_includedir="$basedir/include"
10798 ;;
10799 esac
10800 if test "X$additional_includedir" != "X"; then
10801 if test "X$additional_includedir" != "X/usr/include"; then
10802 haveit=
10803 if test "X$additional_includedir" = "X/usr/local/include"; then
10804 if test -n "$GCC"; then
10805 case $host_os in
10806 linux*) haveit=yes;;
10807 esac
10808 fi
10809 fi
10810 if test -z "$haveit"; then
10811 for x in $CPPFLAGS $INCICONV; do
10812
10813 acl_save_prefix="$prefix"
10814 prefix="$acl_final_prefix"
10815 acl_save_exec_prefix="$exec_prefix"
10816 exec_prefix="$acl_final_exec_prefix"
10817 eval x=\"$x\"
10818 exec_prefix="$acl_save_exec_prefix"
10819 prefix="$acl_save_prefix"
10820
10821 if test "X$x" = "X-I$additional_includedir"; then
10822 haveit=yes
10823 break
10824 fi
10825 done
10826 if test -z "$haveit"; then
10827 if test -d "$additional_includedir"; then
10828 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10829 fi
10830 fi
10831 fi
10832 fi
10833 fi
10834 if test -n "$found_la"; then
10835 save_libdir="$libdir"
10836 case "$found_la" in
10837 */* | *\\*) . "$found_la" ;;
10838 *) . "./$found_la" ;;
10839 esac
10840 libdir="$save_libdir"
10841 for dep in $dependency_libs; do
10842 case "$dep" in
10843 -L*)
10844 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10845 if test "X$additional_libdir" != "X/usr/lib"; then
10846 haveit=
10847 if test "X$additional_libdir" = "X/usr/local/lib"; then
10848 if test -n "$GCC"; then
10849 case $host_os in
10850 linux*) haveit=yes;;
10851 esac
10852 fi
10853 fi
10854 if test -z "$haveit"; then
10855 haveit=
10856 for x in $LDFLAGS $LIBICONV; do
10857
10858 acl_save_prefix="$prefix"
10859 prefix="$acl_final_prefix"
10860 acl_save_exec_prefix="$exec_prefix"
10861 exec_prefix="$acl_final_exec_prefix"
10862 eval x=\"$x\"
10863 exec_prefix="$acl_save_exec_prefix"
10864 prefix="$acl_save_prefix"
10865
10866 if test "X$x" = "X-L$additional_libdir"; then
10867 haveit=yes
10868 break
10869 fi
10870 done
10871 if test -z "$haveit"; then
10872 if test -d "$additional_libdir"; then
10873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10874 fi
10875 fi
10876 haveit=
10877 for x in $LDFLAGS $LTLIBICONV; do
10878
10879 acl_save_prefix="$prefix"
10880 prefix="$acl_final_prefix"
10881 acl_save_exec_prefix="$exec_prefix"
10882 exec_prefix="$acl_final_exec_prefix"
10883 eval x=\"$x\"
10884 exec_prefix="$acl_save_exec_prefix"
10885 prefix="$acl_save_prefix"
10886
10887 if test "X$x" = "X-L$additional_libdir"; then
10888 haveit=yes
10889 break
10890 fi
10891 done
10892 if test -z "$haveit"; then
10893 if test -d "$additional_libdir"; then
10894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10895 fi
10896 fi
10897 fi
10898 fi
10899 ;;
10900 -R*)
10901 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10902 if test "$enable_rpath" != no; then
10903 haveit=
10904 for x in $rpathdirs; do
10905 if test "X$x" = "X$dir"; then
10906 haveit=yes
10907 break
10908 fi
10909 done
10910 if test -z "$haveit"; then
10911 rpathdirs="$rpathdirs $dir"
10912 fi
10913 haveit=
10914 for x in $ltrpathdirs; do
10915 if test "X$x" = "X$dir"; then
10916 haveit=yes
10917 break
10918 fi
10919 done
10920 if test -z "$haveit"; then
10921 ltrpathdirs="$ltrpathdirs $dir"
10922 fi
10923 fi
10924 ;;
10925 -l*)
10926 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10927 ;;
10928 *.la)
10929 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10930 ;;
10931 *)
10932 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10934 ;;
10935 esac
10936 done
10937 fi
10938 else
10939 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10941 fi
10942 fi
10943 fi
10944 done
10945 done
10946 if test "X$rpathdirs" != "X"; then
10947 if test -n "$hardcode_libdir_separator"; then
10948 alldirs=
10949 for found_dir in $rpathdirs; do
10950 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10951 done
10952 acl_save_libdir="$libdir"
10953 libdir="$alldirs"
10954 eval flag=\"$hardcode_libdir_flag_spec\"
10955 libdir="$acl_save_libdir"
10956 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10957 else
10958 for found_dir in $rpathdirs; do
10959 acl_save_libdir="$libdir"
10960 libdir="$found_dir"
10961 eval flag=\"$hardcode_libdir_flag_spec\"
10962 libdir="$acl_save_libdir"
10963 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10964 done
10965 fi
10966 fi
10967 if test "X$ltrpathdirs" != "X"; then
10968 for found_dir in $ltrpathdirs; do
10969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10970 done
10971 fi
10972
10973
10974
10975
10976
10977
10978
10979 am_save_CPPFLAGS="$CPPFLAGS"
10980
10981 for element in $INCICONV; do
10982 haveit=
10983 for x in $CPPFLAGS; do
10984
10985 acl_save_prefix="$prefix"
10986 prefix="$acl_final_prefix"
10987 acl_save_exec_prefix="$exec_prefix"
10988 exec_prefix="$acl_final_exec_prefix"
10989 eval x=\"$x\"
10990 exec_prefix="$acl_save_exec_prefix"
10991 prefix="$acl_save_prefix"
10992
10993 if test "X$x" = "X$element"; then
10994 haveit=yes
10995 break
10996 fi
10997 done
10998 if test -z "$haveit"; then
10999 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11000 fi
11001 done
11002
11003
7938 echo "$as_me:$LINENO: checking for iconv" >&5
7939echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7940if test "${am_cv_func_iconv+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943
7944 am_cv_func_iconv="no, consider installing GNU libiconv"
7945 am_cv_lib_iconv=no
7946 cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7952#include <stdlib.h>
7953#include <iconv.h>
7954int
7955main ()
7956{
7957iconv_t cd = iconv_open("","");
7958 iconv(cd,NULL,NULL,NULL,NULL);
7959 iconv_close(cd);
7960 ;
7961 return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext conftest$ac_exeext
7965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -z "$ac_c_werror_flag"
7974 || test ! -s conftest.err'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; } &&
7980 { ac_try='test -s conftest$ac_exeext'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 am_cv_func_iconv=yes
7987else
7988 echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991fi
7992rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 if test "$am_cv_func_iconv" != yes; then
7995 am_save_LIBS="$LIBS"
11004 echo "$as_me:$LINENO: checking for iconv" >&5
11005echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11006if test "${am_cv_func_iconv+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009
11010 am_cv_func_iconv="no, consider installing GNU libiconv"
11011 am_cv_lib_iconv=no
11012 cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018#include <stdlib.h>
11019#include <iconv.h>
11020int
11021main ()
11022{
11023iconv_t cd = iconv_open("","");
11024 iconv(cd,NULL,NULL,NULL,NULL);
11025 iconv_close(cd);
11026 ;
11027 return 0;
11028}
11029_ACEOF
11030rm -f conftest.$ac_objext conftest$ac_exeext
11031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032 (eval $ac_link) 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 am_cv_func_iconv=yes
11053else
11054 echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
11057fi
11058rm -f conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 if test "$am_cv_func_iconv" != yes; then
11061 am_save_LIBS="$LIBS"
7996 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
11062 LIBS="$LIBS $LIBICONV"
7997 cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
8003#include <stdlib.h>
8004#include <iconv.h>
8005int
8006main ()
8007{
8008iconv_t cd = iconv_open("","");
8009 iconv(cd,NULL,NULL,NULL,NULL);
8010 iconv_close(cd);
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015rm -f conftest.$ac_objext conftest$ac_exeext
8016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag"
8025 || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 am_cv_lib_iconv=yes
8038 am_cv_func_iconv=yes
8039else
8040 echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043fi
8044rm -f conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext conftest.$ac_ext
8046 LIBS="$am_save_LIBS"
8047 fi
8048
8049fi
8050echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8051echo "${ECHO_T}$am_cv_func_iconv" >&6
8052 if test "$am_cv_func_iconv" = yes; then
8053
8054cat >>confdefs.h <<\_ACEOF
8055#define HAVE_ICONV 1
8056_ACEOF
8057
11063 cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069#include <stdlib.h>
11070#include <iconv.h>
11071int
11072main ()
11073{
11074iconv_t cd = iconv_open("","");
11075 iconv(cd,NULL,NULL,NULL,NULL);
11076 iconv_close(cd);
11077 ;
11078 return 0;
11079}
11080_ACEOF
11081rm -f conftest.$ac_objext conftest$ac_exeext
11082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11083 (eval $ac_link) 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -z "$ac_c_werror_flag"
11091 || test ! -s conftest.err'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; } &&
11097 { ac_try='test -s conftest$ac_exeext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 am_cv_lib_iconv=yes
11104 am_cv_func_iconv=yes
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
11109fi
11110rm -f conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
11112 LIBS="$am_save_LIBS"
11113 fi
11114
11115fi
11116echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11117echo "${ECHO_T}$am_cv_func_iconv" >&6
11118 if test "$am_cv_func_iconv" = yes; then
11119
11120cat >>confdefs.h <<\_ACEOF
11121#define HAVE_ICONV 1
11122_ACEOF
11123
11124 fi
11125 if test "$am_cv_lib_iconv" = yes; then
11126 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11127echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11128 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11129echo "${ECHO_T}$LIBICONV" >&6
11130 else
11131 CPPFLAGS="$am_save_CPPFLAGS"
11132 LIBICONV=
11133 LTLIBICONV=
11134 fi
11135
11136
11137
11138 if test "$am_cv_func_iconv" = yes; then
8058 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8059echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8060 if test "${am_cv_proto_iconv+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063
8064 cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h. */
8070
8071#include <stdlib.h>
8072#include <iconv.h>
8073extern
8074#ifdef __cplusplus
8075"C"
8076#endif
8077#if defined(__STDC__) || defined(__cplusplus)
8078size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8079#else
8080size_t iconv();
8081#endif
8082
8083int
8084main ()
8085{
8086
8087 ;
8088 return 0;
8089}
8090_ACEOF
8091rm -f conftest.$ac_objext
8092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -z "$ac_c_werror_flag"
8101 || test ! -s conftest.err'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 am_cv_proto_iconv_arg1=""
8114else
8115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118am_cv_proto_iconv_arg1="const"
8119fi
8120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121 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);"
8122fi
8123
8124 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8125 echo "$as_me:$LINENO: result: ${ac_t:-
8126 }$am_cv_proto_iconv" >&5
8127echo "${ECHO_T}${ac_t:-
8128 }$am_cv_proto_iconv" >&6
8129
8130cat >>confdefs.h <<_ACEOF
8131#define ICONV_CONST $am_cv_proto_iconv_arg1
8132_ACEOF
8133
8134 fi
11139 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11140echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11141 if test "${am_cv_proto_iconv+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143else
11144
11145 cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
11151
11152#include <stdlib.h>
11153#include <iconv.h>
11154extern
11155#ifdef __cplusplus
11156"C"
11157#endif
11158#if defined(__STDC__) || defined(__cplusplus)
11159size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11160#else
11161size_t iconv();
11162#endif
11163
11164int
11165main ()
11166{
11167
11168 ;
11169 return 0;
11170}
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 am_cv_proto_iconv_arg1=""
11195else
11196 echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
11198
11199am_cv_proto_iconv_arg1="const"
11200fi
11201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 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);"
11203fi
11204
11205 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11206 echo "$as_me:$LINENO: result: ${ac_t:-
11207 }$am_cv_proto_iconv" >&5
11208echo "${ECHO_T}${ac_t:-
11209 }$am_cv_proto_iconv" >&6
11210
11211cat >>confdefs.h <<_ACEOF
11212#define ICONV_CONST $am_cv_proto_iconv_arg1
11213_ACEOF
11214
11215 fi
8135 LIBICONV=
8136 if test "$am_cv_lib_iconv" = yes; then
8137 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8138 fi
8139
11216
8140
8141# Until we have in-tree GNU iconv:
8142LIBICONV_DEP=
8143
8144
8145
8146 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8147echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8148if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 cat >conftest.$ac_ext <<_ACEOF
8152/* confdefs.h. */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h. */
8157#include <locale.h>
8158int
8159main ()
8160{
8161return LC_MESSAGES
8162 ;
8163 return 0;
8164}
8165_ACEOF
8166rm -f conftest.$ac_objext conftest$ac_exeext
8167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8168 (eval $ac_link) 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -z "$ac_c_werror_flag"
8176 || test ! -s conftest.err'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest$ac_exeext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 am_cv_val_LC_MESSAGES=yes
8189else
8190 echo "$as_me: failed program was:" >&5
8191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193am_cv_val_LC_MESSAGES=no
8194fi
8195rm -f conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197fi
8198echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8199echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8200 if test $am_cv_val_LC_MESSAGES = yes; then
8201
8202cat >>confdefs.h <<\_ACEOF
8203#define HAVE_LC_MESSAGES 1
8204_ACEOF
8205
8206 fi
8207
8208
11217# Until we have in-tree GNU iconv:
11218LIBICONV_DEP=
11219
11220
11221
11222 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11223echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11224if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227 cat >conftest.$ac_ext <<_ACEOF
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233#include <locale.h>
11234int
11235main ()
11236{
11237return LC_MESSAGES
11238 ;
11239 return 0;
11240}
11241_ACEOF
11242rm -f conftest.$ac_objext conftest$ac_exeext
11243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244 (eval $ac_link) 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -z "$ac_c_werror_flag"
11252 || test ! -s conftest.err'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; } &&
11258 { ac_try='test -s conftest$ac_exeext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 am_cv_val_LC_MESSAGES=yes
11265else
11266 echo "$as_me: failed program was:" >&5
11267sed 's/^/| /' conftest.$ac_ext >&5
11268
11269am_cv_val_LC_MESSAGES=no
11270fi
11271rm -f conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11273fi
11274echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11275echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11276 if test $am_cv_val_LC_MESSAGES = yes; then
11277
11278cat >>confdefs.h <<\_ACEOF
11279#define HAVE_LC_MESSAGES 1
11280_ACEOF
11281
11282 fi
11283
11284
11285
11286 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11287echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11288if test "${am_cv_langinfo_codeset+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297#include <langinfo.h>
11298int
11299main ()
11300{
11301char* cs = nl_langinfo(CODESET);
11302 ;
11303 return 0;
11304}
11305_ACEOF
11306rm -f conftest.$ac_objext conftest$ac_exeext
11307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 am_cv_langinfo_codeset=yes
11329else
11330 echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333am_cv_langinfo_codeset=no
11334fi
11335rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337
11338fi
11339echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11340echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11341 if test $am_cv_langinfo_codeset = yes; then
11342
11343cat >>confdefs.h <<\_ACEOF
11344#define HAVE_LANGINFO_CODESET 1
11345_ACEOF
11346
11347 fi
11348
11349
8209# We will need to find libiberty.h and ansidecl.h
8210saved_CFLAGS="$CFLAGS"
8211CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11350# We will need to find libiberty.h and ansidecl.h
11351saved_CFLAGS="$CFLAGS"
11352CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8212for ac_func in getenv atol sbrk abort atof getcwd getwd \
8213 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8214 fprintf_unlocked strstr errno snprintf vasprintf \
8215 malloc realloc calloc free basename getopt clock
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11393 strsignal strstr strverscmp \
11394 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11395 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
8216do
11396do
8217 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11397 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8218echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8219echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8220if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229#undef $ac_tr_decl
8230#define $ac_tr_decl 1
8231
8232#include "ansidecl.h"
8233#include "system.h"
8234
8235int
8236main ()
8237{
8238#ifndef $ac_func
8239char *(*pfn) = (char *(*)) $ac_func ;
8240#endif
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245rm -f conftest.$ac_objext
8246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 eval "gcc_cv_have_decl_$ac_func=yes"
8268else
8269 echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272eval "gcc_cv_have_decl_$ac_func=no"
8273fi
8274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275fi
8276
8277if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8280#define $ac_tr_decl 1
8281_ACEOF
8282
8283else
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8286#define $ac_tr_decl 0
8287_ACEOF
8288
8289fi
8290
8291done
11398echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11399echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11400if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409#undef $ac_tr_decl
11410#define $ac_tr_decl 1
11411
11412#include "ansidecl.h"
11413#include "system.h"
11414
11415int
11416main ()
11417{
11418#ifndef $ac_func
11419char *(*pfn) = (char *(*)) $ac_func ;
11420#endif
11421 ;
11422 return 0;
11423}
11424_ACEOF
11425rm -f conftest.$ac_objext
11426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11427 (eval $ac_compile) 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_c_werror_flag"
11435 || test ! -s conftest.err'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest.$ac_objext'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 eval "gcc_cv_have_decl_$ac_func=yes"
11448else
11449 echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452eval "gcc_cv_have_decl_$ac_func=no"
11453fi
11454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11455fi
11456
11457if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11458 echo "$as_me:$LINENO: result: yes" >&5
11459echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11460#define $ac_tr_decl 1
11461_ACEOF
11462
11463else
11464 echo "$as_me:$LINENO: result: no" >&5
11465echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11466#define $ac_tr_decl 0
11467_ACEOF
11468
11469fi
11470
11471done
8292if test x = y ; then
8293
11472
8294cat >>confdefs.h <<\_ACEOF
8295#define HAVE_DECL_GETENV 1
8296_ACEOF
8297
11473
8298cat >>confdefs.h <<\_ACEOF
8299#define HAVE_DECL_ATOL 1
8300_ACEOF
8301
11474
8302cat >>confdefs.h <<\_ACEOF
8303#define HAVE_DECL_SBRK 1
8304_ACEOF
8305
11475
8306cat >>confdefs.h <<\_ACEOF
8307#define HAVE_DECL_ABORT 1
8308_ACEOF
8309
11476
8310cat >>confdefs.h <<\_ACEOF
8311#define HAVE_DECL_ATOF 1
8312_ACEOF
8313
8314cat >>confdefs.h <<\_ACEOF
8315#define HAVE_DECL_GETCWD 1
8316_ACEOF
8317
8318cat >>confdefs.h <<\_ACEOF
8319#define HAVE_DECL_GETWD 1
8320_ACEOF
8321 \
8322
8323cat >>confdefs.h <<\_ACEOF
8324#define HAVE_DECL_STRSIGNAL 1
8325_ACEOF
8326
8327cat >>confdefs.h <<\_ACEOF
8328#define HAVE_DECL_PUTC_UNLOCKED 1
8329_ACEOF
8330
8331cat >>confdefs.h <<\_ACEOF
8332#define HAVE_DECL_FPUTS_UNLOCKED 1
8333_ACEOF
8334
8335cat >>confdefs.h <<\_ACEOF
8336#define HAVE_DECL_FWRITE_UNLOCKED 1
8337_ACEOF
8338 \
8339
8340cat >>confdefs.h <<\_ACEOF
8341#define HAVE_DECL_FPRINTF_UNLOCKED 1
8342_ACEOF
8343
8344cat >>confdefs.h <<\_ACEOF
8345#define HAVE_DECL_STRSTR 1
8346_ACEOF
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define HAVE_DECL_ERRNO 1
8350_ACEOF
8351
8352cat >>confdefs.h <<\_ACEOF
8353#define HAVE_DECL_SNPRINTF 1
8354_ACEOF
8355
8356cat >>confdefs.h <<\_ACEOF
8357#define HAVE_DECL_VASPRINTF 1
8358_ACEOF
8359 \
8360
8361cat >>confdefs.h <<\_ACEOF
8362#define HAVE_DECL_MALLOC 1
8363_ACEOF
8364
8365cat >>confdefs.h <<\_ACEOF
8366#define HAVE_DECL_REALLOC 1
8367_ACEOF
8368
8369cat >>confdefs.h <<\_ACEOF
8370#define HAVE_DECL_CALLOC 1
8371_ACEOF
8372
8373cat >>confdefs.h <<\_ACEOF
8374#define HAVE_DECL_FREE 1
8375_ACEOF
8376
8377cat >>confdefs.h <<\_ACEOF
8378#define HAVE_DECL_BASENAME 1
8379_ACEOF
8380
8381cat >>confdefs.h <<\_ACEOF
8382#define HAVE_DECL_GETOPT 1
8383_ACEOF
8384
8385cat >>confdefs.h <<\_ACEOF
8386#define HAVE_DECL_CLOCK 1
8387_ACEOF
8388fi
8389
8390
8391for ac_func in getrlimit setrlimit getrusage
8392do
11477for ac_func in getrlimit setrlimit getrusage
11478do
8393 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11479 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8394echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8395echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8396if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405#undef $ac_tr_decl
8406#define $ac_tr_decl 1
8407
8408#include "ansidecl.h"
8409#include "system.h"
8410#ifdef HAVE_SYS_RESOURCE_H
8411#include <sys/resource.h>
8412#endif
8413
8414
8415int
8416main ()
8417{
8418#ifndef $ac_func
8419char *(*pfn) = (char *(*)) $ac_func ;
8420#endif
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425rm -f conftest.$ac_objext
8426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8427 (eval $ac_compile) 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag"
8435 || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest.$ac_objext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 eval "gcc_cv_have_decl_$ac_func=yes"
8448else
8449 echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8451
8452eval "gcc_cv_have_decl_$ac_func=no"
8453fi
8454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8455fi
8456
8457if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8458 echo "$as_me:$LINENO: result: yes" >&5
8459echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8460#define $ac_tr_decl 1
8461_ACEOF
8462
8463else
8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8466#define $ac_tr_decl 0
8467_ACEOF
8468
8469fi
8470
8471done
11480echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11481echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11482if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484else
11485 cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h. */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h. */
11491#undef $ac_tr_decl
11492#define $ac_tr_decl 1
11493
11494#include "ansidecl.h"
11495#include "system.h"
11496#ifdef HAVE_SYS_RESOURCE_H
11497#include <sys/resource.h>
11498#endif
11499
11500
11501int
11502main ()
11503{
11504#ifndef $ac_func
11505char *(*pfn) = (char *(*)) $ac_func ;
11506#endif
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511rm -f conftest.$ac_objext
11512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 eval "gcc_cv_have_decl_$ac_func=yes"
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538eval "gcc_cv_have_decl_$ac_func=no"
11539fi
11540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541fi
11542
11543if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11544 echo "$as_me:$LINENO: result: yes" >&5
11545echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11546#define $ac_tr_decl 1
11547_ACEOF
11548
11549else
11550 echo "$as_me:$LINENO: result: no" >&5
11551echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11552#define $ac_tr_decl 0
11553_ACEOF
11554
11555fi
11556
11557done
8472if test x = y ; then
8473
11558
8474cat >>confdefs.h <<\_ACEOF
8475#define HAVE_DECL_GETRLIMIT 1
8476_ACEOF
8477
11559
8478cat >>confdefs.h <<\_ACEOF
8479#define HAVE_DECL_SETRLIMIT 1
8480_ACEOF
8481
8482cat >>confdefs.h <<\_ACEOF
8483#define HAVE_DECL_GETRUSAGE 1
8484_ACEOF
8485fi
8486
8487
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494
8495#include "ansidecl.h"
8496#include "system.h"
8497#ifdef HAVE_SYS_RESOURCE_H
8498#include <sys/resource.h>
8499#endif
8500
8501int
8502main ()
8503{
8504rlim_t l = 0;
8505 ;
8506 return 0;
8507}
8508_ACEOF
8509rm -f conftest.$ac_objext
8510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -z "$ac_c_werror_flag"
8519 || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 :
8532else
8533 echo "$as_me: failed program was:" >&5
8534sed 's/^/| /' conftest.$ac_ext >&5
8535
8536
8537cat >>confdefs.h <<\_ACEOF
8538#define rlim_t long
8539_ACEOF
8540
8541fi
8542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543
11560cat >conftest.$ac_ext <<_ACEOF
11561/* confdefs.h. */
11562_ACEOF
11563cat confdefs.h >>conftest.$ac_ext
11564cat >>conftest.$ac_ext <<_ACEOF
11565/* end confdefs.h. */
11566
11567#include "ansidecl.h"
11568#include "system.h"
11569#ifdef HAVE_SYS_RESOURCE_H
11570#include <sys/resource.h>
11571#endif
11572
11573int
11574main ()
11575{
11576rlim_t l = 0;
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext
11582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583 (eval $ac_compile) 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -z "$ac_c_werror_flag"
11591 || test ! -s conftest.err'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest.$ac_objext'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 :
11604else
11605 echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
11608
11609cat >>confdefs.h <<\_ACEOF
11610#define rlim_t long
11611_ACEOF
11612
11613fi
11614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615
11616# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11617# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11618# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11619# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11620
8544for ac_func in ldgetname
8545do
11621for ac_func in ldgetname
11622do
8546 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11623 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8547echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8548echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8549if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552 cat >conftest.$ac_ext <<_ACEOF
8553/* confdefs.h. */
8554_ACEOF
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h. */
8558#undef $ac_tr_decl
8559#define $ac_tr_decl 1
8560
8561#include "ansidecl.h"
8562#include "system.h"
8563#ifdef HAVE_LDFCN_H
11624echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11625echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11626if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628else
11629 cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
11635#undef $ac_tr_decl
11636#define $ac_tr_decl 1
11637
11638#include "ansidecl.h"
11639#include "system.h"
11640#ifdef HAVE_LDFCN_H
11641#undef FREAD
11642#undef FWRITE
8564#include <ldfcn.h>
8565#endif
8566
8567
8568int
8569main ()
8570{
8571#ifndef $ac_func
8572char *(*pfn) = (char *(*)) $ac_func ;
8573#endif
8574 ;
8575 return 0;
8576}
8577_ACEOF
8578rm -f conftest.$ac_objext
8579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 eval "gcc_cv_have_decl_$ac_func=yes"
8601else
8602 echo "$as_me: failed program was:" >&5
8603sed 's/^/| /' conftest.$ac_ext >&5
8604
8605eval "gcc_cv_have_decl_$ac_func=no"
8606fi
8607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8608fi
8609
8610if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8611 echo "$as_me:$LINENO: result: yes" >&5
8612echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8613#define $ac_tr_decl 1
8614_ACEOF
8615
8616else
8617 echo "$as_me:$LINENO: result: no" >&5
8618echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8619#define $ac_tr_decl 0
8620_ACEOF
8621
8622fi
8623
8624done
11643#include <ldfcn.h>
11644#endif
11645
11646
11647int
11648main ()
11649{
11650#ifndef $ac_func
11651char *(*pfn) = (char *(*)) $ac_func ;
11652#endif
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657rm -f conftest.$ac_objext
11658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest.$ac_objext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "gcc_cv_have_decl_$ac_func=yes"
11680else
11681 echo "$as_me: failed program was:" >&5
11682sed 's/^/| /' conftest.$ac_ext >&5
11683
11684eval "gcc_cv_have_decl_$ac_func=no"
11685fi
11686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687fi
11688
11689if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11690 echo "$as_me:$LINENO: result: yes" >&5
11691echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11692#define $ac_tr_decl 1
11693_ACEOF
11694
11695else
11696 echo "$as_me:$LINENO: result: no" >&5
11697echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11698#define $ac_tr_decl 0
11699_ACEOF
11700
11701fi
11702
11703done
8625if test x = y ; then
8626
11704
8627cat >>confdefs.h <<\_ACEOF
8628#define HAVE_DECL_LDGETNAME 1
8629_ACEOF
8630fi
8631
8632
8633for ac_func in times
8634do
11705
11706
11707for ac_func in times
11708do
8635 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11709 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8636echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8637echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8638if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641 cat >conftest.$ac_ext <<_ACEOF
8642/* confdefs.h. */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h. */
8647#undef $ac_tr_decl
8648#define $ac_tr_decl 1
8649
8650#include "ansidecl.h"
8651#include "system.h"
8652#ifdef HAVE_SYS_TIMES_H
8653#include <sys/times.h>
8654#endif
8655
8656
8657int
8658main ()
8659{
8660#ifndef $ac_func
8661char *(*pfn) = (char *(*)) $ac_func ;
8662#endif
8663 ;
8664 return 0;
8665}
8666_ACEOF
8667rm -f conftest.$ac_objext
8668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669 (eval $ac_compile) 2>conftest.er1
8670 ac_status=$?
8671 grep -v '^ *+' conftest.er1 >conftest.err
8672 rm -f conftest.er1
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -z "$ac_c_werror_flag"
8677 || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest.$ac_objext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 eval "gcc_cv_have_decl_$ac_func=yes"
8690else
8691 echo "$as_me: failed program was:" >&5
8692sed 's/^/| /' conftest.$ac_ext >&5
8693
8694eval "gcc_cv_have_decl_$ac_func=no"
8695fi
8696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697fi
8698
8699if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8700 echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8702#define $ac_tr_decl 1
8703_ACEOF
8704
8705else
8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8708#define $ac_tr_decl 0
8709_ACEOF
8710
8711fi
8712
8713done
11710echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11711echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11712if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
11721#undef $ac_tr_decl
11722#define $ac_tr_decl 1
11723
11724#include "ansidecl.h"
11725#include "system.h"
11726#ifdef HAVE_SYS_TIMES_H
11727#include <sys/times.h>
11728#endif
11729
11730
11731int
11732main ()
11733{
11734#ifndef $ac_func
11735char *(*pfn) = (char *(*)) $ac_func ;
11736#endif
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 eval "gcc_cv_have_decl_$ac_func=yes"
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768eval "gcc_cv_have_decl_$ac_func=no"
11769fi
11770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771fi
11772
11773if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11774 echo "$as_me:$LINENO: result: yes" >&5
11775echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11776#define $ac_tr_decl 1
11777_ACEOF
11778
11779else
11780 echo "$as_me:$LINENO: result: no" >&5
11781echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11782#define $ac_tr_decl 0
11783_ACEOF
11784
11785fi
11786
11787done
8714if test x = y ; then
8715
11788
8716cat >>confdefs.h <<\_ACEOF
8717#define HAVE_DECL_TIMES 1
8718_ACEOF
8719fi
8720
8721
11789
11790
8722# More time-related stuff.
8723echo "$as_me:$LINENO: checking for struct tms" >&5
8724echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8725if test "${ac_cv_struct_tms+set}" = set; then
11791for ac_func in sigaltstack
11792do
11793 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11794echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11795echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11796if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798else
8728
8729cat >conftest.$ac_ext <<_ACEOF
11799 cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
11800/* confdefs.h. */
11801_ACEOF
11802cat confdefs.h >>conftest.$ac_ext
11803cat >>conftest.$ac_ext <<_ACEOF
11804/* end confdefs.h. */
11805#undef $ac_tr_decl
11806#define $ac_tr_decl 1
8735
8736#include "ansidecl.h"
8737#include "system.h"
11807
11808#include "ansidecl.h"
11809#include "system.h"
8738#ifdef HAVE_SYS_TIMES_H
8739#include <sys/times.h>
8740#endif
11810#include <signal.h>
8741
11811
11812
8742int
8743main ()
8744{
11813int
11814main ()
11815{
8745struct tms tms;
11816#ifndef $ac_func
11817char *(*pfn) = (char *(*)) $ac_func ;
11818#endif
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750rm -f conftest.$ac_objext
8751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag"
8760 || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
11819 ;
11820 return 0;
11821}
11822_ACEOF
11823rm -f conftest.$ac_objext
11824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825 (eval $ac_compile) 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -z "$ac_c_werror_flag"
11833 || test ! -s conftest.err'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
8772 ac_cv_struct_tms=yes
11845 eval "gcc_cv_have_decl_$ac_func=yes"
8773else
8774 echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
11846else
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
8777ac_cv_struct_tms=no
11850eval "gcc_cv_have_decl_$ac_func=no"
8778fi
8779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8780fi
11851fi
11852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11853fi
8781echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8782echo "${ECHO_T}$ac_cv_struct_tms" >&6
8783if test $ac_cv_struct_tms = yes; then
8784
11854
8785cat >>confdefs.h <<\_ACEOF
8786#define HAVE_STRUCT_TMS 1
11855if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11856 echo "$as_me:$LINENO: result: yes" >&5
11857echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11858#define $ac_tr_decl 1
8787_ACEOF
8788
11859_ACEOF
11860
11861else
11862 echo "$as_me:$LINENO: result: no" >&5
11863echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11864#define $ac_tr_decl 0
11865_ACEOF
11866
8789fi
8790
11867fi
11868
8791# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8792# revisit after autoconf 2.50.
8793echo "$as_me:$LINENO: checking for clock_t" >&5
8794echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8795if test "${gcc_cv_type_clock_t+set}" = set; then
11869done
11870
11871
11872# More time-related stuff.
11873echo "$as_me:$LINENO: checking for struct tms" >&5
11874echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11875if test "${ac_cv_struct_tms+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798
8799cat >conftest.$ac_ext <<_ACEOF
8800/* confdefs.h. */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */
8805
8806#include "ansidecl.h"
8807#include "system.h"
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878
11879cat >conftest.$ac_ext <<_ACEOF
11880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
11885
11886#include "ansidecl.h"
11887#include "system.h"
11888#ifdef HAVE_SYS_TIMES_H
11889#include <sys/times.h>
11890#endif
8808
8809int
8810main ()
8811{
11891
11892int
11893main ()
11894{
8812clock_t x;
11895struct tms tms;
8813 ;
8814 return 0;
8815}
8816_ACEOF
8817rm -f conftest.$ac_objext
8818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest.$ac_objext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900rm -f conftest.$ac_objext
11901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
8839 gcc_cv_type_clock_t=yes
11922 ac_cv_struct_tms=yes
8840else
8841 echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
11923else
11924 echo "$as_me: failed program was:" >&5
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
8844gcc_cv_type_clock_t=no
11927ac_cv_struct_tms=no
8845fi
8846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847fi
11928fi
11929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11930fi
8848echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8849echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8850if test $gcc_cv_type_clock_t = yes; then
11931echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11932echo "${ECHO_T}$ac_cv_struct_tms" >&6
11933if test $ac_cv_struct_tms = yes; then
8851
8852cat >>confdefs.h <<\_ACEOF
11934
11935cat >>confdefs.h <<\_ACEOF
8853#define HAVE_CLOCK_T 1
11936#define HAVE_STRUCT_TMS 1
8854_ACEOF
8855
8856fi
8857
11937_ACEOF
11938
11939fi
11940
8858echo "$as_me:$LINENO: checking for uchar" >&5
8859echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8860if test "${gcc_cv_type_uchar+set}" = set; then
11941# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11942# revisit after autoconf 2.50.
11943echo "$as_me:$LINENO: checking for clock_t" >&5
11944echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11945if test "${gcc_cv_type_clock_t+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
8863 cat >conftest.$ac_ext <<_ACEOF
11948
11949cat >conftest.$ac_ext <<_ACEOF
8864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
8869
8870#include "ansidecl.h"
8871#include "system.h"
8872
8873int
8874main ()
8875{
11950/* confdefs.h. */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h. */
11955
11956#include "ansidecl.h"
11957#include "system.h"
11958
11959int
11960main ()
11961{
8876if ((uchar *)0) return 0;
8877 if (sizeof(uchar)) return 0;
11962clock_t x;
8878 ;
8879 return 0;
8880}
8881_ACEOF
8882rm -f conftest.$ac_objext
8883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884 (eval $ac_compile) 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest.$ac_objext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
11963 ;
11964 return 0;
11965}
11966_ACEOF
11967rm -f conftest.$ac_objext
11968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969 (eval $ac_compile) 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag"
11977 || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest.$ac_objext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
8904 ac_cv_type_uchar=yes
11989 gcc_cv_type_clock_t=yes
8905else
8906 echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
8908
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
8909ac_cv_type_uchar=no
11994gcc_cv_type_clock_t=no
8910fi
8911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8912fi
11995fi
11996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11997fi
8913echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8914echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8915if test $ac_cv_type_uchar = yes; then
11998echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11999echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12000if test $gcc_cv_type_clock_t = yes; then
8916
8917cat >>confdefs.h <<\_ACEOF
12001
12002cat >>confdefs.h <<\_ACEOF
8918#define HAVE_UCHAR 1
12003#define HAVE_CLOCK_T 1
8919_ACEOF
8920
8921fi
8922
8923# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8924CFLAGS="$saved_CFLAGS"
8925
8926# Check whether --enable-initfini-array or --disable-initfini-array was given.
8927if test "${enable_initfini_array+set}" = set; then
8928 enableval="$enable_initfini_array"
8929
8930else
8931
8932echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8933echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8934if test "${gcc_cv_initfini_array+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936else
8937 if test "$cross_compiling" = yes; then
8938 gcc_cv_initfini_array=no
8939else
8940 cat >conftest.$ac_ext <<_ACEOF
8941/* confdefs.h. */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
8945/* end confdefs.h. */
8946
8947static int x = -1;
8948int main (void) { return x; }
8949int foo (void) { x = 0; }
8950int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8951_ACEOF
8952rm -f conftest$ac_exeext
8953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 gcc_cv_initfini_array=yes
8964else
8965 echo "$as_me: program exited with status $ac_status" >&5
8966echo "$as_me: failed program was:" >&5
8967sed 's/^/| /' conftest.$ac_ext >&5
8968
8969( exit $ac_status )
8970gcc_cv_initfini_array=no
8971fi
8972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8973fi
8974fi
8975echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8976echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8977 enable_initfini_array=$gcc_cv_initfini_array
8978
8979fi;
8980if test $enable_initfini_array = yes; then
8981
8982cat >>confdefs.h <<\_ACEOF
8983#define HAVE_INITFINI_ARRAY 1
8984_ACEOF
8985
8986fi
8987
8988# mkdir takes a single argument on some systems.
8989echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8990echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8991if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993else
8994 cat >conftest.$ac_ext <<_ACEOF
8995/* confdefs.h. */
8996_ACEOF
8997cat confdefs.h >>conftest.$ac_ext
8998cat >>conftest.$ac_ext <<_ACEOF
8999/* end confdefs.h. */
9000
9001#include <sys/types.h>
9002#ifdef HAVE_SYS_STAT_H
9003# include <sys/stat.h>
9004#endif
9005#ifdef HAVE_UNISTD_H
9006# include <unistd.h>
9007#endif
9008#ifdef HAVE_DIRECT_H
9009# include <direct.h>
9010#endif
9011int
9012main ()
9013{
9014mkdir ("foo", 0);
9015 ;
9016 return 0;
9017}
9018_ACEOF
9019rm -f conftest.$ac_objext
9020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_c_werror_flag"
9029 || test ! -s conftest.err'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; } &&
9035 { ac_try='test -s conftest.$ac_objext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 gcc_cv_mkdir_takes_one_arg=no
9042else
9043 echo "$as_me: failed program was:" >&5
9044sed 's/^/| /' conftest.$ac_ext >&5
9045
9046gcc_cv_mkdir_takes_one_arg=yes
9047fi
9048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9049fi
9050echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9051echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9052if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9053
9054cat >>confdefs.h <<\_ACEOF
9055#define MKDIR_TAKES_ONE_ARG 1
9056_ACEOF
9057
9058fi
9059
9060
9061# File extensions
9062manext='.1'
9063objext='.o'
9064
9065
9066
9067# With Setjmp/Longjmp based exception handling.
9068# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9069if test "${enable_sjlj_exceptions+set}" = set; then
9070 enableval="$enable_sjlj_exceptions"
9071 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9072
9073cat >>confdefs.h <<_ACEOF
9074#define CONFIG_SJLJ_EXCEPTIONS $sjlj
9075_ACEOF
9076
9077fi;
9078
9079# For platforms with the unwind ABI which includes an unwind library,
9080# libunwind, we can choose to use the system libunwind.
9081
9082# Check whether --with-system-libunwind or --without-system-libunwind was given.
9083if test "${with_system_libunwind+set}" = set; then
9084 withval="$with_system_libunwind"
9085
9086fi;
9087
12004_ACEOF
12005
12006fi
12007
12008# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12009CFLAGS="$saved_CFLAGS"
12010
12011# Check whether --enable-initfini-array or --disable-initfini-array was given.
12012if test "${enable_initfini_array+set}" = set; then
12013 enableval="$enable_initfini_array"
12014
12015else
12016
12017echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12018echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12019if test "${gcc_cv_initfini_array+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022 if test "$cross_compiling" = yes; then
12023 gcc_cv_initfini_array=no
12024else
12025 cat >conftest.$ac_ext <<_ACEOF
12026/* confdefs.h. */
12027_ACEOF
12028cat confdefs.h >>conftest.$ac_ext
12029cat >>conftest.$ac_ext <<_ACEOF
12030/* end confdefs.h. */
12031
12032static int x = -1;
12033int main (void) { return x; }
12034int foo (void) { x = 0; }
12035int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12036_ACEOF
12037rm -f conftest$ac_exeext
12038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 gcc_cv_initfini_array=yes
12049else
12050 echo "$as_me: program exited with status $ac_status" >&5
12051echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054( exit $ac_status )
12055gcc_cv_initfini_array=no
12056fi
12057rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12058fi
12059fi
12060echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12061echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12062 enable_initfini_array=$gcc_cv_initfini_array
12063
12064fi;
12065if test $enable_initfini_array = yes; then
12066
12067cat >>confdefs.h <<\_ACEOF
12068#define HAVE_INITFINI_ARRAY 1
12069_ACEOF
12070
12071fi
12072
12073# mkdir takes a single argument on some systems.
12074echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12075echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12076if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085
12086#include <sys/types.h>
12087#ifdef HAVE_SYS_STAT_H
12088# include <sys/stat.h>
12089#endif
12090#ifdef HAVE_UNISTD_H
12091# include <unistd.h>
12092#endif
12093#ifdef HAVE_DIRECT_H
12094# include <direct.h>
12095#endif
12096int
12097main ()
12098{
12099mkdir ("foo", 0);
12100 ;
12101 return 0;
12102}
12103_ACEOF
12104rm -f conftest.$ac_objext
12105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106 (eval $ac_compile) 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_c_werror_flag"
12114 || test ! -s conftest.err'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; } &&
12120 { ac_try='test -s conftest.$ac_objext'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 gcc_cv_mkdir_takes_one_arg=no
12127else
12128 echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
12130
12131gcc_cv_mkdir_takes_one_arg=yes
12132fi
12133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12134fi
12135echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12136echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12137if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12138
12139cat >>confdefs.h <<\_ACEOF
12140#define MKDIR_TAKES_ONE_ARG 1
12141_ACEOF
12142
12143fi
12144
12145
12146# File extensions
12147manext='.1'
12148objext='.o'
12149
12150
12151
12152# With Setjmp/Longjmp based exception handling.
12153# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12154if test "${enable_sjlj_exceptions+set}" = set; then
12155 enableval="$enable_sjlj_exceptions"
12156 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12157
12158cat >>confdefs.h <<_ACEOF
12159#define CONFIG_SJLJ_EXCEPTIONS $sjlj
12160_ACEOF
12161
12162fi;
12163
12164# For platforms with the unwind ABI which includes an unwind library,
12165# libunwind, we can choose to use the system libunwind.
12166
12167# Check whether --with-system-libunwind or --without-system-libunwind was given.
12168if test "${with_system_libunwind+set}" = set; then
12169 withval="$with_system_libunwind"
12170
12171fi;
12172
12173# config.gcc also contains tests of with_system_libunwind.
12174if test x$with_system_libunwind = xyes; then
12175
12176cat >>confdefs.h <<\_ACEOF
12177#define HAVE_GETIPINFO 1
12178_ACEOF
12179
12180fi
12181
9088# --------------------------------------------------------
9089# Build, host, and target specific configuration fragments
9090# --------------------------------------------------------
9091
9092# Collect build-machine-specific information.
9093. ${srcdir}/config.build
9094
9095# Collect host-machine-specific information.
9096. ${srcdir}/config.host
9097
9098target_gtfiles=
9099
9100# Collect target-machine-specific information.
9101. ${srcdir}/config.gcc
9102
9103extra_objs="${host_extra_objs} ${extra_objs}"
9104extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9105
9106# Default the target-machine variables that were not explicitly set.
9107if test x"$tm_file" = x
9108then tm_file=$cpu_type/$cpu_type.h; fi
9109
9110if test x"$extra_headers" = x
9111then extra_headers=; fi
9112
9113if test x$md_file = x
9114then md_file=$cpu_type/$cpu_type.md; fi
9115
9116if test x$out_file = x
9117then out_file=$cpu_type/$cpu_type.c; fi
9118
9119if test x"$tmake_file" = x
9120then tmake_file=$cpu_type/t-$cpu_type
9121fi
9122
9123if test x"$dwarf2" = xyes
9124then tm_file="$tm_file tm-dwarf2.h"
9125fi
9126
9127# Say what files are being used for the output code and MD file.
9128echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9129echo "Using \`$srcdir/config/$md_file' as machine description file."
9130
9131# If any of the xm_file variables contain nonexistent files, warn
9132# about them and drop them.
9133
9134bx=
9135for x in $build_xm_file; do
9136 if test -f $srcdir/config/$x
9137 then bx="$bx $x"
9138 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9139echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9140 fi
9141done
9142build_xm_file="$bx"
9143
9144hx=
9145for x in $host_xm_file; do
9146 if test -f $srcdir/config/$x
9147 then hx="$hx $x"
9148 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9149echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9150 fi
9151done
9152host_xm_file="$hx"
9153
9154tx=
9155for x in $xm_file; do
9156 if test -f $srcdir/config/$x
9157 then tx="$tx $x"
9158 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9159echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9160 fi
9161done
9162xm_file="$tx"
9163
9164count=a
9165for f in $tm_file; do
9166 count=${count}x
9167done
9168if test $count = ax; then
9169 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9170else
9171 echo "Using the following target machine macro files:"
9172 for f in $tm_file; do
9173 echo " $srcdir/config/$f"
9174 done
9175fi
9176
9177if test x$need_64bit_hwint = xyes; then
9178
9179cat >>confdefs.h <<\_ACEOF
9180#define NEED_64BIT_HOST_WIDE_INT 1
9181_ACEOF
9182
9183fi
9184
12182# --------------------------------------------------------
12183# Build, host, and target specific configuration fragments
12184# --------------------------------------------------------
12185
12186# Collect build-machine-specific information.
12187. ${srcdir}/config.build
12188
12189# Collect host-machine-specific information.
12190. ${srcdir}/config.host
12191
12192target_gtfiles=
12193
12194# Collect target-machine-specific information.
12195. ${srcdir}/config.gcc
12196
12197extra_objs="${host_extra_objs} ${extra_objs}"
12198extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12199
12200# Default the target-machine variables that were not explicitly set.
12201if test x"$tm_file" = x
12202then tm_file=$cpu_type/$cpu_type.h; fi
12203
12204if test x"$extra_headers" = x
12205then extra_headers=; fi
12206
12207if test x$md_file = x
12208then md_file=$cpu_type/$cpu_type.md; fi
12209
12210if test x$out_file = x
12211then out_file=$cpu_type/$cpu_type.c; fi
12212
12213if test x"$tmake_file" = x
12214then tmake_file=$cpu_type/t-$cpu_type
12215fi
12216
12217if test x"$dwarf2" = xyes
12218then tm_file="$tm_file tm-dwarf2.h"
12219fi
12220
12221# Say what files are being used for the output code and MD file.
12222echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12223echo "Using \`$srcdir/config/$md_file' as machine description file."
12224
12225# If any of the xm_file variables contain nonexistent files, warn
12226# about them and drop them.
12227
12228bx=
12229for x in $build_xm_file; do
12230 if test -f $srcdir/config/$x
12231 then bx="$bx $x"
12232 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12233echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12234 fi
12235done
12236build_xm_file="$bx"
12237
12238hx=
12239for x in $host_xm_file; do
12240 if test -f $srcdir/config/$x
12241 then hx="$hx $x"
12242 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12243echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12244 fi
12245done
12246host_xm_file="$hx"
12247
12248tx=
12249for x in $xm_file; do
12250 if test -f $srcdir/config/$x
12251 then tx="$tx $x"
12252 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12253echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12254 fi
12255done
12256xm_file="$tx"
12257
12258count=a
12259for f in $tm_file; do
12260 count=${count}x
12261done
12262if test $count = ax; then
12263 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12264else
12265 echo "Using the following target machine macro files:"
12266 for f in $tm_file; do
12267 echo " $srcdir/config/$f"
12268 done
12269fi
12270
12271if test x$need_64bit_hwint = xyes; then
12272
12273cat >>confdefs.h <<\_ACEOF
12274#define NEED_64BIT_HOST_WIDE_INT 1
12275_ACEOF
12276
12277fi
12278
12279if test x$use_long_long_for_widest_fast_int = xyes; then
12280
12281cat >>confdefs.h <<\_ACEOF
12282#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12283_ACEOF
12284
12285fi
12286
9185count=a
9186for f in $host_xm_file; do
9187 count=${count}x
9188done
9189if test $count = a; then
9190 :
9191elif test $count = ax; then
9192 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9193else
9194 echo "Using the following host machine macro files:"
9195 for f in $host_xm_file; do
9196 echo " $srcdir/config/$f"
9197 done
9198fi
9199echo "Using ${out_host_hook_obj} for host machine hooks."
9200
9201if test "$host_xm_file" != "$build_xm_file"; then
9202 count=a
9203 for f in $build_xm_file; do
9204 count=${count}x
9205 done
9206 if test $count = a; then
9207 :
9208 elif test $count = ax; then
9209 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9210 else
9211 echo "Using the following build machine macro files:"
9212 for f in $build_xm_file; do
9213 echo " $srcdir/config/$f"
9214 done
9215 fi
9216fi
9217
12287count=a
12288for f in $host_xm_file; do
12289 count=${count}x
12290done
12291if test $count = a; then
12292 :
12293elif test $count = ax; then
12294 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12295else
12296 echo "Using the following host machine macro files:"
12297 for f in $host_xm_file; do
12298 echo " $srcdir/config/$f"
12299 done
12300fi
12301echo "Using ${out_host_hook_obj} for host machine hooks."
12302
12303if test "$host_xm_file" != "$build_xm_file"; then
12304 count=a
12305 for f in $build_xm_file; do
12306 count=${count}x
12307 done
12308 if test $count = a; then
12309 :
12310 elif test $count = ax; then
12311 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12312 else
12313 echo "Using the following build machine macro files:"
12314 for f in $build_xm_file; do
12315 echo " $srcdir/config/$f"
12316 done
12317 fi
12318fi
12319
12320case ${host} in
12321 powerpc*-*-darwin*)
12322 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12323echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12324if test "${gcc_cv_mcontext_underscores+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326else
12327 cat >conftest.$ac_ext <<_ACEOF
12328
12329#include <sys/signal.h>
12330#include <ucontext.h>
12331int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12332
12333_ACEOF
12334rm -f conftest.$ac_objext
12335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336 (eval $ac_compile) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 gcc_cv_mcontext_underscores=no
12357else
12358 echo "$as_me: failed program was:" >&5
12359sed 's/^/| /' conftest.$ac_ext >&5
12360
12361gcc_cv_mcontext_underscores=yes
12362fi
12363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12364fi
12365echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12366echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12367 if test $gcc_cv_mcontext_underscores = yes; then
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define HAS_MCONTEXT_T_UNDERSCORES
12371_ACEOF
12372
12373 fi
12374 ;;
12375esac
12376
12377# ---------
12378# Threading
12379# ---------
12380
9218# Check if a valid thread package
12381# Check if a valid thread package
9219case ${enable_threads_flag} in
12382case ${enable_threads} in
9220 "" | no)
9221 # No threads
9222 target_thread_file='single'
9223 ;;
9224 yes)
9225 # default
9226 target_thread_file='single'
9227 ;;
12383 "" | no)
12384 # No threads
12385 target_thread_file='single'
12386 ;;
12387 yes)
12388 # default
12389 target_thread_file='single'
12390 ;;
9228 aix | dce | gnat | irix | posix | rtems | \
12391 aix | dce | gnat | irix | posix | posix95 | rtems | \
9229 single | solaris | vxworks | win32 )
12392 single | solaris | vxworks | win32 )
9230 target_thread_file=${enable_threads_flag}
12393 target_thread_file=${enable_threads}
9231 ;;
9232 *)
12394 ;;
12395 *)
9233 echo "${enable_threads_flag} is an unknown thread package" 1>&2
12396 echo "${enable_threads} is an unknown thread package" 1>&2
9234 exit 1
9235 ;;
9236esac
9237
9238if test x${thread_file} = x; then
9239 # No thread file set by target-specific clauses in config.gcc,
9240 # so use file chosen by default logic above
9241 thread_file=${target_thread_file}
9242fi
9243
12397 exit 1
12398 ;;
12399esac
12400
12401if test x${thread_file} = x; then
12402 # No thread file set by target-specific clauses in config.gcc,
12403 # so use file chosen by default logic above
12404 thread_file=${target_thread_file}
12405fi
12406
12407# Make gthr-default.h if we have a thread file.
12408gthread_flags=
12409if test $thread_file != single; then
12410 rm -f gthr-default.h
12411 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12412 gthread_flags=-DHAVE_GTHR_DEFAULT
12413fi
12414
12415
12416# --------
12417# UNSORTED
12418# --------
12419
12420use_cxa_atexit=no
9244if test x$enable___cxa_atexit = xyes || \
9245 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12421if test x$enable___cxa_atexit = xyes || \
12422 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9246 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12423 if test x$host = x$target; then
12424 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9247echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9248if test "${ac_cv_func___cxa_atexit+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251 cat >conftest.$ac_ext <<_ACEOF
9252/* confdefs.h. */
9253_ACEOF
9254cat confdefs.h >>conftest.$ac_ext
9255cat >>conftest.$ac_ext <<_ACEOF
9256/* end confdefs.h. */
9257/* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9259#define __cxa_atexit innocuous___cxa_atexit
9260
9261/* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char __cxa_atexit (); below.
9263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264 <limits.h> exists even on freestanding compilers. */
9265
9266#ifdef __STDC__
9267# include <limits.h>
9268#else
9269# include <assert.h>
9270#endif
9271
9272#undef __cxa_atexit
9273
9274/* Override any gcc2 internal prototype to avoid an error. */
9275#ifdef __cplusplus
9276extern "C"
9277{
9278#endif
9279/* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9281char __cxa_atexit ();
9282/* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285#if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9286choke me
9287#else
9288char (*f) () = __cxa_atexit;
9289#endif
9290#ifdef __cplusplus
9291}
9292#endif
9293
9294int
9295main ()
9296{
9297return f != __cxa_atexit;
9298 ;
9299 return 0;
9300}
9301_ACEOF
9302rm -f conftest.$ac_objext conftest$ac_exeext
9303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_func___cxa_atexit=yes
9325else
9326 echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329ac_cv_func___cxa_atexit=no
9330fi
9331rm -f conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333fi
9334echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9335echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9336if test $ac_cv_func___cxa_atexit = yes; then
12425echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12426if test "${ac_cv_func___cxa_atexit+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429 cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h. */
12435/* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12437#define __cxa_atexit innocuous___cxa_atexit
12438
12439/* System header to define __stub macros and hopefully few prototypes,
12440 which can conflict with char __cxa_atexit (); below.
12441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12442 <limits.h> exists even on freestanding compilers. */
12443
12444#ifdef __STDC__
12445# include <limits.h>
12446#else
12447# include <assert.h>
12448#endif
12449
12450#undef __cxa_atexit
12451
12452/* Override any gcc2 internal prototype to avoid an error. */
12453#ifdef __cplusplus
12454extern "C"
12455{
12456#endif
12457/* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12459char __cxa_atexit ();
12460/* The GNU C library defines this for functions which it implements
12461 to always fail with ENOSYS. Some functions are actually named
12462 something starting with __ and the normal name is an alias. */
12463#if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12464choke me
12465#else
12466char (*f) () = __cxa_atexit;
12467#endif
12468#ifdef __cplusplus
12469}
12470#endif
12471
12472int
12473main ()
12474{
12475return f != __cxa_atexit;
12476 ;
12477 return 0;
12478}
12479_ACEOF
12480rm -f conftest.$ac_objext conftest$ac_exeext
12481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482 (eval $ac_link) 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest$ac_exeext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_func___cxa_atexit=yes
12503else
12504 echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507ac_cv_func___cxa_atexit=no
12508fi
12509rm -f conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511fi
12512echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12513echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12514if test $ac_cv_func___cxa_atexit = yes; then
12515 use_cxa_atexit=yes
12516else
12517 echo "__cxa_atexit can't be enabled on this target"
12518fi
9337
12519
12520 else
12521 # We can't check for __cxa_atexit when building a cross, so assume
12522 # it is available
12523 use_cxa_atexit=yes
12524 fi
12525 if test x$use_cxa_atexit = xyes; then
12526
9338cat >>confdefs.h <<\_ACEOF
12527cat >>confdefs.h <<\_ACEOF
9339#define DEFAULT_USE_CXA_ATEXIT 1
12528#define DEFAULT_USE_CXA_ATEXIT 2
9340_ACEOF
9341
12529_ACEOF
12530
12531 fi
12532fi
12533
12534use_getipinfo=yes
12535if test x$with_system_libunwind = xyes; then
12536 if test x$host = x$target; then
12537 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12538echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12539if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
9342else
12541else
9343 echo "__cxa_atexit can't be enabled on this target"
12542 ac_func_search_save_LIBS=$LIBS
12543ac_cv_search__Unwind_GetIPInfo=no
12544cat >conftest.$ac_ext <<_ACEOF
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
12550
12551/* Override any gcc2 internal prototype to avoid an error. */
12552#ifdef __cplusplus
12553extern "C"
12554#endif
12555/* We use char because int might match the return type of a gcc2
12556 builtin and then its argument prototype would still apply. */
12557char _Unwind_GetIPInfo ();
12558int
12559main ()
12560{
12561_Unwind_GetIPInfo ();
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566rm -f conftest.$ac_objext conftest$ac_exeext
12567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag"
12576 || test ! -s conftest.err'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 ac_cv_search__Unwind_GetIPInfo="none required"
12589else
12590 echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
9344fi
12593fi
12594rm -f conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12597 for ac_lib in unwind; do
12598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
9345
12605
12606/* Override any gcc2 internal prototype to avoid an error. */
12607#ifdef __cplusplus
12608extern "C"
12609#endif
12610/* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612char _Unwind_GetIPInfo ();
12613int
12614main ()
12615{
12616_Unwind_GetIPInfo ();
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12644break
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
9346fi
12649fi
12650rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 done
12653fi
12654LIBS=$ac_func_search_save_LIBS
12655fi
12656echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12657echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12658if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12659 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
9347
12660
12661else
12662 use_getipinfo=no
12663fi
12664
12665 fi
12666fi
12667
12668if test x$use_getipinfo = xyes; then
12669
12670cat >>confdefs.h <<\_ACEOF
12671#define HAVE_GETIPINFO 1
12672_ACEOF
12673
12674else
12675 echo "The system unwind library does not support _Unwind_GetIPInfo."
12676fi
12677
9348# Look for a file containing extra machine modes.
9349if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9350 extra_modes_file='$(srcdir)'/config/${extra_modes}
9351
9352
9353cat >>confdefs.h <<_ACEOF
9354#define EXTRA_MODES_FILE "config/$extra_modes"
9355_ACEOF
9356
9357fi
9358
12678# Look for a file containing extra machine modes.
12679if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12680 extra_modes_file='$(srcdir)'/config/${extra_modes}
12681
12682
12683cat >>confdefs.h <<_ACEOF
12684#define EXTRA_MODES_FILE "config/$extra_modes"
12685_ACEOF
12686
12687fi
12688
12689# Convert extra_options into a form suitable for Makefile use.
12690extra_opt_files=
12691for f in $extra_options; do
12692 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12693done
12694
12695
9359# auto-host.h is the file containing items generated by autoconf and is
9360# the first file included by config.h.
9361# If host=build, it is correct to have bconfig include auto-host.h
9362# as well. If host!=build, we are in error and need to do more
9363# work to find out the build config parameters.
9364if test x$host = x$build
9365then
9366 build_auto=auto-host.h
12696# auto-host.h is the file containing items generated by autoconf and is
12697# the first file included by config.h.
12698# If host=build, it is correct to have bconfig include auto-host.h
12699# as well. If host!=build, we are in error and need to do more
12700# work to find out the build config parameters.
12701if test x$host = x$build
12702then
12703 build_auto=auto-host.h
9367 FORBUILD=..
9368else
9369 # We create a subdir, then run autoconf in the subdir.
9370 # To prevent recursion we set host and build for the new
9371 # invocation of configure to the build for this invocation
9372 # of configure.
9373 tempdir=build.$$
9374 rm -rf $tempdir
9375 mkdir $tempdir
9376 cd $tempdir
9377 case ${srcdir} in
9378 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9379 *) realsrcdir=../${srcdir};;
9380 esac
9381 saved_CFLAGS="${CFLAGS}"
9382 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9383 ${realsrcdir}/configure \
12704else
12705 # We create a subdir, then run autoconf in the subdir.
12706 # To prevent recursion we set host and build for the new
12707 # invocation of configure to the build for this invocation
12708 # of configure.
12709 tempdir=build.$$
12710 rm -rf $tempdir
12711 mkdir $tempdir
12712 cd $tempdir
12713 case ${srcdir} in
12714 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12715 *) realsrcdir=../${srcdir};;
12716 esac
12717 saved_CFLAGS="${CFLAGS}"
12718 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12719 ${realsrcdir}/configure \
12720 --enable-languages=${enable_languages-all} \
9384 --target=$target_alias --host=$build_alias --build=$build_alias
9385 CFLAGS="${saved_CFLAGS}"
9386
9387 # We just finished tests for the build machine, so rename
9388 # the file auto-build.h in the gcc directory.
9389 mv auto-host.h ../auto-build.h
9390 cd ..
9391 rm -rf $tempdir
9392 build_auto=auto-build.h
12721 --target=$target_alias --host=$build_alias --build=$build_alias
12722 CFLAGS="${saved_CFLAGS}"
12723
12724 # We just finished tests for the build machine, so rename
12725 # the file auto-build.h in the gcc directory.
12726 mv auto-host.h ../auto-build.h
12727 cd ..
12728 rm -rf $tempdir
12729 build_auto=auto-build.h
9393 FORBUILD=../${build_subdir}
9394fi
9395
9396
9397tm_file="${tm_file} defaults.h"
9398tm_p_file="${tm_p_file} tm-preds.h"
9399host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9400build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9401# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9402# put this back in temporarily.
12730fi
12731
12732
12733tm_file="${tm_file} defaults.h"
12734tm_p_file="${tm_p_file} tm-preds.h"
12735host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12736build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12737# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12738# put this back in temporarily.
9403xm_file="ansidecl.h ${xm_file}"
12739xm_file="auto-host.h ansidecl.h ${xm_file}"
9404
9405# --------
9406# UNSORTED
9407# --------
9408
12740
12741# --------
12742# UNSORTED
12743# --------
12744
9409# Get the version trigger filename from the toplevel
9410if test "${with_gcc_version_trigger+set}" = set; then
9411 gcc_version_trigger=$with_gcc_version_trigger
9412else
9413 gcc_version_trigger=${srcdir}/version.c
9414fi
9415gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9416gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9417
9418# Compile in configure arguments.
9419if test -f configargs.h ; then
9420 # Being re-configured.
9421 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9422 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9423else
9424 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9425fi
9426
9427# Double all backslashes and backslash all quotes to turn
9428# gcc_config_arguments into a C string.
9429sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9430$gcc_config_arguments
9431EOF
9432gcc_config_arguments_str=`cat conftest.out`
9433rm -f conftest.out
9434
9435cat > configargs.h <<EOF
9436/* Generated automatically. */
9437static const char configuration_arguments[] = "$gcc_config_arguments_str";
9438static const char thread_model[] = "$thread_file";
9439
9440static const struct {
9441 const char *name, *value;
9442} configure_default_options[] = $configure_default_options;
9443EOF
9444
9445# Internationalization
12745# Compile in configure arguments.
12746if test -f configargs.h ; then
12747 # Being re-configured.
12748 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12749 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12750else
12751 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12752fi
12753
12754# Double all backslashes and backslash all quotes to turn
12755# gcc_config_arguments into a C string.
12756sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12757$gcc_config_arguments
12758EOF
12759gcc_config_arguments_str=`cat conftest.out`
12760rm -f conftest.out
12761
12762cat > configargs.h <<EOF
12763/* Generated automatically. */
12764static const char configuration_arguments[] = "$gcc_config_arguments_str";
12765static const char thread_model[] = "$thread_file";
12766
12767static const struct {
12768 const char *name, *value;
12769} configure_default_options[] = $configure_default_options;
12770EOF
12771
12772# Internationalization
9446PACKAGE=gcc
9447VERSION="$gcc_version"
9448
9449
9450
9451# If we haven't got the data from the intl directory,
9452# assume NLS is disabled.
9453USE_NLS=no
9454LIBINTL=
9455LIBINTL_DEP=
9456INCINTL=
9457XGETTEXT=
9458GMSGFMT=
9459POSUB=
12773# If we haven't got the data from the intl directory,
12774# assume NLS is disabled.
12775USE_NLS=no
12776LIBINTL=
12777LIBINTL_DEP=
12778INCINTL=
12779XGETTEXT=
12780GMSGFMT=
12781POSUB=
9460if test -f ../intl/config.intl; then
9461 . ../intl/config.intl
12782
12783if test -f ../intl/config.intl; then
12784 . ../intl/config.intl
9462fi
9463echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9464echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9465if test x"$USE_NLS" != xyes; then
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468else
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
9471
9472cat >>confdefs.h <<\_ACEOF
9473#define ENABLE_NLS 1
9474_ACEOF
9475
9476
9477 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9478echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9479 # Look for .po and .gmo files in the source directory.
9480 CATALOGS=
9481 XLINGUAS=
9482 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9483 # If there aren't any .gmo files the shell will give us the
9484 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9485 # weeded out.
9486 case "$cat" in *\**)
9487 continue;;
9488 esac
9489 # The quadruple backslash is collapsed to a double backslash
9490 # by the backticks, then collapsed again by the double quotes,
9491 # leaving us with one backslash in the sed expression (right
9492 # before the dot that mustn't act as a wildcard).
12785fi
12786echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12787echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12788if test x"$USE_NLS" != xyes; then
12789 echo "$as_me:$LINENO: result: no" >&5
12790echo "${ECHO_T}no" >&6
12791else
12792 echo "$as_me:$LINENO: result: yes" >&5
12793echo "${ECHO_T}yes" >&6
12794
12795cat >>confdefs.h <<\_ACEOF
12796#define ENABLE_NLS 1
12797_ACEOF
12798
12799
12800 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12801echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12802 # Look for .po and .gmo files in the source directory.
12803 CATALOGS=
12804 XLINGUAS=
12805 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12806 # If there aren't any .gmo files the shell will give us the
12807 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12808 # weeded out.
12809 case "$cat" in *\**)
12810 continue;;
12811 esac
12812 # The quadruple backslash is collapsed to a double backslash
12813 # by the backticks, then collapsed again by the double quotes,
12814 # leaving us with one backslash in the sed expression (right
12815 # before the dot that mustn't act as a wildcard).
9493 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9494 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12816 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12817 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
9495 # The user is allowed to set LINGUAS to a list of languages to
9496 # install catalogs for. If it's empty that means "all of them."
9497 if test "x$LINGUAS" = x; then
9498 CATALOGS="$CATALOGS $cat"
9499 XLINGUAS="$XLINGUAS $lang"
9500 else
9501 case "$LINGUAS" in *$lang*)
9502 CATALOGS="$CATALOGS $cat"
9503 XLINGUAS="$XLINGUAS $lang"
9504 ;;
9505 esac
9506 fi
9507 done
9508 LINGUAS="$XLINGUAS"
9509 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9510echo "${ECHO_T}$LINGUAS" >&6
12818 # The user is allowed to set LINGUAS to a list of languages to
12819 # install catalogs for. If it's empty that means "all of them."
12820 if test "x$LINGUAS" = x; then
12821 CATALOGS="$CATALOGS $cat"
12822 XLINGUAS="$XLINGUAS $lang"
12823 else
12824 case "$LINGUAS" in *$lang*)
12825 CATALOGS="$CATALOGS $cat"
12826 XLINGUAS="$XLINGUAS $lang"
12827 ;;
12828 esac
12829 fi
12830 done
12831 LINGUAS="$XLINGUAS"
12832 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12833echo "${ECHO_T}$LINGUAS" >&6
12834
12835
12836 DATADIRNAME=share
12837
12838 INSTOBJEXT=.mo
12839
12840 GENCAT=gencat
12841
12842 CATOBJEXT=.gmo
12843
9511fi
9512
9513# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9514# -liconv on the link line twice.
9515case "$LIBINTL" in *$LIBICONV*)
9516 LIBICONV= ;;
9517esac
9518
12844fi
12845
12846# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12847# -liconv on the link line twice.
12848case "$LIBINTL" in *$LIBICONV*)
12849 LIBICONV= ;;
12850esac
12851
12852# Check whether --enable-secureplt or --disable-secureplt was given.
12853if test "${enable_secureplt+set}" = set; then
12854 enableval="$enable_secureplt"
12855
12856fi;
12857
9519# Windows32 Registry support for specifying GCC installation paths.
9520# Check whether --enable-win32-registry or --disable-win32-registry was given.
9521if test "${enable_win32_registry+set}" = set; then
9522 enableval="$enable_win32_registry"
9523
9524fi;
12858# Windows32 Registry support for specifying GCC installation paths.
12859# Check whether --enable-win32-registry or --disable-win32-registry was given.
12860if test "${enable_win32_registry+set}" = set; then
12861 enableval="$enable_win32_registry"
12862
12863fi;
9525case $host_os in
9526 win32 | pe | cygwin* | mingw32* | uwin*)
9527echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9528echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9529if test "x$enable_win32_registry" != xno; then
9530
12864
9531cat >>confdefs.h <<\_ACEOF
9532#define ENABLE_WIN32_REGISTRY 1
9533_ACEOF
9534
9535 echo "$as_me:$LINENO: result: yes" >&5
9536echo "${ECHO_T}yes" >&6
9537 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12865case $host_os in
12866 win32 | pe | cygwin* | mingw32* | uwin*)
12867 if test "x$enable_win32_registry" != xno; then
12868 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9538echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9539if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542 ac_func_search_save_LIBS=$LIBS
9543ac_cv_search_RegOpenKeyExA=no
9544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550
9551/* Override any gcc2 internal prototype to avoid an error. */
9552#ifdef __cplusplus
9553extern "C"
9554#endif
9555/* We use char because int might match the return type of a gcc2
9556 builtin and then its argument prototype would still apply. */
9557char RegOpenKeyExA ();
9558int
9559main ()
9560{
9561RegOpenKeyExA ();
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext conftest$ac_exeext
9567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568 (eval $ac_link) 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_c_werror_flag"
9576 || test ! -s conftest.err'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_search_RegOpenKeyExA="none required"
9589else
9590 echo "$as_me: failed program was:" >&5
9591sed 's/^/| /' conftest.$ac_ext >&5
9592
9593fi
9594rm -f conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596if test "$ac_cv_search_RegOpenKeyExA" = no; then
9597 for ac_lib in advapi32; do
9598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9599 cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605
9606/* Override any gcc2 internal prototype to avoid an error. */
9607#ifdef __cplusplus
9608extern "C"
9609#endif
9610/* We use char because int might match the return type of a gcc2
9611 builtin and then its argument prototype would still apply. */
9612char RegOpenKeyExA ();
9613int
9614main ()
9615{
9616RegOpenKeyExA ();
9617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext conftest$ac_exeext
9622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623 (eval $ac_link) 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest$ac_exeext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9644break
9645else
9646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649fi
9650rm -f conftest.err conftest.$ac_objext \
9651 conftest$ac_exeext conftest.$ac_ext
9652 done
9653fi
9654LIBS=$ac_func_search_save_LIBS
9655fi
9656echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9657echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9658if test "$ac_cv_search_RegOpenKeyExA" != no; then
9659 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9660
12869echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12870if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 ac_func_search_save_LIBS=$LIBS
12874ac_cv_search_RegOpenKeyExA=no
12875cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881
12882/* Override any gcc2 internal prototype to avoid an error. */
12883#ifdef __cplusplus
12884extern "C"
12885#endif
12886/* We use char because int might match the return type of a gcc2
12887 builtin and then its argument prototype would still apply. */
12888char RegOpenKeyExA ();
12889int
12890main ()
12891{
12892RegOpenKeyExA ();
12893 ;
12894 return 0;
12895}
12896_ACEOF
12897rm -f conftest.$ac_objext conftest$ac_exeext
12898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12899 (eval $ac_link) 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_cv_search_RegOpenKeyExA="none required"
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924fi
12925rm -f conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927if test "$ac_cv_search_RegOpenKeyExA" = no; then
12928 for ac_lib in advapi32; do
12929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12930 cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936
12937/* Override any gcc2 internal prototype to avoid an error. */
12938#ifdef __cplusplus
12939extern "C"
12940#endif
12941/* We use char because int might match the return type of a gcc2
12942 builtin and then its argument prototype would still apply. */
12943char RegOpenKeyExA ();
12944int
12945main ()
12946{
12947RegOpenKeyExA ();
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952rm -f conftest.$ac_objext conftest$ac_exeext
12953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12954 (eval $ac_link) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_c_werror_flag"
12962 || test ! -s conftest.err'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12975break
12976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980fi
12981rm -f conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 done
12984fi
12985LIBS=$ac_func_search_save_LIBS
12986fi
12987echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12988echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12989if test "$ac_cv_search_RegOpenKeyExA" != no; then
12990 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12991
9661fi
9662
9663else
12992else
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
12993 enable_win32_registry=no
9666fi
9667
12994fi
12995
9668# Check if user specified a different registry key.
9669case "x${enable_win32_registry}" in
9670x | xyes)
9671 # default.
9672 gcc_cv_win32_registry_key="$VERSION"
9673 ;;
9674xno)
9675 # no registry lookup.
9676 gcc_cv_win32_registry_key=''
9677 ;;
9678*)
9679 # user-specified key.
9680 gcc_cv_win32_registry_key="$enable_win32_registry"
9681 ;;
9682esac
12996 fi
9683
12997
9684if test "x$enable_win32_registry" != xno; then
9685 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9686echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12998 if test "x$enable_win32_registry" != xno; then
9687
12999
13000cat >>confdefs.h <<\_ACEOF
13001#define ENABLE_WIN32_REGISTRY 1
13002_ACEOF
13003
13004
13005 if test "x$enable_win32_registry" != xyes \
13006 && test "x$enable_win32_registry" != x; then
13007
9688cat >>confdefs.h <<_ACEOF
13008cat >>confdefs.h <<_ACEOF
9689#define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
13009#define WIN32_REGISTRY_KEY "$enable_win32_registry"
9690_ACEOF
9691
13010_ACEOF
13011
9692 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9693echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9694fi
9695;;
13012 fi
13013 fi
13014 ;;
9696esac
9697
9698# Get an absolute path to the GCC top-level source directory
9699holddir=`${PWDCMD-pwd}`
9700cd $srcdir
9701topdir=`${PWDCMD-pwd}`
9702cd $holddir
9703
9704# Conditionalize the makefile for this host machine.
9705xmake_file=
9706for f in ${host_xmake_file}
9707do
9708 if test -f ${srcdir}/config/$f
9709 then
9710 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9711 fi
9712done
9713
9714# Conditionalize the makefile for this target machine.
9715tmake_file_=
9716for f in ${tmake_file}
9717do
9718 if test -f ${srcdir}/config/$f
9719 then
9720 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9721 fi
9722done
9723tmake_file="${tmake_file_}"
9724
13015esac
13016
13017# Get an absolute path to the GCC top-level source directory
13018holddir=`${PWDCMD-pwd}`
13019cd $srcdir
13020topdir=`${PWDCMD-pwd}`
13021cd $holddir
13022
13023# Conditionalize the makefile for this host machine.
13024xmake_file=
13025for f in ${host_xmake_file}
13026do
13027 if test -f ${srcdir}/config/$f
13028 then
13029 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13030 fi
13031done
13032
13033# Conditionalize the makefile for this target machine.
13034tmake_file_=
13035for f in ${tmake_file}
13036do
13037 if test -f ${srcdir}/config/$f
13038 then
13039 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13040 fi
13041done
13042tmake_file="${tmake_file_}"
13043
9725symbolic_link='ln -s'
9726
9727# If the host doesn't support symlinks, modify CC in
9728# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9729# Otherwise, we can use "CC=$(CC)".
9730rm -f symtest.tem
13044# If the host doesn't support symlinks, modify CC in
13045# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13046# Otherwise, we can use "CC=$(CC)".
13047rm -f symtest.tem
9731if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9732then
9733 cc_set_by_configure="\$(CC)"
9734 quoted_cc_set_by_configure="\$(CC)"
9735 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9736 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9737else
9738 rm -f symtest.tem
9739 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9740 then
9741 symbolic_link="cp -p"
9742 else
9743 symbolic_link="cp"
9744 fi
9745 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9746 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9747 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9748 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9749fi
9750rm -f symtest.tem
13048case "$LN_S" in
13049 *-s*)
13050 cc_set_by_configure="\$(CC)"
13051 quoted_cc_set_by_configure="\$(CC)"
13052 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13053 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13054 ;;
13055 *)
13056 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13057 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13058 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13059 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13060 ;;
13061esac
9751
13062
13063# This is a terrible hack which will go away some day.
13064host_cc_for_libada=${CC}
13065
13066
9752out_object_file=`basename $out_file .c`.o
9753
13067out_object_file=`basename $out_file .c`.o
13068
9754tm_file_list=
9755tm_include_list=
13069tm_file_list="options.h"
13070tm_include_list="options.h"
9756for f in $tm_file; do
9757 case $f in
9758 defaults.h )
9759 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9760 tm_include_list="${tm_include_list} $f"
9761 ;;
9762 * )
9763 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9764 tm_include_list="${tm_include_list} config/$f"
9765 ;;
9766 esac
9767done
9768
9769tm_p_file_list=
9770tm_p_include_list=
9771for f in $tm_p_file; do
9772 case $f in
9773 tm-preds.h )
9774 tm_p_file_list="${tm_p_file_list} $f"
9775 tm_p_include_list="${tm_p_include_list} $f"
9776 ;;
9777 * )
9778 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9779 tm_p_include_list="${tm_p_include_list} config/$f"
9780 esac
9781done
9782
9783xm_file_list=
9784xm_include_list=
9785for f in $xm_file; do
9786 case $f in
9787 ansidecl.h )
9788 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9789 xm_include_list="${xm_include_list} $f"
9790 ;;
9791 auto-host.h )
9792 xm_file_list="${xm_file_list} $f"
9793 xm_include_list="${xm_include_list} $f"
9794 ;;
9795 * )
9796 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9797 xm_include_list="${xm_include_list} config/$f"
9798 ;;
9799 esac
9800done
9801
9802host_xm_file_list=
9803host_xm_include_list=
9804for f in $host_xm_file; do
9805 case $f in
9806 ansidecl.h )
9807 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9808 host_xm_include_list="${host_xm_include_list} $f"
9809 ;;
9810 auto-host.h )
9811 host_xm_file_list="${host_xm_file_list} $f"
9812 host_xm_include_list="${host_xm_include_list} $f"
9813 ;;
9814 * )
9815 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9816 host_xm_include_list="${host_xm_include_list} config/$f"
9817 ;;
9818 esac
9819done
9820
9821build_xm_file_list=
9822for f in $build_xm_file; do
9823 case $f in
9824 ansidecl.h )
9825 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9826 build_xm_include_list="${build_xm_include_list} $f"
9827 ;;
9828 auto-build.h | auto-host.h )
9829 build_xm_file_list="${build_xm_file_list} $f"
9830 build_xm_include_list="${build_xm_include_list} $f"
9831 ;;
9832 * )
9833 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9834 build_xm_include_list="${build_xm_include_list} config/$f"
9835 ;;
9836 esac
9837done
9838
9839# Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9840# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9841CROSS=
9842ALL=all.internal
9843SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13071for f in $tm_file; do
13072 case $f in
13073 defaults.h )
13074 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13075 tm_include_list="${tm_include_list} $f"
13076 ;;
13077 * )
13078 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13079 tm_include_list="${tm_include_list} config/$f"
13080 ;;
13081 esac
13082done
13083
13084tm_p_file_list=
13085tm_p_include_list=
13086for f in $tm_p_file; do
13087 case $f in
13088 tm-preds.h )
13089 tm_p_file_list="${tm_p_file_list} $f"
13090 tm_p_include_list="${tm_p_include_list} $f"
13091 ;;
13092 * )
13093 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13094 tm_p_include_list="${tm_p_include_list} config/$f"
13095 esac
13096done
13097
13098xm_file_list=
13099xm_include_list=
13100for f in $xm_file; do
13101 case $f in
13102 ansidecl.h )
13103 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13104 xm_include_list="${xm_include_list} $f"
13105 ;;
13106 auto-host.h )
13107 xm_file_list="${xm_file_list} $f"
13108 xm_include_list="${xm_include_list} $f"
13109 ;;
13110 * )
13111 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13112 xm_include_list="${xm_include_list} config/$f"
13113 ;;
13114 esac
13115done
13116
13117host_xm_file_list=
13118host_xm_include_list=
13119for f in $host_xm_file; do
13120 case $f in
13121 ansidecl.h )
13122 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13123 host_xm_include_list="${host_xm_include_list} $f"
13124 ;;
13125 auto-host.h )
13126 host_xm_file_list="${host_xm_file_list} $f"
13127 host_xm_include_list="${host_xm_include_list} $f"
13128 ;;
13129 * )
13130 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13131 host_xm_include_list="${host_xm_include_list} config/$f"
13132 ;;
13133 esac
13134done
13135
13136build_xm_file_list=
13137for f in $build_xm_file; do
13138 case $f in
13139 ansidecl.h )
13140 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13141 build_xm_include_list="${build_xm_include_list} $f"
13142 ;;
13143 auto-build.h | auto-host.h )
13144 build_xm_file_list="${build_xm_file_list} $f"
13145 build_xm_include_list="${build_xm_include_list} $f"
13146 ;;
13147 * )
13148 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13149 build_xm_include_list="${build_xm_include_list} config/$f"
13150 ;;
13151 esac
13152done
13153
13154# Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13155# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13156CROSS=
13157ALL=all.internal
13158SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13159
13160if test "x$with_build_sysroot" != x; then
13161 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13162else
13163 # This value is used, even on a native system, because
13164 # CROSS_SYSTEM_HEADER_DIR is just
13165 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13166 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13167fi
13168
9844if test x$host != x$target
9845then
9846 CROSS="-DCROSS_COMPILE"
9847 ALL=all.cross
13169if test x$host != x$target
13170then
13171 CROSS="-DCROSS_COMPILE"
13172 ALL=all.cross
9848 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13173 SYSTEM_HEADER_DIR=$build_system_header_dir
9849 case "$host","$target" in
9850 # Darwin crosses can use the host system's libraries and headers,
9851 # because of the fat library support. Of course, it must be the
9852 # same version of Darwin on both sides. Allow the user to
9853 # just say --target=foo-darwin without a version number to mean
9854 # "the version on this system".
9855 *-*-darwin*,*-*-darwin*)
9856 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9857 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9858 if test $hostos = $targetos -o $targetos = darwin ; then
9859 CROSS=
9860 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9861 with_headers=yes
9862 fi
9863 ;;
9864
9865 i?86-*-*,x86_64-*-* \
9866 | powerpc*-*-*,powerpc64*-*-*)
9867 CROSS="$CROSS -DNATIVE_CROSS" ;;
9868 esac
9869elif test "x$TARGET_SYSTEM_ROOT" != x; then
13174 case "$host","$target" in
13175 # Darwin crosses can use the host system's libraries and headers,
13176 # because of the fat library support. Of course, it must be the
13177 # same version of Darwin on both sides. Allow the user to
13178 # just say --target=foo-darwin without a version number to mean
13179 # "the version on this system".
13180 *-*-darwin*,*-*-darwin*)
13181 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13182 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13183 if test $hostos = $targetos -o $targetos = darwin ; then
13184 CROSS=
13185 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13186 with_headers=yes
13187 fi
13188 ;;
13189
13190 i?86-*-*,x86_64-*-* \
13191 | powerpc*-*-*,powerpc64*-*-*)
13192 CROSS="$CROSS -DNATIVE_CROSS" ;;
13193 esac
13194elif test "x$TARGET_SYSTEM_ROOT" != x; then
9870 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9871 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13195 SYSTEM_HEADER_DIR=$build_system_header_dir
9872fi
9873
9874# If this is a cross-compiler that does not
9875# have its own set of headers then define
9876# inhibit_libc
9877
9878# If this is using newlib, without having the headers available now,
9879# then define inhibit_libc in LIBGCC2_CFLAGS.
9880# This prevents libgcc2 from containing any code which requires libc
9881# support.
13196fi
13197
13198# If this is a cross-compiler that does not
13199# have its own set of headers then define
13200# inhibit_libc
13201
13202# If this is using newlib, without having the headers available now,
13203# then define inhibit_libc in LIBGCC2_CFLAGS.
13204# This prevents libgcc2 from containing any code which requires libc
13205# support.
9882inhibit_libc=
13206inhibit_libc=false
9883if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9884 test x$with_newlib = xyes ; } &&
9885 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13207if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13208 test x$with_newlib = xyes ; } &&
13209 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9886 inhibit_libc=-Dinhibit_libc
13210 inhibit_libc=true
9887fi
9888
9889
9890# When building gcc with a cross-compiler, we need to adjust things so
9891# that the generator programs are still built with the native compiler.
9892# Also, we cannot run fixincludes or fix-header.
9893
9894# These are the normal (build=host) settings:
13211fi
13212
13213
13214# When building gcc with a cross-compiler, we need to adjust things so
13215# that the generator programs are still built with the native compiler.
13216# Also, we cannot run fixincludes or fix-header.
13217
13218# These are the normal (build=host) settings:
9895BUILD_PREFIX=
9896BUILD_PREFIX_1=ignore-
9897CC_FOR_BUILD='$(CC)'
9898BUILD_CFLAGS='$(ALL_CFLAGS)'
13219CC_FOR_BUILD='$(CC)'
13220BUILD_CFLAGS='$(ALL_CFLAGS)'
9899
9900STMP_FIXINC=stmp-fixinc
9901
9902# Possibly disable fixproto, on a per-target basis.
9903case ${use_fixproto} in
9904 no)
9905 STMP_FIXPROTO=
9906 ;;
9907 yes)
9908 STMP_FIXPROTO=stmp-fixproto
9909 ;;
9910esac
9911
9912
9913# And these apply if build != host, or we are generating coverage data
9914if test x$build != x$host || test "x$coverage_flags" != x
9915then
13221STMP_FIXINC=stmp-fixinc
13222
13223# Possibly disable fixproto, on a per-target basis.
13224case ${use_fixproto} in
13225 no)
13226 STMP_FIXPROTO=
13227 ;;
13228 yes)
13229 STMP_FIXPROTO=stmp-fixproto
13230 ;;
13231esac
13232
13233
13234# And these apply if build != host, or we are generating coverage data
13235if test x$build != x$host || test "x$coverage_flags" != x
13236then
9916 BUILD_PREFIX=build-
9917 BUILD_PREFIX_1=build-
9918 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9919
9920 if test "x$TARGET_SYSTEM_ROOT" = x; then
13237 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13238
13239 if test "x$TARGET_SYSTEM_ROOT" = x; then
9921 STMP_FIXINC=
9922 STMP_FIXPROTO=
13240 if test "x$STMP_FIXPROTO" != x; then
13241 STMP_FIXPROTO=stmp-install-fixproto
13242 fi
9923 fi
9924fi
9925
9926# Expand extra_headers to include complete path.
9927# This substitutes for lots of t-* files.
9928extra_headers_list=
9929# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9930for file in ${extra_headers} ; do
9931 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9932done
9933
13243 fi
13244fi
13245
13246# Expand extra_headers to include complete path.
13247# This substitutes for lots of t-* files.
13248extra_headers_list=
13249# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13250for file in ${extra_headers} ; do
13251 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13252done
13253
13254# Define collect2 in Makefile.
13255case $host_can_use_collect2 in
13256 no) collect2= ;;
13257 *) collect2='collect2$(exeext)' ;;
13258esac
13259
13260
9934# Add a definition of USE_COLLECT2 if system wants one.
9935case $use_collect2 in
9936 no) use_collect2= ;;
9937 "") ;;
9938 *)
9939 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9940 xm_defines="${xm_defines} USE_COLLECT2"
13261# Add a definition of USE_COLLECT2 if system wants one.
13262case $use_collect2 in
13263 no) use_collect2= ;;
13264 "") ;;
13265 *)
13266 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13267 xm_defines="${xm_defines} USE_COLLECT2"
13268 case $host_can_use_collect2 in
13269 no)
13270 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13271echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13272 { (exit 1); exit 1; }; }
13273 ;;
13274 esac
9941 ;;
9942esac
9943
13275 ;;
13276esac
13277
13278# ---------------------------
13279# Assembler & linker features
13280# ---------------------------
13281
9944# Identify the assembler which will work hand-in-glove with the newly
9945# built GCC, so that we can examine its features. This is the assembler
9946# which will be driven by the driver program.
9947#
9948# If build != host, and we aren't building gas in-tree, we identify a
9949# build->target assembler and hope that it will have the same features
9950# as the host->target assembler we'll be using.
13282# Identify the assembler which will work hand-in-glove with the newly
13283# built GCC, so that we can examine its features. This is the assembler
13284# which will be driven by the driver program.
13285#
13286# If build != host, and we aren't building gas in-tree, we identify a
13287# build->target assembler and hope that it will have the same features
13288# as the host->target assembler we'll be using.
9951echo "$as_me:$LINENO: checking what assembler to use" >&5
9952echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9953in_tree_gas=no
9954gcc_cv_as=
9955gcc_cv_gas_major_version=
9956gcc_cv_gas_minor_version=
9957gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13289gcc_cv_gas_major_version=
13290gcc_cv_gas_minor_version=
13291gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13292
13293if test "${gcc_cv_as+set}" = set; then
13294 :
13295else
13296
9958if test -x "$DEFAULT_ASSEMBLER"; then
9959 gcc_cv_as="$DEFAULT_ASSEMBLER"
13297if test -x "$DEFAULT_ASSEMBLER"; then
13298 gcc_cv_as="$DEFAULT_ASSEMBLER"
9960elif test -x "$AS"; then
9961 gcc_cv_as="$AS"
9962elif test -x as$host_exeext; then
9963 # Build using assembler in the current directory.
9964 gcc_cv_as=./as$host_exeext
9965elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13299elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9966 && test -f ../gas/Makefile; then
9967 # Single tree build which includes gas.
13300 && test -f ../gas/Makefile \
13301 && test x$build = x$host; then
13302 gcc_cv_as=../gas/as-new$build_exeext
13303elif test -x as$build_exeext; then
13304 # Build using assembler in the current directory.
13305 gcc_cv_as=./as$build_exeext
13306elif test -x $AS_FOR_TARGET; then
13307 gcc_cv_as="$AS_FOR_TARGET"
13308else
13309 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13310set dummy $AS_FOR_TARGET; ac_word=$2
13311echo "$as_me:$LINENO: checking for $ac_word" >&5
13312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13313if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316 case $gcc_cv_as in
13317 [\\/]* | ?:[\\/]*)
13318 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13319 ;;
13320 *)
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322for as_dir in $PATH
13323do
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13328 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 break 2
13331 fi
13332done
13333done
13334
13335 ;;
13336esac
13337fi
13338gcc_cv_as=$ac_cv_path_gcc_cv_as
13339
13340if test -n "$gcc_cv_as"; then
13341 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13342echo "${ECHO_T}$gcc_cv_as" >&6
13343else
13344 echo "$as_me:$LINENO: result: no" >&5
13345echo "${ECHO_T}no" >&6
13346fi
13347
13348fi
13349fi
13350
13351
13352ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13353
13354
13355echo "$as_me:$LINENO: checking what assembler to use" >&5
13356echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13357if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13358 # Single tree build which includes gas. We want to prefer it
13359 # over whatever linker top-level may have detected, since
13360 # we'll use what we're building after installation anyway.
13361 echo "$as_me:$LINENO: result: newly built gas" >&5
13362echo "${ECHO_T}newly built gas" >&6
9968 in_tree_gas=yes
9969 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9970for f in $gcc_cv_as_bfd_srcdir/configure \
9971 $gcc_cv_as_gas_srcdir/configure \
9972 $gcc_cv_as_gas_srcdir/configure.in \
9973 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13363 in_tree_gas=yes
13364 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13365for f in $gcc_cv_as_bfd_srcdir/configure \
13366 $gcc_cv_as_gas_srcdir/configure \
13367 $gcc_cv_as_gas_srcdir/configure.in \
13368 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9974 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
13369 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
9975 if test x$gcc_cv_gas_version != x; then
9976 break
9977 fi
9978done
9979gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9980gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9981gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9982case $gcc_cv_gas_patch_version in
9983 "") gcc_cv_gas_patch_version="0" ;;
9984esac
9985gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9986 + $gcc_cv_gas_minor_version \) \* 1000 \
9987 + $gcc_cv_gas_patch_version`
9988
13370 if test x$gcc_cv_gas_version != x; then
13371 break
13372 fi
13373done
13374gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13375gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13376gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13377case $gcc_cv_gas_patch_version in
13378 "") gcc_cv_gas_patch_version="0" ;;
13379esac
13380gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13381 + $gcc_cv_gas_minor_version \) \* 1000 \
13382 + $gcc_cv_gas_patch_version`
13383
9989 rm -f as$host_exeext
9990 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9991 in_tree_gas_is_elf=no
9992 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9993 || (grep 'obj_format = multi' ../gas/Makefile \
9994 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9995 then
9996 in_tree_gas_is_elf=yes
9997 fi
13384 in_tree_gas_is_elf=no
13385 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13386 || (grep 'obj_format = multi' ../gas/Makefile \
13387 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13388 then
13389 in_tree_gas_is_elf=yes
13390 fi
13391else
13392 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13393echo "${ECHO_T}$gcc_cv_as" >&6
13394 in_tree_gas=no
9998fi
9999
13395fi
13396
10000if test "x$gcc_cv_as" = x; then
10001 # Search the same directories that the installed compiler will
10002 # search. Else we may find the wrong assembler and lose. If we
10003 # do not find a suitable assembler binary, then try the user's
10004 # path.
10005 #
10006 # Also note we have to check MD_EXEC_PREFIX before checking the
10007 # user's path. Unfortunately, there is no good way to get at the
10008 # value of MD_EXEC_PREFIX here. So we do a brute force search
10009 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10010 # to be fixed as part of the make/configure rewrite too.
10011
10012 if test "x$exec_prefix" = xNONE; then
10013 if test "x$prefix" = xNONE; then
10014 test_prefix=/usr/local
10015 else
10016 test_prefix=$prefix
10017 fi
10018 else
10019 test_prefix=$exec_prefix
10020 fi
10021
10022 # If the loop below does not find an assembler, then use whatever
10023 # one we can find in the users's path.
10024 # user's path.
10025 if test "x$program_prefix" != xNONE; then
10026 gcc_cv_as=${program_prefix}as$host_exeext
10027 else
10028 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
10029 fi
10030
10031 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10032 $test_prefix/libexec/gcc/$target_noncanonical \
10033 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10034 /usr/lib/gcc/$target_noncanonical \
10035 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10036 $test_prefix/$target_noncanonical/bin"
10037
10038 if test x$host = x$target; then
10039 test_dirs="$test_dirs \
10040 /usr/libexec \
10041 /usr/ccs/gcc \
10042 /usr/ccs/bin \
10043 /udk/usr/ccs/bin \
10044 /bsd43/usr/lib/cmplrs/cc \
10045 /usr/cross64/usr/bin \
10046 /usr/lib/cmplrs/cc \
10047 /sysv/usr/lib/cmplrs/cc \
10048 /svr4/usr/lib/cmplrs/cc \
10049 /usr/bin"
10050 fi
10051
10052 for dir in $test_dirs; do
10053 if test -x $dir/as$host_exeext; then
10054 gcc_cv_as=$dir/as$host_exeext
10055 break;
10056 fi
10057 done
10058fi
10059case $in_tree_gas in
10060 yes)
10061 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10062echo "${ECHO_T}\"newly built gas\"" >&6
10063 ;;
10064 no)
10065 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10066echo "${ECHO_T}$gcc_cv_as" >&6
10067 ;;
10068esac
10069
10070# Identify the linker which will work hand-in-glove with the newly
10071# built GCC, so that we can examine its features. This is the linker
10072# which will be driven by the driver program.
10073#
10074# If build != host, and we aren't building gas in-tree, we identify a
10075# build->target linker and hope that it will have the same features
10076# as the host->target linker we'll be using.
13397# Identify the linker which will work hand-in-glove with the newly
13398# built GCC, so that we can examine its features. This is the linker
13399# which will be driven by the driver program.
13400#
13401# If build != host, and we aren't building gas in-tree, we identify a
13402# build->target linker and hope that it will have the same features
13403# as the host->target linker we'll be using.
10077echo "$as_me:$LINENO: checking what linker to use" >&5
10078echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10079in_tree_ld=no
10080gcc_cv_ld=
10081gcc_cv_gld_major_version=
10082gcc_cv_gld_minor_version=
10083gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10084gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13404gcc_cv_gld_major_version=
13405gcc_cv_gld_minor_version=
13406gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13407gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13408
13409if test "${gcc_cv_ld+set}" = set; then
13410 :
13411else
13412
10085if test -x "$DEFAULT_LINKER"; then
10086 gcc_cv_ld="$DEFAULT_LINKER"
13413if test -x "$DEFAULT_LINKER"; then
13414 gcc_cv_ld="$DEFAULT_LINKER"
10087elif test -x "$LD"; then
10088 gcc_cv_ld="$LD"
10089elif test -x collect-ld$host_exeext; then
10090 # Build using linker in the current directory.
10091 gcc_cv_ld=./collect-ld$host_exeext
10092elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13415elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10093 && test -f ../ld/Makefile; then
10094 # Single tree build which includes ld.
13416 && test -f ../ld/Makefile \
13417 && test x$build = x$host; then
13418 gcc_cv_ld=../ld/ld-new$build_exeext
13419elif test -x collect-ld$build_exeext; then
13420 # Build using linker in the current directory.
13421 gcc_cv_ld=./collect-ld$build_exeext
13422elif test -x $LD_FOR_TARGET; then
13423 gcc_cv_ld="$LD_FOR_TARGET"
13424else
13425 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13426set dummy $LD_FOR_TARGET; ac_word=$2
13427echo "$as_me:$LINENO: checking for $ac_word" >&5
13428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13429if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431else
13432 case $gcc_cv_ld in
13433 [\\/]* | ?:[\\/]*)
13434 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13435 ;;
13436 *)
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438for as_dir in $PATH
13439do
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13447 fi
13448done
13449done
13450
13451 ;;
13452esac
13453fi
13454gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13455
13456if test -n "$gcc_cv_ld"; then
13457 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13458echo "${ECHO_T}$gcc_cv_ld" >&6
13459else
13460 echo "$as_me:$LINENO: result: no" >&5
13461echo "${ECHO_T}no" >&6
13462fi
13463
13464fi
13465fi
13466
13467
13468ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13469
13470
13471echo "$as_me:$LINENO: checking what linker to use" >&5
13472echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13473if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13474 # Single tree build which includes ld. We want to prefer it
13475 # over whatever linker top-level may have detected, since
13476 # we'll use what we're building after installation anyway.
13477 echo "$as_me:$LINENO: result: newly built ld" >&5
13478echo "${ECHO_T}newly built ld" >&6
10095 in_tree_ld=yes
10096 in_tree_ld_is_elf=no
10097 if (grep 'EMUL = .*elf' ../ld/Makefile \
13479 in_tree_ld=yes
13480 in_tree_ld_is_elf=no
13481 if (grep 'EMUL = .*elf' ../ld/Makefile \
10098 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
13482 || grep 'EMUL = .*linux' ../ld/Makefile \
13483 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
10099 in_tree_ld_is_elf=yes
10100 fi
10101 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
10102 do
13484 in_tree_ld_is_elf=yes
13485 fi
13486 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
13487 do
10103 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
13488 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
10104 if test x$gcc_cv_gld_version != x; then
10105 break
10106 fi
10107 done
10108 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10109 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13489 if test x$gcc_cv_gld_version != x; then
13490 break
13491 fi
13492 done
13493 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13494 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10110 rm -f collect-ld$host_exeext
10111 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10112 2>/dev/null
13495else
13496 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13497echo "${ECHO_T}$gcc_cv_ld" >&6
13498 in_tree_ld=no
10113fi
10114
13499fi
13500
10115if test "x$gcc_cv_ld" = x; then
10116 # Search the same directories that the installed compiler will
10117 # search. Else we may find the wrong linker and lose. If we
10118 # do not find a suitable linker binary, then try the user's
10119 # path.
10120 #
10121 # Also note we have to check MD_EXEC_PREFIX before checking the
10122 # user's path. Unfortunately, there is no good way to get at the
10123 # value of MD_EXEC_PREFIX here. So we do a brute force search
10124 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10125 # to be fixed as part of the make/configure rewrite too.
13501# Figure out what nm we will be using.
13502gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13503if test "${gcc_cv_nm+set}" = set; then
13504 :
13505else
10126
13506
10127 if test "x$exec_prefix" = xNONE; then
10128 if test "x$prefix" = xNONE; then
10129 test_prefix=/usr/local
10130 else
10131 test_prefix=$prefix
10132 fi
10133 else
10134 test_prefix=$exec_prefix
10135 fi
13507if test -f $gcc_cv_binutils_srcdir/configure.in \
13508 && test -f ../binutils/Makefile \
13509 && test x$build = x$host; then
13510 gcc_cv_nm=../binutils/nm-new$build_exeext
13511elif test -x nm$build_exeext; then
13512 gcc_cv_nm=./nm$build_exeext
13513elif test -x $NM_FOR_TARGET; then
13514 gcc_cv_nm="$NM_FOR_TARGET"
13515else
13516 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13517set dummy $NM_FOR_TARGET; ac_word=$2
13518echo "$as_me:$LINENO: checking for $ac_word" >&5
13519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13520if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 case $gcc_cv_nm in
13524 [\\/]* | ?:[\\/]*)
13525 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13526 ;;
13527 *)
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539done
13540done
10136
13541
10137 # If the loop below does not find an linker, then use whatever
10138 # one we can find in the users's path.
10139 # user's path.
10140 if test "x$program_prefix" != xNONE; then
10141 gcc_cv_ld=${program_prefix}ld$host_exeext
10142 else
10143 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
10144 fi
13542 ;;
13543esac
13544fi
13545gcc_cv_nm=$ac_cv_path_gcc_cv_nm
10145
13546
10146 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10147 $test_prefix/libexec/gcc/$target_noncanonical \
10148 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10149 /usr/lib/gcc/$target_noncanonical \
10150 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10151 $test_prefix/$target_noncanonical/bin"
13547if test -n "$gcc_cv_nm"; then
13548 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13549echo "${ECHO_T}$gcc_cv_nm" >&6
13550else
13551 echo "$as_me:$LINENO: result: no" >&5
13552echo "${ECHO_T}no" >&6
13553fi
10152
13554
10153 if test x$host = x$target; then
10154 test_dirs="$test_dirs \
10155 /usr/libexec \
10156 /usr/ccs/gcc \
10157 /usr/ccs/bin \
10158 /udk/usr/ccs/bin \
10159 /bsd43/usr/lib/cmplrs/cc \
10160 /usr/cross64/usr/bin \
10161 /usr/lib/cmplrs/cc \
10162 /sysv/usr/lib/cmplrs/cc \
10163 /svr4/usr/lib/cmplrs/cc \
10164 /usr/bin"
10165 fi
10166
10167 for dir in $test_dirs; do
10168 if test -x $dir/ld$host_exeext; then
10169 gcc_cv_ld=$dir/ld$host_exeext
10170 break;
10171 fi
10172 done
10173fi
13555fi
10174case $in_tree_ld in
10175 yes)
10176 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10177echo "${ECHO_T}\"newly built ld\"" >&6
10178 ;;
10179 no)
10180 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10181echo "${ECHO_T}$gcc_cv_ld" >&6
10182 ;;
10183esac
13556fi
10184
13557
10185# Figure out what nm we will be using.
10186gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13558
10187echo "$as_me:$LINENO: checking what nm to use" >&5
10188echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13559echo "$as_me:$LINENO: checking what nm to use" >&5
13560echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10189in_tree_nm=no
10190if test -x nm$host_exeext; then
10191 gcc_cv_nm=./nm$host_exeext
10192elif test -f $gcc_cv_binutils_srcdir/configure.in \
10193 && test -f ../binutils/Makefile; then
13561if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
10194 # Single tree build which includes binutils.
13562 # Single tree build which includes binutils.
13563 echo "$as_me:$LINENO: result: newly built nm" >&5
13564echo "${ECHO_T}newly built nm" >&6
10195 in_tree_nm=yes
13565 in_tree_nm=yes
10196 gcc_cv_nm=./nm$host_exeext
10197 rm -f nm$host_exeext
10198 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10199elif test "x$program_prefix" != xNONE; then
10200 gcc_cv_nm=${program_prefix}nm$host_exeext
10201else
13566else
10202 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
13567 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13568echo "${ECHO_T}$gcc_cv_nm" >&6
13569 in_tree_nm=no
10203fi
13570fi
10204case $in_tree_nm in
10205 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10206echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10207 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10208echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10209esac
10210
13571
13572ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13573
13574
10211# Figure out what objdump we will be using.
13575# Figure out what objdump we will be using.
13576if test "${gcc_cv_objdump+set}" = set; then
13577 :
13578else
13579
13580if test -f $gcc_cv_binutils_srcdir/configure.in \
13581 && test -f ../binutils/Makefile \
13582 && test x$build = x$host; then
13583 # Single tree build which includes binutils.
13584 gcc_cv_objdump=../binutils/objdump$build_exeext
13585elif test -x objdump$build_exeext; then
13586 gcc_cv_objdump=./objdump$build_exeext
13587elif test -x $OBJDUMP_FOR_TARGET; then
13588 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13589else
13590 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13591set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13592echo "$as_me:$LINENO: checking for $ac_word" >&5
13593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13594if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13596else
13597 case $gcc_cv_objdump in
13598 [\\/]* | ?:[\\/]*)
13599 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13600 ;;
13601 *)
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603for as_dir in $PATH
13604do
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13609 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13612 fi
13613done
13614done
13615
13616 ;;
13617esac
13618fi
13619gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13620
13621if test -n "$gcc_cv_objdump"; then
13622 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13623echo "${ECHO_T}$gcc_cv_objdump" >&6
13624else
13625 echo "$as_me:$LINENO: result: no" >&5
13626echo "${ECHO_T}no" >&6
13627fi
13628
13629fi
13630fi
13631
13632
10212echo "$as_me:$LINENO: checking what objdump to use" >&5
10213echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13633echo "$as_me:$LINENO: checking what objdump to use" >&5
13634echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10214in_tree_objdump=no
10215if test -x objdump$host_exeext; then
10216 gcc_cv_objdump=./objdump$host_exeext
10217elif test -f $gcc_cv_binutils_srcdir/configure.in \
10218 && test -f ../binutils/Makefile; then
13635if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
10219 # Single tree build which includes binutils.
13636 # Single tree build which includes binutils.
10220 in_tree_objdump=yes
10221 gcc_cv_objdump=./objdump$host_exeext
10222 rm -f objdump$host_exeext
10223 $symbolic_link ../binutils/objdump$host_exeext \
10224 objdump$host_exeext 2>/dev/null
10225elif test "x$program_prefix" != xNONE; then
10226 gcc_cv_objdump=${program_prefix}objdump$host_exeext
13637 echo "$as_me:$LINENO: result: newly built objdump" >&5
13638echo "${ECHO_T}newly built objdump" >&6
13639elif test x$gcc_cv_objdump = x; then
13640 echo "$as_me:$LINENO: result: not found" >&5
13641echo "${ECHO_T}not found" >&6
10227else
13642else
10228 gcc_cv_objdump=`echo objdump | \
10229 sed ${program_transform_name}`$host_exeext
13643 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13644echo "${ECHO_T}$gcc_cv_objdump" >&6
10230fi
13645fi
10231case $in_tree_objdump in
10232 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10233echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10234 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10235echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10236esac
10237
10238# Figure out what assembler alignment features are present.
10239echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10240echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10241if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243else
10244 gcc_cv_as_balign_and_p2align=no
10245 if test $in_tree_gas = yes; then
10246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10247 then gcc_cv_as_balign_and_p2align=yes
10248fi
10249 elif test x$gcc_cv_as != x; then
10250 echo '.balign 4
10251.p2align 2' > conftest.s
10252 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }
10258 then
10259 gcc_cv_as_balign_and_p2align=yes
10260 else
10261 echo "configure: failed program was" >&5
10262 cat conftest.s >&5
10263 fi
10264 rm -f conftest.o conftest.s
10265 fi
10266fi
10267echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10268echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10269if test $gcc_cv_as_balign_and_p2align = yes; then
10270
10271cat >>confdefs.h <<\_ACEOF
10272#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10273_ACEOF
10274
10275fi
10276
10277echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10278echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10279if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 gcc_cv_as_max_skip_p2align=no
10283 if test $in_tree_gas = yes; then
10284 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10285 then gcc_cv_as_max_skip_p2align=yes
10286fi
10287 elif test x$gcc_cv_as != x; then
10288 echo '.p2align 4,,7' > conftest.s
10289 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }
10295 then
10296 gcc_cv_as_max_skip_p2align=yes
10297 else
10298 echo "configure: failed program was" >&5
10299 cat conftest.s >&5
10300 fi
10301 rm -f conftest.o conftest.s
10302 fi
10303fi
10304echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10305echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10306if test $gcc_cv_as_max_skip_p2align = yes; then
10307
10308cat >>confdefs.h <<\_ACEOF
10309#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10310_ACEOF
10311
10312fi
10313
10314echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10315echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10316if test "${gcc_cv_as_subsection_m1+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 gcc_cv_as_subsection_m1=no
10320 if test $in_tree_gas = yes; then
10321 if test $in_tree_gas_is_elf = yes \
10322 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10323 then gcc_cv_as_subsection_m1=yes
10324fi
10325 elif test x$gcc_cv_as != x; then
10326 echo 'conftest_label1: .word 0
10327.subsection -1
10328conftest_label2: .word 0
10329.previous' > conftest.s
10330 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }
10336 then
10337 if test x$gcc_cv_nm != x; then
10338 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10339 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10340 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10341 then :
10342 else gcc_cv_as_subsection_m1=yes
10343 fi
10344 rm -f conftest.nm1 conftest.nm2
10345 fi
10346 else
10347 echo "configure: failed program was" >&5
10348 cat conftest.s >&5
10349 fi
10350 rm -f conftest.o conftest.s
10351 fi
10352fi
10353echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10354echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10355if test $gcc_cv_as_subsection_m1 = yes; then
10356
10357cat >>confdefs.h <<\_ACEOF
10358#define HAVE_GAS_SUBSECTION_ORDERING 1
10359_ACEOF
10360
10361fi
10362
10363echo "$as_me:$LINENO: checking assembler for .weak" >&5
10364echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10365if test "${gcc_cv_as_weak+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367else
10368 gcc_cv_as_weak=no
10369 if test $in_tree_gas = yes; then
10370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10371 then gcc_cv_as_weak=yes
10372fi
10373 elif test x$gcc_cv_as != x; then
10374 echo ' .weak foobar' > conftest.s
10375 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }
10381 then
10382 gcc_cv_as_weak=yes
10383 else
10384 echo "configure: failed program was" >&5
10385 cat conftest.s >&5
10386 fi
10387 rm -f conftest.o conftest.s
10388 fi
10389fi
10390echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10391echo "${ECHO_T}$gcc_cv_as_weak" >&6
10392if test $gcc_cv_as_weak = yes; then
10393
10394cat >>confdefs.h <<\_ACEOF
10395#define HAVE_GAS_WEAK 1
10396_ACEOF
10397
10398fi
10399
13646
13647# Figure out what assembler alignment features are present.
13648echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13649echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13650if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652else
13653 gcc_cv_as_balign_and_p2align=no
13654 if test $in_tree_gas = yes; then
13655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13656 then gcc_cv_as_balign_and_p2align=yes
13657fi
13658 elif test x$gcc_cv_as != x; then
13659 echo '.balign 4
13660.p2align 2' > conftest.s
13661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }
13667 then
13668 gcc_cv_as_balign_and_p2align=yes
13669 else
13670 echo "configure: failed program was" >&5
13671 cat conftest.s >&5
13672 fi
13673 rm -f conftest.o conftest.s
13674 fi
13675fi
13676echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13677echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13678if test $gcc_cv_as_balign_and_p2align = yes; then
13679
13680cat >>confdefs.h <<\_ACEOF
13681#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13682_ACEOF
13683
13684fi
13685
13686echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13687echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13688if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13690else
13691 gcc_cv_as_max_skip_p2align=no
13692 if test $in_tree_gas = yes; then
13693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13694 then gcc_cv_as_max_skip_p2align=yes
13695fi
13696 elif test x$gcc_cv_as != x; then
13697 echo '.p2align 4,,7' > conftest.s
13698 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }
13704 then
13705 gcc_cv_as_max_skip_p2align=yes
13706 else
13707 echo "configure: failed program was" >&5
13708 cat conftest.s >&5
13709 fi
13710 rm -f conftest.o conftest.s
13711 fi
13712fi
13713echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13714echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13715if test $gcc_cv_as_max_skip_p2align = yes; then
13716
13717cat >>confdefs.h <<\_ACEOF
13718#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13719_ACEOF
13720
13721fi
13722
13723echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13724echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13725if test "${gcc_cv_as_subsection_m1+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727else
13728 gcc_cv_as_subsection_m1=no
13729 if test $in_tree_gas = yes; then
13730 if test $in_tree_gas_is_elf = yes \
13731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13732 then gcc_cv_as_subsection_m1=yes
13733fi
13734 elif test x$gcc_cv_as != x; then
13735 echo 'conftest_label1: .word 0
13736.subsection -1
13737conftest_label2: .word 0
13738.previous' > conftest.s
13739 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }
13745 then
13746 if test x$gcc_cv_nm != x; then
13747 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13748 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13749 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13750 then :
13751 else gcc_cv_as_subsection_m1=yes
13752 fi
13753 rm -f conftest.nm1 conftest.nm2
13754 fi
13755 else
13756 echo "configure: failed program was" >&5
13757 cat conftest.s >&5
13758 fi
13759 rm -f conftest.o conftest.s
13760 fi
13761fi
13762echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13763echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13764if test $gcc_cv_as_subsection_m1 = yes; then
13765
13766cat >>confdefs.h <<\_ACEOF
13767#define HAVE_GAS_SUBSECTION_ORDERING 1
13768_ACEOF
13769
13770fi
13771
13772echo "$as_me:$LINENO: checking assembler for .weak" >&5
13773echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13774if test "${gcc_cv_as_weak+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 gcc_cv_as_weak=no
13778 if test $in_tree_gas = yes; then
13779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13780 then gcc_cv_as_weak=yes
13781fi
13782 elif test x$gcc_cv_as != x; then
13783 echo ' .weak foobar' > conftest.s
13784 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }
13790 then
13791 gcc_cv_as_weak=yes
13792 else
13793 echo "configure: failed program was" >&5
13794 cat conftest.s >&5
13795 fi
13796 rm -f conftest.o conftest.s
13797 fi
13798fi
13799echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13800echo "${ECHO_T}$gcc_cv_as_weak" >&6
13801if test $gcc_cv_as_weak = yes; then
13802
13803cat >>confdefs.h <<\_ACEOF
13804#define HAVE_GAS_WEAK 1
13805_ACEOF
13806
13807fi
13808
13809echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13810echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13811if test "${gcc_cv_as_weakref+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813else
13814 gcc_cv_as_weakref=no
13815 if test $in_tree_gas = yes; then
13816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13817 then gcc_cv_as_weakref=yes
13818fi
13819 elif test x$gcc_cv_as != x; then
13820 echo ' .weakref foobar, barfnot' > conftest.s
13821 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }
13827 then
13828 gcc_cv_as_weakref=yes
13829 else
13830 echo "configure: failed program was" >&5
13831 cat conftest.s >&5
13832 fi
13833 rm -f conftest.o conftest.s
13834 fi
13835fi
13836echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13837echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13838if test $gcc_cv_as_weakref = yes; then
13839
13840cat >>confdefs.h <<\_ACEOF
13841#define HAVE_GAS_WEAKREF 1
13842_ACEOF
13843
13844fi
13845
10400echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
10401echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
10402if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405 gcc_cv_as_nsubspa_comdat=no
10406 if test $in_tree_gas = yes; then
10407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10408 then gcc_cv_as_nsubspa_comdat=yes
10409fi
10410 elif test x$gcc_cv_as != x; then
10411 echo ' .SPACE $TEXT$
10412 .NSUBSPA $CODE$,COMDAT' > conftest.s
10413 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }
10419 then
10420 gcc_cv_as_nsubspa_comdat=yes
10421 else
10422 echo "configure: failed program was" >&5
10423 cat conftest.s >&5
10424 fi
10425 rm -f conftest.o conftest.s
10426 fi
10427fi
10428echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
10429echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
10430if test $gcc_cv_as_nsubspa_comdat = yes; then
10431
10432cat >>confdefs.h <<\_ACEOF
10433#define HAVE_GAS_NSUBSPA_COMDAT 1
10434_ACEOF
10435
10436fi
10437
10438# .hidden needs to be supported in both the assembler and the linker,
10439# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10440# This is irritatingly difficult to feature test for; we have to check the
10441# date string after the version number. If we've got an in-tree
10442# ld, we don't know its patchlevel version, so we set the baseline at 2.13
10443# to be safe.
10444# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10445echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10446echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10447if test "${gcc_cv_as_hidden+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 gcc_cv_as_hidden=no
10451 if test $in_tree_gas = yes; then
10452 if test $in_tree_gas_is_elf = yes \
10453 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10454 then gcc_cv_as_hidden=yes
10455fi
10456 elif test x$gcc_cv_as != x; then
10457 echo ' .hidden foobar
10458foobar:' > conftest.s
10459 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }
10465 then
10466 gcc_cv_as_hidden=yes
10467 else
10468 echo "configure: failed program was" >&5
10469 cat conftest.s >&5
10470 fi
10471 rm -f conftest.o conftest.s
10472 fi
10473fi
10474echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10475echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10476
10477
10478echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10479echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10480if test "${gcc_cv_ld_hidden+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483 if test $in_tree_ld = yes ; then
10484 gcc_cv_ld_hidden=no
10485 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 \
10486 && test $in_tree_ld_is_elf = yes; then
10487 gcc_cv_ld_hidden=yes
10488 fi
10489else
10490 gcc_cv_ld_hidden=yes
10491 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10492 if echo "$ld_ver" | grep GNU > /dev/null; then
10493 ld_vers=`echo $ld_ver | sed -n \
10494 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10495 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10496 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10497 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10498 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13846echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13847echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13848if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851 gcc_cv_as_nsubspa_comdat=no
13852 if test $in_tree_gas = yes; then
13853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13854 then gcc_cv_as_nsubspa_comdat=yes
13855fi
13856 elif test x$gcc_cv_as != x; then
13857 echo ' .SPACE $TEXT$
13858 .NSUBSPA $CODE$,COMDAT' > conftest.s
13859 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }
13865 then
13866 gcc_cv_as_nsubspa_comdat=yes
13867 else
13868 echo "configure: failed program was" >&5
13869 cat conftest.s >&5
13870 fi
13871 rm -f conftest.o conftest.s
13872 fi
13873fi
13874echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13875echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13876if test $gcc_cv_as_nsubspa_comdat = yes; then
13877
13878cat >>confdefs.h <<\_ACEOF
13879#define HAVE_GAS_NSUBSPA_COMDAT 1
13880_ACEOF
13881
13882fi
13883
13884# .hidden needs to be supported in both the assembler and the linker,
13885# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13886# This is irritatingly difficult to feature test for; we have to check the
13887# date string after the version number. If we've got an in-tree
13888# ld, we don't know its patchlevel version, so we set the baseline at 2.13
13889# to be safe.
13890# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13891echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13892echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13893if test "${gcc_cv_as_hidden+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895else
13896 gcc_cv_as_hidden=no
13897 if test $in_tree_gas = yes; then
13898 if test $in_tree_gas_is_elf = yes \
13899 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13900 then gcc_cv_as_hidden=yes
13901fi
13902 elif test x$gcc_cv_as != x; then
13903 echo ' .hidden foobar
13904foobar:' > conftest.s
13905 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }
13911 then
13912 gcc_cv_as_hidden=yes
13913 else
13914 echo "configure: failed program was" >&5
13915 cat conftest.s >&5
13916 fi
13917 rm -f conftest.o conftest.s
13918 fi
13919fi
13920echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13921echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13922
13923
13924echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13925echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13926if test "${gcc_cv_ld_hidden+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928else
13929 if test $in_tree_ld = yes ; then
13930 gcc_cv_ld_hidden=no
13931 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 \
13932 && test $in_tree_ld_is_elf = yes; then
13933 gcc_cv_ld_hidden=yes
13934 fi
13935else
13936 gcc_cv_ld_hidden=yes
13937 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13938 if echo "$ld_ver" | grep GNU > /dev/null; then
13939 ld_vers=`echo $ld_ver | sed -n \
13940 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13941 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13942 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13943 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13944 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10499 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13945 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13946 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
10500 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'`
13947 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'`
13948 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13949 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13950 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10501 if test 0"$ld_date" -lt 20020404; then
10502 if test -n "$ld_date"; then
10503 # If there was date string, but was earlier than 2002-04-04, fail
10504 gcc_cv_ld_hidden=no
10505 elif test -z "$ld_vers"; then
10506 # If there was no date string nor ld version number, something is wrong
10507 gcc_cv_ld_hidden=no
10508 else
13951 if test 0"$ld_date" -lt 20020404; then
13952 if test -n "$ld_date"; then
13953 # If there was date string, but was earlier than 2002-04-04, fail
13954 gcc_cv_ld_hidden=no
13955 elif test -z "$ld_vers"; then
13956 # If there was no date string nor ld version number, something is wrong
13957 gcc_cv_ld_hidden=no
13958 else
10509 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10510 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10511 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10512 test -z "$ld_vers_patch" && ld_vers_patch=0
10513 if test "$ld_vers_major" -lt 2; then
10514 gcc_cv_ld_hidden=no
10515 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10516 gcc_cv_ld_hidden="no"
10517 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10518 gcc_cv_ld_hidden=no
10519 fi
10520 fi
10521 fi
10522 else
10523 case "${target}" in
10524 hppa64*-*-hpux* | ia64*-*-hpux*)
10525 gcc_cv_ld_hidden=yes
10526 ;;
10527 *)
10528 gcc_cv_ld_hidden=no
10529 ;;
10530 esac
10531 fi
10532fi
10533fi
10534echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10535echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10536libgcc_visibility=no
10537
13959 test -z "$ld_vers_patch" && ld_vers_patch=0
13960 if test "$ld_vers_major" -lt 2; then
13961 gcc_cv_ld_hidden=no
13962 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13963 gcc_cv_ld_hidden="no"
13964 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13965 gcc_cv_ld_hidden=no
13966 fi
13967 fi
13968 fi
13969 else
13970 case "${target}" in
13971 hppa64*-*-hpux* | ia64*-*-hpux*)
13972 gcc_cv_ld_hidden=yes
13973 ;;
13974 *)
13975 gcc_cv_ld_hidden=no
13976 ;;
13977 esac
13978 fi
13979fi
13980fi
13981echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13982echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13983libgcc_visibility=no
13984
13985
10538if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10539 libgcc_visibility=yes
10540
10541cat >>confdefs.h <<\_ACEOF
10542#define HAVE_GAS_HIDDEN 1
10543_ACEOF
10544
10545fi
10546
10547# Check if we have .[us]leb128, and support symbol arithmetic with it.
10548echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10549echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10550if test "${gcc_cv_as_leb128+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552else
10553 gcc_cv_as_leb128=no
10554 if test $in_tree_gas = yes; then
10555 if test $in_tree_gas_is_elf = yes \
10556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10557 then gcc_cv_as_leb128=yes
10558fi
10559 elif test x$gcc_cv_as != x; then
10560 echo ' .data
10561 .uleb128 L2 - L1
10562L1:
10563 .uleb128 1280
10564 .sleb128 -1010
10565L2:' > conftest.s
10566 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }
10572 then
10573 # GAS versions before 2.11 do not support uleb128,
10574 # despite appearing to.
10575 # ??? There exists an elf-specific test that will crash
10576 # the assembler. Perhaps it's better to figure out whether
10577 # arbitrary sections are supported and try the test.
10578 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10579 if echo "$as_ver" | grep GNU > /dev/null; then
10580 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10581 as_major=`echo $as_ver | sed 's/\..*//'`
10582 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10583 if test $as_major -eq 2 && test $as_minor -lt 11
10584 then :
10585 else gcc_cv_as_leb128=yes
10586 fi
10587 fi
10588 else
10589 echo "configure: failed program was" >&5
10590 cat conftest.s >&5
10591 fi
10592 rm -f conftest.o conftest.s
10593 fi
10594fi
10595echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10596echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10597if test $gcc_cv_as_leb128 = yes; then
10598
10599cat >>confdefs.h <<\_ACEOF
10600#define HAVE_AS_LEB128 1
10601_ACEOF
10602
10603fi
10604
10605# GAS versions up to and including 2.11.0 may mis-optimize
10606# .eh_frame data.
10607echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10608echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10609if test "${gcc_cv_as_eh_frame+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612 gcc_cv_as_eh_frame=no
10613 if test $in_tree_gas = yes; then
10614 if test $in_tree_gas_is_elf = yes \
10615 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10616 then gcc_cv_as_eh_frame=yes
10617fi
10618 elif test x$gcc_cv_as != x; then
10619 echo ' .text
10620.LFB1:
10621 .4byte 0
10622.L1:
10623 .4byte 0
10624.LFE1:
10625 .section .eh_frame,"aw",@progbits
10626__FRAME_BEGIN__:
10627 .4byte .LECIE1-.LSCIE1
10628.LSCIE1:
10629 .4byte 0x0
10630 .byte 0x1
10631 .ascii "z\0"
10632 .byte 0x1
10633 .byte 0x78
10634 .byte 0x1a
10635 .byte 0x0
10636 .byte 0x4
10637 .4byte 1
10638 .p2align 1
10639.LECIE1:
10640.LSFDE1:
10641 .4byte .LEFDE1-.LASFDE1
10642.LASFDE1:
10643 .4byte .LASFDE1-__FRAME_BEGIN__
10644 .4byte .LFB1
10645 .4byte .LFE1-.LFB1
10646 .byte 0x4
10647 .4byte .LFE1-.LFB1
10648 .byte 0x4
10649 .4byte .L1-.LFB1
10650.LEFDE1:' > conftest.s
10651 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }
10657 then
10658 cat > conftest.lit <<EOF
10659 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10660 0010 01000000 12000000 18000000 00000000 ................
10661 0020 08000000 04080000 0044 .........D
10662EOF
10663cat > conftest.big <<EOF
10664 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10665 0010 00000001 00000012 00000018 00000000 ................
10666 0020 00000008 04000000 0844 .........D
10667EOF
10668 # If the assembler didn't choke, and we can objdump,
10669 # and we got the correct data, then succeed.
13986if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13987 libgcc_visibility=yes
13988
13989cat >>confdefs.h <<\_ACEOF
13990#define HAVE_GAS_HIDDEN 1
13991_ACEOF
13992
13993fi
13994
13995# Check if we have .[us]leb128, and support symbol arithmetic with it.
13996echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13997echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13998if test "${gcc_cv_as_leb128+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000else
14001 gcc_cv_as_leb128=no
14002 if test $in_tree_gas = yes; then
14003 if test $in_tree_gas_is_elf = yes \
14004 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14005 then gcc_cv_as_leb128=yes
14006fi
14007 elif test x$gcc_cv_as != x; then
14008 echo ' .data
14009 .uleb128 L2 - L1
14010L1:
14011 .uleb128 1280
14012 .sleb128 -1010
14013L2:' > conftest.s
14014 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }
14020 then
14021 # GAS versions before 2.11 do not support uleb128,
14022 # despite appearing to.
14023 # ??? There exists an elf-specific test that will crash
14024 # the assembler. Perhaps it's better to figure out whether
14025 # arbitrary sections are supported and try the test.
14026 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14027 if echo "$as_ver" | grep GNU > /dev/null; then
14028 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14029 as_major=`echo $as_ver | sed 's/\..*//'`
14030 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14031 if test $as_major -eq 2 && test $as_minor -lt 11
14032 then :
14033 else gcc_cv_as_leb128=yes
14034 fi
14035 fi
14036 else
14037 echo "configure: failed program was" >&5
14038 cat conftest.s >&5
14039 fi
14040 rm -f conftest.o conftest.s
14041 fi
14042fi
14043echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14044echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14045if test $gcc_cv_as_leb128 = yes; then
14046
14047cat >>confdefs.h <<\_ACEOF
14048#define HAVE_AS_LEB128 1
14049_ACEOF
14050
14051fi
14052
14053# GAS versions up to and including 2.11.0 may mis-optimize
14054# .eh_frame data.
14055echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14056echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14057if test "${gcc_cv_as_eh_frame+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
14060 gcc_cv_as_eh_frame=no
14061 if test $in_tree_gas = yes; then
14062 if test $in_tree_gas_is_elf = yes \
14063 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14064 then gcc_cv_as_eh_frame=yes
14065fi
14066 elif test x$gcc_cv_as != x; then
14067 echo ' .text
14068.LFB1:
14069 .4byte 0
14070.L1:
14071 .4byte 0
14072.LFE1:
14073 .section .eh_frame,"aw",@progbits
14074__FRAME_BEGIN__:
14075 .4byte .LECIE1-.LSCIE1
14076.LSCIE1:
14077 .4byte 0x0
14078 .byte 0x1
14079 .ascii "z\0"
14080 .byte 0x1
14081 .byte 0x78
14082 .byte 0x1a
14083 .byte 0x0
14084 .byte 0x4
14085 .4byte 1
14086 .p2align 1
14087.LECIE1:
14088.LSFDE1:
14089 .4byte .LEFDE1-.LASFDE1
14090.LASFDE1:
14091 .4byte .LASFDE1-__FRAME_BEGIN__
14092 .4byte .LFB1
14093 .4byte .LFE1-.LFB1
14094 .byte 0x4
14095 .4byte .LFE1-.LFB1
14096 .byte 0x4
14097 .4byte .L1-.LFB1
14098.LEFDE1:' > conftest.s
14099 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }
14105 then
14106 cat > conftest.lit <<EOF
14107 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14108 0010 01000000 12000000 18000000 00000000 ................
14109 0020 08000000 04080000 0044 .........D
14110EOF
14111cat > conftest.big <<EOF
14112 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14113 0010 00000001 00000012 00000018 00000000 ................
14114 0020 00000008 04000000 0844 .........D
14115EOF
14116 # If the assembler didn't choke, and we can objdump,
14117 # and we got the correct data, then succeed.
14118 # The text in the here-document typically retains its unix-style line
14119 # endings, while the output of objdump will use host line endings.
14120 # Therefore, use diff -b for the comparisons.
10670 if test x$gcc_cv_objdump != x \
10671 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10672 | tail -3 > conftest.got \
14121 if test x$gcc_cv_objdump != x \
14122 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14123 | tail -3 > conftest.got \
10673 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10674 || cmp conftest.big conftest.got > /dev/null 2>&1; }
14124 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14125 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
10675 then
10676 gcc_cv_as_eh_frame=yes
10677 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 gcc_cv_as_eh_frame=buggy
10684 else
10685 # Uh oh, what do we do now?
10686 gcc_cv_as_eh_frame=no
10687 fi
10688 else
10689 echo "configure: failed program was" >&5
10690 cat conftest.s >&5
10691 fi
10692 rm -f conftest.o conftest.s
10693 fi
10694fi
10695echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10696echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10697
10698
10699if test $gcc_cv_as_eh_frame = buggy; then
10700
10701cat >>confdefs.h <<\_ACEOF
10702#define USE_AS_TRADITIONAL_FORMAT 1
10703_ACEOF
10704
10705fi
10706
10707echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10708echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10709if test "${gcc_cv_as_shf_merge+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711else
10712 gcc_cv_as_shf_merge=no
10713 if test $in_tree_gas = yes; then
10714 if test $in_tree_gas_is_elf = yes \
10715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10716 then gcc_cv_as_shf_merge=yes
10717fi
10718 elif test x$gcc_cv_as != x; then
10719 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10720 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }
10726 then
10727 gcc_cv_as_shf_merge=yes
10728 else
10729 echo "configure: failed program was" >&5
10730 cat conftest.s >&5
10731 fi
10732 rm -f conftest.o conftest.s
10733 fi
10734fi
10735echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10736echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10737
14126 then
14127 gcc_cv_as_eh_frame=yes
14128 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 gcc_cv_as_eh_frame=buggy
14135 else
14136 # Uh oh, what do we do now?
14137 gcc_cv_as_eh_frame=no
14138 fi
14139 else
14140 echo "configure: failed program was" >&5
14141 cat conftest.s >&5
14142 fi
14143 rm -f conftest.o conftest.s
14144 fi
14145fi
14146echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14147echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14148
14149
14150if test $gcc_cv_as_eh_frame = buggy; then
14151
14152cat >>confdefs.h <<\_ACEOF
14153#define USE_AS_TRADITIONAL_FORMAT 1
14154_ACEOF
14155
14156fi
14157
14158echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14159echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14160if test "${gcc_cv_as_shf_merge+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162else
14163 gcc_cv_as_shf_merge=no
14164 if test $in_tree_gas = yes; then
14165 if test $in_tree_gas_is_elf = yes \
14166 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14167 then gcc_cv_as_shf_merge=yes
14168fi
14169 elif test x$gcc_cv_as != x; then
14170 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14171 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }
14177 then
14178 gcc_cv_as_shf_merge=yes
14179 else
14180 echo "configure: failed program was" >&5
14181 cat conftest.s >&5
14182 fi
14183 rm -f conftest.o conftest.s
14184 fi
14185fi
14186echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14187echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14188
14189if test $gcc_cv_as_shf_merge = no; then
14190 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14191echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14192if test "${gcc_cv_as_shf_merge+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14194else
14195 gcc_cv_as_shf_merge=no
14196 if test $in_tree_gas = yes; then
14197 if test $in_tree_gas_is_elf = yes \
14198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14199 then gcc_cv_as_shf_merge=yes
14200fi
14201 elif test x$gcc_cv_as != x; then
14202 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14203 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }
14209 then
14210 gcc_cv_as_shf_merge=yes
14211 else
14212 echo "configure: failed program was" >&5
14213 cat conftest.s >&5
14214 fi
14215 rm -f conftest.o conftest.s
14216 fi
14217fi
14218echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14219echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10738
14220
14221fi
14222
10739cat >>confdefs.h <<_ACEOF
10740#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10741_ACEOF
10742
10743
14223cat >>confdefs.h <<_ACEOF
14224#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14225_ACEOF
14226
14227
14228echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14229echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14230if test "${gcc_cv_as_comdat_group+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232else
14233 gcc_cv_as_comdat_group=no
14234 if test $in_tree_gas = yes; then
14235 if test $in_tree_gas_is_elf = yes \
14236 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14237 then gcc_cv_as_comdat_group=yes
14238fi
14239 elif test x$gcc_cv_as != x; then
14240 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14241 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }
14247 then
14248 gcc_cv_as_comdat_group=yes
14249 else
14250 echo "configure: failed program was" >&5
14251 cat conftest.s >&5
14252 fi
14253 rm -f conftest.o conftest.s
14254 fi
14255fi
14256echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14257echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14258
14259if test $gcc_cv_as_comdat_group = yes; then
14260 gcc_cv_as_comdat_group_percent=no
14261else
14262 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14263echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14264if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266else
14267 gcc_cv_as_comdat_group_percent=no
14268 if test $in_tree_gas = yes; then
14269 if test $in_tree_gas_is_elf = yes \
14270 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14271 then gcc_cv_as_comdat_group_percent=yes
14272fi
14273 elif test x$gcc_cv_as != x; then
14274 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14275 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }
14281 then
14282 gcc_cv_as_comdat_group_percent=yes
14283 else
14284 echo "configure: failed program was" >&5
14285 cat conftest.s >&5
14286 fi
14287 rm -f conftest.o conftest.s
14288 fi
14289fi
14290echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14291echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14292
14293fi
14294if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14295 comdat_group=yes
14296 if test 0"$ld_date" -lt 20050308; then
14297 if test -n "$ld_date"; then
14298 # If there was date string, but was earlier than 2005-03-08, fail
14299 comdat_group=no
14300 elif test "$ld_vers_major" -lt 2; then
14301 comdat_group=no
14302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14303 comdat_group=no
14304 fi
14305 fi
14306else
14307 # assume linkers other than GNU ld don't support COMDAT group
14308 comdat_group=no
14309fi
14310if test $comdat_group = no; then
14311 gcc_cv_as_comdat_group=no
14312 gcc_cv_as_comdat_group_percent=no
14313fi
14314
14315cat >>confdefs.h <<_ACEOF
14316#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`
14317_ACEOF
14318
14319
10744# Thread-local storage - the check is heavily parametrized.
10745conftest_s=
10746tls_first_major=
10747tls_first_minor=
10748tls_as_opt=
10749case "$target" in
10750 alpha*-*-*)
10751 conftest_s='
10752 .section ".tdata","awT",@progbits
10753foo: .long 25
10754 .text
10755 ldq $27,__tls_get_addr($29) !literal!1
10756 lda $16,foo($29) !tlsgd!1
10757 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10758 ldq $27,__tls_get_addr($29) !literal!2
10759 lda $16,foo($29) !tlsldm!2
10760 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10761 ldq $1,foo($29) !gotdtprel
10762 ldah $2,foo($29) !dtprelhi
10763 lda $3,foo($2) !dtprello
10764 lda $4,foo($29) !dtprel
10765 ldq $1,foo($29) !gottprel
10766 ldah $2,foo($29) !tprelhi
10767 lda $3,foo($2) !tprello
10768 lda $4,foo($29) !tprel'
10769 tls_first_major=2
10770 tls_first_minor=13
10771 tls_as_opt=--fatal-warnings
10772 ;;
14320# Thread-local storage - the check is heavily parametrized.
14321conftest_s=
14322tls_first_major=
14323tls_first_minor=
14324tls_as_opt=
14325case "$target" in
14326 alpha*-*-*)
14327 conftest_s='
14328 .section ".tdata","awT",@progbits
14329foo: .long 25
14330 .text
14331 ldq $27,__tls_get_addr($29) !literal!1
14332 lda $16,foo($29) !tlsgd!1
14333 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14334 ldq $27,__tls_get_addr($29) !literal!2
14335 lda $16,foo($29) !tlsldm!2
14336 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14337 ldq $1,foo($29) !gotdtprel
14338 ldah $2,foo($29) !dtprelhi
14339 lda $3,foo($2) !dtprello
14340 lda $4,foo($29) !dtprel
14341 ldq $1,foo($29) !gottprel
14342 ldah $2,foo($29) !tprelhi
14343 lda $3,foo($2) !tprello
14344 lda $4,foo($29) !tprel'
14345 tls_first_major=2
14346 tls_first_minor=13
14347 tls_as_opt=--fatal-warnings
14348 ;;
14349 frv*-*-*)
14350 conftest_s='
14351 .section ".tdata","awT",@progbits
14352x: .long 25
14353 .text
14354 call #gettlsoff(x)'
14355 tls_first_major=2
14356 tls_first_minor=14
14357 ;;
14358 hppa*-*-linux*)
14359 conftest_s='
14360t1: .reg %r20
14361t2: .reg %r21
14362gp: .reg %r19
14363 .section ".tdata","awT",@progbits
14364foo: .long 25
14365 .text
14366 .align 4
14367 addil LT%foo-$tls_gdidx$,gp
14368 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14369 b __tls_get_addr
14370 nop
14371 addil LT%foo-$tls_ldidx$,gp
14372 b __tls_get_addr
14373 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14374 addil LR%foo-$tls_dtpoff$,%ret0
14375 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14376 mfctl %cr27,%t1
14377 addil LT%foo-$tls_ieoff$,gp
14378 ldw RT%foo-$tls_ieoff$(%r1),%t2
14379 add %t1,%t2,%t3
14380 mfctl %cr27,%t1
14381 addil LR%foo-$tls_leoff$,%t1
14382 ldo RR%foo-$tls_leoff$(%r1),%t2'
14383 tls_first_major=2
14384 tls_first_minor=15
14385 tls_as_opt=--fatal-warnings
14386 ;;
14387 arm*-*-*)
14388 conftest_s='
14389 .section ".tdata","awT",%progbits
14390foo: .long 25
14391 .text
14392.word foo(gottpoff)
14393.word foo(tpoff)
14394.word foo(tlsgd)
14395.word foo(tlsldm)
14396.word foo(tlsldo)'
14397 tls_first_major=2
14398 tls_first_minor=17
14399 ;;
10773 i[34567]86-*-*)
10774 conftest_s='
10775 .section ".tdata","awT",@progbits
10776foo: .long 25
10777 .text
10778 movl %gs:0, %eax
10779 leal foo@TLSGD(,%ebx,1), %eax
10780 leal foo@TLSLDM(%ebx), %eax
10781 leal foo@DTPOFF(%eax), %edx
10782 movl foo@GOTTPOFF(%ebx), %eax
10783 subl foo@GOTTPOFF(%ebx), %eax
10784 addl foo@GOTNTPOFF(%ebx), %eax
10785 movl foo@INDNTPOFF, %eax
10786 movl $foo@TPOFF, %eax
10787 subl $foo@TPOFF, %eax
10788 leal foo@NTPOFF(%ecx), %eax'
10789 tls_first_major=2
10790 tls_first_minor=14
10791 tls_as_opt=--fatal-warnings
10792 ;;
10793 x86_64-*-*)
10794 conftest_s='
10795 .section ".tdata","awT",@progbits
10796foo: .long 25
10797 .text
10798 movq %fs:0, %rax
10799 leaq foo@TLSGD(%rip), %rdi
10800 leaq foo@TLSLD(%rip), %rdi
10801 leaq foo@DTPOFF(%rax), %rdx
10802 movq foo@GOTTPOFF(%rip), %rax
10803 movq $foo@TPOFF, %rax'
10804 tls_first_major=2
10805 tls_first_minor=14
10806 tls_as_opt=--fatal-warnings
10807 ;;
10808 ia64-*-*)
10809 conftest_s='
10810 .section ".tdata","awT",@progbits
10811foo: data8 25
10812 .text
10813 addl r16 = @ltoff(@dtpmod(foo#)), gp
10814 addl r17 = @ltoff(@dtprel(foo#)), gp
10815 addl r18 = @ltoff(@tprel(foo#)), gp
10816 addl r19 = @dtprel(foo#), gp
10817 adds r21 = @dtprel(foo#), r13
10818 movl r23 = @dtprel(foo#)
10819 addl r20 = @tprel(foo#), gp
10820 adds r22 = @tprel(foo#), r13
10821 movl r24 = @tprel(foo#)'
10822 tls_first_major=2
10823 tls_first_minor=13
10824 tls_as_opt=--fatal-warnings
10825 ;;
14400 i[34567]86-*-*)
14401 conftest_s='
14402 .section ".tdata","awT",@progbits
14403foo: .long 25
14404 .text
14405 movl %gs:0, %eax
14406 leal foo@TLSGD(,%ebx,1), %eax
14407 leal foo@TLSLDM(%ebx), %eax
14408 leal foo@DTPOFF(%eax), %edx
14409 movl foo@GOTTPOFF(%ebx), %eax
14410 subl foo@GOTTPOFF(%ebx), %eax
14411 addl foo@GOTNTPOFF(%ebx), %eax
14412 movl foo@INDNTPOFF, %eax
14413 movl $foo@TPOFF, %eax
14414 subl $foo@TPOFF, %eax
14415 leal foo@NTPOFF(%ecx), %eax'
14416 tls_first_major=2
14417 tls_first_minor=14
14418 tls_as_opt=--fatal-warnings
14419 ;;
14420 x86_64-*-*)
14421 conftest_s='
14422 .section ".tdata","awT",@progbits
14423foo: .long 25
14424 .text
14425 movq %fs:0, %rax
14426 leaq foo@TLSGD(%rip), %rdi
14427 leaq foo@TLSLD(%rip), %rdi
14428 leaq foo@DTPOFF(%rax), %rdx
14429 movq foo@GOTTPOFF(%rip), %rax
14430 movq $foo@TPOFF, %rax'
14431 tls_first_major=2
14432 tls_first_minor=14
14433 tls_as_opt=--fatal-warnings
14434 ;;
14435 ia64-*-*)
14436 conftest_s='
14437 .section ".tdata","awT",@progbits
14438foo: data8 25
14439 .text
14440 addl r16 = @ltoff(@dtpmod(foo#)), gp
14441 addl r17 = @ltoff(@dtprel(foo#)), gp
14442 addl r18 = @ltoff(@tprel(foo#)), gp
14443 addl r19 = @dtprel(foo#), gp
14444 adds r21 = @dtprel(foo#), r13
14445 movl r23 = @dtprel(foo#)
14446 addl r20 = @tprel(foo#), gp
14447 adds r22 = @tprel(foo#), r13
14448 movl r24 = @tprel(foo#)'
14449 tls_first_major=2
14450 tls_first_minor=13
14451 tls_as_opt=--fatal-warnings
14452 ;;
14453 mips*-*-*)
14454 conftest_s='
14455 .section .tdata,"awT",@progbits
14456x:
14457 .word 2
14458 .text
14459 addiu $4, $28, %tlsgd(x)
14460 addiu $4, $28, %tlsldm(x)
14461 lui $4, %dtprel_hi(x)
14462 addiu $4, $4, %dtprel_lo(x)
14463 lw $4, %gottprel(x)($28)
14464 lui $4, %tprel_hi(x)
14465 addiu $4, $4, %tprel_lo(x)'
14466 tls_first_major=2
14467 tls_first_minor=16
14468 tls_as_opt='-32 --fatal-warnings'
14469 ;;
10826 powerpc-*-*)
10827 conftest_s='
10828 .section ".tdata","awT",@progbits
10829 .align 2
10830ld0: .space 4
10831ld1: .space 4
10832x1: .space 4
10833x2: .space 4
10834x3: .space 4
10835 .text
10836 addi 3,31,ld0@got@tlsgd
10837 bl __tls_get_addr
10838 addi 3,31,x1@got@tlsld
10839 bl __tls_get_addr
10840 addi 9,3,x1@dtprel
10841 addis 9,3,x2@dtprel@ha
10842 addi 9,9,x2@dtprel@l
10843 lwz 9,x3@got@tprel(31)
10844 add 9,9,x@tls
10845 addi 9,2,x1@tprel
10846 addis 9,2,x2@tprel@ha
10847 addi 9,9,x2@tprel@l'
10848 tls_first_major=2
10849 tls_first_minor=14
10850 tls_as_opt="-a32 --fatal-warnings"
10851 ;;
10852 powerpc64-*-*)
10853 conftest_s='
10854 .section ".tdata","awT",@progbits
10855 .align 3
10856ld0: .space 8
10857ld1: .space 8
10858x1: .space 8
10859x2: .space 8
10860x3: .space 8
10861 .text
10862 addi 3,2,ld0@got@tlsgd
10863 bl .__tls_get_addr
10864 nop
10865 addi 3,2,ld1@toc
10866 bl .__tls_get_addr
10867 nop
10868 addi 3,2,x1@got@tlsld
10869 bl .__tls_get_addr
10870 nop
10871 addi 9,3,x1@dtprel
10872 bl .__tls_get_addr
10873 nop
10874 addis 9,3,x2@dtprel@ha
10875 addi 9,9,x2@dtprel@l
10876 bl .__tls_get_addr
10877 nop
10878 ld 9,x3@got@dtprel(2)
10879 add 9,9,3
10880 bl .__tls_get_addr
10881 nop'
10882 tls_first_major=2
10883 tls_first_minor=14
10884 tls_as_opt="-a64 --fatal-warnings"
10885 ;;
10886 s390-*-*)
10887 conftest_s='
10888 .section ".tdata","awT",@progbits
10889foo: .long 25
10890 .text
10891 .long foo@TLSGD
10892 .long foo@TLSLDM
10893 .long foo@DTPOFF
10894 .long foo@NTPOFF
10895 .long foo@GOTNTPOFF
10896 .long foo@INDNTPOFF
10897 l %r1,foo@GOTNTPOFF(%r12)
10898 l %r1,0(%r1):tls_load:foo
10899 bas %r14,0(%r1,%r13):tls_gdcall:foo
10900 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10901 tls_first_major=2
10902 tls_first_minor=14
10903 tls_as_opt="-m31 --fatal-warnings"
10904 ;;
10905 s390x-*-*)
10906 conftest_s='
10907 .section ".tdata","awT",@progbits
10908foo: .long 25
10909 .text
10910 .quad foo@TLSGD
10911 .quad foo@TLSLDM
10912 .quad foo@DTPOFF
10913 .quad foo@NTPOFF
10914 .quad foo@GOTNTPOFF
10915 lg %r1,foo@GOTNTPOFF(%r12)
10916 larl %r1,foo@INDNTPOFF
10917 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10918 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10919 tls_first_major=2
10920 tls_first_minor=14
10921 tls_as_opt="-m64 -Aesame --fatal-warnings"
10922 ;;
10923 sh-*-* | sh[34]-*-*)
10924 conftest_s='
10925 .section ".tdata","awT",@progbits
10926foo: .long 25
10927 .text
10928 .long foo@TLSGD
10929 .long foo@TLSLDM
10930 .long foo@DTPOFF
10931 .long foo@GOTTPOFF
10932 .long foo@TPOFF'
10933 tls_first_major=2
10934 tls_first_minor=13
10935 tls_as_opt=--fatal-warnings
10936 ;;
10937 sparc*-*-*)
10938 case "$target" in
14470 powerpc-*-*)
14471 conftest_s='
14472 .section ".tdata","awT",@progbits
14473 .align 2
14474ld0: .space 4
14475ld1: .space 4
14476x1: .space 4
14477x2: .space 4
14478x3: .space 4
14479 .text
14480 addi 3,31,ld0@got@tlsgd
14481 bl __tls_get_addr
14482 addi 3,31,x1@got@tlsld
14483 bl __tls_get_addr
14484 addi 9,3,x1@dtprel
14485 addis 9,3,x2@dtprel@ha
14486 addi 9,9,x2@dtprel@l
14487 lwz 9,x3@got@tprel(31)
14488 add 9,9,x@tls
14489 addi 9,2,x1@tprel
14490 addis 9,2,x2@tprel@ha
14491 addi 9,9,x2@tprel@l'
14492 tls_first_major=2
14493 tls_first_minor=14
14494 tls_as_opt="-a32 --fatal-warnings"
14495 ;;
14496 powerpc64-*-*)
14497 conftest_s='
14498 .section ".tdata","awT",@progbits
14499 .align 3
14500ld0: .space 8
14501ld1: .space 8
14502x1: .space 8
14503x2: .space 8
14504x3: .space 8
14505 .text
14506 addi 3,2,ld0@got@tlsgd
14507 bl .__tls_get_addr
14508 nop
14509 addi 3,2,ld1@toc
14510 bl .__tls_get_addr
14511 nop
14512 addi 3,2,x1@got@tlsld
14513 bl .__tls_get_addr
14514 nop
14515 addi 9,3,x1@dtprel
14516 bl .__tls_get_addr
14517 nop
14518 addis 9,3,x2@dtprel@ha
14519 addi 9,9,x2@dtprel@l
14520 bl .__tls_get_addr
14521 nop
14522 ld 9,x3@got@dtprel(2)
14523 add 9,9,3
14524 bl .__tls_get_addr
14525 nop'
14526 tls_first_major=2
14527 tls_first_minor=14
14528 tls_as_opt="-a64 --fatal-warnings"
14529 ;;
14530 s390-*-*)
14531 conftest_s='
14532 .section ".tdata","awT",@progbits
14533foo: .long 25
14534 .text
14535 .long foo@TLSGD
14536 .long foo@TLSLDM
14537 .long foo@DTPOFF
14538 .long foo@NTPOFF
14539 .long foo@GOTNTPOFF
14540 .long foo@INDNTPOFF
14541 l %r1,foo@GOTNTPOFF(%r12)
14542 l %r1,0(%r1):tls_load:foo
14543 bas %r14,0(%r1,%r13):tls_gdcall:foo
14544 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14545 tls_first_major=2
14546 tls_first_minor=14
14547 tls_as_opt="-m31 --fatal-warnings"
14548 ;;
14549 s390x-*-*)
14550 conftest_s='
14551 .section ".tdata","awT",@progbits
14552foo: .long 25
14553 .text
14554 .quad foo@TLSGD
14555 .quad foo@TLSLDM
14556 .quad foo@DTPOFF
14557 .quad foo@NTPOFF
14558 .quad foo@GOTNTPOFF
14559 lg %r1,foo@GOTNTPOFF(%r12)
14560 larl %r1,foo@INDNTPOFF
14561 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14562 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14563 tls_first_major=2
14564 tls_first_minor=14
14565 tls_as_opt="-m64 -Aesame --fatal-warnings"
14566 ;;
14567 sh-*-* | sh[34]-*-*)
14568 conftest_s='
14569 .section ".tdata","awT",@progbits
14570foo: .long 25
14571 .text
14572 .long foo@TLSGD
14573 .long foo@TLSLDM
14574 .long foo@DTPOFF
14575 .long foo@GOTTPOFF
14576 .long foo@TPOFF'
14577 tls_first_major=2
14578 tls_first_minor=13
14579 tls_as_opt=--fatal-warnings
14580 ;;
14581 sparc*-*-*)
14582 case "$target" in
14583 sparc*-sun-solaris2.[56789]*)
14584 # TLS was introduced in the Solaris 9 4/04 release but
14585 # we do not enable it by default on Solaris 9 either.
14586 if test "x$enable_tls" = xyes ; then
14587 on_solaris=yes
14588 else
14589 enable_tls=no;
14590 fi
14591 ;;
10939 sparc*-sun-solaris2.*)
10940 on_solaris=yes
10941 ;;
10942 *)
10943 on_solaris=no
10944 ;;
10945 esac
10946 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10947 conftest_s='
10948 .section ".tdata",#alloc,#write,#tls
10949foo: .long 25
10950 .text
10951 sethi %tgd_hi22(foo), %o0
10952 add %o0, %tgd_lo10(foo), %o1
10953 add %l7, %o1, %o0, %tgd_add(foo)
10954 call __tls_get_addr, %tgd_call(foo)
10955 sethi %tldm_hi22(foo), %l1
10956 add %l1, %tldm_lo10(foo), %l2
10957 add %l7, %l2, %o0, %tldm_add(foo)
10958 call __tls_get_addr, %tldm_call(foo)
10959 sethi %tldo_hix22(foo), %l3
10960 xor %l3, %tldo_lox10(foo), %l4
10961 add %o0, %l4, %l5, %tldo_add(foo)
10962 sethi %tie_hi22(foo), %o3
10963 add %o3, %tie_lo10(foo), %o3
10964 ld [%l7 + %o3], %o2, %tie_ld(foo)
10965 add %g7, %o2, %o4, %tie_add(foo)
10966 sethi %tle_hix22(foo), %l1
10967 xor %l1, %tle_lox10(foo), %o5
10968 ld [%g7 + %o5], %o1'
10969 tls_first_major=0
10970 tls_first_minor=0
10971 else
10972 conftest_s='
10973 .section ".tdata","awT",@progbits
10974foo: .long 25
10975 .text
10976 sethi %tgd_hi22(foo), %o0
10977 add %o0, %tgd_lo10(foo), %o1
10978 add %l7, %o1, %o0, %tgd_add(foo)
10979 call __tls_get_addr, %tgd_call(foo)
10980 sethi %tldm_hi22(foo), %l1
10981 add %l1, %tldm_lo10(foo), %l2
10982 add %l7, %l2, %o0, %tldm_add(foo)
10983 call __tls_get_addr, %tldm_call(foo)
10984 sethi %tldo_hix22(foo), %l3
10985 xor %l3, %tldo_lox10(foo), %l4
10986 add %o0, %l4, %l5, %tldo_add(foo)
10987 sethi %tie_hi22(foo), %o3
10988 add %o3, %tie_lo10(foo), %o3
10989 ld [%l7 + %o3], %o2, %tie_ld(foo)
10990 add %g7, %o2, %o4, %tie_add(foo)
10991 sethi %tle_hix22(foo), %l1
10992 xor %l1, %tle_lox10(foo), %o5
10993 ld [%g7 + %o5], %o1'
10994 tls_first_major=2
10995 tls_first_minor=14
10996 tls_as_opt="-32 --fatal-warnings"
10997 fi
10998 ;;
10999esac
14592 sparc*-sun-solaris2.*)
14593 on_solaris=yes
14594 ;;
14595 *)
14596 on_solaris=no
14597 ;;
14598 esac
14599 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14600 conftest_s='
14601 .section ".tdata",#alloc,#write,#tls
14602foo: .long 25
14603 .text
14604 sethi %tgd_hi22(foo), %o0
14605 add %o0, %tgd_lo10(foo), %o1
14606 add %l7, %o1, %o0, %tgd_add(foo)
14607 call __tls_get_addr, %tgd_call(foo)
14608 sethi %tldm_hi22(foo), %l1
14609 add %l1, %tldm_lo10(foo), %l2
14610 add %l7, %l2, %o0, %tldm_add(foo)
14611 call __tls_get_addr, %tldm_call(foo)
14612 sethi %tldo_hix22(foo), %l3
14613 xor %l3, %tldo_lox10(foo), %l4
14614 add %o0, %l4, %l5, %tldo_add(foo)
14615 sethi %tie_hi22(foo), %o3
14616 add %o3, %tie_lo10(foo), %o3
14617 ld [%l7 + %o3], %o2, %tie_ld(foo)
14618 add %g7, %o2, %o4, %tie_add(foo)
14619 sethi %tle_hix22(foo), %l1
14620 xor %l1, %tle_lox10(foo), %o5
14621 ld [%g7 + %o5], %o1'
14622 tls_first_major=0
14623 tls_first_minor=0
14624 else
14625 conftest_s='
14626 .section ".tdata","awT",@progbits
14627foo: .long 25
14628 .text
14629 sethi %tgd_hi22(foo), %o0
14630 add %o0, %tgd_lo10(foo), %o1
14631 add %l7, %o1, %o0, %tgd_add(foo)
14632 call __tls_get_addr, %tgd_call(foo)
14633 sethi %tldm_hi22(foo), %l1
14634 add %l1, %tldm_lo10(foo), %l2
14635 add %l7, %l2, %o0, %tldm_add(foo)
14636 call __tls_get_addr, %tldm_call(foo)
14637 sethi %tldo_hix22(foo), %l3
14638 xor %l3, %tldo_lox10(foo), %l4
14639 add %o0, %l4, %l5, %tldo_add(foo)
14640 sethi %tie_hi22(foo), %o3
14641 add %o3, %tie_lo10(foo), %o3
14642 ld [%l7 + %o3], %o2, %tie_ld(foo)
14643 add %g7, %o2, %o4, %tie_add(foo)
14644 sethi %tle_hix22(foo), %l1
14645 xor %l1, %tle_lox10(foo), %o5
14646 ld [%g7 + %o5], %o1'
14647 tls_first_major=2
14648 tls_first_minor=14
14649 tls_as_opt="-32 --fatal-warnings"
14650 fi
14651 ;;
14652esac
11000if test -z "$tls_first_major"; then
14653set_have_as_tls=no
14654if test "x$enable_tls" = xno ; then
14655 : # TLS explicitly disabled.
14656elif test "x$enable_tls" = xyes ; then
14657 set_have_as_tls=yes # TLS explicitly enabled.
14658elif test -z "$tls_first_major"; then
11001 : # If we don't have a check, assume no support.
11002else
11003 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11004echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11005if test "${gcc_cv_as_tls+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 gcc_cv_as_tls=no
11009 if test $in_tree_gas = yes; then
11010 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11011 then gcc_cv_as_tls=yes
11012fi
11013 elif test x$gcc_cv_as != x; then
11014 echo "$conftest_s" > conftest.s
11015 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }
11021 then
11022 gcc_cv_as_tls=yes
11023 else
11024 echo "configure: failed program was" >&5
11025 cat conftest.s >&5
11026 fi
11027 rm -f conftest.o conftest.s
11028 fi
11029fi
11030echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11031echo "${ECHO_T}$gcc_cv_as_tls" >&6
11032if test $gcc_cv_as_tls = yes; then
14659 : # If we don't have a check, assume no support.
14660else
14661 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14662echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14663if test "${gcc_cv_as_tls+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666 gcc_cv_as_tls=no
14667 if test $in_tree_gas = yes; then
14668 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14669 then gcc_cv_as_tls=yes
14670fi
14671 elif test x$gcc_cv_as != x; then
14672 echo "$conftest_s" > conftest.s
14673 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }
14679 then
14680 gcc_cv_as_tls=yes
14681 else
14682 echo "configure: failed program was" >&5
14683 cat conftest.s >&5
14684 fi
14685 rm -f conftest.o conftest.s
14686 fi
14687fi
14688echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14689echo "${ECHO_T}$gcc_cv_as_tls" >&6
14690if test $gcc_cv_as_tls = yes; then
14691 set_have_as_tls=yes
14692fi
14693fi
14694if test $set_have_as_tls = yes ; then
11033
11034cat >>confdefs.h <<\_ACEOF
11035#define HAVE_AS_TLS 1
11036_ACEOF
11037
11038fi
14695
14696cat >>confdefs.h <<\_ACEOF
14697#define HAVE_AS_TLS 1
14698_ACEOF
14699
14700fi
11039fi
11040
11041# Target-specific assembler checks.
11042
14701
14702# Target-specific assembler checks.
14703
14704echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14705echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14706gcc_cv_ld_static_dynamic=no
14707if test $in_tree_ld = yes ; then
14708 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14709 gcc_cv_ld_static_dynamic=yes
14710 fi
14711elif test x$gcc_cv_ld != x; then
14712 # Check if linker supports -Bstatic/-Bdynamic option
14713 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14714 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14715 gcc_cv_ld_static_dynamic=yes
14716 fi
14717fi
14718if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14719
14720cat >>confdefs.h <<\_ACEOF
14721#define HAVE_LD_STATIC_DYNAMIC 1
14722_ACEOF
14723
14724fi
14725echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14726echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14727
14728if test x"$demangler_in_ld" = xyes; then
14729 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14730echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14731 gcc_cv_ld_demangle=no
14732 if test $in_tree_ld = yes; then
14733 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 \
14734 gcc_cv_ld_demangle=yes
14735 fi
14736 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14737 # Check if the GNU linker supports --demangle option
14738 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14739 gcc_cv_ld_demangle=yes
14740 fi
14741 fi
14742 if test x"$gcc_cv_ld_demangle" = xyes; then
14743
14744cat >>confdefs.h <<\_ACEOF
14745#define HAVE_LD_DEMANGLE 1
14746_ACEOF
14747
14748 fi
14749 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14750echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14751fi
14752
11043case "$target" in
11044 # All TARGET_ABI_OSF targets.
11045 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11046 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11047echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11048if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050else
11051 gcc_cv_as_alpha_explicit_relocs=no
11052 if test $in_tree_gas = yes; then
11053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11054 then gcc_cv_as_alpha_explicit_relocs=yes
11055fi
11056 elif test x$gcc_cv_as != x; then
11057 echo ' .set nomacro
11058 .text
11059 extbl $3, $2, $3 !lituse_bytoff!1
11060 ldq $2, a($29) !literal!1
11061 ldq $4, b($29) !literal!2
11062 ldq_u $3, 0($2) !lituse_base!1
11063 ldq $27, f($29) !literal!5
11064 jsr $26, ($27), f !lituse_jsr!5
11065 ldah $29, 0($26) !gpdisp!3
11066 lda $0, c($29) !gprel
11067 ldah $1, d($29) !gprelhigh
11068 lda $1, d($1) !gprellow
11069 lda $29, 0($29) !gpdisp!3' > conftest.s
11070 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }
11076 then
11077 gcc_cv_as_alpha_explicit_relocs=yes
11078 else
11079 echo "configure: failed program was" >&5
11080 cat conftest.s >&5
11081 fi
11082 rm -f conftest.o conftest.s
11083 fi
11084fi
11085echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11086echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11087if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11088
11089cat >>confdefs.h <<\_ACEOF
11090#define HAVE_AS_EXPLICIT_RELOCS 1
11091_ACEOF
11092
11093fi
11094 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
11095echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
11096if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099 gcc_cv_as_alpha_jsrdirect_relocs=no
11100 if test $in_tree_gas = yes; then
11101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
11102 then gcc_cv_as_alpha_jsrdirect_relocs=yes
11103fi
11104 elif test x$gcc_cv_as != x; then
11105 echo ' .set nomacro
11106 .text
11107 ldq $27, a($29) !literal!1
11108 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
11109 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }
11115 then
11116 gcc_cv_as_alpha_jsrdirect_relocs=yes
11117 else
11118 echo "configure: failed program was" >&5
11119 cat conftest.s >&5
11120 fi
11121 rm -f conftest.o conftest.s
11122 fi
11123fi
11124echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
11125echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
11126if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
11127
11128cat >>confdefs.h <<\_ACEOF
11129#define HAVE_AS_JSRDIRECT_RELOCS 1
11130_ACEOF
11131
11132fi
11133 ;;
11134
11135 cris-*-*)
11136 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11137echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11138if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140else
11141 gcc_cv_as_cris_no_mul_bug=no
11142 if test $in_tree_gas = yes; then
11143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11144 then gcc_cv_as_cris_no_mul_bug=yes
11145fi
11146 elif test x$gcc_cv_as != x; then
11147 echo '.text' > conftest.s
11148 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }
11154 then
11155 gcc_cv_as_cris_no_mul_bug=yes
11156 else
11157 echo "configure: failed program was" >&5
11158 cat conftest.s >&5
11159 fi
11160 rm -f conftest.o conftest.s
11161 fi
11162fi
11163echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11164echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11165if test $gcc_cv_as_cris_no_mul_bug = yes; then
11166
11167cat >>confdefs.h <<\_ACEOF
11168#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11169_ACEOF
11170
11171fi
11172 ;;
11173
11174 sparc*-*-*)
11175 echo "$as_me:$LINENO: checking assembler for .register" >&5
11176echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11177if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179else
11180 gcc_cv_as_sparc_register_op=no
11181 if test x$gcc_cv_as != x; then
11182 echo '.register %g2, #scratch' > conftest.s
11183 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }
11189 then
11190 gcc_cv_as_sparc_register_op=yes
11191 else
11192 echo "configure: failed program was" >&5
11193 cat conftest.s >&5
11194 fi
11195 rm -f conftest.o conftest.s
11196 fi
11197fi
11198echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11199echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11200if test $gcc_cv_as_sparc_register_op = yes; then
11201
11202cat >>confdefs.h <<\_ACEOF
11203#define HAVE_AS_REGISTER_PSEUDO_OP 1
11204_ACEOF
11205
11206fi
11207
11208 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11209echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11210if test "${gcc_cv_as_sparc_relax+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 gcc_cv_as_sparc_relax=no
11214 if test x$gcc_cv_as != x; then
11215 echo '.text' > conftest.s
11216 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }
11222 then
11223 gcc_cv_as_sparc_relax=yes
11224 else
11225 echo "configure: failed program was" >&5
11226 cat conftest.s >&5
11227 fi
11228 rm -f conftest.o conftest.s
11229 fi
11230fi
11231echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11232echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11233if test $gcc_cv_as_sparc_relax = yes; then
11234
11235cat >>confdefs.h <<\_ACEOF
11236#define HAVE_AS_RELAX_OPTION 1
11237_ACEOF
11238
11239fi
11240
11241 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11242echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11243if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245else
11246 gcc_cv_as_sparc_ua_pcrel=no
11247 if test x$gcc_cv_as != x; then
11248 echo '.text
11249foo:
11250 nop
11251.data
11252.align 4
11253.byte 0
11254.uaword %r_disp32(foo)' > conftest.s
11255 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }
11261 then
11262 if test x$gcc_cv_ld != x \
11263 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11264 gcc_cv_as_sparc_ua_pcrel=yes
11265 fi
11266 rm -f conftest
11267 else
11268 echo "configure: failed program was" >&5
11269 cat conftest.s >&5
11270 fi
11271 rm -f conftest.o conftest.s
11272 fi
11273fi
11274echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11275echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11276if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11277
11278cat >>confdefs.h <<\_ACEOF
11279#define HAVE_AS_SPARC_UA_PCREL 1
11280_ACEOF
11281
11282
11283 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11284echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11285if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287else
11288 gcc_cv_as_sparc_ua_pcrel_hidden=no
11289 if test x$gcc_cv_as != x; then
11290 echo '.data
11291.align 4
11292.byte 0x31
11293.uaword %r_disp32(foo)
11294.byte 0x32, 0x33, 0x34
11295.global foo
11296.hidden foo
11297foo:
11298.skip 4' > conftest.s
11299 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }
11305 then
11306 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11307 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11308 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11309 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11310 if $gcc_cv_objdump -R conftest 2> /dev/null \
11311 | grep 'DISP32' > /dev/null 2>&1; then
11312 :
11313 else
11314 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11315 fi
11316 fi
11317 rm -f conftest
11318 else
11319 echo "configure: failed program was" >&5
11320 cat conftest.s >&5
11321 fi
11322 rm -f conftest.o conftest.s
11323 fi
11324fi
11325echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11326echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11327if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11328
11329cat >>confdefs.h <<\_ACEOF
11330#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11331_ACEOF
11332
11333fi
11334
11335fi # unaligned pcrel relocs
11336
11337 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11338echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11339if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341else
11342 gcc_cv_as_sparc_offsetable_lo10=no
11343 if test x$gcc_cv_as != x; then
11344 echo '.text
11345 or %g1, %lo(ab) + 12, %g1
11346 or %g1, %lo(ab + 12), %g1' > conftest.s
11347 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }
11353 then
11354 if test x$gcc_cv_objdump != x \
11355 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11356 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11357 gcc_cv_as_sparc_offsetable_lo10=yes
11358 fi
11359 else
11360 echo "configure: failed program was" >&5
11361 cat conftest.s >&5
11362 fi
11363 rm -f conftest.o conftest.s
11364 fi
11365fi
11366echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11367echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11368if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11369
11370cat >>confdefs.h <<\_ACEOF
11371#define HAVE_AS_OFFSETABLE_LO10 1
11372_ACEOF
11373
11374fi
11375 ;;
11376
11377 i[34567]86-*-* | x86_64-*-*)
14753case "$target" in
14754 # All TARGET_ABI_OSF targets.
14755 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14756 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14757echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14758if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760else
14761 gcc_cv_as_alpha_explicit_relocs=no
14762 if test $in_tree_gas = yes; then
14763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14764 then gcc_cv_as_alpha_explicit_relocs=yes
14765fi
14766 elif test x$gcc_cv_as != x; then
14767 echo ' .set nomacro
14768 .text
14769 extbl $3, $2, $3 !lituse_bytoff!1
14770 ldq $2, a($29) !literal!1
14771 ldq $4, b($29) !literal!2
14772 ldq_u $3, 0($2) !lituse_base!1
14773 ldq $27, f($29) !literal!5
14774 jsr $26, ($27), f !lituse_jsr!5
14775 ldah $29, 0($26) !gpdisp!3
14776 lda $0, c($29) !gprel
14777 ldah $1, d($29) !gprelhigh
14778 lda $1, d($1) !gprellow
14779 lda $29, 0($29) !gpdisp!3' > conftest.s
14780 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }
14786 then
14787 gcc_cv_as_alpha_explicit_relocs=yes
14788 else
14789 echo "configure: failed program was" >&5
14790 cat conftest.s >&5
14791 fi
14792 rm -f conftest.o conftest.s
14793 fi
14794fi
14795echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14796echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14797if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14798
14799cat >>confdefs.h <<\_ACEOF
14800#define HAVE_AS_EXPLICIT_RELOCS 1
14801_ACEOF
14802
14803fi
14804 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14805echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14806if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808else
14809 gcc_cv_as_alpha_jsrdirect_relocs=no
14810 if test $in_tree_gas = yes; then
14811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14812 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14813fi
14814 elif test x$gcc_cv_as != x; then
14815 echo ' .set nomacro
14816 .text
14817 ldq $27, a($29) !literal!1
14818 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14819 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }
14825 then
14826 gcc_cv_as_alpha_jsrdirect_relocs=yes
14827 else
14828 echo "configure: failed program was" >&5
14829 cat conftest.s >&5
14830 fi
14831 rm -f conftest.o conftest.s
14832 fi
14833fi
14834echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14835echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14836if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14837
14838cat >>confdefs.h <<\_ACEOF
14839#define HAVE_AS_JSRDIRECT_RELOCS 1
14840_ACEOF
14841
14842fi
14843 ;;
14844
14845 cris-*-*)
14846 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14847echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14848if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850else
14851 gcc_cv_as_cris_no_mul_bug=no
14852 if test $in_tree_gas = yes; then
14853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14854 then gcc_cv_as_cris_no_mul_bug=yes
14855fi
14856 elif test x$gcc_cv_as != x; then
14857 echo '.text' > conftest.s
14858 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }
14864 then
14865 gcc_cv_as_cris_no_mul_bug=yes
14866 else
14867 echo "configure: failed program was" >&5
14868 cat conftest.s >&5
14869 fi
14870 rm -f conftest.o conftest.s
14871 fi
14872fi
14873echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14874echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14875if test $gcc_cv_as_cris_no_mul_bug = yes; then
14876
14877cat >>confdefs.h <<\_ACEOF
14878#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14879_ACEOF
14880
14881fi
14882 ;;
14883
14884 sparc*-*-*)
14885 echo "$as_me:$LINENO: checking assembler for .register" >&5
14886echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14887if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889else
14890 gcc_cv_as_sparc_register_op=no
14891 if test x$gcc_cv_as != x; then
14892 echo '.register %g2, #scratch' > conftest.s
14893 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }
14899 then
14900 gcc_cv_as_sparc_register_op=yes
14901 else
14902 echo "configure: failed program was" >&5
14903 cat conftest.s >&5
14904 fi
14905 rm -f conftest.o conftest.s
14906 fi
14907fi
14908echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14909echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14910if test $gcc_cv_as_sparc_register_op = yes; then
14911
14912cat >>confdefs.h <<\_ACEOF
14913#define HAVE_AS_REGISTER_PSEUDO_OP 1
14914_ACEOF
14915
14916fi
14917
14918 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14919echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14920if test "${gcc_cv_as_sparc_relax+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else
14923 gcc_cv_as_sparc_relax=no
14924 if test x$gcc_cv_as != x; then
14925 echo '.text' > conftest.s
14926 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }
14932 then
14933 gcc_cv_as_sparc_relax=yes
14934 else
14935 echo "configure: failed program was" >&5
14936 cat conftest.s >&5
14937 fi
14938 rm -f conftest.o conftest.s
14939 fi
14940fi
14941echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14942echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14943if test $gcc_cv_as_sparc_relax = yes; then
14944
14945cat >>confdefs.h <<\_ACEOF
14946#define HAVE_AS_RELAX_OPTION 1
14947_ACEOF
14948
14949fi
14950
14951 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14952echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14953if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955else
14956 gcc_cv_as_sparc_ua_pcrel=no
14957 if test x$gcc_cv_as != x; then
14958 echo '.text
14959foo:
14960 nop
14961.data
14962.align 4
14963.byte 0
14964.uaword %r_disp32(foo)' > conftest.s
14965 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }
14971 then
14972 if test x$gcc_cv_ld != x \
14973 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14974 gcc_cv_as_sparc_ua_pcrel=yes
14975 fi
14976 rm -f conftest
14977 else
14978 echo "configure: failed program was" >&5
14979 cat conftest.s >&5
14980 fi
14981 rm -f conftest.o conftest.s
14982 fi
14983fi
14984echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14985echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14986if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14987
14988cat >>confdefs.h <<\_ACEOF
14989#define HAVE_AS_SPARC_UA_PCREL 1
14990_ACEOF
14991
14992
14993 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14994echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14995if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997else
14998 gcc_cv_as_sparc_ua_pcrel_hidden=no
14999 if test x$gcc_cv_as != x; then
15000 echo '.data
15001.align 4
15002.byte 0x31
15003.uaword %r_disp32(foo)
15004.byte 0x32, 0x33, 0x34
15005.global foo
15006.hidden foo
15007foo:
15008.skip 4' > conftest.s
15009 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }
15015 then
15016 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15017 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15018 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15019 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15020 if $gcc_cv_objdump -R conftest 2> /dev/null \
15021 | grep 'DISP32' > /dev/null 2>&1; then
15022 :
15023 else
15024 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15025 fi
15026 fi
15027 rm -f conftest
15028 else
15029 echo "configure: failed program was" >&5
15030 cat conftest.s >&5
15031 fi
15032 rm -f conftest.o conftest.s
15033 fi
15034fi
15035echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15036echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15037if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15038
15039cat >>confdefs.h <<\_ACEOF
15040#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15041_ACEOF
15042
15043fi
15044
15045fi # unaligned pcrel relocs
15046
15047 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15048echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15049if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15051else
15052 gcc_cv_as_sparc_offsetable_lo10=no
15053 if test x$gcc_cv_as != x; then
15054 echo '.text
15055 or %g1, %lo(ab) + 12, %g1
15056 or %g1, %lo(ab + 12), %g1' > conftest.s
15057 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }
15063 then
15064 if test x$gcc_cv_objdump != x \
15065 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15066 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15067 gcc_cv_as_sparc_offsetable_lo10=yes
15068 fi
15069 else
15070 echo "configure: failed program was" >&5
15071 cat conftest.s >&5
15072 fi
15073 rm -f conftest.o conftest.s
15074 fi
15075fi
15076echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15077echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15078if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15079
15080cat >>confdefs.h <<\_ACEOF
15081#define HAVE_AS_OFFSETABLE_LO10 1
15082_ACEOF
15083
15084fi
15085 ;;
15086
15087 i[34567]86-*-* | x86_64-*-*)
15088 case $target_os in
15089 cygwin* | pe | mingw32*)
15090 # Used for DWARF 2 in PE
15091 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15092echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15093if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else
15096 gcc_cv_as_ix86_pe_secrel32=no
15097 if test $in_tree_gas = yes; then
15098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15099 then gcc_cv_as_ix86_pe_secrel32=yes
15100fi
15101 elif test x$gcc_cv_as != x; then
15102 echo '.text
15103foo: nop
15104.data
15105 .secrel32 foo' > conftest.s
15106 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }
15112 then
15113 if test x$gcc_cv_ld != x \
15114 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15115 gcc_cv_as_ix86_pe_secrel32=yes
15116 fi
15117 rm -f conftest
15118 else
15119 echo "configure: failed program was" >&5
15120 cat conftest.s >&5
15121 fi
15122 rm -f conftest.o conftest.s
15123 fi
15124fi
15125echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15126echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15127if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15128
15129cat >>confdefs.h <<\_ACEOF
15130#define HAVE_GAS_PE_SECREL32_RELOC 1
15131_ACEOF
15132
15133fi
15134 ;;
15135 esac
15136
11378 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11379echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11380if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382else
11383 gcc_cv_as_ix86_filds_fists=no
11384 if test $in_tree_gas = yes; then
11385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11386 then gcc_cv_as_ix86_filds_fists=yes
11387fi
11388 elif test x$gcc_cv_as != x; then
11389 echo 'filds mem; fists mem' > conftest.s
11390 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }
11396 then
11397 gcc_cv_as_ix86_filds_fists=yes
11398 else
11399 echo "configure: failed program was" >&5
11400 cat conftest.s >&5
11401 fi
11402 rm -f conftest.o conftest.s
11403 fi
11404fi
11405echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11406echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11407if test $gcc_cv_as_ix86_filds_fists = yes; then
11408
11409cat >>confdefs.h <<\_ACEOF
11410#define HAVE_GAS_FILDS_FISTS 1
11411_ACEOF
11412
11413fi
11414
11415 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11416echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11417if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420 gcc_cv_as_ix86_cmov_sun_syntax=no
11421 if test x$gcc_cv_as != x; then
11422 echo 'cmovl.l %edx, %eax' > conftest.s
11423 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }
11429 then
11430 gcc_cv_as_ix86_cmov_sun_syntax=yes
11431 else
11432 echo "configure: failed program was" >&5
11433 cat conftest.s >&5
11434 fi
11435 rm -f conftest.o conftest.s
11436 fi
11437fi
11438echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11439echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11440if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11441
11442cat >>confdefs.h <<\_ACEOF
11443#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11444_ACEOF
11445
11446fi
11447
15137 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15138echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15139if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141else
15142 gcc_cv_as_ix86_filds_fists=no
15143 if test $in_tree_gas = yes; then
15144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15145 then gcc_cv_as_ix86_filds_fists=yes
15146fi
15147 elif test x$gcc_cv_as != x; then
15148 echo 'filds mem; fists mem' > conftest.s
15149 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }
15155 then
15156 gcc_cv_as_ix86_filds_fists=yes
15157 else
15158 echo "configure: failed program was" >&5
15159 cat conftest.s >&5
15160 fi
15161 rm -f conftest.o conftest.s
15162 fi
15163fi
15164echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15165echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15166if test $gcc_cv_as_ix86_filds_fists = yes; then
15167
15168cat >>confdefs.h <<\_ACEOF
15169#define HAVE_GAS_FILDS_FISTS 1
15170_ACEOF
15171
15172fi
15173
15174 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15175echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15176if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178else
15179 gcc_cv_as_ix86_cmov_sun_syntax=no
15180 if test x$gcc_cv_as != x; then
15181 echo 'cmovl.l %edx, %eax' > conftest.s
15182 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }
15188 then
15189 gcc_cv_as_ix86_cmov_sun_syntax=yes
15190 else
15191 echo "configure: failed program was" >&5
15192 cat conftest.s >&5
15193 fi
15194 rm -f conftest.o conftest.s
15195 fi
15196fi
15197echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15198echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15199if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15200
15201cat >>confdefs.h <<\_ACEOF
15202#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15203_ACEOF
15204
15205fi
15206
15207 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15208echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15209if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15211else
15212 gcc_cv_as_ix86_ffreep=no
15213 if test x$gcc_cv_as != x; then
15214 echo 'ffreep %st(1)' > conftest.s
15215 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }
15221 then
15222 gcc_cv_as_ix86_ffreep=yes
15223 else
15224 echo "configure: failed program was" >&5
15225 cat conftest.s >&5
15226 fi
15227 rm -f conftest.o conftest.s
15228 fi
15229fi
15230echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15231echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15232if test $gcc_cv_as_ix86_ffreep = yes; then
15233
15234cat >>confdefs.h <<\_ACEOF
15235#define HAVE_AS_IX86_FFREEP 1
15236_ACEOF
15237
15238fi
15239
11448 # This one is used unconditionally by i386.[ch]; it is to be defined
11449 # to 1 if the feature is present, 0 otherwise.
11450 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11451echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11452if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455 gcc_cv_as_ix86_gotoff_in_data=no
11456 if test $in_tree_gas = yes; then
11457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11458 then gcc_cv_as_ix86_gotoff_in_data=yes
11459fi
11460 elif test x$gcc_cv_as != x; then
11461 echo ' .text
11462.L0:
11463 nop
11464 .data
11465 .long .L0@GOTOFF' > conftest.s
11466 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }
11472 then
11473 gcc_cv_as_ix86_gotoff_in_data=yes
11474 else
11475 echo "configure: failed program was" >&5
11476 cat conftest.s >&5
11477 fi
11478 rm -f conftest.o conftest.s
11479 fi
11480fi
11481echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11482echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11483
11484
11485cat >>confdefs.h <<_ACEOF
11486#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11487_ACEOF
11488
11489 ;;
11490
11491 ia64*-*-*)
11492 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11493echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11494if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11498 if test $in_tree_gas = yes; then
11499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11500 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11501fi
11502 elif test x$gcc_cv_as != x; then
11503 echo ' .text
11504 addl r15 = @ltoffx(x#), gp
11505 ;;
11506 ld8.mov r16 = [r15], x#' > conftest.s
11507 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }
11513 then
11514 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11515 else
11516 echo "configure: failed program was" >&5
11517 cat conftest.s >&5
11518 fi
11519 rm -f conftest.o conftest.s
11520 fi
11521fi
11522echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11523echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11524if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11525
11526cat >>confdefs.h <<\_ACEOF
11527#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11528_ACEOF
11529
11530fi
11531
11532 ;;
11533
11534 powerpc*-*-*)
11535 case $target in
15240 # This one is used unconditionally by i386.[ch]; it is to be defined
15241 # to 1 if the feature is present, 0 otherwise.
15242 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15243echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15244if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246else
15247 gcc_cv_as_ix86_gotoff_in_data=no
15248 if test $in_tree_gas = yes; then
15249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15250 then gcc_cv_as_ix86_gotoff_in_data=yes
15251fi
15252 elif test x$gcc_cv_as != x; then
15253 echo ' .text
15254.L0:
15255 nop
15256 .data
15257 .long .L0@GOTOFF' > conftest.s
15258 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }
15264 then
15265 gcc_cv_as_ix86_gotoff_in_data=yes
15266 else
15267 echo "configure: failed program was" >&5
15268 cat conftest.s >&5
15269 fi
15270 rm -f conftest.o conftest.s
15271 fi
15272fi
15273echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15274echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15275
15276
15277cat >>confdefs.h <<_ACEOF
15278#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15279_ACEOF
15280
15281 ;;
15282
15283 ia64*-*-*)
15284 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15285echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15286if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288else
15289 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15290 if test $in_tree_gas = yes; then
15291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15292 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15293fi
15294 elif test x$gcc_cv_as != x; then
15295 echo ' .text
15296 addl r15 = @ltoffx(x#), gp
15297 ;;
15298 ld8.mov r16 = [r15], x#' > conftest.s
15299 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; }
15305 then
15306 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15307 else
15308 echo "configure: failed program was" >&5
15309 cat conftest.s >&5
15310 fi
15311 rm -f conftest.o conftest.s
15312 fi
15313fi
15314echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15315echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15316if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15317
15318cat >>confdefs.h <<\_ACEOF
15319#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15320_ACEOF
15321
15322fi
15323
15324 ;;
15325
15326 powerpc*-*-*)
15327 case $target in
11536 *-*-aix*) conftest_s=' .csect .text[PR]
15328 *-*-aix*) conftest_s=' .machine "pwr5"
15329 .csect .text[PR]
11537 mfcr 3,128';;
15330 mfcr 3,128';;
11538 *-*-darwin*) conftest_s=' .text
15331 *-*-darwin*)
15332 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15333echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15334if test "${gcc_cv_as_machine_directive+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else
15337 gcc_cv_as_machine_directive=no
15338 if test x$gcc_cv_as != x; then
15339 echo ' .machine ppc7400' > conftest.s
15340 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }
15346 then
15347 gcc_cv_as_machine_directive=yes
15348 else
15349 echo "configure: failed program was" >&5
15350 cat conftest.s >&5
15351 fi
15352 rm -f conftest.o conftest.s
15353 fi
15354fi
15355echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15356echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15357
15358 if test x$gcc_cv_as_machine_directive != xyes; then
15359 echo "*** This target requires an assembler supporting \".machine\"" >&2
15360 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15361 test x$build = x$target && exit 1
15362 fi
15363 conftest_s=' .text
11539 mfcr r3,128';;
15364 mfcr r3,128';;
11540 *) conftest_s=' .text
15365 *) conftest_s=' .machine power4
15366 .text
11541 mfcr 3,128';;
11542 esac
11543
11544 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11545echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11546if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548else
11549 gcc_cv_as_powerpc_mfcrf=no
11550 if test $in_tree_gas = yes; then
11551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11552 then gcc_cv_as_powerpc_mfcrf=yes
11553fi
11554 elif test x$gcc_cv_as != x; then
11555 echo "$conftest_s" > conftest.s
11556 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }
11562 then
11563 gcc_cv_as_powerpc_mfcrf=yes
11564 else
11565 echo "configure: failed program was" >&5
11566 cat conftest.s >&5
11567 fi
11568 rm -f conftest.o conftest.s
11569 fi
11570fi
11571echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11572echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11573if test $gcc_cv_as_powerpc_mfcrf = yes; then
11574
11575cat >>confdefs.h <<\_ACEOF
11576#define HAVE_AS_MFCRF 1
11577_ACEOF
11578
11579fi
15367 mfcr 3,128';;
15368 esac
15369
15370 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15371echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15372if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374else
15375 gcc_cv_as_powerpc_mfcrf=no
15376 if test $in_tree_gas = yes; then
15377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15378 then gcc_cv_as_powerpc_mfcrf=yes
15379fi
15380 elif test x$gcc_cv_as != x; then
15381 echo "$conftest_s" > conftest.s
15382 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }
15388 then
15389 gcc_cv_as_powerpc_mfcrf=yes
15390 else
15391 echo "configure: failed program was" >&5
15392 cat conftest.s >&5
15393 fi
15394 rm -f conftest.o conftest.s
15395 fi
15396fi
15397echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15398echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15399if test $gcc_cv_as_powerpc_mfcrf = yes; then
15400
15401cat >>confdefs.h <<\_ACEOF
15402#define HAVE_AS_MFCRF 1
15403_ACEOF
15404
15405fi
15406
15407 case $target in
15408 *-*-aix*) conftest_s=' .machine "pwr5"
15409 .csect .text[PR]
15410 popcntb 3,3';;
15411 *) conftest_s=' .machine power5
15412 .text
15413 popcntb 3,3';;
15414 esac
15415
15416 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15417echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15418if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420else
15421 gcc_cv_as_powerpc_popcntb=no
15422 if test $in_tree_gas = yes; then
15423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15424 then gcc_cv_as_powerpc_popcntb=yes
15425fi
15426 elif test x$gcc_cv_as != x; then
15427 echo "$conftest_s" > conftest.s
15428 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }
15434 then
15435 gcc_cv_as_powerpc_popcntb=yes
15436 else
15437 echo "configure: failed program was" >&5
15438 cat conftest.s >&5
15439 fi
15440 rm -f conftest.o conftest.s
15441 fi
15442fi
15443echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15444echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15445if test $gcc_cv_as_powerpc_popcntb = yes; then
15446
15447cat >>confdefs.h <<\_ACEOF
15448#define HAVE_AS_POPCNTB 1
15449_ACEOF
15450
15451fi
15452
15453 case $target in
15454 *-*-aix*) conftest_s=' .machine "pwr5x"
15455 .csect .text[PR]
15456 frin 1,1';;
15457 *) conftest_s=' .machine power5
15458 .text
15459 frin 1,1';;
15460 esac
15461
15462 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15463echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15464if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466else
15467 gcc_cv_as_powerpc_fprnd=no
15468 if test $in_tree_gas = yes; then
15469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15470 then gcc_cv_as_powerpc_fprnd=yes
15471fi
15472 elif test x$gcc_cv_as != x; then
15473 echo "$conftest_s" > conftest.s
15474 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }
15480 then
15481 gcc_cv_as_powerpc_fprnd=yes
15482 else
15483 echo "configure: failed program was" >&5
15484 cat conftest.s >&5
15485 fi
15486 rm -f conftest.o conftest.s
15487 fi
15488fi
15489echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15490echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15491if test $gcc_cv_as_powerpc_fprnd = yes; then
15492
15493cat >>confdefs.h <<\_ACEOF
15494#define HAVE_AS_FPRND 1
15495_ACEOF
15496
15497fi
15498
15499 case $target in
15500 *-*-aix*) conftest_s=' .csect .text[PR]
15501LCF..0:
15502 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15503 *-*-darwin*)
15504 conftest_s=' .text
15505LCF0:
15506 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15507 *) conftest_s=' .text
15508.LCF0:
15509 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15510 esac
15511
15512 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15513echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15514if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516else
15517 gcc_cv_as_powerpc_rel16=no
15518 if test $in_tree_gas = yes; then
15519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15520 then gcc_cv_as_powerpc_rel16=yes
15521fi
15522 elif test x$gcc_cv_as != x; then
15523 echo "$conftest_s" > conftest.s
15524 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }
15530 then
15531 gcc_cv_as_powerpc_rel16=yes
15532 else
15533 echo "configure: failed program was" >&5
15534 cat conftest.s >&5
15535 fi
15536 rm -f conftest.o conftest.s
15537 fi
15538fi
15539echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15540echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15541if test $gcc_cv_as_powerpc_rel16 = yes; then
15542
15543cat >>confdefs.h <<\_ACEOF
15544#define HAVE_AS_REL16 1
15545_ACEOF
15546
15547fi
11580 ;;
11581
11582 mips*-*-*)
11583 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11584echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11585if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 gcc_cv_as_mips_explicit_relocs=no
11589 if test $in_tree_gas = yes; then
11590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11591 then gcc_cv_as_mips_explicit_relocs=yes
11592fi
11593 elif test x$gcc_cv_as != x; then
11594 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11595 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }
11601 then
11602 gcc_cv_as_mips_explicit_relocs=yes
11603 else
11604 echo "configure: failed program was" >&5
11605 cat conftest.s >&5
11606 fi
11607 rm -f conftest.o conftest.s
11608 fi
11609fi
11610echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11611echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11612if test $gcc_cv_as_mips_explicit_relocs = yes; then
11613 if test x$target_cpu_default = x
11614 then target_cpu_default=MASK_EXPLICIT_RELOCS
11615 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11616 fi
11617fi
15548 ;;
15549
15550 mips*-*-*)
15551 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15552echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15553if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else
15556 gcc_cv_as_mips_explicit_relocs=no
15557 if test $in_tree_gas = yes; then
15558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15559 then gcc_cv_as_mips_explicit_relocs=yes
15560fi
15561 elif test x$gcc_cv_as != x; then
15562 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15563 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }
15569 then
15570 gcc_cv_as_mips_explicit_relocs=yes
15571 else
15572 echo "configure: failed program was" >&5
15573 cat conftest.s >&5
15574 fi
15575 rm -f conftest.o conftest.s
15576 fi
15577fi
15578echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15579echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15580if test $gcc_cv_as_mips_explicit_relocs = yes; then
15581 if test x$target_cpu_default = x
15582 then target_cpu_default=MASK_EXPLICIT_RELOCS
15583 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15584 fi
15585fi
15586 ;;
15587esac
11618
15588
15589# Mips and HP-UX need the GNU assembler.
15590# Linux on IA64 might be able to use the Intel assembler.
15591
15592case "$target" in
15593 mips*-*-* | *-*-hpux* )
15594 if test x$gas_flag = xyes \
15595 || test x"$host" != x"$build" \
15596 || test ! -x "$gcc_cv_as" \
15597 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15598 :
15599 else
15600 echo "*** This configuration requires the GNU assembler" >&2
15601 exit 1
15602 fi
11619 ;;
11620esac
15603 ;;
15604esac
15605
11621# ??? Not all targets support dwarf2 debug_line, even within a version
11622# of gas. Moreover, we need to emit a valid instruction to trigger any
11623# info to the output file. So, as supported targets are added to gas 2.11,
11624# add some instruction here to (also) show we expect this might work.
11625# ??? Once 2.11 is released, probably need to add first known working
11626# version to the per-target configury.
11627case "$target" in
11628 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11629 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15606# ??? Not all targets support dwarf2 debug_line, even within a version
15607# of gas. Moreover, we need to emit a valid instruction to trigger any
15608# info to the output file. So, as supported targets are added to gas 2.11,
15609# add some instruction here to (also) show we expect this might work.
15610# ??? Once 2.11 is released, probably need to add first known working
15611# version to the per-target configury.
15612case "$target" in
15613 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15614 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11630 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
15615 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-*)
11631 insn="nop"
11632 ;;
11633 ia64*-*-* | s390*-*-*)
11634 insn="nop 0"
11635 ;;
11636 mmix-*-*)
11637 insn="swym 0"
11638 ;;
11639esac
11640if test x"$insn" != x; then
11641 conftest_s="\
11642 .file 1 \"conftest.s\"
11643 .loc 1 3 0
11644 $insn"
11645 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11646echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11647if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 gcc_cv_as_dwarf2_debug_line=no
11651 if test $in_tree_gas = yes; then
11652 if test $in_tree_gas_is_elf = yes \
11653 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11654 then gcc_cv_as_dwarf2_debug_line=yes
11655fi
11656 elif test x$gcc_cv_as != x; then
11657 echo "$conftest_s" > conftest.s
11658 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }
11664 then
15616 insn="nop"
15617 ;;
15618 ia64*-*-* | s390*-*-*)
15619 insn="nop 0"
15620 ;;
15621 mmix-*-*)
15622 insn="swym 0"
15623 ;;
15624esac
15625if test x"$insn" != x; then
15626 conftest_s="\
15627 .file 1 \"conftest.s\"
15628 .loc 1 3 0
15629 $insn"
15630 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15631echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15632if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634else
15635 gcc_cv_as_dwarf2_debug_line=no
15636 if test $in_tree_gas = yes; then
15637 if test $in_tree_gas_is_elf = yes \
15638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15639 then gcc_cv_as_dwarf2_debug_line=yes
15640fi
15641 elif test x$gcc_cv_as != x; then
15642 echo "$conftest_s" > conftest.s
15643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }
15649 then
11665 # ??? This fails with non-gnu grep. Maybe use objdump?
11666 if grep debug_line conftest.o > /dev/null 2>&1; then
15650 if test x$gcc_cv_objdump != x \
15651 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15652 | grep debug_line > /dev/null 2>&1; then
11667 gcc_cv_as_dwarf2_debug_line=yes
11668 fi
11669 else
11670 echo "configure: failed program was" >&5
11671 cat conftest.s >&5
11672 fi
11673 rm -f conftest.o conftest.s
11674 fi
11675fi
11676echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11677echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11678
11679
11680# The .debug_line file table must be in the exact order that
11681# we specified the files, since these indices are also used
11682# by DW_AT_decl_file. Approximate this test by testing if
11683# the assembler bitches if the same index is assigned twice.
11684 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11685echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11686if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 gcc_cv_as_dwarf2_file_buggy=no
11690 if test x$gcc_cv_as != x; then
11691 echo ' .file 1 "foo.s"
11692 .file 1 "bar.s"' > conftest.s
11693 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }
11699 then
11700 gcc_cv_as_dwarf2_file_buggy=yes
11701 else
11702 echo "configure: failed program was" >&5
11703 cat conftest.s >&5
11704 fi
11705 rm -f conftest.o conftest.s
11706 fi
11707fi
11708echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11709echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11710
11711
11712 if test $gcc_cv_as_dwarf2_debug_line = yes \
11713 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11714
11715cat >>confdefs.h <<\_ACEOF
11716#define HAVE_AS_DWARF2_DEBUG_LINE 1
11717_ACEOF
11718
11719 fi
11720
11721 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11722echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11723if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726 gcc_cv_as_gdwarf2_flag=no
11727 if test $in_tree_gas = yes; then
11728 if test $in_tree_gas_is_elf = yes \
11729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11730 then gcc_cv_as_gdwarf2_flag=yes
11731fi
11732 elif test x$gcc_cv_as != x; then
11733 echo "$insn" > conftest.s
11734 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }
11740 then
11741 gcc_cv_as_gdwarf2_flag=yes
11742 else
11743 echo "configure: failed program was" >&5
11744 cat conftest.s >&5
11745 fi
11746 rm -f conftest.o conftest.s
11747 fi
11748fi
11749echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11750echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11751if test $gcc_cv_as_gdwarf2_flag = yes; then
11752
11753cat >>confdefs.h <<\_ACEOF
11754#define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11755_ACEOF
11756
11757fi
11758
11759 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11760echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11761if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 gcc_cv_as_gstabs_flag=no
11765 if test $in_tree_gas = yes; then
11766 if test $in_tree_gas_is_elf = yes \
11767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11768 then gcc_cv_as_gstabs_flag=yes
11769fi
11770 elif test x$gcc_cv_as != x; then
11771 echo "$insn" > conftest.s
11772 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }
11778 then
11779 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11780 # and warns about it, but still exits successfully. So check for
11781 # this.
11782 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }
11788 then :
11789 else gcc_cv_as_gstabs_flag=yes
11790 fi
11791 else
11792 echo "configure: failed program was" >&5
11793 cat conftest.s >&5
11794 fi
11795 rm -f conftest.o conftest.s
11796 fi
11797fi
11798echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11799echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11800if test $gcc_cv_as_gstabs_flag = yes; then
11801
11802cat >>confdefs.h <<\_ACEOF
11803#define HAVE_AS_GSTABS_DEBUG_FLAG 1
11804_ACEOF
11805
11806fi
11807fi
11808
11809echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11810echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11811gcc_cv_ld_ro_rw_mix=unknown
11812if test $in_tree_ld = yes ; then
11813 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 \
11814 && test $in_tree_ld_is_elf = yes; then
11815 gcc_cv_ld_ro_rw_mix=read-write
11816 fi
11817elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11818 echo '.section myfoosect, "a"' > conftest1.s
11819 echo '.section myfoosect, "aw"' > conftest2.s
11820 echo '.byte 1' >> conftest2.s
11821 echo '.section myfoosect, "a"' > conftest3.s
11822 echo '.byte 0' >> conftest3.s
11823 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11824 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11825 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11826 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11827 conftest2.o conftest3.o > /dev/null 2>&1; then
11828 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11829 | sed -e '/myfoosect/!d' -e N`
11830 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11831 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11832 gcc_cv_ld_ro_rw_mix=read-only
11833 else
11834 gcc_cv_ld_ro_rw_mix=read-write
11835 fi
11836 fi
11837 fi
11838 rm -f conftest.* conftest[123].*
11839fi
11840if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11841
11842cat >>confdefs.h <<\_ACEOF
11843#define HAVE_LD_RO_RW_SECTION_MIXING 1
11844_ACEOF
11845
11846fi
11847echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11848echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11849
11850echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11851echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11852gcc_cv_ld_eh_frame_hdr=no
11853if test $in_tree_ld = yes ; then
11854 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 \
11855 && test $in_tree_ld_is_elf = yes; then
11856 gcc_cv_ld_eh_frame_hdr=yes
11857 fi
11858elif test x$gcc_cv_ld != x; then
11859 # Check if linker supports --eh-frame-hdr option
11860 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11861 gcc_cv_ld_eh_frame_hdr=yes
11862 fi
11863fi
15653 gcc_cv_as_dwarf2_debug_line=yes
15654 fi
15655 else
15656 echo "configure: failed program was" >&5
15657 cat conftest.s >&5
15658 fi
15659 rm -f conftest.o conftest.s
15660 fi
15661fi
15662echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15663echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15664
15665
15666# The .debug_line file table must be in the exact order that
15667# we specified the files, since these indices are also used
15668# by DW_AT_decl_file. Approximate this test by testing if
15669# the assembler bitches if the same index is assigned twice.
15670 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15671echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15672if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674else
15675 gcc_cv_as_dwarf2_file_buggy=no
15676 if test x$gcc_cv_as != x; then
15677 echo ' .file 1 "foo.s"
15678 .file 1 "bar.s"' > conftest.s
15679 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }
15685 then
15686 gcc_cv_as_dwarf2_file_buggy=yes
15687 else
15688 echo "configure: failed program was" >&5
15689 cat conftest.s >&5
15690 fi
15691 rm -f conftest.o conftest.s
15692 fi
15693fi
15694echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15695echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15696
15697
15698 if test $gcc_cv_as_dwarf2_debug_line = yes \
15699 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15700
15701cat >>confdefs.h <<\_ACEOF
15702#define HAVE_AS_DWARF2_DEBUG_LINE 1
15703_ACEOF
15704
15705 fi
15706
15707 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15708echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15709if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15711else
15712 gcc_cv_as_gdwarf2_flag=no
15713 if test $in_tree_gas = yes; then
15714 if test $in_tree_gas_is_elf = yes \
15715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15716 then gcc_cv_as_gdwarf2_flag=yes
15717fi
15718 elif test x$gcc_cv_as != x; then
15719 echo "$insn" > conftest.s
15720 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }
15726 then
15727 gcc_cv_as_gdwarf2_flag=yes
15728 else
15729 echo "configure: failed program was" >&5
15730 cat conftest.s >&5
15731 fi
15732 rm -f conftest.o conftest.s
15733 fi
15734fi
15735echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15736echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15737if test $gcc_cv_as_gdwarf2_flag = yes; then
15738
15739cat >>confdefs.h <<\_ACEOF
15740#define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15741_ACEOF
15742
15743fi
15744
15745 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15746echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15747if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749else
15750 gcc_cv_as_gstabs_flag=no
15751 if test $in_tree_gas = yes; then
15752 if test $in_tree_gas_is_elf = yes \
15753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15754 then gcc_cv_as_gstabs_flag=yes
15755fi
15756 elif test x$gcc_cv_as != x; then
15757 echo "$insn" > conftest.s
15758 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }
15764 then
15765 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15766 # and warns about it, but still exits successfully. So check for
15767 # this.
15768 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }
15774 then :
15775 else gcc_cv_as_gstabs_flag=yes
15776 fi
15777 else
15778 echo "configure: failed program was" >&5
15779 cat conftest.s >&5
15780 fi
15781 rm -f conftest.o conftest.s
15782 fi
15783fi
15784echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15785echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15786if test $gcc_cv_as_gstabs_flag = yes; then
15787
15788cat >>confdefs.h <<\_ACEOF
15789#define HAVE_AS_GSTABS_DEBUG_FLAG 1
15790_ACEOF
15791
15792fi
15793fi
15794
15795echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15796echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15797gcc_cv_ld_ro_rw_mix=unknown
15798if test $in_tree_ld = yes ; then
15799 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 \
15800 && test $in_tree_ld_is_elf = yes; then
15801 gcc_cv_ld_ro_rw_mix=read-write
15802 fi
15803elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15804 echo '.section myfoosect, "a"' > conftest1.s
15805 echo '.section myfoosect, "aw"' > conftest2.s
15806 echo '.byte 1' >> conftest2.s
15807 echo '.section myfoosect, "a"' > conftest3.s
15808 echo '.byte 0' >> conftest3.s
15809 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15810 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15811 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15812 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15813 conftest2.o conftest3.o > /dev/null 2>&1; then
15814 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15815 | sed -e '/myfoosect/!d' -e N`
15816 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15817 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15818 gcc_cv_ld_ro_rw_mix=read-only
15819 else
15820 gcc_cv_ld_ro_rw_mix=read-write
15821 fi
15822 fi
15823 fi
15824 rm -f conftest.* conftest[123].*
15825fi
15826if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15827
15828cat >>confdefs.h <<\_ACEOF
15829#define HAVE_LD_RO_RW_SECTION_MIXING 1
15830_ACEOF
15831
15832fi
15833echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15834echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15835
15836echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15837echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15838gcc_cv_ld_eh_frame_hdr=no
15839if test $in_tree_ld = yes ; then
15840 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 \
15841 && test $in_tree_ld_is_elf = yes; then
15842 gcc_cv_ld_eh_frame_hdr=yes
15843 fi
15844elif test x$gcc_cv_ld != x; then
15845 # Check if linker supports --eh-frame-hdr option
15846 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15847 gcc_cv_ld_eh_frame_hdr=yes
15848 fi
15849fi
15850
11864if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11865
11866cat >>confdefs.h <<\_ACEOF
11867#define HAVE_LD_EH_FRAME_HDR 1
11868_ACEOF
11869
11870fi
11871echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11872echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11873
11874echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11875echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11876gcc_cv_ld_pie=no
11877if test $in_tree_ld = yes ; then
11878 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 \
11879 && test $in_tree_ld_is_elf = yes; then
11880 gcc_cv_ld_pie=yes
11881 fi
11882elif test x$gcc_cv_ld != x; then
11883 # Check if linker supports -pie option
11884 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11885 gcc_cv_ld_pie=yes
11886 fi
11887fi
11888if test x"$gcc_cv_ld_pie" = xyes; then
11889
11890cat >>confdefs.h <<\_ACEOF
11891#define HAVE_LD_PIE 1
11892_ACEOF
11893
11894fi
11895echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11896echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11897
15851if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15852
15853cat >>confdefs.h <<\_ACEOF
15854#define HAVE_LD_EH_FRAME_HDR 1
15855_ACEOF
15856
15857fi
15858echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15859echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15860
15861echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15862echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15863gcc_cv_ld_pie=no
15864if test $in_tree_ld = yes ; then
15865 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 \
15866 && test $in_tree_ld_is_elf = yes; then
15867 gcc_cv_ld_pie=yes
15868 fi
15869elif test x$gcc_cv_ld != x; then
15870 # Check if linker supports -pie option
15871 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15872 gcc_cv_ld_pie=yes
15873 fi
15874fi
15875if test x"$gcc_cv_ld_pie" = xyes; then
15876
15877cat >>confdefs.h <<\_ACEOF
15878#define HAVE_LD_PIE 1
15879_ACEOF
15880
15881fi
15882echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15883echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15884
11898echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
11899echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
11900gcc_cv_ld_static_dynamic=no
15885# --------
15886# UNSORTED
15887# --------
15888
15889echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15890echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15891if test "${gcc_cv_ld_as_needed+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893else
15894 gcc_cv_ld_as_needed=no
11901if test $in_tree_ld = yes ; then
15895if test $in_tree_ld = yes ; then
11902 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
11903 gcc_cv_ld_static_dynamic=yes
15896 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 \
15897 && test $in_tree_ld_is_elf = yes; then
15898 gcc_cv_ld_as_needed=yes
11904 fi
11905elif test x$gcc_cv_ld != x; then
15899 fi
15900elif test x$gcc_cv_ld != x; then
11906 # Check if linker supports -Bstatic/-Bdynamic option
11907 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
11908 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
11909 gcc_cv_ld_static_dynamic=yes
15901 # Check if linker supports --as-needed and --no-as-needed options
15902 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15903 gcc_cv_ld_as_needed=yes
11910 fi
11911fi
15904 fi
15905fi
11912if test x"$gcc_cv_ld_static_dynamic" = xyes; then
11913
15906
15907fi
15908echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15909echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15910if test x"$gcc_cv_ld_as_needed" = xyes; then
15911
11914cat >>confdefs.h <<\_ACEOF
15912cat >>confdefs.h <<\_ACEOF
11915#define HAVE_LD_STATIC_DYNAMIC 1
15913#define HAVE_LD_AS_NEEDED 1
11916_ACEOF
11917
11918fi
15914_ACEOF
15915
15916fi
11919echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
11920echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
11921
15917
11922case "$target" in
11923 *-*-linux*)
11924 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11925echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11926if test "${gcc_cv_ld_as_needed+set}" = set; then
15918case "$target:$tm_file" in
15919 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15920 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15921echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15922if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924else
11929 gcc_cv_ld_as_needed=no
15925 gcc_cv_ld_no_dot_syms=no
11930 if test $in_tree_ld = yes ; then
15926 if test $in_tree_ld = yes ; then
11931 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 \
11932 && test $in_tree_ld_is_elf = yes; then
11933 gcc_cv_ld_as_needed=yes
15927 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
15928 gcc_cv_ld_no_dot_syms=yes
11934 fi
15929 fi
11935 elif test x$gcc_cv_ld != x; then
11936 # Check if linker supports --as-needed and --no-as-needed options
11937 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11938 gcc_cv_ld_as_needed=yes
15930 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15931 cat > conftest1.s <<EOF
15932 .text
15933 bl .foo
15934EOF
15935 cat > conftest2.s <<EOF
15936 .section ".opd","aw"
15937 .align 3
15938 .globl foo
15939 .type foo,@function
15940foo:
15941 .quad .LEfoo,.TOC.@tocbase,0
15942 .text
15943.LEfoo:
15944 blr
15945 .size foo,.-.LEfoo
15946EOF
15947 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15948 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15949 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15950 gcc_cv_ld_no_dot_syms=yes
11939 fi
15951 fi
15952 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
11940 fi
11941
11942fi
15953 fi
15954
15955fi
11943echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11944echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11945 if test x"$gcc_cv_ld_as_needed" = xyes; then
15956echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15957echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15958 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
11946
11947cat >>confdefs.h <<\_ACEOF
15959
15960cat >>confdefs.h <<\_ACEOF
11948#define HAVE_LD_AS_NEEDED 1
15961#define HAVE_LD_NO_DOT_SYMS 1
11949_ACEOF
11950
11951 fi
11952 ;;
11953esac
11954
15962_ACEOF
15963
15964 fi
15965 ;;
15966esac
15967
15968echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15969echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15970if test "${gcc_cv_ld_sysroot+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972else
15973 gcc_cv_ld_sysroot=no
15974 if test $in_tree_ld = yes ; then
15975 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
15976 gcc_cv_ld_sysroot=yes
15977 fi
15978 elif test x$gcc_cv_ld != x; then
15979 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15980 gcc_cv_ld_sysroot=yes
15981 fi
15982 fi
15983fi
15984echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15985echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15986if test x"$gcc_cv_ld_sysroot" = xyes; then
15987
15988cat >>confdefs.h <<\_ACEOF
15989#define HAVE_LD_SYSROOT 1
15990_ACEOF
15991
15992fi
15993
11955if test x$with_sysroot = x && test x$host = x$target \
11956 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11957
11958cat >>confdefs.h <<_ACEOF
11959#define PREFIX_INCLUDE_DIR "$prefix/include"
11960_ACEOF
11961
11962fi
11963
15994if test x$with_sysroot = x && test x$host = x$target \
15995 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15996
15997cat >>confdefs.h <<_ACEOF
15998#define PREFIX_INCLUDE_DIR "$prefix/include"
15999_ACEOF
16000
16001fi
16002
11964# Figure out what language subdirectories are present.
11965# Look if the user specified --enable-languages="..."; if not, use
11966# the environment variable $LANGUAGES if defined. $LANGUAGES might
11967# go away some day.
11968# NB: embedded tabs in this IF block -- do not untabify
11969if test x"${enable_languages+set}" != xset; then
11970 if test x"${LANGUAGES+set}" = xset; then
11971 enable_languages="${LANGUAGES}"
11972 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11973echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11974
16003# Test for stack protector support in target C library.
16004case "$target" in
16005 *-*-linux*)
16006 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16007echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16008if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 gcc_cv_libc_provides_ssp=no
16012 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16013 if test "x$with_sysroot" = x; then
16014 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16015 elif test "x$with_sysroot" = xyes; then
16016 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
11975 else
16017 else
11976 enable_languages=all
16018 glibc_header_dir="${with_sysroot}/usr/include"
11977 fi
16019 fi
11978else
11979 if test x"${enable_languages}" = x \
11980 || test x"${enable_languages}" = xyes;
11981 then
11982 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11983echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11984 { (exit 1); exit 1; }; }
16020 else
16021 glibc_header_dir=/usr/include
16022 fi
16023 # glibc 2.4 and later provides __stack_chk_fail and
16024 # either __stack_chk_guard, or TLS access to stack guard canary.
16025 if test -f $glibc_header_dir/features.h \
16026 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16027 $glibc_header_dir/features.h > /dev/null; then
16028 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16029 $glibc_header_dir/features.h > /dev/null; then
16030 gcc_cv_libc_provides_ssp=yes
16031 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16032 $glibc_header_dir/features.h > /dev/null \
16033 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16034 $glibc_header_dir/features.h > /dev/null; then
16035 gcc_cv_libc_provides_ssp=yes
11985 fi
16036 fi
16037 fi
11986fi
16038fi
11987enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
16039echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16040echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16041 *) gcc_cv_libc_provides_ssp=no ;;
16042esac
16043if test x$gcc_cv_libc_provides_ssp = xyes; then
11988
16044
11989# First scan to see if an enabled language requires some other language.
11990# We assume that a given config-lang.in will list all the language
11991# front ends it requires, even if some are required indirectly.
11992for lang in ${srcdir}/*/config-lang.in
11993do
11994 case $lang in
11995 # The odd quoting in the next line works around
11996 # an apparent bug in bash 1.12 on linux.
11997 ${srcdir}/[*]/config-lang.in)
11998 ;;
11999 *)
12000 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
12001 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
12002 for other in $this_lang_requires
12003 do
12004 case ,${enable_languages}, in
12005 *,$other,*)
12006 ;;
12007 *,all,*)
12008 ;;
12009 *,$lang_alias,*)
12010 enable_languages="$enable_languages,$other"
12011 ;;
12012 esac
12013 done
12014 ;;
12015 esac
12016done
16045cat >>confdefs.h <<\_ACEOF
16046#define TARGET_LIBC_PROVIDES_SSP 1
16047_ACEOF
12017
16048
12018expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
12019found_languages=
12020subdirs=
12021for lang in ${srcdir}/*/config-lang.in
12022do
12023 case $lang in
12024 # The odd quoting in the next line works around
12025 # an apparent bug in bash 1.12 on linux.
12026 ${srcdir}/[*]/config-lang.in) ;;
12027 *)
12028 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
12029 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
12030 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
12031 if test "x$lang_alias" = x
12032 then
12033 echo "$lang doesn't set \$language." 1>&2
12034 exit 1
12035 fi
12036 case ${build_by_default},${enable_languages}, in
12037 *,$lang_alias,*) add_this_lang=yes ;;
12038 no,*) add_this_lang=no ;;
12039 *,all,*) add_this_lang=yes ;;
12040 *) add_this_lang=no ;;
12041 esac
12042 found_languages="${found_languages} ${lang_alias}"
12043 if test x"${add_this_lang}" = xyes; then
12044 case $lang in
12045 ${srcdir}/ada/config-lang.in)
12046 if test x$have_gnat = xyes ; then
12047 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12048 fi
12049 ;;
12050 *)
12051 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12052 ;;
12053 esac
12054 fi
12055 ;;
12056 esac
12057done
16049fi
12058
16050
12059missing_languages=
12060for expected_language in ${expected_languages} ..
12061do
12062 if test "${expected_language}" != ..; then
12063 missing_language="${expected_language}"
12064 if test "${expected_language}" = "c" \
12065 || test "${expected_language}" = "all"; then
12066 missing_language=
12067 fi
12068 for found_language in ${found_languages} ..
12069 do
12070 if test "${found_language}" != ..; then
12071 if test "${expected_language}" = "${found_language}"; then
12072 missing_language=
12073 fi
12074 fi
12075 done
12076 if test "x${missing_language}" != x; then
12077 missing_languages="${missing_languages} ${missing_language}"
12078 fi
12079 fi
12080done
16051# Check if TFmode long double should be used by default or not.
16052# Some glibc targets used DFmode long double, but with glibc 2.4
16053# and later they can use TFmode.
16054case "$target" in
16055 powerpc*-*-*gnu* | \
16056 sparc*-*-linux* | \
16057 s390*-*-linux* | \
16058 alpha*-*-linux*)
12081
16059
12082if test "x$missing_languages" != x; then
12083 { { echo "$as_me:$LINENO: error:
12084The following requested languages were not found:${missing_languages}
12085The following languages were available: c${found_languages}" >&5
12086echo "$as_me: error:
12087The following requested languages were not found:${missing_languages}
12088The following languages were available: c${found_languages}" >&2;}
12089 { (exit 1); exit 1; }; }
12090fi
16060# Check whether --with-long-double-128 or --without-long-double-128 was given.
16061if test "${with_long_double_128+set}" = set; then
16062 withval="$with_long_double_128"
16063 gcc_cv_target_ldbl128="$with_long_double_128"
16064else
16065 gcc_cv_target_ldbl128=no
16066 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16067 if test "x$with_sysroot" = x; then
16068 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16069 elif test "x$with_sysroot" = xyes; then
16070 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16071 else
16072 glibc_header_dir="${with_sysroot}/usr/include"
16073 fi
16074 else
16075 glibc_header_dir=/usr/include
16076 fi
16077 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16078 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16079 && gcc_cv_target_ldbl128=yes
12091
16080
12092# Make gthr-default.h if we have a thread file.
12093gthread_flags=
12094if test $thread_file != single; then
12095 rm -f gthr-default.h
12096 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12097 gthread_flags=-DHAVE_GTHR_DEFAULT
12098fi
16081fi;
16082 ;;
16083esac
16084if test x$gcc_cv_target_ldbl128 = xyes; then
12099
16085
16086cat >>confdefs.h <<\_ACEOF
16087#define TARGET_DEFAULT_LONG_DOUBLE_128 1
16088_ACEOF
12100
16089
16090fi
16091
12101# Find out what GC implementation we want, or may, use.
12102
12103# Check whether --with-gc or --without-gc was given.
12104if test "${with_gc+set}" = set; then
12105 withval="$with_gc"
12106 case "$withval" in
16092# Find out what GC implementation we want, or may, use.
16093
16094# Check whether --with-gc or --without-gc was given.
16095if test "${with_gc+set}" = set; then
16096 withval="$with_gc"
16097 case "$withval" in
12107 simple | page | zone)
16098 page)
12108 GGC=ggc-$withval
12109 ;;
16099 GGC=ggc-$withval
16100 ;;
16101 zone)
16102 GGC=ggc-$withval
16103
16104cat >>confdefs.h <<\_ACEOF
16105#define GGC_ZONE 1
16106_ACEOF
16107
16108 ;;
12110 *)
12111 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12112echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12113 { (exit 1); exit 1; }; }
12114 ;;
12115esac
12116else
12117 GGC=ggc-page
12118fi;
12119
12120echo "Using $GGC for garbage collection."
12121
12122# Use the system's zlib library.
12123zlibdir=-L../zlib
12124zlibinc="-I\$(srcdir)/../zlib"
12125
12126# Check whether --with-system-zlib or --without-system-zlib was given.
12127if test "${with_system_zlib+set}" = set; then
12128 withval="$with_system_zlib"
12129 zlibdir=
12130zlibinc=
12131
12132fi;
12133
12134
12135
12136
12137echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12138echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12139 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12140if test "${enable_maintainer_mode+set}" = set; then
12141 enableval="$enable_maintainer_mode"
12142 maintainer_mode=$enableval
12143else
12144 maintainer_mode=no
12145fi;
12146
12147echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12148echo "${ECHO_T}$maintainer_mode" >&6
12149
12150if test "$maintainer_mode" = "yes"; then
12151 MAINT=''
12152else
12153 MAINT='#'
12154fi
12155
16109 *)
16110 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16111echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16112 { (exit 1); exit 1; }; }
16113 ;;
16114esac
16115else
16116 GGC=ggc-page
16117fi;
16118
16119echo "Using $GGC for garbage collection."
16120
16121# Use the system's zlib library.
16122zlibdir=-L../zlib
16123zlibinc="-I\$(srcdir)/../zlib"
16124
16125# Check whether --with-system-zlib or --without-system-zlib was given.
16126if test "${with_system_zlib+set}" = set; then
16127 withval="$with_system_zlib"
16128 zlibdir=
16129zlibinc=
16130
16131fi;
16132
16133
16134
16135
16136echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16137echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16138 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16139if test "${enable_maintainer_mode+set}" = set; then
16140 enableval="$enable_maintainer_mode"
16141 maintainer_mode=$enableval
16142else
16143 maintainer_mode=no
16144fi;
16145
16146echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16147echo "${ECHO_T}$maintainer_mode" >&6
16148
16149if test "$maintainer_mode" = "yes"; then
16150 MAINT=''
16151else
16152 MAINT='#'
16153fi
16154
16155# --------------
16156# Language hooks
16157# --------------
16158
12156# Make empty files to contain the specs and options for each language.
12157# Then add #include lines to for a compiler that has specs and/or options.
12158
16159# Make empty files to contain the specs and options for each language.
16160# Then add #include lines to for a compiler that has specs and/or options.
16161
16162subdirs=
12159lang_opt_files=
12160lang_specs_files=
12161lang_tree_files=
16163lang_opt_files=
16164lang_specs_files=
16165lang_tree_files=
12162for subdir in . $subdirs
12163do
12164 if test -f $srcdir/$subdir/lang.opt; then
12165 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12166 fi
12167 if test -f $srcdir/$subdir/lang-specs.h; then
12168 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12169 fi
12170 if test -f $srcdir/$subdir/$subdir-tree.def; then
12171 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12172 fi
12173done
12174
12175# These (without "all_") are set in each config-lang.in.
12176# `language' must be a single word so is spelled singularly.
12177all_languages=
12178all_boot_languages=
12179all_compilers=
12180all_stagestuff=
16166# These (without "all_") are set in each config-lang.in.
16167# `language' must be a single word so is spelled singularly.
16168all_languages=
16169all_boot_languages=
16170all_compilers=
16171all_stagestuff=
12181all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
16172all_outputs='Makefile gccbug mklibgcc libada-mk'
12182# List of language makefile fragments.
12183all_lang_makefrags=
12184# List of language subdirectory makefiles. Deprecated.
12185all_lang_makefiles=
12186# Files for gengtype
12187all_gtfiles="$target_gtfiles"
12188# Files for gengtype with language
12189all_gtfiles_files_langs=
12190all_gtfiles_files_files=
12191
16173# List of language makefile fragments.
16174all_lang_makefrags=
16175# List of language subdirectory makefiles. Deprecated.
16176all_lang_makefiles=
16177# Files for gengtype
16178all_gtfiles="$target_gtfiles"
16179# Files for gengtype with language
16180all_gtfiles_files_langs=
16181all_gtfiles_files_files=
16182
16183# These are the languages that are set in --enable-languages,
16184# and are available in the GCC tree.
16185all_selected_languages=
16186
12192# Add the language fragments.
12193# Languages are added via two mechanisms. Some information must be
12194# recorded in makefile variables, these are defined in config-lang.in.
12195# We accumulate them and plug them into the main Makefile.
12196# The other mechanism is a set of hooks for each of the main targets
12197# like `clean', `install', etc.
12198
12199language_hooks="Make-hooks"
12200
16187# Add the language fragments.
16188# Languages are added via two mechanisms. Some information must be
16189# recorded in makefile variables, these are defined in config-lang.in.
16190# We accumulate them and plug them into the main Makefile.
16191# The other mechanism is a set of hooks for each of the main targets
16192# like `clean', `install', etc.
16193
16194language_hooks="Make-hooks"
16195
12201for s in $subdirs
16196for lang in ${srcdir}/*/config-lang.in
12202do
16197do
12203 language=
12204 boot_language=
12205 compilers=
12206 stagestuff=
12207 outputs=
12208 gtfiles=
12209 . ${srcdir}/$s/config-lang.in
12210 if test "x$language" = x
12211 then
12212 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12213 exit 1
12214 fi
12215 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12216 if test -f ${srcdir}/$s/Makefile.in
12217 then all_lang_makefiles="$s/Makefile"
12218 fi
12219 all_languages="$all_languages $language"
12220 if test "x$boot_language" = xyes
12221 then
12222 all_boot_languages="$all_boot_languages $language"
12223 fi
12224 all_compilers="$all_compilers $compilers"
12225 all_stagestuff="$all_stagestuff $stagestuff"
12226 all_outputs="$all_outputs $outputs"
12227 all_gtfiles="$all_gtfiles $gtfiles"
12228 for f in $gtfiles
12229 do
12230 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12231 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12232 done
16198 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16199
16200 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16201 if test "x$lang_alias" = x
16202 then
16203 echo "$lang doesn't set \$language." 1>&2
16204 exit 1
16205 fi
16206 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16207 subdirs="$subdirs $subdir"
16208 case ",$enable_languages," in
16209 *,$lang_alias,*)
16210 all_selected_languages="$all_selected_languages $lang_alias"
16211 if test -f $srcdir/$subdir/lang-specs.h; then
16212 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16213 fi
16214 ;;
16215 esac
16216
16217 language=
16218 boot_language=
16219 compilers=
16220 stagestuff=
16221 outputs=
16222 gtfiles=
16223 subdir_requires=
16224 . ${srcdir}/$subdir/config-lang.in
16225 if test "x$language" = x
16226 then
16227 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16228 exit 1
16229 fi
16230
16231 ok=:
16232 case ",$enable_languages," in
16233 *,$lang_alias,*) ;;
16234 *)
16235 for i in $subdir_requires; do
16236 test -f "${srcdir}/$i/config-lang.in" && continue
16237 ok=false
16238 break
16239 done
16240 ;;
16241 esac
16242 $ok || continue
16243
16244 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16245 if test -f $srcdir/$subdir/lang.opt; then
16246 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16247 fi
16248 if test -f $srcdir/$subdir/$subdir-tree.def; then
16249 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16250 fi
16251 if test -f ${srcdir}/$subdir/Makefile.in
16252 then all_lang_makefiles="$subdir/Makefile"
16253 fi
16254 all_languages="$all_languages $language"
16255 if test "x$boot_language" = xyes
16256 then
16257 all_boot_languages="$all_boot_languages $language"
16258 fi
16259 all_compilers="$all_compilers $compilers"
16260 all_stagestuff="$all_stagestuff $stagestuff"
16261 all_outputs="$all_outputs $outputs"
16262 all_gtfiles="$all_gtfiles $gtfiles"
16263 for f in $gtfiles
16264 do
16265 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16266 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16267 done
12233done
12234
12235# Pick up gtfiles for c
12236gtfiles=
16268done
16269
16270# Pick up gtfiles for c
16271gtfiles=
12237s="c"
16272subdir="c"
12238. ${srcdir}/c-config-lang.in
12239all_gtfiles="$all_gtfiles $gtfiles"
12240for f in $gtfiles
12241do
16273. ${srcdir}/c-config-lang.in
16274all_gtfiles="$all_gtfiles $gtfiles"
16275for f in $gtfiles
16276do
12242 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16277 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
12243 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12244done
12245
12246check_languages=
16278 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16279done
16280
16281check_languages=
12247for language in $all_languages
16282for language in $all_selected_languages
12248do
16283do
12249 check_languages="$check_languages check-$language"
16284 check_languages="$check_languages check-$language"
12250done
12251
12252# We link each language in with a set of hooks, reached indirectly via
16285done
16286
16287# We link each language in with a set of hooks, reached indirectly via
12253# lang.${target}.
16288# lang.${target}. Only do so for selected languages.
12254
12255rm -f Make-hooks
12256touch Make-hooks
16289
16290rm -f Make-hooks
16291touch Make-hooks
12257target_list="all.build all.cross start.encap rest.encap tags \
12258 install-normal install-common install-man \
16292target_list="all.cross start.encap rest.encap tags \
16293 install-common install-man install-info dvi pdf html \
12259 uninstall info man srcextra srcman srcinfo \
12260 mostlyclean clean distclean maintainer-clean \
12261 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16294 uninstall info man srcextra srcman srcinfo \
16295 mostlyclean clean distclean maintainer-clean \
16296 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16297
12262for t in $target_list
12263do
12264 x=
16298for t in $target_list
16299do
16300 x=
12265 for lang in $all_languages
16301 for lang in $all_selected_languages
12266 do
16302 do
12267 x="$x $lang.$t"
16303 x="$x $lang.$t"
12268 done
12269 echo "lang.$t: $x" >> Make-hooks
12270done
12271
16304 done
16305 echo "lang.$t: $x" >> Make-hooks
16306done
16307
16308# --------
16309# UNSORTED
16310# --------
16311
12272# Create .gdbinit.
12273
12274echo "dir ." > .gdbinit
12275echo "dir ${srcdir}" >> .gdbinit
12276if test x$gdb_needs_out_file_path = xyes
12277then
12278 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12279fi
12280if test "x$subdirs" != x; then
12281 for s in $subdirs
12282 do
12283 echo "dir ${srcdir}/$s" >> .gdbinit
12284 done
12285fi
12286echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12287
12288# If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12289# absolute path for gcc_tooldir based on inserting the number of up-directory
12290# movements required to get from $(exec_prefix) to $(prefix) into the basic
12291# $(libsubdir)/@(unlibsubdir) based path.
12292# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12293# make and thus we'd get different behavior depending on where we built the
12294# sources.
12295if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12296 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12297else
12298# An explanation of the sed strings:
12299# -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12300# -e 's|/$||' match a trailing forward slash and eliminates it
12301# -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12302# -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12303#
12304# (*) Note this pattern overwrites the first character of the string
12305# with a forward slash if one is not already present. This is not a
12306# problem because the exact names of the sub-directories concerned is
12307# unimportant, just the number of them matters.
12308#
12309# The practical upshot of these patterns is like this:
12310#
12311# prefix exec_prefix result
12312# ------ ----------- ------
12313# /foo /foo/bar ../
12314# /foo/ /foo/bar ../
12315# /foo /foo/bar/ ../
12316# /foo/ /foo/bar/ ../
12317# /foo /foo/bar/ugg ../../
12318#
12319 dollar='$$'
12320 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12321fi
12322
12323
12324
12325# Find a directory in which to install a shared libgcc.
12326
12327# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12328if test "${enable_version_specific_runtime_libs+set}" = set; then
12329 enableval="$enable_version_specific_runtime_libs"
12330
12331fi;
12332
12333
12334# Check whether --with-slibdir or --without-slibdir was given.
12335if test "${with_slibdir+set}" = set; then
12336 withval="$with_slibdir"
12337 slibdir="$with_slibdir"
12338else
12339 if test "${enable_version_specific_runtime_libs+set}" = set; then
12340 slibdir='$(libsubdir)'
12341elif test "$host" != "$target"; then
12342 slibdir='$(build_tooldir)/lib'
12343else
12344 slibdir='$(libdir)'
12345fi
12346fi;
12347
12348
12349objdir=`${PWDCMD-pwd}`
12350
12351
16312# Create .gdbinit.
16313
16314echo "dir ." > .gdbinit
16315echo "dir ${srcdir}" >> .gdbinit
16316if test x$gdb_needs_out_file_path = xyes
16317then
16318 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16319fi
16320if test "x$subdirs" != x; then
16321 for s in $subdirs
16322 do
16323 echo "dir ${srcdir}/$s" >> .gdbinit
16324 done
16325fi
16326echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16327
16328# If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16329# absolute path for gcc_tooldir based on inserting the number of up-directory
16330# movements required to get from $(exec_prefix) to $(prefix) into the basic
16331# $(libsubdir)/@(unlibsubdir) based path.
16332# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16333# make and thus we'd get different behavior depending on where we built the
16334# sources.
16335if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16336 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16337else
16338# An explanation of the sed strings:
16339# -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16340# -e 's|/$||' match a trailing forward slash and eliminates it
16341# -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16342# -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16343#
16344# (*) Note this pattern overwrites the first character of the string
16345# with a forward slash if one is not already present. This is not a
16346# problem because the exact names of the sub-directories concerned is
16347# unimportant, just the number of them matters.
16348#
16349# The practical upshot of these patterns is like this:
16350#
16351# prefix exec_prefix result
16352# ------ ----------- ------
16353# /foo /foo/bar ../
16354# /foo/ /foo/bar ../
16355# /foo /foo/bar/ ../
16356# /foo/ /foo/bar/ ../
16357# /foo /foo/bar/ugg ../../
16358#
16359 dollar='$$'
16360 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16361fi
16362
16363
16364
16365# Find a directory in which to install a shared libgcc.
16366
16367# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16368if test "${enable_version_specific_runtime_libs+set}" = set; then
16369 enableval="$enable_version_specific_runtime_libs"
16370
16371fi;
16372
16373
16374# Check whether --with-slibdir or --without-slibdir was given.
16375if test "${with_slibdir+set}" = set; then
16376 withval="$with_slibdir"
16377 slibdir="$with_slibdir"
16378else
16379 if test "${enable_version_specific_runtime_libs+set}" = set; then
16380 slibdir='$(libsubdir)'
16381elif test "$host" != "$target"; then
16382 slibdir='$(build_tooldir)/lib'
16383else
16384 slibdir='$(libdir)'
16385fi
16386fi;
16387
16388
16389objdir=`${PWDCMD-pwd}`
16390
16391
12352# Substitute configuration variables
12353
16392
16393# Check whether --with-datarootdir or --without-datarootdir was given.
16394if test "${with_datarootdir+set}" = set; then
16395 withval="$with_datarootdir"
16396 datarootdir="\${prefix}/$with_datarootdir"
16397else
16398 datarootdir='$(prefix)/share'
16399fi;
12354
12355
12356
16400
16401
16402
16403# Check whether --with-docdir or --without-docdir was given.
16404if test "${with_docdir+set}" = set; then
16405 withval="$with_docdir"
16406 docdir="\${prefix}/$with_docdir"
16407else
16408 docdir='$(datarootdir)'
16409fi;
12357
12358
12359
16410
16411
16412
16413# Check whether --with-htmldir or --without-htmldir was given.
16414if test "${with_htmldir+set}" = set; then
16415 withval="$with_htmldir"
16416 htmldir="\${prefix}/$with_htmldir"
16417else
16418 htmldir='$(docdir)'
16419fi;
12360
12361
16420
16421
16422# Substitute configuration variables
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
12423if test x"$SET_GCC_LIB_PATH_CMD" != x; then
12424 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
12425 #
12426 # eval "set_gcc_lib_path=XXX=path; export XXX;"
12427 #
12428 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
12429 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
12430 set_gcc_lib_path="export $set_gcc_lib_path"
12431else
12432 set_gcc_lib_path=
12433fi
12434
12435
16484
16485
12436
12437# If it doesn't already exist, create document directory
12438echo "checking for the document directory." 1>&2
12439if test -d doc ; then
12440 true
12441else
12442 mkdir doc
12443fi
12444
12445# Echo link setup.
12446if test x${build} = x${host} ; then
12447 if test x${host} = x${target} ; then
12448 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12449 else
12450 echo "Links are now set up to build a cross-compiler" 1>&2
12451 echo " from ${host} to ${target}." 1>&2
12452 fi
12453else
12454 if test x${host} = x${target} ; then
12455 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12456 echo " for ${target}." 1>&2
12457 else
12458 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12459 echo " from ${host} to ${target}." 1>&2
12460 fi
12461fi
12462
16486# Echo link setup.
16487if test x${build} = x${host} ; then
16488 if test x${host} = x${target} ; then
16489 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16490 else
16491 echo "Links are now set up to build a cross-compiler" 1>&2
16492 echo " from ${host} to ${target}." 1>&2
16493 fi
16494else
16495 if test x${host} = x${target} ; then
16496 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16497 echo " for ${target}." 1>&2
16498 else
16499 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16500 echo " from ${host} to ${target}." 1>&2
16501 fi
16502fi
16503
16504
16505
16506
12463# Configure the subdirectories
12464# AC_CONFIG_SUBDIRS($subdirs)
12465
12466# Create the Makefile
12467# and configure language subdirectories
12468 ac_config_files="$ac_config_files $all_outputs"
12469
12470
12471 ac_config_commands="$ac_config_commands default"
12472
12473cat >confcache <<\_ACEOF
12474# This file is a shell script that caches the results of configure
12475# tests run on this system so they can be shared between configure
12476# scripts and configure runs, see configure's option --config-cache.
12477# It is not useful on other systems. If it contains results you don't
12478# want to keep, you may remove or edit it.
12479#
12480# config.status only pays attention to the cache file if you give it
12481# the --recheck option to rerun configure.
12482#
12483# `ac_cv_env_foo' variables (set or unset) will be overridden when
12484# loading this file, other *unset* `ac_cv_foo' will be assigned the
12485# following values.
12486
12487_ACEOF
12488
12489# The following way of writing the cache mishandles newlines in values,
12490# but we know of no workaround that is simple, portable, and efficient.
12491# So, don't put newlines in cache variables' values.
12492# Ultrix sh set writes to stderr and can't be redirected directly,
12493# and sets the high bit in the cache file unless we assign to the vars.
12494{
12495 (set) 2>&1 |
12496 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12497 *ac_space=\ *)
12498 # `set' does not quote correctly, so add quotes (double-quote
12499 # substitution turns \\\\ into \\, and sed turns \\ into \).
12500 sed -n \
12501 "s/'/'\\\\''/g;
12502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12503 ;;
12504 *)
12505 # `set' quotes correctly as required by POSIX, so do not add quotes.
12506 sed -n \
12507 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12508 ;;
12509 esac;
12510} |
12511 sed '
12512 t clear
12513 : clear
12514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12515 t end
12516 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12517 : end' >>confcache
12518if diff $cache_file confcache >/dev/null 2>&1; then :; else
12519 if test -w $cache_file; then
12520 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12521 cat confcache >$cache_file
12522 else
12523 echo "not updating unwritable cache $cache_file"
12524 fi
12525fi
12526rm -f confcache
12527
12528test "x$prefix" = xNONE && prefix=$ac_default_prefix
12529# Let make expand exec_prefix.
12530test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12531
12532# VPATH may cause trouble with some makes, so we remove $(srcdir),
12533# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12534# trailing colons and then remove the whole line if VPATH becomes empty
12535# (actually we leave an empty line to preserve line numbers).
12536if test "x$srcdir" = x.; then
12537 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12538s/:*\$(srcdir):*/:/;
12539s/:*\${srcdir}:*/:/;
12540s/:*@srcdir@:*/:/;
12541s/^\([^=]*=[ ]*\):*/\1/;
12542s/:*$//;
12543s/^[^=]*=[ ]*$//;
12544}'
12545fi
12546
12547DEFS=-DHAVE_CONFIG_H
12548
12549ac_libobjs=
12550ac_ltlibobjs=
12551for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12552 # 1. Remove the extension, and $U if already installed.
12553 ac_i=`echo "$ac_i" |
12554 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12555 # 2. Add them.
12556 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12557 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12558done
12559LIBOBJS=$ac_libobjs
12560
12561LTLIBOBJS=$ac_ltlibobjs
12562
12563
12564
12565: ${CONFIG_STATUS=./config.status}
12566ac_clean_files_save=$ac_clean_files
12567ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12568{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12569echo "$as_me: creating $CONFIG_STATUS" >&6;}
12570cat >$CONFIG_STATUS <<_ACEOF
12571#! $SHELL
12572# Generated by $as_me.
12573# Run this file to recreate the current configuration.
12574# Compiler output produced by configure, useful for debugging
12575# configure, is in config.log if it exists.
12576
12577debug=false
12578ac_cs_recheck=false
12579ac_cs_silent=false
12580SHELL=\${CONFIG_SHELL-$SHELL}
12581_ACEOF
12582
12583cat >>$CONFIG_STATUS <<\_ACEOF
12584## --------------------- ##
12585## M4sh Initialization. ##
12586## --------------------- ##
12587
12588# Be Bourne compatible
12589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12590 emulate sh
12591 NULLCMD=:
12592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12593 # is contrary to our usage. Disable this feature.
12594 alias -g '${1+"$@"}'='"$@"'
12595elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12596 set -o posix
12597fi
12598DUALCASE=1; export DUALCASE # for MKS sh
12599
12600# Support unset when possible.
12601if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12602 as_unset=unset
12603else
12604 as_unset=false
12605fi
12606
12607
12608# Work around bugs in pre-3.0 UWIN ksh.
12609$as_unset ENV MAIL MAILPATH
12610PS1='$ '
12611PS2='> '
12612PS4='+ '
12613
12614# NLS nuisances.
12615for as_var in \
12616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12618 LC_TELEPHONE LC_TIME
12619do
12620 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12621 eval $as_var=C; export $as_var
12622 else
12623 $as_unset $as_var
12624 fi
12625done
12626
12627# Required to use basename.
12628if expr a : '\(a\)' >/dev/null 2>&1; then
12629 as_expr=expr
12630else
12631 as_expr=false
12632fi
12633
12634if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12635 as_basename=basename
12636else
12637 as_basename=false
12638fi
12639
12640
12641# Name of the executable.
12642as_me=`$as_basename "$0" ||
12643$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12644 X"$0" : 'X\(//\)$' \| \
12645 X"$0" : 'X\(/\)$' \| \
12646 . : '\(.\)' 2>/dev/null ||
12647echo X/"$0" |
12648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12649 /^X\/\(\/\/\)$/{ s//\1/; q; }
12650 /^X\/\(\/\).*/{ s//\1/; q; }
12651 s/.*/./; q'`
12652
12653
12654# PATH needs CR, and LINENO needs CR and PATH.
12655# Avoid depending upon Character Ranges.
12656as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12657as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12658as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12659as_cr_digits='0123456789'
12660as_cr_alnum=$as_cr_Letters$as_cr_digits
12661
12662# The user is always right.
12663if test "${PATH_SEPARATOR+set}" != set; then
12664 echo "#! /bin/sh" >conf$$.sh
12665 echo "exit 0" >>conf$$.sh
12666 chmod +x conf$$.sh
12667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12668 PATH_SEPARATOR=';'
12669 else
12670 PATH_SEPARATOR=:
12671 fi
12672 rm -f conf$$.sh
12673fi
12674
12675
12676 as_lineno_1=$LINENO
12677 as_lineno_2=$LINENO
12678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12679 test "x$as_lineno_1" != "x$as_lineno_2" &&
12680 test "x$as_lineno_3" = "x$as_lineno_2" || {
12681 # Find who we are. Look in the path if we contain no path at all
12682 # relative or not.
12683 case $0 in
12684 *[\\/]* ) as_myself=$0 ;;
12685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12691done
12692
12693 ;;
12694 esac
12695 # We did not find ourselves, most probably we were run as `sh COMMAND'
12696 # in which case we are not to be found in the path.
12697 if test "x$as_myself" = x; then
12698 as_myself=$0
12699 fi
12700 if test ! -f "$as_myself"; then
12701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12702echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12703 { (exit 1); exit 1; }; }
12704 fi
12705 case $CONFIG_SHELL in
12706 '')
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12709do
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for as_base in sh bash ksh sh5; do
12713 case $as_dir in
12714 /*)
12715 if ("$as_dir/$as_base" -c '
12716 as_lineno_1=$LINENO
12717 as_lineno_2=$LINENO
12718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12719 test "x$as_lineno_1" != "x$as_lineno_2" &&
12720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12723 CONFIG_SHELL=$as_dir/$as_base
12724 export CONFIG_SHELL
12725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12726 fi;;
12727 esac
12728 done
12729done
12730;;
12731 esac
12732
12733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12734 # uniformly replaced by the line number. The first 'sed' inserts a
12735 # line-number line before each line; the second 'sed' does the real
12736 # work. The second script uses 'N' to pair each line-number line
12737 # with the numbered line, and appends trailing '-' during
12738 # substitution so that $LINENO is not a special case at line end.
12739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12741 sed '=' <$as_myself |
12742 sed '
12743 N
12744 s,$,-,
12745 : loop
12746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12747 t loop
12748 s,-$,,
12749 s,^['$as_cr_digits']*\n,,
12750 ' >$as_me.lineno &&
12751 chmod +x $as_me.lineno ||
12752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12753echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12754 { (exit 1); exit 1; }; }
12755
12756 # Don't try to exec as it changes $[0], causing all sort of problems
12757 # (the dirname of $[0] is not the place where we might find the
12758 # original and so on. Autoconf is especially sensible to this).
12759 . ./$as_me.lineno
12760 # Exit status is that of the last command.
12761 exit
12762}
12763
12764
12765case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12766 *c*,-n*) ECHO_N= ECHO_C='
12767' ECHO_T=' ' ;;
12768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12770esac
12771
12772if expr a : '\(a\)' >/dev/null 2>&1; then
12773 as_expr=expr
12774else
12775 as_expr=false
12776fi
12777
12778rm -f conf$$ conf$$.exe conf$$.file
12779echo >conf$$.file
12780if ln -s conf$$.file conf$$ 2>/dev/null; then
12781 # We could just check for DJGPP; but this test a) works b) is more generic
12782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12783 if test -f conf$$.exe; then
12784 # Don't use ln at all; we don't have any links
12785 as_ln_s='cp -p'
12786 else
12787 as_ln_s='ln -s'
12788 fi
12789elif ln conf$$.file conf$$ 2>/dev/null; then
12790 as_ln_s=ln
12791else
12792 as_ln_s='cp -p'
12793fi
12794rm -f conf$$ conf$$.exe conf$$.file
12795
12796if mkdir -p . 2>/dev/null; then
12797 as_mkdir_p=:
12798else
12799 test -d ./-p && rmdir ./-p
12800 as_mkdir_p=false
12801fi
12802
12803as_executable_p="test -f"
12804
12805# Sed expression to map a string onto a valid CPP name.
12806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12807
12808# Sed expression to map a string onto a valid variable name.
12809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12810
12811
12812# IFS
12813# We need space, tab and new line, in precisely that order.
12814as_nl='
12815'
12816IFS=" $as_nl"
12817
12818# CDPATH.
12819$as_unset CDPATH
12820
12821exec 6>&1
12822
12823# Open the log real soon, to keep \$[0] and so on meaningful, and to
12824# report actual input values of CONFIG_FILES etc. instead of their
12825# values after options handling. Logging --version etc. is OK.
12826exec 5>>config.log
12827{
12828 echo
12829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12830## Running $as_me. ##
12831_ASBOX
12832} >&5
12833cat >&5 <<_CSEOF
12834
12835This file was extended by $as_me, which was
12836generated by GNU Autoconf 2.59. Invocation command line was
12837
12838 CONFIG_FILES = $CONFIG_FILES
12839 CONFIG_HEADERS = $CONFIG_HEADERS
12840 CONFIG_LINKS = $CONFIG_LINKS
12841 CONFIG_COMMANDS = $CONFIG_COMMANDS
12842 $ $0 $@
12843
12844_CSEOF
12845echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12846echo >&5
12847_ACEOF
12848
12849# Files that config.status was made for.
12850if test -n "$ac_config_files"; then
12851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12852fi
12853
12854if test -n "$ac_config_headers"; then
12855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12856fi
12857
12858if test -n "$ac_config_links"; then
12859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12860fi
12861
12862if test -n "$ac_config_commands"; then
12863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12864fi
12865
12866cat >>$CONFIG_STATUS <<\_ACEOF
12867
12868ac_cs_usage="\
12869\`$as_me' instantiates files from templates according to the
12870current configuration.
12871
12872Usage: $0 [OPTIONS] [FILE]...
12873
12874 -h, --help print this help, then exit
12875 -V, --version print version number, then exit
12876 -q, --quiet do not print progress messages
12877 -d, --debug don't remove temporary files
12878 --recheck update $as_me by reconfiguring in the same conditions
12879 --file=FILE[:TEMPLATE]
12880 instantiate the configuration file FILE
12881 --header=FILE[:TEMPLATE]
12882 instantiate the configuration header FILE
12883
12884Configuration files:
12885$config_files
12886
12887Configuration headers:
12888$config_headers
12889
12890Configuration commands:
12891$config_commands
12892
12893Report bugs to <bug-autoconf@gnu.org>."
12894_ACEOF
12895
12896cat >>$CONFIG_STATUS <<_ACEOF
12897ac_cs_version="\\
12898config.status
12899configured by $0, generated by GNU Autoconf 2.59,
12900 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12901
12902Copyright (C) 2003 Free Software Foundation, Inc.
12903This config.status script is free software; the Free Software Foundation
12904gives unlimited permission to copy, distribute and modify it."
12905srcdir=$srcdir
12906_ACEOF
12907
12908cat >>$CONFIG_STATUS <<\_ACEOF
12909# If no file are specified by the user, then we need to provide default
12910# value. By we need to know if files were specified by the user.
12911ac_need_defaults=:
12912while test $# != 0
12913do
12914 case $1 in
12915 --*=*)
12916 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12917 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12918 ac_shift=:
12919 ;;
12920 -*)
12921 ac_option=$1
12922 ac_optarg=$2
12923 ac_shift=shift
12924 ;;
12925 *) # This is not an option, so the user has probably given explicit
12926 # arguments.
12927 ac_option=$1
12928 ac_need_defaults=false;;
12929 esac
12930
12931 case $ac_option in
12932 # Handling of the options.
12933_ACEOF
12934cat >>$CONFIG_STATUS <<\_ACEOF
12935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12936 ac_cs_recheck=: ;;
12937 --version | --vers* | -V )
12938 echo "$ac_cs_version"; exit 0 ;;
12939 --he | --h)
12940 # Conflict between --help and --header
12941 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12942Try \`$0 --help' for more information." >&5
12943echo "$as_me: error: ambiguous option: $1
12944Try \`$0 --help' for more information." >&2;}
12945 { (exit 1); exit 1; }; };;
12946 --help | --hel | -h )
12947 echo "$ac_cs_usage"; exit 0 ;;
12948 --debug | --d* | -d )
12949 debug=: ;;
12950 --file | --fil | --fi | --f )
12951 $ac_shift
12952 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12953 ac_need_defaults=false;;
12954 --header | --heade | --head | --hea )
12955 $ac_shift
12956 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12957 ac_need_defaults=false;;
12958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12960 ac_cs_silent=: ;;
12961
12962 # This is an error.
12963 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12964Try \`$0 --help' for more information." >&5
12965echo "$as_me: error: unrecognized option: $1
12966Try \`$0 --help' for more information." >&2;}
12967 { (exit 1); exit 1; }; } ;;
12968
12969 *) ac_config_targets="$ac_config_targets $1" ;;
12970
12971 esac
12972 shift
12973done
12974
12975ac_configure_extra_args=
12976
12977if $ac_cs_silent; then
12978 exec 6>/dev/null
12979 ac_configure_extra_args="$ac_configure_extra_args --silent"
12980fi
12981
12982_ACEOF
12983cat >>$CONFIG_STATUS <<_ACEOF
12984if \$ac_cs_recheck; then
12985 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12986 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12987fi
12988
12989_ACEOF
12990
12991cat >>$CONFIG_STATUS <<_ACEOF
12992#
12993# INIT-COMMANDS section.
12994#
12995
12996subdirs='$subdirs'
16507# Configure the subdirectories
16508# AC_CONFIG_SUBDIRS($subdirs)
16509
16510# Create the Makefile
16511# and configure language subdirectories
16512 ac_config_files="$ac_config_files $all_outputs"
16513
16514
16515 ac_config_commands="$ac_config_commands default"
16516
16517cat >confcache <<\_ACEOF
16518# This file is a shell script that caches the results of configure
16519# tests run on this system so they can be shared between configure
16520# scripts and configure runs, see configure's option --config-cache.
16521# It is not useful on other systems. If it contains results you don't
16522# want to keep, you may remove or edit it.
16523#
16524# config.status only pays attention to the cache file if you give it
16525# the --recheck option to rerun configure.
16526#
16527# `ac_cv_env_foo' variables (set or unset) will be overridden when
16528# loading this file, other *unset* `ac_cv_foo' will be assigned the
16529# following values.
16530
16531_ACEOF
16532
16533# The following way of writing the cache mishandles newlines in values,
16534# but we know of no workaround that is simple, portable, and efficient.
16535# So, don't put newlines in cache variables' values.
16536# Ultrix sh set writes to stderr and can't be redirected directly,
16537# and sets the high bit in the cache file unless we assign to the vars.
16538{
16539 (set) 2>&1 |
16540 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16541 *ac_space=\ *)
16542 # `set' does not quote correctly, so add quotes (double-quote
16543 # substitution turns \\\\ into \\, and sed turns \\ into \).
16544 sed -n \
16545 "s/'/'\\\\''/g;
16546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16547 ;;
16548 *)
16549 # `set' quotes correctly as required by POSIX, so do not add quotes.
16550 sed -n \
16551 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16552 ;;
16553 esac;
16554} |
16555 sed '
16556 t clear
16557 : clear
16558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16559 t end
16560 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16561 : end' >>confcache
16562if diff $cache_file confcache >/dev/null 2>&1; then :; else
16563 if test -w $cache_file; then
16564 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16565 cat confcache >$cache_file
16566 else
16567 echo "not updating unwritable cache $cache_file"
16568 fi
16569fi
16570rm -f confcache
16571
16572test "x$prefix" = xNONE && prefix=$ac_default_prefix
16573# Let make expand exec_prefix.
16574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16575
16576# VPATH may cause trouble with some makes, so we remove $(srcdir),
16577# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16578# trailing colons and then remove the whole line if VPATH becomes empty
16579# (actually we leave an empty line to preserve line numbers).
16580if test "x$srcdir" = x.; then
16581 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16582s/:*\$(srcdir):*/:/;
16583s/:*\${srcdir}:*/:/;
16584s/:*@srcdir@:*/:/;
16585s/^\([^=]*=[ ]*\):*/\1/;
16586s/:*$//;
16587s/^[^=]*=[ ]*$//;
16588}'
16589fi
16590
16591DEFS=-DHAVE_CONFIG_H
16592
16593ac_libobjs=
16594ac_ltlibobjs=
16595for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16596 # 1. Remove the extension, and $U if already installed.
16597 ac_i=`echo "$ac_i" |
16598 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16599 # 2. Add them.
16600 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16601 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16602done
16603LIBOBJS=$ac_libobjs
16604
16605LTLIBOBJS=$ac_ltlibobjs
16606
16607
16608
16609: ${CONFIG_STATUS=./config.status}
16610ac_clean_files_save=$ac_clean_files
16611ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16612{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16613echo "$as_me: creating $CONFIG_STATUS" >&6;}
16614cat >$CONFIG_STATUS <<_ACEOF
16615#! $SHELL
16616# Generated by $as_me.
16617# Run this file to recreate the current configuration.
16618# Compiler output produced by configure, useful for debugging
16619# configure, is in config.log if it exists.
16620
16621debug=false
16622ac_cs_recheck=false
16623ac_cs_silent=false
16624SHELL=\${CONFIG_SHELL-$SHELL}
16625_ACEOF
16626
16627cat >>$CONFIG_STATUS <<\_ACEOF
16628## --------------------- ##
16629## M4sh Initialization. ##
16630## --------------------- ##
16631
16632# Be Bourne compatible
16633if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16634 emulate sh
16635 NULLCMD=:
16636 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16637 # is contrary to our usage. Disable this feature.
16638 alias -g '${1+"$@"}'='"$@"'
16639elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16640 set -o posix
16641fi
16642DUALCASE=1; export DUALCASE # for MKS sh
16643
16644# Support unset when possible.
16645if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16646 as_unset=unset
16647else
16648 as_unset=false
16649fi
16650
16651
16652# Work around bugs in pre-3.0 UWIN ksh.
16653$as_unset ENV MAIL MAILPATH
16654PS1='$ '
16655PS2='> '
16656PS4='+ '
16657
16658# NLS nuisances.
16659for as_var in \
16660 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16661 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16662 LC_TELEPHONE LC_TIME
16663do
16664 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16665 eval $as_var=C; export $as_var
16666 else
16667 $as_unset $as_var
16668 fi
16669done
16670
16671# Required to use basename.
16672if expr a : '\(a\)' >/dev/null 2>&1; then
16673 as_expr=expr
16674else
16675 as_expr=false
16676fi
16677
16678if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16679 as_basename=basename
16680else
16681 as_basename=false
16682fi
16683
16684
16685# Name of the executable.
16686as_me=`$as_basename "$0" ||
16687$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16688 X"$0" : 'X\(//\)$' \| \
16689 X"$0" : 'X\(/\)$' \| \
16690 . : '\(.\)' 2>/dev/null ||
16691echo X/"$0" |
16692 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16693 /^X\/\(\/\/\)$/{ s//\1/; q; }
16694 /^X\/\(\/\).*/{ s//\1/; q; }
16695 s/.*/./; q'`
16696
16697
16698# PATH needs CR, and LINENO needs CR and PATH.
16699# Avoid depending upon Character Ranges.
16700as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16701as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16702as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16703as_cr_digits='0123456789'
16704as_cr_alnum=$as_cr_Letters$as_cr_digits
16705
16706# The user is always right.
16707if test "${PATH_SEPARATOR+set}" != set; then
16708 echo "#! /bin/sh" >conf$$.sh
16709 echo "exit 0" >>conf$$.sh
16710 chmod +x conf$$.sh
16711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16712 PATH_SEPARATOR=';'
16713 else
16714 PATH_SEPARATOR=:
16715 fi
16716 rm -f conf$$.sh
16717fi
16718
16719
16720 as_lineno_1=$LINENO
16721 as_lineno_2=$LINENO
16722 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16723 test "x$as_lineno_1" != "x$as_lineno_2" &&
16724 test "x$as_lineno_3" = "x$as_lineno_2" || {
16725 # Find who we are. Look in the path if we contain no path at all
16726 # relative or not.
16727 case $0 in
16728 *[\\/]* ) as_myself=$0 ;;
16729 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16730for as_dir in $PATH
16731do
16732 IFS=$as_save_IFS
16733 test -z "$as_dir" && as_dir=.
16734 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16735done
16736
16737 ;;
16738 esac
16739 # We did not find ourselves, most probably we were run as `sh COMMAND'
16740 # in which case we are not to be found in the path.
16741 if test "x$as_myself" = x; then
16742 as_myself=$0
16743 fi
16744 if test ! -f "$as_myself"; then
16745 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16746echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16747 { (exit 1); exit 1; }; }
16748 fi
16749 case $CONFIG_SHELL in
16750 '')
16751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16752for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16753do
16754 IFS=$as_save_IFS
16755 test -z "$as_dir" && as_dir=.
16756 for as_base in sh bash ksh sh5; do
16757 case $as_dir in
16758 /*)
16759 if ("$as_dir/$as_base" -c '
16760 as_lineno_1=$LINENO
16761 as_lineno_2=$LINENO
16762 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16763 test "x$as_lineno_1" != "x$as_lineno_2" &&
16764 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16765 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16766 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16767 CONFIG_SHELL=$as_dir/$as_base
16768 export CONFIG_SHELL
16769 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16770 fi;;
16771 esac
16772 done
16773done
16774;;
16775 esac
16776
16777 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16778 # uniformly replaced by the line number. The first 'sed' inserts a
16779 # line-number line before each line; the second 'sed' does the real
16780 # work. The second script uses 'N' to pair each line-number line
16781 # with the numbered line, and appends trailing '-' during
16782 # substitution so that $LINENO is not a special case at line end.
16783 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16784 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16785 sed '=' <$as_myself |
16786 sed '
16787 N
16788 s,$,-,
16789 : loop
16790 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16791 t loop
16792 s,-$,,
16793 s,^['$as_cr_digits']*\n,,
16794 ' >$as_me.lineno &&
16795 chmod +x $as_me.lineno ||
16796 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16797echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16798 { (exit 1); exit 1; }; }
16799
16800 # Don't try to exec as it changes $[0], causing all sort of problems
16801 # (the dirname of $[0] is not the place where we might find the
16802 # original and so on. Autoconf is especially sensible to this).
16803 . ./$as_me.lineno
16804 # Exit status is that of the last command.
16805 exit
16806}
16807
16808
16809case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16810 *c*,-n*) ECHO_N= ECHO_C='
16811' ECHO_T=' ' ;;
16812 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16813 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16814esac
16815
16816if expr a : '\(a\)' >/dev/null 2>&1; then
16817 as_expr=expr
16818else
16819 as_expr=false
16820fi
16821
16822rm -f conf$$ conf$$.exe conf$$.file
16823echo >conf$$.file
16824if ln -s conf$$.file conf$$ 2>/dev/null; then
16825 # We could just check for DJGPP; but this test a) works b) is more generic
16826 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16827 if test -f conf$$.exe; then
16828 # Don't use ln at all; we don't have any links
16829 as_ln_s='cp -p'
16830 else
16831 as_ln_s='ln -s'
16832 fi
16833elif ln conf$$.file conf$$ 2>/dev/null; then
16834 as_ln_s=ln
16835else
16836 as_ln_s='cp -p'
16837fi
16838rm -f conf$$ conf$$.exe conf$$.file
16839
16840if mkdir -p . 2>/dev/null; then
16841 as_mkdir_p=:
16842else
16843 test -d ./-p && rmdir ./-p
16844 as_mkdir_p=false
16845fi
16846
16847as_executable_p="test -f"
16848
16849# Sed expression to map a string onto a valid CPP name.
16850as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16851
16852# Sed expression to map a string onto a valid variable name.
16853as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16854
16855
16856# IFS
16857# We need space, tab and new line, in precisely that order.
16858as_nl='
16859'
16860IFS=" $as_nl"
16861
16862# CDPATH.
16863$as_unset CDPATH
16864
16865exec 6>&1
16866
16867# Open the log real soon, to keep \$[0] and so on meaningful, and to
16868# report actual input values of CONFIG_FILES etc. instead of their
16869# values after options handling. Logging --version etc. is OK.
16870exec 5>>config.log
16871{
16872 echo
16873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16874## Running $as_me. ##
16875_ASBOX
16876} >&5
16877cat >&5 <<_CSEOF
16878
16879This file was extended by $as_me, which was
16880generated by GNU Autoconf 2.59. Invocation command line was
16881
16882 CONFIG_FILES = $CONFIG_FILES
16883 CONFIG_HEADERS = $CONFIG_HEADERS
16884 CONFIG_LINKS = $CONFIG_LINKS
16885 CONFIG_COMMANDS = $CONFIG_COMMANDS
16886 $ $0 $@
16887
16888_CSEOF
16889echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16890echo >&5
16891_ACEOF
16892
16893# Files that config.status was made for.
16894if test -n "$ac_config_files"; then
16895 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16896fi
16897
16898if test -n "$ac_config_headers"; then
16899 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16900fi
16901
16902if test -n "$ac_config_links"; then
16903 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16904fi
16905
16906if test -n "$ac_config_commands"; then
16907 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16908fi
16909
16910cat >>$CONFIG_STATUS <<\_ACEOF
16911
16912ac_cs_usage="\
16913\`$as_me' instantiates files from templates according to the
16914current configuration.
16915
16916Usage: $0 [OPTIONS] [FILE]...
16917
16918 -h, --help print this help, then exit
16919 -V, --version print version number, then exit
16920 -q, --quiet do not print progress messages
16921 -d, --debug don't remove temporary files
16922 --recheck update $as_me by reconfiguring in the same conditions
16923 --file=FILE[:TEMPLATE]
16924 instantiate the configuration file FILE
16925 --header=FILE[:TEMPLATE]
16926 instantiate the configuration header FILE
16927
16928Configuration files:
16929$config_files
16930
16931Configuration headers:
16932$config_headers
16933
16934Configuration commands:
16935$config_commands
16936
16937Report bugs to <bug-autoconf@gnu.org>."
16938_ACEOF
16939
16940cat >>$CONFIG_STATUS <<_ACEOF
16941ac_cs_version="\\
16942config.status
16943configured by $0, generated by GNU Autoconf 2.59,
16944 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16945
16946Copyright (C) 2003 Free Software Foundation, Inc.
16947This config.status script is free software; the Free Software Foundation
16948gives unlimited permission to copy, distribute and modify it."
16949srcdir=$srcdir
16950_ACEOF
16951
16952cat >>$CONFIG_STATUS <<\_ACEOF
16953# If no file are specified by the user, then we need to provide default
16954# value. By we need to know if files were specified by the user.
16955ac_need_defaults=:
16956while test $# != 0
16957do
16958 case $1 in
16959 --*=*)
16960 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16961 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16962 ac_shift=:
16963 ;;
16964 -*)
16965 ac_option=$1
16966 ac_optarg=$2
16967 ac_shift=shift
16968 ;;
16969 *) # This is not an option, so the user has probably given explicit
16970 # arguments.
16971 ac_option=$1
16972 ac_need_defaults=false;;
16973 esac
16974
16975 case $ac_option in
16976 # Handling of the options.
16977_ACEOF
16978cat >>$CONFIG_STATUS <<\_ACEOF
16979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16980 ac_cs_recheck=: ;;
16981 --version | --vers* | -V )
16982 echo "$ac_cs_version"; exit 0 ;;
16983 --he | --h)
16984 # Conflict between --help and --header
16985 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16986Try \`$0 --help' for more information." >&5
16987echo "$as_me: error: ambiguous option: $1
16988Try \`$0 --help' for more information." >&2;}
16989 { (exit 1); exit 1; }; };;
16990 --help | --hel | -h )
16991 echo "$ac_cs_usage"; exit 0 ;;
16992 --debug | --d* | -d )
16993 debug=: ;;
16994 --file | --fil | --fi | --f )
16995 $ac_shift
16996 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16997 ac_need_defaults=false;;
16998 --header | --heade | --head | --hea )
16999 $ac_shift
17000 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17001 ac_need_defaults=false;;
17002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17004 ac_cs_silent=: ;;
17005
17006 # This is an error.
17007 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17008Try \`$0 --help' for more information." >&5
17009echo "$as_me: error: unrecognized option: $1
17010Try \`$0 --help' for more information." >&2;}
17011 { (exit 1); exit 1; }; } ;;
17012
17013 *) ac_config_targets="$ac_config_targets $1" ;;
17014
17015 esac
17016 shift
17017done
17018
17019ac_configure_extra_args=
17020
17021if $ac_cs_silent; then
17022 exec 6>/dev/null
17023 ac_configure_extra_args="$ac_configure_extra_args --silent"
17024fi
17025
17026_ACEOF
17027cat >>$CONFIG_STATUS <<_ACEOF
17028if \$ac_cs_recheck; then
17029 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17030 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17031fi
17032
17033_ACEOF
17034
17035cat >>$CONFIG_STATUS <<_ACEOF
17036#
17037# INIT-COMMANDS section.
17038#
17039
17040subdirs='$subdirs'
12997symbolic_link='$symbolic_link'
12998
17041
12999
13000_ACEOF
13001
13002
13003
13004cat >>$CONFIG_STATUS <<\_ACEOF
13005for ac_config_target in $ac_config_targets
13006do
13007 case "$ac_config_target" in
13008 # Handling of arguments.
13009 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13010 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13011 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13012 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13013echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13014 { (exit 1); exit 1; }; };;
13015 esac
13016done
13017
13018# If the user did not use the arguments to specify the items to instantiate,
13019# then the envvar interface is used. Set only those that are not.
13020# We use the long form for the default assignment because of an extremely
13021# bizarre bug on SunOS 4.1.3.
13022if $ac_need_defaults; then
13023 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13024 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13025 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13026fi
13027
13028# Have a temporary directory for convenience. Make it in the build tree
13029# simply because there is no reason to put it here, and in addition,
13030# creating and moving files from /tmp can sometimes cause problems.
13031# Create a temporary directory, and hook for its removal unless debugging.
13032$debug ||
13033{
13034 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13035 trap '{ (exit 1); exit 1; }' 1 2 13 15
13036}
13037
13038# Create a (secure) tmp directory for tmp files.
13039
13040{
13041 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13042 test -n "$tmp" && test -d "$tmp"
13043} ||
13044{
13045 tmp=./confstat$$-$RANDOM
13046 (umask 077 && mkdir $tmp)
13047} ||
13048{
13049 echo "$me: cannot create a temporary directory in ." >&2
13050 { (exit 1); exit 1; }
13051}
13052
13053_ACEOF
13054
13055cat >>$CONFIG_STATUS <<_ACEOF
13056
13057#
13058# CONFIG_FILES section.
13059#
13060
13061# No need to generate the scripts if there are no CONFIG_FILES.
13062# This happens for instance when ./config.status config.h
13063if test -n "\$CONFIG_FILES"; then
13064 # Protect against being on the right side of a sed subst in config.status.
13065 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13066 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13067s,@SHELL@,$SHELL,;t t
13068s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13069s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13070s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13071s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13072s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13073s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13074s,@exec_prefix@,$exec_prefix,;t t
13075s,@prefix@,$prefix,;t t
13076s,@program_transform_name@,$program_transform_name,;t t
13077s,@bindir@,$bindir,;t t
13078s,@sbindir@,$sbindir,;t t
13079s,@libexecdir@,$libexecdir,;t t
13080s,@datadir@,$datadir,;t t
13081s,@sysconfdir@,$sysconfdir,;t t
13082s,@sharedstatedir@,$sharedstatedir,;t t
13083s,@localstatedir@,$localstatedir,;t t
13084s,@libdir@,$libdir,;t t
13085s,@includedir@,$includedir,;t t
13086s,@oldincludedir@,$oldincludedir,;t t
13087s,@infodir@,$infodir,;t t
13088s,@mandir@,$mandir,;t t
13089s,@build_alias@,$build_alias,;t t
13090s,@host_alias@,$host_alias,;t t
13091s,@target_alias@,$target_alias,;t t
13092s,@DEFS@,$DEFS,;t t
13093s,@ECHO_C@,$ECHO_C,;t t
13094s,@ECHO_N@,$ECHO_N,;t t
13095s,@ECHO_T@,$ECHO_T,;t t
13096s,@LIBS@,$LIBS,;t t
13097s,@build@,$build,;t t
13098s,@build_cpu@,$build_cpu,;t t
13099s,@build_vendor@,$build_vendor,;t t
13100s,@build_os@,$build_os,;t t
13101s,@host@,$host,;t t
13102s,@host_cpu@,$host_cpu,;t t
13103s,@host_vendor@,$host_vendor,;t t
13104s,@host_os@,$host_os,;t t
13105s,@target@,$target,;t t
13106s,@target_cpu@,$target_cpu,;t t
13107s,@target_vendor@,$target_vendor,;t t
13108s,@target_os@,$target_os,;t t
17042_ACEOF
17043
17044
17045
17046cat >>$CONFIG_STATUS <<\_ACEOF
17047for ac_config_target in $ac_config_targets
17048do
17049 case "$ac_config_target" in
17050 # Handling of arguments.
17051 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17052 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17053 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17054 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17055echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17056 { (exit 1); exit 1; }; };;
17057 esac
17058done
17059
17060# If the user did not use the arguments to specify the items to instantiate,
17061# then the envvar interface is used. Set only those that are not.
17062# We use the long form for the default assignment because of an extremely
17063# bizarre bug on SunOS 4.1.3.
17064if $ac_need_defaults; then
17065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17067 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17068fi
17069
17070# Have a temporary directory for convenience. Make it in the build tree
17071# simply because there is no reason to put it here, and in addition,
17072# creating and moving files from /tmp can sometimes cause problems.
17073# Create a temporary directory, and hook for its removal unless debugging.
17074$debug ||
17075{
17076 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17077 trap '{ (exit 1); exit 1; }' 1 2 13 15
17078}
17079
17080# Create a (secure) tmp directory for tmp files.
17081
17082{
17083 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17084 test -n "$tmp" && test -d "$tmp"
17085} ||
17086{
17087 tmp=./confstat$$-$RANDOM
17088 (umask 077 && mkdir $tmp)
17089} ||
17090{
17091 echo "$me: cannot create a temporary directory in ." >&2
17092 { (exit 1); exit 1; }
17093}
17094
17095_ACEOF
17096
17097cat >>$CONFIG_STATUS <<_ACEOF
17098
17099#
17100# CONFIG_FILES section.
17101#
17102
17103# No need to generate the scripts if there are no CONFIG_FILES.
17104# This happens for instance when ./config.status config.h
17105if test -n "\$CONFIG_FILES"; then
17106 # Protect against being on the right side of a sed subst in config.status.
17107 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17108 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17109s,@SHELL@,$SHELL,;t t
17110s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17111s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17112s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17113s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17114s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17115s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17116s,@exec_prefix@,$exec_prefix,;t t
17117s,@prefix@,$prefix,;t t
17118s,@program_transform_name@,$program_transform_name,;t t
17119s,@bindir@,$bindir,;t t
17120s,@sbindir@,$sbindir,;t t
17121s,@libexecdir@,$libexecdir,;t t
17122s,@datadir@,$datadir,;t t
17123s,@sysconfdir@,$sysconfdir,;t t
17124s,@sharedstatedir@,$sharedstatedir,;t t
17125s,@localstatedir@,$localstatedir,;t t
17126s,@libdir@,$libdir,;t t
17127s,@includedir@,$includedir,;t t
17128s,@oldincludedir@,$oldincludedir,;t t
17129s,@infodir@,$infodir,;t t
17130s,@mandir@,$mandir,;t t
17131s,@build_alias@,$build_alias,;t t
17132s,@host_alias@,$host_alias,;t t
17133s,@target_alias@,$target_alias,;t t
17134s,@DEFS@,$DEFS,;t t
17135s,@ECHO_C@,$ECHO_C,;t t
17136s,@ECHO_N@,$ECHO_N,;t t
17137s,@ECHO_T@,$ECHO_T,;t t
17138s,@LIBS@,$LIBS,;t t
17139s,@build@,$build,;t t
17140s,@build_cpu@,$build_cpu,;t t
17141s,@build_vendor@,$build_vendor,;t t
17142s,@build_os@,$build_os,;t t
17143s,@host@,$host,;t t
17144s,@host_cpu@,$host_cpu,;t t
17145s,@host_vendor@,$host_vendor,;t t
17146s,@host_os@,$host_os,;t t
17147s,@target@,$target,;t t
17148s,@target_cpu@,$target_cpu,;t t
17149s,@target_vendor@,$target_vendor,;t t
17150s,@target_os@,$target_os,;t t
17151s,@target_noncanonical@,$target_noncanonical,;t t
17152s,@build_libsubdir@,$build_libsubdir,;t t
13109s,@build_subdir@,$build_subdir,;t t
13110s,@host_subdir@,$host_subdir,;t t
13111s,@target_subdir@,$target_subdir,;t t
13112s,@GENINSRC@,$GENINSRC,;t t
13113s,@CC@,$CC,;t t
13114s,@CFLAGS@,$CFLAGS,;t t
13115s,@LDFLAGS@,$LDFLAGS,;t t
13116s,@CPPFLAGS@,$CPPFLAGS,;t t
13117s,@ac_ct_CC@,$ac_ct_CC,;t t
13118s,@EXEEXT@,$EXEEXT,;t t
13119s,@OBJEXT@,$OBJEXT,;t t
13120s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13121s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13122s,@CPP@,$CPP,;t t
17153s,@build_subdir@,$build_subdir,;t t
17154s,@host_subdir@,$host_subdir,;t t
17155s,@target_subdir@,$target_subdir,;t t
17156s,@GENINSRC@,$GENINSRC,;t t
17157s,@CC@,$CC,;t t
17158s,@CFLAGS@,$CFLAGS,;t t
17159s,@LDFLAGS@,$LDFLAGS,;t t
17160s,@CPPFLAGS@,$CPPFLAGS,;t t
17161s,@ac_ct_CC@,$ac_ct_CC,;t t
17162s,@EXEEXT@,$EXEEXT,;t t
17163s,@OBJEXT@,$OBJEXT,;t t
17164s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17165s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17166s,@CPP@,$CPP,;t t
13123s,@GNATBIND@,$GNATBIND,;t t
13124s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
17167s,@EGREP@,$EGREP,;t t
13125s,@strict1_warn@,$strict1_warn,;t t
17168s,@strict1_warn@,$strict1_warn,;t t
17169s,@cxx_compat_warn@,$cxx_compat_warn,;t t
13126s,@warn_cflags@,$warn_cflags,;t t
13127s,@WERROR@,$WERROR,;t t
13128s,@nocommon_flag@,$nocommon_flag,;t t
17170s,@warn_cflags@,$warn_cflags,;t t
17171s,@WERROR@,$WERROR,;t t
17172s,@nocommon_flag@,$nocommon_flag,;t t
13129s,@EGREP@,$EGREP,;t t
17173s,@TREEBROWSER@,$TREEBROWSER,;t t
13130s,@valgrind_path@,$valgrind_path,;t t
13131s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13132s,@valgrind_command@,$valgrind_command,;t t
13133s,@coverage_flags@,$coverage_flags,;t t
13134s,@enable_multilib@,$enable_multilib,;t t
17174s,@valgrind_path@,$valgrind_path,;t t
17175s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17176s,@valgrind_command@,$valgrind_command,;t t
17177s,@coverage_flags@,$coverage_flags,;t t
17178s,@enable_multilib@,$enable_multilib,;t t
17179s,@enable_decimal_float@,$enable_decimal_float,;t t
13135s,@enable_shared@,$enable_shared,;t t
13136s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13137s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13138s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13139s,@onestep@,$onestep,;t t
17180s,@enable_shared@,$enable_shared,;t t
17181s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17182s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17183s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17184s,@onestep@,$onestep,;t t
17185s,@datarootdir@,$datarootdir,;t t
17186s,@docdir@,$docdir,;t t
17187s,@htmldir@,$htmldir,;t t
13140s,@SET_MAKE@,$SET_MAKE,;t t
13141s,@AWK@,$AWK,;t t
17188s,@SET_MAKE@,$SET_MAKE,;t t
17189s,@AWK@,$AWK,;t t
13142s,@LN@,$LN,;t t
13143s,@LN_S@,$LN_S,;t t
17190s,@LN_S@,$LN_S,;t t
17191s,@LN@,$LN,;t t
13144s,@RANLIB@,$RANLIB,;t t
13145s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17192s,@RANLIB@,$RANLIB,;t t
17193s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17194s,@ranlib_flags@,$ranlib_flags,;t t
13146s,@INSTALL@,$INSTALL,;t t
13147s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13148s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13149s,@make_compare_target@,$make_compare_target,;t t
13150s,@have_mktemp_command@,$have_mktemp_command,;t t
13151s,@MAKEINFO@,$MAKEINFO,;t t
13152s,@BUILD_INFO@,$BUILD_INFO,;t t
13153s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13154s,@FLEX@,$FLEX,;t t
13155s,@BISON@,$BISON,;t t
17195s,@INSTALL@,$INSTALL,;t t
17196s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17197s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17198s,@make_compare_target@,$make_compare_target,;t t
17199s,@have_mktemp_command@,$have_mktemp_command,;t t
17200s,@MAKEINFO@,$MAKEINFO,;t t
17201s,@BUILD_INFO@,$BUILD_INFO,;t t
17202s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17203s,@FLEX@,$FLEX,;t t
17204s,@BISON@,$BISON,;t t
17205s,@NM@,$NM,;t t
17206s,@AR@,$AR,;t t
13156s,@stage1_cflags@,$stage1_cflags,;t t
13157s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13158s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13159s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13160s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13161s,@LIBICONV@,$LIBICONV,;t t
17207s,@stage1_cflags@,$stage1_cflags,;t t
17208s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17209s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17210s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17211s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17212s,@LIBICONV@,$LIBICONV,;t t
17213s,@LTLIBICONV@,$LTLIBICONV,;t t
13162s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13163s,@manext@,$manext,;t t
13164s,@objext@,$objext,;t t
17214s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17215s,@manext@,$manext,;t t
17216s,@objext@,$objext,;t t
17217s,@gthread_flags@,$gthread_flags,;t t
13165s,@extra_modes_file@,$extra_modes_file,;t t
17218s,@extra_modes_file@,$extra_modes_file,;t t
13166s,@FORBUILD@,$FORBUILD,;t t
13167s,@PACKAGE@,$PACKAGE,;t t
13168s,@VERSION@,$VERSION,;t t
17219s,@extra_opt_files@,$extra_opt_files,;t t
13169s,@USE_NLS@,$USE_NLS,;t t
13170s,@LIBINTL@,$LIBINTL,;t t
13171s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13172s,@INCINTL@,$INCINTL,;t t
13173s,@XGETTEXT@,$XGETTEXT,;t t
13174s,@GMSGFMT@,$GMSGFMT,;t t
13175s,@POSUB@,$POSUB,;t t
13176s,@CATALOGS@,$CATALOGS,;t t
17220s,@USE_NLS@,$USE_NLS,;t t
17221s,@LIBINTL@,$LIBINTL,;t t
17222s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17223s,@INCINTL@,$INCINTL,;t t
17224s,@XGETTEXT@,$XGETTEXT,;t t
17225s,@GMSGFMT@,$GMSGFMT,;t t
17226s,@POSUB@,$POSUB,;t t
17227s,@CATALOGS@,$CATALOGS,;t t
17228s,@DATADIRNAME@,$DATADIRNAME,;t t
17229s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17230s,@GENCAT@,$GENCAT,;t t
17231s,@CATOBJEXT@,$CATOBJEXT,;t t
17232s,@host_cc_for_libada@,$host_cc_for_libada,;t t
13177s,@CROSS@,$CROSS,;t t
13178s,@ALL@,$ALL,;t t
13179s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13180s,@inhibit_libc@,$inhibit_libc,;t t
17233s,@CROSS@,$CROSS,;t t
17234s,@ALL@,$ALL,;t t
17235s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17236s,@inhibit_libc@,$inhibit_libc,;t t
13181s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13182s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13183s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13184s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13185s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13186s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17237s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17238s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17239s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17240s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17241s,@collect2@,$collect2,;t t
17242s,@gcc_cv_as@,$gcc_cv_as,;t t
17243s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17244s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17245s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17246s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17247s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17248s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
13187s,@libgcc_visibility@,$libgcc_visibility,;t t
17249s,@libgcc_visibility@,$libgcc_visibility,;t t
13188s,@gthread_flags@,$gthread_flags,;t t
13189s,@GGC@,$GGC,;t t
13190s,@zlibdir@,$zlibdir,;t t
13191s,@zlibinc@,$zlibinc,;t t
13192s,@MAINT@,$MAINT,;t t
13193s,@gcc_tooldir@,$gcc_tooldir,;t t
13194s,@dollar@,$dollar,;t t
13195s,@slibdir@,$slibdir,;t t
13196s,@objdir@,$objdir,;t t
13197s,@subdirs@,$subdirs,;t t
13198s,@srcdir@,$srcdir,;t t
13199s,@all_boot_languages@,$all_boot_languages,;t t
13200s,@all_compilers@,$all_compilers,;t t
13201s,@all_gtfiles@,$all_gtfiles,;t t
13202s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13203s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13204s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13205s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13206s,@all_languages@,$all_languages,;t t
17250s,@GGC@,$GGC,;t t
17251s,@zlibdir@,$zlibdir,;t t
17252s,@zlibinc@,$zlibinc,;t t
17253s,@MAINT@,$MAINT,;t t
17254s,@gcc_tooldir@,$gcc_tooldir,;t t
17255s,@dollar@,$dollar,;t t
17256s,@slibdir@,$slibdir,;t t
17257s,@objdir@,$objdir,;t t
17258s,@subdirs@,$subdirs,;t t
17259s,@srcdir@,$srcdir,;t t
17260s,@all_boot_languages@,$all_boot_languages,;t t
17261s,@all_compilers@,$all_compilers,;t t
17262s,@all_gtfiles@,$all_gtfiles,;t t
17263s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17264s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17265s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17266s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17267s,@all_languages@,$all_languages,;t t
17268s,@all_selected_languages@,$all_selected_languages,;t t
13207s,@all_stagestuff@,$all_stagestuff,;t t
13208s,@build_exeext@,$build_exeext,;t t
13209s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13210s,@build_xm_file_list@,$build_xm_file_list,;t t
13211s,@build_xm_include_list@,$build_xm_include_list,;t t
13212s,@build_xm_defines@,$build_xm_defines,;t t
13213s,@check_languages@,$check_languages,;t t
13214s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13215s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13216s,@cpp_install_dir@,$cpp_install_dir,;t t
13217s,@xmake_file@,$xmake_file,;t t
13218s,@tmake_file@,$tmake_file,;t t
13219s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13220s,@extra_headers_list@,$extra_headers_list,;t t
13221s,@extra_objs@,$extra_objs,;t t
13222s,@extra_parts@,$extra_parts,;t t
13223s,@extra_passes@,$extra_passes,;t t
13224s,@extra_programs@,$extra_programs,;t t
13225s,@float_h_file@,$float_h_file,;t t
13226s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13227s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17269s,@all_stagestuff@,$all_stagestuff,;t t
17270s,@build_exeext@,$build_exeext,;t t
17271s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17272s,@build_xm_file_list@,$build_xm_file_list,;t t
17273s,@build_xm_include_list@,$build_xm_include_list,;t t
17274s,@build_xm_defines@,$build_xm_defines,;t t
17275s,@check_languages@,$check_languages,;t t
17276s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17277s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17278s,@cpp_install_dir@,$cpp_install_dir,;t t
17279s,@xmake_file@,$xmake_file,;t t
17280s,@tmake_file@,$tmake_file,;t t
17281s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17282s,@extra_headers_list@,$extra_headers_list,;t t
17283s,@extra_objs@,$extra_objs,;t t
17284s,@extra_parts@,$extra_parts,;t t
17285s,@extra_passes@,$extra_passes,;t t
17286s,@extra_programs@,$extra_programs,;t t
17287s,@float_h_file@,$float_h_file,;t t
17288s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17289s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13228s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13229s,@gcc_version@,$gcc_version,;t t
13230s,@gcc_version_full@,$gcc_version_full,;t t
13231s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13232s,@host_exeext@,$host_exeext,;t t
13233s,@host_xm_file_list@,$host_xm_file_list,;t t
13234s,@host_xm_include_list@,$host_xm_include_list,;t t
13235s,@host_xm_defines@,$host_xm_defines,;t t
13236s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13237s,@install@,$install,;t t
13238s,@lang_opt_files@,$lang_opt_files,;t t
13239s,@lang_specs_files@,$lang_specs_files,;t t
13240s,@lang_tree_files@,$lang_tree_files,;t t
13241s,@local_prefix@,$local_prefix,;t t
13242s,@md_file@,$md_file,;t t
13243s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13244s,@out_file@,$out_file,;t t
13245s,@out_object_file@,$out_object_file,;t t
13246s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13247s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17290s,@host_exeext@,$host_exeext,;t t
17291s,@host_xm_file_list@,$host_xm_file_list,;t t
17292s,@host_xm_include_list@,$host_xm_include_list,;t t
17293s,@host_xm_defines@,$host_xm_defines,;t t
17294s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17295s,@install@,$install,;t t
17296s,@lang_opt_files@,$lang_opt_files,;t t
17297s,@lang_specs_files@,$lang_specs_files,;t t
17298s,@lang_tree_files@,$lang_tree_files,;t t
17299s,@local_prefix@,$local_prefix,;t t
17300s,@md_file@,$md_file,;t t
17301s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17302s,@out_file@,$out_file,;t t
17303s,@out_object_file@,$out_object_file,;t t
17304s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17305s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13248s,@symbolic_link@,$symbolic_link,;t t
13249s,@thread_file@,$thread_file,;t t
13250s,@tm_file_list@,$tm_file_list,;t t
13251s,@tm_include_list@,$tm_include_list,;t t
13252s,@tm_defines@,$tm_defines,;t t
13253s,@tm_p_file_list@,$tm_p_file_list,;t t
13254s,@tm_p_include_list@,$tm_p_include_list,;t t
13255s,@xm_file_list@,$xm_file_list,;t t
13256s,@xm_include_list@,$xm_include_list,;t t
13257s,@xm_defines@,$xm_defines,;t t
17306s,@thread_file@,$thread_file,;t t
17307s,@tm_file_list@,$tm_file_list,;t t
17308s,@tm_include_list@,$tm_include_list,;t t
17309s,@tm_defines@,$tm_defines,;t t
17310s,@tm_p_file_list@,$tm_p_file_list,;t t
17311s,@tm_p_include_list@,$tm_p_include_list,;t t
17312s,@xm_file_list@,$xm_file_list,;t t
17313s,@xm_include_list@,$xm_include_list,;t t
17314s,@xm_defines@,$xm_defines,;t t
13258s,@target_noncanonical@,$target_noncanonical,;t t
13259s,@c_target_objs@,$c_target_objs,;t t
13260s,@cxx_target_objs@,$cxx_target_objs,;t t
13261s,@target_cpu_default@,$target_cpu_default,;t t
17315s,@c_target_objs@,$c_target_objs,;t t
17316s,@cxx_target_objs@,$cxx_target_objs,;t t
17317s,@target_cpu_default@,$target_cpu_default,;t t
13262s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
17318s,@GMPLIBS@,$GMPLIBS,;t t
17319s,@GMPINC@,$GMPINC,;t t
13263s,@LIBOBJS@,$LIBOBJS,;t t
13264s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13265/@language_hooks@/r $language_hooks
13266s,@language_hooks@,,;t t
13267CEOF
13268
13269_ACEOF
13270
13271 cat >>$CONFIG_STATUS <<\_ACEOF
13272 # Split the substitutions into bite-sized pieces for seds with
13273 # small command number limits, like on Digital OSF/1 and HP-UX.
13274 ac_max_sed_lines=48
13275 ac_sed_frag=1 # Number of current file.
13276 ac_beg=1 # First line for current file.
13277 ac_end=$ac_max_sed_lines # Line after last line for current file.
13278 ac_more_lines=:
13279 ac_sed_cmds=
13280 while $ac_more_lines; do
13281 if test $ac_beg -gt 1; then
13282 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13283 else
13284 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13285 fi
13286 if test ! -s $tmp/subs.frag; then
13287 ac_more_lines=false
13288 else
13289 # The purpose of the label and of the branching condition is to
13290 # speed up the sed processing (if there are no `@' at all, there
13291 # is no need to browse any of the substitutions).
13292 # These are the two extra sed commands mentioned above.
13293 (echo ':t
13294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13295 if test -z "$ac_sed_cmds"; then
13296 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13297 else
13298 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13299 fi
13300 ac_sed_frag=`expr $ac_sed_frag + 1`
13301 ac_beg=$ac_end
13302 ac_end=`expr $ac_end + $ac_max_sed_lines`
13303 fi
13304 done
13305 if test -z "$ac_sed_cmds"; then
13306 ac_sed_cmds=cat
13307 fi
13308fi # test -n "$CONFIG_FILES"
13309
13310_ACEOF
13311cat >>$CONFIG_STATUS <<\_ACEOF
13312for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13314 case $ac_file in
13315 - | *:- | *:-:* ) # input from stdin
13316 cat >$tmp/stdin
13317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13321 * ) ac_file_in=$ac_file.in ;;
13322 esac
13323
13324 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13327 X"$ac_file" : 'X\(//\)[^/]' \| \
13328 X"$ac_file" : 'X\(//\)$' \| \
13329 X"$ac_file" : 'X\(/\)' \| \
13330 . : '\(.\)' 2>/dev/null ||
13331echo X"$ac_file" |
13332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13334 /^X\(\/\/\)$/{ s//\1/; q; }
13335 /^X\(\/\).*/{ s//\1/; q; }
13336 s/.*/./; q'`
13337 { if $as_mkdir_p; then
13338 mkdir -p "$ac_dir"
13339 else
13340 as_dir="$ac_dir"
13341 as_dirs=
13342 while test ! -d "$as_dir"; do
13343 as_dirs="$as_dir $as_dirs"
13344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13346 X"$as_dir" : 'X\(//\)[^/]' \| \
13347 X"$as_dir" : 'X\(//\)$' \| \
13348 X"$as_dir" : 'X\(/\)' \| \
13349 . : '\(.\)' 2>/dev/null ||
13350echo X"$as_dir" |
13351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13353 /^X\(\/\/\)$/{ s//\1/; q; }
13354 /^X\(\/\).*/{ s//\1/; q; }
13355 s/.*/./; q'`
13356 done
13357 test ! -n "$as_dirs" || mkdir $as_dirs
13358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13360 { (exit 1); exit 1; }; }; }
13361
13362 ac_builddir=.
13363
13364if test "$ac_dir" != .; then
13365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13366 # A "../" for each directory in $ac_dir_suffix.
13367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13368else
13369 ac_dir_suffix= ac_top_builddir=
13370fi
13371
13372case $srcdir in
13373 .) # No --srcdir option. We are building in place.
13374 ac_srcdir=.
13375 if test -z "$ac_top_builddir"; then
13376 ac_top_srcdir=.
13377 else
13378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13379 fi ;;
13380 [\\/]* | ?:[\\/]* ) # Absolute path.
13381 ac_srcdir=$srcdir$ac_dir_suffix;
13382 ac_top_srcdir=$srcdir ;;
13383 *) # Relative path.
13384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13386esac
13387
13388# Do not use `cd foo && pwd` to compute absolute paths, because
13389# the directories may not exist.
13390case `pwd` in
13391.) ac_abs_builddir="$ac_dir";;
13392*)
13393 case "$ac_dir" in
13394 .) ac_abs_builddir=`pwd`;;
13395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13397 esac;;
13398esac
13399case $ac_abs_builddir in
13400.) ac_abs_top_builddir=${ac_top_builddir}.;;
13401*)
13402 case ${ac_top_builddir}. in
13403 .) ac_abs_top_builddir=$ac_abs_builddir;;
13404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13406 esac;;
13407esac
13408case $ac_abs_builddir in
13409.) ac_abs_srcdir=$ac_srcdir;;
13410*)
13411 case $ac_srcdir in
13412 .) ac_abs_srcdir=$ac_abs_builddir;;
13413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13415 esac;;
13416esac
13417case $ac_abs_builddir in
13418.) ac_abs_top_srcdir=$ac_top_srcdir;;
13419*)
13420 case $ac_top_srcdir in
13421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13424 esac;;
13425esac
13426
13427
13428
13429 if test x"$ac_file" != x-; then
13430 { echo "$as_me:$LINENO: creating $ac_file" >&5
13431echo "$as_me: creating $ac_file" >&6;}
13432 rm -f "$ac_file"
13433 fi
13434 # Let's still pretend it is `configure' which instantiates (i.e., don't
13435 # use $as_me), people would be surprised to read:
13436 # /* config.h. Generated by config.status. */
13437 if test x"$ac_file" = x-; then
13438 configure_input=
13439 else
13440 configure_input="$ac_file. "
13441 fi
13442 configure_input=$configure_input"Generated from `echo $ac_file_in |
13443 sed 's,.*/,,'` by configure."
13444
13445 # First look for the input files in the build tree, otherwise in the
13446 # src tree.
13447 ac_file_inputs=`IFS=:
13448 for f in $ac_file_in; do
13449 case $f in
13450 -) echo $tmp/stdin ;;
13451 [\\/$]*)
13452 # Absolute (can't be DOS-style, as IFS=:)
13453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13454echo "$as_me: error: cannot find input file: $f" >&2;}
13455 { (exit 1); exit 1; }; }
13456 echo "$f";;
13457 *) # Relative
13458 if test -f "$f"; then
13459 # Build tree
13460 echo "$f"
13461 elif test -f "$srcdir/$f"; then
13462 # Source tree
13463 echo "$srcdir/$f"
13464 else
13465 # /dev/null tree
13466 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13467echo "$as_me: error: cannot find input file: $f" >&2;}
13468 { (exit 1); exit 1; }; }
13469 fi;;
13470 esac
13471 done` || { (exit 1); exit 1; }
13472_ACEOF
13473cat >>$CONFIG_STATUS <<_ACEOF
13474 sed "$ac_vpsub
13475$extrasub
13476_ACEOF
13477cat >>$CONFIG_STATUS <<\_ACEOF
13478:t
13479/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13480s,@configure_input@,$configure_input,;t t
13481s,@srcdir@,$ac_srcdir,;t t
13482s,@abs_srcdir@,$ac_abs_srcdir,;t t
13483s,@top_srcdir@,$ac_top_srcdir,;t t
13484s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13485s,@builddir@,$ac_builddir,;t t
13486s,@abs_builddir@,$ac_abs_builddir,;t t
13487s,@top_builddir@,$ac_top_builddir,;t t
13488s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13489" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13490 rm -f $tmp/stdin
13491 if test x"$ac_file" != x-; then
13492 mv $tmp/out $ac_file
13493 else
13494 cat $tmp/out
13495 rm -f $tmp/out
13496 fi
13497
13498done
13499_ACEOF
13500cat >>$CONFIG_STATUS <<\_ACEOF
13501
13502#
13503# CONFIG_HEADER section.
13504#
13505
13506# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13507# NAME is the cpp macro being defined and VALUE is the value it is being given.
13508#
13509# ac_d sets the value in "#define NAME VALUE" lines.
13510ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13511ac_dB='[ ].*$,\1#\2'
13512ac_dC=' '
13513ac_dD=',;t'
13514# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13515ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13516ac_uB='$,\1#\2define\3'
13517ac_uC=' '
13518ac_uD=',;t'
13519
13520for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13522 case $ac_file in
13523 - | *:- | *:-:* ) # input from stdin
13524 cat >$tmp/stdin
13525 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13527 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13529 * ) ac_file_in=$ac_file.in ;;
13530 esac
13531
13532 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13533echo "$as_me: creating $ac_file" >&6;}
13534
13535 # First look for the input files in the build tree, otherwise in the
13536 # src tree.
13537 ac_file_inputs=`IFS=:
13538 for f in $ac_file_in; do
13539 case $f in
13540 -) echo $tmp/stdin ;;
13541 [\\/$]*)
13542 # Absolute (can't be DOS-style, as IFS=:)
13543 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13544echo "$as_me: error: cannot find input file: $f" >&2;}
13545 { (exit 1); exit 1; }; }
13546 # Do quote $f, to prevent DOS paths from being IFS'd.
13547 echo "$f";;
13548 *) # Relative
13549 if test -f "$f"; then
13550 # Build tree
13551 echo "$f"
13552 elif test -f "$srcdir/$f"; then
13553 # Source tree
13554 echo "$srcdir/$f"
13555 else
13556 # /dev/null tree
13557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13558echo "$as_me: error: cannot find input file: $f" >&2;}
13559 { (exit 1); exit 1; }; }
13560 fi;;
13561 esac
13562 done` || { (exit 1); exit 1; }
13563 # Remove the trailing spaces.
13564 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13565
13566_ACEOF
13567
13568# Transform confdefs.h into two sed scripts, `conftest.defines' and
13569# `conftest.undefs', that substitutes the proper values into
13570# config.h.in to produce config.h. The first handles `#define'
13571# templates, and the second `#undef' templates.
13572# And first: Protect against being on the right side of a sed subst in
13573# config.status. Protect against being in an unquoted here document
13574# in config.status.
13575rm -f conftest.defines conftest.undefs
13576# Using a here document instead of a string reduces the quoting nightmare.
13577# Putting comments in sed scripts is not portable.
13578#
13579# `end' is used to avoid that the second main sed command (meant for
13580# 0-ary CPP macros) applies to n-ary macro definitions.
13581# See the Autoconf documentation for `clear'.
13582cat >confdef2sed.sed <<\_ACEOF
13583s/[\\&,]/\\&/g
13584s,[\\$`],\\&,g
13585t clear
13586: clear
13587s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13588t end
13589s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13590: end
13591_ACEOF
13592# If some macros were called several times there might be several times
13593# the same #defines, which is useless. Nevertheless, we may not want to
13594# sort them, since we want the *last* AC-DEFINE to be honored.
13595uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13596sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13597rm -f confdef2sed.sed
13598
13599# This sed command replaces #undef with comments. This is necessary, for
13600# example, in the case of _POSIX_SOURCE, which is predefined and required
13601# on some systems where configure will not decide to define it.
13602cat >>conftest.undefs <<\_ACEOF
13603s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13604_ACEOF
13605
13606# Break up conftest.defines because some shells have a limit on the size
13607# of here documents, and old seds have small limits too (100 cmds).
13608echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13609echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13610echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13611echo ' :' >>$CONFIG_STATUS
13612rm -f conftest.tail
13613while grep . conftest.defines >/dev/null
13614do
13615 # Write a limited-size here document to $tmp/defines.sed.
13616 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13617 # Speed up: don't consider the non `#define' lines.
13618 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13619 # Work around the forget-to-reset-the-flag bug.
13620 echo 't clr' >>$CONFIG_STATUS
13621 echo ': clr' >>$CONFIG_STATUS
13622 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13623 echo 'CEOF
13624 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13625 rm -f $tmp/in
13626 mv $tmp/out $tmp/in
13627' >>$CONFIG_STATUS
13628 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13629 rm -f conftest.defines
13630 mv conftest.tail conftest.defines
13631done
13632rm -f conftest.defines
13633echo ' fi # grep' >>$CONFIG_STATUS
13634echo >>$CONFIG_STATUS
13635
13636# Break up conftest.undefs because some shells have a limit on the size
13637# of here documents, and old seds have small limits too (100 cmds).
13638echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13639rm -f conftest.tail
13640while grep . conftest.undefs >/dev/null
13641do
13642 # Write a limited-size here document to $tmp/undefs.sed.
13643 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13644 # Speed up: don't consider the non `#undef'
13645 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13646 # Work around the forget-to-reset-the-flag bug.
13647 echo 't clr' >>$CONFIG_STATUS
13648 echo ': clr' >>$CONFIG_STATUS
13649 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13650 echo 'CEOF
13651 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13652 rm -f $tmp/in
13653 mv $tmp/out $tmp/in
13654' >>$CONFIG_STATUS
13655 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13656 rm -f conftest.undefs
13657 mv conftest.tail conftest.undefs
13658done
13659rm -f conftest.undefs
13660
13661cat >>$CONFIG_STATUS <<\_ACEOF
13662 # Let's still pretend it is `configure' which instantiates (i.e., don't
13663 # use $as_me), people would be surprised to read:
13664 # /* config.h. Generated by config.status. */
13665 if test x"$ac_file" = x-; then
13666 echo "/* Generated by configure. */" >$tmp/config.h
13667 else
13668 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13669 fi
13670 cat $tmp/in >>$tmp/config.h
13671 rm -f $tmp/in
13672 if test x"$ac_file" != x-; then
13673 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13674 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13675echo "$as_me: $ac_file is unchanged" >&6;}
13676 else
13677 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13678$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13679 X"$ac_file" : 'X\(//\)[^/]' \| \
13680 X"$ac_file" : 'X\(//\)$' \| \
13681 X"$ac_file" : 'X\(/\)' \| \
13682 . : '\(.\)' 2>/dev/null ||
13683echo X"$ac_file" |
13684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13686 /^X\(\/\/\)$/{ s//\1/; q; }
13687 /^X\(\/\).*/{ s//\1/; q; }
13688 s/.*/./; q'`
13689 { if $as_mkdir_p; then
13690 mkdir -p "$ac_dir"
13691 else
13692 as_dir="$ac_dir"
13693 as_dirs=
13694 while test ! -d "$as_dir"; do
13695 as_dirs="$as_dir $as_dirs"
13696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13698 X"$as_dir" : 'X\(//\)[^/]' \| \
13699 X"$as_dir" : 'X\(//\)$' \| \
13700 X"$as_dir" : 'X\(/\)' \| \
13701 . : '\(.\)' 2>/dev/null ||
13702echo X"$as_dir" |
13703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13705 /^X\(\/\/\)$/{ s//\1/; q; }
13706 /^X\(\/\).*/{ s//\1/; q; }
13707 s/.*/./; q'`
13708 done
13709 test ! -n "$as_dirs" || mkdir $as_dirs
13710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13711echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13712 { (exit 1); exit 1; }; }; }
13713
13714 rm -f $ac_file
13715 mv $tmp/config.h $ac_file
13716 fi
13717 else
13718 cat $tmp/config.h
13719 rm -f $tmp/config.h
13720 fi
13721done
13722_ACEOF
13723cat >>$CONFIG_STATUS <<\_ACEOF
13724
13725#
13726# CONFIG_COMMANDS section.
13727#
13728for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13729 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13730 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13731 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13732$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13733 X"$ac_dest" : 'X\(//\)[^/]' \| \
13734 X"$ac_dest" : 'X\(//\)$' \| \
13735 X"$ac_dest" : 'X\(/\)' \| \
13736 . : '\(.\)' 2>/dev/null ||
13737echo X"$ac_dest" |
13738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13740 /^X\(\/\/\)$/{ s//\1/; q; }
13741 /^X\(\/\).*/{ s//\1/; q; }
13742 s/.*/./; q'`
13743 { if $as_mkdir_p; then
13744 mkdir -p "$ac_dir"
13745 else
13746 as_dir="$ac_dir"
13747 as_dirs=
13748 while test ! -d "$as_dir"; do
13749 as_dirs="$as_dir $as_dirs"
13750 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13752 X"$as_dir" : 'X\(//\)[^/]' \| \
13753 X"$as_dir" : 'X\(//\)$' \| \
13754 X"$as_dir" : 'X\(/\)' \| \
13755 . : '\(.\)' 2>/dev/null ||
13756echo X"$as_dir" |
13757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13759 /^X\(\/\/\)$/{ s//\1/; q; }
13760 /^X\(\/\).*/{ s//\1/; q; }
13761 s/.*/./; q'`
13762 done
13763 test ! -n "$as_dirs" || mkdir $as_dirs
13764 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13765echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13766 { (exit 1); exit 1; }; }; }
13767
13768 ac_builddir=.
13769
13770if test "$ac_dir" != .; then
13771 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13772 # A "../" for each directory in $ac_dir_suffix.
13773 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13774else
13775 ac_dir_suffix= ac_top_builddir=
13776fi
13777
13778case $srcdir in
13779 .) # No --srcdir option. We are building in place.
13780 ac_srcdir=.
13781 if test -z "$ac_top_builddir"; then
13782 ac_top_srcdir=.
13783 else
13784 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13785 fi ;;
13786 [\\/]* | ?:[\\/]* ) # Absolute path.
13787 ac_srcdir=$srcdir$ac_dir_suffix;
13788 ac_top_srcdir=$srcdir ;;
13789 *) # Relative path.
13790 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13791 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13792esac
13793
13794# Do not use `cd foo && pwd` to compute absolute paths, because
13795# the directories may not exist.
13796case `pwd` in
13797.) ac_abs_builddir="$ac_dir";;
13798*)
13799 case "$ac_dir" in
13800 .) ac_abs_builddir=`pwd`;;
13801 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13802 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13803 esac;;
13804esac
13805case $ac_abs_builddir in
13806.) ac_abs_top_builddir=${ac_top_builddir}.;;
13807*)
13808 case ${ac_top_builddir}. in
13809 .) ac_abs_top_builddir=$ac_abs_builddir;;
13810 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13811 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13812 esac;;
13813esac
13814case $ac_abs_builddir in
13815.) ac_abs_srcdir=$ac_srcdir;;
13816*)
13817 case $ac_srcdir in
13818 .) ac_abs_srcdir=$ac_abs_builddir;;
13819 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13820 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13821 esac;;
13822esac
13823case $ac_abs_builddir in
13824.) ac_abs_top_srcdir=$ac_top_srcdir;;
13825*)
13826 case $ac_top_srcdir in
13827 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13828 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13829 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13830 esac;;
13831esac
13832
13833
13834 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13835echo "$as_me: executing $ac_dest commands" >&6;}
13836 case $ac_dest in
13837 default )
13838case ${CONFIG_HEADERS} in
13839 *auto-host.h:config.in*)
13840 echo > cstamp-h ;;
13841esac
13842# Make sure all the subdirs exist.
17320s,@LIBOBJS@,$LIBOBJS,;t t
17321s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17322/@language_hooks@/r $language_hooks
17323s,@language_hooks@,,;t t
17324CEOF
17325
17326_ACEOF
17327
17328 cat >>$CONFIG_STATUS <<\_ACEOF
17329 # Split the substitutions into bite-sized pieces for seds with
17330 # small command number limits, like on Digital OSF/1 and HP-UX.
17331 ac_max_sed_lines=48
17332 ac_sed_frag=1 # Number of current file.
17333 ac_beg=1 # First line for current file.
17334 ac_end=$ac_max_sed_lines # Line after last line for current file.
17335 ac_more_lines=:
17336 ac_sed_cmds=
17337 while $ac_more_lines; do
17338 if test $ac_beg -gt 1; then
17339 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17340 else
17341 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17342 fi
17343 if test ! -s $tmp/subs.frag; then
17344 ac_more_lines=false
17345 else
17346 # The purpose of the label and of the branching condition is to
17347 # speed up the sed processing (if there are no `@' at all, there
17348 # is no need to browse any of the substitutions).
17349 # These are the two extra sed commands mentioned above.
17350 (echo ':t
17351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17352 if test -z "$ac_sed_cmds"; then
17353 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17354 else
17355 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17356 fi
17357 ac_sed_frag=`expr $ac_sed_frag + 1`
17358 ac_beg=$ac_end
17359 ac_end=`expr $ac_end + $ac_max_sed_lines`
17360 fi
17361 done
17362 if test -z "$ac_sed_cmds"; then
17363 ac_sed_cmds=cat
17364 fi
17365fi # test -n "$CONFIG_FILES"
17366
17367_ACEOF
17368cat >>$CONFIG_STATUS <<\_ACEOF
17369for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17370 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17371 case $ac_file in
17372 - | *:- | *:-:* ) # input from stdin
17373 cat >$tmp/stdin
17374 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17375 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17376 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17377 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17378 * ) ac_file_in=$ac_file.in ;;
17379 esac
17380
17381 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17382 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17384 X"$ac_file" : 'X\(//\)[^/]' \| \
17385 X"$ac_file" : 'X\(//\)$' \| \
17386 X"$ac_file" : 'X\(/\)' \| \
17387 . : '\(.\)' 2>/dev/null ||
17388echo X"$ac_file" |
17389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17391 /^X\(\/\/\)$/{ s//\1/; q; }
17392 /^X\(\/\).*/{ s//\1/; q; }
17393 s/.*/./; q'`
17394 { if $as_mkdir_p; then
17395 mkdir -p "$ac_dir"
17396 else
17397 as_dir="$ac_dir"
17398 as_dirs=
17399 while test ! -d "$as_dir"; do
17400 as_dirs="$as_dir $as_dirs"
17401 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17402$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17403 X"$as_dir" : 'X\(//\)[^/]' \| \
17404 X"$as_dir" : 'X\(//\)$' \| \
17405 X"$as_dir" : 'X\(/\)' \| \
17406 . : '\(.\)' 2>/dev/null ||
17407echo X"$as_dir" |
17408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17410 /^X\(\/\/\)$/{ s//\1/; q; }
17411 /^X\(\/\).*/{ s//\1/; q; }
17412 s/.*/./; q'`
17413 done
17414 test ! -n "$as_dirs" || mkdir $as_dirs
17415 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17416echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17417 { (exit 1); exit 1; }; }; }
17418
17419 ac_builddir=.
17420
17421if test "$ac_dir" != .; then
17422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17423 # A "../" for each directory in $ac_dir_suffix.
17424 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17425else
17426 ac_dir_suffix= ac_top_builddir=
17427fi
17428
17429case $srcdir in
17430 .) # No --srcdir option. We are building in place.
17431 ac_srcdir=.
17432 if test -z "$ac_top_builddir"; then
17433 ac_top_srcdir=.
17434 else
17435 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17436 fi ;;
17437 [\\/]* | ?:[\\/]* ) # Absolute path.
17438 ac_srcdir=$srcdir$ac_dir_suffix;
17439 ac_top_srcdir=$srcdir ;;
17440 *) # Relative path.
17441 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17442 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17443esac
17444
17445# Do not use `cd foo && pwd` to compute absolute paths, because
17446# the directories may not exist.
17447case `pwd` in
17448.) ac_abs_builddir="$ac_dir";;
17449*)
17450 case "$ac_dir" in
17451 .) ac_abs_builddir=`pwd`;;
17452 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17453 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17454 esac;;
17455esac
17456case $ac_abs_builddir in
17457.) ac_abs_top_builddir=${ac_top_builddir}.;;
17458*)
17459 case ${ac_top_builddir}. in
17460 .) ac_abs_top_builddir=$ac_abs_builddir;;
17461 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17462 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17463 esac;;
17464esac
17465case $ac_abs_builddir in
17466.) ac_abs_srcdir=$ac_srcdir;;
17467*)
17468 case $ac_srcdir in
17469 .) ac_abs_srcdir=$ac_abs_builddir;;
17470 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17471 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17472 esac;;
17473esac
17474case $ac_abs_builddir in
17475.) ac_abs_top_srcdir=$ac_top_srcdir;;
17476*)
17477 case $ac_top_srcdir in
17478 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17479 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17480 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17481 esac;;
17482esac
17483
17484
17485
17486 if test x"$ac_file" != x-; then
17487 { echo "$as_me:$LINENO: creating $ac_file" >&5
17488echo "$as_me: creating $ac_file" >&6;}
17489 rm -f "$ac_file"
17490 fi
17491 # Let's still pretend it is `configure' which instantiates (i.e., don't
17492 # use $as_me), people would be surprised to read:
17493 # /* config.h. Generated by config.status. */
17494 if test x"$ac_file" = x-; then
17495 configure_input=
17496 else
17497 configure_input="$ac_file. "
17498 fi
17499 configure_input=$configure_input"Generated from `echo $ac_file_in |
17500 sed 's,.*/,,'` by configure."
17501
17502 # First look for the input files in the build tree, otherwise in the
17503 # src tree.
17504 ac_file_inputs=`IFS=:
17505 for f in $ac_file_in; do
17506 case $f in
17507 -) echo $tmp/stdin ;;
17508 [\\/$]*)
17509 # Absolute (can't be DOS-style, as IFS=:)
17510 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17511echo "$as_me: error: cannot find input file: $f" >&2;}
17512 { (exit 1); exit 1; }; }
17513 echo "$f";;
17514 *) # Relative
17515 if test -f "$f"; then
17516 # Build tree
17517 echo "$f"
17518 elif test -f "$srcdir/$f"; then
17519 # Source tree
17520 echo "$srcdir/$f"
17521 else
17522 # /dev/null tree
17523 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17524echo "$as_me: error: cannot find input file: $f" >&2;}
17525 { (exit 1); exit 1; }; }
17526 fi;;
17527 esac
17528 done` || { (exit 1); exit 1; }
17529_ACEOF
17530cat >>$CONFIG_STATUS <<_ACEOF
17531 sed "$ac_vpsub
17532$extrasub
17533_ACEOF
17534cat >>$CONFIG_STATUS <<\_ACEOF
17535:t
17536/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17537s,@configure_input@,$configure_input,;t t
17538s,@srcdir@,$ac_srcdir,;t t
17539s,@abs_srcdir@,$ac_abs_srcdir,;t t
17540s,@top_srcdir@,$ac_top_srcdir,;t t
17541s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17542s,@builddir@,$ac_builddir,;t t
17543s,@abs_builddir@,$ac_abs_builddir,;t t
17544s,@top_builddir@,$ac_top_builddir,;t t
17545s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17546" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17547 rm -f $tmp/stdin
17548 if test x"$ac_file" != x-; then
17549 mv $tmp/out $ac_file
17550 else
17551 cat $tmp/out
17552 rm -f $tmp/out
17553 fi
17554
17555done
17556_ACEOF
17557cat >>$CONFIG_STATUS <<\_ACEOF
17558
17559#
17560# CONFIG_HEADER section.
17561#
17562
17563# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17564# NAME is the cpp macro being defined and VALUE is the value it is being given.
17565#
17566# ac_d sets the value in "#define NAME VALUE" lines.
17567ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17568ac_dB='[ ].*$,\1#\2'
17569ac_dC=' '
17570ac_dD=',;t'
17571# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17572ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17573ac_uB='$,\1#\2define\3'
17574ac_uC=' '
17575ac_uD=',;t'
17576
17577for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17579 case $ac_file in
17580 - | *:- | *:-:* ) # input from stdin
17581 cat >$tmp/stdin
17582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17586 * ) ac_file_in=$ac_file.in ;;
17587 esac
17588
17589 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17590echo "$as_me: creating $ac_file" >&6;}
17591
17592 # First look for the input files in the build tree, otherwise in the
17593 # src tree.
17594 ac_file_inputs=`IFS=:
17595 for f in $ac_file_in; do
17596 case $f in
17597 -) echo $tmp/stdin ;;
17598 [\\/$]*)
17599 # Absolute (can't be DOS-style, as IFS=:)
17600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17601echo "$as_me: error: cannot find input file: $f" >&2;}
17602 { (exit 1); exit 1; }; }
17603 # Do quote $f, to prevent DOS paths from being IFS'd.
17604 echo "$f";;
17605 *) # Relative
17606 if test -f "$f"; then
17607 # Build tree
17608 echo "$f"
17609 elif test -f "$srcdir/$f"; then
17610 # Source tree
17611 echo "$srcdir/$f"
17612 else
17613 # /dev/null tree
17614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17615echo "$as_me: error: cannot find input file: $f" >&2;}
17616 { (exit 1); exit 1; }; }
17617 fi;;
17618 esac
17619 done` || { (exit 1); exit 1; }
17620 # Remove the trailing spaces.
17621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17622
17623_ACEOF
17624
17625# Transform confdefs.h into two sed scripts, `conftest.defines' and
17626# `conftest.undefs', that substitutes the proper values into
17627# config.h.in to produce config.h. The first handles `#define'
17628# templates, and the second `#undef' templates.
17629# And first: Protect against being on the right side of a sed subst in
17630# config.status. Protect against being in an unquoted here document
17631# in config.status.
17632rm -f conftest.defines conftest.undefs
17633# Using a here document instead of a string reduces the quoting nightmare.
17634# Putting comments in sed scripts is not portable.
17635#
17636# `end' is used to avoid that the second main sed command (meant for
17637# 0-ary CPP macros) applies to n-ary macro definitions.
17638# See the Autoconf documentation for `clear'.
17639cat >confdef2sed.sed <<\_ACEOF
17640s/[\\&,]/\\&/g
17641s,[\\$`],\\&,g
17642t clear
17643: clear
17644s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17645t end
17646s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17647: end
17648_ACEOF
17649# If some macros were called several times there might be several times
17650# the same #defines, which is useless. Nevertheless, we may not want to
17651# sort them, since we want the *last* AC-DEFINE to be honored.
17652uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17653sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17654rm -f confdef2sed.sed
17655
17656# This sed command replaces #undef with comments. This is necessary, for
17657# example, in the case of _POSIX_SOURCE, which is predefined and required
17658# on some systems where configure will not decide to define it.
17659cat >>conftest.undefs <<\_ACEOF
17660s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17661_ACEOF
17662
17663# Break up conftest.defines because some shells have a limit on the size
17664# of here documents, and old seds have small limits too (100 cmds).
17665echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17666echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17667echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17668echo ' :' >>$CONFIG_STATUS
17669rm -f conftest.tail
17670while grep . conftest.defines >/dev/null
17671do
17672 # Write a limited-size here document to $tmp/defines.sed.
17673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17674 # Speed up: don't consider the non `#define' lines.
17675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17676 # Work around the forget-to-reset-the-flag bug.
17677 echo 't clr' >>$CONFIG_STATUS
17678 echo ': clr' >>$CONFIG_STATUS
17679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17680 echo 'CEOF
17681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17682 rm -f $tmp/in
17683 mv $tmp/out $tmp/in
17684' >>$CONFIG_STATUS
17685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17686 rm -f conftest.defines
17687 mv conftest.tail conftest.defines
17688done
17689rm -f conftest.defines
17690echo ' fi # grep' >>$CONFIG_STATUS
17691echo >>$CONFIG_STATUS
17692
17693# Break up conftest.undefs because some shells have a limit on the size
17694# of here documents, and old seds have small limits too (100 cmds).
17695echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17696rm -f conftest.tail
17697while grep . conftest.undefs >/dev/null
17698do
17699 # Write a limited-size here document to $tmp/undefs.sed.
17700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#undef'
17702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17707 echo 'CEOF
17708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17709 rm -f $tmp/in
17710 mv $tmp/out $tmp/in
17711' >>$CONFIG_STATUS
17712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17713 rm -f conftest.undefs
17714 mv conftest.tail conftest.undefs
17715done
17716rm -f conftest.undefs
17717
17718cat >>$CONFIG_STATUS <<\_ACEOF
17719 # Let's still pretend it is `configure' which instantiates (i.e., don't
17720 # use $as_me), people would be surprised to read:
17721 # /* config.h. Generated by config.status. */
17722 if test x"$ac_file" = x-; then
17723 echo "/* Generated by configure. */" >$tmp/config.h
17724 else
17725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17726 fi
17727 cat $tmp/in >>$tmp/config.h
17728 rm -f $tmp/in
17729 if test x"$ac_file" != x-; then
17730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17732echo "$as_me: $ac_file is unchanged" >&6;}
17733 else
17734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17736 X"$ac_file" : 'X\(//\)[^/]' \| \
17737 X"$ac_file" : 'X\(//\)$' \| \
17738 X"$ac_file" : 'X\(/\)' \| \
17739 . : '\(.\)' 2>/dev/null ||
17740echo X"$ac_file" |
17741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17743 /^X\(\/\/\)$/{ s//\1/; q; }
17744 /^X\(\/\).*/{ s//\1/; q; }
17745 s/.*/./; q'`
17746 { if $as_mkdir_p; then
17747 mkdir -p "$ac_dir"
17748 else
17749 as_dir="$ac_dir"
17750 as_dirs=
17751 while test ! -d "$as_dir"; do
17752 as_dirs="$as_dir $as_dirs"
17753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17755 X"$as_dir" : 'X\(//\)[^/]' \| \
17756 X"$as_dir" : 'X\(//\)$' \| \
17757 X"$as_dir" : 'X\(/\)' \| \
17758 . : '\(.\)' 2>/dev/null ||
17759echo X"$as_dir" |
17760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17762 /^X\(\/\/\)$/{ s//\1/; q; }
17763 /^X\(\/\).*/{ s//\1/; q; }
17764 s/.*/./; q'`
17765 done
17766 test ! -n "$as_dirs" || mkdir $as_dirs
17767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17768echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17769 { (exit 1); exit 1; }; }; }
17770
17771 rm -f $ac_file
17772 mv $tmp/config.h $ac_file
17773 fi
17774 else
17775 cat $tmp/config.h
17776 rm -f $tmp/config.h
17777 fi
17778done
17779_ACEOF
17780cat >>$CONFIG_STATUS <<\_ACEOF
17781
17782#
17783# CONFIG_COMMANDS section.
17784#
17785for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17786 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17787 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17788 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17789$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17790 X"$ac_dest" : 'X\(//\)[^/]' \| \
17791 X"$ac_dest" : 'X\(//\)$' \| \
17792 X"$ac_dest" : 'X\(/\)' \| \
17793 . : '\(.\)' 2>/dev/null ||
17794echo X"$ac_dest" |
17795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17797 /^X\(\/\/\)$/{ s//\1/; q; }
17798 /^X\(\/\).*/{ s//\1/; q; }
17799 s/.*/./; q'`
17800 { if $as_mkdir_p; then
17801 mkdir -p "$ac_dir"
17802 else
17803 as_dir="$ac_dir"
17804 as_dirs=
17805 while test ! -d "$as_dir"; do
17806 as_dirs="$as_dir $as_dirs"
17807 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17808$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17809 X"$as_dir" : 'X\(//\)[^/]' \| \
17810 X"$as_dir" : 'X\(//\)$' \| \
17811 X"$as_dir" : 'X\(/\)' \| \
17812 . : '\(.\)' 2>/dev/null ||
17813echo X"$as_dir" |
17814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17816 /^X\(\/\/\)$/{ s//\1/; q; }
17817 /^X\(\/\).*/{ s//\1/; q; }
17818 s/.*/./; q'`
17819 done
17820 test ! -n "$as_dirs" || mkdir $as_dirs
17821 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17822echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17823 { (exit 1); exit 1; }; }; }
17824
17825 ac_builddir=.
17826
17827if test "$ac_dir" != .; then
17828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17829 # A "../" for each directory in $ac_dir_suffix.
17830 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17831else
17832 ac_dir_suffix= ac_top_builddir=
17833fi
17834
17835case $srcdir in
17836 .) # No --srcdir option. We are building in place.
17837 ac_srcdir=.
17838 if test -z "$ac_top_builddir"; then
17839 ac_top_srcdir=.
17840 else
17841 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17842 fi ;;
17843 [\\/]* | ?:[\\/]* ) # Absolute path.
17844 ac_srcdir=$srcdir$ac_dir_suffix;
17845 ac_top_srcdir=$srcdir ;;
17846 *) # Relative path.
17847 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17848 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17849esac
17850
17851# Do not use `cd foo && pwd` to compute absolute paths, because
17852# the directories may not exist.
17853case `pwd` in
17854.) ac_abs_builddir="$ac_dir";;
17855*)
17856 case "$ac_dir" in
17857 .) ac_abs_builddir=`pwd`;;
17858 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17859 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17860 esac;;
17861esac
17862case $ac_abs_builddir in
17863.) ac_abs_top_builddir=${ac_top_builddir}.;;
17864*)
17865 case ${ac_top_builddir}. in
17866 .) ac_abs_top_builddir=$ac_abs_builddir;;
17867 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17868 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17869 esac;;
17870esac
17871case $ac_abs_builddir in
17872.) ac_abs_srcdir=$ac_srcdir;;
17873*)
17874 case $ac_srcdir in
17875 .) ac_abs_srcdir=$ac_abs_builddir;;
17876 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17877 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17878 esac;;
17879esac
17880case $ac_abs_builddir in
17881.) ac_abs_top_srcdir=$ac_top_srcdir;;
17882*)
17883 case $ac_top_srcdir in
17884 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17885 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17886 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17887 esac;;
17888esac
17889
17890
17891 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17892echo "$as_me: executing $ac_dest commands" >&6;}
17893 case $ac_dest in
17894 default )
17895case ${CONFIG_HEADERS} in
17896 *auto-host.h:config.in*)
17897 echo > cstamp-h ;;
17898esac
17899# Make sure all the subdirs exist.
13843for d in $subdirs
17900for d in $subdirs doc build
13844do
13845 test -d $d || mkdir $d
13846done
13847# If the host supports symlinks, point stage[1234] at ../stage[1234] so
13848# bootstrapping and the installation procedure can still use
13849# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13850# FLAGS_TO_PASS has been modified to solve the problem there.
13851# This is virtually a duplicate of what happens in configure.lang; we do
13852# an extra check to make sure this only happens if ln -s can be used.
17901do
17902 test -d $d || mkdir $d
17903done
17904# If the host supports symlinks, point stage[1234] at ../stage[1234] so
17905# bootstrapping and the installation procedure can still use
17906# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17907# FLAGS_TO_PASS has been modified to solve the problem there.
17908# This is virtually a duplicate of what happens in configure.lang; we do
17909# an extra check to make sure this only happens if ln -s can be used.
13853if test "$symbolic_link" = "ln -s"; then
13854 for d in ${subdirs} fixinc ; do
17910case "$LN_S" in
17911 *-s*)
17912 for d in ${subdirs} ; do
13855 STARTDIR=`${PWDCMD-pwd}`
13856 cd $d
13857 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13858 do
13859 rm -f $t
17913 STARTDIR=`${PWDCMD-pwd}`
17914 cd $d
17915 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17916 do
17917 rm -f $t
13860 $symbolic_link ../$t $t 2>/dev/null
17918 $LN_S ../$t $t 2>/dev/null
13861 done
13862 cd $STARTDIR
17919 done
17920 cd $STARTDIR
13863 done
13864else true ; fi
17921 done
17922 ;;
17923esac
13865 ;;
13866 esac
13867done
13868_ACEOF
13869
13870cat >>$CONFIG_STATUS <<\_ACEOF
13871
13872{ (exit 0); exit 0; }
13873_ACEOF
13874chmod +x $CONFIG_STATUS
13875ac_clean_files=$ac_clean_files_save
13876
13877
13878# configure is writing to config.log, and then calls config.status.
13879# config.status does its own redirection, appending to config.log.
13880# Unfortunately, on DOS this fails, as config.log is still kept open
13881# by configure, so config.status won't be able to write to it; its
13882# output is simply discarded. So we exec the FD to /dev/null,
13883# effectively closing config.log, so it can be properly (re)opened and
13884# appended to by config.status. When coming back to configure, we
13885# need to make the FD available again.
13886if test "$no_create" != yes; then
13887 ac_cs_success=:
13888 ac_config_status_args=
13889 test "$silent" = yes &&
13890 ac_config_status_args="$ac_config_status_args --quiet"
13891 exec 5>/dev/null
13892 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13893 exec 5>>config.log
13894 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13895 # would make configure fail if this is the last instruction.
13896 $ac_cs_success || { (exit 1); exit 1; }
13897fi
13898
17924 ;;
17925 esac
17926done
17927_ACEOF
17928
17929cat >>$CONFIG_STATUS <<\_ACEOF
17930
17931{ (exit 0); exit 0; }
17932_ACEOF
17933chmod +x $CONFIG_STATUS
17934ac_clean_files=$ac_clean_files_save
17935
17936
17937# configure is writing to config.log, and then calls config.status.
17938# config.status does its own redirection, appending to config.log.
17939# Unfortunately, on DOS this fails, as config.log is still kept open
17940# by configure, so config.status won't be able to write to it; its
17941# output is simply discarded. So we exec the FD to /dev/null,
17942# effectively closing config.log, so it can be properly (re)opened and
17943# appended to by config.status. When coming back to configure, we
17944# need to make the FD available again.
17945if test "$no_create" != yes; then
17946 ac_cs_success=:
17947 ac_config_status_args=
17948 test "$silent" = yes &&
17949 ac_config_status_args="$ac_config_status_args --quiet"
17950 exec 5>/dev/null
17951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17952 exec 5>>config.log
17953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17954 # would make configure fail if this is the last instruction.
17955 $ac_cs_success || { (exit 1); exit 1; }
17956fi
17957