OSDN Git Service

* configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
44   if (set +x; test -n "`(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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_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 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 docobjdir parsedir 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_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_extra_gcc_objs 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 LIBOBJS LTLIBOBJS'
312 ac_subst_files='language_hooks'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-generated-files-in-srcdir  Put generated files in source dir
853   --enable-werror         enable -Werror in bootstrap stage2 and later
854   --enable-checking=LIST
855                           enable expensive run-time checks.  With LIST,
856                           enable only specific categories of checks.
857                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
858                           default is misc,tree,gc,rtlflag
859   --enable-coverage=LEVEL
860                           enable compiler\'s code coverage collection.
861                           Use to measure compiler performance and locate
862                           unused parts of the compiler. With LEVEL, specify
863                           optimization. Values are opt, noopt,
864                           default is noopt
865   --enable-multilib       enable library support for multiple ABIs
866   --enable-__cxa_atexit   enable __cxa_atexit for C++
867   --enable-threads        enable thread usage for target GCC
868   --enable-threads=LIB    use LIB thread package for target GCC
869   --enable-objc-gc        enable the use of Boehm's garbage collector with
870                           the GNU Objective-C runtime
871   --disable-shared        don't provide a shared libgcc
872   --enable-intermodule    build the compiler in one step
873   --enable-initfini-array       use .init_array/.fini_array sections
874   --enable-sjlj-exceptions
875                           arrange to use setjmp/longjmp exception handling
876   --enable-libunwind-exceptions  force use libunwind for exceptions
877   --disable-win32-registry
878                           disable lookup of installation paths in the
879                           Registry on Windows hosts
880   --enable-win32-registry enable registry lookup (default)
881   --enable-win32-registry=KEY
882                           use KEY instead of GCC version as the last portion
883                           of the registry key
884   --enable-maintainer-mode
885                           enable make rules and dependencies not useful
886                           (and sometimes confusing) to the casual installer
887   --enable-version-specific-runtime-libs
888                           specify that runtime libraries should be
889                           installed in a compiler-specific directory
890
891 Optional Packages:
892   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
893   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
894   --with-local-prefix=DIR specifies directory to put local include
895   --with-gxx-include-dir=DIR
896                           specifies directory to put g++ header files
897   --with-cpp-install-dir=DIR
898                           install the user visible C preprocessor in DIR
899                           (relative to PREFIX) as well as PREFIX/bin
900   --with-gnu-ld           arrange to work with GNU ld.
901   --with-ld               arrange to use the specified ld (full pathname)
902   --with-gnu-as           arrange to work with GNU as
903   --with-as               arrange to use the specified as (full pathname)
904   --with-stabs            arrange to use stabs instead of host debug format
905   --with-dwarf2           force the default debug format to be DWARF 2
906   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
907   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
908   --with-gc={simple,page,zone} choose the garbage collection mechanism to use
909                           with the compiler
910   --with-system-zlib      use installed libz
911   --with-slibdir=DIR      shared libraries in DIR LIBDIR
912
913 Some influential environment variables:
914   CC          C compiler command
915   CFLAGS      C compiler flags
916   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
917               nonstandard directory <lib dir>
918   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
919               headers in a nonstandard directory <include dir>
920   CPP         C preprocessor
921
922 Use these variables to override the choices made by `configure' or to help
923 it to find libraries and programs with nonstandard names/locations.
924
925 _ACEOF
926 fi
927
928 if test "$ac_init_help" = "recursive"; then
929   # If there are subdirs, report their specific --help.
930   ac_popdir=`pwd`
931   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
932     test -d $ac_dir || continue
933     ac_builddir=.
934
935 if test "$ac_dir" != .; then
936   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
937   # A "../" for each directory in $ac_dir_suffix.
938   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
939 else
940   ac_dir_suffix= ac_top_builddir=
941 fi
942
943 case $srcdir in
944   .)  # No --srcdir option.  We are building in place.
945     ac_srcdir=.
946     if test -z "$ac_top_builddir"; then
947        ac_top_srcdir=.
948     else
949        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
950     fi ;;
951   [\\/]* | ?:[\\/]* )  # Absolute path.
952     ac_srcdir=$srcdir$ac_dir_suffix;
953     ac_top_srcdir=$srcdir ;;
954   *) # Relative path.
955     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
956     ac_top_srcdir=$ac_top_builddir$srcdir ;;
957 esac
958 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
959 # absolute.
960 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
961 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
962 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
963 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd "$ac_popdir"
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987
988 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
989 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
992 _ACEOF
993   exit 0
994 fi
995 exec 5>config.log
996 cat >&5 <<_ACEOF
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
999
1000 It was created by $as_me, which was
1001 generated by GNU Autoconf 2.57.  Invocation command line was
1002
1003   $ $0 $@
1004
1005 _ACEOF
1006 {
1007 cat <<_ASUNAME
1008 ## --------- ##
1009 ## Platform. ##
1010 ## --------- ##
1011
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1020
1021 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1022 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1025 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1026 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1027 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1028
1029 _ASUNAME
1030
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 for as_dir in $PATH
1033 do
1034   IFS=$as_save_IFS
1035   test -z "$as_dir" && as_dir=.
1036   echo "PATH: $as_dir"
1037 done
1038
1039 } >&5
1040
1041 cat >&5 <<_ACEOF
1042
1043
1044 ## ----------- ##
1045 ## Core tests. ##
1046 ## ----------- ##
1047
1048 _ACEOF
1049
1050
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_configure_args=
1057 ac_configure_args0=
1058 ac_configure_args1=
1059 ac_sep=
1060 ac_must_keep_next=false
1061 for ac_pass in 1 2
1062 do
1063   for ac_arg
1064   do
1065     case $ac_arg in
1066     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068     | -silent | --silent | --silen | --sile | --sil)
1069       continue ;;
1070     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072     esac
1073     case $ac_pass in
1074     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075     2)
1076       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077       if test $ac_must_keep_next = true; then
1078         ac_must_keep_next=false # Got value, back to normal.
1079       else
1080         case $ac_arg in
1081           *=* | --config-cache | -C | -disable-* | --disable-* \
1082           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084           | -with-* | --with-* | -without-* | --without-* | --x)
1085             case "$ac_configure_args0 " in
1086               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087             esac
1088             ;;
1089           -* ) ac_must_keep_next=true ;;
1090         esac
1091       fi
1092       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093       # Get rid of the leading space.
1094       ac_sep=" "
1095       ;;
1096     esac
1097   done
1098 done
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log.  We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108   # Save into config.log some information that might help in debugging.
1109   {
1110     echo
1111
1112     cat <<\_ASBOX
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1116 _ASBOX
1117     echo
1118     # The following way of writing the cache mishandles newlines in values,
1119 {
1120   (set) 2>&1 |
1121     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122     *ac_space=\ *)
1123       sed -n \
1124         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126       ;;
1127     *)
1128       sed -n \
1129         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130       ;;
1131     esac;
1132 }
1133     echo
1134
1135     cat <<\_ASBOX
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1139 _ASBOX
1140     echo
1141     for ac_var in $ac_subst_vars
1142     do
1143       eval ac_val=$`echo $ac_var`
1144       echo "$ac_var='"'"'$ac_val'"'"'"
1145     done | sort
1146     echo
1147
1148     if test -n "$ac_subst_files"; then
1149       cat <<\_ASBOX
1150 ## ------------- ##
1151 ## Output files. ##
1152 ## ------------- ##
1153 _ASBOX
1154       echo
1155       for ac_var in $ac_subst_files
1156       do
1157         eval ac_val=$`echo $ac_var`
1158         echo "$ac_var='"'"'$ac_val'"'"'"
1159       done | sort
1160       echo
1161     fi
1162
1163     if test -s confdefs.h; then
1164       cat <<\_ASBOX
1165 ## ----------- ##
1166 ## confdefs.h. ##
1167 ## ----------- ##
1168 _ASBOX
1169       echo
1170       sed "/^$/d" confdefs.h | sort
1171       echo
1172     fi
1173     test "$ac_signal" != 0 &&
1174       echo "$as_me: caught signal $ac_signal"
1175     echo "$as_me: exit $exit_status"
1176   } >&5
1177   rm -f core *.core &&
1178   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179     exit $exit_status
1180      ' 0
1181 for ac_signal in 1 2 13 15; do
1182   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 done
1184 ac_signal=0
1185
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 echo >confdefs.h
1190
1191 # Predefined preprocessor variables.
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 _ACEOF
1216
1217
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221   if test "x$prefix" != xNONE; then
1222     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223   else
1224     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225   fi
1226 fi
1227 for ac_site_file in $CONFIG_SITE; do
1228   if test -r "$ac_site_file"; then
1229     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231     sed 's/^/| /' "$ac_site_file" >&5
1232     . "$ac_site_file"
1233   fi
1234 done
1235
1236 if test -r "$cache_file"; then
1237   # Some versions of bash will fail to source /dev/null (special
1238   # files actually), so we avoid doing that.
1239   if test -f "$cache_file"; then
1240     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1242     case $cache_file in
1243       [\\/]* | ?:[\\/]* ) . $cache_file;;
1244       *)                      . ./$cache_file;;
1245     esac
1246   fi
1247 else
1248   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1250   >$cache_file
1251 fi
1252
1253 # Check that the precious variables saved in the cache have kept the same
1254 # value.
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259   eval ac_new_set=\$ac_env_${ac_var}_set
1260   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261   eval ac_new_val="\$ac_env_${ac_var}_value"
1262   case $ac_old_set,$ac_new_set in
1263     set,)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,set)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,);;
1272     *)
1273       if test "x$ac_old_val" != "x$ac_new_val"; then
1274         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1277 echo "$as_me:   former value:  $ac_old_val" >&2;}
1278         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1279 echo "$as_me:   current value: $ac_new_val" >&2;}
1280         ac_cache_corrupted=:
1281       fi;;
1282   esac
1283   # Pass precious variables to config.status.
1284   if test "$ac_new_set" = set; then
1285     case $ac_new_val in
1286     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288     *) ac_arg=$ac_var=$ac_new_val ;;
1289     esac
1290     case " $ac_configure_args " in
1291       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1292       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293     esac
1294   fi
1295 done
1296 if $ac_cache_corrupted; then
1297   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301    { (exit 1); exit 1; }; }
1302 fi
1303
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1329
1330
1331 # Determine the host, build, and target systems
1332 ac_aux_dir=
1333 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1334   if test -f $ac_dir/install-sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install-sh -c"
1337     break
1338   elif test -f $ac_dir/install.sh; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/install.sh -c"
1341     break
1342   elif test -f $ac_dir/shtool; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/shtool install -c"
1345     break
1346   fi
1347 done
1348 if test -z "$ac_aux_dir"; then
1349   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1351    { (exit 1); exit 1; }; }
1352 fi
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356
1357 # Make sure we can run config.sub.
1358 $ac_config_sub sun4 >/dev/null 2>&1 ||
1359   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1360 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1361    { (exit 1); exit 1; }; }
1362
1363 echo "$as_me:$LINENO: checking build system type" >&5
1364 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1365 if test "${ac_cv_build+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   ac_cv_build_alias=$build_alias
1369 test -z "$ac_cv_build_alias" &&
1370   ac_cv_build_alias=`$ac_config_guess`
1371 test -z "$ac_cv_build_alias" &&
1372   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1373 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1374    { (exit 1); exit 1; }; }
1375 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1376   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1377 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1378    { (exit 1); exit 1; }; }
1379
1380 fi
1381 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1382 echo "${ECHO_T}$ac_cv_build" >&6
1383 build=$ac_cv_build
1384 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1385 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1386 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387
1388
1389 echo "$as_me:$LINENO: checking host system type" >&5
1390 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1391 if test "${ac_cv_host+set}" = set; then
1392   echo $ECHO_N "(cached) $ECHO_C" >&6
1393 else
1394   ac_cv_host_alias=$host_alias
1395 test -z "$ac_cv_host_alias" &&
1396   ac_cv_host_alias=$ac_cv_build_alias
1397 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1398   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1399 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1400    { (exit 1); exit 1; }; }
1401
1402 fi
1403 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1404 echo "${ECHO_T}$ac_cv_host" >&6
1405 host=$ac_cv_host
1406 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1407 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1408 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409
1410
1411 echo "$as_me:$LINENO: checking target system type" >&5
1412 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1413 if test "${ac_cv_target+set}" = set; then
1414   echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416   ac_cv_target_alias=$target_alias
1417 test "x$ac_cv_target_alias" = "x" &&
1418   ac_cv_target_alias=$ac_cv_host_alias
1419 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1420   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 fi
1425 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1426 echo "${ECHO_T}$ac_cv_target" >&6
1427 target=$ac_cv_target
1428 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433 # The aliases save the names the user supplied, while $host etc.
1434 # will get canonicalized.
1435 test -n "$target_alias" &&
1436   test "$program_prefix$program_suffix$program_transform_name" = \
1437     NONENONEs,x,x, &&
1438   program_prefix=${target_alias}-
1439
1440 # Determine the noncanonical target name, for directory use.
1441  case ${build_alias} in
1442   "") build_noncanonical=${build} ;;
1443   *) build_noncanonical=${build_alias} ;;
1444 esac
1445
1446  case ${host_alias} in
1447   "") host_noncanonical=${build_noncanonical} ;;
1448   *) host_noncanonical=${host_alias} ;;
1449 esac
1450
1451  case ${target_alias} in
1452   "") target_noncanonical=${host_noncanonical} ;;
1453   *) target_noncanonical=${target_alias} ;;
1454 esac
1455
1456
1457 # Determine the target- and build-specific subdirectories
1458   # Prefix 'build-' so this never conflicts with target_subdir.
1459 build_subdir="build-${build_noncanonical}"
1460 # Not really a subdirectory, but here for completeness.
1461 host_subdir=.
1462 # No prefix.
1463 target_subdir=${target_noncanonical}
1464
1465
1466 # Set program_transform_name
1467 test "$program_prefix" != NONE &&
1468   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $.  echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1476 _ACEOF
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1478 rm conftest.sed
1479
1480
1481 # Check for bogus environment variables.
1482 # Test if LIBRARY_PATH contains the notation for the current directory
1483 # since this would lead to problems installing/building glibc.
1484 # LIBRARY_PATH contains the current directory if one of the following
1485 # is true:
1486 # - one of the terminals (":" and ";") is the first or last sign
1487 # - two terminals occur directly after each other
1488 # - the path contains an element with a dot in it
1489 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1490 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1491 case ${LIBRARY_PATH} in
1492   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1493     library_path_setting="contains current directory"
1494     ;;
1495   *)
1496     library_path_setting="ok"
1497     ;;
1498 esac
1499 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1500 echo "${ECHO_T}$library_path_setting" >&6
1501 if test "$library_path_setting" != "ok"; then
1502 { { echo "$as_me:$LINENO: error:
1503 *** LIBRARY_PATH shouldn't contain the current directory when
1504 *** building gcc. Please change the environment variable
1505 *** and run configure again." >&5
1506 echo "$as_me: error:
1507 *** LIBRARY_PATH shouldn't contain the current directory when
1508 *** building gcc. Please change the environment variable
1509 *** and run configure again." >&2;}
1510    { (exit 1); exit 1; }; }
1511 fi
1512
1513 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1514 # since this would lead to problems installing/building glibc.
1515 # GCC_EXEC_PREFIX contains the current directory if one of the following
1516 # is true:
1517 # - one of the terminals (":" and ";") is the first or last sign
1518 # - two terminals occur directly after each other
1519 # - the path contains an element with a dot in it
1520 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1521 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1522 case ${GCC_EXEC_PREFIX} in
1523   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1524     gcc_exec_prefix_setting="contains current directory"
1525     ;;
1526   *)
1527     gcc_exec_prefix_setting="ok"
1528     ;;
1529 esac
1530 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1531 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1532 if test "$gcc_exec_prefix_setting" != "ok"; then
1533 { { echo "$as_me:$LINENO: error:
1534 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1535 *** building gcc. Please change the environment variable
1536 *** and run configure again." >&5
1537 echo "$as_me: error:
1538 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1539 *** building gcc. Please change the environment variable
1540 *** and run configure again." >&2;}
1541    { (exit 1); exit 1; }; }
1542 fi
1543
1544 # -----------
1545 # Directories
1546 # -----------
1547
1548 # Specify the local prefix
1549 local_prefix=
1550
1551 # Check whether --with-local-prefix or --without-local-prefix was given.
1552 if test "${with_local_prefix+set}" = set; then
1553   withval="$with_local_prefix"
1554   case "${withval}" in
1555 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1556 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1557    { (exit 1); exit 1; }; } ;;
1558 no)     ;;
1559 *)      local_prefix=$with_local_prefix ;;
1560 esac
1561 fi;
1562
1563 # Default local prefix if it is empty
1564 if test x$local_prefix = x; then
1565         local_prefix=/usr/local
1566 fi
1567
1568 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1569 # passed in by the toplevel make and thus we'd get different behavior
1570 # depending on where we built the sources.
1571 gcc_gxx_include_dir=
1572 # Specify the g++ header file directory
1573
1574 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1575 if test "${with_gxx_include_dir+set}" = set; then
1576   withval="$with_gxx_include_dir"
1577   case "${withval}" in
1578 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1579 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1580    { (exit 1); exit 1; }; } ;;
1581 no)     ;;
1582 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1583 esac
1584 fi;
1585
1586 if test x${gcc_gxx_include_dir} = x; then
1587   if test x${enable_version_specific_runtime_libs} = xyes; then
1588     gcc_gxx_include_dir='${libsubdir}/include/c++'
1589   else
1590     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1591     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1592   fi
1593 fi
1594
1595
1596 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1597 if test "${with_cpp_install_dir+set}" = set; then
1598   withval="$with_cpp_install_dir"
1599   if test x$withval = xyes; then
1600   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1601 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1602    { (exit 1); exit 1; }; }
1603 elif test x$withval != xno; then
1604   cpp_install_dir=$withval
1605 fi
1606 fi;
1607
1608 # We would like to our source tree to be readonly.  However when releases or
1609 # pre-releases are generated, the flex/bison generated files as well as the
1610 # various formats of manuals need to be included along with the rest of the
1611 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1612 # just that.
1613
1614 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1615 if test "${enable_generated_files_in_srcdir+set}" = set; then
1616   enableval="$enable_generated_files_in_srcdir"
1617   case ${enableval} in
1618   no)    parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1619   *)     parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1620 esac
1621 else
1622   parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1623 fi;
1624
1625 # -------------------
1626 # Find default linker
1627 # -------------------
1628
1629 # With GNU ld
1630
1631 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1632 if test "${with_gnu_ld+set}" = set; then
1633   withval="$with_gnu_ld"
1634   gnu_ld_flag="$with_gnu_ld"
1635 else
1636   gnu_ld_flag=no
1637 fi;
1638
1639 # With pre-defined ld
1640
1641 # Check whether --with-ld or --without-ld was given.
1642 if test "${with_ld+set}" = set; then
1643   withval="$with_ld"
1644   DEFAULT_LINKER="$with_ld"
1645 fi;
1646 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1647   if test ! -x "$DEFAULT_LINKER"; then
1648     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1649 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1650   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1651     gnu_ld_flag=yes
1652   fi
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1656 _ACEOF
1657
1658 fi
1659
1660 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1661 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1662 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1663   if test x"$gnu_ld_flag" = x"no"; then
1664     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1665 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1666   else
1667     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1668 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1669   fi
1670 else
1671   echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1673 fi
1674
1675 # ----------------------
1676 # Find default assembler
1677 # ----------------------
1678
1679 # With GNU as
1680
1681 # Check whether --with-gnu-as or --without-gnu-as was given.
1682 if test "${with_gnu_as+set}" = set; then
1683   withval="$with_gnu_as"
1684   gas_flag="$with_gnu_as"
1685 else
1686   gas_flag=no
1687 fi;
1688
1689
1690 # Check whether --with-as or --without-as was given.
1691 if test "${with_as+set}" = set; then
1692   withval="$with_as"
1693   DEFAULT_ASSEMBLER="$with_as"
1694 fi;
1695 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1696   if test ! -x "$DEFAULT_ASSEMBLER"; then
1697     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1698 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1699   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1700     gas_flag=yes
1701   fi
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1705 _ACEOF
1706
1707 fi
1708
1709 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1710 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1711 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1712   if test x"$gas_flag" = x"no"; then
1713     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1714 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1715   else
1716     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1717 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1718   fi
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 # ---------------
1725 # Find C compiler
1726 # ---------------
1727
1728 # Find the native compiler
1729 ac_ext=c
1730 ac_cpp='$CPP $CPPFLAGS'
1731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1734 if test -n "$ac_tool_prefix"; then
1735   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1736 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   if test -n "$CC"; then
1743   ac_cv_prog_CC="$CC" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   for ac_exec_ext in '' $ac_executable_extensions; do
1751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754     break 2
1755   fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 CC=$ac_cv_prog_CC
1762 if test -n "$CC"; then
1763   echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1765 else
1766   echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770 fi
1771 if test -z "$ac_cv_prog_CC"; then
1772   ac_ct_CC=$CC
1773   # Extract the first word of "gcc", so it can be a program name with args.
1774 set dummy gcc; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   if test -n "$ac_ct_CC"; then
1781   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1785 do
1786   IFS=$as_save_IFS
1787   test -z "$as_dir" && as_dir=.
1788   for ac_exec_ext in '' $ac_executable_extensions; do
1789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790     ac_cv_prog_ac_ct_CC="gcc"
1791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792     break 2
1793   fi
1794 done
1795 done
1796
1797 fi
1798 fi
1799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1800 if test -n "$ac_ct_CC"; then
1801   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1802 echo "${ECHO_T}$ac_ct_CC" >&6
1803 else
1804   echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 fi
1807
1808   CC=$ac_ct_CC
1809 else
1810   CC="$ac_cv_prog_CC"
1811 fi
1812
1813 if test -z "$CC"; then
1814   if test -n "$ac_tool_prefix"; then
1815   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}cc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820   echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822   if test -n "$CC"; then
1823   ac_cv_prog_CC="$CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828   IFS=$as_save_IFS
1829   test -z "$as_dir" && as_dir=.
1830   for ac_exec_ext in '' $ac_executable_extensions; do
1831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832     ac_cv_prog_CC="${ac_tool_prefix}cc"
1833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834     break 2
1835   fi
1836 done
1837 done
1838
1839 fi
1840 fi
1841 CC=$ac_cv_prog_CC
1842 if test -n "$CC"; then
1843   echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1845 else
1846   echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1848 fi
1849
1850 fi
1851 if test -z "$ac_cv_prog_CC"; then
1852   ac_ct_CC=$CC
1853   # Extract the first word of "cc", so it can be a program name with args.
1854 set dummy cc; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$ac_ct_CC"; then
1861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_ac_ct_CC="cc"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880 if test -n "$ac_ct_CC"; then
1881   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882 echo "${ECHO_T}$ac_ct_CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888   CC=$ac_ct_CC
1889 else
1890   CC="$ac_cv_prog_CC"
1891 fi
1892
1893 fi
1894 if test -z "$CC"; then
1895   # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$CC"; then
1903   ac_cv_prog_CC="$CC" # Let the user override the test.
1904 else
1905   ac_prog_rejected=no
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1914        ac_prog_rejected=yes
1915        continue
1916      fi
1917     ac_cv_prog_CC="cc"
1918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919     break 2
1920   fi
1921 done
1922 done
1923
1924 if test $ac_prog_rejected = yes; then
1925   # We found a bogon in the path, so make sure we never use it.
1926   set dummy $ac_cv_prog_CC
1927   shift
1928   if test $# != 0; then
1929     # We chose a different compiler from the bogus one.
1930     # However, it has the same basename, so the bogon will be chosen
1931     # first if we set CC to just the basename; use the full file name.
1932     shift
1933     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1934   fi
1935 fi
1936 fi
1937 fi
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940   echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947 fi
1948 if test -z "$CC"; then
1949   if test -n "$ac_tool_prefix"; then
1950   for ac_prog in cl
1951   do
1952     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$CC"; then
1960   ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
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     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971     break 2
1972   fi
1973 done
1974 done
1975
1976 fi
1977 fi
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980   echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1982 else
1983   echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987     test -n "$CC" && break
1988   done
1989 fi
1990 if test -z "$CC"; then
1991   ac_ct_CC=$CC
1992   for ac_prog in cl
1993 do
1994   # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$ac_ct_CC"; then
2002   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     ac_cv_prog_ac_ct_CC="$ac_prog"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029   test -n "$ac_ct_CC" && break
2030 done
2031
2032   CC=$ac_ct_CC
2033 fi
2034
2035 fi
2036
2037
2038 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&2;}
2042    { (exit 1); exit 1; }; }
2043
2044 # Provide some information about the compiler.
2045 echo "$as_me:$LINENO:" \
2046      "checking for C compiler version" >&5
2047 ac_compiler=`set X $ac_compile; echo $2`
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2049   (eval $ac_compiler --version </dev/null >&5) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2054   (eval $ac_compiler -v </dev/null >&5) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2059   (eval $ac_compiler -V </dev/null >&5) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }
2063
2064 cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 ac_clean_files_save=$ac_clean_files
2081 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2082 # Try to create an executable without -o first, disregard a.out.
2083 # It will help us diagnose broken compilers, and finding out an intuition
2084 # of exeext.
2085 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2086 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2087 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2089   (eval $ac_link_default) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; then
2093   # Find the output, starting from the most likely.  This scheme is
2094 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2095 # resort.
2096
2097 # Be careful to initialize this variable, since it used to be cached.
2098 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2099 ac_cv_exeext=
2100 # b.out is created by i960 compilers.
2101 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2102 do
2103   test -f "$ac_file" || continue
2104   case $ac_file in
2105     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2106         ;;
2107     conftest.$ac_ext )
2108         # This is the source file.
2109         ;;
2110     [ab].out )
2111         # We found the default executable, but exeext='' is most
2112         # certainly right.
2113         break;;
2114     *.* )
2115         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116         # FIXME: I believe we export ac_cv_exeext for Libtool,
2117         # but it would be cool to find out if it's true.  Does anybody
2118         # maintain Libtool? --akim.
2119         export ac_cv_exeext
2120         break;;
2121     * )
2122         break;;
2123   esac
2124 done
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&2;}
2133    { (exit 77); exit 77; }; }
2134 fi
2135
2136 ac_exeext=$ac_cv_exeext
2137 echo "$as_me:$LINENO: result: $ac_file" >&5
2138 echo "${ECHO_T}$ac_file" >&6
2139
2140 # Check the compiler produces executables we can run.  If not, either
2141 # the compiler is broken, or we cross compile.
2142 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2143 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2144 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2145 # If not cross compiling, check that we can run a simple program.
2146 if test "$cross_compiling" != yes; then
2147   if { ac_try='./$ac_file'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; }; then
2153     cross_compiling=no
2154   else
2155     if test "$cross_compiling" = maybe; then
2156         cross_compiling=yes
2157     else
2158         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2159 If you meant to cross compile, use \`--host'.
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: cannot run C compiled programs.
2162 If you meant to cross compile, use \`--host'.
2163 See \`config.log' for more details." >&2;}
2164    { (exit 1); exit 1; }; }
2165     fi
2166   fi
2167 fi
2168 echo "$as_me:$LINENO: result: yes" >&5
2169 echo "${ECHO_T}yes" >&6
2170
2171 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2172 ac_clean_files=$ac_clean_files_save
2173 # Check the compiler produces executables we can run.  If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2176 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2177 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2178 echo "${ECHO_T}$cross_compiling" >&6
2179
2180 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2181 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2183   (eval $ac_link) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; then
2187   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2188 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2189 # work properly (i.e., refer to `conftest.exe'), while it won't with
2190 # `rm'.
2191 for ac_file in conftest.exe conftest conftest.*; do
2192   test -f "$ac_file" || continue
2193   case $ac_file in
2194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2195     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196           export ac_cv_exeext
2197           break;;
2198     * ) break;;
2199   esac
2200 done
2201 else
2202   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&2;}
2206    { (exit 1); exit 1; }; }
2207 fi
2208
2209 rm -f conftest$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2211 echo "${ECHO_T}$ac_cv_exeext" >&6
2212
2213 rm -f conftest.$ac_ext
2214 EXEEXT=$ac_cv_exeext
2215 ac_exeext=$EXEEXT
2216 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2217 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2218 if test "${ac_cv_objext+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   cat >conftest.$ac_ext <<_ACEOF
2222 #line $LINENO "configure"
2223 /* confdefs.h.  */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h.  */
2228
2229 int
2230 main ()
2231 {
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 rm -f conftest.o conftest.obj
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; then
2243   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2246     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247        break;;
2248   esac
2249 done
2250 else
2251   echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&2;}
2258    { (exit 1); exit 1; }; }
2259 fi
2260
2261 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2262 fi
2263 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2264 echo "${ECHO_T}$ac_cv_objext" >&6
2265 OBJEXT=$ac_cv_objext
2266 ac_objext=$OBJEXT
2267 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2268 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2269 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2270   echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272   cat >conftest.$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2279
2280 int
2281 main ()
2282 {
2283 #ifndef __GNUC__
2284        choke me
2285 #endif
2286
2287   ;
2288   return 0;
2289 }
2290 _ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (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); } &&
2297          { ac_try='test -s conftest.$ac_objext'
2298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299   (eval $ac_try) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; }; then
2303   ac_compiler_gnu=yes
2304 else
2305   echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 ac_compiler_gnu=no
2309 fi
2310 rm -f conftest.$ac_objext conftest.$ac_ext
2311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2312
2313 fi
2314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2316 GCC=`test $ac_compiler_gnu = yes && echo yes`
2317 ac_test_CFLAGS=${CFLAGS+set}
2318 ac_save_CFLAGS=$CFLAGS
2319 CFLAGS="-g"
2320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2322 if test "${ac_cv_prog_cc_g+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332
2333 int
2334 main ()
2335 {
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   ac_cv_prog_cc_g=yes
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 ac_cv_prog_cc_g=no
2359 fi
2360 rm -f conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2364 if test "$ac_test_CFLAGS" = set; then
2365   CFLAGS=$ac_save_CFLAGS
2366 elif test $ac_cv_prog_cc_g = yes; then
2367   if test "$GCC" = yes; then
2368     CFLAGS="-g -O2"
2369   else
2370     CFLAGS="-g"
2371   fi
2372 else
2373   if test "$GCC" = yes; then
2374     CFLAGS="-O2"
2375   else
2376     CFLAGS=
2377   fi
2378 fi
2379 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2380 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2381 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   ac_cv_prog_cc_stdc=no
2385 ac_save_CC=$CC
2386 cat >conftest.$ac_ext <<_ACEOF
2387 #line $LINENO "configure"
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393 #include <stdarg.h>
2394 #include <stdio.h>
2395 #include <sys/types.h>
2396 #include <sys/stat.h>
2397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2398 struct buf { int x; };
2399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2400 static char *e (p, i)
2401      char **p;
2402      int i;
2403 {
2404   return p[i];
2405 }
2406 static char *f (char * (*g) (char **, int), char **p, ...)
2407 {
2408   char *s;
2409   va_list v;
2410   va_start (v,p);
2411   s = g (p, va_arg (v,int));
2412   va_end (v);
2413   return s;
2414 }
2415 int test (int i, double x);
2416 struct s1 {int (*f) (int a);};
2417 struct s2 {int (*f) (double a);};
2418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2419 int argc;
2420 char **argv;
2421 int
2422 main ()
2423 {
2424 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 # Don't try gcc -ansi; that turns off useful extensions and
2430 # breaks some systems' header files.
2431 # AIX                   -qlanglvl=ansi
2432 # Ultrix and OSF/1      -std1
2433 # HP-UX 10.20 and later -Ae
2434 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2435 # SVR4                  -Xc -D__EXTENSIONS__
2436 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2437 do
2438   CC="$ac_save_CC $ac_arg"
2439   rm -f conftest.$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441   (eval $ac_compile) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   ac_cv_prog_cc_stdc=$ac_arg
2452 break
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 fi
2458 rm -f conftest.$ac_objext
2459 done
2460 rm -f conftest.$ac_ext conftest.$ac_objext
2461 CC=$ac_save_CC
2462
2463 fi
2464
2465 case "x$ac_cv_prog_cc_stdc" in
2466   x|xno)
2467     echo "$as_me:$LINENO: result: none needed" >&5
2468 echo "${ECHO_T}none needed" >&6 ;;
2469   *)
2470     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2472     CC="$CC $ac_cv_prog_cc_stdc" ;;
2473 esac
2474
2475 # Some people use a C++ compiler to compile C.  Since we use `exit',
2476 # in C++ we need to declare it.  In case someone uses the same compiler
2477 # for both compiling C and C++ we need to have the C++ compiler decide
2478 # the declaration of exit, since it's the most demanding environment.
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #ifndef __cplusplus
2481   choke me
2482 #endif
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486   (eval $ac_compile) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); } &&
2490          { ac_try='test -s conftest.$ac_objext'
2491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492   (eval $ac_try) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; }; then
2496   for ac_declaration in \
2497    '' \
2498    'extern "C" void std::exit (int) throw (); using std::exit;' \
2499    'extern "C" void std::exit (int); using std::exit;' \
2500    'extern "C" void exit (int) throw ();' \
2501    'extern "C" void exit (int);' \
2502    'void exit (int);'
2503 do
2504   cat >conftest.$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511 $ac_declaration
2512 #include <stdlib.h>
2513 int
2514 main ()
2515 {
2516 exit (42);
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   :
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 continue
2539 fi
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2541   cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548 $ac_declaration
2549 int
2550 main ()
2551 {
2552 exit (42);
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559   (eval $ac_compile) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } &&
2563          { ac_try='test -s conftest.$ac_objext'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   break
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 fi
2575 rm -f conftest.$ac_objext conftest.$ac_ext
2576 done
2577 rm -f conftest*
2578 if test -n "$ac_declaration"; then
2579   echo '#ifdef __cplusplus' >>confdefs.h
2580   echo $ac_declaration      >>confdefs.h
2581   echo '#endif'             >>confdefs.h
2582 fi
2583
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 fi
2589 rm -f conftest.$ac_objext conftest.$ac_ext
2590 ac_ext=c
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595
2596 if test "x$CC" != xcc; then
2597   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2598 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2599 else
2600   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2601 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2602 fi
2603 set dummy $CC; ac_cc=`echo $2 |
2604                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2605 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615
2616 int
2617 main ()
2618 {
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 # Make sure it works both with $CC and with simple cc.
2625 # We do the test twice because some compilers refuse to overwrite an
2626 # existing .o file with -o, though they will create one.
2627 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2628 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); };
2638 then
2639   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2640   if test "x$CC" != xcc; then
2641     # Test first that cc exists at all.
2642     if { ac_try='cc -c conftest.$ac_ext >&5'
2643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644   (eval $ac_try) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; }; then
2648       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2649       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650   (eval $ac_try) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } &&
2654          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); };
2659       then
2660         # cc works too.
2661         :
2662       else
2663         # cc exists but doesn't like -o.
2664         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2665       fi
2666     fi
2667   fi
2668 else
2669   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2670 fi
2671 rm -f conftest*
2672
2673 fi
2674 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2675   echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6
2677 else
2678   echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2680
2681 cat >>confdefs.h <<\_ACEOF
2682 #define NO_MINUS_C_MINUS_O 1
2683 _ACEOF
2684
2685 fi
2686
2687 # autoconf is lame and doesn't give us any substitution variable for this.
2688 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2689   NO_MINUS_C_MINUS_O=yes
2690 else
2691   OUTPUT_OPTION='-o $@'
2692 fi
2693
2694
2695
2696 # -------------------------
2697 # Check C compiler features
2698 # -------------------------
2699
2700
2701 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2702 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2703 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2704   echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706   save_CFLAGS="$CFLAGS"
2707 CFLAGS="-Wno-long-long"
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #line $LINENO "configure"
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715
2716 int
2717 main ()
2718 {
2719
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726   (eval $ac_compile) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } &&
2730          { ac_try='test -s conftest.$ac_objext'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; }; then
2736   ac_cv_prog_cc_no_long_long=yes
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 ac_cv_prog_cc_no_long_long=no
2742 fi
2743 rm -f conftest.$ac_objext conftest.$ac_ext
2744 CFLAGS="$save_CFLAGS"
2745 fi
2746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2748
2749 ac_ext=c
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2755 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2756 # On Suns, sometimes $CPP names a directory.
2757 if test -n "$CPP" && test -d "$CPP"; then
2758   CPP=
2759 fi
2760 if test -z "$CPP"; then
2761   if test "${ac_cv_prog_CPP+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764       # Double quotes because CPP needs to be expanded
2765     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2766     do
2767       ac_preproc_ok=false
2768 for ac_c_preproc_warn_flag in '' yes
2769 do
2770   # Use a header file that comes with gcc, so configuring glibc
2771   # with a fresh cross-compiler works.
2772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773   # <limits.h> exists even on freestanding compilers.
2774   # On the NeXT, cc -E runs the code through the compiler's parser,
2775   # not just through cpp. "Syntax error" is here to catch this case.
2776   cat >conftest.$ac_ext <<_ACEOF
2777 #line $LINENO "configure"
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783 #ifdef __STDC__
2784 # include <limits.h>
2785 #else
2786 # include <assert.h>
2787 #endif
2788                      Syntax error
2789 _ACEOF
2790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792   ac_status=$?
2793   grep -v '^ *+' conftest.er1 >conftest.err
2794   rm -f conftest.er1
2795   cat conftest.err >&5
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } >/dev/null; then
2798   if test -s conftest.err; then
2799     ac_cpp_err=$ac_c_preproc_warn_flag
2800   else
2801     ac_cpp_err=
2802   fi
2803 else
2804   ac_cpp_err=yes
2805 fi
2806 if test -z "$ac_cpp_err"; then
2807   :
2808 else
2809   echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812   # Broken: fails on valid input.
2813 continue
2814 fi
2815 rm -f conftest.err conftest.$ac_ext
2816
2817   # OK, works on sane cases.  Now check whether non-existent headers
2818   # can be detected and how.
2819   cat >conftest.$ac_ext <<_ACEOF
2820 #line $LINENO "configure"
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 #include <ac_nonexistent.h>
2827 _ACEOF
2828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } >/dev/null; then
2836   if test -s conftest.err; then
2837     ac_cpp_err=$ac_c_preproc_warn_flag
2838   else
2839     ac_cpp_err=
2840   fi
2841 else
2842   ac_cpp_err=yes
2843 fi
2844 if test -z "$ac_cpp_err"; then
2845   # Broken: success on invalid input.
2846 continue
2847 else
2848   echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851   # Passes both tests.
2852 ac_preproc_ok=:
2853 break
2854 fi
2855 rm -f conftest.err conftest.$ac_ext
2856
2857 done
2858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2859 rm -f conftest.err conftest.$ac_ext
2860 if $ac_preproc_ok; then
2861   break
2862 fi
2863
2864     done
2865     ac_cv_prog_CPP=$CPP
2866
2867 fi
2868   CPP=$ac_cv_prog_CPP
2869 else
2870   ac_cv_prog_CPP=$CPP
2871 fi
2872 echo "$as_me:$LINENO: result: $CPP" >&5
2873 echo "${ECHO_T}$CPP" >&6
2874 ac_preproc_ok=false
2875 for ac_c_preproc_warn_flag in '' yes
2876 do
2877   # Use a header file that comes with gcc, so configuring glibc
2878   # with a fresh cross-compiler works.
2879   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2880   # <limits.h> exists even on freestanding compilers.
2881   # On the NeXT, cc -E runs the code through the compiler's parser,
2882   # not just through cpp. "Syntax error" is here to catch this case.
2883   cat >conftest.$ac_ext <<_ACEOF
2884 #line $LINENO "configure"
2885 /* confdefs.h.  */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h.  */
2890 #ifdef __STDC__
2891 # include <limits.h>
2892 #else
2893 # include <assert.h>
2894 #endif
2895                      Syntax error
2896 _ACEOF
2897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } >/dev/null; then
2905   if test -s conftest.err; then
2906     ac_cpp_err=$ac_c_preproc_warn_flag
2907   else
2908     ac_cpp_err=
2909   fi
2910 else
2911   ac_cpp_err=yes
2912 fi
2913 if test -z "$ac_cpp_err"; then
2914   :
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919   # Broken: fails on valid input.
2920 continue
2921 fi
2922 rm -f conftest.err conftest.$ac_ext
2923
2924   # OK, works on sane cases.  Now check whether non-existent headers
2925   # can be detected and how.
2926   cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933 #include <ac_nonexistent.h>
2934 _ACEOF
2935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937   ac_status=$?
2938   grep -v '^ *+' conftest.er1 >conftest.err
2939   rm -f conftest.er1
2940   cat conftest.err >&5
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } >/dev/null; then
2943   if test -s conftest.err; then
2944     ac_cpp_err=$ac_c_preproc_warn_flag
2945   else
2946     ac_cpp_err=
2947   fi
2948 else
2949   ac_cpp_err=yes
2950 fi
2951 if test -z "$ac_cpp_err"; then
2952   # Broken: success on invalid input.
2953 continue
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958   # Passes both tests.
2959 ac_preproc_ok=:
2960 break
2961 fi
2962 rm -f conftest.err conftest.$ac_ext
2963
2964 done
2965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2966 rm -f conftest.err conftest.$ac_ext
2967 if $ac_preproc_ok; then
2968   :
2969 else
2970   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&2;}
2974    { (exit 1); exit 1; }; }
2975 fi
2976
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982
2983 echo "$as_me:$LINENO: checking for inline" >&5
2984 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2985 if test "${ac_cv_c_inline+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   ac_cv_c_inline=no
2989 for ac_kw in inline __inline__ __inline; do
2990   cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 /* confdefs.h.  */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h.  */
2997 #ifndef __cplusplus
2998 typedef int foo_t;
2999 static $ac_kw foo_t static_foo () {return 0; }
3000 $ac_kw foo_t foo () {return 0; }
3001 #endif
3002
3003 _ACEOF
3004 rm -f conftest.$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006   (eval $ac_compile) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); } &&
3010          { ac_try='test -s conftest.$ac_objext'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016   ac_cv_c_inline=$ac_kw; break
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 fi
3022 rm -f conftest.$ac_objext conftest.$ac_ext
3023 done
3024
3025 fi
3026 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3027 echo "${ECHO_T}$ac_cv_c_inline" >&6
3028 case $ac_cv_c_inline in
3029   inline | yes) ;;
3030   no)
3031 cat >>confdefs.h <<\_ACEOF
3032 #define inline
3033 _ACEOF
3034  ;;
3035   *)  cat >>confdefs.h <<_ACEOF
3036 #define inline $ac_cv_c_inline
3037 _ACEOF
3038  ;;
3039 esac
3040
3041
3042 echo "$as_me:$LINENO: checking for long long int" >&5
3043 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3044 if test "${ac_cv_c_long_long+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058 long long int i;
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065   (eval $ac_compile) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } &&
3069          { ac_try='test -s conftest.$ac_objext'
3070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071   (eval $ac_try) 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; }; then
3075   ac_cv_c_long_long=yes
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 ac_cv_c_long_long=no
3081 fi
3082 rm -f conftest.$ac_objext conftest.$ac_ext
3083 fi
3084 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3085 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3086   if test $ac_cv_c_long_long = yes; then
3087
3088 cat >>confdefs.h <<\_ACEOF
3089 #define HAVE_LONG_LONG 1
3090 _ACEOF
3091
3092   fi
3093 echo "$as_me:$LINENO: checking for __int64" >&5
3094 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3095 if test "${ac_cv_c___int64+set}" = set; then
3096   echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098   cat >conftest.$ac_ext <<_ACEOF
3099 #line $LINENO "configure"
3100 /* confdefs.h.  */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h.  */
3105
3106 int
3107 main ()
3108 {
3109 __int64 i;
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116   (eval $ac_compile) 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -s conftest.$ac_objext'
3121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122   (eval $ac_try) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   ac_cv_c___int64=yes
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 ac_cv_c___int64=no
3132 fi
3133 rm -f conftest.$ac_objext conftest.$ac_ext
3134 fi
3135 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3136 echo "${ECHO_T}$ac_cv_c___int64" >&6
3137   if test $ac_cv_c___int64 = yes; then
3138
3139 cat >>confdefs.h <<\_ACEOF
3140 #define HAVE___INT64 1
3141 _ACEOF
3142
3143   fi
3144
3145 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3146 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3147 if test "${gcc_cv_c__bool+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150   cat >conftest.$ac_ext <<_ACEOF
3151 #line $LINENO "configure"
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157
3158 int
3159 main ()
3160 {
3161 _Bool foo;
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168   (eval $ac_compile) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; }; then
3178   gcc_cv_c__bool=yes
3179 else
3180   echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 gcc_cv_c__bool=no
3184 fi
3185 rm -f conftest.$ac_objext conftest.$ac_ext
3186
3187 fi
3188 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3189 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3190 if test $gcc_cv_c__bool = yes; then
3191
3192 cat >>confdefs.h <<\_ACEOF
3193 #define HAVE__BOOL 1
3194 _ACEOF
3195
3196 fi
3197
3198
3199 # sizeof(char) is 1 by definition.
3200 echo "$as_me:$LINENO: checking size of void *" >&5
3201 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3202 if test "${ac_cv_sizeof_void_p+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3206   cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3208 /* confdefs.h.  */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h.  */
3213 #include "confdefs.h"
3214 #include <sys/types.h>
3215
3216
3217 int
3218 main ()
3219 {
3220 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227   (eval $ac_compile) 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } &&
3231          { ac_try='test -s conftest.$ac_objext'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; }; then
3237   ac_cv_sizeof_void_p=$ac_size
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 fi
3243 rm -f conftest.$ac_objext conftest.$ac_ext
3244   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3245 done
3246
3247 fi
3248
3249 if test x$ac_cv_sizeof_void_p = x ; then
3250   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3251 echo "$as_me: error: cannot determine a size for void *" >&2;}
3252    { (exit 1); exit 1; }; }
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3255 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3256
3257 cat >>confdefs.h <<_ACEOF
3258 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3259 _ACEOF
3260
3261
3262 echo "$as_me:$LINENO: checking size of short" >&5
3263 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3264 if test "${ac_cv_sizeof_short+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3268   cat >conftest.$ac_ext <<_ACEOF
3269 #line $LINENO "configure"
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275 #include "confdefs.h"
3276 #include <sys/types.h>
3277
3278
3279 int
3280 main ()
3281 {
3282 switch (0) case 0: case (sizeof (short) == $ac_size):;
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289   (eval $ac_compile) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } &&
3293          { ac_try='test -s conftest.$ac_objext'
3294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295   (eval $ac_try) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; }; then
3299   ac_cv_sizeof_short=$ac_size
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 fi
3305 rm -f conftest.$ac_objext conftest.$ac_ext
3306   if test x$ac_cv_sizeof_short != x ; then break; fi
3307 done
3308
3309 fi
3310
3311 if test x$ac_cv_sizeof_short = x ; then
3312   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3313 echo "$as_me: error: cannot determine a size for short" >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3318
3319 cat >>confdefs.h <<_ACEOF
3320 #define SIZEOF_SHORT $ac_cv_sizeof_short
3321 _ACEOF
3322
3323
3324 echo "$as_me:$LINENO: checking size of int" >&5
3325 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3326 if test "${ac_cv_sizeof_int+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3330   cat >conftest.$ac_ext <<_ACEOF
3331 #line $LINENO "configure"
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337 #include "confdefs.h"
3338 #include <sys/types.h>
3339
3340
3341 int
3342 main ()
3343 {
3344 switch (0) case 0: case (sizeof (int) == $ac_size):;
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 rm -f conftest.$ac_objext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3351   (eval $ac_compile) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); } &&
3355          { ac_try='test -s conftest.$ac_objext'
3356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357   (eval $ac_try) 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   ac_cv_sizeof_int=$ac_size
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 fi
3367 rm -f conftest.$ac_objext conftest.$ac_ext
3368   if test x$ac_cv_sizeof_int != x ; then break; fi
3369 done
3370
3371 fi
3372
3373 if test x$ac_cv_sizeof_int = x ; then
3374   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3375 echo "$as_me: error: cannot determine a size for int" >&2;}
3376    { (exit 1); exit 1; }; }
3377 fi
3378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3379 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3380
3381 cat >>confdefs.h <<_ACEOF
3382 #define SIZEOF_INT $ac_cv_sizeof_int
3383 _ACEOF
3384
3385
3386 echo "$as_me:$LINENO: checking size of long" >&5
3387 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3388 if test "${ac_cv_sizeof_long+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3392   cat >conftest.$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3401
3402
3403 int
3404 main ()
3405 {
3406 switch (0) case 0: case (sizeof (long) == $ac_size):;
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.$ac_objext
3412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413   (eval $ac_compile) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } &&
3417          { ac_try='test -s conftest.$ac_objext'
3418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419   (eval $ac_try) 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }; }; then
3423   ac_cv_sizeof_long=$ac_size
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 fi
3429 rm -f conftest.$ac_objext conftest.$ac_ext
3430   if test x$ac_cv_sizeof_long != x ; then break; fi
3431 done
3432
3433 fi
3434
3435 if test x$ac_cv_sizeof_long = x ; then
3436   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3437 echo "$as_me: error: cannot determine a size for long" >&2;}
3438    { (exit 1); exit 1; }; }
3439 fi
3440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3441 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3442
3443 cat >>confdefs.h <<_ACEOF
3444 #define SIZEOF_LONG $ac_cv_sizeof_long
3445 _ACEOF
3446
3447
3448 if test $ac_cv_c_long_long = yes; then
3449   echo "$as_me:$LINENO: checking size of long long" >&5
3450 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3451 if test "${ac_cv_sizeof_long_long+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3455   cat >conftest.$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3457 /* confdefs.h.  */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h.  */
3462 #include "confdefs.h"
3463 #include <sys/types.h>
3464
3465
3466 int
3467 main ()
3468 {
3469 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476   (eval $ac_compile) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   ac_cv_sizeof_long_long=$ac_size
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 fi
3492 rm -f conftest.$ac_objext conftest.$ac_ext
3493   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3494 done
3495
3496 fi
3497
3498 if test x$ac_cv_sizeof_long_long = x ; then
3499   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3500 echo "$as_me: error: cannot determine a size for long long" >&2;}
3501    { (exit 1); exit 1; }; }
3502 fi
3503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3504 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3505
3506 cat >>confdefs.h <<_ACEOF
3507 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3508 _ACEOF
3509
3510
3511 fi
3512 if test $ac_cv_c___int64 = yes; then
3513   echo "$as_me:$LINENO: checking size of __int64" >&5
3514 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3515 if test "${ac_cv_sizeof___int64+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3519   cat >conftest.$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include "confdefs.h"
3527 #include <sys/types.h>
3528
3529
3530 int
3531 main ()
3532 {
3533 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540   (eval $ac_compile) 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546   (eval $ac_try) 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); }; }; then
3550   ac_cv_sizeof___int64=$ac_size
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555 fi
3556 rm -f conftest.$ac_objext conftest.$ac_ext
3557   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3558 done
3559
3560 fi
3561
3562 if test x$ac_cv_sizeof___int64 = x ; then
3563   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3564 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3565    { (exit 1); exit 1; }; }
3566 fi
3567 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3568 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3569
3570 cat >>confdefs.h <<_ACEOF
3571 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3572 _ACEOF
3573
3574
3575 fi
3576
3577 # -----------------
3578 # Find Ada compiler
3579 # -----------------
3580
3581 # See if GNAT has been installed
3582
3583
3584
3585 if test -n "$ac_tool_prefix"; then
3586   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3588 echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3590 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   if test -n "$GNATBIND"; then
3594   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_exec_ext in '' $ac_executable_extensions; do
3602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608 done
3609
3610 fi
3611 fi
3612 GNATBIND=$ac_cv_prog_GNATBIND
3613 if test -n "$GNATBIND"; then
3614   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3615 echo "${ECHO_T}$GNATBIND" >&6
3616 else
3617   echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3619 fi
3620
3621 fi
3622 if test -z "$ac_cv_prog_GNATBIND"; then
3623   ac_ct_GNATBIND=$GNATBIND
3624   # Extract the first word of "gnatbind", so it can be a program name with args.
3625 set dummy gnatbind; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   if test -n "$ac_ct_GNATBIND"; then
3632   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639   for ac_exec_ext in '' $ac_executable_extensions; do
3640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643     break 2
3644   fi
3645 done
3646 done
3647
3648   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3649 fi
3650 fi
3651 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3652 if test -n "$ac_ct_GNATBIND"; then
3653   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3654 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3655 else
3656   echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3658 fi
3659
3660   GNATBIND=$ac_ct_GNATBIND
3661 else
3662   GNATBIND="$ac_cv_prog_GNATBIND"
3663 fi
3664
3665 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3666 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3667 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   cat >conftest.adb <<EOF
3671 procedure conftest is begin null; end conftest;
3672 EOF
3673 gcc_cv_cc_supports_ada=no
3674 # There is a bug in old released versions of GCC which causes the
3675 # driver to exit successfully when the appropriate language module
3676 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3677 # Therefore we must check for the error message as well as an
3678 # unsuccessful exit.
3679 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3680 if test x"$errors" = x; then
3681   gcc_cv_cc_supports_ada=yes
3682   break
3683 fi
3684 rm -f conftest.*
3685 fi
3686 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3687 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3688
3689 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3690   have_gnat=yes
3691 else
3692   have_gnat=no
3693 fi
3694
3695
3696 # ---------------------
3697 # Warnings and checking
3698 # ---------------------
3699
3700 strict1_warn=
3701 if test $ac_cv_prog_cc_no_long_long = yes ; then
3702   strict1_warn="-pedantic -Wno-long-long"
3703 fi
3704
3705
3706 # If the native compiler is GCC, we can enable warnings even in stage1.
3707 # That's useful for people building cross-compilers, or just running a
3708 # quick `make'.
3709 warn_cflags=
3710 if test "x$GCC" = "xyes"; then
3711   warn_cflags='$(GCC_WARN_CFLAGS)'
3712 fi
3713
3714
3715 # Enable -Werror in bootstrap stage2 and later.
3716 # Change the default to "no" on release branches.
3717 # Check whether --enable-werror or --disable-werror was given.
3718 if test "${enable_werror+set}" = set; then
3719   enableval="$enable_werror"
3720
3721 else
3722   enable_werror=yes
3723 fi;
3724 if test x$enable_werror = xyes ; then
3725   WERROR=-Werror
3726 fi
3727
3728
3729 # Enable expensive internal checks
3730 # Check whether --enable-checking or --disable-checking was given.
3731 if test "${enable_checking+set}" = set; then
3732   enableval="$enable_checking"
3733   ac_checking=
3734 ac_tree_checking=
3735 ac_rtl_checking=
3736 ac_rtlflag_checking=
3737 ac_gc_checking=
3738 ac_gc_always_collect=
3739 ac_fold_checking=
3740 case "${enableval}" in
3741 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3742         ac_rtlflag_checking=1 ;;
3743 no)     ;;
3744 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3745         set fnord $enableval; shift
3746         IFS="$ac_save_IFS"
3747         for check
3748         do
3749                 case $check in
3750                 misc)   ac_checking=1 ;;
3751                 tree)   ac_tree_checking=1 ;;
3752                 rtlflag)        ac_rtlflag_checking=1 ;;
3753                 rtl)    ac_rtl_checking=1 ;;
3754                 gc)     ac_gc_checking=1 ;;
3755                 gcac)   ac_gc_always_collect=1 ;;
3756                 fold)   ac_fold_checking=1 ;;
3757                 valgrind)       ac_checking_valgrind=1 ;;
3758                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3759 echo "$as_me: error: unknown check category $check" >&2;}
3760    { (exit 1); exit 1; }; } ;;
3761                 esac
3762         done
3763         ;;
3764 esac
3765
3766 else
3767   # Enable some checks by default for development versions of GCC
3768 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3769 fi;
3770 nocommon_flag=""
3771 if test x$ac_checking != x ; then
3772
3773 cat >>confdefs.h <<\_ACEOF
3774 #define ENABLE_CHECKING 1
3775 _ACEOF
3776
3777   nocommon_flag=-fno-common
3778 fi
3779
3780 if test x$ac_tree_checking != x ; then
3781
3782 cat >>confdefs.h <<\_ACEOF
3783 #define ENABLE_TREE_CHECKING 1
3784 _ACEOF
3785
3786 fi
3787 if test x$ac_rtl_checking != x ; then
3788
3789 cat >>confdefs.h <<\_ACEOF
3790 #define ENABLE_RTL_CHECKING 1
3791 _ACEOF
3792
3793 fi
3794 if test x$ac_rtlflag_checking != x ; then
3795
3796 cat >>confdefs.h <<\_ACEOF
3797 #define ENABLE_RTL_FLAG_CHECKING 1
3798 _ACEOF
3799
3800 fi
3801 if test x$ac_gc_checking != x ; then
3802
3803 cat >>confdefs.h <<\_ACEOF
3804 #define ENABLE_GC_CHECKING 1
3805 _ACEOF
3806
3807 fi
3808 if test x$ac_gc_always_collect != x ; then
3809
3810 cat >>confdefs.h <<\_ACEOF
3811 #define ENABLE_GC_ALWAYS_COLLECT 1
3812 _ACEOF
3813
3814 fi
3815 if test x$ac_fold_checking != x ; then
3816
3817 cat >>confdefs.h <<\_ACEOF
3818 #define ENABLE_FOLD_CHECKING 1
3819 _ACEOF
3820
3821 fi
3822 valgrind_path_defines=
3823 valgrind_command=
3824
3825
3826 echo "$as_me:$LINENO: checking for egrep" >&5
3827 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3828 if test "${ac_cv_prog_egrep+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3832     then ac_cv_prog_egrep='grep -E'
3833     else ac_cv_prog_egrep='egrep'
3834     fi
3835 fi
3836 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3837 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3838  EGREP=$ac_cv_prog_egrep
3839
3840
3841 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3843 if test "${ac_cv_header_stdc+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   cat >conftest.$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3848 /* confdefs.h.  */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h.  */
3853 #include <stdlib.h>
3854 #include <stdarg.h>
3855 #include <string.h>
3856 #include <float.h>
3857
3858 int
3859 main ()
3860 {
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868   (eval $ac_compile) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } &&
3872          { ac_try='test -s conftest.$ac_objext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_cv_header_stdc=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_cv_header_stdc=no
3884 fi
3885 rm -f conftest.$ac_objext conftest.$ac_ext
3886
3887 if test $ac_cv_header_stdc = yes; then
3888   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3889   cat >conftest.$ac_ext <<_ACEOF
3890 #line $LINENO "configure"
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896 #include <string.h>
3897
3898 _ACEOF
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900   $EGREP "memchr" >/dev/null 2>&1; then
3901   :
3902 else
3903   ac_cv_header_stdc=no
3904 fi
3905 rm -f conftest*
3906
3907 fi
3908
3909 if test $ac_cv_header_stdc = yes; then
3910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911   cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 /* confdefs.h.  */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h.  */
3918 #include <stdlib.h>
3919
3920 _ACEOF
3921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922   $EGREP "free" >/dev/null 2>&1; then
3923   :
3924 else
3925   ac_cv_header_stdc=no
3926 fi
3927 rm -f conftest*
3928
3929 fi
3930
3931 if test $ac_cv_header_stdc = yes; then
3932   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3933   if test "$cross_compiling" = yes; then
3934   :
3935 else
3936   cat >conftest.$ac_ext <<_ACEOF
3937 #line $LINENO "configure"
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <ctype.h>
3944 #if ((' ' & 0x0FF) == 0x020)
3945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947 #else
3948 # define ISLOWER(c) \
3949                    (('a' <= (c) && (c) <= 'i') \
3950                      || ('j' <= (c) && (c) <= 'r') \
3951                      || ('s' <= (c) && (c) <= 'z'))
3952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3953 #endif
3954
3955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3956 int
3957 main ()
3958 {
3959   int i;
3960   for (i = 0; i < 256; i++)
3961     if (XOR (islower (i), ISLOWER (i))
3962         || toupper (i) != TOUPPER (i))
3963       exit(2);
3964   exit (0);
3965 }
3966 _ACEOF
3967 rm -f conftest$ac_exeext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3969   (eval $ac_link) 2>&5
3970   ac_status=$?
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   :
3979 else
3980   echo "$as_me: program exited with status $ac_status" >&5
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984 ( exit $ac_status )
3985 ac_cv_header_stdc=no
3986 fi
3987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 fi
3989 fi
3990 fi
3991 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3992 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3993 if test $ac_cv_header_stdc = yes; then
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define STDC_HEADERS 1
3997 _ACEOF
3998
3999 fi
4000
4001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4012                   inttypes.h stdint.h unistd.h
4013 do
4014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4015 echo "$as_me:$LINENO: checking for $ac_header" >&5
4016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   cat >conftest.$ac_ext <<_ACEOF
4021 #line $LINENO "configure"
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027 $ac_includes_default
4028
4029 #include <$ac_header>
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033   (eval $ac_compile) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -s conftest.$ac_objext'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   eval "$as_ac_Header=yes"
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 eval "$as_ac_Header=no"
4049 fi
4050 rm -f conftest.$ac_objext conftest.$ac_ext
4051 fi
4052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4055   cat >>confdefs.h <<_ACEOF
4056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4057 _ACEOF
4058
4059 fi
4060
4061 done
4062
4063
4064 if test "${ac_cv_header_valgrind_h+set}" = set; then
4065   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4066 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4067 if test "${ac_cv_header_valgrind_h+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 fi
4070 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4071 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4072 else
4073   # Is the header compilable?
4074 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4075 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 $ac_includes_default
4084 #include <valgrind.h>
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088   (eval $ac_compile) 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } &&
4092          { ac_try='test -s conftest.$ac_objext'
4093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094   (eval $ac_try) 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; }; then
4098   ac_header_compiler=yes
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 ac_header_compiler=no
4104 fi
4105 rm -f conftest.$ac_objext conftest.$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4107 echo "${ECHO_T}$ac_header_compiler" >&6
4108
4109 # Is the header present?
4110 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4111 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4112 cat >conftest.$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #include <valgrind.h>
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } >/dev/null; then
4129   if test -s conftest.err; then
4130     ac_cpp_err=$ac_c_preproc_warn_flag
4131   else
4132     ac_cpp_err=
4133   fi
4134 else
4135   ac_cpp_err=yes
4136 fi
4137 if test -z "$ac_cpp_err"; then
4138   ac_header_preproc=yes
4139 else
4140   echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143   ac_header_preproc=no
4144 fi
4145 rm -f conftest.err conftest.$ac_ext
4146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4147 echo "${ECHO_T}$ac_header_preproc" >&6
4148
4149 # So?  What about this header?
4150 case $ac_header_compiler:$ac_header_preproc in
4151   yes:no )
4152     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4153 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4154     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4155 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4156     (
4157       cat <<\_ASBOX
4158 ## ------------------------------------ ##
4159 ## Report this to bug-autoconf@gnu.org. ##
4160 ## ------------------------------------ ##
4161 _ASBOX
4162     ) |
4163       sed "s/^/$as_me: WARNING:     /" >&2
4164     ;;
4165   no:yes )
4166     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4167 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4168     { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4169 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4170     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4171 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4172     (
4173       cat <<\_ASBOX
4174 ## ------------------------------------ ##
4175 ## Report this to bug-autoconf@gnu.org. ##
4176 ## ------------------------------------ ##
4177 _ASBOX
4178     ) |
4179       sed "s/^/$as_me: WARNING:     /" >&2
4180     ;;
4181 esac
4182 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4183 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4184 if test "${ac_cv_header_valgrind_h+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   ac_cv_header_valgrind_h=$ac_header_preproc
4188 fi
4189 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4190 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4191
4192 fi
4193 if test $ac_cv_header_valgrind_h = yes; then
4194   have_valgrind_h=yes
4195 else
4196   have_valgrind_h=no
4197 fi
4198
4199
4200
4201 if test x$ac_checking_valgrind != x ; then
4202   # It is certainly possible that there's valgrind but no valgrind.h.
4203   # GCC relies on making annotations so we must have both.
4204   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4205 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4206   cat >conftest.$ac_ext <<_ACEOF
4207 #line $LINENO "configure"
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213 #include <valgrind/memcheck.h>
4214 #ifndef VALGRIND_DISCARD
4215 #error VALGRIND_DISCARD not defined
4216 #endif
4217 _ACEOF
4218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } >/dev/null; then
4226   if test -s conftest.err; then
4227     ac_cpp_err=$ac_c_preproc_warn_flag
4228   else
4229     ac_cpp_err=
4230   fi
4231 else
4232   ac_cpp_err=yes
4233 fi
4234 if test -z "$ac_cpp_err"; then
4235   gcc_cv_header_valgrind_memcheck_h=yes
4236 else
4237   echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240   gcc_cv_header_valgrind_memcheck_h=no
4241 fi
4242 rm -f conftest.err conftest.$ac_ext
4243   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4244 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4245   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4246 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4247   cat >conftest.$ac_ext <<_ACEOF
4248 #line $LINENO "configure"
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 #include <memcheck.h>
4255 #ifndef VALGRIND_DISCARD
4256 #error VALGRIND_DISCARD not defined
4257 #endif
4258 _ACEOF
4259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4261   ac_status=$?
4262   grep -v '^ *+' conftest.er1 >conftest.err
4263   rm -f conftest.er1
4264   cat conftest.err >&5
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } >/dev/null; then
4267   if test -s conftest.err; then
4268     ac_cpp_err=$ac_c_preproc_warn_flag
4269   else
4270     ac_cpp_err=
4271   fi
4272 else
4273   ac_cpp_err=yes
4274 fi
4275 if test -z "$ac_cpp_err"; then
4276   gcc_cv_header_memcheck_h=yes
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281   gcc_cv_header_memcheck_h=no
4282 fi
4283 rm -f conftest.err conftest.$ac_ext
4284   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4285 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4286
4287 # Prepare PATH_SEPARATOR.
4288 # The user is always right.
4289 if test "${PATH_SEPARATOR+set}" != set; then
4290   echo "#! /bin/sh" >conf$$.sh
4291   echo  "exit 0"   >>conf$$.sh
4292   chmod +x conf$$.sh
4293   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4294     PATH_SEPARATOR=';'
4295   else
4296     PATH_SEPARATOR=:
4297   fi
4298   rm -f conf$$.sh
4299 fi
4300
4301 # Find out how to test for executable files. Don't use a zero-byte file,
4302 # as systems may use methods other than mode bits to determine executability.
4303 cat >conf$$.file <<_ASEOF
4304 #! /bin/sh
4305 exit 0
4306 _ASEOF
4307 chmod +x conf$$.file
4308 if test -x conf$$.file >/dev/null 2>&1; then
4309   ac_executable_p="test -x"
4310 else
4311   ac_executable_p="test -f"
4312 fi
4313 rm -f conf$$.file
4314
4315 # Extract the first word of "valgrind", so it can be a program name with args.
4316 set dummy valgrind; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_path_valgrind_path+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   case "$valgrind_path" in
4323   [\\/]* | ?:[\\/]*)
4324     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4325     ;;
4326   *)
4327     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4328     for ac_dir in $PATH; do
4329       IFS="$ac_save_IFS"
4330       test -z "$ac_dir" && ac_dir=.
4331       for ac_exec_ext in '' $ac_executable_extensions; do
4332         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4333           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4334             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4335             break 2
4336           fi
4337         fi
4338       done
4339     done
4340     IFS="$ac_save_IFS"
4341     ;;
4342 esac
4343 fi
4344 valgrind_path="$ac_cv_path_valgrind_path"
4345 if test -n "$valgrind_path"; then
4346   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4347 echo "${ECHO_T}$valgrind_path" >&6
4348 else
4349   echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351 fi
4352
4353   if test "x$valgrind_path" = "x" \
4354     || (test $have_valgrind_h = no \
4355         && test $gcc_cv_header_memcheck_h = no \
4356         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4357         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4358 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4359    { (exit 1); exit 1; }; }
4360   fi
4361   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4362   valgrind_command="$valgrind_path -q"
4363
4364 cat >>confdefs.h <<\_ACEOF
4365 #define ENABLE_VALGRIND_CHECKING 1
4366 _ACEOF
4367
4368   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4369
4370 cat >>confdefs.h <<\_ACEOF
4371 #define HAVE_VALGRIND_MEMCHECK_H 1
4372 _ACEOF
4373
4374   fi
4375   if test $gcc_cv_header_memcheck_h = yes; then
4376
4377 cat >>confdefs.h <<\_ACEOF
4378 #define HAVE_MEMCHECK_H 1
4379 _ACEOF
4380
4381   fi
4382 fi
4383
4384
4385
4386 # Enable code coverage collection
4387 # Check whether --enable-coverage or --disable-coverage was given.
4388 if test "${enable_coverage+set}" = set; then
4389   enableval="$enable_coverage"
4390   case "${enableval}" in
4391 yes|noopt)
4392         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4393         ;;
4394 opt)
4395         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4396         ;;
4397 *)
4398         { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4399 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4400    { (exit 1); exit 1; }; }
4401         ;;
4402 esac
4403 else
4404   coverage_flags=""
4405 fi;
4406
4407
4408 # -------------------------------
4409 # Miscenalleous configure options
4410 # -------------------------------
4411
4412 # With stabs
4413
4414 # Check whether --with-stabs or --without-stabs was given.
4415 if test "${with_stabs+set}" = set; then
4416   withval="$with_stabs"
4417   stabs="$with_stabs"
4418 else
4419   stabs=no
4420 fi;
4421
4422 # Determine whether or not multilibs are enabled.
4423 # Check whether --enable-multilib or --disable-multilib was given.
4424 if test "${enable_multilib+set}" = set; then
4425   enableval="$enable_multilib"
4426
4427 else
4428   enable_multilib=yes
4429 fi;
4430
4431
4432 # Enable __cxa_atexit for C++.
4433 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4434 if test "${enable___cxa_atexit+set}" = set; then
4435   enableval="$enable___cxa_atexit"
4436
4437 fi;
4438
4439 # Enable threads
4440 # Pass with no value to take the default
4441 # Pass with a value to specify a thread package
4442 # Check whether --enable-threads or --disable-threads was given.
4443 if test "${enable_threads+set}" = set; then
4444   enableval="$enable_threads"
4445
4446 else
4447   enable_threads=''
4448 fi;
4449 # Save in case it gets overwritten in config.gcc
4450 enable_threads_flag=$enable_threads
4451
4452 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4453 if test "${enable_objc_gc+set}" = set; then
4454   enableval="$enable_objc_gc"
4455   if test x$enable_objc_gc = xno; then
4456         objc_boehm_gc=''
4457 else
4458         objc_boehm_gc=1
4459 fi
4460 else
4461   objc_boehm_gc=''
4462 fi;
4463
4464
4465 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4466 if test "${with_dwarf2+set}" = set; then
4467   withval="$with_dwarf2"
4468   dwarf2="$with_dwarf2"
4469 else
4470   dwarf2=no
4471 fi;
4472
4473 # Check whether --enable-shared or --disable-shared was given.
4474 if test "${enable_shared+set}" = set; then
4475   enableval="$enable_shared"
4476
4477   case $enable_shared in
4478   yes | no) ;;
4479   *)
4480     enable_shared=no
4481     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4482     for pkg in $enableval; do
4483       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4484         enable_shared=yes
4485       fi
4486     done
4487     IFS="$ac_save_ifs"
4488     ;;
4489   esac
4490
4491 else
4492   enable_shared=yes
4493 fi;
4494
4495
4496
4497 # Check whether --with-sysroot or --without-sysroot was given.
4498 if test "${with_sysroot+set}" = set; then
4499   withval="$with_sysroot"
4500
4501  case ${with_sysroot} in
4502  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4503  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4504  esac
4505
4506  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4507  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4508
4509  if test "x$exec_prefix" = xNONE; then
4510   if test "x$prefix" = xNONE; then
4511    test_prefix=/usr/local
4512   else
4513    test_prefix=$prefix
4514   fi
4515  else
4516   test_prefix=$exec_prefix
4517  fi
4518  case ${TARGET_SYSTEM_ROOT} in
4519  "${test_prefix}"|"${test_prefix}/"*|\
4520  '${exec_prefix}'|'${exec_prefix}/'*)
4521    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4522    TARGET_SYSTEM_ROOT_DEFINE="$t"
4523    ;;
4524  esac
4525
4526 else
4527
4528  TARGET_SYSTEM_ROOT=
4529  TARGET_SYSTEM_ROOT_DEFINE=
4530  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4531
4532 fi;
4533
4534
4535
4536
4537 # Build with intermodule optimisations
4538 # Check whether --enable-intermodule or --disable-intermodule was given.
4539 if test "${enable_intermodule+set}" = set; then
4540   enableval="$enable_intermodule"
4541   case ${enable_intermodule} in
4542   yes) onestep="-onestep";;
4543   *) onestep="";;
4544 esac
4545 else
4546   onestep=""
4547 fi;
4548
4549
4550 # -------------------------
4551 # Checks for other programs
4552 # -------------------------
4553
4554 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4555 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4556 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4557 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   cat >conftest.make <<\_ACEOF
4561 all:
4562         @echo 'ac_maketemp="$(MAKE)"'
4563 _ACEOF
4564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4565 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4566 if test -n "$ac_maketemp"; then
4567   eval ac_cv_prog_make_${ac_make}_set=yes
4568 else
4569   eval ac_cv_prog_make_${ac_make}_set=no
4570 fi
4571 rm -f conftest.make
4572 fi
4573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4574   echo "$as_me:$LINENO: result: yes" >&5
4575 echo "${ECHO_T}yes" >&6
4576   SET_MAKE=
4577 else
4578   echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6
4580   SET_MAKE="MAKE=${MAKE-make}"
4581 fi
4582
4583
4584 # Find some useful tools
4585 for ac_prog in gawk mawk nawk awk
4586 do
4587   # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy $ac_prog; ac_word=$2
4589 echo "$as_me:$LINENO: checking for $ac_word" >&5
4590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4591 if test "${ac_cv_prog_AWK+set}" = set; then
4592   echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594   if test -n "$AWK"; then
4595   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602   for ac_exec_ext in '' $ac_executable_extensions; do
4603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604     ac_cv_prog_AWK="$ac_prog"
4605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606     break 2
4607   fi
4608 done
4609 done
4610
4611 fi
4612 fi
4613 AWK=$ac_cv_prog_AWK
4614 if test -n "$AWK"; then
4615   echo "$as_me:$LINENO: result: $AWK" >&5
4616 echo "${ECHO_T}$AWK" >&6
4617 else
4618   echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4620 fi
4621
4622   test -n "$AWK" && break
4623 done
4624
4625 # We need awk to run opts.sh (to create options.c and options.h).
4626 # Bail out if it's missing.
4627 case ${AWK} in
4628   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4629 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4630    { (exit 1); exit 1; }; } ;;
4631 esac
4632
4633 echo "$as_me:$LINENO: checking whether ln works" >&5
4634 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4635 if test "${gcc_cv_prog_LN+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   rm -f conftestdata_t
4639 echo >conftestdata_f
4640 if ln conftestdata_f conftestdata_t 2>/dev/null
4641 then
4642   gcc_cv_prog_LN="ln"
4643 else
4644   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4645   then
4646     gcc_cv_prog_LN="ln -s"
4647   else
4648     gcc_cv_prog_LN=cp
4649   fi
4650 fi
4651 rm -f conftestdata_f conftestdata_t
4652
4653 fi
4654 LN="$gcc_cv_prog_LN"
4655 if test "$gcc_cv_prog_LN" = "ln"; then
4656   echo "$as_me:$LINENO: result: yes" >&5
4657 echo "${ECHO_T}yes" >&6
4658 else
4659   if test "$gcc_cv_prog_LN" = "ln -s"; then
4660     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4661 echo "${ECHO_T}no, using ln -s" >&6
4662   else
4663     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4664 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4665   fi
4666 fi
4667
4668 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4669 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4670 if test "${gcc_cv_prog_LN_S+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   rm -f conftestdata_t
4674 echo >conftestdata_f
4675 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4676 then
4677   gcc_cv_prog_LN_S="ln -s"
4678 else
4679   if ln conftestdata_f conftestdata_t 2>/dev/null
4680   then
4681     gcc_cv_prog_LN_S=ln
4682   else
4683     gcc_cv_prog_LN_S=cp
4684   fi
4685 fi
4686 rm -f conftestdata_f conftestdata_t
4687
4688 fi
4689 LN_S="$gcc_cv_prog_LN_S"
4690 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4691   echo "$as_me:$LINENO: result: yes" >&5
4692 echo "${ECHO_T}yes" >&6
4693 else
4694   if test "$gcc_cv_prog_LN_S" = "ln"; then
4695     echo "$as_me:$LINENO: result: no, using ln" >&5
4696 echo "${ECHO_T}no, using ln" >&6
4697   else
4698     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4699 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4700   fi
4701 fi
4702
4703 if test -n "$ac_tool_prefix"; then
4704   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_RANLIB+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   if test -n "$RANLIB"; then
4712   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727
4728 fi
4729 fi
4730 RANLIB=$ac_cv_prog_RANLIB
4731 if test -n "$RANLIB"; then
4732   echo "$as_me:$LINENO: result: $RANLIB" >&5
4733 echo "${ECHO_T}$RANLIB" >&6
4734 else
4735   echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6
4737 fi
4738
4739 fi
4740 if test -z "$ac_cv_prog_RANLIB"; then
4741   ac_ct_RANLIB=$RANLIB
4742   # Extract the first word of "ranlib", so it can be a program name with args.
4743 set dummy ranlib; ac_word=$2
4744 echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   if test -n "$ac_ct_RANLIB"; then
4750   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759     ac_cv_prog_ac_ct_RANLIB="ranlib"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765
4766   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4767 fi
4768 fi
4769 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4770 if test -n "$ac_ct_RANLIB"; then
4771   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4772 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4773 else
4774   echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4776 fi
4777
4778   RANLIB=$ac_ct_RANLIB
4779 else
4780   RANLIB="$ac_cv_prog_RANLIB"
4781 fi
4782
4783 # Find a good install program.  We prefer a C program (faster),
4784 # so one script is as good as another.  But avoid the broken or
4785 # incompatible versions:
4786 # SysV /etc/install, /usr/sbin/install
4787 # SunOS /usr/etc/install
4788 # IRIX /sbin/install
4789 # AIX /bin/install
4790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4792 # ./install, which can be erroneously created by make from ./install.sh.
4793 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4794 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4795 if test -z "$INSTALL"; then
4796 if test "${ac_cv_path_install+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4800   for ac_dir in $PATH; do
4801     # Account for people who put trailing slashes in PATH elements.
4802     case "$ac_dir/" in
4803     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4804     *)
4805       # OSF1 and SCO ODT 3.0 have their own names for install.
4806       for ac_prog in ginstall scoinst install; do
4807         if test -f $ac_dir/$ac_prog; then
4808           if test $ac_prog = install &&
4809             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4810             # AIX install.  It has an incompatible calling convention.
4811             # OSF/1 installbsd also uses dspmsg, but is usable.
4812             :
4813           else
4814             ac_cv_path_install="$ac_dir/$ac_prog -c"
4815             break 2
4816           fi
4817         fi
4818       done
4819       ;;
4820     esac
4821   done
4822   IFS="$ac_save_IFS"
4823
4824 fi
4825   if test "${ac_cv_path_install+set}" = set; then
4826     INSTALL="$ac_cv_path_install"
4827   else
4828     # As a last resort, use the slow shell script.  We don't cache a
4829     # path for INSTALL within a source directory, because that will
4830     # break other packages using the cache if that directory is
4831     # removed, or if the path is relative.
4832     INSTALL="$ac_install_sh"
4833   fi
4834 fi
4835 echo "$as_me:$LINENO: result: $INSTALL" >&5
4836 echo "${ECHO_T}$INSTALL" >&6
4837
4838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4839 # It thinks the first close brace ends the variable substitution.
4840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4841
4842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4843
4844
4845 # See if cmp has --ignore-initial.
4846 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4847 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4848 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851    echo abfoo >t1
4852   echo cdfoo >t2
4853   gcc_cv_prog_cmp_skip=slowcompare
4854   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4855     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4856       :
4857     else
4858       gcc_cv_prog_cmp_skip=gnucompare
4859     fi
4860   fi
4861   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4862     if cmp t1 t2 2 2 > /dev/null 2>&1; then
4863       if cmp t1 t2 1 1 > /dev/null 2>&1; then
4864         :
4865       else
4866         gcc_cv_prog_cmp_skip=fastcompare
4867       fi
4868     fi
4869   fi
4870   rm t1 t2
4871
4872 fi
4873 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4874 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4875 make_compare_target=$gcc_cv_prog_cmp_skip
4876
4877
4878
4879 # See if we have the mktemp command.
4880 # Extract the first word of "mktemp", so it can be a program name with args.
4881 set dummy mktemp; ac_word=$2
4882 echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4884 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887   if test -n "$have_mktemp_command"; then
4888   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895   for ac_exec_ext in '' $ac_executable_extensions; do
4896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897     ac_cv_prog_have_mktemp_command="yes"
4898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899     break 2
4900   fi
4901 done
4902 done
4903
4904   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4905 fi
4906 fi
4907 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4908 if test -n "$have_mktemp_command"; then
4909   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4910 echo "${ECHO_T}$have_mktemp_command" >&6
4911 else
4912   echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4914 fi
4915
4916
4917 # Do we have a single-tree copy of texinfo?
4918 if test -f $srcdir/../texinfo/Makefile.in; then
4919   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4920   gcc_cv_prog_makeinfo_modern=yes
4921   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4922 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4923 else
4924   # See if makeinfo has been installed and is modern enough
4925   # that we can use it.
4926   # Extract the first word of "makeinfo", so it can be a program name with args.
4927 set dummy makeinfo; ac_word=$2
4928 echo "$as_me:$LINENO: checking for $ac_word" >&5
4929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4930 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   if test -n "$MAKEINFO"; then
4934   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941   for ac_exec_ext in '' $ac_executable_extensions; do
4942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943     ac_cv_prog_MAKEINFO="makeinfo"
4944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948 done
4949
4950 fi
4951 fi
4952 MAKEINFO=$ac_cv_prog_MAKEINFO
4953 if test -n "$MAKEINFO"; then
4954   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4955 echo "${ECHO_T}$MAKEINFO" >&6
4956 else
4957   echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6
4959 fi
4960
4961 if test -n "$MAKEINFO"; then
4962   # Found it, now check the version.
4963   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4964 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4965 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968     ac_prog_version=`$MAKEINFO --version 2>&1 |
4969                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4970   echo "configure:4970: version of makeinfo is $ac_prog_version" >&5
4971   case $ac_prog_version in
4972     '')     gcc_cv_prog_makeinfo_modern=no;;
4973     4.[2-9]*)
4974             gcc_cv_prog_makeinfo_modern=yes;;
4975     *)      gcc_cv_prog_makeinfo_modern=no;;
4976   esac
4977
4978 fi
4979 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4980 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4981 else
4982   gcc_cv_prog_makeinfo_modern=no
4983 fi
4984
4985 fi
4986
4987 if test $gcc_cv_prog_makeinfo_modern = no; then
4988   { echo "$as_me:$LINENO: WARNING:
4989 *** Makeinfo is missing or too old.
4990 *** Info documentation will not be built." >&5
4991 echo "$as_me: WARNING:
4992 *** Makeinfo is missing or too old.
4993 *** Info documentation will not be built." >&2;}
4994   BUILD_INFO=
4995 else
4996   BUILD_INFO=info
4997 fi
4998
4999 # Is pod2man recent enough to regenerate manpages?
5000 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5001 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5002 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5003   echo "$as_me:$LINENO: result: yes" >&5
5004 echo "${ECHO_T}yes" >&6
5005   GENERATED_MANPAGES=generated-manpages
5006 else
5007   echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5009   GENERATED_MANPAGES=
5010 fi
5011
5012 # How about lex?
5013 if test -f $srcdir/../flex/skel.c; then
5014   FLEX='$(objdir)/../flex/flex'
5015 else
5016   # Extract the first word of "flex", so it can be a program name with args.
5017 set dummy flex; ac_word=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_prog_FLEX+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   if test -n "$FLEX"; then
5024   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_prog_FLEX="flex"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039
5040   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5041 fi
5042 fi
5043 FLEX=$ac_cv_prog_FLEX
5044 if test -n "$FLEX"; then
5045   echo "$as_me:$LINENO: result: $FLEX" >&5
5046 echo "${ECHO_T}$FLEX" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052 fi
5053
5054 # Bison?
5055 # The -L switch is so bison can find its skeleton file.
5056 if test -f $srcdir/../bison/bison.simple; then
5057   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5058 else
5059   # Extract the first word of "bison", so it can be a program name with args.
5060 set dummy bison; ac_word=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_prog_BISON+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   if test -n "$BISON"; then
5067   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076     ac_cv_prog_BISON="bison"
5077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081 done
5082
5083   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5084 fi
5085 fi
5086 BISON=$ac_cv_prog_BISON
5087 if test -n "$BISON"; then
5088   echo "$as_me:$LINENO: result: $BISON" >&5
5089 echo "${ECHO_T}$BISON" >&6
5090 else
5091   echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5093 fi
5094
5095 fi
5096
5097 # --------------------
5098 # Checks for C headers
5099 # --------------------
5100
5101 echo "$as_me:$LINENO: checking for GNU C library" >&5
5102 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5103 if test "${gcc_cv_glibc+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #include <features.h>
5114 int
5115 main ()
5116 {
5117
5118 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5119 #error Not a GNU C library system
5120 #endif
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127   (eval $ac_compile) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } &&
5131          { ac_try='test -s conftest.$ac_objext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   gcc_cv_glibc=yes
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 gcc_cv_glibc=no
5143 fi
5144 rm -f conftest.$ac_objext conftest.$ac_ext
5145 fi
5146
5147 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5148 echo "${ECHO_T}$gcc_cv_glibc" >&6
5149 if test $gcc_cv_glibc = yes; then
5150
5151 cat >>confdefs.h <<\_ACEOF
5152 #define _GNU_SOURCE 1
5153 _ACEOF
5154
5155 fi
5156
5157 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5158 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5159 if test "${ac_cv_header_stdc+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   cat >conftest.$ac_ext <<_ACEOF
5163 #line $LINENO "configure"
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 #include <stdlib.h>
5170 #include <stdarg.h>
5171 #include <string.h>
5172 #include <float.h>
5173
5174 int
5175 main ()
5176 {
5177
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184   (eval $ac_compile) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } &&
5188          { ac_try='test -s conftest.$ac_objext'
5189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190   (eval $ac_try) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); }; }; then
5194   ac_cv_header_stdc=yes
5195 else
5196   echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 ac_cv_header_stdc=no
5200 fi
5201 rm -f conftest.$ac_objext conftest.$ac_ext
5202
5203 if test $ac_cv_header_stdc = yes; then
5204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205   cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 #include <string.h>
5213
5214 _ACEOF
5215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5216   $EGREP "memchr" >/dev/null 2>&1; then
5217   :
5218 else
5219   ac_cv_header_stdc=no
5220 fi
5221 rm -f conftest*
5222
5223 fi
5224
5225 if test $ac_cv_header_stdc = yes; then
5226   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5227   cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 /* confdefs.h.  */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h.  */
5234 #include <stdlib.h>
5235
5236 _ACEOF
5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238   $EGREP "free" >/dev/null 2>&1; then
5239   :
5240 else
5241   ac_cv_header_stdc=no
5242 fi
5243 rm -f conftest*
5244
5245 fi
5246
5247 if test $ac_cv_header_stdc = yes; then
5248   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5249   if test "$cross_compiling" = yes; then
5250   :
5251 else
5252   cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 #include <ctype.h>
5260 #if ((' ' & 0x0FF) == 0x020)
5261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5263 #else
5264 # define ISLOWER(c) \
5265                    (('a' <= (c) && (c) <= 'i') \
5266                      || ('j' <= (c) && (c) <= 'r') \
5267                      || ('s' <= (c) && (c) <= 'z'))
5268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5269 #endif
5270
5271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5272 int
5273 main ()
5274 {
5275   int i;
5276   for (i = 0; i < 256; i++)
5277     if (XOR (islower (i), ISLOWER (i))
5278         || toupper (i) != TOUPPER (i))
5279       exit(2);
5280   exit (0);
5281 }
5282 _ACEOF
5283 rm -f conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285   (eval $ac_link) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290   (eval $ac_try) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; }; then
5294   :
5295 else
5296   echo "$as_me: program exited with status $ac_status" >&5
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300 ( exit $ac_status )
5301 ac_cv_header_stdc=no
5302 fi
5303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 fi
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5309 if test $ac_cv_header_stdc = yes; then
5310
5311 cat >>confdefs.h <<\_ACEOF
5312 #define STDC_HEADERS 1
5313 _ACEOF
5314
5315 fi
5316
5317 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5318 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5319 if test "${ac_cv_header_time+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 #include <sys/types.h>
5330 #include <sys/time.h>
5331 #include <time.h>
5332
5333 int
5334 main ()
5335 {
5336 if ((struct tm *) 0)
5337 return 0;
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344   (eval $ac_compile) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -s conftest.$ac_objext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   ac_cv_header_time=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359 ac_cv_header_time=no
5360 fi
5361 rm -f conftest.$ac_objext conftest.$ac_ext
5362 fi
5363 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5364 echo "${ECHO_T}$ac_cv_header_time" >&6
5365 if test $ac_cv_header_time = yes; then
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define TIME_WITH_SYS_TIME 1
5369 _ACEOF
5370
5371 fi
5372
5373 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5374 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5375 if test "${ac_cv_header_stdbool_h+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378   cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 #include <stdbool.h>
5386 int
5387 main ()
5388 {
5389 bool foo = false;
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396   (eval $ac_compile) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } &&
5400          { ac_try='test -s conftest.$ac_objext'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   ac_cv_header_stdbool_h=yes
5407 else
5408   echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_cv_header_stdbool_h=no
5412 fi
5413 rm -f conftest.$ac_objext conftest.$ac_ext
5414 fi
5415 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5416 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5417 if test $ac_cv_header_stdbool_h = yes; then
5418
5419 cat >>confdefs.h <<\_ACEOF
5420 #define HAVE_STDBOOL_H 1
5421 _ACEOF
5422
5423 fi
5424
5425 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5426 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5427 if test "${gcc_cv_header_string+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437 #include <string.h>
5438 #include <strings.h>
5439 int
5440 main ()
5441 {
5442
5443   ;
5444   return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449   (eval $ac_compile) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } &&
5453          { ac_try='test -s conftest.$ac_objext'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   gcc_cv_header_string=yes
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 gcc_cv_header_string=no
5465 fi
5466 rm -f conftest.$ac_objext conftest.$ac_ext
5467 fi
5468 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5469 echo "${ECHO_T}$gcc_cv_header_string" >&6
5470 if test $gcc_cv_header_string = yes; then
5471
5472 cat >>confdefs.h <<\_ACEOF
5473 #define STRING_WITH_STRINGS 1
5474 _ACEOF
5475
5476 fi
5477
5478 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5479 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5480 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5481   echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483   cat >conftest.$ac_ext <<_ACEOF
5484 #line $LINENO "configure"
5485 /* confdefs.h.  */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h.  */
5490 #include <sys/types.h>
5491 #include <sys/wait.h>
5492 #ifndef WEXITSTATUS
5493 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5494 #endif
5495 #ifndef WIFEXITED
5496 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5497 #endif
5498
5499 int
5500 main ()
5501 {
5502   int s;
5503   wait (&s);
5504   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5505   ;
5506   return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511   (eval $ac_compile) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); } &&
5515          { ac_try='test -s conftest.$ac_objext'
5516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517   (eval $ac_try) 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); }; }; then
5521   ac_cv_header_sys_wait_h=yes
5522 else
5523   echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 ac_cv_header_sys_wait_h=no
5527 fi
5528 rm -f conftest.$ac_objext conftest.$ac_ext
5529 fi
5530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5531 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5532 if test $ac_cv_header_sys_wait_h = yes; then
5533
5534 cat >>confdefs.h <<\_ACEOF
5535 #define HAVE_SYS_WAIT_H 1
5536 _ACEOF
5537
5538 fi
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5562                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5563                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5564                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5565 do
5566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5568   echo "$as_me:$LINENO: checking for $ac_header" >&5
5569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 fi
5573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5575 else
5576   # Is the header compilable?
5577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 $ac_includes_default
5587 #include <$ac_header>
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591   (eval $ac_compile) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } &&
5595          { ac_try='test -s conftest.$ac_objext'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; }; then
5601   ac_header_compiler=yes
5602 else
5603   echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 ac_header_compiler=no
5607 fi
5608 rm -f conftest.$ac_objext conftest.$ac_ext
5609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610 echo "${ECHO_T}$ac_header_compiler" >&6
5611
5612 # Is the header present?
5613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 /* confdefs.h.  */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h.  */
5622 #include <$ac_header>
5623 _ACEOF
5624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5625   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5632   if test -s conftest.err; then
5633     ac_cpp_err=$ac_c_preproc_warn_flag
5634   else
5635     ac_cpp_err=
5636   fi
5637 else
5638   ac_cpp_err=yes
5639 fi
5640 if test -z "$ac_cpp_err"; then
5641   ac_header_preproc=yes
5642 else
5643   echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646   ac_header_preproc=no
5647 fi
5648 rm -f conftest.err conftest.$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5650 echo "${ECHO_T}$ac_header_preproc" >&6
5651
5652 # So?  What about this header?
5653 case $ac_header_compiler:$ac_header_preproc in
5654   yes:no )
5655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5659     (
5660       cat <<\_ASBOX
5661 ## ------------------------------------ ##
5662 ## Report this to bug-autoconf@gnu.org. ##
5663 ## ------------------------------------ ##
5664 _ASBOX
5665     ) |
5666       sed "s/^/$as_me: WARNING:     /" >&2
5667     ;;
5668   no:yes )
5669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5675     (
5676       cat <<\_ASBOX
5677 ## ------------------------------------ ##
5678 ## Report this to bug-autoconf@gnu.org. ##
5679 ## ------------------------------------ ##
5680 _ASBOX
5681     ) |
5682       sed "s/^/$as_me: WARNING:     /" >&2
5683     ;;
5684 esac
5685 echo "$as_me:$LINENO: checking for $ac_header" >&5
5686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690   eval "$as_ac_Header=$ac_header_preproc"
5691 fi
5692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5694
5695 fi
5696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5697   cat >>confdefs.h <<_ACEOF
5698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5699 _ACEOF
5700
5701 fi
5702
5703 done
5704
5705
5706 # Check for thread headers.
5707 if test "${ac_cv_header_thread_h+set}" = set; then
5708   echo "$as_me:$LINENO: checking for thread.h" >&5
5709 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5710 if test "${ac_cv_header_thread_h+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 fi
5713 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5714 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5715 else
5716   # Is the header compilable?
5717 echo "$as_me:$LINENO: checking thread.h usability" >&5
5718 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726 $ac_includes_default
5727 #include <thread.h>
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731   (eval $ac_compile) 2>&5
5732   ac_status=$?
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } &&
5735          { ac_try='test -s conftest.$ac_objext'
5736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737   (eval $ac_try) 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); }; }; then
5741   ac_header_compiler=yes
5742 else
5743   echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 ac_header_compiler=no
5747 fi
5748 rm -f conftest.$ac_objext conftest.$ac_ext
5749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5750 echo "${ECHO_T}$ac_header_compiler" >&6
5751
5752 # Is the header present?
5753 echo "$as_me:$LINENO: checking thread.h presence" >&5
5754 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762 #include <thread.h>
5763 _ACEOF
5764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } >/dev/null; then
5772   if test -s conftest.err; then
5773     ac_cpp_err=$ac_c_preproc_warn_flag
5774   else
5775     ac_cpp_err=
5776   fi
5777 else
5778   ac_cpp_err=yes
5779 fi
5780 if test -z "$ac_cpp_err"; then
5781   ac_header_preproc=yes
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786   ac_header_preproc=no
5787 fi
5788 rm -f conftest.err conftest.$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5790 echo "${ECHO_T}$ac_header_preproc" >&6
5791
5792 # So?  What about this header?
5793 case $ac_header_compiler:$ac_header_preproc in
5794   yes:no )
5795     { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5796 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5797     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5798 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5799     (
5800       cat <<\_ASBOX
5801 ## ------------------------------------ ##
5802 ## Report this to bug-autoconf@gnu.org. ##
5803 ## ------------------------------------ ##
5804 _ASBOX
5805     ) |
5806       sed "s/^/$as_me: WARNING:     /" >&2
5807     ;;
5808   no:yes )
5809     { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5810 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5811     { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5812 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5813     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5814 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5815     (
5816       cat <<\_ASBOX
5817 ## ------------------------------------ ##
5818 ## Report this to bug-autoconf@gnu.org. ##
5819 ## ------------------------------------ ##
5820 _ASBOX
5821     ) |
5822       sed "s/^/$as_me: WARNING:     /" >&2
5823     ;;
5824 esac
5825 echo "$as_me:$LINENO: checking for thread.h" >&5
5826 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5827 if test "${ac_cv_header_thread_h+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   ac_cv_header_thread_h=$ac_header_preproc
5831 fi
5832 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5833 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5834
5835 fi
5836 if test $ac_cv_header_thread_h = yes; then
5837   have_thread_h=yes
5838 else
5839   have_thread_h=
5840 fi
5841
5842
5843 if test "${ac_cv_header_pthread_h+set}" = set; then
5844   echo "$as_me:$LINENO: checking for pthread.h" >&5
5845 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5846 if test "${ac_cv_header_pthread_h+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 fi
5849 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5850 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5851 else
5852   # Is the header compilable?
5853 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5854 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5856 #line $LINENO "configure"
5857 /* confdefs.h.  */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h.  */
5862 $ac_includes_default
5863 #include <pthread.h>
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867   (eval $ac_compile) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -s conftest.$ac_objext'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; }; then
5877   ac_header_compiler=yes
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_header_compiler=no
5883 fi
5884 rm -f conftest.$ac_objext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5886 echo "${ECHO_T}$ac_header_compiler" >&6
5887
5888 # Is the header present?
5889 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5890 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <pthread.h>
5899 _ACEOF
5900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } >/dev/null; then
5908   if test -s conftest.err; then
5909     ac_cpp_err=$ac_c_preproc_warn_flag
5910   else
5911     ac_cpp_err=
5912   fi
5913 else
5914   ac_cpp_err=yes
5915 fi
5916 if test -z "$ac_cpp_err"; then
5917   ac_header_preproc=yes
5918 else
5919   echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922   ac_header_preproc=no
5923 fi
5924 rm -f conftest.err conftest.$ac_ext
5925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5926 echo "${ECHO_T}$ac_header_preproc" >&6
5927
5928 # So?  What about this header?
5929 case $ac_header_compiler:$ac_header_preproc in
5930   yes:no )
5931     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5932 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5933     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5934 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5935     (
5936       cat <<\_ASBOX
5937 ## ------------------------------------ ##
5938 ## Report this to bug-autoconf@gnu.org. ##
5939 ## ------------------------------------ ##
5940 _ASBOX
5941     ) |
5942       sed "s/^/$as_me: WARNING:     /" >&2
5943     ;;
5944   no:yes )
5945     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5946 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5947     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5948 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5949     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5950 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5951     (
5952       cat <<\_ASBOX
5953 ## ------------------------------------ ##
5954 ## Report this to bug-autoconf@gnu.org. ##
5955 ## ------------------------------------ ##
5956 _ASBOX
5957     ) |
5958       sed "s/^/$as_me: WARNING:     /" >&2
5959     ;;
5960 esac
5961 echo "$as_me:$LINENO: checking for pthread.h" >&5
5962 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_pthread_h+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   ac_cv_header_pthread_h=$ac_header_preproc
5967 fi
5968 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5969 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5970
5971 fi
5972 if test $ac_cv_header_pthread_h = yes; then
5973   have_pthread_h=yes
5974 else
5975   have_pthread_h=
5976 fi
5977
5978
5979
5980 # These tests can't be done till we know if we have limits.h.
5981 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5982 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5983 if test "${gcc_cv_decl_char_bit+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   cat >conftest.$ac_ext <<_ACEOF
5987 #line $LINENO "configure"
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 #ifdef HAVE_LIMITS_H
5994 #include <limits.h>
5995 #endif
5996 #ifdef CHAR_BIT
5997 found
5998 #endif
5999 _ACEOF
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001   $EGREP "found" >/dev/null 2>&1; then
6002   gcc_cv_decl_char_bit=yes
6003 else
6004   gcc_cv_decl_char_bit=no
6005 fi
6006 rm -f conftest*
6007
6008
6009 fi
6010 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6011 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6012 if test $gcc_cv_decl_char_bit = no; then
6013   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6014 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6015 if test "${gcc_cv_c_nbby+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   i=8
6019  gcc_cv_c_nbby=
6020  while test $i -lt 65; do
6021    cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 /* confdefs.h.  */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h.  */
6028
6029 int
6030 main ()
6031 {
6032 switch(0) {
6033   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6034   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6035   ; }
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042   (eval $ac_compile) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -s conftest.$ac_objext'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; }; then
6052   gcc_cv_c_nbby=$i; break
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 fi
6058 rm -f conftest.$ac_objext conftest.$ac_ext
6059    i=`expr $i + 1`
6060  done
6061  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6062
6063 fi
6064 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6065 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6066 if test $gcc_cv_c_nbby = failed; then
6067   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6068 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6069    { (exit 1); exit 1; }; }
6070 else
6071
6072 cat >>confdefs.h <<_ACEOF
6073 #define CHAR_BIT $gcc_cv_c_nbby
6074 _ACEOF
6075
6076 fi
6077 fi
6078 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6079 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6080 if test "${ac_cv_c_bigendian+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   ac_cv_c_bigendian=unknown
6084 # See if sys/param.h defines the BYTE_ORDER macro.
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092 #include <sys/types.h>
6093 #include <sys/param.h>
6094 int
6095 main ()
6096 {
6097
6098 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6099  bogus endian macros
6100 #endif
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107   (eval $ac_compile) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } &&
6111          { ac_try='test -s conftest.$ac_objext'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; }; then
6117   # It does; now see whether it defined to BIG_ENDIAN or not.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 #line $LINENO "configure"
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 #include <sys/types.h>
6126 #include <sys/param.h>
6127 int
6128 main ()
6129 {
6130
6131 #if BYTE_ORDER != BIG_ENDIAN
6132  not big endian
6133 #endif
6134   ;
6135   return 0;
6136 }
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140   (eval $ac_compile) 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } &&
6144          { ac_try='test -s conftest.$ac_objext'
6145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146   (eval $ac_try) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }; }; then
6150   ac_cv_c_bigendian=yes
6151 else
6152   echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_cv_c_bigendian=no
6156 fi
6157 rm -f conftest.$ac_objext conftest.$ac_ext
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.$ac_objext conftest.$ac_ext
6164 if test $ac_cv_c_bigendian = unknown; then
6165 if test "$cross_compiling" = yes; then
6166    echo $ac_n "cross-compiling... " 2>&6
6167 else
6168   cat >conftest.$ac_ext <<_ACEOF
6169 #line $LINENO "configure"
6170 /* confdefs.h.  */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h.  */
6175 main () {
6176   /* Are we little or big endian?  From Harbison&Steele.  */
6177   union
6178   {
6179     long l;
6180     char c[sizeof (long)];
6181   } u;
6182   u.l = 1;
6183   exit (u.c[sizeof (long) - 1] == 1);
6184 }
6185 _ACEOF
6186 rm -f conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188   (eval $ac_link) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_cv_c_bigendian=no
6198 else
6199   echo "$as_me: program exited with status $ac_status" >&5
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 ( exit $ac_status )
6204 ac_cv_c_bigendian=yes
6205 fi
6206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 fi
6209 fi
6210 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6212 if test $ac_cv_c_bigendian = unknown; then
6213 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6214 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6215
6216 cat >conftest.c <<EOF
6217 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6218 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6219 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6220 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6221 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6222 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6223 int main() { _ascii (); _ebcdic (); return 0; }
6224 EOF
6225  if test -f conftest.c ; then
6226      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6227         if test `grep -l BIGenDianSyS conftest.o` ; then
6228            echo $ac_n ' big endian probe OK, ' 1>&6
6229            ac_cv_c_bigendian=yes
6230         fi
6231         if test `grep -l LiTTleEnDian conftest.o` ; then
6232            echo $ac_n ' little endian probe OK, ' 1>&6
6233            if test $ac_cv_c_bigendian = yes ; then
6234             ac_cv_c_bigendian=unknown;
6235            else
6236             ac_cv_c_bigendian=no
6237            fi
6238         fi
6239         echo $ac_n 'guessing bigendian ...  ' >&6
6240      fi
6241   fi
6242 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6243 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6244 fi
6245 if test $ac_cv_c_bigendian = yes; then
6246
6247 cat >>confdefs.h <<\_ACEOF
6248 #define WORDS_BIGENDIAN 1
6249 _ACEOF
6250
6251
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HOST_WORDS_BIG_ENDIAN 1
6254 _ACEOF
6255
6256   BYTEORDER=4321
6257 else
6258   BYTEORDER=1234
6259 fi
6260
6261 cat >>confdefs.h <<_ACEOF
6262 #define BYTEORDER $BYTEORDER
6263 _ACEOF
6264
6265 if test $ac_cv_c_bigendian = unknown; then
6266   { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6267 echo "$as_me: error: unknown endianess - sorry" >&2;}
6268    { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6269 fi
6270
6271
6272 # --------
6273 # UNSORTED
6274 # --------
6275
6276 # Stage specific cflags for build.
6277 stage1_cflags=
6278 case $build in
6279 vax-*-*)
6280   if test x$GCC = xyes
6281   then
6282     stage1_cflags="-Wa,-J"
6283   else
6284     stage1_cflags="-J"
6285   fi
6286   ;;
6287 powerpc-*-darwin*)
6288   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6289   # sources; use -no-cpp-precomp to get to GNU cpp.
6290   # Apple's GCC has bugs in designated initializer handling, so disable
6291   # that too.
6292   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6293   ;;
6294 esac
6295
6296
6297 # These libraries may be used by collect2.
6298 # We may need a special search path to get them linked.
6299 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6300 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6301 if test "${gcc_cv_collect2_libs+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   save_LIBS="$LIBS"
6305 for libs in '' -lld -lmld \
6306                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6307                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6308 do
6309         LIBS="$libs"
6310         cat >conftest.$ac_ext <<_ACEOF
6311 #line $LINENO "configure"
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317
6318 /* Override any gcc2 internal prototype to avoid an error.  */
6319 #ifdef __cplusplus
6320 extern "C"
6321 #endif
6322 /* We use char because int might match the return type of a gcc2
6323    builtin and then its argument prototype would still apply.  */
6324 char ldopen ();
6325 int
6326 main ()
6327 {
6328 ldopen ();
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335   (eval $ac_link) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); } &&
6339          { ac_try='test -s conftest$ac_exeext'
6340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341   (eval $ac_try) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; }; then
6345   gcc_cv_collect2_libs="$libs"; break
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 fi
6351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6352 done
6353 LIBS="$save_LIBS"
6354 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6355 fi
6356 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6357 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6358 case $gcc_cv_collect2_libs in
6359         "none required")        ;;
6360         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6361 esac
6362
6363
6364 # When building Ada code on Alpha, we need exc_resume which is usually in
6365 # -lexc.  So test for it.
6366 save_LIBS="$LIBS"
6367 LIBS=
6368 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6369 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6370 if test "${ac_cv_search_exc_resume+set}" = set; then
6371   echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373   ac_func_search_save_LIBS=$LIBS
6374 ac_cv_search_exc_resume=no
6375 cat >conftest.$ac_ext <<_ACEOF
6376 #line $LINENO "configure"
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382
6383 /* Override any gcc2 internal prototype to avoid an error.  */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 /* We use char because int might match the return type of a gcc2
6388    builtin and then its argument prototype would still apply.  */
6389 char exc_resume ();
6390 int
6391 main ()
6392 {
6393 exc_resume ();
6394   ;
6395   return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400   (eval $ac_link) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -s conftest$ac_exeext'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   ac_cv_search_exc_resume="none required"
6411 else
6412   echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 fi
6416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6417 if test "$ac_cv_search_exc_resume" = no; then
6418   for ac_lib in exc; do
6419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6420     cat >conftest.$ac_ext <<_ACEOF
6421 #line $LINENO "configure"
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427
6428 /* Override any gcc2 internal prototype to avoid an error.  */
6429 #ifdef __cplusplus
6430 extern "C"
6431 #endif
6432 /* We use char because int might match the return type of a gcc2
6433    builtin and then its argument prototype would still apply.  */
6434 char exc_resume ();
6435 int
6436 main ()
6437 {
6438 exc_resume ();
6439   ;
6440   return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445   (eval $ac_link) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -s conftest$ac_exeext'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; }; then
6455   ac_cv_search_exc_resume="-l$ac_lib"
6456 break
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 fi
6462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6463   done
6464 fi
6465 LIBS=$ac_func_search_save_LIBS
6466 fi
6467 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6468 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6469 if test "$ac_cv_search_exc_resume" != no; then
6470   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6471
6472 fi
6473
6474 GNAT_LIBEXC="$LIBS"
6475 LIBS="$save_LIBS"
6476
6477
6478 # Some systems put ldexp and frexp in libm instead of libc; assume
6479 # they're both in the same place.  jcf-dump needs them.
6480 save_LIBS="$LIBS"
6481 LIBS=
6482 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6483 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6484 if test "${ac_cv_search_ldexp+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   ac_func_search_save_LIBS=$LIBS
6488 ac_cv_search_ldexp=no
6489 cat >conftest.$ac_ext <<_ACEOF
6490 #line $LINENO "configure"
6491 /* confdefs.h.  */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h.  */
6496
6497 /* Override any gcc2 internal prototype to avoid an error.  */
6498 #ifdef __cplusplus
6499 extern "C"
6500 #endif
6501 /* We use char because int might match the return type of a gcc2
6502    builtin and then its argument prototype would still apply.  */
6503 char ldexp ();
6504 int
6505 main ()
6506 {
6507 ldexp ();
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514   (eval $ac_link) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } &&
6518          { ac_try='test -s conftest$ac_exeext'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; }; then
6524   ac_cv_search_ldexp="none required"
6525 else
6526   echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6528
6529 fi
6530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6531 if test "$ac_cv_search_ldexp" = no; then
6532   for ac_lib in m; do
6533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6534     cat >conftest.$ac_ext <<_ACEOF
6535 #line $LINENO "configure"
6536 /* confdefs.h.  */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h.  */
6541
6542 /* Override any gcc2 internal prototype to avoid an error.  */
6543 #ifdef __cplusplus
6544 extern "C"
6545 #endif
6546 /* We use char because int might match the return type of a gcc2
6547    builtin and then its argument prototype would still apply.  */
6548 char ldexp ();
6549 int
6550 main ()
6551 {
6552 ldexp ();
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559   (eval $ac_link) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } &&
6563          { ac_try='test -s conftest$ac_exeext'
6564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565   (eval $ac_try) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; }; then
6569   ac_cv_search_ldexp="-l$ac_lib"
6570 break
6571 else
6572   echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 fi
6576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6577   done
6578 fi
6579 LIBS=$ac_func_search_save_LIBS
6580 fi
6581 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6582 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6583 if test "$ac_cv_search_ldexp" != no; then
6584   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6585
6586 fi
6587
6588 LDEXP_LIB="$LIBS"
6589 LIBS="$save_LIBS"
6590
6591
6592 # Use <inttypes.h> only if it exists,
6593 # doesn't clash with <sys/types.h>, and declares intmax_t.
6594 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6595 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6596 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   cat >conftest.$ac_ext <<_ACEOF
6600 #line $LINENO "configure"
6601 /* confdefs.h.  */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h.  */
6606 #include <sys/types.h>
6607 #include <inttypes.h>
6608 int
6609 main ()
6610 {
6611 intmax_t i = -1;
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618   (eval $ac_compile) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } &&
6622          { ac_try='test -s conftest.$ac_objext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   gcc_cv_header_inttypes_h=yes
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 gcc_cv_header_inttypes_h=no
6634 fi
6635 rm -f conftest.$ac_objext conftest.$ac_ext
6636 fi
6637
6638 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6639 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6640 if test $gcc_cv_header_inttypes_h = yes; then
6641
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_INTTYPES_H 1
6644 _ACEOF
6645
6646 fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6675         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6676         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6677         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6678         setlocale
6679 do
6680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6681 echo "$as_me:$LINENO: checking for $ac_func" >&5
6682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6683 if eval "test \"\${$as_ac_var+set}\" = set"; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6688 /* confdefs.h.  */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h.  */
6693 /* System header to define __stub macros and hopefully few prototypes,
6694     which can conflict with char $ac_func (); below.
6695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6696     <limits.h> exists even on freestanding compilers.  */
6697 #ifdef __STDC__
6698 # include <limits.h>
6699 #else
6700 # include <assert.h>
6701 #endif
6702 /* Override any gcc2 internal prototype to avoid an error.  */
6703 #ifdef __cplusplus
6704 extern "C"
6705 {
6706 #endif
6707 /* We use char because int might match the return type of a gcc2
6708    builtin and then its argument prototype would still apply.  */
6709 char $ac_func ();
6710 /* The GNU C library defines this for functions which it implements
6711     to always fail with ENOSYS.  Some functions are actually named
6712     something starting with __ and the normal name is an alias.  */
6713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6714 choke me
6715 #else
6716 char (*f) () = $ac_func;
6717 #endif
6718 #ifdef __cplusplus
6719 }
6720 #endif
6721
6722 int
6723 main ()
6724 {
6725 return f != $ac_func;
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732   (eval $ac_link) 2>&5
6733   ac_status=$?
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } &&
6736          { ac_try='test -s conftest$ac_exeext'
6737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738   (eval $ac_try) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); }; }; then
6742   eval "$as_ac_var=yes"
6743 else
6744   echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747 eval "$as_ac_var=no"
6748 fi
6749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6750 fi
6751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6753 if test `eval echo '${'$as_ac_var'}'` = yes; then
6754   cat >>confdefs.h <<_ACEOF
6755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6756 _ACEOF
6757
6758 fi
6759 done
6760
6761
6762 if test x$ac_cv_func_mbstowcs = xyes; then
6763   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6764 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6765 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768       if test "$cross_compiling" = yes; then
6769   gcc_cv_func_mbstowcs_works=yes
6770 else
6771   cat >conftest.$ac_ext <<_ACEOF
6772 #line $LINENO "configure"
6773 /* confdefs.h.  */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h.  */
6778 #include <stdlib.h>
6779 int main()
6780 {
6781   mbstowcs(0, "", 0);
6782   return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest$ac_exeext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6787   (eval $ac_link) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; }; then
6796   gcc_cv_func_mbstowcs_works=yes
6797 else
6798   echo "$as_me: program exited with status $ac_status" >&5
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6801
6802 ( exit $ac_status )
6803 gcc_cv_func_mbstowcs_works=no
6804 fi
6805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 fi
6808 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6809 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6810   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6811
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_WORKING_MBSTOWCS 1
6814 _ACEOF
6815
6816   fi
6817 fi
6818
6819 echo "$as_me:$LINENO: checking for ssize_t" >&5
6820 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6821 if test "${ac_cv_type_ssize_t+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   cat >conftest.$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 /* confdefs.h.  */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h.  */
6831 $ac_includes_default
6832 int
6833 main ()
6834 {
6835 if ((ssize_t *) 0)
6836   return 0;
6837 if (sizeof (ssize_t))
6838   return 0;
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845   (eval $ac_compile) 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } &&
6849          { ac_try='test -s conftest.$ac_objext'
6850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851   (eval $ac_try) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; }; then
6855   ac_cv_type_ssize_t=yes
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860 ac_cv_type_ssize_t=no
6861 fi
6862 rm -f conftest.$ac_objext conftest.$ac_ext
6863 fi
6864 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6865 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6866 if test $ac_cv_type_ssize_t = yes; then
6867   :
6868 else
6869
6870 cat >>confdefs.h <<_ACEOF
6871 #define ssize_t int
6872 _ACEOF
6873
6874 fi
6875
6876
6877 # Try to determine the array type of the second argument of getgroups
6878 # for the target system (int or gid_t).
6879 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6880 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6881 if test "${ac_cv_type_uid_t+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   cat >conftest.$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891 #include <sys/types.h>
6892
6893 _ACEOF
6894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6895   $EGREP "uid_t" >/dev/null 2>&1; then
6896   ac_cv_type_uid_t=yes
6897 else
6898   ac_cv_type_uid_t=no
6899 fi
6900 rm -f conftest*
6901
6902 fi
6903 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6904 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6905 if test $ac_cv_type_uid_t = no; then
6906
6907 cat >>confdefs.h <<\_ACEOF
6908 #define uid_t int
6909 _ACEOF
6910
6911
6912 cat >>confdefs.h <<\_ACEOF
6913 #define gid_t int
6914 _ACEOF
6915
6916 fi
6917
6918 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6919 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6920 if test "${ac_cv_type_getgroups+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   if test "$cross_compiling" = yes; then
6924   ac_cv_type_getgroups=cross
6925 else
6926   cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 /* Thanks to Mike Rendell for this test.  */
6934 #include <sys/types.h>
6935 #define NGID 256
6936 #undef MAX
6937 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6938
6939 int
6940 main ()
6941 {
6942   gid_t gidset[NGID];
6943   int i, n;
6944   union { gid_t gval; long lval; }  val;
6945
6946   val.lval = -1;
6947   for (i = 0; i < NGID; i++)
6948     gidset[i] = val.gval;
6949   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6950                  gidset);
6951   /* Exit non-zero if getgroups seems to require an array of ints.  This
6952      happens when gid_t is short but getgroups modifies an array of ints.  */
6953   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6954 }
6955 _ACEOF
6956 rm -f conftest$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958   (eval $ac_link) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; }; then
6967   ac_cv_type_getgroups=gid_t
6968 else
6969   echo "$as_me: program exited with status $ac_status" >&5
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 ( exit $ac_status )
6974 ac_cv_type_getgroups=int
6975 fi
6976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 if test $ac_cv_type_getgroups = cross; then
6979         cat >conftest.$ac_ext <<_ACEOF
6980 #line $LINENO "configure"
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986 #include <unistd.h>
6987
6988 _ACEOF
6989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6991   ac_cv_type_getgroups=gid_t
6992 else
6993   ac_cv_type_getgroups=int
6994 fi
6995 rm -f conftest*
6996
6997 fi
6998 fi
6999 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7000 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7001
7002 cat >>confdefs.h <<_ACEOF
7003 #define GETGROUPS_T $ac_cv_type_getgroups
7004 _ACEOF
7005
7006
7007 if test "${target}" = "${build}"; then
7008   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7009 else
7010   case "${target}" in
7011         # This condition may need some tweaking.  It should include all
7012         # targets where the array type of the second argument of getgroups
7013         # is int and the type of gid_t is not equivalent to int.
7014         *-*-sunos* | *-*-ultrix*)
7015                 TARGET_GETGROUPS_T=int
7016                 ;;
7017         *)
7018                 TARGET_GETGROUPS_T=gid_t
7019                 ;;
7020   esac
7021 fi
7022
7023
7024 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7025 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7026 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   if test "$cross_compiling" = yes; then
7030   gcc_cv_func_printf_ptr=no
7031 else
7032   cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7034 /* confdefs.h.  */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h.  */
7039 #include <stdio.h>
7040
7041 int main()
7042 {
7043   char buf[64];
7044   char *p = buf, *q = NULL;
7045   sprintf(buf, "%p", p);
7046   sscanf(buf, "%p", &q);
7047   return (p != q);
7048 }
7049 _ACEOF
7050 rm -f conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052   (eval $ac_link) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057   (eval $ac_try) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); }; }; then
7061   gcc_cv_func_printf_ptr=yes
7062 else
7063   echo "$as_me: program exited with status $ac_status" >&5
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ( exit $ac_status )
7068 gcc_cv_func_printf_ptr=no
7069 fi
7070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7071 fi
7072 rm -f core core.* *.core
7073 fi
7074 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7075 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7076 if test $gcc_cv_func_printf_ptr = yes ; then
7077
7078 cat >>confdefs.h <<\_ACEOF
7079 #define HAVE_PRINTF_PTR 1
7080 _ACEOF
7081
7082 fi
7083
7084 if test $ac_cv_header_sys_mman_h != yes \
7085  || test $ac_cv_func_mmap != yes; then
7086    gcc_cv_func_mmap_file=no
7087    gcc_cv_func_mmap_dev_zero=no
7088    gcc_cv_func_mmap_anon=no
7089 else
7090    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7091 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7092 if test "${gcc_cv_func_mmap_file+set}" = set; then
7093   echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095   # Add a system to this blacklist if
7096    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7097    # memory area containing the same data that you'd get if you applied
7098    # read() to the same fd.  The only system known to have a problem here
7099    # is VMS, where text files have record structure.
7100    case "$host_os" in
7101      vms* | ultrix*)
7102         gcc_cv_func_mmap_file=no ;;
7103      *)
7104         gcc_cv_func_mmap_file=yes;;
7105    esac
7106 fi
7107 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7108 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7109    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7110 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7111 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   # Add a system to this blacklist if it has mmap() but /dev/zero
7115    # does not exist, or if mmapping /dev/zero does not give anonymous
7116    # zeroed pages with both the following properties:
7117    # 1. If you map N consecutive pages in with one call, and then
7118    #    unmap any subset of those pages, the pages that were not
7119    #    explicitly unmapped remain accessible.
7120    # 2. If you map two adjacent blocks of memory and then unmap them
7121    #    both at once, they must both go away.
7122    # Systems known to be in this category are Windows (all variants),
7123    # VMS, and Darwin.
7124    case "$host_os" in
7125      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7126         gcc_cv_func_mmap_dev_zero=no ;;
7127      *)
7128         gcc_cv_func_mmap_dev_zero=yes;;
7129    esac
7130 fi
7131 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7132 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7133
7134    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7135    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7136 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7137 if test "${gcc_cv_decl_map_anon+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   cat >conftest.$ac_ext <<_ACEOF
7141 #line $LINENO "configure"
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <sys/types.h>
7148 #include <sys/mman.h>
7149 #include <unistd.h>
7150
7151 #ifndef MAP_ANONYMOUS
7152 #define MAP_ANONYMOUS MAP_ANON
7153 #endif
7154
7155 int
7156 main ()
7157 {
7158 int n = MAP_ANONYMOUS;
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165   (eval $ac_compile) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } &&
7169          { ac_try='test -s conftest.$ac_objext'
7170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; }; then
7175   gcc_cv_decl_map_anon=yes
7176 else
7177   echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 gcc_cv_decl_map_anon=no
7181 fi
7182 rm -f conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7185 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7186
7187    if test $gcc_cv_decl_map_anon = no; then
7188      gcc_cv_func_mmap_anon=no
7189    else
7190      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7191 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7192 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7196    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7197    # doesn't give anonymous zeroed pages with the same properties listed
7198    # above for use of /dev/zero.
7199    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7200    case "$host_os" in
7201      vms* | cygwin* | pe | mingw* | sco* | udk* )
7202         gcc_cv_func_mmap_anon=no ;;
7203      *)
7204         gcc_cv_func_mmap_anon=yes;;
7205    esac
7206 fi
7207 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7208 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7209    fi
7210 fi
7211
7212 if test $gcc_cv_func_mmap_file = yes; then
7213
7214 cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_MMAP_FILE 1
7216 _ACEOF
7217
7218 fi
7219 if test $gcc_cv_func_mmap_dev_zero = yes; then
7220
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_MMAP_DEV_ZERO 1
7223 _ACEOF
7224
7225 fi
7226 if test $gcc_cv_func_mmap_anon = yes; then
7227
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_MMAP_ANON 1
7230 _ACEOF
7231
7232 fi
7233
7234
7235 case "${host}" in
7236 *-*-*vms*)
7237   # Under VMS, vfork works very differently than on Unix. The standard test
7238   # won't work, and it isn't easily adaptable. It makes more sense to
7239   # just force it.
7240   ac_cv_func_vfork_works=yes
7241   ;;
7242 esac
7243 echo "$as_me:$LINENO: checking for pid_t" >&5
7244 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7245 if test "${ac_cv_type_pid_t+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   cat >conftest.$ac_ext <<_ACEOF
7249 #line $LINENO "configure"
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255 $ac_includes_default
7256 int
7257 main ()
7258 {
7259 if ((pid_t *) 0)
7260   return 0;
7261 if (sizeof (pid_t))
7262   return 0;
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269   (eval $ac_compile) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } &&
7273          { ac_try='test -s conftest.$ac_objext'
7274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; }; then
7279   ac_cv_type_pid_t=yes
7280 else
7281   echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_cv_type_pid_t=no
7285 fi
7286 rm -f conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7289 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7290 if test $ac_cv_type_pid_t = yes; then
7291   :
7292 else
7293
7294 cat >>confdefs.h <<_ACEOF
7295 #define pid_t int
7296 _ACEOF
7297
7298 fi
7299
7300
7301
7302 for ac_header in unistd.h vfork.h
7303 do
7304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7306   echo "$as_me:$LINENO: checking for $ac_header" >&5
7307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 fi
7311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7313 else
7314   # Is the header compilable?
7315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 $ac_includes_default
7325 #include <$ac_header>
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329   (eval $ac_compile) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } &&
7333          { ac_try='test -s conftest.$ac_objext'
7334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335   (eval $ac_try) 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; }; then
7339   ac_header_compiler=yes
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344 ac_header_compiler=no
7345 fi
7346 rm -f conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7355 /* confdefs.h.  */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h.  */
7360 #include <$ac_header>
7361 _ACEOF
7362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } >/dev/null; then
7370   if test -s conftest.err; then
7371     ac_cpp_err=$ac_c_preproc_warn_flag
7372   else
7373     ac_cpp_err=
7374   fi
7375 else
7376   ac_cpp_err=yes
7377 fi
7378 if test -z "$ac_cpp_err"; then
7379   ac_header_preproc=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384   ac_header_preproc=no
7385 fi
7386 rm -f conftest.err conftest.$ac_ext
7387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6
7389
7390 # So?  What about this header?
7391 case $ac_header_compiler:$ac_header_preproc in
7392   yes:no )
7393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7397     (
7398       cat <<\_ASBOX
7399 ## ------------------------------------ ##
7400 ## Report this to bug-autoconf@gnu.org. ##
7401 ## ------------------------------------ ##
7402 _ASBOX
7403     ) |
7404       sed "s/^/$as_me: WARNING:     /" >&2
7405     ;;
7406   no:yes )
7407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7409     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7413     (
7414       cat <<\_ASBOX
7415 ## ------------------------------------ ##
7416 ## Report this to bug-autoconf@gnu.org. ##
7417 ## ------------------------------------ ##
7418 _ASBOX
7419     ) |
7420       sed "s/^/$as_me: WARNING:     /" >&2
7421     ;;
7422 esac
7423 echo "$as_me:$LINENO: checking for $ac_header" >&5
7424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   eval "$as_ac_Header=$ac_header_preproc"
7429 fi
7430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7432
7433 fi
7434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7435   cat >>confdefs.h <<_ACEOF
7436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7437 _ACEOF
7438
7439 fi
7440
7441 done
7442
7443
7444
7445 for ac_func in fork vfork
7446 do
7447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7448 echo "$as_me:$LINENO: checking for $ac_func" >&5
7449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7450 if eval "test \"\${$as_ac_var+set}\" = set"; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   cat >conftest.$ac_ext <<_ACEOF
7454 #line $LINENO "configure"
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460 /* System header to define __stub macros and hopefully few prototypes,
7461     which can conflict with char $ac_func (); below.
7462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7463     <limits.h> exists even on freestanding compilers.  */
7464 #ifdef __STDC__
7465 # include <limits.h>
7466 #else
7467 # include <assert.h>
7468 #endif
7469 /* Override any gcc2 internal prototype to avoid an error.  */
7470 #ifdef __cplusplus
7471 extern "C"
7472 {
7473 #endif
7474 /* We use char because int might match the return type of a gcc2
7475    builtin and then its argument prototype would still apply.  */
7476 char $ac_func ();
7477 /* The GNU C library defines this for functions which it implements
7478     to always fail with ENOSYS.  Some functions are actually named
7479     something starting with __ and the normal name is an alias.  */
7480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7481 choke me
7482 #else
7483 char (*f) () = $ac_func;
7484 #endif
7485 #ifdef __cplusplus
7486 }
7487 #endif
7488
7489 int
7490 main ()
7491 {
7492 return f != $ac_func;
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499   (eval $ac_link) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } &&
7503          { ac_try='test -s conftest$ac_exeext'
7504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505   (eval $ac_try) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); }; }; then
7509   eval "$as_ac_var=yes"
7510 else
7511   echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7513
7514 eval "$as_ac_var=no"
7515 fi
7516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7517 fi
7518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7520 if test `eval echo '${'$as_ac_var'}'` = yes; then
7521   cat >>confdefs.h <<_ACEOF
7522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7523 _ACEOF
7524
7525 fi
7526 done
7527
7528 if test "x$ac_cv_func_fork" = xyes; then
7529   echo "$as_me:$LINENO: checking for working fork" >&5
7530 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7531 if test "${ac_cv_func_fork_works+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   if test "$cross_compiling" = yes; then
7535   ac_cv_func_fork_works=cross
7536 else
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* By Ruediger Kuhlmann. */
7539       #include <sys/types.h>
7540       #if HAVE_UNISTD_H
7541       # include <unistd.h>
7542       #endif
7543       /* Some systems only have a dummy stub for fork() */
7544       int main ()
7545       {
7546         if (fork() < 0)
7547           exit (1);
7548         exit (0);
7549       }
7550 _ACEOF
7551 rm -f conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553   (eval $ac_link) 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; }; then
7562   ac_cv_func_fork_works=yes
7563 else
7564   echo "$as_me: program exited with status $ac_status" >&5
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568 ( exit $ac_status )
7569 ac_cv_func_fork_works=no
7570 fi
7571 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7572 fi
7573 fi
7574 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7575 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7576
7577 else
7578   ac_cv_func_fork_works=$ac_cv_func_fork
7579 fi
7580 if test "x$ac_cv_func_fork_works" = xcross; then
7581   case $host in
7582     *-*-amigaos* | *-*-msdosdjgpp*)
7583       # Override, as these systems have only a dummy fork() stub
7584       ac_cv_func_fork_works=no
7585       ;;
7586     *)
7587       ac_cv_func_fork_works=yes
7588       ;;
7589   esac
7590   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7591 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7592 fi
7593 ac_cv_func_vfork_works=$ac_cv_func_vfork
7594 if test "x$ac_cv_func_vfork" = xyes; then
7595   echo "$as_me:$LINENO: checking for working vfork" >&5
7596 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7597 if test "${ac_cv_func_vfork_works+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   if test "$cross_compiling" = yes; then
7601   ac_cv_func_vfork_works=cross
7602 else
7603   cat >conftest.$ac_ext <<_ACEOF
7604 #line $LINENO "configure"
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 /* Thanks to Paul Eggert for this test.  */
7611 #include <stdio.h>
7612 #include <stdlib.h>
7613 #include <sys/types.h>
7614 #include <sys/stat.h>
7615 #include <sys/wait.h>
7616 #if HAVE_UNISTD_H
7617 # include <unistd.h>
7618 #endif
7619 #if HAVE_VFORK_H
7620 # include <vfork.h>
7621 #endif
7622 /* On some sparc systems, changes by the child to local and incoming
7623    argument registers are propagated back to the parent.  The compiler
7624    is told about this with #include <vfork.h>, but some compilers
7625    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7626    static variable whose address is put into a register that is
7627    clobbered by the vfork.  */
7628 static void
7629 #ifdef __cplusplus
7630 sparc_address_test (int arg)
7631 # else
7632 sparc_address_test (arg) int arg;
7633 #endif
7634 {
7635   static pid_t child;
7636   if (!child) {
7637     child = vfork ();
7638     if (child < 0) {
7639       perror ("vfork");
7640       _exit(2);
7641     }
7642     if (!child) {
7643       arg = getpid();
7644       write(-1, "", 0);
7645       _exit (arg);
7646     }
7647   }
7648 }
7649
7650 int
7651 main ()
7652 {
7653   pid_t parent = getpid ();
7654   pid_t child;
7655
7656   sparc_address_test (0);
7657
7658   child = vfork ();
7659
7660   if (child == 0) {
7661     /* Here is another test for sparc vfork register problems.  This
7662        test uses lots of local variables, at least as many local
7663        variables as main has allocated so far including compiler
7664        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7665        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7666        reuse the register of parent for one of the local variables,
7667        since it will think that parent can't possibly be used any more
7668        in this routine.  Assigning to the local variable will thus
7669        munge parent in the parent process.  */
7670     pid_t
7671       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7672       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7673     /* Convince the compiler that p..p7 are live; otherwise, it might
7674        use the same hardware register for all 8 local variables.  */
7675     if (p != p1 || p != p2 || p != p3 || p != p4
7676         || p != p5 || p != p6 || p != p7)
7677       _exit(1);
7678
7679     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7680        from child file descriptors.  If the child closes a descriptor
7681        before it execs or exits, this munges the parent's descriptor
7682        as well.  Test for this by closing stdout in the child.  */
7683     _exit(close(fileno(stdout)) != 0);
7684   } else {
7685     int status;
7686     struct stat st;
7687
7688     while (wait(&status) != child)
7689       ;
7690     exit(
7691          /* Was there some problem with vforking?  */
7692          child < 0
7693
7694          /* Did the child fail?  (This shouldn't happen.)  */
7695          || status
7696
7697          /* Did the vfork/compiler bug occur?  */
7698          || parent != getpid()
7699
7700          /* Did the file descriptor bug occur?  */
7701          || fstat(fileno(stdout), &st) != 0
7702          );
7703   }
7704 }
7705 _ACEOF
7706 rm -f conftest$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708   (eval $ac_link) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; }; then
7717   ac_cv_func_vfork_works=yes
7718 else
7719   echo "$as_me: program exited with status $ac_status" >&5
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ( exit $ac_status )
7724 ac_cv_func_vfork_works=no
7725 fi
7726 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7727 fi
7728 fi
7729 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7730 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7731
7732 fi;
7733 if test "x$ac_cv_func_fork_works" = xcross; then
7734   ac_cv_func_vfork_works=ac_cv_func_vfork
7735   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7736 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7737 fi
7738
7739 if test "x$ac_cv_func_vfork_works" = xyes; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_WORKING_VFORK 1
7743 _ACEOF
7744
7745 else
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define vfork fork
7749 _ACEOF
7750
7751 fi
7752 if test "x$ac_cv_func_fork_works" = xyes; then
7753
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_WORKING_FORK 1
7756 _ACEOF
7757
7758 fi
7759
7760
7761
7762
7763   am_cv_lib_iconv_ldpath=
7764
7765 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7766 if test "${with_libiconv_prefix+set}" = set; then
7767   withval="$with_libiconv_prefix"
7768
7769     for dir in `echo "$withval" | tr : ' '`; do
7770       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7771       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7772     done
7773
7774 fi;
7775
7776
7777 for ac_header in iconv.h
7778 do
7779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781   echo "$as_me:$LINENO: checking for $ac_header" >&5
7782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 fi
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7788 else
7789   # Is the header compilable?
7790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7792 cat >conftest.$ac_ext <<_ACEOF
7793 #line $LINENO "configure"
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799 $ac_includes_default
7800 #include <$ac_header>
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7804   (eval $ac_compile) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } &&
7808          { ac_try='test -s conftest.$ac_objext'
7809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810   (eval $ac_try) 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); }; }; then
7814   ac_header_compiler=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_header_compiler=no
7820 fi
7821 rm -f conftest.$ac_objext conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823 echo "${ECHO_T}$ac_header_compiler" >&6
7824
7825 # Is the header present?
7826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835 #include <$ac_header>
7836 _ACEOF
7837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7839   ac_status=$?
7840   grep -v '^ *+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } >/dev/null; then
7845   if test -s conftest.err; then
7846     ac_cpp_err=$ac_c_preproc_warn_flag
7847   else
7848     ac_cpp_err=
7849   fi
7850 else
7851   ac_cpp_err=yes
7852 fi
7853 if test -z "$ac_cpp_err"; then
7854   ac_header_preproc=yes
7855 else
7856   echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859   ac_header_preproc=no
7860 fi
7861 rm -f conftest.err conftest.$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863 echo "${ECHO_T}$ac_header_preproc" >&6
7864
7865 # So?  What about this header?
7866 case $ac_header_compiler:$ac_header_preproc in
7867   yes:no )
7868     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7872     (
7873       cat <<\_ASBOX
7874 ## ------------------------------------ ##
7875 ## Report this to bug-autoconf@gnu.org. ##
7876 ## ------------------------------------ ##
7877 _ASBOX
7878     ) |
7879       sed "s/^/$as_me: WARNING:     /" >&2
7880     ;;
7881   no:yes )
7882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7884     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7888     (
7889       cat <<\_ASBOX
7890 ## ------------------------------------ ##
7891 ## Report this to bug-autoconf@gnu.org. ##
7892 ## ------------------------------------ ##
7893 _ASBOX
7894     ) |
7895       sed "s/^/$as_me: WARNING:     /" >&2
7896     ;;
7897 esac
7898 echo "$as_me:$LINENO: checking for $ac_header" >&5
7899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   eval "$as_ac_Header=$ac_header_preproc"
7904 fi
7905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7907
7908 fi
7909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7910   cat >>confdefs.h <<_ACEOF
7911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7912 _ACEOF
7913
7914 fi
7915
7916 done
7917
7918
7919   echo "$as_me:$LINENO: checking for iconv" >&5
7920 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7921 if test "${am_cv_func_iconv+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924
7925     am_cv_func_iconv="no, consider installing GNU libiconv"
7926     am_cv_lib_iconv=no
7927     cat >conftest.$ac_ext <<_ACEOF
7928 #line $LINENO "configure"
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 #include <stdlib.h>
7935 #include <iconv.h>
7936 int
7937 main ()
7938 {
7939 iconv_t cd = iconv_open("","");
7940        iconv(cd,NULL,NULL,NULL,NULL);
7941        iconv_close(cd);
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948   (eval $ac_link) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); } &&
7952          { ac_try='test -s conftest$ac_exeext'
7953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954   (eval $ac_try) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; }; then
7958   am_cv_func_iconv=yes
7959 else
7960   echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7962
7963 fi
7964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7965     if test "$am_cv_func_iconv" != yes; then
7966       am_save_LIBS="$LIBS"
7967       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7968       cat >conftest.$ac_ext <<_ACEOF
7969 #line $LINENO "configure"
7970 /* confdefs.h.  */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h.  */
7975 #include <stdlib.h>
7976 #include <iconv.h>
7977 int
7978 main ()
7979 {
7980 iconv_t cd = iconv_open("","");
7981          iconv(cd,NULL,NULL,NULL,NULL);
7982          iconv_close(cd);
7983   ;
7984   return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989   (eval $ac_link) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); } &&
7993          { ac_try='test -s conftest$ac_exeext'
7994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995   (eval $ac_try) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }; }; then
7999   am_cv_lib_iconv=yes
8000         am_cv_func_iconv=yes
8001 else
8002   echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 fi
8006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8007       LIBS="$am_save_LIBS"
8008     fi
8009
8010 fi
8011 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8012 echo "${ECHO_T}$am_cv_func_iconv" >&6
8013   if test "$am_cv_func_iconv" = yes; then
8014
8015 cat >>confdefs.h <<\_ACEOF
8016 #define HAVE_ICONV 1
8017 _ACEOF
8018
8019     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8020 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8021     if test "${am_cv_proto_iconv+set}" = set; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024
8025       cat >conftest.$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032
8033 #include <stdlib.h>
8034 #include <iconv.h>
8035 extern
8036 #ifdef __cplusplus
8037 "C"
8038 #endif
8039 #if defined(__STDC__) || defined(__cplusplus)
8040 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8041 #else
8042 size_t iconv();
8043 #endif
8044
8045 int
8046 main ()
8047 {
8048
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055   (eval $ac_compile) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } &&
8059          { ac_try='test -s conftest.$ac_objext'
8060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061   (eval $ac_try) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   am_cv_proto_iconv_arg1=""
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 am_cv_proto_iconv_arg1="const"
8071 fi
8072 rm -f conftest.$ac_objext conftest.$ac_ext
8073       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);"
8074 fi
8075
8076     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8077     echo "$as_me:$LINENO: result: ${ac_t:-
8078          }$am_cv_proto_iconv" >&5
8079 echo "${ECHO_T}${ac_t:-
8080          }$am_cv_proto_iconv" >&6
8081
8082 cat >>confdefs.h <<_ACEOF
8083 #define ICONV_CONST $am_cv_proto_iconv_arg1
8084 _ACEOF
8085
8086   fi
8087   LIBICONV=
8088   if test "$am_cv_lib_iconv" = yes; then
8089     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8090   fi
8091
8092
8093 # Until we have in-tree GNU iconv:
8094 LIBICONV_DEP=
8095
8096
8097
8098   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8099 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8100 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   cat >conftest.$ac_ext <<_ACEOF
8104 #line $LINENO "configure"
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <locale.h>
8111 int
8112 main ()
8113 {
8114 return LC_MESSAGES
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -s conftest$ac_exeext'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   am_cv_val_LC_MESSAGES=yes
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 am_cv_val_LC_MESSAGES=no
8137 fi
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 fi
8140 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8141 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8142   if test $am_cv_val_LC_MESSAGES = yes; then
8143
8144 cat >>confdefs.h <<\_ACEOF
8145 #define HAVE_LC_MESSAGES 1
8146 _ACEOF
8147
8148   fi
8149
8150
8151 # We will need to find libiberty.h and ansidecl.h
8152 saved_CFLAGS="$CFLAGS"
8153 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8154 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8155         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8156         fprintf_unlocked strstr errno snprintf vasprintf \
8157         malloc realloc calloc free basename getopt clock
8158 do
8159   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8160 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8161 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8162 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #undef $ac_tr_decl
8173 #define $ac_tr_decl 1
8174
8175 #include "ansidecl.h"
8176 #include "system.h"
8177
8178 int
8179 main ()
8180 {
8181 #ifndef $ac_func
8182 char *(*pfn) = (char *(*)) $ac_func ;
8183 #endif
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190   (eval $ac_compile) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } &&
8194          { ac_try='test -s conftest.$ac_objext'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; }; then
8200   eval "gcc_cv_have_decl_$ac_func=yes"
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 eval "gcc_cv_have_decl_$ac_func=no"
8206 fi
8207 rm -f conftest.$ac_objext conftest.$ac_ext
8208 fi
8209
8210 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8211   echo "$as_me:$LINENO: result: yes" >&5
8212 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8213 #define $ac_tr_decl 1
8214 _ACEOF
8215
8216 else
8217   echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8219 #define $ac_tr_decl 0
8220 _ACEOF
8221
8222 fi
8223
8224 done
8225 if test x = y ; then
8226
8227 cat >>confdefs.h <<\_ACEOF
8228 #define HAVE_DECL_GETENV 1
8229 _ACEOF
8230
8231 cat >>confdefs.h <<\_ACEOF
8232 #define HAVE_DECL_ATOL 1
8233 _ACEOF
8234
8235 cat >>confdefs.h <<\_ACEOF
8236 #define HAVE_DECL_SBRK 1
8237 _ACEOF
8238
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_DECL_ABORT 1
8241 _ACEOF
8242
8243 cat >>confdefs.h <<\_ACEOF
8244 #define HAVE_DECL_ATOF 1
8245 _ACEOF
8246
8247 cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_DECL_GETCWD 1
8249 _ACEOF
8250
8251 cat >>confdefs.h <<\_ACEOF
8252 #define HAVE_DECL_GETWD 1
8253 _ACEOF
8254  \
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_DECL_STRSIGNAL 1
8258 _ACEOF
8259
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_DECL_PUTC_UNLOCKED 1
8262 _ACEOF
8263
8264 cat >>confdefs.h <<\_ACEOF
8265 #define HAVE_DECL_FPUTS_UNLOCKED 1
8266 _ACEOF
8267
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_DECL_FWRITE_UNLOCKED 1
8270 _ACEOF
8271  \
8272
8273 cat >>confdefs.h <<\_ACEOF
8274 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8275 _ACEOF
8276
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_DECL_STRSTR 1
8279 _ACEOF
8280
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_DECL_ERRNO 1
8283 _ACEOF
8284
8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_DECL_SNPRINTF 1
8287 _ACEOF
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_DECL_VASPRINTF 1
8291 _ACEOF
8292  \
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define HAVE_DECL_MALLOC 1
8296 _ACEOF
8297
8298 cat >>confdefs.h <<\_ACEOF
8299 #define HAVE_DECL_REALLOC 1
8300 _ACEOF
8301
8302 cat >>confdefs.h <<\_ACEOF
8303 #define HAVE_DECL_CALLOC 1
8304 _ACEOF
8305
8306 cat >>confdefs.h <<\_ACEOF
8307 #define HAVE_DECL_FREE 1
8308 _ACEOF
8309
8310 cat >>confdefs.h <<\_ACEOF
8311 #define HAVE_DECL_BASENAME 1
8312 _ACEOF
8313
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_DECL_GETOPT 1
8316 _ACEOF
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_DECL_CLOCK 1
8320 _ACEOF
8321 fi
8322
8323
8324 for ac_func in getrlimit setrlimit getrusage
8325 do
8326   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8327 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8328 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8329 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332   cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339 #undef $ac_tr_decl
8340 #define $ac_tr_decl 1
8341
8342 #include "ansidecl.h"
8343 #include "system.h"
8344 #ifdef HAVE_SYS_RESOURCE_H
8345 #include <sys/resource.h>
8346 #endif
8347
8348
8349 int
8350 main ()
8351 {
8352 #ifndef $ac_func
8353 char *(*pfn) = (char *(*)) $ac_func ;
8354 #endif
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361   (eval $ac_compile) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -s conftest.$ac_objext'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; }; then
8371   eval "gcc_cv_have_decl_$ac_func=yes"
8372 else
8373   echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8375
8376 eval "gcc_cv_have_decl_$ac_func=no"
8377 fi
8378 rm -f conftest.$ac_objext conftest.$ac_ext
8379 fi
8380
8381 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8382   echo "$as_me:$LINENO: result: yes" >&5
8383 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8384 #define $ac_tr_decl 1
8385 _ACEOF
8386
8387 else
8388   echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8390 #define $ac_tr_decl 0
8391 _ACEOF
8392
8393 fi
8394
8395 done
8396 if test x = y ; then
8397
8398 cat >>confdefs.h <<\_ACEOF
8399 #define HAVE_DECL_GETRLIMIT 1
8400 _ACEOF
8401
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_DECL_SETRLIMIT 1
8404 _ACEOF
8405
8406 cat >>confdefs.h <<\_ACEOF
8407 #define HAVE_DECL_GETRUSAGE 1
8408 _ACEOF
8409 fi
8410
8411
8412 cat >conftest.$ac_ext <<_ACEOF
8413 #line $LINENO "configure"
8414 /* confdefs.h.  */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h.  */
8419
8420 #include "ansidecl.h"
8421 #include "system.h"
8422 #ifdef HAVE_SYS_RESOURCE_H
8423 #include <sys/resource.h>
8424 #endif
8425
8426 int
8427 main ()
8428 {
8429 rlim_t l = 0;
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8436   (eval $ac_compile) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -s conftest.$ac_objext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   :
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451
8452 cat >>confdefs.h <<\_ACEOF
8453 #define rlim_t long
8454 _ACEOF
8455
8456 fi
8457 rm -f conftest.$ac_objext conftest.$ac_ext
8458
8459 for ac_func in ldgetname
8460 do
8461   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8462 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8463 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8464 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467   cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 /* confdefs.h.  */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h.  */
8474 #undef $ac_tr_decl
8475 #define $ac_tr_decl 1
8476
8477 #include "ansidecl.h"
8478 #include "system.h"
8479 #ifdef HAVE_LDFCN_H
8480 #include <ldfcn.h>
8481 #endif
8482
8483
8484 int
8485 main ()
8486 {
8487 #ifndef $ac_func
8488 char *(*pfn) = (char *(*)) $ac_func ;
8489 #endif
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -s conftest.$ac_objext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   eval "gcc_cv_have_decl_$ac_func=yes"
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 eval "gcc_cv_have_decl_$ac_func=no"
8512 fi
8513 rm -f conftest.$ac_objext conftest.$ac_ext
8514 fi
8515
8516 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8517   echo "$as_me:$LINENO: result: yes" >&5
8518 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8519 #define $ac_tr_decl 1
8520 _ACEOF
8521
8522 else
8523   echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8525 #define $ac_tr_decl 0
8526 _ACEOF
8527
8528 fi
8529
8530 done
8531 if test x = y ; then
8532
8533 cat >>confdefs.h <<\_ACEOF
8534 #define HAVE_DECL_LDGETNAME 1
8535 _ACEOF
8536 fi
8537
8538
8539 for ac_func in times
8540 do
8541   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8542 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8543 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8544 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   cat >conftest.$ac_ext <<_ACEOF
8548 #line $LINENO "configure"
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554 #undef $ac_tr_decl
8555 #define $ac_tr_decl 1
8556
8557 #include "ansidecl.h"
8558 #include "system.h"
8559 #ifdef HAVE_SYS_TIMES_H
8560 #include <sys/times.h>
8561 #endif
8562
8563
8564 int
8565 main ()
8566 {
8567 #ifndef $ac_func
8568 char *(*pfn) = (char *(*)) $ac_func ;
8569 #endif
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8576   (eval $ac_compile) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); } &&
8580          { ac_try='test -s conftest.$ac_objext'
8581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582   (eval $ac_try) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; }; then
8586   eval "gcc_cv_have_decl_$ac_func=yes"
8587 else
8588   echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591 eval "gcc_cv_have_decl_$ac_func=no"
8592 fi
8593 rm -f conftest.$ac_objext conftest.$ac_ext
8594 fi
8595
8596 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8597   echo "$as_me:$LINENO: result: yes" >&5
8598 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8599 #define $ac_tr_decl 1
8600 _ACEOF
8601
8602 else
8603   echo "$as_me:$LINENO: result: no" >&5
8604 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8605 #define $ac_tr_decl 0
8606 _ACEOF
8607
8608 fi
8609
8610 done
8611 if test x = y ; then
8612
8613 cat >>confdefs.h <<\_ACEOF
8614 #define HAVE_DECL_TIMES 1
8615 _ACEOF
8616 fi
8617
8618
8619 # More time-related stuff.
8620 echo "$as_me:$LINENO: checking for struct tms" >&5
8621 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8622 if test "${ac_cv_struct_tms+set}" = set; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625
8626 cat >conftest.$ac_ext <<_ACEOF
8627 #line $LINENO "configure"
8628 /* confdefs.h.  */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h.  */
8633
8634 #include "ansidecl.h"
8635 #include "system.h"
8636 #ifdef HAVE_SYS_TIMES_H
8637 #include <sys/times.h>
8638 #endif
8639
8640 int
8641 main ()
8642 {
8643 struct tms tms;
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8650   (eval $ac_compile) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -s conftest.$ac_objext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_struct_tms=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_cv_struct_tms=no
8666 fi
8667 rm -f conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8670 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8671 if test $ac_cv_struct_tms = yes; then
8672
8673 cat >>confdefs.h <<\_ACEOF
8674 #define HAVE_STRUCT_TMS 1
8675 _ACEOF
8676
8677 fi
8678
8679 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8680 # revisit after autoconf 2.50.
8681 echo "$as_me:$LINENO: checking for clock_t" >&5
8682 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8683 if test "${gcc_cv_type_clock_t+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694
8695 #include "ansidecl.h"
8696 #include "system.h"
8697
8698 int
8699 main ()
8700 {
8701 clock_t x;
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708   (eval $ac_compile) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); } &&
8712          { ac_try='test -s conftest.$ac_objext'
8713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714   (eval $ac_try) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   gcc_cv_type_clock_t=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 gcc_cv_type_clock_t=no
8724 fi
8725 rm -f conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8728 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8729 if test $gcc_cv_type_clock_t = yes; then
8730
8731 cat >>confdefs.h <<\_ACEOF
8732 #define HAVE_CLOCK_T 1
8733 _ACEOF
8734
8735 fi
8736
8737 echo "$as_me:$LINENO: checking for uchar" >&5
8738 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8739 if test "${gcc_cv_type_uchar+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750 #include "ansidecl.h"
8751 #include "system.h"
8752
8753 int
8754 main ()
8755 {
8756 if ((uchar *)0) return 0;
8757  if (sizeof(uchar)) return 0;
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764   (eval $ac_compile) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -s conftest.$ac_objext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   ac_cv_type_uchar=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_cv_type_uchar=no
8780 fi
8781 rm -f conftest.$ac_objext conftest.$ac_ext
8782 fi
8783 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8784 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8785 if test $ac_cv_type_uchar = yes; then
8786
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_UCHAR 1
8789 _ACEOF
8790
8791 fi
8792
8793 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8794 CFLAGS="$saved_CFLAGS"
8795
8796 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8797 if test "${enable_initfini_array+set}" = set; then
8798   enableval="$enable_initfini_array"
8799
8800 else
8801
8802 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8803 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8804 if test "${gcc_cv_initfini_array+set}" = set; then
8805   echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807     if test "$cross_compiling" = yes; then
8808   gcc_cv_initfini_array=no
8809 else
8810   cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 /* confdefs.h.  */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h.  */
8817
8818 static int x = -1;
8819 int main (void) { return x; }
8820 int foo (void) { x = 0; }
8821 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8822 _ACEOF
8823 rm -f conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   gcc_cv_initfini_array=yes
8835 else
8836   echo "$as_me: program exited with status $ac_status" >&5
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840 ( exit $ac_status )
8841 gcc_cv_initfini_array=no
8842 fi
8843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 fi
8846 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8847 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8848   enable_initfini_array=$gcc_cv_initfini_array
8849
8850 fi;
8851 if test $enable_initfini_array = yes; then
8852
8853 cat >>confdefs.h <<\_ACEOF
8854 #define HAVE_INITFINI_ARRAY 1
8855 _ACEOF
8856
8857 fi
8858
8859 # mkdir takes a single argument on some systems.
8860 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8861 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8862 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   cat >conftest.$ac_ext <<_ACEOF
8866 #line $LINENO "configure"
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872
8873 #include <sys/types.h>
8874 #ifdef HAVE_SYS_STAT_H
8875 # include <sys/stat.h>
8876 #endif
8877 #ifdef HAVE_UNISTD_H
8878 # include <unistd.h>
8879 #endif
8880 #ifdef HAVE_DIRECT_H
8881 # include <direct.h>
8882 #endif
8883 int
8884 main ()
8885 {
8886 mkdir ("foo", 0);
8887   ;
8888   return 0;
8889 }
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893   (eval $ac_compile) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } &&
8897          { ac_try='test -s conftest.$ac_objext'
8898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899   (eval $ac_try) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   gcc_cv_mkdir_takes_one_arg=no
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 gcc_cv_mkdir_takes_one_arg=yes
8909 fi
8910 rm -f conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8913 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8914 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8915
8916 cat >>confdefs.h <<\_ACEOF
8917 #define MKDIR_TAKES_ONE_ARG 1
8918 _ACEOF
8919
8920 fi
8921
8922
8923 # File extensions
8924 manext='.1'
8925 objext='.o'
8926
8927
8928
8929 # With Setjmp/Longjmp based exception handling.
8930 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8931 if test "${enable_sjlj_exceptions+set}" = set; then
8932   enableval="$enable_sjlj_exceptions"
8933   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8934
8935 cat >>confdefs.h <<_ACEOF
8936 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8937 _ACEOF
8938
8939 fi;
8940
8941 if test x$host = x$target; then
8942    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8943 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8944 if test "${ac_cv_lib_unwind_main+set}" = set; then
8945   echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947   ac_check_lib_save_LIBS=$LIBS
8948 LIBS="-lunwind  $LIBS"
8949 cat >conftest.$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956
8957
8958 int
8959 main ()
8960 {
8961 main ();
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968   (eval $ac_link) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } &&
8972          { ac_try='test -s conftest$ac_exeext'
8973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974   (eval $ac_try) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }; }; then
8978   ac_cv_lib_unwind_main=yes
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983 ac_cv_lib_unwind_main=no
8984 fi
8985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8987 fi
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8989 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8990 if test $ac_cv_lib_unwind_main = yes; then
8991   use_libunwind_default=yes
8992 else
8993   use_libunwind_default=no
8994 fi
8995
8996 else
8997    use_libunwind_default=no
8998 fi
8999 # Use libunwind based exception handling.
9000 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9001 if test "${enable_libunwind_exceptions+set}" = set; then
9002   enableval="$enable_libunwind_exceptions"
9003   use_libunwind_exceptions=$enableval
9004 else
9005   use_libunwind_exceptions=$use_libunwind_default
9006 fi;
9007 if test x"$use_libunwind_exceptions" = xyes; then
9008
9009 cat >>confdefs.h <<\_ACEOF
9010 #define USE_LIBUNWIND_EXCEPTIONS 1
9011 _ACEOF
9012
9013 fi
9014
9015 # --------------------------------------------------------
9016 # Build, host, and target specific configuration fragments
9017 # --------------------------------------------------------
9018
9019 # Collect build-machine-specific information.
9020 . ${srcdir}/config.build
9021
9022 # Collect host-machine-specific information.
9023 . ${srcdir}/config.host
9024
9025 target_gtfiles=
9026
9027 # Collect target-machine-specific information.
9028 . ${srcdir}/config.gcc
9029
9030 extra_objs="${host_extra_objs} ${extra_objs}"
9031
9032 # Default the target-machine variables that were not explicitly set.
9033 if test x"$tm_file" = x
9034 then tm_file=$cpu_type/$cpu_type.h; fi
9035
9036 if test x"$extra_headers" = x
9037 then extra_headers=; fi
9038
9039 if test x$md_file = x
9040 then md_file=$cpu_type/$cpu_type.md; fi
9041
9042 if test x$out_file = x
9043 then out_file=$cpu_type/$cpu_type.c; fi
9044
9045 if test x"$tmake_file" = x
9046 then tmake_file=$cpu_type/t-$cpu_type
9047 fi
9048
9049 if test x"$dwarf2" = xyes
9050 then tm_file="$tm_file tm-dwarf2.h"
9051 fi
9052
9053 # Say what files are being used for the output code and MD file.
9054 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9055 echo "Using \`$srcdir/config/$md_file' as machine description file."
9056
9057 # If any of the xm_file variables contain nonexistent files, warn
9058 # about them and drop them.
9059
9060 bx=
9061 for x in $build_xm_file; do
9062   if    test -f $srcdir/config/$x
9063   then      bx="$bx $x"
9064   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9065 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9066   fi
9067 done
9068 build_xm_file="$bx"
9069
9070 hx=
9071 for x in $host_xm_file; do
9072   if    test -f $srcdir/config/$x
9073   then      hx="$hx $x"
9074   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9075 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9076   fi
9077 done
9078 host_xm_file="$hx"
9079
9080 tx=
9081 for x in $xm_file; do
9082   if    test -f $srcdir/config/$x
9083   then      tx="$tx $x"
9084   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9085 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9086   fi
9087 done
9088 xm_file="$tx"
9089
9090 count=a
9091 for f in $tm_file; do
9092         count=${count}x
9093 done
9094 if test $count = ax; then
9095         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9096 else
9097         echo "Using the following target machine macro files:"
9098         for f in $tm_file; do
9099                 echo "  $srcdir/config/$f"
9100         done
9101 fi
9102
9103 if test x$need_64bit_hwint = xyes; then
9104
9105 cat >>confdefs.h <<\_ACEOF
9106 #define NEED_64BIT_HOST_WIDE_INT 1
9107 _ACEOF
9108
9109 fi
9110
9111 count=a
9112 for f in $host_xm_file; do
9113         count=${count}x
9114 done
9115 if test $count = a; then
9116         :
9117 elif test $count = ax; then
9118         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9119 else
9120         echo "Using the following host machine macro files:"
9121         for f in $host_xm_file; do
9122                 echo "  $srcdir/config/$f"
9123         done
9124 fi
9125 echo "Using ${out_host_hook_obj} for host machine hooks."
9126
9127 if test "$host_xm_file" != "$build_xm_file"; then
9128         count=a
9129         for f in $build_xm_file; do
9130                 count=${count}x
9131         done
9132         if test $count = a; then
9133                 :
9134         elif test $count = ax; then
9135                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9136         else
9137                 echo "Using the following build machine macro files:"
9138                 for f in $build_xm_file; do
9139                         echo "  $srcdir/config/$f"
9140                 done
9141         fi
9142 fi
9143
9144 # Check if a valid thread package
9145 case ${enable_threads_flag} in
9146   "" | no)
9147     # No threads
9148     target_thread_file='single'
9149     ;;
9150   yes)
9151     # default
9152     target_thread_file='single'
9153     ;;
9154   aix | dce | gnat | irix | posix | rtems | \
9155   single | solaris | vxworks | win32 )
9156     target_thread_file=${enable_threads_flag}
9157     ;;
9158   *)
9159     echo "${enable_threads_flag} is an unknown thread package" 1>&2
9160     exit 1
9161     ;;
9162 esac
9163
9164 if test x${thread_file} = x; then
9165   # No thread file set by target-specific clauses in config.gcc,
9166   # so use file chosen by default logic above
9167   thread_file=${target_thread_file}
9168 fi
9169
9170 if test x$enable___cxa_atexit = xyes || \
9171    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9172
9173 cat >>confdefs.h <<\_ACEOF
9174 #define DEFAULT_USE_CXA_ATEXIT 1
9175 _ACEOF
9176
9177 fi
9178
9179 # Look for a file containing extra machine modes.
9180 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9181   extra_modes_file='$(srcdir)'/config/${extra_modes}
9182
9183
9184 cat >>confdefs.h <<_ACEOF
9185 #define EXTRA_MODES_FILE "config/$extra_modes"
9186 _ACEOF
9187
9188 fi
9189
9190 # auto-host.h is the file containing items generated by autoconf and is
9191 # the first file included by config.h.
9192 # If host=build, it is correct to have bconfig include auto-host.h
9193 # as well.  If host!=build, we are in error and need to do more
9194 # work to find out the build config parameters.
9195 if test x$host = x$build
9196 then
9197         build_auto=auto-host.h
9198         FORBUILD=..
9199 else
9200         # We create a subdir, then run autoconf in the subdir.
9201         # To prevent recursion we set host and build for the new
9202         # invocation of configure to the build for this invocation
9203         # of configure.
9204         tempdir=build.$$
9205         rm -rf $tempdir
9206         mkdir $tempdir
9207         cd $tempdir
9208         case ${srcdir} in
9209         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9210         *) realsrcdir=../${srcdir};;
9211         esac
9212         saved_CFLAGS="${CFLAGS}"
9213         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9214         ${realsrcdir}/configure \
9215                 --target=$target_alias --host=$build_alias --build=$build_alias
9216         CFLAGS="${saved_CFLAGS}"
9217
9218         # We just finished tests for the build machine, so rename
9219         # the file auto-build.h in the gcc directory.
9220         mv auto-host.h ../auto-build.h
9221         cd ..
9222         rm -rf $tempdir
9223         build_auto=auto-build.h
9224         FORBUILD=../${build_subdir}
9225 fi
9226
9227
9228 tm_file="${tm_file} defaults.h"
9229 tm_p_file="${tm_p_file} tm-preds.h"
9230 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9231 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9232 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9233 # put this back in temporarily.
9234 xm_file="ansidecl.h ${xm_file}"
9235
9236 # --------
9237 # UNSORTED
9238 # --------
9239
9240 # Get the version trigger filename from the toplevel
9241 if test "${with_gcc_version_trigger+set}" = set; then
9242         gcc_version_trigger=$with_gcc_version_trigger
9243 else
9244         gcc_version_trigger=${srcdir}/version.c
9245 fi
9246 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9247 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9248
9249 # Compile in configure arguments.
9250 if test -f configargs.h ; then
9251         # Being re-configured.
9252         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9253         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9254 else
9255         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9256 fi
9257
9258 # Double all backslashes and backslash all quotes to turn
9259 # gcc_config_arguments into a C string.
9260 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9261 $gcc_config_arguments
9262 EOF
9263 gcc_config_arguments_str=`cat conftest.out`
9264 rm -f conftest.out
9265
9266 cat > configargs.h <<EOF
9267 /* Generated automatically. */
9268 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9269 static const char thread_model[] = "$thread_file";
9270
9271 static const struct {
9272   const char *name, *value;
9273 } configure_default_options[] = $configure_default_options;
9274 EOF
9275
9276 # Internationalization
9277 PACKAGE=gcc
9278 VERSION="$gcc_version"
9279
9280
9281
9282 # If we haven't got the data from the intl directory,
9283 # assume NLS is disabled.
9284 USE_NLS=no
9285 LIBINTL=
9286 LIBINTL_DEP=
9287 INCINTL=
9288 XGETTEXT=
9289 GMSGFMT=
9290 POSUB=
9291 if test -f ../intl/config.intl; then
9292   . ../intl/config.intl
9293 fi
9294 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9295 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9296 if test x"$USE_NLS" != xyes; then
9297   echo "$as_me:$LINENO: result: no" >&5
9298 echo "${ECHO_T}no" >&6
9299 else
9300   echo "$as_me:$LINENO: result: yes" >&5
9301 echo "${ECHO_T}yes" >&6
9302
9303 cat >>confdefs.h <<\_ACEOF
9304 #define ENABLE_NLS 1
9305 _ACEOF
9306
9307
9308   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9309 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9310   # Look for .po and .gmo files in the source directory.
9311   CATALOGS=
9312   XLINGUAS=
9313   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9314     # If there aren't any .gmo files the shell will give us the
9315     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9316     # weeded out.
9317     case "$cat" in *\**)
9318       continue;;
9319     esac
9320     # The quadruple backslash is collapsed to a double backslash
9321     # by the backticks, then collapsed again by the double quotes,
9322     # leaving us with one backslash in the sed expression (right
9323     # before the dot that mustn't act as a wildcard).
9324     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9325     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9326     # The user is allowed to set LINGUAS to a list of languages to
9327     # install catalogs for.  If it's empty that means "all of them."
9328     if test "x$LINGUAS" = x; then
9329       CATALOGS="$CATALOGS $cat"
9330       XLINGUAS="$XLINGUAS $lang"
9331     else
9332       case "$LINGUAS" in *$lang*)
9333         CATALOGS="$CATALOGS $cat"
9334         XLINGUAS="$XLINGUAS $lang"
9335         ;;
9336       esac
9337     fi
9338   done
9339   LINGUAS="$XLINGUAS"
9340   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9341 echo "${ECHO_T}$LINGUAS" >&6
9342 fi
9343
9344 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9345 # -liconv on the link line twice.
9346 case "$LIBINTL" in *$LIBICONV*)
9347         LIBICONV= ;;
9348 esac
9349
9350 # Windows32 Registry support for specifying GCC installation paths.
9351 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9352 if test "${enable_win32_registry+set}" = set; then
9353   enableval="$enable_win32_registry"
9354
9355 fi;
9356 case $host_os in
9357         win32 | pe | cygwin* | mingw32* | uwin*)
9358 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9359 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9360 if test "x$enable_win32_registry" != xno; then
9361
9362 cat >>confdefs.h <<\_ACEOF
9363 #define ENABLE_WIN32_REGISTRY 1
9364 _ACEOF
9365
9366   echo "$as_me:$LINENO: result: yes" >&5
9367 echo "${ECHO_T}yes" >&6
9368   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9369 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9370 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   ac_func_search_save_LIBS=$LIBS
9374 ac_cv_search_RegOpenKeyExA=no
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382
9383 /* Override any gcc2 internal prototype to avoid an error.  */
9384 #ifdef __cplusplus
9385 extern "C"
9386 #endif
9387 /* We use char because int might match the return type of a gcc2
9388    builtin and then its argument prototype would still apply.  */
9389 char RegOpenKeyExA ();
9390 int
9391 main ()
9392 {
9393 RegOpenKeyExA ();
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400   (eval $ac_link) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); } &&
9404          { ac_try='test -s conftest$ac_exeext'
9405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406   (eval $ac_try) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); }; }; then
9410   ac_cv_search_RegOpenKeyExA="none required"
9411 else
9412   echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415 fi
9416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9417 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9418   for ac_lib in advapi32; do
9419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9420     cat >conftest.$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427
9428 /* Override any gcc2 internal prototype to avoid an error.  */
9429 #ifdef __cplusplus
9430 extern "C"
9431 #endif
9432 /* We use char because int might match the return type of a gcc2
9433    builtin and then its argument prototype would still apply.  */
9434 char RegOpenKeyExA ();
9435 int
9436 main ()
9437 {
9438 RegOpenKeyExA ();
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445   (eval $ac_link) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } &&
9449          { ac_try='test -s conftest$ac_exeext'
9450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451   (eval $ac_try) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); }; }; then
9455   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9456 break
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 fi
9462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9463   done
9464 fi
9465 LIBS=$ac_func_search_save_LIBS
9466 fi
9467 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9468 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9469 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9470   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9471
9472 fi
9473
9474 else
9475   echo "$as_me:$LINENO: result: no" >&5
9476 echo "${ECHO_T}no" >&6
9477 fi
9478
9479 # Check if user specified a different registry key.
9480 case "x${enable_win32_registry}" in
9481 x | xyes)
9482   # default.
9483   gcc_cv_win32_registry_key="$VERSION"
9484   ;;
9485 xno)
9486   # no registry lookup.
9487   gcc_cv_win32_registry_key=''
9488   ;;
9489 *)
9490   # user-specified key.
9491   gcc_cv_win32_registry_key="$enable_win32_registry"
9492   ;;
9493 esac
9494
9495 if test "x$enable_win32_registry" != xno; then
9496   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9497 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9498
9499 cat >>confdefs.h <<_ACEOF
9500 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9501 _ACEOF
9502
9503   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9504 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9505 fi
9506 ;;
9507 esac
9508
9509 # Get an absolute path to the GCC top-level source directory
9510 holddir=`${PWDCMD-pwd}`
9511 cd $srcdir
9512 topdir=`${PWDCMD-pwd}`
9513 cd $holddir
9514
9515 # Conditionalize the makefile for this host machine.
9516 xmake_file=
9517 for f in ${host_xmake_file}
9518 do
9519         if test -f ${srcdir}/config/$f
9520         then
9521                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9522         fi
9523 done
9524
9525 # Conditionalize the makefile for this target machine.
9526 tmake_file_=
9527 for f in ${tmake_file}
9528 do
9529         if test -f ${srcdir}/config/$f
9530         then
9531                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9532         fi
9533 done
9534 tmake_file="${tmake_file_}"
9535
9536 symbolic_link='ln -s'
9537
9538 # If the host doesn't support symlinks, modify CC in
9539 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9540 # Otherwise, we can use "CC=$(CC)".
9541 rm -f symtest.tem
9542 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9543 then
9544         cc_set_by_configure="\$(CC)"
9545         quoted_cc_set_by_configure="\$(CC)"
9546         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9547         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9548 else
9549         rm -f symtest.tem
9550         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9551         then
9552                 symbolic_link="cp -p"
9553         else
9554                 symbolic_link="cp"
9555         fi
9556         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9557         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9558         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9559         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9560 fi
9561 rm -f symtest.tem
9562
9563 out_object_file=`basename $out_file .c`.o
9564
9565 tm_file_list=
9566 tm_include_list=
9567 for f in $tm_file; do
9568   case $f in
9569     defaults.h )
9570        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9571        tm_include_list="${tm_include_list} $f"
9572        ;;
9573     * )
9574        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9575        tm_include_list="${tm_include_list} config/$f"
9576        ;;
9577   esac
9578 done
9579
9580 tm_p_file_list=
9581 tm_p_include_list=
9582 for f in $tm_p_file; do
9583   case $f in
9584     tm-preds.h )
9585        tm_p_file_list="${tm_p_file_list} $f"
9586        tm_p_include_list="${tm_p_include_list} $f"
9587        ;;
9588     * )
9589        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9590        tm_p_include_list="${tm_p_include_list} config/$f"
9591   esac
9592 done
9593
9594 xm_file_list=
9595 xm_include_list=
9596 for f in $xm_file; do
9597   case $f in
9598     ansidecl.h )
9599        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9600        xm_include_list="${xm_include_list} $f"
9601        ;;
9602     auto-host.h )
9603        xm_file_list="${xm_file_list} $f"
9604        xm_include_list="${xm_include_list} $f"
9605        ;;
9606     * )
9607        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9608        xm_include_list="${xm_include_list} config/$f"
9609        ;;
9610   esac
9611 done
9612
9613 host_xm_file_list=
9614 host_xm_include_list=
9615 for f in $host_xm_file; do
9616   case $f in
9617     ansidecl.h )
9618        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9619        host_xm_include_list="${host_xm_include_list} $f"
9620        ;;
9621     auto-host.h )
9622        host_xm_file_list="${host_xm_file_list} $f"
9623        host_xm_include_list="${host_xm_include_list} $f"
9624        ;;
9625     * )
9626        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9627        host_xm_include_list="${host_xm_include_list} config/$f"
9628        ;;
9629   esac
9630 done
9631
9632 build_xm_file_list=
9633 for f in $build_xm_file; do
9634   case $f in
9635     ansidecl.h )
9636        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9637        build_xm_include_list="${build_xm_include_list} $f"
9638        ;;
9639     auto-build.h | auto-host.h )
9640        build_xm_file_list="${build_xm_file_list} $f"
9641        build_xm_include_list="${build_xm_include_list} $f"
9642        ;;
9643     * )
9644        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9645        build_xm_include_list="${build_xm_include_list} config/$f"
9646        ;;
9647   esac
9648 done
9649
9650 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9651 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9652 CROSS=
9653 ALL=all.internal
9654 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9655 if test x$host != x$target
9656 then
9657         CROSS="-DCROSS_COMPILE"
9658         ALL=all.cross
9659         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9660         case "$host","$target" in
9661         # Darwin crosses can use the host system's libraries and headers,
9662         # because of the fat library support.  Of course, it must be the
9663         # same version of Darwin on both sides.  Allow the user to
9664         # just say --target=foo-darwin without a version number to mean
9665         # "the version on this system".
9666             *-*-darwin*,*-*-darwin*)
9667                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9668                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9669                 if test $hostos = $targetos -o $targetos = darwin ; then
9670                     CROSS=
9671                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9672                     with_headers=yes
9673                 fi
9674                 ;;
9675
9676             i?86-*-*,x86_64-*-* \
9677             | powerpc*-*-*,powerpc64*-*-*)
9678                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9679         esac
9680 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9681         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9682         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9683 fi
9684
9685 # If this is a cross-compiler that does not
9686 # have its own set of headers then define
9687 # inhibit_libc
9688
9689 # If this is using newlib, without having the headers available now,
9690 # then define inhibit_libc in LIBGCC2_CFLAGS.
9691 # This prevents libgcc2 from containing any code which requires libc
9692 # support.
9693 inhibit_libc=
9694 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9695        test x$with_newlib = xyes ; } &&
9696      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9697        inhibit_libc=-Dinhibit_libc
9698 fi
9699
9700
9701 # When building gcc with a cross-compiler, we need to adjust things so
9702 # that the generator programs are still built with the native compiler.
9703 # Also, we cannot run fixincludes or fix-header.
9704
9705 # These are the normal (build=host) settings:
9706 BUILD_PREFIX=
9707 BUILD_PREFIX_1=ignore-
9708 CC_FOR_BUILD='$(CC)'
9709 BUILD_CFLAGS='$(ALL_CFLAGS)'
9710
9711 STMP_FIXINC=stmp-fixinc
9712
9713 # Possibly disable fixproto, on a per-target basis.
9714 case ${use_fixproto} in
9715   no)
9716     STMP_FIXPROTO=
9717     ;;
9718   yes)
9719     STMP_FIXPROTO=stmp-fixproto
9720     ;;
9721 esac
9722
9723
9724 # And these apply if build != host, or we are generating coverage data
9725 if test x$build != x$host || test "x$coverage_flags" != x
9726 then
9727     BUILD_PREFIX=build-
9728     BUILD_PREFIX_1=build-
9729     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9730
9731     if test "x$TARGET_SYSTEM_ROOT" = x; then
9732         STMP_FIXINC=
9733         STMP_FIXPROTO=
9734     fi
9735 fi
9736
9737 # Expand extra_headers to include complete path.
9738 # This substitutes for lots of t-* files.
9739 extra_headers_list=
9740 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9741 for file in ${extra_headers} ; do
9742   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9743 done
9744
9745 # Add a definition of USE_COLLECT2 if system wants one.
9746 case $use_collect2 in
9747   no) use_collect2= ;;
9748   "") ;;
9749   *)
9750     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9751     xm_defines="${xm_defines} USE_COLLECT2"
9752     ;;
9753 esac
9754
9755 # Identify the assembler which will work hand-in-glove with the newly
9756 # built GCC, so that we can examine its features.  This is the assembler
9757 # which will be driven by the driver program.
9758 #
9759 # If build != host, and we aren't building gas in-tree, we identify a
9760 # build->target assembler and hope that it will have the same features
9761 # as the host->target assembler we'll be using.
9762 echo "$as_me:$LINENO: checking what assembler to use" >&5
9763 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9764 in_tree_gas=no
9765 gcc_cv_as=
9766 gcc_cv_gas_major_version=
9767 gcc_cv_gas_minor_version=
9768 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9769 if test -x "$DEFAULT_ASSEMBLER"; then
9770         gcc_cv_as="$DEFAULT_ASSEMBLER"
9771 elif test -x "$AS"; then
9772         gcc_cv_as="$AS"
9773 elif test -x as$host_exeext; then
9774         # Build using assembler in the current directory.
9775         gcc_cv_as=./as$host_exeext
9776 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9777      && test -f ../gas/Makefile; then
9778   # Single tree build which includes gas.
9779   in_tree_gas=yes
9780   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9781 for f in $gcc_cv_as_bfd_srcdir/configure \
9782          $gcc_cv_as_gas_srcdir/configure \
9783          $gcc_cv_as_gas_srcdir/configure.in \
9784          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9785   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9786   if test x$gcc_cv_gas_version != x; then
9787     break
9788   fi
9789 done
9790 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9791 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9792 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9793 case $gcc_cv_gas_patch_version in
9794   "") gcc_cv_gas_patch_version="0" ;;
9795 esac
9796 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9797                             + $gcc_cv_gas_minor_version \) \* 1000 \
9798                             + $gcc_cv_gas_patch_version`
9799
9800   rm -f as$host_exeext
9801   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9802   in_tree_gas_is_elf=no
9803   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9804      || (grep 'obj_format = multi' ../gas/Makefile \
9805          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9806   then
9807     in_tree_gas_is_elf=yes
9808   fi
9809 fi
9810
9811 if test "x$gcc_cv_as" = x; then
9812         # Search the same directories that the installed compiler will
9813         # search.  Else we may find the wrong assembler and lose.  If we
9814         # do not find a suitable assembler binary, then try the user's
9815         # path.
9816         #
9817         # Also note we have to check MD_EXEC_PREFIX before checking the
9818         # user's path.  Unfortunately, there is no good way to get at the
9819         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9820         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9821         # to be fixed as part of the make/configure rewrite too.
9822
9823         if test "x$exec_prefix" = xNONE; then
9824                 if test "x$prefix" = xNONE; then
9825                         test_prefix=/usr/local
9826                 else
9827                         test_prefix=$prefix
9828                 fi
9829         else
9830                 test_prefix=$exec_prefix
9831         fi
9832
9833         # If the loop below does not find an assembler, then use whatever
9834         # one we can find in the users's path.
9835         # user's path.
9836         if test "x$program_prefix" != xNONE; then
9837                 gcc_cv_as=${program_prefix}as$host_exeext
9838         else
9839                 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9840         fi
9841
9842         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9843                    $test_prefix/lib/gcc-lib/$target_noncanonical \
9844                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9845                    /usr/lib/gcc/$target_noncanonical \
9846                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9847                    $test_prefix/$target_noncanonical/bin"
9848
9849         if test x$host = x$target; then
9850             test_dirs="$test_dirs \
9851                    /usr/libexec \
9852                    /usr/ccs/gcc \
9853                    /usr/ccs/bin \
9854                    /udk/usr/ccs/bin \
9855                    /bsd43/usr/lib/cmplrs/cc \
9856                    /usr/cross64/usr/bin \
9857                    /usr/lib/cmplrs/cc \
9858                    /sysv/usr/lib/cmplrs/cc \
9859                    /svr4/usr/lib/cmplrs/cc \
9860                    /usr/bin"
9861         fi
9862
9863         for dir in $test_dirs; do
9864                 if test -x $dir/as$host_exeext; then
9865                         gcc_cv_as=$dir/as$host_exeext
9866                         break;
9867                 fi
9868         done
9869 fi
9870 case $in_tree_gas in
9871   yes)
9872     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9873 echo "${ECHO_T}\"newly built gas\"" >&6
9874     ;;
9875   no)
9876     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9877 echo "${ECHO_T}$gcc_cv_as" >&6
9878     ;;
9879 esac
9880
9881 # Identify the linker which will work hand-in-glove with the newly
9882 # built GCC, so that we can examine its features.  This is the linker
9883 # which will be driven by the driver program.
9884 #
9885 # If build != host, and we aren't building gas in-tree, we identify a
9886 # build->target linker and hope that it will have the same features
9887 # as the host->target linker we'll be using.
9888 echo "$as_me:$LINENO: checking what linker to use" >&5
9889 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9890 in_tree_ld=no
9891 gcc_cv_ld=
9892 gcc_cv_gld_major_version=
9893 gcc_cv_gld_minor_version=
9894 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9895 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9896 if test -x "$DEFAULT_LINKER"; then
9897         gcc_cv_ld="$DEFAULT_LINKER"
9898 elif test -x "$LD"; then
9899         gcc_cv_ld="$LD"
9900 elif test -x collect-ld$host_exeext; then
9901         # Build using linker in the current directory.
9902         gcc_cv_ld=./collect-ld$host_exeext
9903 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9904      && test -f ../ld/Makefile; then
9905         # Single tree build which includes ld.
9906         in_tree_ld=yes
9907         in_tree_ld_is_elf=no
9908         if (grep 'EMUL = .*elf' ../ld/Makefile \
9909             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9910           in_tree_ld_is_elf=yes
9911         fi
9912         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
9913         do
9914                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9915                 if test x$gcc_cv_gld_version != x; then
9916                         break
9917                 fi
9918         done
9919         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9920         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9921         rm -f collect-ld$host_exeext
9922         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9923                 2>/dev/null
9924 fi
9925
9926 if test "x$gcc_cv_ld" = x; then
9927         # Search the same directories that the installed compiler will
9928         # search.  Else we may find the wrong linker and lose.  If we
9929         # do not find a suitable linker binary, then try the user's
9930         # path.
9931         #
9932         # Also note we have to check MD_EXEC_PREFIX before checking the
9933         # user's path.  Unfortunately, there is no good way to get at the
9934         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9935         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9936         # to be fixed as part of the make/configure rewrite too.
9937
9938         if test "x$exec_prefix" = xNONE; then
9939                 if test "x$prefix" = xNONE; then
9940                         test_prefix=/usr/local
9941                 else
9942                         test_prefix=$prefix
9943                 fi
9944         else
9945                 test_prefix=$exec_prefix
9946         fi
9947
9948         # If the loop below does not find an linker, then use whatever
9949         # one we can find in the users's path.
9950         # user's path.
9951         if test "x$program_prefix" != xNONE; then
9952                 gcc_cv_ld=${program_prefix}ld$host_exeext
9953         else
9954                 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9955         fi
9956
9957         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9958                    $test_prefix/lib/gcc-lib/$target_noncanonical \
9959                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9960                    /usr/lib/gcc/$target_noncanonical \
9961                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9962                    $test_prefix/$target_noncanonical/bin"
9963
9964         if test x$host = x$target; then
9965             test_dirs="$test_dirs \
9966                    /usr/libexec \
9967                    /usr/ccs/gcc \
9968                    /usr/ccs/bin \
9969                    /udk/usr/ccs/bin \
9970                    /bsd43/usr/lib/cmplrs/cc \
9971                    /usr/cross64/usr/bin \
9972                    /usr/lib/cmplrs/cc \
9973                    /sysv/usr/lib/cmplrs/cc \
9974                    /svr4/usr/lib/cmplrs/cc \
9975                    /usr/bin"
9976         fi
9977
9978         for dir in $test_dirs; do
9979                 if test -x $dir/ld$host_exeext; then
9980                         gcc_cv_ld=$dir/ld$host_exeext
9981                         break;
9982                 fi
9983         done
9984 fi
9985 case $in_tree_ld in
9986   yes)
9987     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9988 echo "${ECHO_T}\"newly built ld\"" >&6
9989     ;;
9990   no)
9991     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9992 echo "${ECHO_T}$gcc_cv_ld" >&6
9993     ;;
9994 esac
9995
9996 # Figure out what nm we will be using.
9997 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9998 echo "$as_me:$LINENO: checking what nm to use" >&5
9999 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10000 in_tree_nm=no
10001 if test -x nm$host_exeext; then
10002         gcc_cv_nm=./nm$host_exeext
10003 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10004      && test -f ../binutils/Makefile; then
10005         # Single tree build which includes binutils.
10006         in_tree_nm=yes
10007         gcc_cv_nm=./nm$host_exeext
10008         rm -f nm$host_exeext
10009         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10010 elif test "x$program_prefix" != xNONE; then
10011         gcc_cv_nm=${program_prefix}nm$host_exeext
10012 else
10013         gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10014 fi
10015 case $in_tree_nm in
10016   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10017 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10018   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10019 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10020 esac
10021
10022 # Figure out what objdump we will be using.
10023 echo "$as_me:$LINENO: checking what objdump to use" >&5
10024 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10025 in_tree_objdump=no
10026 if test -x objdump$host_exeext; then
10027         gcc_cv_objdump=./objdump$host_exeext
10028 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10029      && test -f ../binutils/Makefile; then
10030         # Single tree build which includes binutils.
10031         in_tree_objdump=yes
10032         gcc_cv_objdump=./objdump$host_exeext
10033         rm -f objdump$host_exeext
10034         $symbolic_link ../binutils/objdump$host_exeext \
10035                 objdump$host_exeext 2>/dev/null
10036 elif test "x$program_prefix" != xNONE; then
10037         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10038 else
10039         gcc_cv_objdump=`echo objdump | \
10040                 sed ${program_transform_name}`$host_exeext
10041 fi
10042 case $in_tree_objdump in
10043   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10044 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10045   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10046 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10047 esac
10048
10049 # Figure out what assembler alignment features are present.
10050 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10051 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10052 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10053   echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055   gcc_cv_as_balign_and_p2align=no
10056     if test $in_tree_gas = yes; then
10057     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10058   then gcc_cv_as_balign_and_p2align=yes
10059 fi
10060   elif test x$gcc_cv_as != x; then
10061     echo '.balign 4
10062 .p2align 2' > conftest.s
10063     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; }
10069     then
10070         gcc_cv_as_balign_and_p2align=yes
10071     else
10072       echo "configure: failed program was" >&5
10073       cat conftest.s >&5
10074     fi
10075     rm -f conftest.o conftest.s
10076   fi
10077 fi
10078 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10079 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10080 if test $gcc_cv_as_balign_and_p2align = yes; then
10081
10082 cat >>confdefs.h <<\_ACEOF
10083 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10084 _ACEOF
10085
10086 fi
10087
10088 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10089 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10090 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   gcc_cv_as_max_skip_p2align=no
10094     if test $in_tree_gas = yes; then
10095     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10096   then gcc_cv_as_max_skip_p2align=yes
10097 fi
10098   elif test x$gcc_cv_as != x; then
10099     echo '.p2align 4,,7' > conftest.s
10100     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; }
10106     then
10107         gcc_cv_as_max_skip_p2align=yes
10108     else
10109       echo "configure: failed program was" >&5
10110       cat conftest.s >&5
10111     fi
10112     rm -f conftest.o conftest.s
10113   fi
10114 fi
10115 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10116 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10117 if test $gcc_cv_as_max_skip_p2align = yes; then
10118
10119 cat >>confdefs.h <<\_ACEOF
10120 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10121 _ACEOF
10122
10123 fi
10124
10125 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10126 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10127 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10128   echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130   gcc_cv_as_subsection_m1=no
10131     if test $in_tree_gas = yes; then
10132     if test $in_tree_gas_is_elf = yes \
10133   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10134   then gcc_cv_as_subsection_m1=yes
10135 fi
10136   elif test x$gcc_cv_as != x; then
10137     echo 'conftest_label1: .word 0
10138 .subsection -1
10139 conftest_label2: .word 0
10140 .previous' > conftest.s
10141     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; }
10147     then
10148         if test x$gcc_cv_nm != x; then
10149     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10150     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10151     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10152     then :
10153     else gcc_cv_as_subsection_m1=yes
10154     fi
10155     rm -f conftest.nm1 conftest.nm2
10156   fi
10157     else
10158       echo "configure: failed program was" >&5
10159       cat conftest.s >&5
10160     fi
10161     rm -f conftest.o conftest.s
10162   fi
10163 fi
10164 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10165 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10166 if test $gcc_cv_as_subsection_m1 = yes; then
10167
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_GAS_SUBSECTION_ORDERING 1
10170 _ACEOF
10171
10172 fi
10173
10174 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10175 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10176 if test "${gcc_cv_as_weak+set}" = set; then
10177   echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179   gcc_cv_as_weak=no
10180     if test $in_tree_gas = yes; then
10181     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10182   then gcc_cv_as_weak=yes
10183 fi
10184   elif test x$gcc_cv_as != x; then
10185     echo '      .weak foobar' > conftest.s
10186     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }
10192     then
10193         gcc_cv_as_weak=yes
10194     else
10195       echo "configure: failed program was" >&5
10196       cat conftest.s >&5
10197     fi
10198     rm -f conftest.o conftest.s
10199   fi
10200 fi
10201 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10202 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10203 if test $gcc_cv_as_weak = yes; then
10204
10205 cat >>confdefs.h <<\_ACEOF
10206 #define HAVE_GAS_WEAK 1
10207 _ACEOF
10208
10209 fi
10210
10211 # .hidden needs to be supported in both the assembler and the linker,
10212 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10213 # This is irritatingly difficult to feature test for; we have to check the
10214 # date string after the version number.  If we've got an in-tree
10215 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10216 # to be safe.
10217 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10218 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10219 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10220 if test "${gcc_cv_as_hidden+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   gcc_cv_as_hidden=no
10224     if test $in_tree_gas = yes; then
10225     if test $in_tree_gas_is_elf = yes \
10226   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10227   then gcc_cv_as_hidden=yes
10228 fi
10229   elif test x$gcc_cv_as != x; then
10230     echo '      .hidden foobar
10231 foobar:' > conftest.s
10232     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }
10238     then
10239         gcc_cv_as_hidden=yes
10240     else
10241       echo "configure: failed program was" >&5
10242       cat conftest.s >&5
10243     fi
10244     rm -f conftest.o conftest.s
10245   fi
10246 fi
10247 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10248 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10249
10250
10251 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10252 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10253 if test "${gcc_cv_ld_hidden+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   if test $in_tree_ld = yes ; then
10257   gcc_cv_ld_hidden=no
10258   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 \
10259      && test $in_tree_ld_is_elf = yes; then
10260      gcc_cv_ld_hidden=yes
10261   fi
10262 else
10263   gcc_cv_ld_hidden=yes
10264   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10265   if echo "$ld_ver" | grep GNU > /dev/null; then
10266     ld_vers=`echo $ld_ver | sed -n \
10267         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10268         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10269         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10270         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10271         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10272         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10273     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'`
10274     if test 0"$ld_date" -lt 20020404; then
10275       if test -n "$ld_date"; then
10276         # If there was date string, but was earlier than 2002-04-04, fail
10277         gcc_cv_ld_hidden=no
10278       elif test -z "$ld_vers"; then
10279         # If there was no date string nor ld version number, something is wrong
10280         gcc_cv_ld_hidden=no
10281       else
10282         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10283         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10284         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10285         test -z "$ld_vers_patch" && ld_vers_patch=0
10286         if test "$ld_vers_major" -lt 2; then
10287           gcc_cv_ld_hidden=no
10288         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10289           gcc_cv_ld_hidden="no"
10290         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10291           gcc_cv_ld_hidden=no
10292         fi
10293       fi
10294     fi
10295   else
10296     # non-GNU linkers don't seem to support .hidden yet
10297     gcc_cv_ld_hidden=no
10298   fi
10299 fi
10300 fi
10301 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10302 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10303 libgcc_visibility=no
10304
10305 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10306   libgcc_visibility=yes
10307
10308 cat >>confdefs.h <<\_ACEOF
10309 #define HAVE_GAS_HIDDEN 1
10310 _ACEOF
10311
10312 fi
10313
10314 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10315 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10316 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10317 if test "${gcc_cv_as_leb128+set}" = set; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   gcc_cv_as_leb128=no
10321     if test $in_tree_gas = yes; then
10322     if test $in_tree_gas_is_elf = yes \
10323   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10324   then gcc_cv_as_leb128=yes
10325 fi
10326   elif test x$gcc_cv_as != x; then
10327     echo '      .data
10328         .uleb128 L2 - L1
10329 L1:
10330         .uleb128 1280
10331         .sleb128 -1010
10332 L2:' > conftest.s
10333     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335   (eval $ac_try) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; }
10339     then
10340         # GAS versions before 2.11 do not support uleb128,
10341   # despite appearing to.
10342   # ??? There exists an elf-specific test that will crash
10343   # the assembler.  Perhaps it's better to figure out whether
10344   # arbitrary sections are supported and try the test.
10345   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10346   if echo "$as_ver" | grep GNU > /dev/null; then
10347     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10348     as_major=`echo $as_ver | sed 's/\..*//'`
10349     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10350     if test $as_major -eq 2 && test $as_minor -lt 11
10351     then :
10352     else gcc_cv_as_leb128=yes
10353     fi
10354   fi
10355     else
10356       echo "configure: failed program was" >&5
10357       cat conftest.s >&5
10358     fi
10359     rm -f conftest.o conftest.s
10360   fi
10361 fi
10362 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10363 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10364 if test $gcc_cv_as_leb128 = yes; then
10365
10366 cat >>confdefs.h <<\_ACEOF
10367 #define HAVE_AS_LEB128 1
10368 _ACEOF
10369
10370 fi
10371
10372 # GAS versions up to and including 2.11.0 may mis-optimize
10373 # .eh_frame data.
10374 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10375 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10376 if test "${gcc_cv_as_eh_frame+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   gcc_cv_as_eh_frame=no
10380     if test $in_tree_gas = yes; then
10381     if test $in_tree_gas_is_elf = yes \
10382   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10383   then gcc_cv_as_eh_frame=yes
10384 fi
10385   elif test x$gcc_cv_as != x; then
10386     echo '      .text
10387 .LFB1:
10388         .4byte  0
10389 .L1:
10390         .4byte  0
10391 .LFE1:
10392         .section        .eh_frame,"aw",@progbits
10393 __FRAME_BEGIN__:
10394         .4byte  .LECIE1-.LSCIE1
10395 .LSCIE1:
10396         .4byte  0x0
10397         .byte   0x1
10398         .ascii "z\0"
10399         .byte   0x1
10400         .byte   0x78
10401         .byte   0x1a
10402         .byte   0x0
10403         .byte   0x4
10404         .4byte  1
10405         .p2align 1
10406 .LECIE1:
10407 .LSFDE1:
10408         .4byte  .LEFDE1-.LASFDE1
10409 .LASFDE1:
10410         .4byte  .LASFDE1-__FRAME_BEGIN__
10411         .4byte  .LFB1
10412         .4byte  .LFE1-.LFB1
10413         .byte   0x4
10414         .4byte  .LFE1-.LFB1
10415         .byte   0x4
10416         .4byte  .L1-.LFB1
10417 .LEFDE1:' > conftest.s
10418     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; }
10424     then
10425           cat > conftest.lit <<EOF
10426  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10427  0010 01000000 12000000 18000000 00000000  ................
10428  0020 08000000 04080000 0044               .........D      
10429 EOF
10430 cat > conftest.big <<EOF
10431  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10432  0010 00000001 00000012 00000018 00000000  ................
10433  0020 00000008 04000000 0844               .........D      
10434 EOF
10435   # If the assembler didn't choke, and we can objdump,
10436   # and we got the correct data, then succeed.
10437   if test x$gcc_cv_objdump != x \
10438   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10439      | tail -3 > conftest.got \
10440   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10441     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10442   then
10443     gcc_cv_as_eh_frame=yes
10444   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450     gcc_cv_as_eh_frame=buggy
10451   else
10452     # Uh oh, what do we do now?
10453     gcc_cv_as_eh_frame=no
10454   fi
10455     else
10456       echo "configure: failed program was" >&5
10457       cat conftest.s >&5
10458     fi
10459     rm -f conftest.o conftest.s
10460   fi
10461 fi
10462 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10463 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10464
10465
10466 if test $gcc_cv_as_eh_frame = buggy; then
10467
10468 cat >>confdefs.h <<\_ACEOF
10469 #define USE_AS_TRADITIONAL_FORMAT 1
10470 _ACEOF
10471
10472 fi
10473
10474 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10475 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10476 if test "${gcc_cv_as_shf_merge+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   gcc_cv_as_shf_merge=no
10480     if test $in_tree_gas = yes; then
10481     if test $in_tree_gas_is_elf = yes \
10482   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10483   then gcc_cv_as_shf_merge=yes
10484 fi
10485   elif test x$gcc_cv_as != x; then
10486     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10487     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489   (eval $ac_try) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; }
10493     then
10494         gcc_cv_as_shf_merge=yes
10495     else
10496       echo "configure: failed program was" >&5
10497       cat conftest.s >&5
10498     fi
10499     rm -f conftest.o conftest.s
10500   fi
10501 fi
10502 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10503 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10504
10505
10506 cat >>confdefs.h <<_ACEOF
10507 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10508 _ACEOF
10509
10510
10511 # Thread-local storage - the check is heavily parametrized.
10512 conftest_s=
10513 tls_first_major=
10514 tls_first_minor=
10515 tls_as_opt=
10516 case "$target" in
10517   alpha*-*-*)
10518     conftest_s='
10519         .section ".tdata","awT",@progbits
10520 foo:    .long   25
10521         .text
10522         ldq     $27,__tls_get_addr($29)         !literal!1
10523         lda     $16,foo($29)                    !tlsgd!1
10524         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10525         ldq     $27,__tls_get_addr($29)         !literal!2
10526         lda     $16,foo($29)                    !tlsldm!2
10527         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10528         ldq     $1,foo($29)                     !gotdtprel
10529         ldah    $2,foo($29)                     !dtprelhi
10530         lda     $3,foo($2)                      !dtprello
10531         lda     $4,foo($29)                     !dtprel
10532         ldq     $1,foo($29)                     !gottprel
10533         ldah    $2,foo($29)                     !tprelhi
10534         lda     $3,foo($2)                      !tprello
10535         lda     $4,foo($29)                     !tprel'
10536         tls_first_major=2
10537         tls_first_minor=13
10538         ;;
10539   i[34567]86-*-*)
10540     conftest_s='
10541         .section ".tdata","awT",@progbits
10542 foo:    .long   25
10543         .text
10544         movl    %gs:0, %eax
10545         leal    foo@TLSGD(,%ebx,1), %eax
10546         leal    foo@TLSLDM(%ebx), %eax
10547         leal    foo@DTPOFF(%eax), %edx
10548         movl    foo@GOTTPOFF(%ebx), %eax
10549         subl    foo@GOTTPOFF(%ebx), %eax
10550         addl    foo@GOTNTPOFF(%ebx), %eax
10551         movl    foo@INDNTPOFF, %eax
10552         movl    $foo@TPOFF, %eax
10553         subl    $foo@TPOFF, %eax
10554         leal    foo@NTPOFF(%ecx), %eax'
10555         tls_first_major=2
10556         tls_first_minor=14
10557         ;;
10558   x86_64-*-*)
10559     conftest_s='
10560         .section ".tdata","awT",@progbits
10561 foo:    .long   25
10562         .text
10563         movq    %fs:0, %rax
10564         leaq    foo@TLSGD(%rip), %rdi
10565         leaq    foo@TLSLD(%rip), %rdi
10566         leaq    foo@DTPOFF(%rax), %rdx
10567         movq    foo@GOTTPOFF(%rip), %rax
10568         movq    $foo@TPOFF, %rax'
10569         tls_first_major=2
10570         tls_first_minor=14
10571         ;;
10572   ia64-*-*)
10573     conftest_s='
10574         .section ".tdata","awT",@progbits
10575 foo:    data8   25
10576         .text
10577         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10578         addl    r17 = @ltoff(@dtprel(foo#)), gp
10579         addl    r18 = @ltoff(@tprel(foo#)), gp
10580         addl    r19 = @dtprel(foo#), gp
10581         adds    r21 = @dtprel(foo#), r13
10582         movl    r23 = @dtprel(foo#)
10583         addl    r20 = @tprel(foo#), gp
10584         adds    r22 = @tprel(foo#), r13
10585         movl    r24 = @tprel(foo#)'
10586         tls_first_major=2
10587         tls_first_minor=13
10588         ;;
10589   powerpc-*-*)
10590     conftest_s='
10591         .section ".tdata","awT",@progbits
10592         .align 2
10593 ld0:    .space 4
10594 ld1:    .space 4
10595 x1:     .space 4
10596 x2:     .space 4
10597 x3:     .space 4
10598         .text
10599         addi 3,31,ld0@got@tlsgd
10600         bl __tls_get_addr
10601         addi 3,31,x1@got@tlsld
10602         bl __tls_get_addr
10603         addi 9,3,x1@dtprel
10604         addis 9,3,x2@dtprel@ha
10605         addi 9,9,x2@dtprel@l
10606         lwz 9,x3@got@tprel(31)
10607         add 9,9,x@tls
10608         addi 9,2,x1@tprel
10609         addis 9,2,x2@tprel@ha
10610         addi 9,9,x2@tprel@l'
10611         tls_first_major=2
10612         tls_first_minor=14
10613         tls_as_opt=-a32
10614         ;;
10615   powerpc64-*-*)
10616     conftest_s='
10617         .section ".tdata","awT",@progbits
10618         .align 3
10619 ld0:    .space 8
10620 ld1:    .space 8
10621 x1:     .space 8
10622 x2:     .space 8
10623 x3:     .space 8
10624         .text
10625         addi 3,2,ld0@got@tlsgd
10626         bl .__tls_get_addr
10627         nop
10628         addi 3,2,ld1@toc
10629         bl .__tls_get_addr
10630         nop
10631         addi 3,2,x1@got@tlsld
10632         bl .__tls_get_addr
10633         nop
10634         addi 9,3,x1@dtprel
10635         bl .__tls_get_addr
10636         nop
10637         addis 9,3,x2@dtprel@ha
10638         addi 9,9,x2@dtprel@l
10639         bl .__tls_get_addr
10640         nop
10641         ld 9,x3@got@dtprel(2)
10642         add 9,9,3
10643         bl .__tls_get_addr
10644         nop'
10645         tls_first_major=2
10646         tls_first_minor=14
10647         tls_as_opt=-a64
10648         ;;
10649   s390-*-*)
10650     conftest_s='
10651         .section ".tdata","awT",@progbits
10652 foo:    .long   25
10653         .text
10654         .long   foo@TLSGD
10655         .long   foo@TLSLDM
10656         .long   foo@DTPOFF
10657         .long   foo@NTPOFF
10658         .long   foo@GOTNTPOFF
10659         .long   foo@INDNTPOFF
10660         l       %r1,foo@GOTNTPOFF(%r12)
10661         l       %r1,0(%r1):tls_load:foo
10662         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10663         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10664         tls_first_major=2
10665         tls_first_minor=14
10666         tls_as_opt=-m31
10667         ;;
10668   s390x-*-*)
10669     conftest_s='
10670         .section ".tdata","awT",@progbits
10671 foo:    .long   25
10672         .text
10673         .quad   foo@TLSGD
10674         .quad   foo@TLSLDM
10675         .quad   foo@DTPOFF
10676         .quad   foo@NTPOFF
10677         .quad   foo@GOTNTPOFF
10678         lg      %r1,foo@GOTNTPOFF(%r12)
10679         larl    %r1,foo@INDNTPOFF
10680         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10681         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10682         tls_first_major=2
10683         tls_first_minor=14
10684         tls_as_opt="-m64 -Aesame"
10685         ;;
10686   sh-*-* | sh[34]-*-*)
10687     conftest_s='
10688         .section ".tdata","awT",@progbits
10689 foo:    .long   25
10690         .text
10691         .long   foo@TLSGD
10692         .long   foo@TLSLDM
10693         .long   foo@DTPOFF
10694         .long   foo@GOTTPOFF
10695         .long   foo@TPOFF'
10696         tls_first_major=2
10697         tls_first_minor=13
10698         ;;
10699   sparc*-*-*)
10700     conftest_s='
10701         .section ".tdata","awT",@progbits
10702 foo:    .long   25
10703         .text
10704         sethi   %tgd_hi22(foo), %o0
10705         add     %o0, %tgd_lo10(foo), %o1
10706         add     %l7, %o1, %o0, %tgd_add(foo)
10707         call    __tls_get_addr, %tgd_call(foo)
10708         sethi   %tldm_hi22(foo), %l1
10709         add     %l1, %tldm_lo10(foo), %l2
10710         add     %l7, %l2, %o0, %tldm_add(foo)
10711         call    __tls_get_addr, %tldm_call(foo)
10712         sethi   %tldo_hix22(foo), %l3
10713         xor     %l3, %tldo_lox10(foo), %l4
10714         add     %o0, %l4, %l5, %tldo_add(foo)
10715         sethi   %tie_hi22(foo), %o3
10716         add     %o3, %tie_lo10(foo), %o3
10717         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10718         add     %g7, %o2, %o4, %tie_add(foo)
10719         sethi   %tle_hix22(foo), %l1
10720         xor     %l1, %tle_lox10(foo), %o5
10721         ld      [%g7 + %o5], %o1'
10722         tls_first_major=2
10723         tls_first_minor=14
10724         tls_as_opt=-32
10725         ;;
10726 esac
10727 if test -z "$tls_first_major"; then
10728   : # If we don't have a check, assume no support.
10729 else
10730   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10731 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10732 if test "${gcc_cv_as_tls+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   gcc_cv_as_tls=no
10736     if test $in_tree_gas = yes; then
10737     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10738   then gcc_cv_as_tls=yes
10739 fi
10740   elif test x$gcc_cv_as != x; then
10741     echo "$conftest_s" > conftest.s
10742     if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }
10748     then
10749         gcc_cv_as_tls=yes
10750     else
10751       echo "configure: failed program was" >&5
10752       cat conftest.s >&5
10753     fi
10754     rm -f conftest.o conftest.s
10755   fi
10756 fi
10757 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10758 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10759 if test $gcc_cv_as_tls = yes; then
10760
10761 cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_AS_TLS 1
10763 _ACEOF
10764
10765 fi
10766 fi
10767
10768 # Target-specific assembler checks.
10769
10770 case "$target" in
10771   # All TARGET_ABI_OSF targets.
10772   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10773     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10774 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10775 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   gcc_cv_as_alpha_explicit_relocs=no
10779     if test $in_tree_gas = yes; then
10780     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10781   then gcc_cv_as_alpha_explicit_relocs=yes
10782 fi
10783   elif test x$gcc_cv_as != x; then
10784     echo '      .set nomacro
10785         .text
10786         extbl   $3, $2, $3      !lituse_bytoff!1
10787         ldq     $2, a($29)      !literal!1
10788         ldq     $4, b($29)      !literal!2
10789         ldq_u   $3, 0($2)       !lituse_base!1
10790         ldq     $27, f($29)     !literal!5
10791         jsr     $26, ($27), f   !lituse_jsr!5
10792         ldah    $29, 0($26)     !gpdisp!3
10793         lda     $0, c($29)      !gprel
10794         ldah    $1, d($29)      !gprelhigh
10795         lda     $1, d($1)       !gprellow
10796         lda     $29, 0($29)     !gpdisp!3' > conftest.s
10797     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799   (eval $ac_try) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; }
10803     then
10804         gcc_cv_as_alpha_explicit_relocs=yes
10805     else
10806       echo "configure: failed program was" >&5
10807       cat conftest.s >&5
10808     fi
10809     rm -f conftest.o conftest.s
10810   fi
10811 fi
10812 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10813 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10814 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10815
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_AS_EXPLICIT_RELOCS 1
10818 _ACEOF
10819
10820 fi
10821     ;;
10822
10823   sparc*-*-*)
10824     echo "$as_me:$LINENO: checking assembler for .register" >&5
10825 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10826 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   gcc_cv_as_sparc_register_op=no
10830   if test x$gcc_cv_as != x; then
10831     echo '.register %g2, #scratch' > conftest.s
10832     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834   (eval $ac_try) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; }
10838     then
10839         gcc_cv_as_sparc_register_op=yes
10840     else
10841       echo "configure: failed program was" >&5
10842       cat conftest.s >&5
10843     fi
10844     rm -f conftest.o conftest.s
10845   fi
10846 fi
10847 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10848 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10849 if test $gcc_cv_as_sparc_register_op = yes; then
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10853 _ACEOF
10854
10855 fi
10856
10857     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10858 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10859 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862   gcc_cv_as_sparc_relax=no
10863   if test x$gcc_cv_as != x; then
10864     echo '.text' > conftest.s
10865     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }
10871     then
10872         gcc_cv_as_sparc_relax=yes
10873     else
10874       echo "configure: failed program was" >&5
10875       cat conftest.s >&5
10876     fi
10877     rm -f conftest.o conftest.s
10878   fi
10879 fi
10880 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10881 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10882 if test $gcc_cv_as_sparc_relax = yes; then
10883
10884 cat >>confdefs.h <<\_ACEOF
10885 #define HAVE_AS_RELAX_OPTION 1
10886 _ACEOF
10887
10888 fi
10889
10890     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10891 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10892 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10893   echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895   gcc_cv_as_sparc_ua_pcrel=no
10896   if test x$gcc_cv_as != x; then
10897     echo '.text
10898 foo:
10899         nop
10900 .data
10901 .align 4
10902 .byte 0
10903 .uaword %r_disp32(foo)' > conftest.s
10904     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906   (eval $ac_try) 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; }
10910     then
10911         if test x$gcc_cv_ld != x \
10912        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10913          gcc_cv_as_sparc_ua_pcrel=yes
10914        fi
10915        rm -f conftest
10916     else
10917       echo "configure: failed program was" >&5
10918       cat conftest.s >&5
10919     fi
10920     rm -f conftest.o conftest.s
10921   fi
10922 fi
10923 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10924 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10925 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10926
10927 cat >>confdefs.h <<\_ACEOF
10928 #define HAVE_AS_SPARC_UA_PCREL 1
10929 _ACEOF
10930
10931
10932       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10933 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10934 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   gcc_cv_as_sparc_ua_pcrel_hidden=no
10938   if test x$gcc_cv_as != x; then
10939     echo '.data
10940 .align 4
10941 .byte 0x31
10942 .uaword %r_disp32(foo)
10943 .byte 0x32, 0x33, 0x34
10944 .global foo
10945 .hidden foo
10946 foo:
10947 .skip 4' > conftest.s
10948     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }
10954     then
10955         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10956          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10957          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10958             | grep ' 31000000 07323334' > /dev/null 2>&1; then
10959             if $gcc_cv_objdump -R conftest 2> /dev/null \
10960                | grep 'DISP32' > /dev/null 2>&1; then
10961                 :
10962             else
10963                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10964             fi
10965          fi
10966          rm -f conftest
10967     else
10968       echo "configure: failed program was" >&5
10969       cat conftest.s >&5
10970     fi
10971     rm -f conftest.o conftest.s
10972   fi
10973 fi
10974 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10975 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10976 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10977
10978 cat >>confdefs.h <<\_ACEOF
10979 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10980 _ACEOF
10981
10982 fi
10983
10984 fi # unaligned pcrel relocs
10985
10986     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10987 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10988 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   gcc_cv_as_sparc_offsetable_lo10=no
10992   if test x$gcc_cv_as != x; then
10993     echo '.text
10994         or %g1, %lo(ab) + 12, %g1
10995         or %g1, %lo(ab + 12), %g1' > conftest.s
10996     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998   (eval $ac_try) 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }
11002     then
11003         if test x$gcc_cv_objdump != x \
11004        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11005           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11006          gcc_cv_as_offsetable_lo10=yes
11007        fi
11008     else
11009       echo "configure: failed program was" >&5
11010       cat conftest.s >&5
11011     fi
11012     rm -f conftest.o conftest.s
11013   fi
11014 fi
11015 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11016 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11017 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11018
11019 cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_AS_OFFSETABLE_LO10 1
11021 _ACEOF
11022
11023 fi
11024     ;;
11025
11026   i[34567]86-*-* | x86_64-*-*)
11027     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11028 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11029 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   gcc_cv_as_ix86_filds_fists=no
11033     if test $in_tree_gas = yes; then
11034     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11035   then gcc_cv_as_ix86_filds_fists=yes
11036 fi
11037   elif test x$gcc_cv_as != x; then
11038     echo 'filds mem; fists mem' > conftest.s
11039     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041   (eval $ac_try) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; }
11045     then
11046         gcc_cv_as_ix86_filds_fists=yes
11047     else
11048       echo "configure: failed program was" >&5
11049       cat conftest.s >&5
11050     fi
11051     rm -f conftest.o conftest.s
11052   fi
11053 fi
11054 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11055 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11056 if test $gcc_cv_as_ix86_filds_fists = yes; then
11057
11058 cat >>confdefs.h <<\_ACEOF
11059 #define HAVE_GAS_FILDS_FISTS 1
11060 _ACEOF
11061
11062 fi
11063
11064     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11065 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11066 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11067   echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069   gcc_cv_as_ix86_cmov_sun_syntax=no
11070   if test x$gcc_cv_as != x; then
11071     echo 'cmovl.l %edx, %eax' > conftest.s
11072     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074   (eval $ac_try) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; }
11078     then
11079         gcc_cv_as_ix86_cmov_sun_syntax=yes
11080     else
11081       echo "configure: failed program was" >&5
11082       cat conftest.s >&5
11083     fi
11084     rm -f conftest.o conftest.s
11085   fi
11086 fi
11087 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11088 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11089 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11090
11091 cat >>confdefs.h <<\_ACEOF
11092 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11093 _ACEOF
11094
11095 fi
11096
11097     # This one is used unconditionally by i386.[ch]; it is to be defined
11098     # to 1 if the feature is present, 0 otherwise.
11099     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11100 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11101 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   gcc_cv_as_ix86_gotoff_in_data=no
11105     if test $in_tree_gas = yes; then
11106     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11107   then gcc_cv_as_ix86_gotoff_in_data=yes
11108 fi
11109   elif test x$gcc_cv_as != x; then
11110     echo '      .text
11111 .L0:
11112         nop
11113         .data
11114         .long .L0@GOTOFF' > conftest.s
11115     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117   (eval $ac_try) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }
11121     then
11122         gcc_cv_as_ix86_gotoff_in_data=yes
11123     else
11124       echo "configure: failed program was" >&5
11125       cat conftest.s >&5
11126     fi
11127     rm -f conftest.o conftest.s
11128   fi
11129 fi
11130 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11131 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11132
11133
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11136 _ACEOF
11137
11138     ;;
11139
11140   ia64*-*-*)
11141     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11142 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11143 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11147     if test $in_tree_gas = yes; then
11148     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11149   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11150 fi
11151   elif test x$gcc_cv_as != x; then
11152     echo '      .text
11153         addl r15 = @ltoffx(x#), gp
11154         ;;
11155         ld8.mov r16 = [r15], x#' > conftest.s
11156     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; }
11162     then
11163         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11164     else
11165       echo "configure: failed program was" >&5
11166       cat conftest.s >&5
11167     fi
11168     rm -f conftest.o conftest.s
11169   fi
11170 fi
11171 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11172 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11173 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11174
11175 cat >>confdefs.h <<\_ACEOF
11176 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11177 _ACEOF
11178
11179 fi
11180
11181     ;;
11182
11183   powerpc*-*-*)
11184     case $target in
11185       *-*-aix) conftest_s='     .csect .textPR';;
11186       *)       conftest_s='     .text';;
11187     esac
11188     conftest_s="$conftest_s
11189         mfcr 3,128"
11190
11191     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11192 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11193 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   gcc_cv_as_powerpc_mfcrf=no
11197     if test $in_tree_gas = yes; then
11198     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11199   then gcc_cv_as_powerpc_mfcrf=yes
11200 fi
11201   elif test x$gcc_cv_as != x; then
11202     echo "$conftest_s" > conftest.s
11203     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205   (eval $ac_try) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; }
11209     then
11210         gcc_cv_as_powerpc_mfcrf=yes
11211     else
11212       echo "configure: failed program was" >&5
11213       cat conftest.s >&5
11214     fi
11215     rm -f conftest.o conftest.s
11216   fi
11217 fi
11218 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11219 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11220 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11221
11222 cat >>confdefs.h <<\_ACEOF
11223 #define HAVE_AS_MFCRF 1
11224 _ACEOF
11225
11226 fi
11227     ;;
11228
11229   mips*-*-*)
11230     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11231 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11232 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   gcc_cv_as_mips_explicit_relocs=no
11236     if test $in_tree_gas = yes; then
11237     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11238   then gcc_cv_as_mips_explicit_relocs=yes
11239 fi
11240   elif test x$gcc_cv_as != x; then
11241     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11242     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }
11248     then
11249         gcc_cv_as_mips_explicit_relocs=yes
11250     else
11251       echo "configure: failed program was" >&5
11252       cat conftest.s >&5
11253     fi
11254     rm -f conftest.o conftest.s
11255   fi
11256 fi
11257 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11258 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11259 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11260   if test x$target_cpu_default = x
11261        then target_cpu_default=MASK_EXPLICIT_RELOCS
11262        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11263        fi
11264 fi
11265
11266     ;;
11267 esac
11268 # ??? Not all targets support dwarf2 debug_line, even within a version
11269 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11270 # info to the output file.  So, as supported targets are added to gas 2.11,
11271 # add some instruction here to (also) show we expect this might work.
11272 # ??? Once 2.11 is released, probably need to add first known working
11273 # version to the per-target configury.
11274 case "$target" in
11275   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11276   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11277   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11278     insn="nop"
11279     ;;
11280   ia64*-*-*)
11281     insn="nop 0"
11282     ;;
11283   mmix-*-*)
11284     insn="swym 0"
11285     ;;
11286 esac
11287 if test x"$insn" != x; then
11288  conftest_s="\
11289         .file 1 \"conftest.s\"
11290         .loc 1 3 0
11291         $insn"
11292  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11293 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11294 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   gcc_cv_as_dwarf2_debug_line=no
11298     if test $in_tree_gas = yes; then
11299     if test $in_tree_gas_is_elf = yes \
11300   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11301   then gcc_cv_as_dwarf2_debug_line=yes
11302 fi
11303   elif test x$gcc_cv_as != x; then
11304     echo "$conftest_s" > conftest.s
11305     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }
11311     then
11312         # ??? This fails with non-gnu grep.  Maybe use objdump?
11313    if grep debug_line conftest.o > /dev/null 2>&1; then
11314      gcc_cv_as_dwarf2_debug_line=yes
11315    fi
11316     else
11317       echo "configure: failed program was" >&5
11318       cat conftest.s >&5
11319     fi
11320     rm -f conftest.o conftest.s
11321   fi
11322 fi
11323 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11324 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11325
11326
11327 # The .debug_line file table must be in the exact order that
11328 # we specified the files, since these indices are also used
11329 # by DW_AT_decl_file.  Approximate this test by testing if
11330 # the assembler bitches if the same index is assigned twice.
11331  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11332 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11333 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11334   echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336   gcc_cv_as_dwarf2_file_buggy=no
11337   if test x$gcc_cv_as != x; then
11338     echo '      .file 1 "foo.s"
11339         .file 1 "bar.s"' > conftest.s
11340     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; }
11346     then
11347         gcc_cv_as_dwarf2_file_buggy=yes
11348     else
11349       echo "configure: failed program was" >&5
11350       cat conftest.s >&5
11351     fi
11352     rm -f conftest.o conftest.s
11353   fi
11354 fi
11355 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11356 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11357
11358
11359  if test $gcc_cv_as_dwarf2_debug_line = yes \
11360  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11361
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11364 _ACEOF
11365
11366  fi
11367
11368  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11369 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11370 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   gcc_cv_as_gdwarf2_flag=no
11374     if test $in_tree_gas = yes; then
11375     if test $in_tree_gas_is_elf = yes \
11376   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11377   then gcc_cv_as_gdwarf2_flag=yes
11378 fi
11379   elif test x$gcc_cv_as != x; then
11380     echo "$insn" > conftest.s
11381     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383   (eval $ac_try) 2>&5
11384   ac_status=$?
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); }; }
11387     then
11388         gcc_cv_as_gdwarf2_flag=yes
11389     else
11390       echo "configure: failed program was" >&5
11391       cat conftest.s >&5
11392     fi
11393     rm -f conftest.o conftest.s
11394   fi
11395 fi
11396 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11397 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11398 if test $gcc_cv_as_gdwarf2_flag = yes; then
11399
11400 cat >>confdefs.h <<\_ACEOF
11401 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11402 _ACEOF
11403
11404 fi
11405
11406  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11407 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11408 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   gcc_cv_as_gstabs_flag=no
11412     if test $in_tree_gas = yes; then
11413     if test $in_tree_gas_is_elf = yes \
11414   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11415   then gcc_cv_as_gstabs_flag=yes
11416 fi
11417   elif test x$gcc_cv_as != x; then
11418     echo "$insn" > conftest.s
11419     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421   (eval $ac_try) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }
11425     then
11426         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11427    # and warns about it, but still exits successfully.  So check for
11428    # this.
11429    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431   (eval $ac_try) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }
11435    then :
11436    else gcc_cv_as_gstabs_flag=yes
11437    fi
11438     else
11439       echo "configure: failed program was" >&5
11440       cat conftest.s >&5
11441     fi
11442     rm -f conftest.o conftest.s
11443   fi
11444 fi
11445 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11446 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11447 if test $gcc_cv_as_gstabs_flag = yes; then
11448
11449 cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11451 _ACEOF
11452
11453 fi
11454 fi
11455
11456 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11457 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11458 gcc_cv_ld_ro_rw_mix=unknown
11459 if test $in_tree_ld = yes ; then
11460   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 \
11461      && test $in_tree_ld_is_elf = yes; then
11462     gcc_cv_ld_ro_rw_mix=read-write
11463   fi
11464 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11465   echo '.section myfoosect, "a"' > conftest1.s
11466   echo '.section myfoosect, "aw"' > conftest2.s
11467   echo '.byte 1' >> conftest2.s
11468   echo '.section myfoosect, "a"' > conftest3.s
11469   echo '.byte 0' >> conftest3.s
11470   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11471      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11472      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11473      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11474         conftest2.o conftest3.o > /dev/null 2>&1; then
11475     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11476                          | sed -e '/myfoosect/!d' -e N`
11477     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11478       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11479         gcc_cv_ld_ro_rw_mix=read-only
11480       else
11481         gcc_cv_ld_ro_rw_mix=read-write
11482       fi
11483     fi
11484   fi
11485   rm -f conftest.* conftest[123].*
11486 fi
11487 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11488
11489 cat >>confdefs.h <<\_ACEOF
11490 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11491 _ACEOF
11492
11493 fi
11494 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11495 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11496
11497 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11498 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11499 gcc_cv_ld_eh_frame_hdr=no
11500 if test $in_tree_ld = yes ; then
11501   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 \
11502      && test $in_tree_ld_is_elf = yes; then
11503     gcc_cv_ld_eh_frame_hdr=yes
11504   fi
11505 elif test x$gcc_cv_ld != x; then
11506         # Check if linker supports --eh-frame-hdr option
11507         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11508                 gcc_cv_ld_eh_frame_hdr=yes
11509         fi
11510 fi
11511 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11512
11513 cat >>confdefs.h <<\_ACEOF
11514 #define HAVE_LD_EH_FRAME_HDR 1
11515 _ACEOF
11516
11517 fi
11518 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11519 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11520
11521 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11522 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11523 gcc_cv_ld_pie=no
11524 if test $in_tree_ld = yes ; then
11525   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 \
11526      && test $in_tree_ld_is_elf = yes; then
11527     gcc_cv_ld_pie=yes
11528   fi
11529 elif test x$gcc_cv_ld != x; then
11530         # Check if linker supports -pie option
11531         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11532                 gcc_cv_ld_pie=yes
11533         fi
11534 fi
11535 if test x"$gcc_cv_ld_pie" = xyes; then
11536
11537 cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_LD_PIE 1
11539 _ACEOF
11540
11541 fi
11542 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11543 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11544
11545 # Miscellaneous target-specific checks.
11546 case "$target" in
11547   mips*-*-*)
11548     echo "$as_me:$LINENO: checking whether libgloss uses STARTUP directives consistently" >&5
11549 echo $ECHO_N "checking whether libgloss uses STARTUP directives consistently... $ECHO_C" >&6
11550     gcc_cv_mips_libgloss_startup=no
11551     gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
11552     if test "x$exec_prefix" = xNONE; then
11553       if test "x$prefix" = xNONE; then
11554         test_prefix=/usr/local
11555       else
11556         test_prefix=$prefix
11557       fi
11558     else
11559       test_prefix=$exec_prefix
11560     fi
11561     for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_noncanonical/lib/idt.ld
11562     do
11563       if grep '^STARTUP' $f > /dev/null 2>&1; then
11564         gcc_cv_mips_libgloss_startup=yes
11565         break
11566       fi
11567     done
11568     if test x"$gcc_cv_mips_libgloss_startup" = xyes; then
11569
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
11572 _ACEOF
11573
11574     fi
11575     echo "$as_me:$LINENO: result: $gcc_cv_mips_libgloss_startup" >&5
11576 echo "${ECHO_T}$gcc_cv_mips_libgloss_startup" >&6
11577     ;;
11578 esac
11579
11580 if test x$with_sysroot = x && test x$host = x$target \
11581    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11582
11583 cat >>confdefs.h <<_ACEOF
11584 #define PREFIX_INCLUDE_DIR "$prefix/include"
11585 _ACEOF
11586
11587 fi
11588
11589 # Figure out what language subdirectories are present.
11590 # Look if the user specified --enable-languages="..."; if not, use
11591 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11592 # go away some day.
11593 # NB:  embedded tabs in this IF block -- do not untabify
11594 if test x"${enable_languages+set}" != xset; then
11595         if test x"${LANGUAGES+set}" = xset; then
11596                 enable_languages="${LANGUAGES}"
11597                 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11598 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11599
11600         else
11601                 enable_languages=all
11602         fi
11603 else
11604         if test x"${enable_languages}" = x \
11605         || test x"${enable_languages}" = xyes;
11606         then
11607                 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11608 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11609    { (exit 1); exit 1; }; }
11610         fi
11611 fi
11612 enable_languages=`echo "${enable_languages}" | sed -e 's/[      ,][     ,]*/,/g' -e 's/,$//'`
11613
11614 # First scan to see if an enabled language requires some other language.
11615 # We assume that a given config-lang.in will list all the language
11616 # front ends it requires, even if some are required indirectly.
11617 for lang in ${srcdir}/*/config-lang.in
11618 do
11619    case $lang in
11620     # The odd quoting in the next line works around
11621     # an apparent bug in bash 1.12 on linux.
11622     ${srcdir}/[*]/config-lang.in)
11623        ;;
11624     *)
11625        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^      ]*\).*$,\1,p' $lang`
11626        this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^    ]*\).*$,\1,p' $lang`
11627        for other in $this_lang_requires
11628        do
11629           case ,${enable_languages}, in
11630            *,$other,*)
11631               ;;
11632            *,all,*)
11633               ;;
11634            *,$lang_alias,*)
11635               enable_languages="$enable_languages,$other"
11636               ;;
11637           esac
11638        done
11639        ;;
11640    esac
11641 done
11642
11643 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's:  *: :g' -e 's:  *: :g' -e 's:^ ::' -e 's: $::'`
11644 found_languages=
11645 subdirs=
11646 for lang in ${srcdir}/*/config-lang.in
11647 do
11648         case $lang in
11649         # The odd quoting in the next line works around
11650         # an apparent bug in bash 1.12 on linux.
11651         ${srcdir}/[*]/config-lang.in) ;;
11652         *)
11653           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
11654           this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^         ]*\).*$,\1,p' $lang`
11655           build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^     ]*\).*$,\1,p' $lang`
11656           if test "x$lang_alias" = x
11657           then
11658                 echo "$lang doesn't set \$language." 1>&2
11659                 exit 1
11660           fi
11661           case ${build_by_default},${enable_languages}, in
11662           *,$lang_alias,*) add_this_lang=yes ;;
11663           no,*) add_this_lang=no ;;
11664           *,all,*) add_this_lang=yes ;;
11665           *) add_this_lang=no ;;
11666           esac
11667           found_languages="${found_languages} ${lang_alias}"
11668           if test x"${add_this_lang}" = xyes; then
11669                 case $lang in
11670                     ${srcdir}/ada/config-lang.in)
11671                         if test x$have_gnat = xyes ; then
11672                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11673                         fi
11674                         ;;
11675                     *)
11676                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11677                         ;;
11678                 esac
11679           fi
11680           ;;
11681         esac
11682 done
11683
11684 missing_languages=
11685 for expected_language in ${expected_languages} ..
11686 do
11687     if test "${expected_language}" != ..; then
11688         missing_language="${expected_language}"
11689         if test "${expected_language}" = "c" \
11690            || test "${expected_language}" = "all"; then
11691                 missing_language=
11692         fi
11693         for found_language in ${found_languages} ..
11694         do
11695             if test "${found_language}" != ..; then
11696                 if test "${expected_language}" = "${found_language}"; then
11697                     missing_language=
11698                 fi
11699             fi
11700         done
11701         if test "x${missing_language}" != x; then
11702            missing_languages="${missing_languages} ${missing_language}"
11703         fi
11704     fi
11705 done
11706
11707 if test "x$missing_languages" != x; then
11708   { { echo "$as_me:$LINENO: error:
11709 The following requested languages were not found:${missing_languages}
11710 The following languages were available: c${found_languages}" >&5
11711 echo "$as_me: error:
11712 The following requested languages were not found:${missing_languages}
11713 The following languages were available: c${found_languages}" >&2;}
11714    { (exit 1); exit 1; }; }
11715 fi
11716
11717 # Make gthr-default.h if we have a thread file.
11718 gthread_flags=
11719 if test $thread_file != single; then
11720     rm -f gthr-default.h
11721     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11722     gthread_flags=-DHAVE_GTHR_DEFAULT
11723 fi
11724
11725
11726 # Find out what GC implementation we want, or may, use.
11727
11728 # Check whether --with-gc or --without-gc was given.
11729 if test "${with_gc+set}" = set; then
11730   withval="$with_gc"
11731   case "$withval" in
11732   simple | page | zone)
11733     GGC=ggc-$withval
11734     ;;
11735   *)
11736     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11737 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11738    { (exit 1); exit 1; }; }
11739     ;;
11740 esac
11741 else
11742   GGC=ggc-page
11743 fi;
11744
11745 echo "Using $GGC for garbage collection."
11746
11747 # Use the system's zlib library.
11748 zlibdir=-L../zlib
11749 zlibinc="-I\$(srcdir)/../zlib"
11750
11751 # Check whether --with-system-zlib or --without-system-zlib was given.
11752 if test "${with_system_zlib+set}" = set; then
11753   withval="$with_system_zlib"
11754   zlibdir=
11755 zlibinc=
11756
11757 fi;
11758
11759
11760
11761
11762 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11763 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11764     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11765 if test "${enable_maintainer_mode+set}" = set; then
11766   enableval="$enable_maintainer_mode"
11767   maintainer_mode=$enableval
11768 else
11769   maintainer_mode=no
11770 fi;
11771
11772 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11773 echo "${ECHO_T}$maintainer_mode" >&6
11774
11775 if test "$maintainer_mode" = "yes"; then
11776   MAINT=''
11777 else
11778   MAINT='#'
11779 fi
11780
11781 # Make empty files to contain the specs and options for each language.
11782 # Then add #include lines to for a compiler that has specs and/or options.
11783
11784 lang_opt_files=
11785 lang_specs_files=
11786 lang_tree_files=
11787 for subdir in . $subdirs
11788 do
11789         if test -f $srcdir/$subdir/lang.opt; then
11790             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11791         fi
11792         if test -f $srcdir/$subdir/lang-specs.h; then
11793             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11794         fi
11795         if test -f $srcdir/$subdir/$subdir-tree.def; then
11796             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11797         fi
11798 done
11799
11800 # These (without "all_") are set in each config-lang.in.
11801 # `language' must be a single word so is spelled singularly.
11802 all_languages=
11803 all_boot_languages=
11804 all_compilers=
11805 all_stagestuff=
11806 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11807 # List of language makefile fragments.
11808 all_lang_makefrags=
11809 # List of language subdirectory makefiles.  Deprecated.
11810 all_lang_makefiles=
11811 # Files for gengtype
11812 all_gtfiles="$target_gtfiles"
11813 # Files for gengtype with language
11814 all_gtfiles_files_langs=
11815 all_gtfiles_files_files=
11816
11817 # Add the language fragments.
11818 # Languages are added via two mechanisms.  Some information must be
11819 # recorded in makefile variables, these are defined in config-lang.in.
11820 # We accumulate them and plug them into the main Makefile.
11821 # The other mechanism is a set of hooks for each of the main targets
11822 # like `clean', `install', etc.
11823
11824 language_hooks="Make-hooks"
11825
11826 for s in $subdirs
11827 do
11828                 language=
11829                 boot_language=
11830                 compilers=
11831                 stagestuff=
11832                 outputs=
11833                 gtfiles=
11834                 . ${srcdir}/$s/config-lang.in
11835                 if test "x$language" = x
11836                 then
11837                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11838                         exit 1
11839                 fi
11840                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11841                 if test -f ${srcdir}/$s/Makefile.in
11842                 then all_lang_makefiles="$s/Makefile"
11843                 fi
11844                 all_languages="$all_languages $language"
11845                 if test "x$boot_language" = xyes
11846                 then
11847                         all_boot_languages="$all_boot_languages $language"
11848                 fi
11849                 all_compilers="$all_compilers $compilers"
11850                 all_stagestuff="$all_stagestuff $stagestuff"
11851                 all_outputs="$all_outputs $outputs"
11852                 all_gtfiles="$all_gtfiles $gtfiles"
11853                 for f in $gtfiles
11854                 do
11855                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11856                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11857                 done
11858 done
11859
11860 # Pick up gtfiles for c
11861 gtfiles=
11862 s="c"
11863 . ${srcdir}/c-config-lang.in
11864 all_gtfiles="$all_gtfiles $gtfiles"
11865 for f in $gtfiles
11866 do
11867         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11868         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11869 done
11870
11871 check_languages=
11872 for language in $all_languages
11873 do
11874                 check_languages="$check_languages check-$language"
11875 done
11876
11877 # We link each language in with a set of hooks, reached indirectly via
11878 # lang.${target}.
11879
11880 rm -f Make-hooks
11881 touch Make-hooks
11882 target_list="all.build all.cross start.encap rest.encap tags \
11883         install-normal install-common install-man \
11884         uninstall \
11885         mostlyclean clean distclean maintainer-clean \
11886         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11887 for t in $target_list
11888 do
11889         x=
11890         for lang in $all_languages
11891         do
11892                         x="$x $lang.$t"
11893         done
11894         echo "lang.$t: $x" >> Make-hooks
11895 done
11896
11897 # Create .gdbinit.
11898
11899 echo "dir ." > .gdbinit
11900 echo "dir ${srcdir}" >> .gdbinit
11901 if test x$gdb_needs_out_file_path = xyes
11902 then
11903         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11904 fi
11905 if test "x$subdirs" != x; then
11906         for s in $subdirs
11907         do
11908                 echo "dir ${srcdir}/$s" >> .gdbinit
11909         done
11910 fi
11911 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11912
11913 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11914 # absolute path for gcc_tooldir based on inserting the number of up-directory
11915 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11916 # $(libsubdir)/@(unlibsubdir) based path.
11917 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11918 # make and thus we'd get different behavior depending on where we built the
11919 # sources.
11920 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11921     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11922 else
11923 # An explanation of the sed strings:
11924 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
11925 #  -e 's|/$||'            match a trailing forward slash and eliminates it
11926 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
11927 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
11928 #
11929 # (*) Note this pattern overwrites the first character of the string
11930 # with a forward slash if one is not already present.  This is not a
11931 # problem because the exact names of the sub-directories concerned is
11932 # unimportant, just the number of them matters.
11933 #
11934 # The practical upshot of these patterns is like this:
11935 #
11936 #  prefix     exec_prefix        result
11937 #  ------     -----------        ------
11938 #   /foo        /foo/bar          ../
11939 #   /foo/       /foo/bar          ../
11940 #   /foo        /foo/bar/         ../
11941 #   /foo/       /foo/bar/         ../
11942 #   /foo        /foo/bar/ugg      ../../
11943 #
11944     dollar='$$'
11945     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11946 fi
11947
11948
11949
11950 # Find a directory in which to install a shared libgcc.
11951
11952 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11953 if test "${enable_version_specific_runtime_libs+set}" = set; then
11954   enableval="$enable_version_specific_runtime_libs"
11955
11956 fi;
11957
11958
11959 # Check whether --with-slibdir or --without-slibdir was given.
11960 if test "${with_slibdir+set}" = set; then
11961   withval="$with_slibdir"
11962   slibdir="$with_slibdir"
11963 else
11964   if test "${enable_version_specific_runtime_libs+set}" = set; then
11965   slibdir='$(libsubdir)'
11966 elif test "$host" != "$target"; then
11967   slibdir='$(build_tooldir)/lib'
11968 else
11969   slibdir='$(libdir)'
11970 fi
11971 fi;
11972
11973
11974 objdir=`${PWDCMD-pwd}`
11975
11976
11977 # Substitute configuration variables
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048 # Echo link setup.
12049 if test x${build} = x${host} ; then
12050   if test x${host} = x${target} ; then
12051     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12052   else
12053     echo "Links are now set up to build a cross-compiler" 1>&2
12054     echo " from ${host} to ${target}." 1>&2
12055   fi
12056 else
12057   if test x${host} = x${target} ; then
12058     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12059     echo " for ${target}." 1>&2
12060   else
12061     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12062     echo " from ${host} to ${target}." 1>&2
12063   fi
12064 fi
12065
12066 # Configure the subdirectories
12067 # AC_CONFIG_SUBDIRS($subdirs)
12068
12069 # Create the Makefile
12070 # and configure language subdirectories
12071           ac_config_files="$ac_config_files $all_outputs"
12072           ac_config_commands="$ac_config_commands default"
12073 cat >confcache <<\_ACEOF
12074 # This file is a shell script that caches the results of configure
12075 # tests run on this system so they can be shared between configure
12076 # scripts and configure runs, see configure's option --config-cache.
12077 # It is not useful on other systems.  If it contains results you don't
12078 # want to keep, you may remove or edit it.
12079 #
12080 # config.status only pays attention to the cache file if you give it
12081 # the --recheck option to rerun configure.
12082 #
12083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12085 # following values.
12086
12087 _ACEOF
12088
12089 # The following way of writing the cache mishandles newlines in values,
12090 # but we know of no workaround that is simple, portable, and efficient.
12091 # So, don't put newlines in cache variables' values.
12092 # Ultrix sh set writes to stderr and can't be redirected directly,
12093 # and sets the high bit in the cache file unless we assign to the vars.
12094 {
12095   (set) 2>&1 |
12096     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12097     *ac_space=\ *)
12098       # `set' does not quote correctly, so add quotes (double-quote
12099       # substitution turns \\\\ into \\, and sed turns \\ into \).
12100       sed -n \
12101         "s/'/'\\\\''/g;
12102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12103       ;;
12104     *)
12105       # `set' quotes correctly as required by POSIX, so do not add quotes.
12106       sed -n \
12107         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12108       ;;
12109     esac;
12110 } |
12111   sed '
12112      t clear
12113      : clear
12114      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12115      t end
12116      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12117      : end' >>confcache
12118 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12119   if test -w $cache_file; then
12120     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12121     cat confcache >$cache_file
12122   else
12123     echo "not updating unwritable cache $cache_file"
12124   fi
12125 fi
12126 rm -f confcache
12127
12128 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12129 # Let make expand exec_prefix.
12130 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12131
12132 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12133 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12134 # trailing colons and then remove the whole line if VPATH becomes empty
12135 # (actually we leave an empty line to preserve line numbers).
12136 if test "x$srcdir" = x.; then
12137   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12138 s/:*\$(srcdir):*/:/;
12139 s/:*\${srcdir}:*/:/;
12140 s/:*@srcdir@:*/:/;
12141 s/^\([^=]*=[    ]*\):*/\1/;
12142 s/:*$//;
12143 s/^[^=]*=[      ]*$//;
12144 }'
12145 fi
12146
12147 DEFS=-DHAVE_CONFIG_H
12148
12149 ac_libobjs=
12150 ac_ltlibobjs=
12151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12152   # 1. Remove the extension, and $U if already installed.
12153   ac_i=`echo "$ac_i" |
12154          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12155   # 2. Add them.
12156   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12157   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12158 done
12159 LIBOBJS=$ac_libobjs
12160
12161 LTLIBOBJS=$ac_ltlibobjs
12162
12163
12164
12165 : ${CONFIG_STATUS=./config.status}
12166 ac_clean_files_save=$ac_clean_files
12167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12168 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12169 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12170 cat >$CONFIG_STATUS <<_ACEOF
12171 #! $SHELL
12172 # Generated by $as_me.
12173 # Run this file to recreate the current configuration.
12174 # Compiler output produced by configure, useful for debugging
12175 # configure, is in config.log if it exists.
12176
12177 debug=false
12178 ac_cs_recheck=false
12179 ac_cs_silent=false
12180 SHELL=\${CONFIG_SHELL-$SHELL}
12181 _ACEOF
12182
12183 cat >>$CONFIG_STATUS <<\_ACEOF
12184 ## --------------------- ##
12185 ## M4sh Initialization.  ##
12186 ## --------------------- ##
12187
12188 # Be Bourne compatible
12189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12190   emulate sh
12191   NULLCMD=:
12192   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12193   # is contrary to our usage.  Disable this feature.
12194   alias -g '${1+"$@"}'='"$@"'
12195 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12196   set -o posix
12197 fi
12198
12199 # Support unset when possible.
12200 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12201   as_unset=unset
12202 else
12203   as_unset=false
12204 fi
12205
12206
12207 # Work around bugs in pre-3.0 UWIN ksh.
12208 $as_unset ENV MAIL MAILPATH
12209 PS1='$ '
12210 PS2='> '
12211 PS4='+ '
12212
12213 # NLS nuisances.
12214 for as_var in \
12215   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12216   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12217   LC_TELEPHONE LC_TIME
12218 do
12219   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12220     eval $as_var=C; export $as_var
12221   else
12222     $as_unset $as_var
12223   fi
12224 done
12225
12226 # Required to use basename.
12227 if expr a : '\(a\)' >/dev/null 2>&1; then
12228   as_expr=expr
12229 else
12230   as_expr=false
12231 fi
12232
12233 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12234   as_basename=basename
12235 else
12236   as_basename=false
12237 fi
12238
12239
12240 # Name of the executable.
12241 as_me=`$as_basename "$0" ||
12242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12243          X"$0" : 'X\(//\)$' \| \
12244          X"$0" : 'X\(/\)$' \| \
12245          .     : '\(.\)' 2>/dev/null ||
12246 echo X/"$0" |
12247     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12248           /^X\/\(\/\/\)$/{ s//\1/; q; }
12249           /^X\/\(\/\).*/{ s//\1/; q; }
12250           s/.*/./; q'`
12251
12252
12253 # PATH needs CR, and LINENO needs CR and PATH.
12254 # Avoid depending upon Character Ranges.
12255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12258 as_cr_digits='0123456789'
12259 as_cr_alnum=$as_cr_Letters$as_cr_digits
12260
12261 # The user is always right.
12262 if test "${PATH_SEPARATOR+set}" != set; then
12263   echo "#! /bin/sh" >conf$$.sh
12264   echo  "exit 0"   >>conf$$.sh
12265   chmod +x conf$$.sh
12266   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12267     PATH_SEPARATOR=';'
12268   else
12269     PATH_SEPARATOR=:
12270   fi
12271   rm -f conf$$.sh
12272 fi
12273
12274
12275   as_lineno_1=$LINENO
12276   as_lineno_2=$LINENO
12277   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12278   test "x$as_lineno_1" != "x$as_lineno_2" &&
12279   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12280   # Find who we are.  Look in the path if we contain no path at all
12281   # relative or not.
12282   case $0 in
12283     *[\\/]* ) as_myself=$0 ;;
12284     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12286 do
12287   IFS=$as_save_IFS
12288   test -z "$as_dir" && as_dir=.
12289   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12290 done
12291
12292        ;;
12293   esac
12294   # We did not find ourselves, most probably we were run as `sh COMMAND'
12295   # in which case we are not to be found in the path.
12296   if test "x$as_myself" = x; then
12297     as_myself=$0
12298   fi
12299   if test ! -f "$as_myself"; then
12300     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12302    { (exit 1); exit 1; }; }
12303   fi
12304   case $CONFIG_SHELL in
12305   '')
12306     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12308 do
12309   IFS=$as_save_IFS
12310   test -z "$as_dir" && as_dir=.
12311   for as_base in sh bash ksh sh5; do
12312          case $as_dir in
12313          /*)
12314            if ("$as_dir/$as_base" -c '
12315   as_lineno_1=$LINENO
12316   as_lineno_2=$LINENO
12317   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12318   test "x$as_lineno_1" != "x$as_lineno_2" &&
12319   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12320              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12321              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12322              CONFIG_SHELL=$as_dir/$as_base
12323              export CONFIG_SHELL
12324              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12325            fi;;
12326          esac
12327        done
12328 done
12329 ;;
12330   esac
12331
12332   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12333   # uniformly replaced by the line number.  The first 'sed' inserts a
12334   # line-number line before each line; the second 'sed' does the real
12335   # work.  The second script uses 'N' to pair each line-number line
12336   # with the numbered line, and appends trailing '-' during
12337   # substitution so that $LINENO is not a special case at line end.
12338   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12339   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12340   sed '=' <$as_myself |
12341     sed '
12342       N
12343       s,$,-,
12344       : loop
12345       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12346       t loop
12347       s,-$,,
12348       s,^['$as_cr_digits']*\n,,
12349     ' >$as_me.lineno &&
12350   chmod +x $as_me.lineno ||
12351     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12353    { (exit 1); exit 1; }; }
12354
12355   # Don't try to exec as it changes $[0], causing all sort of problems
12356   # (the dirname of $[0] is not the place where we might find the
12357   # original and so on.  Autoconf is especially sensible to this).
12358   . ./$as_me.lineno
12359   # Exit status is that of the last command.
12360   exit
12361 }
12362
12363
12364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12365   *c*,-n*) ECHO_N= ECHO_C='
12366 ' ECHO_T='      ' ;;
12367   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12368   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12369 esac
12370
12371 if expr a : '\(a\)' >/dev/null 2>&1; then
12372   as_expr=expr
12373 else
12374   as_expr=false
12375 fi
12376
12377 rm -f conf$$ conf$$.exe conf$$.file
12378 echo >conf$$.file
12379 if ln -s conf$$.file conf$$ 2>/dev/null; then
12380   # We could just check for DJGPP; but this test a) works b) is more generic
12381   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12382   if test -f conf$$.exe; then
12383     # Don't use ln at all; we don't have any links
12384     as_ln_s='cp -p'
12385   else
12386     as_ln_s='ln -s'
12387   fi
12388 elif ln conf$$.file conf$$ 2>/dev/null; then
12389   as_ln_s=ln
12390 else
12391   as_ln_s='cp -p'
12392 fi
12393 rm -f conf$$ conf$$.exe conf$$.file
12394
12395 if mkdir -p . 2>/dev/null; then
12396   as_mkdir_p=:
12397 else
12398   as_mkdir_p=false
12399 fi
12400
12401 as_executable_p="test -f"
12402
12403 # Sed expression to map a string onto a valid CPP name.
12404 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12405
12406 # Sed expression to map a string onto a valid variable name.
12407 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12408
12409
12410 # IFS
12411 # We need space, tab and new line, in precisely that order.
12412 as_nl='
12413 '
12414 IFS="   $as_nl"
12415
12416 # CDPATH.
12417 $as_unset CDPATH
12418
12419 exec 6>&1
12420
12421 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12422 # report actual input values of CONFIG_FILES etc. instead of their
12423 # values after options handling.  Logging --version etc. is OK.
12424 exec 5>>config.log
12425 {
12426   echo
12427   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12428 ## Running $as_me. ##
12429 _ASBOX
12430 } >&5
12431 cat >&5 <<_CSEOF
12432
12433 This file was extended by $as_me, which was
12434 generated by GNU Autoconf 2.57.  Invocation command line was
12435
12436   CONFIG_FILES    = $CONFIG_FILES
12437   CONFIG_HEADERS  = $CONFIG_HEADERS
12438   CONFIG_LINKS    = $CONFIG_LINKS
12439   CONFIG_COMMANDS = $CONFIG_COMMANDS
12440   $ $0 $@
12441
12442 _CSEOF
12443 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12444 echo >&5
12445 _ACEOF
12446
12447 # Files that config.status was made for.
12448 if test -n "$ac_config_files"; then
12449   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12450 fi
12451
12452 if test -n "$ac_config_headers"; then
12453   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12454 fi
12455
12456 if test -n "$ac_config_links"; then
12457   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12458 fi
12459
12460 if test -n "$ac_config_commands"; then
12461   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12462 fi
12463
12464 cat >>$CONFIG_STATUS <<\_ACEOF
12465
12466 ac_cs_usage="\
12467 \`$as_me' instantiates files from templates according to the
12468 current configuration.
12469
12470 Usage: $0 [OPTIONS] [FILE]...
12471
12472   -h, --help       print this help, then exit
12473   -V, --version    print version number, then exit
12474   -q, --quiet      do not print progress messages
12475   -d, --debug      don't remove temporary files
12476       --recheck    update $as_me by reconfiguring in the same conditions
12477   --file=FILE[:TEMPLATE]
12478                    instantiate the configuration file FILE
12479   --header=FILE[:TEMPLATE]
12480                    instantiate the configuration header FILE
12481
12482 Configuration files:
12483 $config_files
12484
12485 Configuration headers:
12486 $config_headers
12487
12488 Configuration commands:
12489 $config_commands
12490
12491 Report bugs to <bug-autoconf@gnu.org>."
12492 _ACEOF
12493
12494 cat >>$CONFIG_STATUS <<_ACEOF
12495 ac_cs_version="\\
12496 config.status
12497 configured by $0, generated by GNU Autoconf 2.57,
12498   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12499
12500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12501 Free Software Foundation, Inc.
12502 This config.status script is free software; the Free Software Foundation
12503 gives unlimited permission to copy, distribute and modify it."
12504 srcdir=$srcdir
12505 _ACEOF
12506
12507 cat >>$CONFIG_STATUS <<\_ACEOF
12508 # If no file are specified by the user, then we need to provide default
12509 # value.  By we need to know if files were specified by the user.
12510 ac_need_defaults=:
12511 while test $# != 0
12512 do
12513   case $1 in
12514   --*=*)
12515     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12516     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12517     ac_shift=:
12518     ;;
12519   -*)
12520     ac_option=$1
12521     ac_optarg=$2
12522     ac_shift=shift
12523     ;;
12524   *) # This is not an option, so the user has probably given explicit
12525      # arguments.
12526      ac_option=$1
12527      ac_need_defaults=false;;
12528   esac
12529
12530   case $ac_option in
12531   # Handling of the options.
12532 _ACEOF
12533 cat >>$CONFIG_STATUS <<\_ACEOF
12534   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12535     ac_cs_recheck=: ;;
12536   --version | --vers* | -V )
12537     echo "$ac_cs_version"; exit 0 ;;
12538   --he | --h)
12539     # Conflict between --help and --header
12540     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12541 Try \`$0 --help' for more information." >&5
12542 echo "$as_me: error: ambiguous option: $1
12543 Try \`$0 --help' for more information." >&2;}
12544    { (exit 1); exit 1; }; };;
12545   --help | --hel | -h )
12546     echo "$ac_cs_usage"; exit 0 ;;
12547   --debug | --d* | -d )
12548     debug=: ;;
12549   --file | --fil | --fi | --f )
12550     $ac_shift
12551     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12552     ac_need_defaults=false;;
12553   --header | --heade | --head | --hea )
12554     $ac_shift
12555     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12556     ac_need_defaults=false;;
12557   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12558   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12559     ac_cs_silent=: ;;
12560
12561   # This is an error.
12562   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12563 Try \`$0 --help' for more information." >&5
12564 echo "$as_me: error: unrecognized option: $1
12565 Try \`$0 --help' for more information." >&2;}
12566    { (exit 1); exit 1; }; } ;;
12567
12568   *) ac_config_targets="$ac_config_targets $1" ;;
12569
12570   esac
12571   shift
12572 done
12573
12574 ac_configure_extra_args=
12575
12576 if $ac_cs_silent; then
12577   exec 6>/dev/null
12578   ac_configure_extra_args="$ac_configure_extra_args --silent"
12579 fi
12580
12581 _ACEOF
12582 cat >>$CONFIG_STATUS <<_ACEOF
12583 if \$ac_cs_recheck; then
12584   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12585   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12586 fi
12587
12588 _ACEOF
12589
12590 cat >>$CONFIG_STATUS <<_ACEOF
12591 #
12592 # INIT-COMMANDS section.
12593 #
12594
12595 subdirs='$subdirs'
12596 symbolic_link='$symbolic_link'
12597
12598
12599 _ACEOF
12600
12601
12602
12603 cat >>$CONFIG_STATUS <<\_ACEOF
12604 for ac_config_target in $ac_config_targets
12605 do
12606   case "$ac_config_target" in
12607   # Handling of arguments.
12608   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12609   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12610   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12611   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12613    { (exit 1); exit 1; }; };;
12614   esac
12615 done
12616
12617 # If the user did not use the arguments to specify the items to instantiate,
12618 # then the envvar interface is used.  Set only those that are not.
12619 # We use the long form for the default assignment because of an extremely
12620 # bizarre bug on SunOS 4.1.3.
12621 if $ac_need_defaults; then
12622   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12623   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12624   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12625 fi
12626
12627 # Have a temporary directory for convenience.  Make it in the build tree
12628 # simply because there is no reason to put it here, and in addition,
12629 # creating and moving files from /tmp can sometimes cause problems.
12630 # Create a temporary directory, and hook for its removal unless debugging.
12631 $debug ||
12632 {
12633   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12634   trap '{ (exit 1); exit 1; }' 1 2 13 15
12635 }
12636
12637 # Create a (secure) tmp directory for tmp files.
12638
12639 {
12640   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12641   test -n "$tmp" && test -d "$tmp"
12642 }  ||
12643 {
12644   tmp=./confstat$$-$RANDOM
12645   (umask 077 && mkdir $tmp)
12646 } ||
12647 {
12648    echo "$me: cannot create a temporary directory in ." >&2
12649    { (exit 1); exit 1; }
12650 }
12651
12652 _ACEOF
12653
12654 cat >>$CONFIG_STATUS <<_ACEOF
12655
12656 #
12657 # CONFIG_FILES section.
12658 #
12659
12660 # No need to generate the scripts if there are no CONFIG_FILES.
12661 # This happens for instance when ./config.status config.h
12662 if test -n "\$CONFIG_FILES"; then
12663   # Protect against being on the right side of a sed subst in config.status.
12664   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12665    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12666 s,@SHELL@,$SHELL,;t t
12667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12673 s,@exec_prefix@,$exec_prefix,;t t
12674 s,@prefix@,$prefix,;t t
12675 s,@program_transform_name@,$program_transform_name,;t t
12676 s,@bindir@,$bindir,;t t
12677 s,@sbindir@,$sbindir,;t t
12678 s,@libexecdir@,$libexecdir,;t t
12679 s,@datadir@,$datadir,;t t
12680 s,@sysconfdir@,$sysconfdir,;t t
12681 s,@sharedstatedir@,$sharedstatedir,;t t
12682 s,@localstatedir@,$localstatedir,;t t
12683 s,@libdir@,$libdir,;t t
12684 s,@includedir@,$includedir,;t t
12685 s,@oldincludedir@,$oldincludedir,;t t
12686 s,@infodir@,$infodir,;t t
12687 s,@mandir@,$mandir,;t t
12688 s,@build_alias@,$build_alias,;t t
12689 s,@host_alias@,$host_alias,;t t
12690 s,@target_alias@,$target_alias,;t t
12691 s,@DEFS@,$DEFS,;t t
12692 s,@ECHO_C@,$ECHO_C,;t t
12693 s,@ECHO_N@,$ECHO_N,;t t
12694 s,@ECHO_T@,$ECHO_T,;t t
12695 s,@LIBS@,$LIBS,;t t
12696 s,@build@,$build,;t t
12697 s,@build_cpu@,$build_cpu,;t t
12698 s,@build_vendor@,$build_vendor,;t t
12699 s,@build_os@,$build_os,;t t
12700 s,@host@,$host,;t t
12701 s,@host_cpu@,$host_cpu,;t t
12702 s,@host_vendor@,$host_vendor,;t t
12703 s,@host_os@,$host_os,;t t
12704 s,@target@,$target,;t t
12705 s,@target_cpu@,$target_cpu,;t t
12706 s,@target_vendor@,$target_vendor,;t t
12707 s,@target_os@,$target_os,;t t
12708 s,@build_subdir@,$build_subdir,;t t
12709 s,@host_subdir@,$host_subdir,;t t
12710 s,@target_subdir@,$target_subdir,;t t
12711 s,@CC@,$CC,;t t
12712 s,@CFLAGS@,$CFLAGS,;t t
12713 s,@LDFLAGS@,$LDFLAGS,;t t
12714 s,@CPPFLAGS@,$CPPFLAGS,;t t
12715 s,@ac_ct_CC@,$ac_ct_CC,;t t
12716 s,@EXEEXT@,$EXEEXT,;t t
12717 s,@OBJEXT@,$OBJEXT,;t t
12718 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12719 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12720 s,@CPP@,$CPP,;t t
12721 s,@GNATBIND@,$GNATBIND,;t t
12722 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12723 s,@strict1_warn@,$strict1_warn,;t t
12724 s,@warn_cflags@,$warn_cflags,;t t
12725 s,@WERROR@,$WERROR,;t t
12726 s,@nocommon_flag@,$nocommon_flag,;t t
12727 s,@EGREP@,$EGREP,;t t
12728 s,@valgrind_path@,$valgrind_path,;t t
12729 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12730 s,@valgrind_command@,$valgrind_command,;t t
12731 s,@coverage_flags@,$coverage_flags,;t t
12732 s,@enable_multilib@,$enable_multilib,;t t
12733 s,@enable_shared@,$enable_shared,;t t
12734 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12735 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12736 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12737 s,@onestep@,$onestep,;t t
12738 s,@SET_MAKE@,$SET_MAKE,;t t
12739 s,@AWK@,$AWK,;t t
12740 s,@LN@,$LN,;t t
12741 s,@LN_S@,$LN_S,;t t
12742 s,@RANLIB@,$RANLIB,;t t
12743 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12744 s,@INSTALL@,$INSTALL,;t t
12745 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12746 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12747 s,@make_compare_target@,$make_compare_target,;t t
12748 s,@have_mktemp_command@,$have_mktemp_command,;t t
12749 s,@MAKEINFO@,$MAKEINFO,;t t
12750 s,@BUILD_INFO@,$BUILD_INFO,;t t
12751 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12752 s,@FLEX@,$FLEX,;t t
12753 s,@BISON@,$BISON,;t t
12754 s,@stage1_cflags@,$stage1_cflags,;t t
12755 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12756 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12757 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12758 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12759 s,@LIBICONV@,$LIBICONV,;t t
12760 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12761 s,@manext@,$manext,;t t
12762 s,@objext@,$objext,;t t
12763 s,@extra_modes_file@,$extra_modes_file,;t t
12764 s,@FORBUILD@,$FORBUILD,;t t
12765 s,@PACKAGE@,$PACKAGE,;t t
12766 s,@VERSION@,$VERSION,;t t
12767 s,@USE_NLS@,$USE_NLS,;t t
12768 s,@LIBINTL@,$LIBINTL,;t t
12769 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12770 s,@INCINTL@,$INCINTL,;t t
12771 s,@XGETTEXT@,$XGETTEXT,;t t
12772 s,@GMSGFMT@,$GMSGFMT,;t t
12773 s,@POSUB@,$POSUB,;t t
12774 s,@CATALOGS@,$CATALOGS,;t t
12775 s,@CROSS@,$CROSS,;t t
12776 s,@ALL@,$ALL,;t t
12777 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12778 s,@inhibit_libc@,$inhibit_libc,;t t
12779 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12780 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12781 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12782 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12783 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12784 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12785 s,@libgcc_visibility@,$libgcc_visibility,;t t
12786 s,@gthread_flags@,$gthread_flags,;t t
12787 s,@GGC@,$GGC,;t t
12788 s,@zlibdir@,$zlibdir,;t t
12789 s,@zlibinc@,$zlibinc,;t t
12790 s,@MAINT@,$MAINT,;t t
12791 s,@gcc_tooldir@,$gcc_tooldir,;t t
12792 s,@dollar@,$dollar,;t t
12793 s,@slibdir@,$slibdir,;t t
12794 s,@objdir@,$objdir,;t t
12795 s,@subdirs@,$subdirs,;t t
12796 s,@srcdir@,$srcdir,;t t
12797 s,@docobjdir@,$docobjdir,;t t
12798 s,@parsedir@,$parsedir,;t t
12799 s,@all_boot_languages@,$all_boot_languages,;t t
12800 s,@all_compilers@,$all_compilers,;t t
12801 s,@all_gtfiles@,$all_gtfiles,;t t
12802 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12803 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12804 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12805 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12806 s,@all_languages@,$all_languages,;t t
12807 s,@all_stagestuff@,$all_stagestuff,;t t
12808 s,@build_exeext@,$build_exeext,;t t
12809 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12810 s,@build_xm_file_list@,$build_xm_file_list,;t t
12811 s,@build_xm_include_list@,$build_xm_include_list,;t t
12812 s,@build_xm_defines@,$build_xm_defines,;t t
12813 s,@check_languages@,$check_languages,;t t
12814 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12815 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12816 s,@cpp_install_dir@,$cpp_install_dir,;t t
12817 s,@xmake_file@,$xmake_file,;t t
12818 s,@tmake_file@,$tmake_file,;t t
12819 s,@extra_headers_list@,$extra_headers_list,;t t
12820 s,@extra_objs@,$extra_objs,;t t
12821 s,@extra_parts@,$extra_parts,;t t
12822 s,@extra_passes@,$extra_passes,;t t
12823 s,@extra_programs@,$extra_programs,;t t
12824 s,@float_h_file@,$float_h_file,;t t
12825 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12826 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12827 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12828 s,@gcc_version@,$gcc_version,;t t
12829 s,@gcc_version_full@,$gcc_version_full,;t t
12830 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12831 s,@host_exeext@,$host_exeext,;t t
12832 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12833 s,@host_xm_file_list@,$host_xm_file_list,;t t
12834 s,@host_xm_include_list@,$host_xm_include_list,;t t
12835 s,@host_xm_defines@,$host_xm_defines,;t t
12836 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12837 s,@install@,$install,;t t
12838 s,@lang_opt_files@,$lang_opt_files,;t t
12839 s,@lang_specs_files@,$lang_specs_files,;t t
12840 s,@lang_tree_files@,$lang_tree_files,;t t
12841 s,@local_prefix@,$local_prefix,;t t
12842 s,@md_file@,$md_file,;t t
12843 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12844 s,@out_file@,$out_file,;t t
12845 s,@out_object_file@,$out_object_file,;t t
12846 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12847 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12848 s,@symbolic_link@,$symbolic_link,;t t
12849 s,@thread_file@,$thread_file,;t t
12850 s,@tm_file_list@,$tm_file_list,;t t
12851 s,@tm_include_list@,$tm_include_list,;t t
12852 s,@tm_defines@,$tm_defines,;t t
12853 s,@tm_p_file_list@,$tm_p_file_list,;t t
12854 s,@tm_p_include_list@,$tm_p_include_list,;t t
12855 s,@xm_file_list@,$xm_file_list,;t t
12856 s,@xm_include_list@,$xm_include_list,;t t
12857 s,@xm_defines@,$xm_defines,;t t
12858 s,@target_noncanonical@,$target_noncanonical,;t t
12859 s,@c_target_objs@,$c_target_objs,;t t
12860 s,@cxx_target_objs@,$cxx_target_objs,;t t
12861 s,@target_cpu_default@,$target_cpu_default,;t t
12862 s,@LIBOBJS@,$LIBOBJS,;t t
12863 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12864 /@language_hooks@/r $language_hooks
12865 s,@language_hooks@,,;t t
12866 CEOF
12867
12868 _ACEOF
12869
12870   cat >>$CONFIG_STATUS <<\_ACEOF
12871   # Split the substitutions into bite-sized pieces for seds with
12872   # small command number limits, like on Digital OSF/1 and HP-UX.
12873   ac_max_sed_lines=48
12874   ac_sed_frag=1 # Number of current file.
12875   ac_beg=1 # First line for current file.
12876   ac_end=$ac_max_sed_lines # Line after last line for current file.
12877   ac_more_lines=:
12878   ac_sed_cmds=
12879   while $ac_more_lines; do
12880     if test $ac_beg -gt 1; then
12881       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12882     else
12883       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12884     fi
12885     if test ! -s $tmp/subs.frag; then
12886       ac_more_lines=false
12887     else
12888       # The purpose of the label and of the branching condition is to
12889       # speed up the sed processing (if there are no `@' at all, there
12890       # is no need to browse any of the substitutions).
12891       # These are the two extra sed commands mentioned above.
12892       (echo ':t
12893   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12894       if test -z "$ac_sed_cmds"; then
12895         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12896       else
12897         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12898       fi
12899       ac_sed_frag=`expr $ac_sed_frag + 1`
12900       ac_beg=$ac_end
12901       ac_end=`expr $ac_end + $ac_max_sed_lines`
12902     fi
12903   done
12904   if test -z "$ac_sed_cmds"; then
12905     ac_sed_cmds=cat
12906   fi
12907 fi # test -n "$CONFIG_FILES"
12908
12909 _ACEOF
12910 cat >>$CONFIG_STATUS <<\_ACEOF
12911 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12912   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12913   case $ac_file in
12914   - | *:- | *:-:* ) # input from stdin
12915         cat >$tmp/stdin
12916         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12917         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12918   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12919         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12920   * )   ac_file_in=$ac_file.in ;;
12921   esac
12922
12923   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12924   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12926          X"$ac_file" : 'X\(//\)[^/]' \| \
12927          X"$ac_file" : 'X\(//\)$' \| \
12928          X"$ac_file" : 'X\(/\)' \| \
12929          .     : '\(.\)' 2>/dev/null ||
12930 echo X"$ac_file" |
12931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12933           /^X\(\/\/\)$/{ s//\1/; q; }
12934           /^X\(\/\).*/{ s//\1/; q; }
12935           s/.*/./; q'`
12936   { if $as_mkdir_p; then
12937     mkdir -p "$ac_dir"
12938   else
12939     as_dir="$ac_dir"
12940     as_dirs=
12941     while test ! -d "$as_dir"; do
12942       as_dirs="$as_dir $as_dirs"
12943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12945          X"$as_dir" : 'X\(//\)[^/]' \| \
12946          X"$as_dir" : 'X\(//\)$' \| \
12947          X"$as_dir" : 'X\(/\)' \| \
12948          .     : '\(.\)' 2>/dev/null ||
12949 echo X"$as_dir" |
12950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12952           /^X\(\/\/\)$/{ s//\1/; q; }
12953           /^X\(\/\).*/{ s//\1/; q; }
12954           s/.*/./; q'`
12955     done
12956     test ! -n "$as_dirs" || mkdir $as_dirs
12957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12959    { (exit 1); exit 1; }; }; }
12960
12961   ac_builddir=.
12962
12963 if test "$ac_dir" != .; then
12964   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12965   # A "../" for each directory in $ac_dir_suffix.
12966   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12967 else
12968   ac_dir_suffix= ac_top_builddir=
12969 fi
12970
12971 case $srcdir in
12972   .)  # No --srcdir option.  We are building in place.
12973     ac_srcdir=.
12974     if test -z "$ac_top_builddir"; then
12975        ac_top_srcdir=.
12976     else
12977        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12978     fi ;;
12979   [\\/]* | ?:[\\/]* )  # Absolute path.
12980     ac_srcdir=$srcdir$ac_dir_suffix;
12981     ac_top_srcdir=$srcdir ;;
12982   *) # Relative path.
12983     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12984     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12985 esac
12986 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12987 # absolute.
12988 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12989 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12990 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12991 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12992
12993
12994
12995   if test x"$ac_file" != x-; then
12996     { echo "$as_me:$LINENO: creating $ac_file" >&5
12997 echo "$as_me: creating $ac_file" >&6;}
12998     rm -f "$ac_file"
12999   fi
13000   # Let's still pretend it is `configure' which instantiates (i.e., don't
13001   # use $as_me), people would be surprised to read:
13002   #    /* config.h.  Generated by config.status.  */
13003   if test x"$ac_file" = x-; then
13004     configure_input=
13005   else
13006     configure_input="$ac_file.  "
13007   fi
13008   configure_input=$configure_input"Generated from `echo $ac_file_in |
13009                                      sed 's,.*/,,'` by configure."
13010
13011   # First look for the input files in the build tree, otherwise in the
13012   # src tree.
13013   ac_file_inputs=`IFS=:
13014     for f in $ac_file_in; do
13015       case $f in
13016       -) echo $tmp/stdin ;;
13017       [\\/$]*)
13018          # Absolute (can't be DOS-style, as IFS=:)
13019          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13020 echo "$as_me: error: cannot find input file: $f" >&2;}
13021    { (exit 1); exit 1; }; }
13022          echo $f;;
13023       *) # Relative
13024          if test -f "$f"; then
13025            # Build tree
13026            echo $f
13027          elif test -f "$srcdir/$f"; then
13028            # Source tree
13029            echo $srcdir/$f
13030          else
13031            # /dev/null tree
13032            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13033 echo "$as_me: error: cannot find input file: $f" >&2;}
13034    { (exit 1); exit 1; }; }
13035          fi;;
13036       esac
13037     done` || { (exit 1); exit 1; }
13038 _ACEOF
13039 cat >>$CONFIG_STATUS <<_ACEOF
13040   sed "$ac_vpsub
13041 $extrasub
13042 _ACEOF
13043 cat >>$CONFIG_STATUS <<\_ACEOF
13044 :t
13045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13046 s,@configure_input@,$configure_input,;t t
13047 s,@srcdir@,$ac_srcdir,;t t
13048 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13049 s,@top_srcdir@,$ac_top_srcdir,;t t
13050 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13051 s,@builddir@,$ac_builddir,;t t
13052 s,@abs_builddir@,$ac_abs_builddir,;t t
13053 s,@top_builddir@,$ac_top_builddir,;t t
13054 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13055 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13056   rm -f $tmp/stdin
13057   if test x"$ac_file" != x-; then
13058     mv $tmp/out $ac_file
13059   else
13060     cat $tmp/out
13061     rm -f $tmp/out
13062   fi
13063
13064 done
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<\_ACEOF
13067
13068 #
13069 # CONFIG_HEADER section.
13070 #
13071
13072 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13073 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13074 #
13075 # ac_d sets the value in "#define NAME VALUE" lines.
13076 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13077 ac_dB='[        ].*$,\1#\2'
13078 ac_dC=' '
13079 ac_dD=',;t'
13080 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13081 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13082 ac_uB='$,\1#\2define\3'
13083 ac_uC=' '
13084 ac_uD=',;t'
13085
13086 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13087   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13088   case $ac_file in
13089   - | *:- | *:-:* ) # input from stdin
13090         cat >$tmp/stdin
13091         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13092         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13093   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13094         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13095   * )   ac_file_in=$ac_file.in ;;
13096   esac
13097
13098   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13099 echo "$as_me: creating $ac_file" >&6;}
13100
13101   # First look for the input files in the build tree, otherwise in the
13102   # src tree.
13103   ac_file_inputs=`IFS=:
13104     for f in $ac_file_in; do
13105       case $f in
13106       -) echo $tmp/stdin ;;
13107       [\\/$]*)
13108          # Absolute (can't be DOS-style, as IFS=:)
13109          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13110 echo "$as_me: error: cannot find input file: $f" >&2;}
13111    { (exit 1); exit 1; }; }
13112          echo $f;;
13113       *) # Relative
13114          if test -f "$f"; then
13115            # Build tree
13116            echo $f
13117          elif test -f "$srcdir/$f"; then
13118            # Source tree
13119            echo $srcdir/$f
13120          else
13121            # /dev/null tree
13122            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13123 echo "$as_me: error: cannot find input file: $f" >&2;}
13124    { (exit 1); exit 1; }; }
13125          fi;;
13126       esac
13127     done` || { (exit 1); exit 1; }
13128   # Remove the trailing spaces.
13129   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13130
13131 _ACEOF
13132
13133 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13134 # `conftest.undefs', that substitutes the proper values into
13135 # config.h.in to produce config.h.  The first handles `#define'
13136 # templates, and the second `#undef' templates.
13137 # And first: Protect against being on the right side of a sed subst in
13138 # config.status.  Protect against being in an unquoted here document
13139 # in config.status.
13140 rm -f conftest.defines conftest.undefs
13141 # Using a here document instead of a string reduces the quoting nightmare.
13142 # Putting comments in sed scripts is not portable.
13143 #
13144 # `end' is used to avoid that the second main sed command (meant for
13145 # 0-ary CPP macros) applies to n-ary macro definitions.
13146 # See the Autoconf documentation for `clear'.
13147 cat >confdef2sed.sed <<\_ACEOF
13148 s/[\\&,]/\\&/g
13149 s,[\\$`],\\&,g
13150 t clear
13151 : clear
13152 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13153 t end
13154 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13155 : end
13156 _ACEOF
13157 # If some macros were called several times there might be several times
13158 # the same #defines, which is useless.  Nevertheless, we may not want to
13159 # sort them, since we want the *last* AC-DEFINE to be honored.
13160 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13161 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13162 rm -f confdef2sed.sed
13163
13164 # This sed command replaces #undef with comments.  This is necessary, for
13165 # example, in the case of _POSIX_SOURCE, which is predefined and required
13166 # on some systems where configure will not decide to define it.
13167 cat >>conftest.undefs <<\_ACEOF
13168 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13169 _ACEOF
13170
13171 # Break up conftest.defines because some shells have a limit on the size
13172 # of here documents, and old seds have small limits too (100 cmds).
13173 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13174 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13175 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13176 echo '  :' >>$CONFIG_STATUS
13177 rm -f conftest.tail
13178 while grep . conftest.defines >/dev/null
13179 do
13180   # Write a limited-size here document to $tmp/defines.sed.
13181   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13182   # Speed up: don't consider the non `#define' lines.
13183   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13184   # Work around the forget-to-reset-the-flag bug.
13185   echo 't clr' >>$CONFIG_STATUS
13186   echo ': clr' >>$CONFIG_STATUS
13187   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13188   echo 'CEOF
13189   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13190   rm -f $tmp/in
13191   mv $tmp/out $tmp/in
13192 ' >>$CONFIG_STATUS
13193   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13194   rm -f conftest.defines
13195   mv conftest.tail conftest.defines
13196 done
13197 rm -f conftest.defines
13198 echo '  fi # grep' >>$CONFIG_STATUS
13199 echo >>$CONFIG_STATUS
13200
13201 # Break up conftest.undefs because some shells have a limit on the size
13202 # of here documents, and old seds have small limits too (100 cmds).
13203 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13204 rm -f conftest.tail
13205 while grep . conftest.undefs >/dev/null
13206 do
13207   # Write a limited-size here document to $tmp/undefs.sed.
13208   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13209   # Speed up: don't consider the non `#undef'
13210   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13211   # Work around the forget-to-reset-the-flag bug.
13212   echo 't clr' >>$CONFIG_STATUS
13213   echo ': clr' >>$CONFIG_STATUS
13214   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13215   echo 'CEOF
13216   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13217   rm -f $tmp/in
13218   mv $tmp/out $tmp/in
13219 ' >>$CONFIG_STATUS
13220   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13221   rm -f conftest.undefs
13222   mv conftest.tail conftest.undefs
13223 done
13224 rm -f conftest.undefs
13225
13226 cat >>$CONFIG_STATUS <<\_ACEOF
13227   # Let's still pretend it is `configure' which instantiates (i.e., don't
13228   # use $as_me), people would be surprised to read:
13229   #    /* config.h.  Generated by config.status.  */
13230   if test x"$ac_file" = x-; then
13231     echo "/* Generated by configure.  */" >$tmp/config.h
13232   else
13233     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13234   fi
13235   cat $tmp/in >>$tmp/config.h
13236   rm -f $tmp/in
13237   if test x"$ac_file" != x-; then
13238     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13239       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13240 echo "$as_me: $ac_file is unchanged" >&6;}
13241     else
13242       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13244          X"$ac_file" : 'X\(//\)[^/]' \| \
13245          X"$ac_file" : 'X\(//\)$' \| \
13246          X"$ac_file" : 'X\(/\)' \| \
13247          .     : '\(.\)' 2>/dev/null ||
13248 echo X"$ac_file" |
13249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13250           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13251           /^X\(\/\/\)$/{ s//\1/; q; }
13252           /^X\(\/\).*/{ s//\1/; q; }
13253           s/.*/./; q'`
13254       { if $as_mkdir_p; then
13255     mkdir -p "$ac_dir"
13256   else
13257     as_dir="$ac_dir"
13258     as_dirs=
13259     while test ! -d "$as_dir"; do
13260       as_dirs="$as_dir $as_dirs"
13261       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13263          X"$as_dir" : 'X\(//\)[^/]' \| \
13264          X"$as_dir" : 'X\(//\)$' \| \
13265          X"$as_dir" : 'X\(/\)' \| \
13266          .     : '\(.\)' 2>/dev/null ||
13267 echo X"$as_dir" |
13268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13270           /^X\(\/\/\)$/{ s//\1/; q; }
13271           /^X\(\/\).*/{ s//\1/; q; }
13272           s/.*/./; q'`
13273     done
13274     test ! -n "$as_dirs" || mkdir $as_dirs
13275   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13277    { (exit 1); exit 1; }; }; }
13278
13279       rm -f $ac_file
13280       mv $tmp/config.h $ac_file
13281     fi
13282   else
13283     cat $tmp/config.h
13284     rm -f $tmp/config.h
13285   fi
13286 done
13287 _ACEOF
13288 cat >>$CONFIG_STATUS <<\_ACEOF
13289
13290 #
13291 # CONFIG_COMMANDS section.
13292 #
13293 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13294   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13295   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13296   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13297 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13298          X"$ac_dest" : 'X\(//\)[^/]' \| \
13299          X"$ac_dest" : 'X\(//\)$' \| \
13300          X"$ac_dest" : 'X\(/\)' \| \
13301          .     : '\(.\)' 2>/dev/null ||
13302 echo X"$ac_dest" |
13303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13304           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13305           /^X\(\/\/\)$/{ s//\1/; q; }
13306           /^X\(\/\).*/{ s//\1/; q; }
13307           s/.*/./; q'`
13308   ac_builddir=.
13309
13310 if test "$ac_dir" != .; then
13311   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13312   # A "../" for each directory in $ac_dir_suffix.
13313   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13314 else
13315   ac_dir_suffix= ac_top_builddir=
13316 fi
13317
13318 case $srcdir in
13319   .)  # No --srcdir option.  We are building in place.
13320     ac_srcdir=.
13321     if test -z "$ac_top_builddir"; then
13322        ac_top_srcdir=.
13323     else
13324        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13325     fi ;;
13326   [\\/]* | ?:[\\/]* )  # Absolute path.
13327     ac_srcdir=$srcdir$ac_dir_suffix;
13328     ac_top_srcdir=$srcdir ;;
13329   *) # Relative path.
13330     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13331     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13332 esac
13333 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13334 # absolute.
13335 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13336 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13337 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13338 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13339
13340
13341   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13342 echo "$as_me: executing $ac_dest commands" >&6;}
13343   case $ac_dest in
13344     default )
13345 case ${CONFIG_HEADERS} in
13346   *auto-host.h:config.in*)
13347   echo > cstamp-h ;;
13348 esac
13349 # Make sure all the subdirs exist.
13350 for d in $subdirs
13351 do
13352     test -d $d || mkdir $d
13353 done
13354 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13355 # bootstrapping and the installation procedure can still use
13356 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13357 # FLAGS_TO_PASS has been modified to solve the problem there.
13358 # This is virtually a duplicate of what happens in configure.lang; we do
13359 # an extra check to make sure this only happens if ln -s can be used.
13360 if test "$symbolic_link" = "ln -s"; then
13361  for d in ${subdirs} fixinc ; do
13362         STARTDIR=`${PWDCMD-pwd}`
13363         cd $d
13364         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13365         do
13366                 rm -f $t
13367                 $symbolic_link ../$t $t 2>/dev/null
13368         done
13369         cd $STARTDIR
13370  done
13371 else true ; fi
13372  ;;
13373   esac
13374 done
13375 _ACEOF
13376
13377 cat >>$CONFIG_STATUS <<\_ACEOF
13378
13379 { (exit 0); exit 0; }
13380 _ACEOF
13381 chmod +x $CONFIG_STATUS
13382 ac_clean_files=$ac_clean_files_save
13383
13384
13385 # configure is writing to config.log, and then calls config.status.
13386 # config.status does its own redirection, appending to config.log.
13387 # Unfortunately, on DOS this fails, as config.log is still kept open
13388 # by configure, so config.status won't be able to write to it; its
13389 # output is simply discarded.  So we exec the FD to /dev/null,
13390 # effectively closing config.log, so it can be properly (re)opened and
13391 # appended to by config.status.  When coming back to configure, we
13392 # need to make the FD available again.
13393 if test "$no_create" != yes; then
13394   ac_cs_success=:
13395   ac_config_status_args=
13396   test "$silent" = yes &&
13397     ac_config_status_args="$ac_config_status_args --quiet"
13398   exec 5>/dev/null
13399   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13400   exec 5>>config.log
13401   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13402   # would make configure fail if this is the last instruction.
13403   $ac_cs_success || { (exit 1); exit 1; }
13404 fi
13405